Class TokenizeCardResponse

    • Constructor Detail

      • TokenizeCardResponse

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

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

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

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

      • getStatus

        public Status getStatus()
        Result of tokenization
      • getMultiUseToken

        public Boolean getMultiUseToken()
      • getConfirmationSuppressed

        public Boolean getConfirmationSuppressed()
        Flag indicating whether or not the confirmation was presented to the user
      • getFailureReason

        public FailureReason getFailureReason()
        Reason for tokenization failure
      • getReason

        public String getReason()
      • 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
      • isNotNullStatus

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

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

        public boolean isNotNullConfirmationSuppressed()
        Checks whether the 'confirmationSuppressed' field is set and is not null
      • isNotNullTokenResponse

        public boolean isNotNullTokenResponse()
        Checks whether the 'tokenResponse' field is set and is not null
      • isNotNullFailureReason

        public boolean isNotNullFailureReason()
        Checks whether the 'failureReason' field is set and is not null
      • isNotNullReason

        public boolean isNotNullReason()
        Checks whether the 'reason' field is set and is not null
      • hasStatus

        public boolean hasStatus()
        Checks whether the 'status' 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
      • hasConfirmationSuppressed

        public boolean hasConfirmationSuppressed()
        Checks whether the 'confirmationSuppressed' field has been set, however the value could be null
      • hasTokenResponse

        public boolean hasTokenResponse()
        Checks whether the 'tokenResponse' field has been set, however the value could be null
      • hasFailureReason

        public boolean hasFailureReason()
        Checks whether the 'failureReason' field has been set, however the value could be null
      • hasReason

        public boolean hasReason()
        Checks whether the 'reason' field has been set, however the value could be null
      • setConfirmationSuppressed

        public TokenizeCardResponse setConfirmationSuppressed​(Boolean confirmationSuppressed)
        Sets the field 'confirmationSuppressed'.
      • setTokenResponse

        public TokenizeCardResponse setTokenResponse​(CreateTokenResponse tokenResponse)
        Sets the field 'tokenResponse'. The parameter is not copied so changes to it will be reflected in this instance and vice-versa.
      • clearStatus

        public void clearStatus()
        Clears the 'status' 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
      • clearConfirmationSuppressed

        public void clearConfirmationSuppressed()
        Clears the 'confirmationSuppressed' field, the 'has' method for this field will now return false
      • clearTokenResponse

        public void clearTokenResponse()
        Clears the 'tokenResponse' field, the 'has' method for this field will now return false
      • clearFailureReason

        public void clearFailureReason()
        Clears the 'failureReason' field, the 'has' method for this field will now return false
      • clearReason

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

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