Class TokenRequest

    • Constructor Detail

      • TokenRequest

        public TokenRequest()
        Constructs a new empty instance.
      • TokenRequest

        protected TokenRequest​(boolean noInit)
        Constructs a new empty instance.
      • 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
      • 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
      • 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 interface JSONifiable
      • 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
      • 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.
      • 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.