Package com.clover.sdk.v3.merchant
Class ExternalMerchant
- java.lang.Object
-
- com.clover.sdk.GenericParcelable
-
- com.clover.sdk.v3.merchant.ExternalMerchant
-
- All Implemented Interfaces:
Parcelable
,JSONifiable
,Validator
public class ExternalMerchant extends GenericParcelable implements Validator, JSONifiable
This is an auto-generated Clover data object.Represents external merchant data linked to a merchant
Fields
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
ExternalMerchant.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<ExternalMerchant>
CREATOR
static JSONifiable.Creator<ExternalMerchant>
JSON_CREATOR
-
Fields inherited from interface android.os.Parcelable
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
-
-
Constructor Summary
Constructors Modifier Constructor 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(String json)
Constructs a new instance from the given JSON String.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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clearAuditDate()
Clears the 'auditDate' field, the 'has' method for this field will now return falsevoid
clearAuditUserId()
Clears the 'auditUserId' field, the 'has' method for this field will now return falsevoid
clearClientFlag()
Clears the 'clientFlag' field, the 'has' method for this field will now return falsevoid
clearCreatedTime()
Clears the 'createdTime' field, the 'has' method for this field will now return falsevoid
clearExternalMerchantNumber()
Clears the 'externalMerchantNumber' 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
clearModifiedTime()
Clears the 'modifiedTime' field, the 'has' method for this field will now return falsevoid
clearUsageFlag()
Clears the 'usageFlag' field, the 'has' method for this field will now return falsevoid
clearXrefType()
Clears the 'xrefType' field, the 'has' method for this field will now return falseboolean
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 auditString
getAuditUserId()
User performing auditString
getClientFlag()
Client flagLong
getCreatedTime()
Date record createdString
getExternalMerchantNumber()
External merchant numberprotected 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 updatedString
getUsageFlag()
Usage flagString
getXrefType()
Cross reference typeboolean
hasAuditDate()
Checks whether the 'auditDate' field has been set, however the value could be nullboolean
hasAuditUserId()
Checks whether the 'auditUserId' field has been set, however the value could be nullboolean
hasClientFlag()
Checks whether the 'clientFlag' field has been set, however the value could be nullboolean
hasCreatedTime()
Checks whether the 'createdTime' field has been set, however the value could be nullboolean
hasExternalMerchantNumber()
Checks whether the 'externalMerchantNumber' 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
hasModifiedTime()
Checks whether the 'modifiedTime' field has been set, however the value could be nullboolean
hasUsageFlag()
Checks whether the 'usageFlag' field has been set, however the value could be nullboolean
hasXrefType()
Checks whether the 'xrefType' field has been set, however the value could be nullboolean
isNotNullAuditDate()
Checks whether the 'auditDate' field is set and is not nullboolean
isNotNullAuditUserId()
Checks whether the 'auditUserId' field is set and is not nullboolean
isNotNullClientFlag()
Checks whether the 'clientFlag' field is set and is not nullboolean
isNotNullCreatedTime()
Checks whether the 'createdTime' field is set and is not nullboolean
isNotNullExternalMerchantNumber()
Checks whether the 'externalMerchantNumber' field is set and is not nullboolean
isNotNullMerchantRef()
Checks whether the 'merchantRef' field is set and is not nullboolean
isNotNullModifiedTime()
Checks whether the 'modifiedTime' field is set and is not nullboolean
isNotNullUsageFlag()
Checks whether the 'usageFlag' field is set and is not nullboolean
isNotNullXrefType()
Checks whether the 'xrefType' field is set and is not nullvoid
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()
-
Methods inherited from class com.clover.sdk.GenericParcelable
describeContents, getBundle, toString, writeToParcel
-
-
-
-
Field Detail
-
CREATOR
public static final Parcelable.Creator<ExternalMerchant> CREATOR
-
JSON_CREATOR
public static final JSONifiable.Creator<ExternalMerchant> JSON_CREATOR
-
-
Constructor Detail
-
ExternalMerchant
public ExternalMerchant()
Constructs a new empty instance.
-
ExternalMerchant
protected ExternalMerchant(boolean noInit)
Constructs a new empty instance.
-
ExternalMerchant
public ExternalMerchant(String json) throws IllegalArgumentException
Constructs a new instance from the given JSON String.- Throws:
IllegalArgumentException
-
ExternalMerchant
public 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
public ExternalMerchant(ExternalMerchant 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()
-
getExternalMerchantNumber
public String getExternalMerchantNumber()
External merchant number
-
getClientFlag
public String getClientFlag()
Client flag
-
getUsageFlag
public String getUsageFlag()
Usage flag
-
getXrefType
public String getXrefType()
Cross reference type
-
getAuditUserId
public String getAuditUserId()
User performing audit
-
getAuditDate
public Long getAuditDate()
Date of audit
-
getCreatedTime
public Long getCreatedTime()
Date record created
-
getModifiedTime
public Long getModifiedTime()
Date record updated
-
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
-
isNotNullExternalMerchantNumber
public boolean isNotNullExternalMerchantNumber()
Checks whether the 'externalMerchantNumber' field is set and is not null
-
isNotNullClientFlag
public boolean isNotNullClientFlag()
Checks whether the 'clientFlag' field is set and is not null
-
isNotNullUsageFlag
public boolean isNotNullUsageFlag()
Checks whether the 'usageFlag' field is set and is not null
-
isNotNullXrefType
public boolean isNotNullXrefType()
Checks whether the 'xrefType' field is set and is not null
-
isNotNullAuditUserId
public boolean isNotNullAuditUserId()
Checks whether the 'auditUserId' field is set and is not null
-
isNotNullAuditDate
public boolean isNotNullAuditDate()
Checks whether the 'auditDate' field is set and is not null
-
isNotNullCreatedTime
public boolean isNotNullCreatedTime()
Checks whether the 'createdTime' field is set and is not null
-
isNotNullModifiedTime
public boolean isNotNullModifiedTime()
Checks whether the 'modifiedTime' 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
-
hasExternalMerchantNumber
public boolean hasExternalMerchantNumber()
Checks whether the 'externalMerchantNumber' field has been set, however the value could be null
-
hasClientFlag
public boolean hasClientFlag()
Checks whether the 'clientFlag' field has been set, however the value could be null
-
hasUsageFlag
public boolean hasUsageFlag()
Checks whether the 'usageFlag' field has been set, however the value could be null
-
hasXrefType
public boolean hasXrefType()
Checks whether the 'xrefType' field has been set, however the value could be null
-
hasAuditUserId
public boolean hasAuditUserId()
Checks whether the 'auditUserId' field has been set, however the value could be null
-
hasAuditDate
public boolean hasAuditDate()
Checks whether the 'auditDate' field has been set, however the value could be null
-
hasCreatedTime
public boolean hasCreatedTime()
Checks whether the 'createdTime' field has been set, however the value could be null
-
hasModifiedTime
public boolean hasModifiedTime()
Checks whether the 'modifiedTime' field has been set, however the value could be null
-
setMerchantRef
public ExternalMerchant 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.
-
setExternalMerchantNumber
public ExternalMerchant setExternalMerchantNumber(String externalMerchantNumber)
Sets the field 'externalMerchantNumber'.
-
setClientFlag
public ExternalMerchant setClientFlag(String clientFlag)
Sets the field 'clientFlag'.
-
setUsageFlag
public ExternalMerchant setUsageFlag(String usageFlag)
Sets the field 'usageFlag'.
-
setXrefType
public ExternalMerchant setXrefType(String xrefType)
Sets the field 'xrefType'.
-
setAuditUserId
public ExternalMerchant setAuditUserId(String auditUserId)
Sets the field 'auditUserId'.
-
setAuditDate
public ExternalMerchant setAuditDate(Long auditDate)
Sets the field 'auditDate'.
-
setCreatedTime
public ExternalMerchant setCreatedTime(Long createdTime)
Sets the field 'createdTime'.
-
setModifiedTime
public ExternalMerchant setModifiedTime(Long modifiedTime)
Sets the field 'modifiedTime'.
-
clearMerchantRef
public void clearMerchantRef()
Clears the 'merchantRef' field, the 'has' method for this field will now return false
-
clearExternalMerchantNumber
public void clearExternalMerchantNumber()
Clears the 'externalMerchantNumber' field, the 'has' method for this field will now return false
-
clearClientFlag
public void clearClientFlag()
Clears the 'clientFlag' field, the 'has' method for this field will now return false
-
clearUsageFlag
public void clearUsageFlag()
Clears the 'usageFlag' field, the 'has' method for this field will now return false
-
clearXrefType
public void clearXrefType()
Clears the 'xrefType' field, the 'has' method for this field will now return false
-
clearAuditUserId
public void clearAuditUserId()
Clears the 'auditUserId' field, the 'has' method for this field will now return false
-
clearAuditDate
public void clearAuditDate()
Clears the 'auditDate' field, the 'has' method for this field will now return false
-
clearCreatedTime
public void clearCreatedTime()
Clears the 'createdTime' field, the 'has' method for this field will now return false
-
clearModifiedTime
public void clearModifiedTime()
Clears the 'modifiedTime' 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 ExternalMerchant copyChanges()
Create a copy of this instance that contains only fields that were set after the constructor was called.
-
mergeChanges
public void mergeChanges(ExternalMerchant src)
Copy all the changed fields from the given source to this instance.
-
-