getInvoicePayment function

Future<ApiResponse<PaymentRead>> getInvoicePayment(
  1. ExsitedClient client,
  2. Object invoiceId,
  3. Object paymentId, {
  4. bool? raiseOnError,
  5. String? responseFormat,
})

GET /api/{api_version}/invoices/{invoice_id}/payments/{payment_id}

Retrieve one payment through an invoice; the payment is not checked against the invoice, only the invoice's existence is.

Implementation

Future<ApiResponse<PaymentRead>> getInvoicePayment(
  ExsitedClient client,
  Object invoiceId,
  Object paymentId, {
  bool? raiseOnError,
  String? responseFormat,
}) =>
    client.sendGetRequest(PaymentsUrls.invoicePayment,
        pathParams: {'invoice_id': invoiceId, 'payment_id': paymentId},
        raiseOnError: raiseOnError,
        responseFormat: responseFormat,
        dtoDecoder: PaymentRead.fromMap);