getRefundNotes function

Future<ApiResponse<RefundNoteList>> getRefundNotes(
  1. ExsitedClient client,
  2. Object refundId, {
  3. Map<String, Object?>? queryParams,
  4. bool? raiseOnError,
  5. String? responseFormat,
})

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

List a refund's notes; a paged listing, under data.

Implementation

Future<ApiResponse<RefundNoteList>> getRefundNotes(
  ExsitedClient client,
  Object refundId, {
  Map<String, Object?>? queryParams,
  bool? raiseOnError,
  String? responseFormat,
}) =>
    client.sendGetRequest(RefundsUrls.refundNotes,
        pathParams: {'refund_id': refundId},
        queryParams: queryParams,
        raiseOnError: raiseOnError,
        responseFormat: responseFormat,
        dtoDecoder: RefundNoteList.fromMap);