getCreditNoteCreditNoteApplications function

Future<ApiResponse<CreditNoteApplications>> getCreditNoteCreditNoteApplications(
  1. ExsitedClient client,
  2. Object creditNoteId, {
  3. bool? raiseOnError,
  4. String? responseFormat,
})

GET /api/{api_version}/credit_notes/{credit_note_id}/credit_note_applications

A credit note's applications, under credit_note.applications; not a paged listing.

Implementation

Future<ApiResponse<CreditNoteApplications>> getCreditNoteCreditNoteApplications(
  ExsitedClient client,
  Object creditNoteId, {
  bool? raiseOnError,
  String? responseFormat,
}) =>
    client.sendGetRequest(CreditNotesUrls.creditNoteCreditNoteApplications,
        pathParams: {'credit_note_id': creditNoteId},
        raiseOnError: raiseOnError,
        responseFormat: responseFormat,
        dtoDecoder: CreditNoteApplications.fromMap);