Constructor
new Customer(data) → {void}
Customer Constructor.
Customer Constructor.
Parameters:
Name | Type | Description |
---|---|---|
data |
Object |
Returns:
- Type
- void
Methods
getAccountId() → {number}
Get account_id.
Get account_id.
Returns:
- Type
- number
getBillAddress1() → {string}
Get bill_addr1.
Get bill_addr1.
Returns:
- Type
- string
getBillAddress2() → {string}
Get bill_addr2.
Get bill_addr2.
Returns:
- Type
- string
getBillCity() → {string}
Get bill_city.
Get bill_city.
Returns:
- Type
- string
getBillCompany() → {string}
Get bill_comp.
Get bill_comp.
Returns:
- Type
- string
getBillCountry() → {string}
Get bill_cntry.
Get bill_cntry.
Returns:
- Type
- string
getBillEmail() → {string}
Get bill_email.
Get bill_email.
Returns:
- Type
- string
getBillFax() → {string}
Get bill_fax.
Get bill_fax.
Returns:
- Type
- string
getBillFirstName() → {string}
Get bill_fname.
Get bill_fname.
Returns:
- Type
- string
getBillId() → {number}
Get bill_id.
Get bill_id.
Returns:
- Type
- number
getBillLastName() → {string}
Get bill_lname.
Get bill_lname.
Returns:
- Type
- string
getBillPhone() → {string}
Get bill_phone.
Get bill_phone.
Returns:
- Type
- string
getBillState() → {string}
Get bill_state.
Get bill_state.
Returns:
- Type
- string
getBillZip() → {string}
Get bill_zip.
Get bill_zip.
Returns:
- Type
- string
getBusinessTitle() → {string}
Get business_title.
Get business_title.
Returns:
- Type
- string
getCreatedOn() → {number}
Get dt_created.
Get dt_created.
Returns:
- Type
- number
getCredit() → {number}
Get credit.
Get credit.
Returns:
- Type
- number
getCustomFieldValues() → {CustomFieldValues|*}
Get CustomField_Values.
Get CustomField_Values.
Returns:
- Type
- CustomFieldValues | *
getFormattedCredit() → {string}
Get formatted_credit.
Get formatted_credit.
Returns:
- Type
- string
getId() → {number}
Get id.
Get id.
Returns:
- Type
- number
getLastLogin() → {number}
Get dt_login.
Get dt_login.
Returns:
- Type
- number
getLogin() → {string}
Get login.
Get login.
Returns:
- Type
- string
getNoteCount() → {number}
Get note_count.
Get note_count.
Returns:
- Type
- number
getPasswordEmail() → {string}
Get pw_email.
Get pw_email.
Returns:
- Type
- string
getShipAddress1() → {string}
Get ship_addr1.
Get ship_addr1.
Returns:
- Type
- string
getShipAddress2() → {string}
Get ship_addr2.
Get ship_addr2.
Returns:
- Type
- string
getShipCity() → {string}
Get ship_city.
Get ship_city.
Returns:
- Type
- string
getShipCompany() → {string}
Get ship_comp.
Get ship_comp.
Returns:
- Type
- string
getShipCountry() → {string}
Get ship_cntry.
Get ship_cntry.
Returns:
- Type
- string
getShipEmail() → {string}
Get ship_email.
Get ship_email.
Returns:
- Type
- string
getShipFax() → {string}
Get ship_fax.
Get ship_fax.
Returns:
- Type
- string
getShipFirstName() → {string}
Get ship_fname.
Get ship_fname.
Returns:
- Type
- string
getShipId() → {number}
Get ship_id.
Get ship_id.
Returns:
- Type
- number
getShipLastName() → {string}
Get ship_lname.
Get ship_lname.
Returns:
- Type
- string
getShipPhone() → {string}
Get ship_phone.
Get ship_phone.
Returns:
- Type
- string
getShippingResidential() → {boolean}
Get ship_res.
Get ship_res.
Returns:
- Type
- boolean
getShipState() → {string}
Get ship_state.
Get ship_state.
Returns:
- Type
- string
getShipZip() → {string}
Get ship_zip.
Get ship_zip.
Returns:
- Type
- string
setBillAddress1(billAddress1) → {Customer}
Set bill_addr1.
Set bill_addr1.
Parameters:
Name | Type | Description |
---|---|---|
billAddress1 |
string |
Returns:
- Type
- Customer
setBillAddress2(billAddress2) → {Customer}
Set bill_addr2.
Set bill_addr2.
Parameters:
Name | Type | Description |
---|---|---|
billAddress2 |
string |
Returns:
- Type
- Customer
setBillCity(billCity) → {Customer}
Set bill_city.
Set bill_city.
Parameters:
Name | Type | Description |
---|---|---|
billCity |
string |
Returns:
- Type
- Customer
setBillCompany(billCompany) → {Customer}
Set bill_comp.
Set bill_comp.
Parameters:
Name | Type | Description |
---|---|---|
billCompany |
string |
Returns:
- Type
- Customer
setBillCountry(billCountry) → {Customer}
Set bill_cntry.
Set bill_cntry.
Parameters:
Name | Type | Description |
---|---|---|
billCountry |
string |
Returns:
- Type
- Customer
setBillEmail(billEmail) → {Customer}
Set bill_email.
Set bill_email.
Parameters:
Name | Type | Description |
---|---|---|
billEmail |
string |
Returns:
- Type
- Customer
setBillFax(billFax) → {Customer}
Set bill_fax.
Set bill_fax.
Parameters:
Name | Type | Description |
---|---|---|
billFax |
string |
Returns:
- Type
- Customer
setBillFirstName(billFirstName) → {Customer}
Set bill_fname.
Set bill_fname.
Parameters:
Name | Type | Description |
---|---|---|
billFirstName |
string |
Returns:
- Type
- Customer
setBillLastName(billLastName) → {Customer}
Set bill_lname.
Set bill_lname.
Parameters:
Name | Type | Description |
---|---|---|
billLastName |
string |
Returns:
- Type
- Customer
setBillPhone(billPhone) → {Customer}
Set bill_phone.
Set bill_phone.
Parameters:
Name | Type | Description |
---|---|---|
billPhone |
string |
Returns:
- Type
- Customer
setBillState(billState) → {Customer}
Set bill_state.
Set bill_state.
Parameters:
Name | Type | Description |
---|---|---|
billState |
string |
Returns:
- Type
- Customer
setBillZip(billZip) → {Customer}
Set bill_zip.
Set bill_zip.
Parameters:
Name | Type | Description |
---|---|---|
billZip |
string |
Returns:
- Type
- Customer
setCustomFieldValues(customFieldValues) → {Customer}
Set CustomField_Values.
Set CustomField_Values.
Parameters:
Name | Type | Description |
---|---|---|
customFieldValues |
CustomFieldValues | Object |
Throws:
Returns:
- Type
- Customer
setLogin(login) → {Customer}
Set login.
Set login.
Parameters:
Name | Type | Description |
---|---|---|
login |
string |
Returns:
- Type
- Customer
setPasswordEmail(passwordEmail) → {Customer}
Set pw_email.
Set pw_email.
Parameters:
Name | Type | Description |
---|---|---|
passwordEmail |
string |
Returns:
- Type
- Customer
setShipAddress1(shipAddress1) → {Customer}
Set ship_addr1.
Set ship_addr1.
Parameters:
Name | Type | Description |
---|---|---|
shipAddress1 |
string |
Returns:
- Type
- Customer
setShipAddress2(shipAddress2) → {Customer}
Set ship_addr2.
Set ship_addr2.
Parameters:
Name | Type | Description |
---|---|---|
shipAddress2 |
string |
Returns:
- Type
- Customer
setShipCity(shipCity) → {Customer}
Set ship_city.
Set ship_city.
Parameters:
Name | Type | Description |
---|---|---|
shipCity |
string |
Returns:
- Type
- Customer
setShipCompany(shipCompany) → {Customer}
Set ship_comp.
Set ship_comp.
Parameters:
Name | Type | Description |
---|---|---|
shipCompany |
string |
Returns:
- Type
- Customer
setShipCountry(shipCountry) → {Customer}
Set ship_cntry.
Set ship_cntry.
Parameters:
Name | Type | Description |
---|---|---|
shipCountry |
string |
Returns:
- Type
- Customer
setShipEmail(shipEmail) → {Customer}
Set ship_email.
Set ship_email.
Parameters:
Name | Type | Description |
---|---|---|
shipEmail |
string |
Returns:
- Type
- Customer
setShipFax(shipFax) → {Customer}
Set ship_fax.
Set ship_fax.
Parameters:
Name | Type | Description |
---|---|---|
shipFax |
string |
Returns:
- Type
- Customer
setShipFirstName(shipFirstName) → {Customer}
Set ship_fname.
Set ship_fname.
Parameters:
Name | Type | Description |
---|---|---|
shipFirstName |
string |
Returns:
- Type
- Customer
setShipLastName(shipLastName) → {Customer}
Set ship_lname.
Set ship_lname.
Parameters:
Name | Type | Description |
---|---|---|
shipLastName |
string |
Returns:
- Type
- Customer
setShipPhone(shipPhone) → {Customer}
Set ship_phone.
Set ship_phone.
Parameters:
Name | Type | Description |
---|---|---|
shipPhone |
string |
Returns:
- Type
- Customer
setShippingResidential(shippingResidential) → {Customer}
Set ship_res.
Set ship_res.
Parameters:
Name | Type | Description |
---|---|---|
shippingResidential |
boolean |
Returns:
- Type
- Customer
setShipState(shipState) → {Customer}
Set ship_state.
Set ship_state.
Parameters:
Name | Type | Description |
---|---|---|
shipState |
string |
Returns:
- Type
- Customer
setShipZip(shipZip) → {Customer}
Set ship_zip.
Set ship_zip.
Parameters:
Name | Type | Description |
---|---|---|
shipZip |
string |
Returns:
- Type
- Customer