getRefundNoteFile function

Future<ApiResponse<RefundNoteFile>> getRefundNoteFile(
  1. ExsitedClient client,
  2. Object refundId,
  3. Object noteId,
  4. Object fileId, {
  5. bool? raiseOnError,
  6. String? responseFormat,
})

GET /api/{api_version}/refunds/{refund_id}/notes/{note_id}/files/{file_id}

Retrieve one attachment, by the attachment's uuid; a JSON descriptor under file, not the file's bytes.

Implementation

Future<ApiResponse<RefundNoteFile>> getRefundNoteFile(
  ExsitedClient client,
  Object refundId,
  Object noteId,
  Object fileId, {
  bool? raiseOnError,
  String? responseFormat,
}) =>
    client.sendGetRequest(RefundsUrls.refundNoteFile,
        pathParams: {
          'refund_id': refundId,
          'note_id': noteId,
          'file_id': fileId
        },
        raiseOnError: raiseOnError,
        responseFormat: responseFormat,
        dtoDecoder: RefundNoteFile.fromMap);