Class AfterPayClient
The main class used to access the AfterPay API, holding relevant configuration and providing methods for each REST API end point.
Inheritance
Implements
Namespace: Yort.AfterPay.InStore
Assembly: cs.temp.dll.dll
Syntax
public sealed class AfterPayClient : Trashy.DisposableManagedOnlyBase, IAfterPayClient
Remarks
Disposing objects of this type will dispose the internal
Constructors
Name | Description |
---|---|
AfterPayClient(AfterPayConfiguration) | Constructs a new instance using the configuration provided. |
Methods
Name | Description |
---|---|
CreateOrder(AfterPayCreateOrderRequest, AfterPayCallContext) | Creates a new AfterPay order, which is basically a request for payment using a pre-approval code. |
DisposeManagedResources() | Disposes the internal |
Ping() | Sends a ping request to the AfterPay API to confirm a connection can be made. |
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 request was successful. |