Class VasSettings

    • Constructor Detail

      • VasSettings

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

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

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

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

      • getVasMode

        public VasMode getVasMode()
        Populated per tx. If not passed PAY_ONLY is the default behavior
      • getServiceTypes

        public List<VasDataType> getServiceTypes()
        Vas service types of interest for this txn
      • getExtras

        public Map<String,​String> getExtras()
        Additional context relevant extras such as EXTRA_ORDER_ID
      • getPushMode

        public VasPushMode getPushMode()
        Indicates if vas is push url only, no push, or push in addition to GET
      • 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
      • isNotNullVasMode

        public boolean isNotNullVasMode()
        Checks whether the 'vasMode' field is set and is not null
      • isNotNullServiceTypes

        public boolean isNotNullServiceTypes()
        Checks whether the 'serviceTypes' field is set and is not null
      • isNotEmptyServiceTypes

        public boolean isNotEmptyServiceTypes()
        Checks whether the 'serviceTypes' field is set and is not null and is not empty
      • isNotNullExtras

        public boolean isNotNullExtras()
        Checks whether the 'extras' field is set and is not null
      • isNotEmptyExtras

        public boolean isNotEmptyExtras()
        Checks whether the 'extras' field is set and is not null and is not empty
      • isNotNullPushMode

        public boolean isNotNullPushMode()
        Checks whether the 'pushMode' field is set and is not null
      • hasVasMode

        public boolean hasVasMode()
        Checks whether the 'vasMode' field has been set, however the value could be null
      • hasServiceTypes

        public boolean hasServiceTypes()
        Checks whether the 'serviceTypes' field has been set, however the value could be null
      • hasExtras

        public boolean hasExtras()
        Checks whether the 'extras' field has been set, however the value could be null
      • hasPushMode

        public boolean hasPushMode()
        Checks whether the 'pushMode' field has been set, however the value could be null
      • setVasMode

        public VasSettings setVasMode​(VasMode vasMode)
        Sets the field 'vasMode'.
      • setServiceTypes

        public VasSettings setServiceTypes​(List<VasDataType> serviceTypes)
        Sets the field 'serviceTypes'. Nulls in the given List are skipped. List parameter is copied, so it will not reflect any changes, but objects inside it will.
      • clearVasMode

        public void clearVasMode()
        Clears the 'vasMode' field, the 'has' method for this field will now return false
      • clearServiceTypes

        public void clearServiceTypes()
        Clears the 'serviceTypes' field, the 'has' method for this field will now return false
      • clearExtras

        public void clearExtras()
        Clears the 'extras' field, the 'has' method for this field will now return false
      • clearPushMode

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

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