Constructor
new CustomerInsert(clientnullable, customernullable)
CustomerInsert Constructor.
CustomerInsert Constructor.
Parameters:
| Name | Type | Attributes | Default | Description | 
|---|---|---|---|---|
client | 
            
            Client | 
                
                
                    <nullable> | 
            
            
                ||
customer | 
            
            Customer | 
                
                
                    <nullable> | 
            
            
                null | 
Methods
createResponse() → {Response}
Create a response object from the response data.
Create a response object from the response data.
- Source:
 
Returns:
- Type
 - Response
 
getCustomerBillAddress1() → {string}
Get Customer_BillAddress1.
Get Customer_BillAddress1.
- Source:
 
Returns:
- Type
 - string
 
getCustomerBillAddress2() → {string}
Get Customer_BillAddress2.
Get Customer_BillAddress2.
- Source:
 
Returns:
- Type
 - string
 
getCustomerBillCity() → {string}
Get Customer_BillCity.
Get Customer_BillCity.
- Source:
 
Returns:
- Type
 - string
 
getCustomerBillCompany() → {string}
Get Customer_BillCompany.
Get Customer_BillCompany.
- Source:
 
Returns:
- Type
 - string
 
getCustomerBillCountry() → {string}
Get Customer_BillCountry.
Get Customer_BillCountry.
- Source:
 
Returns:
- Type
 - string
 
getCustomerBillEmail() → {string}
Get Customer_BillEmail.
Get Customer_BillEmail.
- Source:
 
Returns:
- Type
 - string
 
getCustomerBillFax() → {string}
Get Customer_BillFax.
Get Customer_BillFax.
- Source:
 
Returns:
- Type
 - string
 
getCustomerBillFirstName() → {string}
Get Customer_BillFirstName.
Get Customer_BillFirstName.
- Source:
 
Returns:
- Type
 - string
 
getCustomerBillLastName() → {string}
Get Customer_BillLastName.
Get Customer_BillLastName.
- Source:
 
Returns:
- Type
 - string
 
getCustomerBillPhone() → {string}
Get Customer_BillPhone.
Get Customer_BillPhone.
- Source:
 
Returns:
- Type
 - string
 
getCustomerBillState() → {string}
Get Customer_BillState.
Get Customer_BillState.
- Source:
 
Returns:
- Type
 - string
 
getCustomerBillZip() → {string}
Get Customer_BillZip.
Get Customer_BillZip.
- Source:
 
Returns:
- Type
 - string
 
getCustomerBusinessAccount() → {string}
Get Customer_BusinessAccount.
Get Customer_BusinessAccount.
- Source:
 
Returns:
- Type
 - string
 
getCustomerLogin() → {string}
Get Customer_Login.
Get Customer_Login.
- Source:
 
Returns:
- Type
 - string
 
getCustomerPassword() → {string}
Get Customer_Password.
Get Customer_Password.
- Source:
 
Returns:
- Type
 - string
 
getCustomerPasswordEmail() → {string}
Get Customer_PasswordEmail.
Get Customer_PasswordEmail.
- Source:
 
Returns:
- Type
 - string
 
getCustomerShipAddress1() → {string}
Get Customer_ShipAddress1.
Get Customer_ShipAddress1.
- Source:
 
Returns:
- Type
 - string
 
getCustomerShipAddress2() → {string}
Get Customer_ShipAddress2.
Get Customer_ShipAddress2.
- Source:
 
Returns:
- Type
 - string
 
getCustomerShipCity() → {string}
Get Customer_ShipCity.
Get Customer_ShipCity.
- Source:
 
Returns:
- Type
 - string
 
getCustomerShipCompany() → {string}
Get Customer_ShipCompany.
Get Customer_ShipCompany.
- Source:
 
Returns:
- Type
 - string
 
getCustomerShipCountry() → {string}
Get Customer_ShipCountry.
Get Customer_ShipCountry.
- Source:
 
Returns:
- Type
 - string
 
