getInvoicePayments function
GET /api/{api_version}/invoices/{invoice_id}/payments
Implementation
Future<ApiResponse<PaymentList>> getInvoicePayments(
ExsitedClient client,
Object invoiceId, {
Map<String, Object?>? queryParams,
bool? raiseOnError,
String? responseFormat,
}) =>
client.sendGetRequest(PaymentsUrls.invoicePayments,
pathParams: {'invoice_id': invoiceId},
queryParams: queryParams,
raiseOnError: raiseOnError,
responseFormat: responseFormat,
dtoDecoder: PaymentList.fromMap);