getInvoicePayment function
Future<ApiResponse<PaymentRead> >
getInvoicePayment(
- ExsitedClient client,
- Object invoiceId,
- Object paymentId, {
- bool? raiseOnError,
- 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);