getPurchaseRefund function

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

GET /api/{api_version}/purchase_refunds/{purchase_refund_id}

Implementation

Future<ApiResponse<PurchaseRefund>> getPurchaseRefund(
  ExsitedClient client,
  Object purchaseRefundId, {
  Map<String, Object?>? queryParams,
  bool? raiseOnError,
  String? responseFormat,
}) =>
    client.sendGetRequest(PurchaseRefundsUrls.purchaseRefund,
        pathParams: {'purchase_refund_id': purchaseRefundId},
        queryParams: queryParams,
        raiseOnError: raiseOnError,
        responseFormat: responseFormat,
        dtoDecoder: PurchaseRefund.fromMap);