Package com.clover.sdk.v3.payments
Class TokenRequest
- java.lang.Object
-
- com.clover.sdk.GenericParcelable
-
- com.clover.sdk.v3.payments.TokenRequest
-
- All Implemented Interfaces:
Parcelable
,JSONifiable
,Validator
public class TokenRequest 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
TokenRequest.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<TokenRequest>
CREATOR
static JSONifiable.Creator<TokenRequest>
JSON_CREATOR
-
Fields inherited from interface android.os.Parcelable
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
-
-
Constructor Summary
Constructors Modifier Constructor Description TokenRequest()
Constructs a new empty instance.protected
TokenRequest(boolean noInit)
Constructs a new empty instance.TokenRequest(TokenRequest src)
Constructs a new instance that is a deep copy of the source instance.TokenRequest(String json)
Constructs a new instance from the given JSON String.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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clearCardTransaction()
Clears the 'cardTransaction' field, the 'has' method for this field will now return falsevoid
clearCreatedTime()
Clears the 'createdTime' field, the 'has' method for this field will now return falsevoid
clearCustomer()
Clears the 'customer' field, the 'has' method for this field will now return falsevoid
clearDeletedTime()
Clears the 'deletedTime' field, the 'has' method for this field will now return falsevoid
clearDevice()
Clears the 'device' field, the 'has' method for this field will now return falsevoid
clearEmployee()
Clears the 'employee' field, the 'has' method for this field will now return falsevoid
clearExternalReferenceId()
Clears the 'externalReferenceId' field, the 'has' method for this field will now return falsevoid
clearId()
Clears the 'id' field, the 'has' method for this field will now return falsevoid
clearMerchant()
Clears the 'merchant' field, the 'has' method for this field will now return falsevoid
clearModifiedTime()
Clears the 'modifiedTime' field, the 'has' method for this field will now return falsevoid
clearNote()
Clears the 'note' field, the 'has' method for this field will now return falsevoid
clearResult()
Clears the 'result' field, the 'has' method for this field will now return falsevoid
clearTender()
Clears the 'tender' field, the 'has' method for this field will now return falsevoid
clearTransactionInfo()
Clears the 'transactionInfo' field, the 'has' method for this field will now return falsevoid
clearType()
Clears the 'type' field, the 'has' method for this field will now return falseboolean
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 requestLong
getCreatedTime()
Time that the token request was recorded on the serverCustomer
getCustomer()
The customer associated with this token requestLong
getDeletedTime()
Time that the token request was deletedReference
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 requestString
getExternalReferenceId()
Merchant-specified reference numberprotected GenericClient
getGenericClient()
String
getId()
Unique identifierJSONObject
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 requestLong
getModifiedTime()
Time that the token request was initiated on the deviceString
getNote()
Note input by the merchantResult
getResult()
Result of this token requestTender
getTender()
The tender associated with this token requestTransactionInfo
getTransactionInfo()
Information over transaction informationTokenRequestType
getType()
Type of requestboolean
hasCardTransaction()
Checks whether the 'cardTransaction' field has been set, however the value could be nullboolean
hasCreatedTime()
Checks whether the 'createdTime' field has been set, however the value could be nullboolean
hasCustomer()
Checks whether the 'customer' field has been set, however the value could be nullboolean
hasDeletedTime()
Checks whether the 'deletedTime' field has been set, however the value could be nullboolean
hasDevice()
Checks whether the 'device' field has been set, however the value could be nullboolean
hasEmployee()
Checks whether the 'employee' field has been set, however the value could be nullboolean
hasExternalReferenceId()
Checks whether the 'externalReferenceId' field has been set, however the value could be nullboolean
hasId()
Checks whether the 'id' field has been set, however the value could be nullboolean
hasMerchant()
Checks whether the 'merchant' field has been set, however the value could be nullboolean
hasModifiedTime()
Checks whether the 'modifiedTime' field has been set, however the value could be nullboolean
hasNote()
Checks whether the 'note' field has been set, however the value could be nullboolean
hasResult()
Checks whether the 'result' field has been set, however the value could be nullboolean
hasTender()
Checks whether the 'tender' field has been set, however the value could be nullboolean
hasTransactionInfo()
Checks whether the 'transactionInfo' field has been set, however the value could be nullboolean
hasType()
Checks whether the 'type' field has been set, however the value could be nullboolean
isNotNullCardTransaction()
Checks whether the 'cardTransaction' field is set and is not nullboolean
isNotNullCreatedTime()
Checks whether the 'createdTime' field is set and is not nullboolean
isNotNullCustomer()
Checks whether the 'customer' field is set and is not nullboolean
isNotNullDeletedTime()
Checks whether the 'deletedTime' field is set and is not nullboolean
isNotNullDevice()
Checks whether the 'device' field is set and is not nullboolean
isNotNullEmployee()
Checks whether the 'employee' field is set and is not nullboolean
isNotNullExternalReferenceId()
Checks whether the 'externalReferenceId' field is set and is not nullboolean
isNotNullId()
Checks whether the 'id' field is set and is not nullboolean
isNotNullMerchant()
Checks whether the 'merchant' field is set and is not nullboolean
isNotNullModifiedTime()
Checks whether the 'modifiedTime' field is set and is not nullboolean
isNotNullNote()
Checks whether the 'note' field is set and is not nullboolean
isNotNullResult()
Checks whether the 'result' field is set and is not nullboolean
isNotNullTender()
Checks whether the 'tender' field is set and is not nullboolean
isNotNullTransactionInfo()
Checks whether the 'transactionInfo' field is set and is not nullboolean
isNotNullType()
Checks whether the 'type' field is set and is not nullvoid
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()
-
Methods inherited from class com.clover.sdk.GenericParcelable
describeContents, getBundle, toString, writeToParcel
-
-
-
-
Field Detail
-
CREATOR
public static final Parcelable.Creator<TokenRequest> CREATOR
-
JSON_CREATOR
public static final JSONifiable.Creator<TokenRequest> JSON_CREATOR
-
-
Constructor Detail
-
TokenRequest
public TokenRequest()
Constructs a new empty instance.
-
TokenRequest
protected TokenRequest(boolean noInit)
Constructs a new empty instance.
-
TokenRequest
public TokenRequest(String json) throws IllegalArgumentException
Constructs a new instance from the given JSON String.- Throws:
IllegalArgumentException
-
TokenRequest
public 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
public TokenRequest(TokenRequest src)
Constructs a new instance that is a deep copy of the source instance. It does not copy the bundle or changelog.
-
-
Method Detail
-
getId
public String getId()
Unique identifier
-
getType
public TokenRequestType getType()
Type of request
-
getEmployee
public Reference getEmployee()
The employee who processed the token request
-
getDevice
public Reference getDevice()
The device that processed the token request, a 128-bit UUID, not a normal base-13 Clover ID.
-
getMerchant
public Reference getMerchant()
The merchant associate with this token request
-
getTender
public Tender getTender()
The tender associated with this token request
-
getCustomer
public Customer getCustomer()
The customer associated with this token request
-
getExternalReferenceId
public String getExternalReferenceId()
Merchant-specified reference number
-
getCardTransaction
public CardTransaction getCardTransaction()
Information about the card used for the token request
-
getNote
public String getNote()
Note input by the merchant
-
getResult
public Result getResult()
Result of this token request
-
getCreatedTime
public Long getCreatedTime()
Time that the token request was recorded on the server
-
getModifiedTime
public Long getModifiedTime()
Time that the token request was initiated on the device
-
getDeletedTime
public Long getDeletedTime()
Time that the token request was deleted
-
getTransactionInfo
public TransactionInfo getTransactionInfo()
Information over transaction information
-
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
-
isNotNullId
public boolean isNotNullId()
Checks whether the 'id' field is set and is not null
-
isNotNullType
public boolean isNotNullType()
Checks whether the 'type' field is set and is not null
-
isNotNullEmployee
public boolean isNotNullEmployee()
Checks whether the 'employee' field is set and is not null
-
isNotNullDevice
public boolean isNotNullDevice()
Checks whether the 'device' field is set and is not null
-
isNotNullMerchant
public boolean isNotNullMerchant()
Checks whether the 'merchant' field is set and is not null
-
isNotNullTender
public boolean isNotNullTender()
Checks whether the 'tender' field is set and is not null
-
isNotNullCustomer
public boolean isNotNullCustomer()
Checks whether the 'customer' field is set and is not null
-
isNotNullExternalReferenceId
public boolean isNotNullExternalReferenceId()
Checks whether the 'externalReferenceId' field is set and is not null
-
isNotNullCardTransaction
public boolean isNotNullCardTransaction()
Checks whether the 'cardTransaction' field is set and is not null
-
isNotNullNote
public boolean isNotNullNote()
Checks whether the 'note' field is set and is not null
-
isNotNullResult
public boolean isNotNullResult()
Checks whether the 'result' field is set and is not null
-
isNotNullCreatedTime
public boolean isNotNullCreatedTime()
Checks whether the 'createdTime' field is set and is not null
-
isNotNullModifiedTime
public boolean isNotNullModifiedTime()
Checks whether the 'modifiedTime' field is set and is not null
-
isNotNullDeletedTime
public boolean isNotNullDeletedTime()
Checks whether the 'deletedTime' field is set and is not null
-
isNotNullTransactionInfo
public boolean isNotNullTransactionInfo()
Checks whether the 'transactionInfo' field is set and is not null
-
hasId
public boolean hasId()
Checks whether the 'id' field has been set, however the value could be null
-
hasType
public boolean hasType()
Checks whether the 'type' field has been set, however the value could be null
-
hasEmployee
public boolean hasEmployee()
Checks whether the 'employee' field has been set, however the value could be null
-
hasDevice
public boolean hasDevice()
Checks whether the 'device' field has been set, however the value could be null
-
hasMerchant
public boolean hasMerchant()
Checks whether the 'merchant' field has been set, however the value could be null
-
hasTender
public boolean hasTender()
Checks whether the 'tender' field has been set, however the value could be null
-
hasCustomer
public boolean hasCustomer()
Checks whether the 'customer' field has been set, however the value could be null
-
hasExternalReferenceId
public boolean hasExternalReferenceId()
Checks whether the 'externalReferenceId' field has been set, however the value could be null
-
hasCardTransaction
public boolean hasCardTransaction()
Checks whether the 'cardTransaction' field has been set, however the value could be null
-
hasNote
public boolean hasNote()
Checks whether the 'note' field has been set, however the value could be null
-
hasResult
public boolean hasResult()
Checks whether the 'result' field has been set, however the value could be null
-
hasCreatedTime
public boolean hasCreatedTime()
Checks whether the 'createdTime' field has been set, however the value could be null
-
hasModifiedTime
public boolean hasModifiedTime()
Checks whether the 'modifiedTime' field has been set, however the value could be null
-
hasDeletedTime
public boolean hasDeletedTime()
Checks whether the 'deletedTime' field has been set, however the value could be null
-
hasTransactionInfo
public boolean hasTransactionInfo()
Checks whether the 'transactionInfo' field has been set, however the value could be null
-
setId
public TokenRequest setId(String id)
Sets the field 'id'.
-
setType
public TokenRequest setType(TokenRequestType type)
Sets the field 'type'.
-
setEmployee
public TokenRequest setEmployee(Reference employee)
Sets the field 'employee'. The parameter is not copied so changes to it will be reflected in this instance and vice-versa.
-
setDevice
public TokenRequest setDevice(Reference device)
Sets the field 'device'. The parameter is not copied so changes to it will be reflected in this instance and vice-versa.
-
setMerchant
public TokenRequest setMerchant(Reference merchant)
Sets the field 'merchant'. The parameter is not copied so changes to it will be reflected in this instance and vice-versa.
-
setTender
public TokenRequest setTender(Tender tender)
Sets the field 'tender'. The parameter is not copied so changes to it will be reflected in this instance and vice-versa.
-
setCustomer
public TokenRequest setCustomer(Customer customer)
Sets the field 'customer'. The parameter is not copied so changes to it will be reflected in this instance and vice-versa.
-
setExternalReferenceId
public TokenRequest setExternalReferenceId(String externalReferenceId)
Sets the field 'externalReferenceId'.
-
setCardTransaction
public TokenRequest setCardTransaction(CardTransaction cardTransaction)
Sets the field 'cardTransaction'. The parameter is not copied so changes to it will be reflected in this instance and vice-versa.
-
setNote
public TokenRequest setNote(String note)
Sets the field 'note'.
-
setResult
public TokenRequest setResult(Result result)
Sets the field 'result'.
-
setCreatedTime
public TokenRequest setCreatedTime(Long createdTime)
Sets the field 'createdTime'.
-
setModifiedTime
public TokenRequest setModifiedTime(Long modifiedTime)
Sets the field 'modifiedTime'.
-
setDeletedTime
public TokenRequest setDeletedTime(Long deletedTime)
Sets the field 'deletedTime'.
-
setTransactionInfo
public TokenRequest setTransactionInfo(TransactionInfo transactionInfo)
Sets the field 'transactionInfo'. The parameter is not copied so changes to it will be reflected in this instance and vice-versa.
-
clearId
public void clearId()
Clears the 'id' field, the 'has' method for this field will now return false
-
clearType
public void clearType()
Clears the 'type' field, the 'has' method for this field will now return false
-
clearEmployee
public void clearEmployee()
Clears the 'employee' field, the 'has' method for this field will now return false
-
clearDevice
public void clearDevice()
Clears the 'device' field, the 'has' method for this field will now return false
-
clearMerchant
public void clearMerchant()
Clears the 'merchant' field, the 'has' method for this field will now return false
-
clearTender
public void clearTender()
Clears the 'tender' field, the 'has' method for this field will now return false
-
clearCustomer
public void clearCustomer()
Clears the 'customer' field, the 'has' method for this field will now return false
-
clearExternalReferenceId
public void clearExternalReferenceId()
Clears the 'externalReferenceId' field, the 'has' method for this field will now return false
-
clearCardTransaction
public void clearCardTransaction()
Clears the 'cardTransaction' field, the 'has' method for this field will now return false
-
clearNote
public void clearNote()
Clears the 'note' field, the 'has' method for this field will now return false
-
clearResult
public void clearResult()
Clears the 'result' field, the 'has' method for this field will now return false
-
clearCreatedTime
public void clearCreatedTime()
Clears the 'createdTime' field, the 'has' method for this field will now return false
-
clearModifiedTime
public void clearModifiedTime()
Clears the 'modifiedTime' field, the 'has' method for this field will now return false
-
clearDeletedTime
public void clearDeletedTime()
Clears the 'deletedTime' field, the 'has' method for this field will now return false
-
clearTransactionInfo
public void clearTransactionInfo()
Clears the 'transactionInfo' 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 TokenRequest copyChanges()
Create a copy of this instance that contains only fields that were set after the constructor was called.
-
mergeChanges
public void mergeChanges(TokenRequest src)
Copy all the changed fields from the given source to this instance.
-
-