Package com.clover.sdk.v3.apps
Class AppSubscriptionCountry
- java.lang.Object
-
- com.clover.sdk.GenericParcelable
-
- com.clover.sdk.v3.apps.AppSubscriptionCountry
-
- All Implemented Interfaces:
Parcelable
,JSONifiable
,Validator
public class AppSubscriptionCountry 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
AppSubscriptionCountry.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<AppSubscriptionCountry>
CREATOR
static JSONifiable.Creator<AppSubscriptionCountry>
JSON_CREATOR
-
Fields inherited from interface android.os.Parcelable
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
-
-
Constructor Summary
Constructors Modifier Constructor Description AppSubscriptionCountry()
Constructs a new empty instance.protected
AppSubscriptionCountry(boolean noInit)
Constructs a new empty instance.AppSubscriptionCountry(AppSubscriptionCountry src)
Constructs a new instance that is a deep copy of the source instance.AppSubscriptionCountry(String json)
Constructs a new instance from the given JSON String.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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clearActive()
Clears the 'active' field, the 'has' method for this field will now return falsevoid
clearAmount()
Clears the 'amount' field, the 'has' method for this field will now return falsevoid
clearAppSubscription()
Clears the 'appSubscription' field, the 'has' method for this field will now return falsevoid
clearCountry()
Clears the 'country' field, the 'has' method for this field will now return falsevoid
clearDescription()
Clears the 'description' field, the 'has' method for this field will now return falsevoid
clearId()
Clears the 'id' field, the 'has' method for this field will now return falsevoid
clearInstallCount()
Clears the 'installCount' field, the 'has' method for this field will now return falsevoid
clearName()
Clears the 'name' field, the 'has' method for this field will now return falseboolean
containsChanges()
Returns true if this instance has any changes.AppSubscriptionCountry
copyChanges()
Create a copy of this instance that contains only fields that were set after the constructor was called.Boolean
getActive()
App subscription country active statusLong
getAmount()
The cost of the subscription countryReference
getAppSubscription()
Reference to subscription this subscription country belongs toString
getCountry()
The country of the subscription countryString
getDescription()
App subscription country nameprotected GenericClient
getGenericClient()
String
getId()
Unique identifierLong
getInstallCount()
The number of merchants that have this app subscription country installedJSONObject
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
getName()
App subscription country nameboolean
hasActive()
Checks whether the 'active' field has been set, however the value could be nullboolean
hasAmount()
Checks whether the 'amount' field has been set, however the value could be nullboolean
hasAppSubscription()
Checks whether the 'appSubscription' field has been set, however the value could be nullboolean
hasCountry()
Checks whether the 'country' field has been set, however the value could be nullboolean
hasDescription()
Checks whether the 'description' field has been set, however the value could be nullboolean
hasId()
Checks whether the 'id' field has been set, however the value could be nullboolean
hasInstallCount()
Checks whether the 'installCount' field has been set, however the value could be nullboolean
hasName()
Checks whether the 'name' field has been set, however the value could be nullboolean
isNotNullActive()
Checks whether the 'active' field is set and is not nullboolean
isNotNullAmount()
Checks whether the 'amount' field is set and is not nullboolean
isNotNullAppSubscription()
Checks whether the 'appSubscription' field is set and is not nullboolean
isNotNullCountry()
Checks whether the 'country' field is set and is not nullboolean
isNotNullDescription()
Checks whether the 'description' field is set and is not nullboolean
isNotNullId()
Checks whether the 'id' field is set and is not nullboolean
isNotNullInstallCount()
Checks whether the 'installCount' field is set and is not nullboolean
isNotNullName()
Checks whether the 'name' field is set and is not nullvoid
mergeChanges(AppSubscriptionCountry 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.AppSubscriptionCountry
setActive(Boolean active)
Sets the field 'active'.AppSubscriptionCountry
setAmount(Long amount)
Sets the field 'amount'.AppSubscriptionCountry
setAppSubscription(Reference appSubscription)
Sets the field 'appSubscription'.AppSubscriptionCountry
setCountry(String country)
Sets the field 'country'.AppSubscriptionCountry
setDescription(String description)
Sets the field 'description'.AppSubscriptionCountry
setId(String id)
Sets the field 'id'.AppSubscriptionCountry
setInstallCount(Long installCount)
Sets the field 'installCount'.AppSubscriptionCountry
setName(String name)
Sets the field 'name'.void
validate()
-
Methods inherited from class com.clover.sdk.GenericParcelable
describeContents, getBundle, toString, writeToParcel
-
-
-
-
Field Detail
-
CREATOR
public static final Parcelable.Creator<AppSubscriptionCountry> CREATOR
-
JSON_CREATOR
public static final JSONifiable.Creator<AppSubscriptionCountry> JSON_CREATOR
-
-
Constructor Detail
-
AppSubscriptionCountry
public AppSubscriptionCountry()
Constructs a new empty instance.
-
AppSubscriptionCountry
protected AppSubscriptionCountry(boolean noInit)
Constructs a new empty instance.
-
AppSubscriptionCountry
public AppSubscriptionCountry(String json) throws IllegalArgumentException
Constructs a new instance from the given JSON String.- Throws:
IllegalArgumentException
-
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
-
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
-
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
-
setId
public AppSubscriptionCountry setId(String id)
Sets the field 'id'.
-
setName
public AppSubscriptionCountry setName(String name)
Sets the field 'name'.
-
setAmount
public AppSubscriptionCountry setAmount(Long amount)
Sets the field 'amount'.
-
setCountry
public AppSubscriptionCountry setCountry(String country)
Sets the field 'country'.
-
setDescription
public AppSubscriptionCountry setDescription(String description)
Sets the field 'description'.
-
setActive
public AppSubscriptionCountry setActive(Boolean active)
Sets the field 'active'.
-
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.
-
setInstallCount
public AppSubscriptionCountry setInstallCount(Long installCount)
Sets the field 'installCount'.
-
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.
-
-