getCustomerShipEmail() → {string}
Get Customer_ShipEmail.
Get Customer_ShipEmail.
- Source:
 
Returns:
- Type
 - string
 
getCustomerShipFax() → {string}
Get Customer_ShipFax.
Get Customer_ShipFax.
- Source:
 
Returns:
- Type
 - string
 
getCustomerShipFirstName() → {string}
Get Customer_ShipFirstName.
Get Customer_ShipFirstName.
- Source:
 
Returns:
- Type
 - string
 
getCustomerShipLastName() → {string}
Get Customer_ShipLastName.
Get Customer_ShipLastName.
- Source:
 
Returns:
- Type
 - string
 
getCustomerShipPhone() → {string}
Get Customer_ShipPhone.
Get Customer_ShipPhone.
- Source:
 
Returns:
- Type
 - string
 
getCustomerShipResidential() → {boolean}
Get Customer_ShipResidential.
Get Customer_ShipResidential.
- Source:
 
Returns:
- Type
 - boolean
 
getCustomerShipState() → {string}
Get Customer_ShipState.
Get Customer_ShipState.
- Source:
 
Returns:
- Type
 - string
 
getCustomerShipZip() → {string}
Get Customer_ShipZip.
Get Customer_ShipZip.
- Source:
 
Returns:
- Type
 - string
 
getCustomerTaxExempt() → {boolean}
Get Customer_Tax_Exempt.
Get Customer_Tax_Exempt.
- Source:
 
Returns:
- Type
 - boolean
 
getCustomFieldValues() → (nullable) {CustomFieldValues}
Get CustomField_Values.
Get CustomField_Values.
- Source:
 
Returns:
- Type
 - CustomFieldValues
 
setCustomerBillAddress1(customerBillAddress1) → {CustomerInsert}
Set Customer_BillAddress1.
Set Customer_BillAddress1.
Parameters:
| Name | Type | Description | 
|---|---|---|
customerBillAddress1 | 
            
            string | 
- Source:
 
Returns:
- Type
 - CustomerInsert
 
setCustomerBillAddress2(customerBillAddress2) → {CustomerInsert}
Set Customer_BillAddress2.
Set Customer_BillAddress2.
Parameters:
| Name | Type | Description | 
|---|---|---|
customerBillAddress2 | 
            
            string | 
- Source:
 
Returns:
- Type
 - CustomerInsert
 
setCustomerBillCity(customerBillCity) → {CustomerInsert}
Set Customer_BillCity.
Set Customer_BillCity.
Parameters:
| Name | Type | Description | 
|---|---|---|
customerBillCity | 
            
            string | 
- Source:
 
Returns:
- Type
 - CustomerInsert
 
setCustomerBillCompany(customerBillCompany) → {CustomerInsert}
Set Customer_BillCompany.
Set Customer_BillCompany.
Parameters:
| Name | Type | Description | 
|---|---|---|
customerBillCompany | 
            
            string | 
- Source:
 
Returns:
- Type
 - CustomerInsert
 
setCustomerBillCountry(customerBillCountry) → {CustomerInsert}
Set Customer_BillCountry.
Set Customer_BillCountry.
Parameters:
| Name | Type | Description | 
|---|---|---|
customerBillCountry | 
            
            string | 
- Source:
 
Returns:
- Type
 - CustomerInsert
 
setCustomerBillEmail(customerBillEmail) → {CustomerInsert}
Set Customer_BillEmail.
Set Customer_BillEmail.
Parameters:
| Name | Type | Description | 
|---|---|---|
customerBillEmail | 
            
            string | 
- Source:
 
Returns:
- Type
 - CustomerInsert
 
setCustomerBillFax(customerBillFax) → {CustomerInsert}
Set Customer_BillFax.
Set Customer_BillFax.
Parameters:
| Name | Type | Description | 
|---|---|---|
customerBillFax | 
            
            string | 
- Source:
 
Returns:
- Type
 - CustomerInsert
 
