Class MerchantGroupAppVersion

    • Constructor Detail

      • MerchantGroupAppVersion

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

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

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

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

      • getId

        public String getId()
        Unique identifier.
      • getMerchantGroup

        public Reference getMerchantGroup()
        Identifies the merchant group of interest.
      • getApp

        public Reference getApp()
        Identifies the application of interest.
      • getVersion

        public Reference getVersion()
        The targeted app version.
      • getDeviceType

        public Reference getDeviceType()
        The targeted device type, if any.
      • getAssociationTime

        public Long getAssociationTime()
        The time this android version was associated to this merchant group.
      • 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
      • isNotNullId

        public boolean isNotNullId()
        Checks whether the 'id' field is set and is not null
      • isNotNullMerchantGroup

        public boolean isNotNullMerchantGroup()
        Checks whether the 'merchantGroup' field is set and is not null
      • isNotNullApp

        public boolean isNotNullApp()
        Checks whether the 'app' field is set and is not null
      • isNotNullVersion

        public boolean isNotNullVersion()
        Checks whether the 'version' field is set and is not null
      • isNotNullDeviceType

        public boolean isNotNullDeviceType()
        Checks whether the 'deviceType' field is set and is not null
      • isNotNullAssociationTime

        public boolean isNotNullAssociationTime()
        Checks whether the 'associationTime' field is set and is not null
      • hasId

        public boolean hasId()
        Checks whether the 'id' field has been set, however the value could be null
      • hasMerchantGroup

        public boolean hasMerchantGroup()
        Checks whether the 'merchantGroup' field has been set, however the value could be null
      • hasApp

        public boolean hasApp()
        Checks whether the 'app' field has been set, however the value could be null
      • hasVersion

        public boolean hasVersion()
        Checks whether the 'version' field has been set, however the value could be null
      • hasDeviceType

        public boolean hasDeviceType()
        Checks whether the 'deviceType' field has been set, however the value could be null
      • hasAssociationTime

        public boolean hasAssociationTime()
        Checks whether the 'associationTime' field has been set, however the value could be null
      • setMerchantGroup

        public MerchantGroupAppVersion setMerchantGroup​(Reference merchantGroup)
        Sets the field 'merchantGroup'. The parameter is not copied so changes to it will be reflected in this instance and vice-versa.
      • setApp

        public MerchantGroupAppVersion setApp​(Reference app)
        Sets the field 'app'. The parameter is not copied so changes to it will be reflected in this instance and vice-versa.
      • setVersion

        public MerchantGroupAppVersion setVersion​(Reference version)
        Sets the field 'version'. The parameter is not copied so changes to it will be reflected in this instance and vice-versa.
      • setDeviceType

        public MerchantGroupAppVersion setDeviceType​(Reference deviceType)
        Sets the field 'deviceType'. The parameter is not copied so changes to it will be reflected in this instance and vice-versa.
      • clearId

        public void clearId()
        Clears the 'id' field, the 'has' method for this field will now return false
      • clearMerchantGroup

        public void clearMerchantGroup()
        Clears the 'merchantGroup' field, the 'has' method for this field will now return false
      • clearApp

        public void clearApp()
        Clears the 'app' field, the 'has' method for this field will now return false
      • clearVersion

        public void clearVersion()
        Clears the 'version' field, the 'has' method for this field will now return false
      • clearDeviceType

        public void clearDeviceType()
        Clears the 'deviceType' field, the 'has' method for this field will now return false
      • clearAssociationTime

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

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