public class FCustomer extends APIParam<FCustomer>
Modifier and Type | Field and Description |
---|---|
private static long |
serialVersionUID
The class' serialization version id.
|
ivHashCode, ivHashFlds, ivObjFlds
Constructor and Description |
---|
FCustomer()
Constructs a
FCustomer object with all field values set to
null . |
FCustomer(java.util.HashMap<java.lang.String,java.lang.Object> source)
Constructs a
FCustomer object with field values based on the
supplied hash map. |
FCustomer(java.lang.String source)
Constructs a
FCustomer object with field values based on the
supplied JSON text string. |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
fmtAddress()
Returns a formatted customer address string using the html <br> tag
as the address line separator.
|
java.lang.String |
fmtAddress(java.lang.String separator)
Returns a formatted customer address string using the given address line
separator.
|
java.lang.String |
getAddress1()
Returns the address line 1.
|
java.lang.String |
getAddress2()
Returns the address line 2.
|
java.lang.String |
getAddress3()
Returns the address line 3.
|
java.lang.String |
getAddress4()
Returns the address line 4.
|
java.lang.String |
getARFax()
Returns the A/R fax number.
|
java.lang.String |
getARPhone()
Returns the A/R phone number.
|
java.lang.String |
getBilltoId()
Returns the bill-to customer id.
|
java.lang.String |
getCity()
Returns the city.
|
boolean |
getCommercial()
Returns the is commerical address flag.
|
java.lang.String |
getContactName()
Returns the contact name.
|
java.lang.String |
getContactPhone()
Returns the contact phone number.
|
java.lang.String |
getCountryCode()
Returns the country code.
|
java.lang.String |
getCountryName()
Returns the country name.
|
java.lang.String |
getEmailAddr()
Returns the email address.
|
java.lang.String |
getFax()
Returns the fax number.
|
java.lang.String |
getId()
Returns the unique id for the customer.
|
boolean |
getIsPersisted()
Returns the is persisted flag.
|
java.lang.String |
getName()
Returns the name.
|
java.lang.String |
getPhone()
Returns the phone number.
|
java.lang.String |
getPostalCode()
Returns the postal code.
|
boolean |
getPrepay()
Returns the is prepay flag.
|
java.lang.String |
getShipforId()
Returns the ship-for customer id.
|
java.lang.String |
getStateCode()
Returns the state/province code.
|
java.lang.String |
getStateName()
Returns the state/province name.
|
java.lang.String |
getStatusCode()
Returns the status code (defined by backend).
|
java.lang.String |
getStatusText()
Returns the status code text (defined by backend).
|
java.lang.String |
getVerificationAddress()
Returns the customer's address used for verifying credit card transactions.
|
java.lang.String |
getVerificationPostalCode()
Returns the customer's postal code used for verifying credit card transactions.
|
java.lang.String |
getXrefCode()
Returns the product cross reference code.
|
boolean |
isOneTimeShipto()
Answers if the customer is a one-time ship-to.
|
protected void |
removeUnwantedFields()
Removes unwanted fields from a JSON object or from an array of JSON objects.
|
void |
setAddress1(java.lang.String value)
Sets the address line 1.
|
void |
setAddress2(java.lang.String value)
Sets the address line 2.
|
void |
setAddress3(java.lang.String value)
Sets the address line 3.
|
void |
setAddress4(java.lang.String value)
Sets the address line 4.
|
void |
setARFax(java.lang.String value)
Sets the A/R fax number.
|
void |
setARPhone(java.lang.String value)
Sets the A/R phone number.
|
void |
setBilltoId(java.lang.String value)
Sets the bill-to customer id.
|
void |
setCity(java.lang.String value)
Sets the city.
|
void |
setCommercial(boolean value)
Sets the is commerical address flag.
|
void |
setContactName(java.lang.String value)
Sets the contact name.
|
void |
setContactPhone(java.lang.String value)
Sets the contact phone number.
|
void |
setCountryCode(java.lang.String value)
Sets the country code.
|
void |
setCountryName(java.lang.String value)
Sets the country name.
|
void |
setEmailAddr(java.lang.String value)
Sets the email address.
|
void |
setFax(java.lang.String value)
Sets the fax number.
|
void |
setId(java.lang.String value)
Sets the unique id for the customer.
|
void |
setIsPersisted(boolean value)
Sets the is persisted flag.
|
void |
setName(java.lang.String value)
Sets the name.
|
void |
setPhone(java.lang.String value)
Sets the phone number.
|
void |
setPostalCode(java.lang.String value)
Sets the postal code.
|
void |
setPrepay(boolean value)
Sets the is prepay flag.
|
void |
setShipforId(java.lang.String value)
Sets the ship-for customer id.
|
void |
setStateCode(java.lang.String value)
Sets the state/province code.
|
void |
setStateName(java.lang.String value)
Sets the state/province name.
|
void |
setStatusCode(java.lang.String value)
Sets the status code (defined by backend).
|
void |
setStatusText(java.lang.String value)
Sets the status code text (defined by backend).
|
void |
setXrefCode(java.lang.String value)
Sets the product cross reference code.
|
after, before, compareTo, equals, getHashFields, getObjectFields, hashCode, removeStringWhitespace, removeUnwantedFields, setHashFields, setObjectFields, toJSONString, toString
private static final long serialVersionUID
public FCustomer()
FCustomer
object with all field values set to
null
.public FCustomer(java.util.HashMap<java.lang.String,java.lang.Object> source)
FCustomer
object with field values based on the
supplied hash map.source
- (HashMap) A hash map of field names and values.public FCustomer(java.lang.String source)
FCustomer
object with field values based on the
supplied JSON text string.source
- (String) A string beginning with {
(left brace) and ending with }
(right brace).protected void removeUnwantedFields()
removeUnwantedFields
in class APIParam<FCustomer>
public java.lang.String getId()
public void setId(java.lang.String value)
value
- (String) The unique id for the customer.public java.lang.String getBilltoId()
public void setBilltoId(java.lang.String value)
value
- (String) The bill-to customer id.public java.lang.String getShipforId()
public void setShipforId(java.lang.String value)
value
- (String) The ship-for customer id.public java.lang.String getName()
public void setName(java.lang.String value)
value
- (String) The name.public java.lang.String getAddress1()
public void setAddress1(java.lang.String value)
value
- (String) The address line 1.public java.lang.String getAddress2()
public void setAddress2(java.lang.String value)
value
- (String) The address line 2.public java.lang.String getAddress3()
public void setAddress3(java.lang.String value)
value
- (String) The address line 3.public java.lang.String getAddress4()
public void setAddress4(java.lang.String value)
value
- (String) The address line 4.public java.lang.String getCity()
public void setCity(java.lang.String value)
value
- (String) The city.public java.lang.String getStateCode()
public void setStateCode(java.lang.String value)
value
- (String) The state/province code.public java.lang.String getStateName()
public void setStateName(java.lang.String value)
value
- (String) The state/province name.public java.lang.String getPostalCode()
public void setPostalCode(java.lang.String value)
value
- (String) The postal code.public java.lang.String getCountryCode()
public void setCountryCode(java.lang.String value)
value
- (String) The country code.public java.lang.String getCountryName()
public void setCountryName(java.lang.String value)
value
- (String) The country name.public java.lang.String getStatusCode()
public void setStatusCode(java.lang.String value)
value
- (String) The status code (defined by backend).public java.lang.String getStatusText()
public void setStatusText(java.lang.String value)
value
- (String) The status code text (defined by backend).public java.lang.String getXrefCode()
public void setXrefCode(java.lang.String value)
value
- (String) The product cross reference code.public boolean getPrepay()
public void setPrepay(boolean value)
value
- (boolean) The is prepay flag.public java.lang.String getPhone()
public void setPhone(java.lang.String value)
value
- (String) The phone number.public java.lang.String getFax()
public void setFax(java.lang.String value)
value
- (String) The fax number.public java.lang.String getARPhone()
public void setARPhone(java.lang.String value)
value
- (String) The A/R phone number.public java.lang.String getARFax()
public void setARFax(java.lang.String value)
value
- (String) The A/R fax number.public java.lang.String getEmailAddr()
public void setEmailAddr(java.lang.String value)
value
- (String) The email address.public boolean getCommercial()
public void setCommercial(boolean value)
value
- (boolean) The is commerical address flag.public java.lang.String getContactName()
public void setContactName(java.lang.String value)
value
- (String) The contact name.public java.lang.String getContactPhone()
public void setContactPhone(java.lang.String value)
value
- (String) The contact phone number.public boolean getIsPersisted()
public void setIsPersisted(boolean value)
value
- (boolean) The is persisted flag.public java.lang.String getVerificationAddress()
public java.lang.String getVerificationPostalCode()
public java.lang.String fmtAddress()
public java.lang.String fmtAddress(java.lang.String separator)
separator
- (String) The character(s) to use as a separator
between each line of address.public boolean isOneTimeShipto()
true
if the customer is a one-time ship-to,
otherwise false
.