public class CreateTokenResponse extends GenericParcelable implements Validator, JSONifiable
Modifier and Type | Class and Description |
---|---|
static interface |
CreateTokenResponse.Constraints |
JSONifiable.Creator<T>
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
Modifier and Type | Field and Description |
---|---|
static Parcelable.Creator<CreateTokenResponse> |
CREATOR |
static JSONifiable.Creator<CreateTokenResponse> |
JSON_CREATOR |
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
Modifier | Constructor and Description |
---|---|
|
CreateTokenResponse()
Constructs a new empty instance.
|
protected |
CreateTokenResponse(boolean noInit)
Constructs a new empty instance.
|
|
CreateTokenResponse(CreateTokenResponse src)
Constructs a new instance that is a deep copy of the source instance.
|
|
CreateTokenResponse(JSONObject jsonObject)
Construct a new instance backed by the given JSONObject, the parameter is not copied so changes to it will be
reflected in this instance and vice-versa.
|
|
CreateTokenResponse(String json)
Constructs a new instance from the given JSON String.
|
Modifier and Type | Method and Description |
---|---|
void |
clearAch()
Clears the 'ach' field, the 'has' method for this field will now return false
|
void |
clearCard()
Clears the 'card' field, the 'has' method for this field will now return false
|
void |
clearClientIp()
Clears the 'client_ip' field, the 'has' method for this field will now return false
|
void |
clearCreated()
Clears the 'created' field, the 'has' method for this field will now return false
|
void |
clearId()
Clears the 'id' field, the 'has' method for this field will now return false
|
void |
clearLivemode()
Clears the 'livemode' field, the 'has' method for this field will now return false
|
void |
clearObject()
Clears the 'object' field, the 'has' method for this field will now return false
|
void |
clearType()
Clears the 'type' field, the 'has' method for this field will now return false
|
void |
clearUsed()
Clears the 'used' field, the 'has' method for this field will now return false
|
void |
clearWallet()
Clears the 'wallet' field, the 'has' method for this field will now return false
|
boolean |
containsChanges()
Returns true if this instance has any changes.
|
CreateTokenResponse |
copyChanges()
Create a copy of this instance that contains only fields that were set after the constructor was called.
|
Ach |
getAch()
ACH (Connect Pay) details, meta data of the ACH tokenized
|
Card |
getCard()
card details, meta data of the card tokenized
|
String |
getClientIp()
IP address of the client that generated the token.
|
Long |
getCreated()
Time at which the object was created.
|
protected GenericClient |
getGenericClient() |
String |
getId()
identifier for request
|
JSONObject |
getJSONObject()
Returns the internal JSONObject backing this instance, the return value is not a copy so changes to it will be
reflected in this instance and vice-versa.
|
Boolean |
getLivemode()
Has the value true if the object exists in live mode or the value false if the object exists in test mode.
|
String |
getObject()
token value, expired after configured time null if error occurred
|
String |
getType()
Type of the token: account, bank_account, card, or pii.
|
Boolean |
getUsed()
Whether this token has already been used (tokens can be used only once).
|
Wallet |
getWallet()
wallet details (apple or google pay), meta data of the wallet tokenized
|
boolean |
hasAch()
Checks whether the 'ach' field has been set, however the value could be null
|
boolean |
hasCard()
Checks whether the 'card' field has been set, however the value could be null
|
boolean |
hasClientIp()
Checks whether the 'client_ip' field has been set, however the value could be null
|
boolean |
hasCreated()
Checks whether the 'created' field has been set, however the value could be null
|
boolean |
hasId()
Checks whether the 'id' field has been set, however the value could be null
|
boolean |
hasLivemode()
Checks whether the 'livemode' field has been set, however the value could be null
|
boolean |
hasObject()
Checks whether the 'object' field has been set, however the value could be null
|
boolean |
hasType()
Checks whether the 'type' field has been set, however the value could be null
|
boolean |
hasUsed()
Checks whether the 'used' field has been set, however the value could be null
|
boolean |
hasWallet()
Checks whether the 'wallet' field has been set, however the value could be null
|
boolean |
isNotNullAch()
Checks whether the 'ach' field is set and is not null
|
boolean |
isNotNullCard()
Checks whether the 'card' field is set and is not null
|
boolean |
isNotNullClientIp()
Checks whether the 'client_ip' field is set and is not null
|
boolean |
isNotNullCreated()
Checks whether the 'created' field is set and is not null
|
boolean |
isNotNullId()
Checks whether the 'id' field is set and is not null
|
boolean |
isNotNullLivemode()
Checks whether the 'livemode' field is set and is not null
|
boolean |
isNotNullObject()
Checks whether the 'object' field is set and is not null
|
boolean |
isNotNullType()
Checks whether the 'type' field is set and is not null
|
boolean |
isNotNullUsed()
Checks whether the 'used' field is set and is not null
|
boolean |
isNotNullWallet()
Checks whether the 'wallet' field is set and is not null
|
void |
mergeChanges(CreateTokenResponse src)
Copy all the changed fields from the given source to this instance.
|
void |
resetChangeLog()
Reset the log of changes made to this instance, calling copyChanges() after this would return an empty instance.
|
CreateTokenResponse |
setAch(Ach ach)
Sets the field 'ach'.
|
CreateTokenResponse |
setCard(Card card)
Sets the field 'card'.
|
CreateTokenResponse |
setClientIp(String client_ip)
Sets the field 'client_ip'.
|
CreateTokenResponse |
setCreated(Long created)
Sets the field 'created'.
|
CreateTokenResponse |
setId(String id)
Sets the field 'id'.
|
CreateTokenResponse |
setLivemode(Boolean livemode)
Sets the field 'livemode'.
|
CreateTokenResponse |
setObject(String object)
Sets the field 'object'.
|
CreateTokenResponse |
setType(String type)
Sets the field 'type'.
|
CreateTokenResponse |
setUsed(Boolean used)
Sets the field 'used'.
|
CreateTokenResponse |
setWallet(Wallet wallet)
Sets the field 'wallet'.
|
void |
validate() |
describeContents, getBundle, toString, writeToParcel
public static final Parcelable.Creator<CreateTokenResponse> CREATOR
public static final JSONifiable.Creator<CreateTokenResponse> JSON_CREATOR
public CreateTokenResponse()
protected CreateTokenResponse(boolean noInit)
public CreateTokenResponse(String json) throws IllegalArgumentException
IllegalArgumentException
public CreateTokenResponse(JSONObject jsonObject)
public CreateTokenResponse(CreateTokenResponse src)
public String getId()
public String getObject()
public Card getCard()
public Wallet getWallet()
public Ach getAch()
public String getClientIp()
public Long getCreated()
public Boolean getLivemode()
public String getType()
public Boolean getUsed()
protected GenericClient getGenericClient()
getGenericClient
in class GenericParcelable
public JSONObject getJSONObject()
getJSONObject
in interface JSONifiable
public boolean isNotNullId()
public boolean isNotNullObject()
public boolean isNotNullCard()
public boolean isNotNullWallet()
public boolean isNotNullAch()
public boolean isNotNullClientIp()
public boolean isNotNullCreated()
public boolean isNotNullLivemode()
public boolean isNotNullType()
public boolean isNotNullUsed()
public boolean hasId()
public boolean hasObject()
public boolean hasCard()
public boolean hasWallet()
public boolean hasAch()
public boolean hasClientIp()
public boolean hasCreated()
public boolean hasLivemode()
public boolean hasType()
public boolean hasUsed()
public CreateTokenResponse setId(String id)
public CreateTokenResponse setObject(String object)
public CreateTokenResponse setCard(Card card)
public CreateTokenResponse setWallet(Wallet wallet)
public CreateTokenResponse setAch(Ach ach)
public CreateTokenResponse setClientIp(String client_ip)
public CreateTokenResponse setCreated(Long created)
public CreateTokenResponse setLivemode(Boolean livemode)
public CreateTokenResponse setType(String type)
public CreateTokenResponse setUsed(Boolean used)
public void clearId()
public void clearObject()
public void clearCard()
public void clearWallet()
public void clearAch()
public void clearClientIp()
public void clearCreated()
public void clearLivemode()
public void clearType()
public void clearUsed()
public boolean containsChanges()
public void resetChangeLog()
public CreateTokenResponse copyChanges()
public void mergeChanges(CreateTokenResponse src)