deleteProformaInvoice function

Future<ApiResponse<Object?>> deleteProformaInvoice(
  1. ExsitedClient client,
  2. Object proformaId, {
  3. bool? raiseOnError,
  4. String? responseFormat,
})

DELETE /api/{api_version}/proforma_invoices/{proforma_id}

Delete a pro-forma invoice; 204. A paid one is refused 400 already_paid.

No typed view. Read response.map.

Implementation

Future<ApiResponse<Object?>> deleteProformaInvoice(
  ExsitedClient client,
  Object proformaId, {
  bool? raiseOnError,
  String? responseFormat,
}) =>
    client.sendDeleteRequest(ProformaInvoicesUrls.proformaInvoice,
        pathParams: {'proforma_id': proformaId},
        raiseOnError: raiseOnError,
        responseFormat: responseFormat);