getTaxRegistrationDocument method

Future<GetTaxRegistrationDocumentResponse> getTaxRegistrationDocument({
  1. required TaxDocumentMetadata taxDocumentMetadata,
  2. DestinationS3Location? destinationS3Location,
})

Downloads your tax documents to the Amazon S3 bucket that you specify in your request.

May throw InternalServerException. May throw ValidationException.

Parameter taxDocumentMetadata : The metadata for your tax document.

Parameter destinationS3Location : The Amazon S3 bucket that you specify to download your tax documents to.

Implementation

Future<GetTaxRegistrationDocumentResponse> getTaxRegistrationDocument({
  required TaxDocumentMetadata taxDocumentMetadata,
  DestinationS3Location? destinationS3Location,
}) async {
  final $payload = <String, dynamic>{
    'taxDocumentMetadata': taxDocumentMetadata,
    if (destinationS3Location != null)
      'destinationS3Location': destinationS3Location,
  };
  final response = await _protocol.send(
    payload: $payload,
    method: 'POST',
    requestUri: '/GetTaxRegistrationDocument',
    exceptionFnMap: _exceptionFns,
  );
  return GetTaxRegistrationDocumentResponse.fromJson(response);
}