public class TokenizeCardRequest extends GenericParcelable implements Validator, JSONifiable
Modifier and Type | Class and Description |
---|---|
static interface |
TokenizeCardRequest.Constraints |
JSONifiable.Creator<T>
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
Modifier and Type | Field and Description |
---|---|
static Parcelable.Creator<TokenizeCardRequest> |
CREATOR |
static JSONifiable.Creator<TokenizeCardRequest> |
JSON_CREATOR |
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
Modifier | Constructor and Description |
---|---|
|
TokenizeCardRequest()
Constructs a new empty instance.
|
protected |
TokenizeCardRequest(boolean noInit)
Constructs a new empty instance.
|
|
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(String json)
Constructs a new instance from the given JSON String.
|
|
TokenizeCardRequest(TokenizeCardRequest src)
Constructs a new instance that is a deep copy of the source instance.
|
Modifier and Type | Method and Description |
---|---|
void |
clearApiKey()
Clears the 'apiKey' field, the 'has' method for this field will now return false
|
void |
clearAppTracking()
Clears the 'appTracking' field, the 'has' method for this field will now return false
|
void |
clearCardEntryMode()
Clears the 'cardEntryMode' field, the 'has' method for this field will now return false
|
void |
clearCardMessage()
Clears the 'cardMessage' 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 |
clearSuppressConfirmation()
Clears the 'suppressConfirmation' field, the 'has' method for this field will now return false
|
boolean |
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 displayed
|
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() |
Boolean |
getSuppressConfirmation()
Flag indicating whether or not the confirmation is presented to the user
|
boolean |
hasApiKey()
Checks whether the 'apiKey' field has been set, however the value could be null
|
boolean |
hasAppTracking()
Checks whether the 'appTracking' field has been set, however the value could be null
|
boolean |
hasCardEntryMode()
Checks whether the 'cardEntryMode' field has been set, however the value could be null
|
boolean |
hasCardMessage()
Checks whether the 'cardMessage' 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 |
hasSuppressConfirmation()
Checks whether the 'suppressConfirmation' field has been set, however the value could be null
|
boolean |
isNotNullApiKey()
Checks whether the 'apiKey' field is set and is not null
|
boolean |
isNotNullAppTracking()
Checks whether the 'appTracking' field is set and is not null
|
boolean |
isNotNullCardEntryMode()
Checks whether the 'cardEntryMode' field is set and is not null
|
boolean |
isNotNullCardMessage()
Checks whether the 'cardMessage' field is set and is not null
|
boolean |
isNotNullMultiUseToken()
Checks whether the 'multiUseToken' field is set and is not null
|
boolean |
isNotNullSuppressConfirmation()
Checks whether the 'suppressConfirmation' field is set and is not null
|
void |
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() |
describeContents, getBundle, toString, writeToParcel
public static final Parcelable.Creator<TokenizeCardRequest> CREATOR
public static final JSONifiable.Creator<TokenizeCardRequest> JSON_CREATOR
public TokenizeCardRequest()
protected TokenizeCardRequest(boolean noInit)
public TokenizeCardRequest(String json) throws IllegalArgumentException
IllegalArgumentException
public TokenizeCardRequest(JSONObject jsonObject)
public TokenizeCardRequest(TokenizeCardRequest src)
public String getApiKey()
public Boolean getMultiUseToken()
public Boolean getSuppressConfirmation()
public String getCardMessage()
public Integer getCardEntryMode()
public AppTracking getAppTracking()
protected GenericClient getGenericClient()
getGenericClient
in class GenericParcelable
public JSONObject getJSONObject()
getJSONObject
in interface JSONifiable
public boolean isNotNullApiKey()
public boolean isNotNullMultiUseToken()
public boolean isNotNullSuppressConfirmation()
public boolean isNotNullCardMessage()
public boolean isNotNullCardEntryMode()
public boolean isNotNullAppTracking()
public boolean hasApiKey()
public boolean hasMultiUseToken()
public boolean hasSuppressConfirmation()
public boolean hasCardMessage()
public boolean hasCardEntryMode()
public boolean hasAppTracking()
public TokenizeCardRequest setApiKey(String apiKey)
public TokenizeCardRequest setMultiUseToken(Boolean multiUseToken)
public TokenizeCardRequest setSuppressConfirmation(Boolean suppressConfirmation)
public TokenizeCardRequest setCardMessage(String cardMessage)
public TokenizeCardRequest setCardEntryMode(Integer cardEntryMode)
public TokenizeCardRequest setAppTracking(AppTracking appTracking)
public void clearApiKey()
public void clearMultiUseToken()
public void clearSuppressConfirmation()
public void clearCardMessage()
public void clearCardEntryMode()
public void clearAppTracking()
public boolean containsChanges()
public void resetChangeLog()
public TokenizeCardRequest copyChanges()
public void mergeChanges(TokenizeCardRequest src)