public class TokenRequest extends GenericParcelable implements Validator, JSONifiable
Modifier and Type | Class and Description |
---|---|
static interface |
TokenRequest.Constraints |
JSONifiable.Creator<T>
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
Modifier and Type | Field and Description |
---|---|
static Parcelable.Creator<TokenRequest> |
CREATOR |
static JSONifiable.Creator<TokenRequest> |
JSON_CREATOR |
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
Modifier | Constructor and Description |
---|---|
|
TokenRequest()
Constructs a new empty instance.
|
protected |
TokenRequest(boolean noInit)
Constructs a new empty instance.
|
|
TokenRequest(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.
|
|
TokenRequest(String json)
Constructs a new instance from the given JSON String.
|
|
TokenRequest(TokenRequest src)
Constructs a new instance that is a deep copy of the source instance.
|
Modifier and Type | Method and Description |
---|---|
void |
clearCardTransaction()
Clears the 'cardTransaction' field, the 'has' method for this field will now return false
|
void |
clearCreatedTime()
Clears the 'createdTime' field, the 'has' method for this field will now return false
|
void |
clearCustomer()
Clears the 'customer' field, the 'has' method for this field will now return false
|
void |
clearDeletedTime()
Clears the 'deletedTime' field, the 'has' method for this field will now return false
|
void |
clearDevice()
Clears the 'device' field, the 'has' method for this field will now return false
|
void |
clearEmployee()
Clears the 'employee' field, the 'has' method for this field will now return false
|
void |
clearExternalReferenceId()
Clears the 'externalReferenceId' field, the 'has' method for this field will now return false
|
void |
clearId()
Clears the 'id' field, the 'has' method for this field will now return false
|
void |
clearMerchant()
Clears the 'merchant' field, the 'has' method for this field will now return false
|
void |
clearModifiedTime()
Clears the 'modifiedTime' field, the 'has' method for this field will now return false
|
void |
clearNote()
Clears the 'note' field, the 'has' method for this field will now return false
|
void |
clearResult()
Clears the 'result' field, the 'has' method for this field will now return false
|
void |
clearTender()
Clears the 'tender' field, the 'has' method for this field will now return false
|
void |
clearTransactionInfo()
Clears the 'transactionInfo' field, the 'has' method for this field will now return false
|
void |
clearType()
Clears the 'type' field, the 'has' method for this field will now return false
|
boolean |
containsChanges()
Returns true if this instance has any changes.
|
TokenRequest |
copyChanges()
Create a copy of this instance that contains only fields that were set after the constructor was called.
|
CardTransaction |
getCardTransaction()
Information about the card used for the token request
|
Long |
getCreatedTime()
Time that the token request was recorded on the server
|
Customer |
getCustomer()
The customer associated with this token request
|
Long |
getDeletedTime()
Time that the token request was deleted
|
Reference |
getDevice()
The device that processed the token request, a 128-bit UUID, not a normal base-13 Clover ID.
|
Reference |
getEmployee()
The employee who processed the token request
|
String |
getExternalReferenceId()
Merchant-specified reference number
|
protected GenericClient |
getGenericClient() |
String |
getId()
Unique identifier
|
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.
|
Reference |
getMerchant()
The merchant associate with this token request
|
Long |
getModifiedTime()
Time that the token request was initiated on the device
|
String |
getNote()
Note input by the merchant
|
Result |
getResult()
Result of this token request
|
Tender |
getTender()
The tender associated with this token request
|
TransactionInfo |
getTransactionInfo()
Information over transaction information
|
TokenRequestType |
getType()
Type of request
|
boolean |
hasCardTransaction()
Checks whether the 'cardTransaction' field has been set, however the value could be null
|
boolean |
hasCreatedTime()
Checks whether the 'createdTime' field has been set, however the value could be null
|
boolean |
hasCustomer()
Checks whether the 'customer' field has been set, however the value could be null
|
boolean |
hasDeletedTime()
Checks whether the 'deletedTime' field has been set, however the value could be null
|
boolean |
hasDevice()
Checks whether the 'device' field has been set, however the value could be null
|
boolean |
hasEmployee()
Checks whether the 'employee' field has been set, however the value could be null
|
boolean |
hasExternalReferenceId()
Checks whether the 'externalReferenceId' field has been set, however the value could be null
|
boolean |
hasId()
Checks whether the 'id' field has been set, however the value could be null
|
boolean |
hasMerchant()
Checks whether the 'merchant' field has been set, however the value could be null
|
boolean |
hasModifiedTime()
Checks whether the 'modifiedTime' field has been set, however the value could be null
|
boolean |
hasNote()
Checks whether the 'note' field has been set, however the value could be null
|
boolean |
hasResult()
Checks whether the 'result' field has been set, however the value could be null
|
boolean |
hasTender()
Checks whether the 'tender' field has been set, however the value could be null
|
boolean |
hasTransactionInfo()
Checks whether the 'transactionInfo' field has been set, however the value could be null
|
boolean |
hasType()
Checks whether the 'type' field has been set, however the value could be null
|
boolean |
isNotNullCardTransaction()
Checks whether the 'cardTransaction' field is set and is not null
|
boolean |
isNotNullCreatedTime()
Checks whether the 'createdTime' field is set and is not null
|
boolean |
isNotNullCustomer()
Checks whether the 'customer' field is set and is not null
|
boolean |
isNotNullDeletedTime()
Checks whether the 'deletedTime' field is set and is not null
|
boolean |
isNotNullDevice()
Checks whether the 'device' field is set and is not null
|
boolean |
isNotNullEmployee()
Checks whether the 'employee' field is set and is not null
|
boolean |
isNotNullExternalReferenceId()
Checks whether the 'externalReferenceId' field is set and is not null
|
boolean |
isNotNullId()
Checks whether the 'id' field is set and is not null
|
boolean |
isNotNullMerchant()
Checks whether the 'merchant' field is set and is not null
|
boolean |
isNotNullModifiedTime()
Checks whether the 'modifiedTime' field is set and is not null
|
boolean |
isNotNullNote()
Checks whether the 'note' field is set and is not null
|
boolean |
isNotNullResult()
Checks whether the 'result' field is set and is not null
|
boolean |
isNotNullTender()
Checks whether the 'tender' field is set and is not null
|
boolean |
isNotNullTransactionInfo()
Checks whether the 'transactionInfo' field is set and is not null
|
boolean |
isNotNullType()
Checks whether the 'type' field is set and is not null
|
void |
mergeChanges(TokenRequest 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.
|
TokenRequest |
setCardTransaction(CardTransaction cardTransaction)
Sets the field 'cardTransaction'.
|
TokenRequest |
setCreatedTime(Long createdTime)
Sets the field 'createdTime'.
|
TokenRequest |
setCustomer(Customer customer)
Sets the field 'customer'.
|
TokenRequest |
setDeletedTime(Long deletedTime)
Sets the field 'deletedTime'.
|
TokenRequest |
setDevice(Reference device)
Sets the field 'device'.
|
TokenRequest |
setEmployee(Reference employee)
Sets the field 'employee'.
|
TokenRequest |
setExternalReferenceId(String externalReferenceId)
Sets the field 'externalReferenceId'.
|
TokenRequest |
setId(String id)
Sets the field 'id'.
|
TokenRequest |
setMerchant(Reference merchant)
Sets the field 'merchant'.
|
TokenRequest |
setModifiedTime(Long modifiedTime)
Sets the field 'modifiedTime'.
|
TokenRequest |
setNote(String note)
Sets the field 'note'.
|
TokenRequest |
setResult(Result result)
Sets the field 'result'.
|
TokenRequest |
setTender(Tender tender)
Sets the field 'tender'.
|
TokenRequest |
setTransactionInfo(TransactionInfo transactionInfo)
Sets the field 'transactionInfo'.
|
TokenRequest |
setType(TokenRequestType type)
Sets the field 'type'.
|
void |
validate() |
describeContents, getBundle, toString, writeToParcel
public static final Parcelable.Creator<TokenRequest> CREATOR
public static final JSONifiable.Creator<TokenRequest> JSON_CREATOR
public TokenRequest()
protected TokenRequest(boolean noInit)
public TokenRequest(String json) throws IllegalArgumentException
IllegalArgumentException
public TokenRequest(JSONObject jsonObject)
public TokenRequest(TokenRequest src)
public String getId()
public TokenRequestType getType()
public Reference getEmployee()
public Reference getDevice()
public Reference getMerchant()
public Tender getTender()
public Customer getCustomer()
public String getExternalReferenceId()
public CardTransaction getCardTransaction()
public String getNote()
public Result getResult()
public Long getCreatedTime()
public Long getModifiedTime()
public Long getDeletedTime()
public TransactionInfo getTransactionInfo()
protected GenericClient getGenericClient()
getGenericClient
in class GenericParcelable
public JSONObject getJSONObject()
getJSONObject
in interface JSONifiable
public boolean isNotNullId()
public boolean isNotNullType()
public boolean isNotNullEmployee()
public boolean isNotNullDevice()
public boolean isNotNullMerchant()
public boolean isNotNullTender()
public boolean isNotNullCustomer()
public boolean isNotNullExternalReferenceId()
public boolean isNotNullCardTransaction()
public boolean isNotNullNote()
public boolean isNotNullResult()
public boolean isNotNullCreatedTime()
public boolean isNotNullModifiedTime()
public boolean isNotNullDeletedTime()
public boolean isNotNullTransactionInfo()
public boolean hasId()
public boolean hasType()
public boolean hasEmployee()
public boolean hasDevice()
public boolean hasMerchant()
public boolean hasTender()
public boolean hasCustomer()
public boolean hasExternalReferenceId()
public boolean hasCardTransaction()
public boolean hasNote()
public boolean hasResult()
public boolean hasCreatedTime()
public boolean hasModifiedTime()
public boolean hasDeletedTime()
public boolean hasTransactionInfo()
public TokenRequest setId(String id)
public TokenRequest setType(TokenRequestType type)
public TokenRequest setEmployee(Reference employee)
public TokenRequest setDevice(Reference device)
public TokenRequest setMerchant(Reference merchant)
public TokenRequest setTender(Tender tender)
public TokenRequest setCustomer(Customer customer)
public TokenRequest setExternalReferenceId(String externalReferenceId)
public TokenRequest setCardTransaction(CardTransaction cardTransaction)
public TokenRequest setNote(String note)
public TokenRequest setResult(Result result)
public TokenRequest setCreatedTime(Long createdTime)
public TokenRequest setModifiedTime(Long modifiedTime)
public TokenRequest setDeletedTime(Long deletedTime)
public TokenRequest setTransactionInfo(TransactionInfo transactionInfo)
public void clearId()
public void clearType()
public void clearEmployee()
public void clearDevice()
public void clearMerchant()
public void clearTender()
public void clearCustomer()
public void clearExternalReferenceId()
public void clearCardTransaction()
public void clearNote()
public void clearResult()
public void clearCreatedTime()
public void clearModifiedTime()
public void clearDeletedTime()
public void clearTransactionInfo()
public boolean containsChanges()
public void resetChangeLog()
public TokenRequest copyChanges()
public void mergeChanges(TokenRequest src)