Package com.clover.sdk.v3.payments
Class TokenizeCardResponse
- java.lang.Object
-
- com.clover.sdk.GenericParcelable
-
- com.clover.sdk.v3.payments.TokenizeCardResponse
-
- All Implemented Interfaces:
Parcelable
,JSONifiable
,Validator
public class TokenizeCardResponse extends GenericParcelable implements Validator, JSONifiable
This is an auto-generated Clover data object.Fields
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
TokenizeCardResponse.Constraints
-
Nested classes/interfaces inherited from interface com.clover.sdk.JSONifiable
JSONifiable.Creator<T>
-
Nested classes/interfaces inherited from interface android.os.Parcelable
Parcelable.ClassLoaderCreator<T extends Object>, Parcelable.Creator<T extends Object>
-
-
Field Summary
Fields Modifier and Type Field Description static Parcelable.Creator<TokenizeCardResponse>
CREATOR
static JSONifiable.Creator<TokenizeCardResponse>
JSON_CREATOR
-
Fields inherited from interface android.os.Parcelable
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
-
-
Constructor Summary
Constructors Modifier Constructor Description TokenizeCardResponse()
Constructs a new empty instance.protected
TokenizeCardResponse(boolean noInit)
Constructs a new empty instance.TokenizeCardResponse(TokenizeCardResponse src)
Constructs a new instance that is a deep copy of the source instance.TokenizeCardResponse(String json)
Constructs a new instance from the given JSON String.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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clearConfirmationSuppressed()
Clears the 'confirmationSuppressed' field, the 'has' method for this field will now return falsevoid
clearFailureReason()
Clears the 'failureReason' field, the 'has' method for this field will now return falsevoid
clearMultiUseToken()
Clears the 'multiUseToken' field, the 'has' method for this field will now return falsevoid
clearReason()
Clears the 'reason' field, the 'has' method for this field will now return falsevoid
clearStatus()
Clears the 'status' field, the 'has' method for this field will now return falsevoid
clearTokenResponse()
Clears the 'tokenResponse' field, the 'has' method for this field will now return falseboolean
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 userFailureReason
getFailureReason()
Reason for tokenization failureprotected 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 tokenizationCreateTokenResponse
getTokenResponse()
boolean
hasConfirmationSuppressed()
Checks whether the 'confirmationSuppressed' field has been set, however the value could be nullboolean
hasFailureReason()
Checks whether the 'failureReason' field has been set, however the value could be nullboolean
hasMultiUseToken()
Checks whether the 'multiUseToken' field has been set, however the value could be nullboolean
hasReason()
Checks whether the 'reason' field has been set, however the value could be nullboolean
hasStatus()
Checks whether the 'status' field has been set, however the value could be nullboolean
hasTokenResponse()
Checks whether the 'tokenResponse' field has been set, however the value could be nullboolean
isNotNullConfirmationSuppressed()
Checks whether the 'confirmationSuppressed' field is set and is not nullboolean
isNotNullFailureReason()
Checks whether the 'failureReason' field is set and is not nullboolean
isNotNullMultiUseToken()
Checks whether the 'multiUseToken' field is set and is not nullboolean
isNotNullReason()
Checks whether the 'reason' field is set and is not nullboolean
isNotNullStatus()
Checks whether the 'status' field is set and is not nullboolean
isNotNullTokenResponse()
Checks whether the 'tokenResponse' field is set and is not nullvoid
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()
-
Methods inherited from class com.clover.sdk.GenericParcelable
describeContents, getBundle, toString, writeToParcel
-
-
-
-
Field Detail
-
CREATOR
public static final Parcelable.Creator<TokenizeCardResponse> CREATOR
-
JSON_CREATOR
public static final JSONifiable.Creator<TokenizeCardResponse> JSON_CREATOR
-
-
Constructor Detail
-
TokenizeCardResponse
public TokenizeCardResponse()
Constructs a new empty instance.
-
TokenizeCardResponse
protected TokenizeCardResponse(boolean noInit)
Constructs a new empty instance.
-
TokenizeCardResponse
public TokenizeCardResponse(String json) throws IllegalArgumentException
Constructs a new instance from the given JSON String.- Throws:
IllegalArgumentException
-
TokenizeCardResponse
public 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
public TokenizeCardResponse(TokenizeCardResponse src)
Constructs a new instance that is a deep copy of the source instance. It does not copy the bundle or changelog.
-
-
Method Detail
-
getStatus
public Status getStatus()
Result of tokenization
-
getMultiUseToken
public Boolean getMultiUseToken()
-
getConfirmationSuppressed
public Boolean getConfirmationSuppressed()
Flag indicating whether or not the confirmation was presented to the user
-
getTokenResponse
public CreateTokenResponse getTokenResponse()
-
getFailureReason
public FailureReason getFailureReason()
Reason for tokenization failure
-
getReason
public String getReason()
-
getGenericClient
protected GenericClient getGenericClient()
- Specified by:
getGenericClient
in classGenericParcelable
-
getJSONObject
public 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.- Specified by:
getJSONObject
in interfaceJSONifiable
-
isNotNullStatus
public boolean isNotNullStatus()
Checks whether the 'status' field is set and is not null
-
isNotNullMultiUseToken
public boolean isNotNullMultiUseToken()
Checks whether the 'multiUseToken' field is set and is not null
-
isNotNullConfirmationSuppressed
public boolean isNotNullConfirmationSuppressed()
Checks whether the 'confirmationSuppressed' field is set and is not null
-
isNotNullTokenResponse
public boolean isNotNullTokenResponse()
Checks whether the 'tokenResponse' field is set and is not null
-
isNotNullFailureReason
public boolean isNotNullFailureReason()
Checks whether the 'failureReason' field is set and is not null
-
isNotNullReason
public boolean isNotNullReason()
Checks whether the 'reason' field is set and is not null
-
hasStatus
public boolean hasStatus()
Checks whether the 'status' field has been set, however the value could be null
-
hasMultiUseToken
public boolean hasMultiUseToken()
Checks whether the 'multiUseToken' field has been set, however the value could be null
-
hasConfirmationSuppressed
public boolean hasConfirmationSuppressed()
Checks whether the 'confirmationSuppressed' field has been set, however the value could be null
-
hasTokenResponse
public boolean hasTokenResponse()
Checks whether the 'tokenResponse' field has been set, however the value could be null
-
hasFailureReason
public boolean hasFailureReason()
Checks whether the 'failureReason' field has been set, however the value could be null
-
hasReason
public boolean hasReason()
Checks whether the 'reason' field has been set, however the value could be null
-
setStatus
public TokenizeCardResponse setStatus(Status status)
Sets the field 'status'.
-
setMultiUseToken
public TokenizeCardResponse setMultiUseToken(Boolean multiUseToken)
Sets the field 'multiUseToken'.
-
setConfirmationSuppressed
public TokenizeCardResponse setConfirmationSuppressed(Boolean confirmationSuppressed)
Sets the field 'confirmationSuppressed'.
-
setTokenResponse
public TokenizeCardResponse setTokenResponse(CreateTokenResponse tokenResponse)
Sets the field 'tokenResponse'. The parameter is not copied so changes to it will be reflected in this instance and vice-versa.
-
setFailureReason
public TokenizeCardResponse setFailureReason(FailureReason failureReason)
Sets the field 'failureReason'.
-
setReason
public TokenizeCardResponse setReason(String reason)
Sets the field 'reason'.
-
clearStatus
public void clearStatus()
Clears the 'status' field, the 'has' method for this field will now return false
-
clearMultiUseToken
public void clearMultiUseToken()
Clears the 'multiUseToken' field, the 'has' method for this field will now return false
-
clearConfirmationSuppressed
public void clearConfirmationSuppressed()
Clears the 'confirmationSuppressed' field, the 'has' method for this field will now return false
-
clearTokenResponse
public void clearTokenResponse()
Clears the 'tokenResponse' field, the 'has' method for this field will now return false
-
clearFailureReason
public void clearFailureReason()
Clears the 'failureReason' field, the 'has' method for this field will now return false
-
clearReason
public void clearReason()
Clears the 'reason' field, the 'has' method for this field will now return false
-
containsChanges
public boolean containsChanges()
Returns true if this instance has any changes.
-
resetChangeLog
public void resetChangeLog()
Reset the log of changes made to this instance, calling copyChanges() after this would return an empty instance.
-
copyChanges
public TokenizeCardResponse copyChanges()
Create a copy of this instance that contains only fields that were set after the constructor was called.
-
mergeChanges
public void mergeChanges(TokenizeCardResponse src)
Copy all the changed fields from the given source to this instance.
-
-