getRefundNote function

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

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

Retrieve one note, by its note_ id; under note.

Implementation

Future<ApiResponse<RefundNote>> getRefundNote(
  ExsitedClient client,
  Object refundId,
  Object noteId, {
  bool? raiseOnError,
  String? responseFormat,
}) =>
    client.sendGetRequest(RefundsUrls.refundNote,
        pathParams: {'refund_id': refundId, 'note_id': noteId},
        raiseOnError: raiseOnError,
        responseFormat: responseFormat,
        dtoDecoder: RefundNote.fromMap);