deletePurchaseRefund function

Future<ApiResponse<Object?>> deletePurchaseRefund(
  1. ExsitedClient client,
  2. Object purchaseRefundId, {
  3. bool? raiseOnError,
  4. String? responseFormat,
})

DELETE /api/{api_version}/purchase_refunds/{purchase_refund_id}

Delete a refund, by its code; 204.

No typed view: no 2xx response was recorded for it. Read response.map.

Implementation

Future<ApiResponse<Object?>> deletePurchaseRefund(
  ExsitedClient client,
  Object purchaseRefundId, {
  bool? raiseOnError,
  String? responseFormat,
}) =>
    client.sendDeleteRequest(PurchaseRefundsUrls.purchaseRefund,
        pathParams: {'purchase_refund_id': purchaseRefundId},
        raiseOnError: raiseOnError,
        responseFormat: responseFormat);