setCustomerBillFirstName(customerBillFirstName) → {CustomerInsert}
Set Customer_BillFirstName.
Set Customer_BillFirstName.
Parameters:
| Name | Type | Description | 
|---|---|---|
customerBillFirstName | 
            
            string | 
- Source:
 
Returns:
- Type
 - CustomerInsert
 
setCustomerBillLastName(customerBillLastName) → {CustomerInsert}
Set Customer_BillLastName.
Set Customer_BillLastName.
Parameters:
| Name | Type | Description | 
|---|---|---|
customerBillLastName | 
            
            string | 
- Source:
 
Returns:
- Type
 - CustomerInsert
 
setCustomerBillPhone(customerBillPhone) → {CustomerInsert}
Set Customer_BillPhone.
Set Customer_BillPhone.
Parameters:
| Name | Type | Description | 
|---|---|---|
customerBillPhone | 
            
            string | 
- Source:
 
Returns:
- Type
 - CustomerInsert
 
setCustomerBillState(customerBillState) → {CustomerInsert}
Set Customer_BillState.
Set Customer_BillState.
Parameters:
| Name | Type | Description | 
|---|---|---|
customerBillState | 
            
            string | 
- Source:
 
Returns:
- Type
 - CustomerInsert
 
setCustomerBillZip(customerBillZip) → {CustomerInsert}
Set Customer_BillZip.
Set Customer_BillZip.
Parameters:
| Name | Type | Description | 
|---|---|---|
customerBillZip | 
            
            string | 
- Source:
 
Returns:
- Type
 - CustomerInsert
 
setCustomerBusinessAccount(customerBusinessAccount) → {CustomerInsert}
Set Customer_BusinessAccount.
Set Customer_BusinessAccount.
Parameters:
| Name | Type | Description | 
|---|---|---|
customerBusinessAccount | 
            
            string | 
- Source:
 
Returns:
- Type
 - CustomerInsert
 
setCustomerLogin(customerLogin) → {CustomerInsert}
Set Customer_Login.
Set Customer_Login.
Parameters:
| Name | Type | Description | 
|---|---|---|
customerLogin | 
            
            string | 
- Source:
 
Returns:
- Type
 - CustomerInsert
 
setCustomerPassword(customerPassword) → {CustomerInsert}
Set Customer_Password.
Set Customer_Password.
Parameters:
| Name | Type | Description | 
|---|---|---|
customerPassword | 
            
            string | 
- Source:
 
Returns:
- Type
 - CustomerInsert
 
setCustomerPasswordEmail(customerPasswordEmail) → {CustomerInsert}
Set Customer_PasswordEmail.
Set Customer_PasswordEmail.
Parameters:
| Name | Type | Description | 
|---|---|---|
customerPasswordEmail | 
            
            string | 
- Source:
 
Returns:
- Type
 - CustomerInsert
 
setCustomerShipAddress1(customerShipAddress1) → {CustomerInsert}
Set Customer_ShipAddress1.
Set Customer_ShipAddress1.
Parameters:
| Name | Type | Description | 
|---|---|---|
customerShipAddress1 | 
            
            string | 
- Source:
 
Returns:
- Type
 - CustomerInsert
 
setCustomerShipAddress2(customerShipAddress2) → {CustomerInsert}
Set Customer_ShipAddress2.
Set Customer_ShipAddress2.
Parameters:
| Name | Type | Description | 
|---|---|---|
customerShipAddress2 | 
            
            string | 
- Source:
 
Returns:
- Type
 - CustomerInsert
 
setCustomerShipCity(customerShipCity) → {CustomerInsert}
Set Customer_ShipCity.
Set Customer_ShipCity.
Parameters:
| Name | Type | Description | 
|---|---|---|
customerShipCity | 
            
            string | 
- Source:
 
Returns:
- Type
 - CustomerInsert
 
setCustomerShipCompany(customerShipCompany) → {CustomerInsert}
Set Customer_ShipCompany.
Set Customer_ShipCompany.
Parameters:
| Name | Type | Description | 
|---|---|---|
customerShipCompany | 
            
            string | 
