Package com.clover.sdk.v3.merchant
Class MerchantProgramExpress
- java.lang.Object
-
- com.clover.sdk.GenericParcelable
-
- com.clover.sdk.v3.merchant.MerchantProgramExpress
-
- All Implemented Interfaces:
Parcelable
,JSONifiable
,Validator
public class MerchantProgramExpress extends GenericParcelable implements Validator, JSONifiable
This is an auto-generated Clover data object.Program Express data collected from FDPOS during merchant boarding
Fields
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
MerchantProgramExpress.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<MerchantProgramExpress>
CREATOR
static JSONifiable.Creator<MerchantProgramExpress>
JSON_CREATOR
-
Fields inherited from interface android.os.Parcelable
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
-
-
Constructor Summary
Constructors Modifier Constructor Description MerchantProgramExpress()
Constructs a new empty instance.protected
MerchantProgramExpress(boolean noInit)
Constructs a new empty instance.MerchantProgramExpress(MerchantProgramExpress src)
Constructs a new instance that is a deep copy of the source instance.MerchantProgramExpress(String json)
Constructs a new instance from the given JSON String.MerchantProgramExpress(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
clearKey()
Clears the 'key' field, the 'has' method for this field will now return falsevoid
clearKeyDescription()
Clears the 'keyDescription' field, the 'has' method for this field will now return falsevoid
clearMerchantRef()
Clears the 'merchantRef' field, the 'has' method for this field will now return falsevoid
clearProgramCode()
Clears the 'programCode' field, the 'has' method for this field will now return falsevoid
clearProgramCodeDescription()
Clears the 'programCodeDescription' field, the 'has' method for this field will now return falsevoid
clearValue()
Clears the 'value' field, the 'has' method for this field will now return falsevoid
clearValueDescription()
Clears the 'valueDescription' field, the 'has' method for this field will now return falseboolean
containsChanges()
Returns true if this instance has any changes.MerchantProgramExpress
copyChanges()
Create a copy of this instance that contains only fields that were set after the constructor was called.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
getKey()
KeyString
getKeyDescription()
Key descriptionReference
getMerchantRef()
String
getProgramCode()
Program CodeString
getProgramCodeDescription()
Description of Program CodeString
getValue()
ValueString
getValueDescription()
Description of valueboolean
hasKey()
Checks whether the 'key' field has been set, however the value could be nullboolean
hasKeyDescription()
Checks whether the 'keyDescription' field has been set, however the value could be nullboolean
hasMerchantRef()
Checks whether the 'merchantRef' field has been set, however the value could be nullboolean
hasProgramCode()
Checks whether the 'programCode' field has been set, however the value could be nullboolean
hasProgramCodeDescription()
Checks whether the 'programCodeDescription' field has been set, however the value could be nullboolean
hasValue()
Checks whether the 'value' field has been set, however the value could be nullboolean
hasValueDescription()
Checks whether the 'valueDescription' field has been set, however the value could be nullboolean
isNotNullKey()
Checks whether the 'key' field is set and is not nullboolean
isNotNullKeyDescription()
Checks whether the 'keyDescription' field is set and is not nullboolean
isNotNullMerchantRef()
Checks whether the 'merchantRef' field is set and is not nullboolean
isNotNullProgramCode()
Checks whether the 'programCode' field is set and is not nullboolean
isNotNullProgramCodeDescription()
Checks whether the 'programCodeDescription' field is set and is not nullboolean
isNotNullValue()
Checks whether the 'value' field is set and is not nullboolean
isNotNullValueDescription()
Checks whether the 'valueDescription' field is set and is not nullvoid
mergeChanges(MerchantProgramExpress 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.MerchantProgramExpress
setKey(String key)
Sets the field 'key'.MerchantProgramExpress
setKeyDescription(String keyDescription)
Sets the field 'keyDescription'.MerchantProgramExpress
setMerchantRef(Reference merchantRef)
Sets the field 'merchantRef'.MerchantProgramExpress
setProgramCode(String programCode)
Sets the field 'programCode'.MerchantProgramExpress
setProgramCodeDescription(String programCodeDescription)
Sets the field 'programCodeDescription'.MerchantProgramExpress
setValue(String value)
Sets the field 'value'.MerchantProgramExpress
setValueDescription(String valueDescription)
Sets the field 'valueDescription'.void
validate()
-
Methods inherited from class com.clover.sdk.GenericParcelable
describeContents, getBundle, toString, writeToParcel
-
-
-
-
Field Detail
-
CREATOR
public static final Parcelable.Creator<MerchantProgramExpress> CREATOR
-
JSON_CREATOR
public static final JSONifiable.Creator<MerchantProgramExpress> JSON_CREATOR
-
-
Constructor Detail
-
MerchantProgramExpress
public MerchantProgramExpress()
Constructs a new empty instance.
-
MerchantProgramExpress
protected MerchantProgramExpress(boolean noInit)
Constructs a new empty instance.
-
MerchantProgramExpress
public MerchantProgramExpress(String json) throws IllegalArgumentException
Constructs a new instance from the given JSON String.- Throws:
IllegalArgumentException
-
MerchantProgramExpress
public MerchantProgramExpress(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.
-
MerchantProgramExpress
public MerchantProgramExpress(MerchantProgramExpress src)
Constructs a new instance that is a deep copy of the source instance. It does not copy the bundle or changelog.
-
-
Method Detail
-
getMerchantRef
public Reference getMerchantRef()
-
getProgramCode
public String getProgramCode()
Program Code
-
getProgramCodeDescription
public String getProgramCodeDescription()
Description of Program Code
-
getKey
public String getKey()
Key
-
getKeyDescription
public String getKeyDescription()
Key description
-
getValue
public String getValue()
Value
-
getValueDescription
public String getValueDescription()
Description of value
-
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
-
isNotNullMerchantRef
public boolean isNotNullMerchantRef()
Checks whether the 'merchantRef' field is set and is not null
-
isNotNullProgramCode
public boolean isNotNullProgramCode()
Checks whether the 'programCode' field is set and is not null
-
isNotNullProgramCodeDescription
public boolean isNotNullProgramCodeDescription()
Checks whether the 'programCodeDescription' field is set and is not null
-
isNotNullKey
public boolean isNotNullKey()
Checks whether the 'key' field is set and is not null
-
isNotNullKeyDescription
public boolean isNotNullKeyDescription()
Checks whether the 'keyDescription' field is set and is not null
-
isNotNullValue
public boolean isNotNullValue()
Checks whether the 'value' field is set and is not null
-
isNotNullValueDescription
public boolean isNotNullValueDescription()
Checks whether the 'valueDescription' field is set and is not null
-
hasMerchantRef
public boolean hasMerchantRef()
Checks whether the 'merchantRef' field has been set, however the value could be null
-
hasProgramCode
public boolean hasProgramCode()
Checks whether the 'programCode' field has been set, however the value could be null
-
hasProgramCodeDescription
public boolean hasProgramCodeDescription()
Checks whether the 'programCodeDescription' field has been set, however the value could be null
-
hasKey
public boolean hasKey()
Checks whether the 'key' field has been set, however the value could be null
-
hasKeyDescription
public boolean hasKeyDescription()
Checks whether the 'keyDescription' field has been set, however the value could be null
-
hasValue
public boolean hasValue()
Checks whether the 'value' field has been set, however the value could be null
-
hasValueDescription
public boolean hasValueDescription()
Checks whether the 'valueDescription' field has been set, however the value could be null
-
setMerchantRef
public MerchantProgramExpress setMerchantRef(Reference merchantRef)
Sets the field 'merchantRef'. The parameter is not copied so changes to it will be reflected in this instance and vice-versa.
-
setProgramCode
public MerchantProgramExpress setProgramCode(String programCode)
Sets the field 'programCode'.
-
setProgramCodeDescription
public MerchantProgramExpress setProgramCodeDescription(String programCodeDescription)
Sets the field 'programCodeDescription'.
-
setKey
public MerchantProgramExpress setKey(String key)
Sets the field 'key'.
-
setKeyDescription
public MerchantProgramExpress setKeyDescription(String keyDescription)
Sets the field 'keyDescription'.
-
setValue
public MerchantProgramExpress setValue(String value)
Sets the field 'value'.
-
setValueDescription
public MerchantProgramExpress setValueDescription(String valueDescription)
Sets the field 'valueDescription'.
-
clearMerchantRef
public void clearMerchantRef()
Clears the 'merchantRef' field, the 'has' method for this field will now return false
-
clearProgramCode
public void clearProgramCode()
Clears the 'programCode' field, the 'has' method for this field will now return false
-
clearProgramCodeDescription
public void clearProgramCodeDescription()
Clears the 'programCodeDescription' field, the 'has' method for this field will now return false
-
clearKey
public void clearKey()
Clears the 'key' field, the 'has' method for this field will now return false
-
clearKeyDescription
public void clearKeyDescription()
Clears the 'keyDescription' field, the 'has' method for this field will now return false
-
clearValue
public void clearValue()
Clears the 'value' field, the 'has' method for this field will now return false
-
clearValueDescription
public void clearValueDescription()
Clears the 'valueDescription' 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 MerchantProgramExpress copyChanges()
Create a copy of this instance that contains only fields that were set after the constructor was called.
-
mergeChanges
public void mergeChanges(MerchantProgramExpress src)
Copy all the changed fields from the given source to this instance.
-
-