getPurchaseInvoicePurchaseCreditNoteApplications function

Future<ApiResponse<AccountPurchaseInvoices>> getPurchaseInvoicePurchaseCreditNoteApplications(
  1. ExsitedClient client,
  2. Object purchaseInvoiceId, {
  3. Map<String, Object?>? queryParams,
  4. bool? raiseOnError,
  5. String? responseFormat,
})

GET /api/{api_version}/purchase_invoices/{purchase_invoice_id}/purchase_credit_note_applications

Implementation

Future<ApiResponse<AccountPurchaseInvoices>>
    getPurchaseInvoicePurchaseCreditNoteApplications(
  ExsitedClient client,
  Object purchaseInvoiceId, {
  Map<String, Object?>? queryParams,
  bool? raiseOnError,
  String? responseFormat,
}) =>
        client.sendGetRequest(
            PurchaseInvoicesUrls.purchaseInvoicePurchaseCreditNoteApplications,
            pathParams: {'purchase_invoice_id': purchaseInvoiceId},
            queryParams: queryParams,
            raiseOnError: raiseOnError,
            responseFormat: responseFormat,
            dtoDecoder: AccountPurchaseInvoices.fromMap);