Class: module:models/OrderAddress

module:models/OrderAddress()

new module:models/OrderAddress()

Constructs a new OrderAddress. Document representing an order address.

Source:

Members

(readonly) CountryCodeEnum :String

Allowed values for the country_code property.

Type:
  • String
Source:

(inner) address1 :String

The first address.

Type:
  • String
Source:

(inner) address2 :String

The second address.

Type:
  • String
Source:

(inner) city :String

The city.

Type:
  • String
Source:

(inner, constant) CN

value: "CN"

Source:

(inner) company_name :String

The company name.

Type:
  • String
Source:

(inner) country_code :module:models/OrderAddress.CountryCodeEnum

The two-letter ISO 3166-1 (Alpha-2) country code.

Type:
  • module:models/OrderAddress.CountryCodeEnum
Source:

(inner) first_name :String

The first name.

Type:
  • String
Source:

(inner, constant) FR

value: "FR"

Source:

(inner) full_name :String

The full name.

Type:
  • String
Source:

(inner, constant) GB

value: "GB"

Source:

(inner) id :String

Id used to identify this address

Type:
  • String
Source:

(inner, constant) IT

value: "IT"

Source:

(inner) job_title :String

The job title.

Type:
  • String
Source:

(inner, constant) JP

value: "JP"

Source:

(inner) last_name :String

The last name.

Type:
  • String
Source:

(inner) phone :String

The phone number.

Type:
  • String
Source:

(inner) post_box :String

The post box.

Type:
  • String
Source:

(inner) postal_code :String

The postal code.

Type:
  • String
Source:

(inner) salutation :String

The salutation.

Type:
  • String
Source:

(inner) second_name :String

The second name.

Type:
  • String
Source:

(inner) state_code :String

The state code.

Type:
  • String
Source:

(inner) suffix :String

The suffix.

Type:
  • String
Source:

(inner) suite :String

The suite.

Type:
  • String
Source:

(inner) title :String

The title.

Type:
  • String
Source:

(inner, constant) US

value: "US"

Source:

Methods

(static) constructFromObject(data, obj) → {module:models/OrderAddress}

Constructs a OrderAddress from a plain JavaScript object, optionally creating a new instance. Copies all relevant properties from data to obj if supplied or a new instance if not.

Parameters:
Name Type Description
data Object

The plain JavaScript object bearing properties of interest.

obj module:models/OrderAddress

Optional instance to populate.

Source:
Returns:

The populated OrderAddress instance.

Type
module:models/OrderAddress