"""Logic for Reference Tax Withholding.""" from payment.models.reference_tax_withholding import ReferenceTaxWithholding def get_reference_tax_withholding( country_of_withholding=None, country_of_tax_residence=None ): """GET reference tax withholding entries.""" tax_withholding = ReferenceTaxWithholding.get_all( country_of_withholding=country_of_withholding, country_of_tax_residence=country_of_tax_residence, ) return { 'items': tax_withholding, 'total_count': len(tax_withholding), }