Class ECommTransactionInfo

    • Constructor Detail

      • ECommTransactionInfo

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

        protected ECommTransactionInfo​(boolean noInit)
        Constructs a new empty instance.
      • ECommTransactionInfo

        public 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

        public ECommTransactionInfo​(ECommTransactionInfo src)
        Constructs a new instance that is a deep copy of the source instance. It does not copy the bundle or changelog.
    • Method Detail

      • getECommTransaction

        public Boolean getECommTransaction()
        Set to True when it is an Ecomm Transaction
      • getCredentialOnFile

        public Boolean getCredentialOnFile()
        Set to true when Card On File is used for the transaction
      • getTokenType

        public TokenType getTokenType()
      • 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
      • isNotNullECommTransaction

        public boolean isNotNullECommTransaction()
        Checks whether the 'eCommTransaction' field is set and is not null
      • isNotNullCredentialOnFile

        public boolean isNotNullCredentialOnFile()
        Checks whether the 'credentialOnFile' field is set and is not null
      • isNotNullTokenType

        public boolean isNotNullTokenType()
        Checks whether the 'tokenType' field is set and is not null
      • hasECommTransaction

        public boolean hasECommTransaction()
        Checks whether the 'eCommTransaction' field has been set, however the value could be null
      • hasCredentialOnFile

        public boolean hasCredentialOnFile()
        Checks whether the 'credentialOnFile' field has been set, however the value could be null
      • hasTokenType

        public boolean hasTokenType()
        Checks whether the 'tokenType' field has been set, however the value could be null
      • setECommTransaction

        public ECommTransactionInfo setECommTransaction​(Boolean eCommTransaction)
        Sets the field 'eCommTransaction'.
      • setCredentialOnFile

        public ECommTransactionInfo setCredentialOnFile​(Boolean credentialOnFile)
        Sets the field 'credentialOnFile'.
      • clearECommTransaction

        public void clearECommTransaction()
        Clears the 'eCommTransaction' field, the 'has' method for this field will now return false
      • clearCredentialOnFile

        public void clearCredentialOnFile()
        Clears the 'credentialOnFile' field, the 'has' method for this field will now return false
      • clearTokenType

        public void clearTokenType()
        Clears the 'tokenType' 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 ECommTransactionInfo copyChanges()
        Create a copy of this instance that contains only fields that were set after the constructor was called.
      • mergeChanges

        public void mergeChanges​(ECommTransactionInfo src)
        Copy all the changed fields from the given source to this instance.