autoPayments method
Implementation
Future<List<InvoicePaymentModel>> autoPayments(
int customerId, {
required Object authorization,
}) async {
final response = await _autoPaymentsWithHttpInfo(
customerId,
authorization: authorization,
);
if (response.statusCode >= HttpStatus.badRequest) {
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
}
final responseBody = await _decodeBodyBytes(response);
return (await apiClient.deserializeAsync(
responseBody, 'List<InvoicePaymentModel>') as List)
.cast<InvoicePaymentModel>()
.toList(growable: false);
}