getPurchaseInvoicePurchaseCreditNoteApplication function
Future<ApiResponse<PurchaseCreditNoteApplicationRead> >
getPurchaseInvoicePurchaseCreditNoteApplication(
- ExsitedClient client,
- Object purchaseInvoiceId,
- Object applicationId, {
- bool? raiseOnError,
- String? responseFormat,
GET /api/{api_version}/purchase_invoices/{purchase_invoice_id}/purchase_credit_note_applications/{application_id}
One purchase credit note application through a purchase invoice; not checked against the invoice, so any application answers under any invoice.
Implementation
Future<ApiResponse<PurchaseCreditNoteApplicationRead>>
getPurchaseInvoicePurchaseCreditNoteApplication(
ExsitedClient client,
Object purchaseInvoiceId,
Object applicationId, {
bool? raiseOnError,
String? responseFormat,
}) =>
client.sendGetRequest(
PurchaseInvoicesUrls.purchaseInvoicePurchaseCreditNoteApplication,
pathParams: {
'purchase_invoice_id': purchaseInvoiceId,
'application_id': applicationId
},
raiseOnError: raiseOnError,
responseFormat: responseFormat,
dtoDecoder: PurchaseCreditNoteApplicationRead.fromMap);