"""Blueprint for account payee.""" from http import HTTPStatus from common_apispec import doc, marshal_with from flask import Blueprint from payee.logic import tax_reset as logic tax_reset_api = Blueprint('tax_reset_api', __name__) @tax_reset_api.route( '/account-payee//tax-reset', methods=['DELETE'] ) @doc( tags=['tax reset'], description='Reset tax data', ) @marshal_with( None, code=HTTPStatus.NO_CONTENT, description=HTTPStatus.NO_CONTENT.phrase, apply=False, ) def tax_reset(account_payee_id: int): """Reset tax data.""" logic.reset_by_account_payee_id(account_payee_id) return None, HTTPStatus.NO_CONTENT