Class TokenizeCardRequest

    • Constructor Detail

      • TokenizeCardRequest

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

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

        public TokenizeCardRequest​(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.
      • TokenizeCardRequest

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

      • getApiKey

        public String getApiKey()
      • getMultiUseToken

        public Boolean getMultiUseToken()
      • getSuppressConfirmation

        public Boolean getSuppressConfirmation()
        Flag indicating whether or not the confirmation is presented to the user
      • getCardMessage

        public String getCardMessage()
        Message to be displayed
      • getCardEntryMode

        public Integer getCardEntryMode()
        Card Entry Mode supported for the transaction. Bits #1 indicates MAG_STRIPE, #2 indicates CONTACT, #3 indicates CONTACTLESS, #4 indicates MANUAL
      • getAppTracking

        public AppTracking getAppTracking()
        Tracking information for the app that created this payment.
      • 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
      • isNotNullApiKey

        public boolean isNotNullApiKey()
        Checks whether the 'apiKey' field is set and is not null
      • isNotNullMultiUseToken

        public boolean isNotNullMultiUseToken()
        Checks whether the 'multiUseToken' field is set and is not null
      • isNotNullSuppressConfirmation

        public boolean isNotNullSuppressConfirmation()
        Checks whether the 'suppressConfirmation' field is set and is not null
      • isNotNullCardMessage

        public boolean isNotNullCardMessage()
        Checks whether the 'cardMessage' field is set and is not null
      • isNotNullCardEntryMode

        public boolean isNotNullCardEntryMode()
        Checks whether the 'cardEntryMode' field is set and is not null
      • isNotNullAppTracking

        public boolean isNotNullAppTracking()
        Checks whether the 'appTracking' field is set and is not null
      • hasApiKey

        public boolean hasApiKey()
        Checks whether the 'apiKey' field has been set, however the value could be null
      • hasMultiUseToken

        public boolean hasMultiUseToken()
        Checks whether the 'multiUseToken' field has been set, however the value could be null
      • hasSuppressConfirmation

        public boolean hasSuppressConfirmation()
        Checks whether the 'suppressConfirmation' field has been set, however the value could be null
      • hasCardMessage

        public boolean hasCardMessage()
        Checks whether the 'cardMessage' field has been set, however the value could be null
      • hasCardEntryMode

        public boolean hasCardEntryMode()
        Checks whether the 'cardEntryMode' field has been set, however the value could be null
      • hasAppTracking

        public boolean hasAppTracking()
        Checks whether the 'appTracking' field has been set, however the value could be null
      • setSuppressConfirmation

        public TokenizeCardRequest setSuppressConfirmation​(Boolean suppressConfirmation)
        Sets the field 'suppressConfirmation'.
      • setAppTracking

        public TokenizeCardRequest setAppTracking​(AppTracking appTracking)
        Sets the field 'appTracking'. The parameter is not copied so changes to it will be reflected in this instance and vice-versa.
      • clearApiKey

        public void clearApiKey()
        Clears the 'apiKey' field, the 'has' method for this field will now return false
      • clearMultiUseToken

        public void clearMultiUseToken()
        Clears the 'multiUseToken' field, the 'has' method for this field will now return false
      • clearSuppressConfirmation

        public void clearSuppressConfirmation()
        Clears the 'suppressConfirmation' field, the 'has' method for this field will now return false
      • clearCardMessage

        public void clearCardMessage()
        Clears the 'cardMessage' field, the 'has' method for this field will now return false
      • clearCardEntryMode

        public void clearCardEntryMode()
        Clears the 'cardEntryMode' field, the 'has' method for this field will now return false
      • clearAppTracking

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

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