getInvoiceSummary method

Future<List<InvoiceSummaryModel>> getInvoiceSummary(
  1. int year,
  2. int month, {
  3. required Object authorization,
})

Parameters:

  • int year (required):

  • int month (required):

  • Object authorization:

Implementation

Future<List<InvoiceSummaryModel>> getInvoiceSummary(
  int year,
  int month, {
  required Object authorization,
}) async {
  final response = await _getInvoiceSummaryWithHttpInfo(
    year,
    month,
    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<InvoiceSummaryModel>') as List)
      .cast<InvoiceSummaryModel>()
      .toList(growable: false);
}