public class MerchantProgramExpress extends GenericParcelable implements Validator, JSONifiable
Program Express data collected from FDPOS during merchant boarding
Modifier and Type | Class and Description |
---|---|
static interface |
MerchantProgramExpress.Constraints |
JSONifiable.Creator<T>
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
Modifier and Type | Field and Description |
---|---|
static Parcelable.Creator<MerchantProgramExpress> |
CREATOR |
static JSONifiable.Creator<MerchantProgramExpress> |
JSON_CREATOR |
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
Modifier | Constructor and Description |
---|---|
|
MerchantProgramExpress()
Constructs a new empty instance.
|
protected |
MerchantProgramExpress(boolean noInit)
Constructs a new empty instance.
|
|
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(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.
|
Modifier and Type | Method and Description |
---|---|
void |
clearKey()
Clears the 'key' field, the 'has' method for this field will now return false
|
void |
clearKeyDescription()
Clears the 'keyDescription' field, the 'has' method for this field will now return false
|
void |
clearMerchantRef()
Clears the 'merchantRef' field, the 'has' method for this field will now return false
|
void |
clearProgramCode()
Clears the 'programCode' field, the 'has' method for this field will now return false
|
void |
clearProgramCodeDescription()
Clears the 'programCodeDescription' field, the 'has' method for this field will now return false
|
void |
clearValue()
Clears the 'value' field, the 'has' method for this field will now return false
|
void |
clearValueDescription()
Clears the 'valueDescription' field, the 'has' method for this field will now return false
|
boolean |
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()
Key
|
String |
getKeyDescription()
Key description
|
Reference |
getMerchantRef() |
String |
getProgramCode()
Program Code
|
String |
getProgramCodeDescription()
Description of Program Code
|
String |
getValue()
Value
|
String |
getValueDescription()
Description of value
|
boolean |
hasKey()
Checks whether the 'key' field has been set, however the value could be null
|
boolean |
hasKeyDescription()
Checks whether the 'keyDescription' field has been set, however the value could be null
|
boolean |
hasMerchantRef()
Checks whether the 'merchantRef' field has been set, however the value could be null
|
boolean |
hasProgramCode()
Checks whether the 'programCode' field has been set, however the value could be null
|
boolean |
hasProgramCodeDescription()
Checks whether the 'programCodeDescription' field has been set, however the value could be null
|
boolean |
hasValue()
Checks whether the 'value' field has been set, however the value could be null
|
boolean |
hasValueDescription()
Checks whether the 'valueDescription' field has been set, however the value could be null
|
boolean |
isNotNullKey()
Checks whether the 'key' field is set and is not null
|
boolean |
isNotNullKeyDescription()
Checks whether the 'keyDescription' field is set and is not null
|
boolean |
isNotNullMerchantRef()
Checks whether the 'merchantRef' field is set and is not null
|
boolean |
isNotNullProgramCode()
Checks whether the 'programCode' field is set and is not null
|
boolean |
isNotNullProgramCodeDescription()
Checks whether the 'programCodeDescription' field is set and is not null
|
boolean |
isNotNullValue()
Checks whether the 'value' field is set and is not null
|
boolean |
isNotNullValueDescription()
Checks whether the 'valueDescription' field is set and is not null
|
void |
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() |
describeContents, getBundle, toString, writeToParcel
public static final Parcelable.Creator<MerchantProgramExpress> CREATOR
public static final JSONifiable.Creator<MerchantProgramExpress> JSON_CREATOR
public MerchantProgramExpress()
protected MerchantProgramExpress(boolean noInit)
public MerchantProgramExpress(String json) throws IllegalArgumentException
IllegalArgumentException
public MerchantProgramExpress(JSONObject jsonObject)
public MerchantProgramExpress(MerchantProgramExpress src)
public Reference getMerchantRef()
public String getProgramCode()
public String getProgramCodeDescription()
public String getKey()
public String getKeyDescription()
public String getValue()
public String getValueDescription()
protected GenericClient getGenericClient()
getGenericClient
in class GenericParcelable
public JSONObject getJSONObject()
getJSONObject
in interface JSONifiable
public boolean isNotNullMerchantRef()
public boolean isNotNullProgramCode()
public boolean isNotNullProgramCodeDescription()
public boolean isNotNullKey()
public boolean isNotNullKeyDescription()
public boolean isNotNullValue()
public boolean isNotNullValueDescription()
public boolean hasMerchantRef()
public boolean hasProgramCode()
public boolean hasProgramCodeDescription()
public boolean hasKey()
public boolean hasKeyDescription()
public boolean hasValue()
public boolean hasValueDescription()
public MerchantProgramExpress setMerchantRef(Reference merchantRef)
public MerchantProgramExpress setProgramCode(String programCode)
public MerchantProgramExpress setProgramCodeDescription(String programCodeDescription)
public MerchantProgramExpress setKey(String key)
public MerchantProgramExpress setKeyDescription(String keyDescription)
public MerchantProgramExpress setValue(String value)
public MerchantProgramExpress setValueDescription(String valueDescription)
public void clearMerchantRef()
public void clearProgramCode()
public void clearProgramCodeDescription()
public void clearKey()
public void clearKeyDescription()
public void clearValue()
public void clearValueDescription()
public boolean containsChanges()
public void resetChangeLog()
public MerchantProgramExpress copyChanges()
public void mergeChanges(MerchantProgramExpress src)