public class ExternalMerchant extends GenericParcelable implements Validator, JSONifiable
Represents external merchant data linked to a merchant
Modifier and Type | Class and Description |
---|---|
static interface |
ExternalMerchant.Constraints |
JSONifiable.Creator<T>
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
Modifier and Type | Field and Description |
---|---|
static Parcelable.Creator<ExternalMerchant> |
CREATOR |
static JSONifiable.Creator<ExternalMerchant> |
JSON_CREATOR |
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
Modifier | Constructor and Description |
---|---|
|
ExternalMerchant()
Constructs a new empty instance.
|
protected |
ExternalMerchant(boolean noInit)
Constructs a new empty instance.
|
|
ExternalMerchant(ExternalMerchant src)
Constructs a new instance that is a deep copy of the source instance.
|
|
ExternalMerchant(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.
|
|
ExternalMerchant(String json)
Constructs a new instance from the given JSON String.
|
Modifier and Type | Method and Description |
---|---|
void |
clearAuditDate()
Clears the 'auditDate' field, the 'has' method for this field will now return false
|
void |
clearAuditUserId()
Clears the 'auditUserId' field, the 'has' method for this field will now return false
|
void |
clearClientFlag()
Clears the 'clientFlag' field, the 'has' method for this field will now return false
|
void |
clearCreatedTime()
Clears the 'createdTime' field, the 'has' method for this field will now return false
|
void |
clearExternalMerchantNumber()
Clears the 'externalMerchantNumber' 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 |
clearModifiedTime()
Clears the 'modifiedTime' field, the 'has' method for this field will now return false
|
void |
clearUsageFlag()
Clears the 'usageFlag' field, the 'has' method for this field will now return false
|
void |
clearXrefType()
Clears the 'xrefType' field, the 'has' method for this field will now return false
|
boolean |
containsChanges()
Returns true if this instance has any changes.
|
ExternalMerchant |
copyChanges()
Create a copy of this instance that contains only fields that were set after the constructor was called.
|
Long |
getAuditDate()
Date of audit
|
String |
getAuditUserId()
User performing audit
|
String |
getClientFlag()
Client flag
|
Long |
getCreatedTime()
Date record created
|
String |
getExternalMerchantNumber()
External merchant number
|
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.
|
Reference |
getMerchantRef() |
Long |
getModifiedTime()
Date record updated
|
String |
getUsageFlag()
Usage flag
|
String |
getXrefType()
Cross reference type
|
boolean |
hasAuditDate()
Checks whether the 'auditDate' field has been set, however the value could be null
|
boolean |
hasAuditUserId()
Checks whether the 'auditUserId' field has been set, however the value could be null
|
boolean |
hasClientFlag()
Checks whether the 'clientFlag' field has been set, however the value could be null
|
boolean |
hasCreatedTime()
Checks whether the 'createdTime' field has been set, however the value could be null
|
boolean |
hasExternalMerchantNumber()
Checks whether the 'externalMerchantNumber' 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 |
hasModifiedTime()
Checks whether the 'modifiedTime' field has been set, however the value could be null
|
boolean |
hasUsageFlag()
Checks whether the 'usageFlag' field has been set, however the value could be null
|
boolean |
hasXrefType()
Checks whether the 'xrefType' field has been set, however the value could be null
|
boolean |
isNotNullAuditDate()
Checks whether the 'auditDate' field is set and is not null
|
boolean |
isNotNullAuditUserId()
Checks whether the 'auditUserId' field is set and is not null
|
boolean |
isNotNullClientFlag()
Checks whether the 'clientFlag' field is set and is not null
|
boolean |
isNotNullCreatedTime()
Checks whether the 'createdTime' field is set and is not null
|
boolean |
isNotNullExternalMerchantNumber()
Checks whether the 'externalMerchantNumber' field is set and is not null
|
boolean |
isNotNullMerchantRef()
Checks whether the 'merchantRef' field is set and is not null
|
boolean |
isNotNullModifiedTime()
Checks whether the 'modifiedTime' field is set and is not null
|
boolean |
isNotNullUsageFlag()
Checks whether the 'usageFlag' field is set and is not null
|
boolean |
isNotNullXrefType()
Checks whether the 'xrefType' field is set and is not null
|
void |
mergeChanges(ExternalMerchant 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.
|
ExternalMerchant |
setAuditDate(Long auditDate)
Sets the field 'auditDate'.
|
ExternalMerchant |
setAuditUserId(String auditUserId)
Sets the field 'auditUserId'.
|
ExternalMerchant |
setClientFlag(String clientFlag)
Sets the field 'clientFlag'.
|
ExternalMerchant |
setCreatedTime(Long createdTime)
Sets the field 'createdTime'.
|
ExternalMerchant |
setExternalMerchantNumber(String externalMerchantNumber)
Sets the field 'externalMerchantNumber'.
|
ExternalMerchant |
setMerchantRef(Reference merchantRef)
Sets the field 'merchantRef'.
|
ExternalMerchant |
setModifiedTime(Long modifiedTime)
Sets the field 'modifiedTime'.
|
ExternalMerchant |
setUsageFlag(String usageFlag)
Sets the field 'usageFlag'.
|
ExternalMerchant |
setXrefType(String xrefType)
Sets the field 'xrefType'.
|
void |
validate() |
describeContents, getBundle, toString, writeToParcel
public static final Parcelable.Creator<ExternalMerchant> CREATOR
public static final JSONifiable.Creator<ExternalMerchant> JSON_CREATOR
public ExternalMerchant()
protected ExternalMerchant(boolean noInit)
public ExternalMerchant(String json) throws IllegalArgumentException
IllegalArgumentException
public ExternalMerchant(JSONObject jsonObject)
public ExternalMerchant(ExternalMerchant src)
public Reference getMerchantRef()
public String getExternalMerchantNumber()
public String getClientFlag()
public String getUsageFlag()
public String getXrefType()
public String getAuditUserId()
public Long getAuditDate()
public Long getCreatedTime()
public Long getModifiedTime()
protected GenericClient getGenericClient()
getGenericClient
in class GenericParcelable
public JSONObject getJSONObject()
getJSONObject
in interface JSONifiable
public boolean isNotNullMerchantRef()
public boolean isNotNullExternalMerchantNumber()
public boolean isNotNullClientFlag()
public boolean isNotNullUsageFlag()
public boolean isNotNullXrefType()
public boolean isNotNullAuditUserId()
public boolean isNotNullAuditDate()
public boolean isNotNullCreatedTime()
public boolean isNotNullModifiedTime()
public boolean hasMerchantRef()
public boolean hasExternalMerchantNumber()
public boolean hasClientFlag()
public boolean hasUsageFlag()
public boolean hasXrefType()
public boolean hasAuditUserId()
public boolean hasAuditDate()
public boolean hasCreatedTime()
public boolean hasModifiedTime()
public ExternalMerchant setMerchantRef(Reference merchantRef)
public ExternalMerchant setExternalMerchantNumber(String externalMerchantNumber)
public ExternalMerchant setClientFlag(String clientFlag)
public ExternalMerchant setUsageFlag(String usageFlag)
public ExternalMerchant setXrefType(String xrefType)
public ExternalMerchant setAuditUserId(String auditUserId)
public ExternalMerchant setAuditDate(Long auditDate)
public ExternalMerchant setCreatedTime(Long createdTime)
public ExternalMerchant setModifiedTime(Long modifiedTime)
public void clearMerchantRef()
public void clearExternalMerchantNumber()
public void clearClientFlag()
public void clearUsageFlag()
public void clearXrefType()
public void clearAuditUserId()
public void clearAuditDate()
public void clearCreatedTime()
public void clearModifiedTime()
public boolean containsChanges()
public void resetChangeLog()
public ExternalMerchant copyChanges()
public void mergeChanges(ExternalMerchant src)