Class: Customer

Model~Customer(data) → {void}

Customer data model.

Constructor

new Customer(data) → {void}

Customer Constructor.

Customer Constructor.

Parameters:
Name Type Description
data Object
Source:
Returns:
Type
void

Methods

getAccountId() → {number}

Get account_id.

Get account_id.

Source:
Returns:
Type
number

getBillAddress1() → {string}

Get bill_addr1.

Get bill_addr1.

Source:
Returns:
Type
string

getBillAddress2() → {string}

Get bill_addr2.

Get bill_addr2.

Source:
Returns:
Type
string

getBillCity() → {string}

Get bill_city.

Get bill_city.

Source:
Returns:
Type
string

getBillCompany() → {string}

Get bill_comp.

Get bill_comp.

Source:
Returns:
Type
string

getBillCountry() → {string}

Get bill_cntry.

Get bill_cntry.

Source:
Returns:
Type
string

getBillEmail() → {string}

Get bill_email.

Get bill_email.

Source:
Returns:
Type
string

getBillFax() → {string}

Get bill_fax.

Get bill_fax.

Source:
Returns:
Type
string

getBillFirstName() → {string}

Get bill_fname.

Get bill_fname.

Source:
Returns:
Type
string

getBillId() → {number}

Get bill_id.

Get bill_id.

Source:
Returns:
Type
number

getBillLastName() → {string}

Get bill_lname.

Get bill_lname.

Source:
Returns:
Type
string

getBillPhone() → {string}

Get bill_phone.

Get bill_phone.

Source:
Returns:
Type
string

getBillState() → {string}

Get bill_state.

Get bill_state.

Source:
Returns:
Type
string

getBillZip() → {string}

Get bill_zip.

Get bill_zip.

Source:
Returns:
Type
string

getBusinessTitle() → {string}

Get business_title.

Get business_title.

Source:
Returns:
Type
string

getCreatedOn() → {number}

Get dt_created.

Get dt_created.

Source:
Returns:
Type
number

getCredit() → {number}

Get credit.

Get credit.

Source:
Returns:
Type
number

getCustomFieldValues() → {CustomFieldValues|*}

Get CustomField_Values.

Get CustomField_Values.

Source:
Returns:
Type
CustomFieldValues | *

getFormattedCredit() → {string}

Get formatted_credit.

Get formatted_credit.

Source:
Returns:
Type
string

getId() → {number}

Get id.

Get id.

Source:
Returns:
Type
number

getLastLogin() → {number}

Get dt_login.

Get dt_login.

Source:
Returns:
Type
number

getLogin() → {string}

Get login.

Get login.

Source:
Returns:
Type
string

getNoteCount() → {number}

Get note_count.

Get note_count.

Source:
Returns:
Type
number

getPasswordEmail() → {string}

Get pw_email.

Get pw_email.

Source:
Returns:
Type
string

getShipAddress1() → {string}

Get ship_addr1.

Get ship_addr1.

Source:
Returns:
Type
string

getShipAddress2() → {string}

Get ship_addr2.

Get ship_addr2.

Source:
Returns:
Type
string

getShipCity() → {string}

Get ship_city.

Get ship_city.

Source:
Returns:
Type
string

getShipCompany() → {string}

Get ship_comp.

Get ship_comp.

Source:
Returns:
Type
string

getShipCountry() → {string}

Get ship_cntry.

Get ship_cntry.

Source:
Returns:
Type
string

getShipEmail() → {string}

Get ship_email.

Get ship_email.

Source:
Returns:
Type
string

getShipFax() → {string}

Get ship_fax.

Get ship_fax.

Source:
Returns:
Type
string

getShipFirstName() → {string}

Get ship_fname.

Get ship_fname.

Source:
Returns:
Type
string

getShipId() → {number}

Get ship_id.

Get ship_id.

Source:
Returns:
Type
number

getShipLastName() → {string}

Get ship_lname.

Get ship_lname.

Source:
Returns:
Type
string

getShipPhone() → {string}

Get ship_phone.

Get ship_phone.

Source:
Returns:
Type
string

getShippingResidential() → {boolean}

Get ship_res.

Get ship_res.

Source:
Returns:
Type
boolean

getShipState() → {string}

Get ship_state.

Get ship_state.

Source:
Returns:
Type
string

getShipZip() → {string}

Get ship_zip.

Get ship_zip.

Source:
Returns:
Type
string

setBillAddress1(billAddress1) → {Customer}

Set bill_addr1.

Set bill_addr1.

Parameters:
Name Type Description
billAddress1 string
Source:
Returns:
Type
Customer

setBillAddress2(billAddress2) → {Customer}

Set bill_addr2.

Set bill_addr2.

Parameters:
Name Type Description
billAddress2 string
Source:
Returns:
Type
Customer

