getCreditNoteNoteFile function

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

GET /api/{api_version}/credit_notes/{credit_note_id}/notes/{note_id}/files/{file_id}

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

No typed view. Read response.map.

Implementation

Future<ApiResponse<Object?>> getCreditNoteNoteFile(
  ExsitedClient client,
  Object creditNoteId,
  Object noteId,
  Object fileId, {
  bool? raiseOnError,
  String? responseFormat,
}) =>
    client.sendGetRequest(CreditNotesUrls.creditNoteNoteFile,
        pathParams: {
          'credit_note_id': creditNoteId,
          'note_id': noteId,
          'file_id': fileId
        },
        raiseOnError: raiseOnError,
        responseFormat: responseFormat);