listTaxRegistrations method

Future<ListTaxRegistrationsResponse> listTaxRegistrations({
  1. int? maxResults,
  2. String? nextToken,
})

Retrieves the tax registration of accounts listed in a consolidated billing family. This can be used to retrieve up to 100 accounts' tax registrations in one call (default 50).

May throw InternalServerException. May throw ResourceNotFoundException. May throw ValidationException.

Parameter maxResults : Number of accountDetails results you want in one response.

Parameter nextToken : The token to retrieve the next set of results.

Implementation

Future<ListTaxRegistrationsResponse> listTaxRegistrations({
  int? maxResults,
  String? nextToken,
}) async {
  _s.validateNumRange(
    'maxResults',
    maxResults,
    1,
    1000,
  );
  final $payload = <String, dynamic>{
    if (maxResults != null) 'maxResults': maxResults,
    if (nextToken != null) 'nextToken': nextToken,
  };
  final response = await _protocol.send(
    payload: $payload,
    method: 'POST',
    requestUri: '/ListTaxRegistrations',
    exceptionFnMap: _exceptionFns,
  );
  return ListTaxRegistrationsResponse.fromJson(response);
}