Deletes a supplemental tax registration for a single account.
Parameters:
-
authority_id
(GenericString)
–
The unique authority Id for the supplemental TRN information that needs to be deleted.
Raises:
Source code in docs_src/capo_taxsettings/_services/async_tax_settings.py
| async def delete_supplemental_tax_registration(
self,
authority_id: "capo_taxsettings.types.generic_string.GenericString",
*,
config_overrides: Optional[AsyncTaxSettingsClientConfig] = None,
) -> "capo_taxsettings.types.delete_supplemental_tax_registration_response.DeleteSupplementalTaxRegistrationResponse":
"""<p> Deletes a supplemental tax registration for a single account. </p>
Args:
authority_id: <p> The unique authority Id for the supplemental TRN information that needs to be deleted. </p>
Raises:
capo_taxsettings.errors.conflict_exception.ConflictException: <p>The exception when the input is creating conflict with the given state.</p>
capo_taxsettings.errors.internal_server_exception.InternalServerException: <p>The exception thrown when an unexpected error occurs when processing a request.</p>
capo_taxsettings.errors.resource_not_found_exception.ResourceNotFoundException: <p>The exception thrown when the input doesn't have a resource associated to it.</p>
capo_taxsettings.errors.validation_exception.ValidationException: <p>The exception when the input doesn't pass validation for at least one of the input parameters. </p>
capo_taxsettings.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
async def _handler(
req: "AsyncOperationRequest[capo_taxsettings.types.delete_supplemental_tax_registration_request.DeleteSupplementalTaxRegistrationRequest]",
) -> AsyncOperationResponse[
"capo_taxsettings.types.delete_supplemental_tax_registration_response.DeleteSupplementalTaxRegistrationResponse"
]:
import capo_taxsettings._operations.tax_settings.delete_supplemental_tax_registration
(
output,
http_response,
) = await capo_taxsettings._operations.tax_settings.delete_supplemental_tax_registration.async_delete_supplemental_tax_registration(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("DeleteSupplementalTaxRegistration")
)
input_: capo_taxsettings.types.delete_supplemental_tax_registration_request.DeleteSupplementalTaxRegistrationRequest = {
"authority_id": authority_id
}
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|