Package com.clover.sdk.v3.base
Class CountryInfo
- java.lang.Object
-
- com.clover.sdk.GenericParcelable
-
- com.clover.sdk.v3.base.CountryInfo
-
- All Implemented Interfaces:
Parcelable
,JSONifiable
,Validator
public class CountryInfo extends GenericParcelable implements Validator, JSONifiable
This is an auto-generated Clover data object.Fields
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
CountryInfo.Constraints
-
Nested classes/interfaces inherited from interface com.clover.sdk.JSONifiable
JSONifiable.Creator<T>
-
Nested classes/interfaces inherited from interface android.os.Parcelable
Parcelable.ClassLoaderCreator<T extends Object>, Parcelable.Creator<T extends Object>
-
-
Field Summary
Fields Modifier and Type Field Description static Parcelable.Creator<CountryInfo>
CREATOR
static JSONifiable.Creator<CountryInfo>
JSON_CREATOR
-
Fields inherited from interface android.os.Parcelable
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
-
-
Constructor Summary
Constructors Modifier Constructor Description CountryInfo()
Constructs a new empty instance.protected
CountryInfo(boolean noInit)
Constructs a new empty instance.CountryInfo(CountryInfo src)
Constructs a new instance that is a deep copy of the source instance.CountryInfo(String json)
Constructs a new instance from the given JSON String.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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clearAppMarketBillingEnabled()
Clears the 'appMarketBillingEnabled' field, the 'has' method for this field will now return falsevoid
clearCountryCode()
Clears the 'countryCode' field, the 'has' method for this field will now return falsevoid
clearCountyRequired()
Clears the 'countyRequired' field, the 'has' method for this field will now return falsevoid
clearDefaultCurrency()
Clears the 'defaultCurrency' field, the 'has' method for this field will now return falsevoid
clearDefaultLocale()
Clears the 'defaultLocale' field, the 'has' method for this field will now return falsevoid
clearDefaultTimezone()
Clears the 'defaultTimezone' field, the 'has' method for this field will now return falsevoid
clearDisplayName()
Clears the 'displayName' field, the 'has' method for this field will now return falsevoid
clearLocalDisplayName()
Clears the 'localDisplayName' field, the 'has' method for this field will now return falsevoid
clearStateProvinceRequired()
Clears the 'stateProvinceRequired' field, the 'has' method for this field will now return falsevoid
clearZipPostalRequired()
Clears the 'zipPostalRequired' field, the 'has' method for this field will now return falseboolean
containsChanges()
Returns true if this instance has any changes.CountryInfo
copyChanges()
Create a copy of this instance that contains only fields that were set after the constructor was called.Boolean
getAppMarketBillingEnabled()
Indicates whether the country is enabled for app market billingString
getCountryCode()
ISO 3166-1-alpha-2 codeBoolean
getCountyRequired()
Indicates whether the county field is required when creating the addressString
getDefaultCurrency()
String
getDefaultLocale()
String
getDefaultTimezone()
String
getDisplayName()
protected GenericClient
getGenericClient()
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.String
getLocalDisplayName()
Boolean
getStateProvinceRequired()
Indicates whether the state/province field is required when creating the addressBoolean
getZipPostalRequired()
Indicates whether the ZIP/Postal code field is required when creating the addressboolean
hasAppMarketBillingEnabled()
Checks whether the 'appMarketBillingEnabled' field has been set, however the value could be nullboolean
hasCountryCode()
Checks whether the 'countryCode' field has been set, however the value could be nullboolean
hasCountyRequired()
Checks whether the 'countyRequired' field has been set, however the value could be nullboolean
hasDefaultCurrency()
Checks whether the 'defaultCurrency' field has been set, however the value could be nullboolean
hasDefaultLocale()
Checks whether the 'defaultLocale' field has been set, however the value could be nullboolean
hasDefaultTimezone()
Checks whether the 'defaultTimezone' field has been set, however the value could be nullboolean
hasDisplayName()
Checks whether the 'displayName' field has been set, however the value could be nullboolean
hasLocalDisplayName()
Checks whether the 'localDisplayName' field has been set, however the value could be nullboolean
hasStateProvinceRequired()
Checks whether the 'stateProvinceRequired' field has been set, however the value could be nullboolean
hasZipPostalRequired()
Checks whether the 'zipPostalRequired' field has been set, however the value could be nullboolean
isNotNullAppMarketBillingEnabled()
Checks whether the 'appMarketBillingEnabled' field is set and is not nullboolean
isNotNullCountryCode()
Checks whether the 'countryCode' field is set and is not nullboolean
isNotNullCountyRequired()
Checks whether the 'countyRequired' field is set and is not nullboolean
isNotNullDefaultCurrency()
Checks whether the 'defaultCurrency' field is set and is not nullboolean
isNotNullDefaultLocale()
Checks whether the 'defaultLocale' field is set and is not nullboolean
isNotNullDefaultTimezone()
Checks whether the 'defaultTimezone' field is set and is not nullboolean
isNotNullDisplayName()
Checks whether the 'displayName' field is set and is not nullboolean
isNotNullLocalDisplayName()
Checks whether the 'localDisplayName' field is set and is not nullboolean
isNotNullStateProvinceRequired()
Checks whether the 'stateProvinceRequired' field is set and is not nullboolean
isNotNullZipPostalRequired()
Checks whether the 'zipPostalRequired' field is set and is not nullvoid
mergeChanges(CountryInfo src)
Copy all the changed fields from the given source to this instance.void
resetChangeLog()
Reset the log of changes made to this instance, calling copyChanges() after this would return an empty instance.CountryInfo
setAppMarketBillingEnabled(Boolean appMarketBillingEnabled)
Sets the field 'appMarketBillingEnabled'.CountryInfo
setCountryCode(String countryCode)
Sets the field 'countryCode'.CountryInfo
setCountyRequired(Boolean countyRequired)
Sets the field 'countyRequired'.CountryInfo
setDefaultCurrency(String defaultCurrency)
Sets the field 'defaultCurrency'.CountryInfo
setDefaultLocale(String defaultLocale)
Sets the field 'defaultLocale'.CountryInfo
setDefaultTimezone(String defaultTimezone)
Sets the field 'defaultTimezone'.CountryInfo
setDisplayName(String displayName)
Sets the field 'displayName'.CountryInfo
setLocalDisplayName(String localDisplayName)
Sets the field 'localDisplayName'.CountryInfo
setStateProvinceRequired(Boolean stateProvinceRequired)
Sets the field 'stateProvinceRequired'.CountryInfo
setZipPostalRequired(Boolean zipPostalRequired)
Sets the field 'zipPostalRequired'.void
validate()
-
Methods inherited from class com.clover.sdk.GenericParcelable
describeContents, getBundle, toString, writeToParcel
-
-
-
-
Field Detail
-
CREATOR
public static final Parcelable.Creator<CountryInfo> CREATOR
-
JSON_CREATOR
public static final JSONifiable.Creator<CountryInfo> JSON_CREATOR
-
-
Constructor Detail
-
CountryInfo
public CountryInfo()
Constructs a new empty instance.
-
CountryInfo
protected CountryInfo(boolean noInit)
Constructs a new empty instance.
-
CountryInfo
public CountryInfo(String json) throws IllegalArgumentException
Constructs a new instance from the given JSON String.- Throws:
IllegalArgumentException
-
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
-
getGenericClient
protected GenericClient getGenericClient()
- Specified by:
getGenericClient
in classGenericParcelable
-
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 interfaceJSONifiable
-
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.
-
-