createProformaInvoicePayment function

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

POST /api/{api_version}/proforma_invoices/{proforma_id}/payments

Pay a pro-forma invoice, wrapped in payment; 201, answering the new payment's code as payment.payment_id.

No typed view. Read response.map.

Implementation

Future<ApiResponse<Object?>> createProformaInvoicePayment(
  ExsitedClient client,
  Object proformaId,
  Object payload, {
  bool? raiseOnError,
  String? responseFormat,
}) =>
    client.sendPostRequest(ProformaInvoicesUrls.proformaInvoicePayments,
        pathParams: {'proforma_id': proformaId},
        jsonBody: payload,
        raiseOnError: raiseOnError,
        responseFormat: responseFormat);