public class MerchantHierarchy extends GenericParcelable implements Validator, JSONifiable
Chain/corporate references and legal/billing/banking information for a merchant. Can also represent corporations/franchise organizations without Clover devices.
Modifier and Type | Class and Description |
---|---|
static interface |
MerchantHierarchy.Constraints |
JSONifiable.Creator<T>
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
Modifier and Type | Field and Description |
---|---|
static Parcelable.Creator<MerchantHierarchy> |
CREATOR |
static JSONifiable.Creator<MerchantHierarchy> |
JSON_CREATOR |
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
Modifier | Constructor and Description |
---|---|
|
MerchantHierarchy()
Constructs a new empty instance.
|
protected |
MerchantHierarchy(boolean noInit)
Constructs a new empty instance.
|
|
MerchantHierarchy(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.
|
|
MerchantHierarchy(MerchantHierarchy src)
Constructs a new instance that is a deep copy of the source instance.
|
|
MerchantHierarchy(String json)
Constructs a new instance from the given JSON String.
|
Modifier and Type | Method and Description |
---|---|
void |
clearAbaAccountNumber()
Clears the 'abaAccountNumber' field, the 'has' method for this field will now return false
|
void |
clearAgent()
Clears the 'agent' field, the 'has' method for this field will now return false
|
void |
clearAssociation()
Clears the 'association' field, the 'has' method for this field will now return false
|
void |
clearBank()
Clears the 'bank' field, the 'has' method for this field will now return false
|
void |
clearBillCity()
Clears the 'billCity' field, the 'has' method for this field will now return false
|
void |
clearBillName()
Clears the 'billName' field, the 'has' method for this field will now return false
|
void |
clearBillPhoneNumber()
Clears the 'billPhoneNumber' field, the 'has' method for this field will now return false
|
void |
clearBillState()
Clears the 'billState' field, the 'has' method for this field will now return false
|
void |
clearBillToAttention()
Clears the 'billToAttention' field, the 'has' method for this field will now return false
|
void |
clearBillZip()
Clears the 'billZip' field, the 'has' method for this field will now return false
|
void |
clearBusiness()
Clears the 'business' field, the 'has' method for this field will now return false
|
void |
clearChain()
Clears the 'chain' field, the 'has' method for this field will now return false
|
void |
clearCorporate()
Clears the 'corporate' field, the 'has' method for this field will now return false
|
void |
clearCustomer()
Clears the 'customer' field, the 'has' method for this field will now return false
|
void |
clearDbaAddress()
Clears the 'dbaAddress' field, the 'has' method for this field will now return false
|
void |
clearDbaAttention()
Clears the 'dbaAttention' field, the 'has' method for this field will now return false
|
void |
clearDbaCity()
Clears the 'dbaCity' field, the 'has' method for this field will now return false
|
void |
clearDbaName()
Clears the 'dbaName' field, the 'has' method for this field will now return false
|
void |
clearDbaPhoneNumber()
Clears the 'dbaPhoneNumber' field, the 'has' method for this field will now return false
|
void |
clearDbaState()
Clears the 'dbaState' field, the 'has' method for this field will now return false
|
void |
clearDbaZip()
Clears the 'dbaZip' field, the 'has' method for this field will now return false
|
void |
clearDdaAccountNumber()
Clears the 'ddaAccountNumber' field, the 'has' method for this field will now return false
|
void |
clearEmail()
Clears the 'email' field, the 'has' method for this field will now return false
|
void |
clearLegalName()
Clears the 'legalName' field, the 'has' method for this field will now return false
|
void |
clearMaps()
Clears the 'maps' field, the 'has' method for this field will now return false
|
void |
clearMid()
Clears the 'mid' field, the 'has' method for this field will now return false
|
boolean |
containsChanges()
Returns true if this instance has any changes.
|
MerchantHierarchy |
copyChanges()
Create a copy of this instance that contains only fields that were set after the constructor was called.
|
String |
getAbaAccountNumber()
ABA account number
|
String |
getAgent()
Agent ID
|
String |
getAssociation()
Association Number
|
String |
getBank()
Bank ID
|
String |
getBillCity()
Bill To city
|
String |
getBillName()
Bill to name
|
String |
getBillPhoneNumber()
Bill To phone number
|
String |
getBillState()
Bill To state
|
String |
getBillToAttention()
Bill To attention
|
String |
getBillZip()
Bill To ZIP
|
String |
getBusiness()
Business ID
|
String |
getChain()
Chain bank
|
String |
getCorporate()
Corporate ID
|
String |
getCustomer()
Customer ID
|
String |
getDbaAddress()
DBA address
|
String |
getDbaAttention()
DBA attention name
|
String |
getDbaCity()
DBA city
|
String |
getDbaName()
DBA name
|
String |
getDbaPhoneNumber()
DBA phone number
|
String |
getDbaState()
DBA state
|
String |
getDbaZip()
DBA zip
|
String |
getDdaAccountNumber()
DDA account number
|
String |
getEmail()
Email
|
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 |
getLegalName()
Legal name
|
String |
getMaps()
MAPS ID
|
String |
getMid()
Merchant ID
|
boolean |
hasAbaAccountNumber()
Checks whether the 'abaAccountNumber' field has been set, however the value could be null
|
boolean |
hasAgent()
Checks whether the 'agent' field has been set, however the value could be null
|
boolean |
hasAssociation()
Checks whether the 'association' field has been set, however the value could be null
|
boolean |
hasBank()
Checks whether the 'bank' field has been set, however the value could be null
|
boolean |
hasBillCity()
Checks whether the 'billCity' field has been set, however the value could be null
|
boolean |
hasBillName()
Checks whether the 'billName' field has been set, however the value could be null
|
boolean |
hasBillPhoneNumber()
Checks whether the 'billPhoneNumber' field has been set, however the value could be null
|
boolean |
hasBillState()
Checks whether the 'billState' field has been set, however the value could be null
|
boolean |
hasBillToAttention()
Checks whether the 'billToAttention' field has been set, however the value could be null
|
boolean |
hasBillZip()
Checks whether the 'billZip' field has been set, however the value could be null
|
boolean |
hasBusiness()
Checks whether the 'business' field has been set, however the value could be null
|
boolean |
hasChain()
Checks whether the 'chain' field has been set, however the value could be null
|
boolean |
hasCorporate()
Checks whether the 'corporate' field has been set, however the value could be null
|
boolean |
hasCustomer()
Checks whether the 'customer' field has been set, however the value could be null
|
boolean |
hasDbaAddress()
Checks whether the 'dbaAddress' field has been set, however the value could be null
|
boolean |
hasDbaAttention()
Checks whether the 'dbaAttention' field has been set, however the value could be null
|
boolean |
hasDbaCity()
Checks whether the 'dbaCity' field has been set, however the value could be null
|
boolean |
hasDbaName()
Checks whether the 'dbaName' field has been set, however the value could be null
|
boolean |
hasDbaPhoneNumber()
Checks whether the 'dbaPhoneNumber' field has been set, however the value could be null
|
boolean |
hasDbaState()
Checks whether the 'dbaState' field has been set, however the value could be null
|
boolean |
hasDbaZip()
Checks whether the 'dbaZip' field has been set, however the value could be null
|
boolean |
hasDdaAccountNumber()
Checks whether the 'ddaAccountNumber' field has been set, however the value could be null
|
boolean |
hasEmail()
Checks whether the 'email' field has been set, however the value could be null
|
boolean |
hasLegalName()
Checks whether the 'legalName' field has been set, however the value could be null
|
boolean |
hasMaps()
Checks whether the 'maps' field has been set, however the value could be null
|
boolean |
hasMid()
Checks whether the 'mid' field has been set, however the value could be null
|
boolean |
isNotNullAbaAccountNumber()
Checks whether the 'abaAccountNumber' field is set and is not null
|
boolean |
isNotNullAgent()
Checks whether the 'agent' field is set and is not null
|
boolean |
isNotNullAssociation()
Checks whether the 'association' field is set and is not null
|
boolean |
isNotNullBank()
Checks whether the 'bank' field is set and is not null
|
boolean |
isNotNullBillCity()
Checks whether the 'billCity' field is set and is not null
|
boolean |
isNotNullBillName()
Checks whether the 'billName' field is set and is not null
|
boolean |
isNotNullBillPhoneNumber()
Checks whether the 'billPhoneNumber' field is set and is not null
|
boolean |
isNotNullBillState()
Checks whether the 'billState' field is set and is not null
|
boolean |
isNotNullBillToAttention()
Checks whether the 'billToAttention' field is set and is not null
|
boolean |
isNotNullBillZip()
Checks whether the 'billZip' field is set and is not null
|
boolean |
isNotNullBusiness()
Checks whether the 'business' field is set and is not null
|
boolean |
isNotNullChain()
Checks whether the 'chain' field is set and is not null
|
boolean |
isNotNullCorporate()
Checks whether the 'corporate' field is set and is not null
|
boolean |
isNotNullCustomer()
Checks whether the 'customer' field is set and is not null
|
boolean |
isNotNullDbaAddress()
Checks whether the 'dbaAddress' field is set and is not null
|
boolean |
isNotNullDbaAttention()
Checks whether the 'dbaAttention' field is set and is not null
|
boolean |
isNotNullDbaCity()
Checks whether the 'dbaCity' field is set and is not null
|
boolean |
isNotNullDbaName()
Checks whether the 'dbaName' field is set and is not null
|
boolean |
isNotNullDbaPhoneNumber()
Checks whether the 'dbaPhoneNumber' field is set and is not null
|
boolean |
isNotNullDbaState()
Checks whether the 'dbaState' field is set and is not null
|
boolean |
isNotNullDbaZip()
Checks whether the 'dbaZip' field is set and is not null
|
boolean |
isNotNullDdaAccountNumber()
Checks whether the 'ddaAccountNumber' field is set and is not null
|
boolean |
isNotNullEmail()
Checks whether the 'email' field is set and is not null
|
boolean |
isNotNullLegalName()
Checks whether the 'legalName' field is set and is not null
|
boolean |
isNotNullMaps()
Checks whether the 'maps' field is set and is not null
|
boolean |
isNotNullMid()
Checks whether the 'mid' field is set and is not null
|
void |
mergeChanges(MerchantHierarchy 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.
|
MerchantHierarchy |
setAbaAccountNumber(String abaAccountNumber)
Sets the field 'abaAccountNumber'.
|
MerchantHierarchy |
setAgent(String agent)
Sets the field 'agent'.
|
MerchantHierarchy |
setAssociation(String association)
Sets the field 'association'.
|
MerchantHierarchy |
setBank(String bank)
Sets the field 'bank'.
|
MerchantHierarchy |
setBillCity(String billCity)
Sets the field 'billCity'.
|
MerchantHierarchy |
setBillName(String billName)
Sets the field 'billName'.
|
MerchantHierarchy |
setBillPhoneNumber(String billPhoneNumber)
Sets the field 'billPhoneNumber'.
|
MerchantHierarchy |
setBillState(String billState)
Sets the field 'billState'.
|
MerchantHierarchy |
setBillToAttention(String billToAttention)
Sets the field 'billToAttention'.
|
MerchantHierarchy |
setBillZip(String billZip)
Sets the field 'billZip'.
|
MerchantHierarchy |
setBusiness(String business)
Sets the field 'business'.
|
MerchantHierarchy |
setChain(String chain)
Sets the field 'chain'.
|
MerchantHierarchy |
setCorporate(String corporate)
Sets the field 'corporate'.
|
MerchantHierarchy |
setCustomer(String customer)
Sets the field 'customer'.
|
MerchantHierarchy |
setDbaAddress(String dbaAddress)
Sets the field 'dbaAddress'.
|
MerchantHierarchy |
setDbaAttention(String dbaAttention)
Sets the field 'dbaAttention'.
|
MerchantHierarchy |
setDbaCity(String dbaCity)
Sets the field 'dbaCity'.
|
MerchantHierarchy |
setDbaName(String dbaName)
Sets the field 'dbaName'.
|
MerchantHierarchy |
setDbaPhoneNumber(String dbaPhoneNumber)
Sets the field 'dbaPhoneNumber'.
|
MerchantHierarchy |
setDbaState(String dbaState)
Sets the field 'dbaState'.
|
MerchantHierarchy |
setDbaZip(String dbaZip)
Sets the field 'dbaZip'.
|
MerchantHierarchy |
setDdaAccountNumber(String ddaAccountNumber)
Sets the field 'ddaAccountNumber'.
|
MerchantHierarchy |
setEmail(String email)
Sets the field 'email'.
|
MerchantHierarchy |
setLegalName(String legalName)
Sets the field 'legalName'.
|
MerchantHierarchy |
setMaps(String maps)
Sets the field 'maps'.
|
MerchantHierarchy |
setMid(String mid)
Sets the field 'mid'.
|
void |
validate() |
describeContents, getBundle, toString, writeToParcel
public static final Parcelable.Creator<MerchantHierarchy> CREATOR
public static final JSONifiable.Creator<MerchantHierarchy> JSON_CREATOR
public MerchantHierarchy()
protected MerchantHierarchy(boolean noInit)
public MerchantHierarchy(String json) throws IllegalArgumentException
IllegalArgumentException
public MerchantHierarchy(JSONObject jsonObject)
public MerchantHierarchy(MerchantHierarchy src)
public String getMid()
public String getChain()
public String getCorporate()
public String getAgent()
public String getBank()
public String getBusiness()
public String getMaps()
public String getAssociation()
public String getCustomer()
public String getBillName()
public String getDbaName()
public String getDbaAttention()
public String getLegalName()
public String getBillToAttention()
public String getEmail()
public String getAbaAccountNumber()
public String getDdaAccountNumber()
public String getDbaAddress()
public String getDbaCity()
public String getDbaState()
public String getDbaZip()
public String getDbaPhoneNumber()
public String getBillCity()
public String getBillState()
public String getBillZip()
public String getBillPhoneNumber()
protected GenericClient getGenericClient()
getGenericClient
in class GenericParcelable
public JSONObject getJSONObject()
getJSONObject
in interface JSONifiable
public boolean isNotNullMid()
public boolean isNotNullChain()
public boolean isNotNullCorporate()
public boolean isNotNullAgent()
public boolean isNotNullBank()
public boolean isNotNullBusiness()
public boolean isNotNullMaps()
public boolean isNotNullAssociation()
public boolean isNotNullCustomer()
public boolean isNotNullBillName()
public boolean isNotNullDbaName()
public boolean isNotNullDbaAttention()
public boolean isNotNullLegalName()
public boolean isNotNullBillToAttention()
public boolean isNotNullEmail()
public boolean isNotNullAbaAccountNumber()
public boolean isNotNullDdaAccountNumber()
public boolean isNotNullDbaAddress()
public boolean isNotNullDbaCity()
public boolean isNotNullDbaState()
public boolean isNotNullDbaZip()
public boolean isNotNullDbaPhoneNumber()
public boolean isNotNullBillCity()
public boolean isNotNullBillState()
public boolean isNotNullBillZip()
public boolean isNotNullBillPhoneNumber()
public boolean hasMid()
public boolean hasChain()
public boolean hasCorporate()
public boolean hasAgent()
public boolean hasBank()
public boolean hasBusiness()
public boolean hasMaps()
public boolean hasAssociation()
public boolean hasCustomer()
public boolean hasBillName()
public boolean hasDbaName()
public boolean hasDbaAttention()
public boolean hasLegalName()
public boolean hasBillToAttention()
public boolean hasEmail()
public boolean hasAbaAccountNumber()
public boolean hasDdaAccountNumber()
public boolean hasDbaAddress()
public boolean hasDbaCity()
public boolean hasDbaState()
public boolean hasDbaZip()
public boolean hasDbaPhoneNumber()
public boolean hasBillCity()
public boolean hasBillState()
public boolean hasBillZip()
public boolean hasBillPhoneNumber()
public MerchantHierarchy setMid(String mid)
public MerchantHierarchy setChain(String chain)
public MerchantHierarchy setCorporate(String corporate)
public MerchantHierarchy setAgent(String agent)
public MerchantHierarchy setBank(String bank)
public MerchantHierarchy setBusiness(String business)
public MerchantHierarchy setMaps(String maps)
public MerchantHierarchy setAssociation(String association)
public MerchantHierarchy setCustomer(String customer)
public MerchantHierarchy setBillName(String billName)
public MerchantHierarchy setDbaName(String dbaName)
public MerchantHierarchy setDbaAttention(String dbaAttention)
public MerchantHierarchy setLegalName(String legalName)
public MerchantHierarchy setBillToAttention(String billToAttention)
public MerchantHierarchy setEmail(String email)
public MerchantHierarchy setAbaAccountNumber(String abaAccountNumber)
public MerchantHierarchy setDdaAccountNumber(String ddaAccountNumber)
public MerchantHierarchy setDbaAddress(String dbaAddress)
public MerchantHierarchy setDbaCity(String dbaCity)
public MerchantHierarchy setDbaState(String dbaState)
public MerchantHierarchy setDbaZip(String dbaZip)
public MerchantHierarchy setDbaPhoneNumber(String dbaPhoneNumber)
public MerchantHierarchy setBillCity(String billCity)
public MerchantHierarchy setBillState(String billState)
public MerchantHierarchy setBillZip(String billZip)
public MerchantHierarchy setBillPhoneNumber(String billPhoneNumber)
public void clearMid()
public void clearChain()
public void clearCorporate()
public void clearAgent()
public void clearBank()
public void clearBusiness()
public void clearMaps()
public void clearAssociation()
public void clearCustomer()
public void clearBillName()
public void clearDbaName()
public void clearDbaAttention()
public void clearLegalName()
public void clearBillToAttention()
public void clearEmail()
public void clearAbaAccountNumber()
public void clearDdaAccountNumber()
public void clearDbaAddress()
public void clearDbaCity()
public void clearDbaState()
public void clearDbaZip()
public void clearDbaPhoneNumber()
public void clearBillCity()
public void clearBillState()
public void clearBillZip()
public void clearBillPhoneNumber()
public boolean containsChanges()
public void resetChangeLog()
public MerchantHierarchy copyChanges()
public void mergeChanges(MerchantHierarchy src)