getPaymentNoteFiles function

Future<ApiResponse<NoteFileList>> getPaymentNoteFiles(
  1. ExsitedClient client,
  2. Object paymentId,
  3. Object paymentNoteId, {
  4. bool? raiseOnError,
  5. String? responseFormat,
})

GET /api/{api_version}/payments/{payment_id}/notes/{payment_note_id}/files

List a note's attachments, under data.

Implementation

Future<ApiResponse<NoteFileList>> getPaymentNoteFiles(
  ExsitedClient client,
  Object paymentId,
  Object paymentNoteId, {
  bool? raiseOnError,
  String? responseFormat,
}) =>
    client.sendGetRequest(PaymentsUrls.paymentNoteFiles,
        pathParams: {'payment_id': paymentId, 'payment_note_id': paymentNoteId},
        raiseOnError: raiseOnError,
        responseFormat: responseFormat,
        dtoDecoder: NoteFileList.fromMap);