Class AfterPayToken
Represents an authorisation token returned from the AfterPay API.
Inheritance
System.Object
AfterPayToken
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Yort.AfterPay.InStore
Assembly: cs.temp.dll.dll
Syntax
public class AfterPayToken
Properties
| Name | Description |
|---|---|
| ExpiresAt | Returns the date and time at which this token expires, calculated from IssuedAt and ExpiresIn. |
| ExpiresIn | The number of seconds for which this token is valid from the time it was issued. |
| IssuedAt | Represents (roughly) the date and time at which this token was issued. |
| Token | The bearer token returned by the API that can be used to authorise further requests. |
Methods
| Name | Description |
|---|---|
| IsExpired() | Returns true if the token has expired based on the current system clock and the calculated ExpiresAt value. |
| IsExpired(IAfterPaySystemClock) | Returns true if the token has expired based on the current system clock and the calculated ExpiresAt value. |