Method RefundOrder
RefundOrder(AfterPayCreateRefundRequest, AfterPayCallContext)
Creates a refund against a previously created order.
Declaration
Task<AfterPayRefund> RefundOrder(AfterPayCreateRefundRequest request, AfterPayCallContext requestContext)
Parameters
Type | Name | Description |
---|---|---|
AfterPayCreateRefundRequest | request | A AfterPayCreateRefundRequest containing details of the refund to create. |
AfterPayCallContext | requestContext | A AfterPayCallContext instance containing additional details required to make the request. |
Returns
Type | Description |
---|---|
Task<AfterPayRefund> | An AfterPayRefund containing details of the refund created within the AfterPay system. |
Exceptions
Type | Condition |
---|---|
AfterPayApiException | Thrown if the request is rejected by the AfterPay API. |
System.ArgumentNullException | Thrown if |