setBillCity(billCity) → {Customer}

Set bill_city.

Set bill_city.

Parameters:
Name Type Description
billCity string
Source:
Returns:
Type
Customer

setBillCompany(billCompany) → {Customer}

Set bill_comp.

Set bill_comp.

Parameters:
Name Type Description
billCompany string
Source:
Returns:
Type
Customer

setBillCountry(billCountry) → {Customer}

Set bill_cntry.

Set bill_cntry.

Parameters:
Name Type Description
billCountry string
Source:
Returns:
Type
Customer

setBillEmail(billEmail) → {Customer}

Set bill_email.

Set bill_email.

Parameters:
Name Type Description
billEmail string
Source:
Returns:
Type
Customer

setBillFax(billFax) → {Customer}

Set bill_fax.

Set bill_fax.

Parameters:
Name Type Description
billFax string
Source:
Returns:
Type
Customer

setBillFirstName(billFirstName) → {Customer}

Set bill_fname.

Set bill_fname.

Parameters:
Name Type Description
billFirstName string
Source:
Returns:
Type
Customer

setBillLastName(billLastName) → {Customer}

Set bill_lname.

Set bill_lname.

Parameters:
Name Type Description
billLastName string
Source:
Returns:
Type
Customer

setBillPhone(billPhone) → {Customer}

Set bill_phone.

Set bill_phone.

Parameters:
Name Type Description
billPhone string
Source:
Returns:
Type
Customer

setBillState(billState) → {Customer}

Set bill_state.

Set bill_state.

Parameters:
Name Type Description
billState string
Source:
Returns:
Type
Customer

setBillZip(billZip) → {Customer}

Set bill_zip.

Set bill_zip.

Parameters:
Name Type Description
billZip string
Source:
Returns:
Type
Customer

setCustomFieldValues(customFieldValues) → {Customer}

Set CustomField_Values.

Set CustomField_Values.

Parameters:
Name Type Description
customFieldValues CustomFieldValues | Object
Source:
Throws:
Error
Returns:
Type
Customer

setLogin(login) → {Customer}

Set login.

Set login.

Parameters:
Name Type Description
login string
Source:
Returns:
Type
Customer

setPasswordEmail(passwordEmail) → {Customer}

Set pw_email.

Set pw_email.

Parameters:
Name Type Description
passwordEmail string
Source:
Returns:
Type
Customer

setShipAddress1(shipAddress1) → {Customer}

Set ship_addr1.

Set ship_addr1.

Parameters:
Name Type Description
shipAddress1 string
Source:
Returns:
Type
Customer

setShipAddress2(shipAddress2) → {Customer}

Set ship_addr2.

Set ship_addr2.

Parameters:
Name Type Description
shipAddress2 string
Source:
Returns:
Type
Customer

setShipCity(shipCity) → {Customer}

Set ship_city.

Set ship_city.

Parameters:
Name Type Description
shipCity string
Source:
Returns:
Type
Customer

setShipCompany(shipCompany) → {Customer}

Set ship_comp.

Set ship_comp.

Parameters:
Name Type Description
shipCompany string
Source:
Returns:
Type
Customer

setShipCountry(shipCountry) → {Customer}

Set ship_cntry.

Set ship_cntry.

Parameters:
Name Type Description
shipCountry string
Source:
Returns:
Type
Customer

setShipEmail(shipEmail) → {Customer}

Set ship_email.

Set ship_email.

Parameters:
Name Type Description
shipEmail string
Source:
Returns:
Type
Customer

setShipFax(shipFax) → {Customer}

Set ship_fax.

Set ship_fax.

Parameters:
Name Type Description
shipFax string
Source:
Returns:
Type
Customer

setShipFirstName(shipFirstName) → {Customer}

Set ship_fname.

Set ship_fname.

Parameters:
Name Type Description
shipFirstName string
Source:
Returns:
Type
Customer

setShipLastName(shipLastName) → {Customer}

Set ship_lname.

Set ship_lname.

Parameters:
Name Type Description
shipLastName string
Source:
Returns:
Type
Customer

setShipPhone(shipPhone) → {Customer}

Set ship_phone.

Set ship_phone.

Parameters:
Name Type Description
shipPhone string
Source:
Returns:
Type
Customer

setShippingResidential(shippingResidential) → {Customer}

Set ship_res.

Set ship_res.

Parameters:
Name Type Description
shippingResidential boolean
Source:
Returns:
Type
Customer

setShipState(shipState) → {Customer}

Set ship_state.

Set ship_state.

Parameters:
Name Type Description
shipState string
Source:
Returns:
Type
Customer

setShipZip(shipZip) → {Customer}

Set ship_zip.

Set ship_zip.

Parameters:
Name Type Description
shipZip string
Source:
Returns:
Type
Customer

toObject()

Source: