Class RolloutMerchant

    • Constructor Detail

      • RolloutMerchant

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

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

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

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

      • getName

        public String getName()
        The merchant's name
      • getRollout

        public Reference getRollout()
        The rollout that the merchant is associated with
      • getMerchant

        public Reference getMerchant()
        The merchant that is associated with the rollout
      • 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
      • isNotNullName

        public boolean isNotNullName()
        Checks whether the 'name' field is set and is not null
      • isNotNullRollout

        public boolean isNotNullRollout()
        Checks whether the 'rollout' field is set and is not null
      • isNotNullMerchant

        public boolean isNotNullMerchant()
        Checks whether the 'merchant' field is set and is not null
      • hasName

        public boolean hasName()
        Checks whether the 'name' field has been set, however the value could be null
      • hasRollout

        public boolean hasRollout()
        Checks whether the 'rollout' 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
      • setRollout

        public RolloutMerchant setRollout​(Reference rollout)
        Sets the field 'rollout'. The parameter is not copied so changes to it will be reflected in this instance and vice-versa.
      • setMerchant

        public RolloutMerchant 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.
      • clearName

        public void clearName()
        Clears the 'name' field, the 'has' method for this field will now return false
      • clearRollout

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

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