Package com.clover.sdk.v3.payments
Class TokenizeCardRequest
- java.lang.Object
-
- com.clover.sdk.GenericParcelable
-
- com.clover.sdk.v3.payments.TokenizeCardRequest
-
- All Implemented Interfaces:
Parcelable
,JSONifiable
,Validator
public class TokenizeCardRequest 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
TokenizeCardRequest.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<TokenizeCardRequest>
CREATOR
static JSONifiable.Creator<TokenizeCardRequest>
JSON_CREATOR
-
Fields inherited from interface android.os.Parcelable
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
-
-
Constructor Summary
Constructors Modifier Constructor Description TokenizeCardRequest()
Constructs a new empty instance.protected
TokenizeCardRequest(boolean noInit)
Constructs a new empty instance.TokenizeCardRequest(TokenizeCardRequest src)
Constructs a new instance that is a deep copy of the source instance.TokenizeCardRequest(String json)
Constructs a new instance from the given JSON String.TokenizeCardRequest(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
clearApiKey()
Clears the 'apiKey' field, the 'has' method for this field will now return falsevoid
clearAppTracking()
Clears the 'appTracking' field, the 'has' method for this field will now return falsevoid
clearCardEntryMode()
Clears the 'cardEntryMode' field, the 'has' method for this field will now return falsevoid
clearCardMessage()
Clears the 'cardMessage' 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
clearSuppressConfirmation()
Clears the 'suppressConfirmation' field, the 'has' method for this field will now return falseboolean
containsChanges()
Returns true if this instance has any changes.TokenizeCardRequest
copyChanges()
Create a copy of this instance that contains only fields that were set after the constructor was called.String
getApiKey()
AppTracking
getAppTracking()
Tracking information for the app that created this payment.Integer
getCardEntryMode()
Card Entry Mode supported for the transaction.String
getCardMessage()
Message to be displayedprotected 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()
Boolean
getSuppressConfirmation()
Flag indicating whether or not the confirmation is presented to the userboolean
hasApiKey()
Checks whether the 'apiKey' field has been set, however the value could be nullboolean
hasAppTracking()
Checks whether the 'appTracking' field has been set, however the value could be nullboolean
hasCardEntryMode()
Checks whether the 'cardEntryMode' field has been set, however the value could be nullboolean
hasCardMessage()
Checks whether the 'cardMessage' 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
hasSuppressConfirmation()
Checks whether the 'suppressConfirmation' field has been set, however the value could be nullboolean
isNotNullApiKey()
Checks whether the 'apiKey' field is set and is not nullboolean
isNotNullAppTracking()
Checks whether the 'appTracking' field is set and is not nullboolean
isNotNullCardEntryMode()
Checks whether the 'cardEntryMode' field is set and is not nullboolean
isNotNullCardMessage()
Checks whether the 'cardMessage' field is set and is not nullboolean
isNotNullMultiUseToken()
Checks whether the 'multiUseToken' field is set and is not nullboolean
isNotNullSuppressConfirmation()
Checks whether the 'suppressConfirmation' field is set and is not nullvoid
mergeChanges(TokenizeCardRequest 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.TokenizeCardRequest
setApiKey(String apiKey)
Sets the field 'apiKey'.TokenizeCardRequest
setAppTracking(AppTracking appTracking)
Sets the field 'appTracking'.TokenizeCardRequest
setCardEntryMode(Integer cardEntryMode)
Sets the field 'cardEntryMode'.TokenizeCardRequest
setCardMessage(String cardMessage)
Sets the field 'cardMessage'.TokenizeCardRequest
setMultiUseToken(Boolean multiUseToken)
Sets the field 'multiUseToken'.TokenizeCardRequest
setSuppressConfirmation(Boolean suppressConfirmation)
Sets the field 'suppressConfirmation'.void
validate()
-
Methods inherited from class com.clover.sdk.GenericParcelable
describeContents, getBundle, toString, writeToParcel
-
-
-
-
Field Detail
-
CREATOR
public static final Parcelable.Creator<TokenizeCardRequest> CREATOR
-
JSON_CREATOR
public static final JSONifiable.Creator<TokenizeCardRequest> JSON_CREATOR
-
-
Constructor Detail
-
TokenizeCardRequest
public TokenizeCardRequest()
Constructs a new empty instance.
-
TokenizeCardRequest
protected TokenizeCardRequest(boolean noInit)
Constructs a new empty instance.
-
TokenizeCardRequest
public TokenizeCardRequest(String json) throws IllegalArgumentException
Constructs a new instance from the given JSON String.- Throws:
IllegalArgumentException
-
TokenizeCardRequest
public TokenizeCardRequest(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.
-
TokenizeCardRequest
public TokenizeCardRequest(TokenizeCardRequest src)
Constructs a new instance that is a deep copy of the source instance. It does not copy the bundle or changelog.
-
-
Method Detail
-
getApiKey
public String getApiKey()
-
getMultiUseToken
public Boolean getMultiUseToken()
-
getSuppressConfirmation
public Boolean getSuppressConfirmation()
Flag indicating whether or not the confirmation is presented to the user
-
getCardMessage
public String getCardMessage()
Message to be displayed
-
getCardEntryMode
public Integer getCardEntryMode()
Card Entry Mode supported for the transaction. Bits #1 indicates MAG_STRIPE, #2 indicates CONTACT, #3 indicates CONTACTLESS, #4 indicates MANUAL
-
getAppTracking
public AppTracking getAppTracking()
Tracking information for the app that created this payment.
-
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
-
isNotNullApiKey
public boolean isNotNullApiKey()
Checks whether the 'apiKey' field is set and is not null
-
isNotNullMultiUseToken
public boolean isNotNullMultiUseToken()
Checks whether the 'multiUseToken' field is set and is not null
-
isNotNullSuppressConfirmation
public boolean isNotNullSuppressConfirmation()
Checks whether the 'suppressConfirmation' field is set and is not null
-
isNotNullCardMessage
public boolean isNotNullCardMessage()
Checks whether the 'cardMessage' field is set and is not null
-
isNotNullCardEntryMode
public boolean isNotNullCardEntryMode()
Checks whether the 'cardEntryMode' field is set and is not null
-
isNotNullAppTracking
public boolean isNotNullAppTracking()
Checks whether the 'appTracking' field is set and is not null
-
hasApiKey
public boolean hasApiKey()
Checks whether the 'apiKey' 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
-
hasSuppressConfirmation
public boolean hasSuppressConfirmation()
Checks whether the 'suppressConfirmation' field has been set, however the value could be null
-
hasCardMessage
public boolean hasCardMessage()
Checks whether the 'cardMessage' field has been set, however the value could be null
-
hasCardEntryMode
public boolean hasCardEntryMode()
Checks whether the 'cardEntryMode' field has been set, however the value could be null
-
hasAppTracking
public boolean hasAppTracking()
Checks whether the 'appTracking' field has been set, however the value could be null
-
setApiKey
public TokenizeCardRequest setApiKey(String apiKey)
Sets the field 'apiKey'.
-
setMultiUseToken
public TokenizeCardRequest setMultiUseToken(Boolean multiUseToken)
Sets the field 'multiUseToken'.
-
setSuppressConfirmation
public TokenizeCardRequest setSuppressConfirmation(Boolean suppressConfirmation)
Sets the field 'suppressConfirmation'.
-
setCardMessage
public TokenizeCardRequest setCardMessage(String cardMessage)
Sets the field 'cardMessage'.
-
setCardEntryMode
public TokenizeCardRequest setCardEntryMode(Integer cardEntryMode)
Sets the field 'cardEntryMode'.
-
setAppTracking
public TokenizeCardRequest setAppTracking(AppTracking appTracking)
Sets the field 'appTracking'. The parameter is not copied so changes to it will be reflected in this instance and vice-versa.
-
clearApiKey
public void clearApiKey()
Clears the 'apiKey' 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
-
clearSuppressConfirmation
public void clearSuppressConfirmation()
Clears the 'suppressConfirmation' field, the 'has' method for this field will now return false
-
clearCardMessage
public void clearCardMessage()
Clears the 'cardMessage' field, the 'has' method for this field will now return false
-
clearCardEntryMode
public void clearCardEntryMode()
Clears the 'cardEntryMode' field, the 'has' method for this field will now return false
-
clearAppTracking
public void clearAppTracking()
Clears the 'appTracking' 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 TokenizeCardRequest copyChanges()
Create a copy of this instance that contains only fields that were set after the constructor was called.
-
mergeChanges
public void mergeChanges(TokenizeCardRequest src)
Copy all the changed fields from the given source to this instance.
-
-