public class ObtainTokenResponse extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ObtainTokenResponse.Builder
Class to build instances of
ObtainTokenResponse. |
| Constructor and Description |
|---|
ObtainTokenResponse(String accessToken,
String tokenType,
String expiresAt,
String merchantId,
String subscriptionId,
String planId,
String idToken,
String refreshToken,
Boolean shortLived,
List<Error> errors)
Initialization constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getAccessToken()
Getter for AccessToken.
|
HttpContext |
getContext() |
List<Error> |
getErrors()
Getter for Errors.
|
String |
getExpiresAt()
Getter for ExpiresAt.
|
String |
getIdToken()
Getter for IdToken.
|
String |
getMerchantId()
Getter for MerchantId.
|
String |
getPlanId()
Getter for PlanId.
|
String |
getRefreshToken()
Getter for RefreshToken.
|
Boolean |
getShortLived()
Getter for ShortLived.
|
String |
getSubscriptionId()
Getter for SubscriptionId.
|
String |
getTokenType()
Getter for TokenType.
|
int |
hashCode() |
ObtainTokenResponse.Builder |
toBuilder()
Builds a new
ObtainTokenResponse.Builder object. |
String |
toString()
Converts this ObtainTokenResponse into string format.
|
public ObtainTokenResponse(String accessToken, String tokenType, String expiresAt, String merchantId, String subscriptionId, String planId, String idToken, String refreshToken, Boolean shortLived, List<Error> errors)
accessToken - String value for accessToken.tokenType - String value for tokenType.expiresAt - String value for expiresAt.merchantId - String value for merchantId.subscriptionId - String value for subscriptionId.planId - String value for planId.idToken - String value for idToken.refreshToken - String value for refreshToken.shortLived - Boolean value for shortLived.errors - List of Error value for errors.public HttpContext getContext()
public String getAccessToken()
public String getTokenType()
public String getExpiresAt()
public String getMerchantId()
public String getSubscriptionId()
public String getPlanId()
public String getIdToken()
public String getRefreshToken()
public Boolean getShortLived()
public List<Error> getErrors()
public String toString()
public ObtainTokenResponse.Builder toBuilder()
ObtainTokenResponse.Builder object.
Creates the instance with the state of the current model.ObtainTokenResponse.Builder objectCopyright © 2022. All rights reserved.