deleteInvoicedMonthWithHttpInfo method

Future<Response> deleteInvoicedMonthWithHttpInfo(
  1. DeleteInvoicedMonthModel request, {
  2. required Object authorization,
})

Performs an HTTP 'DELETE /api/v1/Invoices' operation and returns the Response. Parameters:

Implementation

Future<Response> deleteInvoicedMonthWithHttpInfo(
  DeleteInvoicedMonthModel request, {
  required Object authorization,
}) async {
  final queryParams = <QueryParam>[];
  final headerParams = <String, String>{};
  final formParams = <String, String>{};

  headerParams[r'authorization'] = parameterToString(authorization);

  const authNames = <String>[];
  const contentTypes = <String>[
    'application/json',
    'text/json',
    'application/_*+json'
  ];

  return apiClient.invokeAPI(
    r'/api/v1/Invoices',
    'DELETE',
    queryParams,
    request,
    headerParams,
    formParams,
    contentTypes.isEmpty ? null : contentTypes[0],
    authNames,
  );
}