public class MerchantGroupAppVersion extends GenericParcelable implements Validator, JSONifiable
Declares the target version of a given application for a given merchant group, optionally constrained by device type.
Modifier and Type | Class and Description |
---|---|
static interface |
MerchantGroupAppVersion.Constraints |
JSONifiable.Creator<T>
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
Modifier and Type | Field and Description |
---|---|
static Parcelable.Creator<MerchantGroupAppVersion> |
CREATOR |
static JSONifiable.Creator<MerchantGroupAppVersion> |
JSON_CREATOR |
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
Modifier | Constructor and Description |
---|---|
|
MerchantGroupAppVersion()
Constructs a new empty instance.
|
protected |
MerchantGroupAppVersion(boolean noInit)
Constructs a new empty instance.
|
|
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(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.
|
Modifier and Type | Method and Description |
---|---|
void |
clearApp()
Clears the 'app' field, the 'has' method for this field will now return false
|
void |
clearAssociationTime()
Clears the 'associationTime' field, the 'has' method for this field will now return false
|
void |
clearDeviceType()
Clears the 'deviceType' field, the 'has' method for this field will now return false
|
void |
clearId()
Clears the 'id' field, the 'has' method for this field will now return false
|
void |
clearMerchantGroup()
Clears the 'merchantGroup' field, the 'has' method for this field will now return false
|
void |
clearVersion()
Clears the 'version' field, the 'has' method for this field will now return false
|
boolean |
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 null
|
boolean |
hasAssociationTime()
Checks whether the 'associationTime' field has been set, however the value could be null
|
boolean |
hasDeviceType()
Checks whether the 'deviceType' field has been set, however the value could be null
|
boolean |
hasId()
Checks whether the 'id' field has been set, however the value could be null
|
boolean |
hasMerchantGroup()
Checks whether the 'merchantGroup' field has been set, however the value could be null
|
boolean |
hasVersion()
Checks whether the 'version' field has been set, however the value could be null
|
boolean |
isNotNullApp()
Checks whether the 'app' field is set and is not null
|
boolean |
isNotNullAssociationTime()
Checks whether the 'associationTime' field is set and is not null
|
boolean |
isNotNullDeviceType()
Checks whether the 'deviceType' field is set and is not null
|
boolean |
isNotNullId()
Checks whether the 'id' field is set and is not null
|
boolean |
isNotNullMerchantGroup()
Checks whether the 'merchantGroup' field is set and is not null
|
boolean |
isNotNullVersion()
Checks whether the 'version' field is set and is not null
|
void |
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() |
describeContents, getBundle, toString, writeToParcel
public static final Parcelable.Creator<MerchantGroupAppVersion> CREATOR
public static final JSONifiable.Creator<MerchantGroupAppVersion> JSON_CREATOR
public MerchantGroupAppVersion()
protected MerchantGroupAppVersion(boolean noInit)
public MerchantGroupAppVersion(String json) throws IllegalArgumentException
IllegalArgumentException
public MerchantGroupAppVersion(JSONObject jsonObject)
public MerchantGroupAppVersion(MerchantGroupAppVersion src)
public String getId()
public Reference getMerchantGroup()
public Reference getApp()
public Reference getVersion()
public Reference getDeviceType()
public Long getAssociationTime()
protected GenericClient getGenericClient()
getGenericClient
in class GenericParcelable
public JSONObject getJSONObject()
getJSONObject
in interface JSONifiable
public boolean isNotNullId()
public boolean isNotNullMerchantGroup()
public boolean isNotNullApp()
public boolean isNotNullVersion()
public boolean isNotNullDeviceType()
public boolean isNotNullAssociationTime()
public boolean hasId()
public boolean hasMerchantGroup()
public boolean hasApp()
public boolean hasVersion()
public boolean hasDeviceType()
public boolean hasAssociationTime()
public MerchantGroupAppVersion setId(String id)
public MerchantGroupAppVersion setMerchantGroup(Reference merchantGroup)
public MerchantGroupAppVersion setApp(Reference app)
public MerchantGroupAppVersion setVersion(Reference version)
public MerchantGroupAppVersion setDeviceType(Reference deviceType)
public MerchantGroupAppVersion setAssociationTime(Long associationTime)
public void clearId()
public void clearMerchantGroup()
public void clearApp()
public void clearVersion()
public void clearDeviceType()
public void clearAssociationTime()
public boolean containsChanges()
public void resetChangeLog()
public MerchantGroupAppVersion copyChanges()
public void mergeChanges(MerchantGroupAppVersion src)