Method SendInvite
SendInvite(AfterPayInviteRequest, AfterPayCallContext)
Sends an invitational SMS message to a customer's mobile phone. If no exception is thrown the request was successful.
Declaration
public Task SendInvite(AfterPayInviteRequest request, AfterPayCallContext requestContext)
Parameters
Type | Name | Description |
---|---|---|
AfterPayInviteRequest | request | A AfterPayInviteRequest instance containing details of the invite to send. |
AfterPayCallContext | requestContext | A AfterPayCallContext instance describing additional information for the request. |
Returns
Type | Description |
---|---|
Task | True if the invite was sent successfully, otherwise false. |
Implements
Exceptions
Type | Condition |
---|---|
AfterPayApiException | Thrown if the request is rejected by the AfterPay API. |
System.ArgumentNullException | Thrown if |
System.UnauthorizedAccessException | Thrown if the system cannot obtain an authorisation token from AfterPay before making the request. |
System.TimeoutException | Thrown if the service does not respond within the expected client timeout. |