- Source:
 
Returns:
- Type
 - CustomerInsert
 
setCustomerShipCountry(customerShipCountry) → {CustomerInsert}
Set Customer_ShipCountry.
Set Customer_ShipCountry.
Parameters:
| Name | Type | Description | 
|---|---|---|
customerShipCountry | 
            
            string | 
- Source:
 
Returns:
- Type
 - CustomerInsert
 
setCustomerShipEmail(customerShipEmail) → {CustomerInsert}
Set Customer_ShipEmail.
Set Customer_ShipEmail.
Parameters:
| Name | Type | Description | 
|---|---|---|
customerShipEmail | 
            
            string | 
- Source:
 
Returns:
- Type
 - CustomerInsert
 
setCustomerShipFax(customerShipFax) → {CustomerInsert}
Set Customer_ShipFax.
Set Customer_ShipFax.
Parameters:
| Name | Type | Description | 
|---|---|---|
customerShipFax | 
            
            string | 
- Source:
 
Returns:
- Type
 - CustomerInsert
 
setCustomerShipFirstName(customerShipFirstName) → {CustomerInsert}
Set Customer_ShipFirstName.
Set Customer_ShipFirstName.
Parameters:
| Name | Type | Description | 
|---|---|---|
customerShipFirstName | 
            
            string | 
- Source:
 
Returns:
- Type
 - CustomerInsert
 
setCustomerShipLastName(customerShipLastName) → {CustomerInsert}
Set Customer_ShipLastName.
Set Customer_ShipLastName.
Parameters:
| Name | Type | Description | 
|---|---|---|
customerShipLastName | 
            
            string | 
- Source:
 
Returns:
- Type
 - CustomerInsert
 
setCustomerShipPhone(customerShipPhone) → {CustomerInsert}
Set Customer_ShipPhone.
Set Customer_ShipPhone.
Parameters:
| Name | Type | Description | 
|---|---|---|
customerShipPhone | 
            
            string | 
- Source:
 
Returns:
- Type
 - CustomerInsert
 
setCustomerShipResidential(customerShipResidential) → {CustomerInsert}
Set Customer_ShipResidential.
Set Customer_ShipResidential.
Parameters:
| Name | Type | Description | 
|---|---|---|
customerShipResidential | 
            
            boolean | 
- Source:
 
Returns:
- Type
 - CustomerInsert
 
setCustomerShipState(customerShipState) → {CustomerInsert}
Set Customer_ShipState.
Set Customer_ShipState.
Parameters:
| Name | Type | Description | 
|---|---|---|
customerShipState | 
            
            string | 
- Source:
 
Returns:
- Type
 - CustomerInsert
 
setCustomerShipZip(customerShipZip) → {CustomerInsert}
Set Customer_ShipZip.
Set Customer_ShipZip.
Parameters:
| Name | Type | Description | 
|---|---|---|
customerShipZip | 
            
            string | 
- Source:
 
Returns:
- Type
 - CustomerInsert
 
setCustomerTaxExempt(customerTaxExempt) → {CustomerInsert}
Set Customer_Tax_Exempt.
Set Customer_Tax_Exempt.
Parameters:
| Name | Type | Description | 
|---|---|---|
customerTaxExempt | 
            
            boolean | 
- Source:
 
Returns:
- Type
 - CustomerInsert
 
setCustomFieldValues(customFieldValuesnullable) → {CustomerInsert}
Set CustomField_Values.
Set CustomField_Values.
Parameters:
| Name | Type | Attributes | Description | 
|---|---|---|---|
customFieldValues | 
            
            CustomFieldValues | 
                
                
                    <nullable> | 
            
            
            
- Source:
 
Throws:
Returns:
- Type
 - CustomerInsert
 
toObject() → {Object}
Reduce the request to a an object.
Reduce the request to a an object.
- Source:
 
Returns:
- Type
 - Object