public class ECommTransactionInfo extends GenericParcelable implements Validator, JSONifiable
Modifier and Type | Class and Description |
---|---|
static interface |
ECommTransactionInfo.Constraints |
JSONifiable.Creator<T>
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
Modifier and Type | Field and Description |
---|---|
static Parcelable.Creator<ECommTransactionInfo> |
CREATOR |
static JSONifiable.Creator<ECommTransactionInfo> |
JSON_CREATOR |
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
Modifier | Constructor and Description |
---|---|
|
ECommTransactionInfo()
Constructs a new empty instance.
|
protected |
ECommTransactionInfo(boolean noInit)
Constructs a new empty instance.
|
|
ECommTransactionInfo(ECommTransactionInfo src)
Constructs a new instance that is a deep copy of the source instance.
|
|
ECommTransactionInfo(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.
|
|
ECommTransactionInfo(String json)
Constructs a new instance from the given JSON String.
|
Modifier and Type | Method and Description |
---|---|
void |
clearCredentialOnFile()
Clears the 'credentialOnFile' field, the 'has' method for this field will now return false
|
void |
clearECommTransaction()
Clears the 'eCommTransaction' field, the 'has' method for this field will now return false
|
void |
clearTokenType()
Clears the 'tokenType' field, the 'has' method for this field will now return false
|
boolean |
containsChanges()
Returns true if this instance has any changes.
|
ECommTransactionInfo |
copyChanges()
Create a copy of this instance that contains only fields that were set after the constructor was called.
|
Boolean |
getCredentialOnFile()
Set to true when Card On File is used for the transaction
|
Boolean |
getECommTransaction()
Set to True when it is an Ecomm Transaction
|
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.
|
TokenType |
getTokenType() |
boolean |
hasCredentialOnFile()
Checks whether the 'credentialOnFile' field has been set, however the value could be null
|
boolean |
hasECommTransaction()
Checks whether the 'eCommTransaction' field has been set, however the value could be null
|
boolean |
hasTokenType()
Checks whether the 'tokenType' field has been set, however the value could be null
|
boolean |
isNotNullCredentialOnFile()
Checks whether the 'credentialOnFile' field is set and is not null
|
boolean |
isNotNullECommTransaction()
Checks whether the 'eCommTransaction' field is set and is not null
|
boolean |
isNotNullTokenType()
Checks whether the 'tokenType' field is set and is not null
|
void |
mergeChanges(ECommTransactionInfo 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.
|
ECommTransactionInfo |
setCredentialOnFile(Boolean credentialOnFile)
Sets the field 'credentialOnFile'.
|
ECommTransactionInfo |
setECommTransaction(Boolean eCommTransaction)
Sets the field 'eCommTransaction'.
|
ECommTransactionInfo |
setTokenType(TokenType tokenType)
Sets the field 'tokenType'.
|
void |
validate() |
describeContents, getBundle, toString, writeToParcel
public static final Parcelable.Creator<ECommTransactionInfo> CREATOR
public static final JSONifiable.Creator<ECommTransactionInfo> JSON_CREATOR
public ECommTransactionInfo()
protected ECommTransactionInfo(boolean noInit)
public ECommTransactionInfo(String json) throws IllegalArgumentException
IllegalArgumentException
public ECommTransactionInfo(JSONObject jsonObject)
public ECommTransactionInfo(ECommTransactionInfo src)
public Boolean getECommTransaction()
public Boolean getCredentialOnFile()
public TokenType getTokenType()
protected GenericClient getGenericClient()
getGenericClient
in class GenericParcelable
public JSONObject getJSONObject()
getJSONObject
in interface JSONifiable
public boolean isNotNullECommTransaction()
public boolean isNotNullCredentialOnFile()
public boolean isNotNullTokenType()
public boolean hasECommTransaction()
public boolean hasCredentialOnFile()
public boolean hasTokenType()
public ECommTransactionInfo setECommTransaction(Boolean eCommTransaction)
public ECommTransactionInfo setCredentialOnFile(Boolean credentialOnFile)
public ECommTransactionInfo setTokenType(TokenType tokenType)
public void clearECommTransaction()
public void clearCredentialOnFile()
public void clearTokenType()
public boolean containsChanges()
public void resetChangeLog()
public ECommTransactionInfo copyChanges()
public void mergeChanges(ECommTransactionInfo src)