Class CountryInfo

    • Constructor Detail

      • CountryInfo

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

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

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

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

      • getCountryCode

        public String getCountryCode()
        ISO 3166-1-alpha-2 code
      • getDisplayName

        public String getDisplayName()
      • getLocalDisplayName

        public String getLocalDisplayName()
      • getDefaultCurrency

        public String getDefaultCurrency()
      • getDefaultTimezone

        public String getDefaultTimezone()
      • getStateProvinceRequired

        public Boolean getStateProvinceRequired()
        Indicates whether the state/province field is required when creating the address
      • getZipPostalRequired

        public Boolean getZipPostalRequired()
        Indicates whether the ZIP/Postal code field is required when creating the address
      • getCountyRequired

        public Boolean getCountyRequired()
        Indicates whether the county field is required when creating the address
      • getDefaultLocale

        public String getDefaultLocale()
      • getAppMarketBillingEnabled

        public Boolean getAppMarketBillingEnabled()
        Indicates whether the country is enabled for app market billing
      • 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
      • isNotNullCountryCode

        public boolean isNotNullCountryCode()
        Checks whether the 'countryCode' field is set and is not null
      • isNotNullDisplayName

        public boolean isNotNullDisplayName()
        Checks whether the 'displayName' field is set and is not null
      • isNotNullLocalDisplayName

        public boolean isNotNullLocalDisplayName()
        Checks whether the 'localDisplayName' field is set and is not null
      • isNotNullDefaultCurrency

        public boolean isNotNullDefaultCurrency()
        Checks whether the 'defaultCurrency' field is set and is not null
      • isNotNullDefaultTimezone

        public boolean isNotNullDefaultTimezone()
        Checks whether the 'defaultTimezone' field is set and is not null
      • isNotNullStateProvinceRequired

        public boolean isNotNullStateProvinceRequired()
        Checks whether the 'stateProvinceRequired' field is set and is not null
      • isNotNullZipPostalRequired

        public boolean isNotNullZipPostalRequired()
        Checks whether the 'zipPostalRequired' field is set and is not null
      • isNotNullCountyRequired

        public boolean isNotNullCountyRequired()
        Checks whether the 'countyRequired' field is set and is not null
      • isNotNullDefaultLocale

        public boolean isNotNullDefaultLocale()
        Checks whether the 'defaultLocale' field is set and is not null
      • isNotNullAppMarketBillingEnabled

        public boolean isNotNullAppMarketBillingEnabled()
        Checks whether the 'appMarketBillingEnabled' field is set and is not null
      • hasCountryCode

        public boolean hasCountryCode()
        Checks whether the 'countryCode' field has been set, however the value could be null
      • hasDisplayName

        public boolean hasDisplayName()
        Checks whether the 'displayName' field has been set, however the value could be null
      • hasLocalDisplayName

        public boolean hasLocalDisplayName()
        Checks whether the 'localDisplayName' field has been set, however the value could be null
      • hasDefaultCurrency

        public boolean hasDefaultCurrency()
        Checks whether the 'defaultCurrency' field has been set, however the value could be null
      • hasDefaultTimezone

        public boolean hasDefaultTimezone()
        Checks whether the 'defaultTimezone' field has been set, however the value could be null
      • hasStateProvinceRequired

        public boolean hasStateProvinceRequired()
        Checks whether the 'stateProvinceRequired' field has been set, however the value could be null
      • hasZipPostalRequired

        public boolean hasZipPostalRequired()
        Checks whether the 'zipPostalRequired' field has been set, however the value could be null
      • hasCountyRequired

        public boolean hasCountyRequired()
        Checks whether the 'countyRequired' field has been set, however the value could be null
      • hasDefaultLocale

        public boolean hasDefaultLocale()
        Checks whether the 'defaultLocale' field has been set, however the value could be null
      • hasAppMarketBillingEnabled

        public boolean hasAppMarketBillingEnabled()
        Checks whether the 'appMarketBillingEnabled' field has been set, however the value could be null
      • setCountryCode

        public CountryInfo setCountryCode​(String countryCode)
        Sets the field 'countryCode'.
      • setDisplayName

        public CountryInfo setDisplayName​(String displayName)
        Sets the field 'displayName'.
      • setLocalDisplayName

        public CountryInfo setLocalDisplayName​(String localDisplayName)
        Sets the field 'localDisplayName'.
      • setDefaultCurrency

        public CountryInfo setDefaultCurrency​(String defaultCurrency)
        Sets the field 'defaultCurrency'.
      • setDefaultTimezone

        public CountryInfo setDefaultTimezone​(String defaultTimezone)
        Sets the field 'defaultTimezone'.
      • setStateProvinceRequired

        public CountryInfo setStateProvinceRequired​(Boolean stateProvinceRequired)
        Sets the field 'stateProvinceRequired'.
      • setZipPostalRequired

        public CountryInfo setZipPostalRequired​(Boolean zipPostalRequired)
        Sets the field 'zipPostalRequired'.
      • setCountyRequired

        public CountryInfo setCountyRequired​(Boolean countyRequired)
        Sets the field 'countyRequired'.
      • setDefaultLocale

        public CountryInfo setDefaultLocale​(String defaultLocale)
        Sets the field 'defaultLocale'.
      • setAppMarketBillingEnabled

        public CountryInfo setAppMarketBillingEnabled​(Boolean appMarketBillingEnabled)
        Sets the field 'appMarketBillingEnabled'.
      • clearCountryCode

        public void clearCountryCode()
        Clears the 'countryCode' field, the 'has' method for this field will now return false
      • clearDisplayName

        public void clearDisplayName()
        Clears the 'displayName' field, the 'has' method for this field will now return false
      • clearLocalDisplayName

        public void clearLocalDisplayName()
        Clears the 'localDisplayName' field, the 'has' method for this field will now return false
      • clearDefaultCurrency

        public void clearDefaultCurrency()
        Clears the 'defaultCurrency' field, the 'has' method for this field will now return false
      • clearDefaultTimezone

        public void clearDefaultTimezone()
        Clears the 'defaultTimezone' field, the 'has' method for this field will now return false
      • clearStateProvinceRequired

        public void clearStateProvinceRequired()
        Clears the 'stateProvinceRequired' field, the 'has' method for this field will now return false
      • clearZipPostalRequired

        public void clearZipPostalRequired()
        Clears the 'zipPostalRequired' field, the 'has' method for this field will now return false
      • clearCountyRequired

        public void clearCountyRequired()
        Clears the 'countyRequired' field, the 'has' method for this field will now return false
      • clearDefaultLocale

        public void clearDefaultLocale()
        Clears the 'defaultLocale' field, the 'has' method for this field will now return false
      • clearAppMarketBillingEnabled

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

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