Class AppSubscriptionCountry

    • Constructor Detail

      • AppSubscriptionCountry

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

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

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

        public AppSubscriptionCountry​(AppSubscriptionCountry 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
      • getName

        public String getName()
        App subscription country name
      • getAmount

        public Long getAmount()
        The cost of the subscription country
      • getCountry

        public String getCountry()
        The country of the subscription country
      • getDescription

        public String getDescription()
        App subscription country name
      • getActive

        public Boolean getActive()
        App subscription country active status
      • getAppSubscription

        public Reference getAppSubscription()
        Reference to subscription this subscription country belongs to
      • getInstallCount

        public Long getInstallCount()
        The number of merchants that have this app subscription country installed
      • 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
      • isNotNullName

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

        public boolean isNotNullAmount()
        Checks whether the 'amount' field is set and is not null
      • isNotNullCountry

        public boolean isNotNullCountry()
        Checks whether the 'country' field is set and is not null
      • isNotNullDescription

        public boolean isNotNullDescription()
        Checks whether the 'description' field is set and is not null
      • isNotNullActive

        public boolean isNotNullActive()
        Checks whether the 'active' field is set and is not null
      • isNotNullAppSubscription

        public boolean isNotNullAppSubscription()
        Checks whether the 'appSubscription' field is set and is not null
      • isNotNullInstallCount

        public boolean isNotNullInstallCount()
        Checks whether the 'installCount' 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
      • hasName

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

        public boolean hasAmount()
        Checks whether the 'amount' field has been set, however the value could be null
      • hasCountry

        public boolean hasCountry()
        Checks whether the 'country' field has been set, however the value could be null
      • hasDescription

        public boolean hasDescription()
        Checks whether the 'description' field has been set, however the value could be null
      • hasActive

        public boolean hasActive()
        Checks whether the 'active' field has been set, however the value could be null
      • hasAppSubscription

        public boolean hasAppSubscription()
        Checks whether the 'appSubscription' field has been set, however the value could be null
      • hasInstallCount

        public boolean hasInstallCount()
        Checks whether the 'installCount' field has been set, however the value could be null
      • setAppSubscription

        public AppSubscriptionCountry setAppSubscription​(Reference appSubscription)
        Sets the field 'appSubscription'. 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
      • clearName

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

        public void clearAmount()
        Clears the 'amount' field, the 'has' method for this field will now return false
      • clearCountry

        public void clearCountry()
        Clears the 'country' field, the 'has' method for this field will now return false
      • clearDescription

        public void clearDescription()
        Clears the 'description' field, the 'has' method for this field will now return false
      • clearActive

        public void clearActive()
        Clears the 'active' field, the 'has' method for this field will now return false
      • clearAppSubscription

        public void clearAppSubscription()
        Clears the 'appSubscription' field, the 'has' method for this field will now return false
      • clearInstallCount

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

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