listSupplementalTaxRegistrations method
Retrieves supplemental tax registrations for a single account.
May throw InternalServerException.
May throw ResourceNotFoundException.
May throw ValidationException.
Parameter maxResults :
The number of taxRegistrations results you want in one
response.
Parameter nextToken :
The token to retrieve the next set of results.
Implementation
Future<ListSupplementalTaxRegistrationsResponse>
listSupplementalTaxRegistrations({
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: '/ListSupplementalTaxRegistrations',
exceptionFnMap: _exceptionFns,
);
return ListSupplementalTaxRegistrationsResponse.fromJson(response);
}