Skip to content

get_tax_inheritance

get_tax_inheritance(
    *, config_overrides: Optional[TaxSettingsClientConfig] = None
) -> GetTaxInheritanceResponse

The get account tax inheritance status.

Raises:

Source code in docs_src/capo_taxsettings/_services/tax_settings.py
def get_tax_inheritance(
    self, *, config_overrides: Optional[TaxSettingsClientConfig] = None
) -> (
    "capo_taxsettings.types.get_tax_inheritance_response.GetTaxInheritanceResponse"
):
    """<p>The get account tax inheritance status. </p>

    Raises:
        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.
    """

    def _handler(
        req: "OperationRequest[capo_taxsettings.types.get_tax_inheritance_request.GetTaxInheritanceRequest]",
    ) -> OperationResponse[
        "capo_taxsettings.types.get_tax_inheritance_response.GetTaxInheritanceResponse"
    ]:
        import capo_taxsettings._operations.tax_settings.get_tax_inheritance

        output, http_response = (
            capo_taxsettings._operations.tax_settings.get_tax_inheritance.get_tax_inheritance(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("GetTaxInheritance")
    )
    input_: capo_taxsettings.types.get_tax_inheritance_request.GetTaxInheritanceRequest = {}

    response = execute_pipeline(
        OperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    response.response.close()
    return response.output