getInvoiceCustomerSummary method

Future<InvoiceSummaryModel> getInvoiceCustomerSummary(
  1. int year,
  2. int month,
  3. int customerId, {
  4. required Object authorization,
})

Parameters:

  • int year (required):

  • int month (required):

  • int customerId (required):

  • Object authorization:

Implementation

Future<InvoiceSummaryModel> getInvoiceCustomerSummary(
  int year,
  int month,
  int customerId, {
  required Object authorization,
}) async {
  final response = await _getInvoiceCustomerSummaryWithHttpInfo(
    year,
    month,
    customerId,
    authorization: authorization,
  );
  if (response.statusCode >= HttpStatus.badRequest) {
    throw ApiException(response.statusCode, await _decodeBodyBytes(response));
  }
  return await apiClient.deserializeAsync(
    await _decodeBodyBytes(response),
    'InvoiceSummaryModel',
  ) as InvoiceSummaryModel;
}