getPurchasePaymentPurchaseCreditNotes function
GET /api/{api_version}/purchase_payments/{purchase_payment_id}/purchase_credit_notes
The purchase credit notes a payment raised; a paged listing.
Implementation
Future<ApiResponse<PurchaseCreditNoteList>>
getPurchasePaymentPurchaseCreditNotes(
ExsitedClient client,
Object purchasePaymentId, {
Map<String, Object?>? queryParams,
bool? raiseOnError,
String? responseFormat,
}) =>
client.sendGetRequest(
PurchasePaymentsUrls.purchasePaymentPurchaseCreditNotes,
pathParams: {'purchase_payment_id': purchasePaymentId},
queryParams: queryParams,
raiseOnError: raiseOnError,
responseFormat: responseFormat,
dtoDecoder: PurchaseCreditNoteList.fromMap);