Interface IAfterPayClient
An interface for AfterPayClient to allow mocking the client for test purposes.
Namespace: Yort.AfterPay.InStore
Assembly: cs.temp.dll.dll
Syntax
public interface IAfterPayClient
Methods
| Name | Description |
|---|---|
| CreateOrder(AfterPayCreateOrderRequest, AfterPayCallContext) | Creates a new AfterPay order, which is basically a request for payment using a pre-approval code. |
| Ping() | Sends a ping request to the AfterPay API to confirm a connection can be made. If no exception is thrown the ping was successful. |
| PreapprovalEnquiry(AfterPayPreapprovalRequest, AfterPayCallContext) | Requests information about a pre-approval code generated by a customer. |
| RefundOrder(AfterPayCreateRefundRequest, AfterPayCallContext) | Creates a refund against a previously created order. |
| RegisterDevice(AfterPayDeviceRegistrationRequest) | Performs one time registration of a new point of sale device (API client) with the AfterPay API. |
| ReverseOrder(AfterPayReverseOrderRequest, AfterPayCallContext) | Requests an order previously placed be reversed. |
| ReverseRefund(AfterPayReverseRefundRequest, AfterPayCallContext) | Creates a refund reversal against a previously created refund. |
| SendInvite(AfterPayInviteRequest, AfterPayCallContext) | Sends an invitational SMS message to a customer's mobile phone. If no exception is thrown the invite was sent successfully. |