Package com.clover.sdk.v3.developer
Class MerchantGroupAppVersion
- java.lang.Object
-
- com.clover.sdk.GenericParcelable
-
- com.clover.sdk.v3.developer.MerchantGroupAppVersion
-
- All Implemented Interfaces:
Parcelable
,JSONifiable
,Validator
public class MerchantGroupAppVersion extends GenericParcelable implements Validator, JSONifiable
This is an auto-generated Clover data object.Declares the target version of a given application for a given merchant group, optionally constrained by device type.
Fields
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
MerchantGroupAppVersion.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<MerchantGroupAppVersion>
CREATOR
static JSONifiable.Creator<MerchantGroupAppVersion>
JSON_CREATOR
-
Fields inherited from interface android.os.Parcelable
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
-
-
Constructor Summary
Constructors Modifier Constructor Description MerchantGroupAppVersion()
Constructs a new empty instance.protected
MerchantGroupAppVersion(boolean noInit)
Constructs a new empty instance.MerchantGroupAppVersion(MerchantGroupAppVersion src)
Constructs a new instance that is a deep copy of the source instance.MerchantGroupAppVersion(String json)
Constructs a new instance from the given JSON String.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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clearApp()
Clears the 'app' field, the 'has' method for this field will now return falsevoid
clearAssociationTime()
Clears the 'associationTime' field, the 'has' method for this field will now return falsevoid
clearDeviceType()
Clears the 'deviceType' 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
clearMerchantGroup()
Clears the 'merchantGroup' field, the 'has' method for this field will now return falsevoid
clearVersion()
Clears the 'version' field, the 'has' method for this field will now return falseboolean
containsChanges()
Returns true if this instance has any changes.MerchantGroupAppVersion
copyChanges()
Create a copy of this instance that contains only fields that were set after the constructor was called.Reference
getApp()
Identifies the application of interest.Long
getAssociationTime()
The time this android version was associated to this merchant group.Reference
getDeviceType()
The targeted device type, if any.protected GenericClient
getGenericClient()
String
getId()
Unique identifier.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.Reference
getMerchantGroup()
Identifies the merchant group of interest.Reference
getVersion()
The targeted app version.boolean
hasApp()
Checks whether the 'app' field has been set, however the value could be nullboolean
hasAssociationTime()
Checks whether the 'associationTime' field has been set, however the value could be nullboolean
hasDeviceType()
Checks whether the 'deviceType' 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
hasMerchantGroup()
Checks whether the 'merchantGroup' field has been set, however the value could be nullboolean
hasVersion()
Checks whether the 'version' field has been set, however the value could be nullboolean
isNotNullApp()
Checks whether the 'app' field is set and is not nullboolean
isNotNullAssociationTime()
Checks whether the 'associationTime' field is set and is not nullboolean
isNotNullDeviceType()
Checks whether the 'deviceType' field is set and is not nullboolean
isNotNullId()
Checks whether the 'id' field is set and is not nullboolean
isNotNullMerchantGroup()
Checks whether the 'merchantGroup' field is set and is not nullboolean
isNotNullVersion()
Checks whether the 'version' field is set and is not nullvoid
mergeChanges(MerchantGroupAppVersion 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.MerchantGroupAppVersion
setApp(Reference app)
Sets the field 'app'.MerchantGroupAppVersion
setAssociationTime(Long associationTime)
Sets the field 'associationTime'.MerchantGroupAppVersion
setDeviceType(Reference deviceType)
Sets the field 'deviceType'.MerchantGroupAppVersion
setId(String id)
Sets the field 'id'.MerchantGroupAppVersion
setMerchantGroup(Reference merchantGroup)
Sets the field 'merchantGroup'.MerchantGroupAppVersion
setVersion(Reference version)
Sets the field 'version'.void
validate()
-
Methods inherited from class com.clover.sdk.GenericParcelable
describeContents, getBundle, toString, writeToParcel
-
-
-
-
Field Detail
-
CREATOR
public static final Parcelable.Creator<MerchantGroupAppVersion> CREATOR
-
JSON_CREATOR
public static final JSONifiable.Creator<MerchantGroupAppVersion> JSON_CREATOR
-
-
Constructor Detail
-
MerchantGroupAppVersion
public MerchantGroupAppVersion()
Constructs a new empty instance.
-
MerchantGroupAppVersion
protected MerchantGroupAppVersion(boolean noInit)
Constructs a new empty instance.
-
MerchantGroupAppVersion
public MerchantGroupAppVersion(String json) throws IllegalArgumentException
Constructs a new instance from the given JSON String.- Throws:
IllegalArgumentException
-
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.
-
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
-
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
-
setId
public MerchantGroupAppVersion setId(String id)
Sets the field 'id'.
-
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.
-
setAssociationTime
public MerchantGroupAppVersion setAssociationTime(Long associationTime)
Sets the field 'associationTime'.
-
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.
-
-