public class TokenizeCardResponse extends GenericParcelable implements Validator, JSONifiable
Modifier and Type | Class and Description |
---|---|
static interface |
TokenizeCardResponse.Constraints |
JSONifiable.Creator<T>
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
Modifier and Type | Field and Description |
---|---|
static Parcelable.Creator<TokenizeCardResponse> |
CREATOR |
static JSONifiable.Creator<TokenizeCardResponse> |
JSON_CREATOR |
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
Modifier | Constructor and Description |
---|---|
|
TokenizeCardResponse()
Constructs a new empty instance.
|
protected |
TokenizeCardResponse(boolean noInit)
Constructs a new empty instance.
|
|
TokenizeCardResponse(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.
|
|
TokenizeCardResponse(String json)
Constructs a new instance from the given JSON String.
|
|
TokenizeCardResponse(TokenizeCardResponse src)
Constructs a new instance that is a deep copy of the source instance.
|
Modifier and Type | Method and Description |
---|---|
void |
clearConfirmationSuppressed()
Clears the 'confirmationSuppressed' field, the 'has' method for this field will now return false
|
void |
clearFailureReason()
Clears the 'failureReason' field, the 'has' method for this field will now return false
|
void |
clearMultiUseToken()
Clears the 'multiUseToken' field, the 'has' method for this field will now return false
|
void |
clearReason()
Clears the 'reason' field, the 'has' method for this field will now return false
|
void |
clearStatus()
Clears the 'status' field, the 'has' method for this field will now return false
|
void |
clearTokenResponse()
Clears the 'tokenResponse' field, the 'has' method for this field will now return false
|
boolean |
containsChanges()
Returns true if this instance has any changes.
|
TokenizeCardResponse |
copyChanges()
Create a copy of this instance that contains only fields that were set after the constructor was called.
|
Boolean |
getConfirmationSuppressed()
Flag indicating whether or not the confirmation was presented to the user
|
FailureReason |
getFailureReason()
Reason for tokenization failure
|
protected GenericClient |
getGenericClient() |
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 |
getMultiUseToken() |
String |
getReason() |
Status |
getStatus()
Result of tokenization
|
CreateTokenResponse |
getTokenResponse() |
boolean |
hasConfirmationSuppressed()
Checks whether the 'confirmationSuppressed' field has been set, however the value could be null
|
boolean |
hasFailureReason()
Checks whether the 'failureReason' field has been set, however the value could be null
|
boolean |
hasMultiUseToken()
Checks whether the 'multiUseToken' field has been set, however the value could be null
|
boolean |
hasReason()
Checks whether the 'reason' field has been set, however the value could be null
|
boolean |
hasStatus()
Checks whether the 'status' field has been set, however the value could be null
|
boolean |
hasTokenResponse()
Checks whether the 'tokenResponse' field has been set, however the value could be null
|
boolean |
isNotNullConfirmationSuppressed()
Checks whether the 'confirmationSuppressed' field is set and is not null
|
boolean |
isNotNullFailureReason()
Checks whether the 'failureReason' field is set and is not null
|
boolean |
isNotNullMultiUseToken()
Checks whether the 'multiUseToken' field is set and is not null
|
boolean |
isNotNullReason()
Checks whether the 'reason' field is set and is not null
|
boolean |
isNotNullStatus()
Checks whether the 'status' field is set and is not null
|
boolean |
isNotNullTokenResponse()
Checks whether the 'tokenResponse' field is set and is not null
|
void |
mergeChanges(TokenizeCardResponse 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.
|
TokenizeCardResponse |
setConfirmationSuppressed(Boolean confirmationSuppressed)
Sets the field 'confirmationSuppressed'.
|
TokenizeCardResponse |
setFailureReason(FailureReason failureReason)
Sets the field 'failureReason'.
|
TokenizeCardResponse |
setMultiUseToken(Boolean multiUseToken)
Sets the field 'multiUseToken'.
|
TokenizeCardResponse |
setReason(String reason)
Sets the field 'reason'.
|
TokenizeCardResponse |
setStatus(Status status)
Sets the field 'status'.
|
TokenizeCardResponse |
setTokenResponse(CreateTokenResponse tokenResponse)
Sets the field 'tokenResponse'.
|
void |
validate() |
describeContents, getBundle, toString, writeToParcel
public static final Parcelable.Creator<TokenizeCardResponse> CREATOR
public static final JSONifiable.Creator<TokenizeCardResponse> JSON_CREATOR
public TokenizeCardResponse()
protected TokenizeCardResponse(boolean noInit)
public TokenizeCardResponse(String json) throws IllegalArgumentException
IllegalArgumentException
public TokenizeCardResponse(JSONObject jsonObject)
public TokenizeCardResponse(TokenizeCardResponse src)
public Status getStatus()
public Boolean getMultiUseToken()
public Boolean getConfirmationSuppressed()
public CreateTokenResponse getTokenResponse()
public FailureReason getFailureReason()
public String getReason()
protected GenericClient getGenericClient()
getGenericClient
in class GenericParcelable
public JSONObject getJSONObject()
getJSONObject
in interface JSONifiable
public boolean isNotNullStatus()
public boolean isNotNullMultiUseToken()
public boolean isNotNullConfirmationSuppressed()
public boolean isNotNullTokenResponse()
public boolean isNotNullFailureReason()
public boolean isNotNullReason()
public boolean hasStatus()
public boolean hasMultiUseToken()
public boolean hasConfirmationSuppressed()
public boolean hasTokenResponse()
public boolean hasFailureReason()
public boolean hasReason()
public TokenizeCardResponse setStatus(Status status)
public TokenizeCardResponse setMultiUseToken(Boolean multiUseToken)
public TokenizeCardResponse setConfirmationSuppressed(Boolean confirmationSuppressed)
public TokenizeCardResponse setTokenResponse(CreateTokenResponse tokenResponse)
public TokenizeCardResponse setFailureReason(FailureReason failureReason)
public TokenizeCardResponse setReason(String reason)
public void clearStatus()
public void clearMultiUseToken()
public void clearConfirmationSuppressed()
public void clearTokenResponse()
public void clearFailureReason()
public void clearReason()
public boolean containsChanges()
public void resetChangeLog()
public TokenizeCardResponse copyChanges()
public void mergeChanges(TokenizeCardResponse src)