Class OrderAddress

The Address class represents a customer’s address.

Note: this class allows access to sensitive personal and private information. Pay attention to appropriate legal and regulatory requirements.

Property Summary 

PropertyDescription
address1: StringReturns the customer’s first address.
address2: StringReturns the customer’s second address.
city: StringReturns the Customer’s City.
companyName: StringReturns the Customer’s company name.
countryCode: EnumValueReturns the customer’s country code.
firstName: StringReturns the Customer’s first name.
fullName: String (read-only)Returns a concatenation of the Customer’s first, middle, and last names and it’ suffix.
jobTitle: StringReturns the customer’s job title.
lastName: StringReturns the customer’s last name.
phone: StringReturns the customer’s phone number.
postBox: StringReturns the customer’s post box.
postalCode: StringReturns the customer’s postal code.
salutation: StringReturns the customer’s salutation.
secondName: StringReturns the customer’s second name.
stateCode: StringReturns the customer’s state.
suffix: StringReturns the customer’s suffix.
suite: StringReturns the customer’s suite.
title: StringReturns the customer’s title.

Constructor Summary 

This class does not have a constructor, so you cannot create it directly.

Method Summary 

MethodDescription
getAddress1()Returns the customer’s first address.
getAddress2()Returns the customer’s second address.
getCity()Returns the Customer’s City.
getCompanyName()Returns the Customer’s company name.
getCountryCode()Returns the customer’s country code.
getFirstName()Returns the Customer’s first name.
getFullName()Returns a concatenation of the Customer’s first, middle, and last names and it’ suffix.
getJobTitle()Returns the customer’s job title.
getLastName()Returns the customer’s last name.
getPhone()Returns the customer’s phone number.
getPostBox()Returns the customer’s post box.
getPostalCode()Returns the customer’s postal code.
getSalutation()Returns the customer’s salutation.
getSecondName()Returns the customer’s second name.
getStateCode()Returns the customer’s state.
getSuffix()Returns the customer’s suffix.
getSuite()Returns the customer’s suite.
getTitle()Returns the customer’s title.
isEquivalentAddress(Object)Returns true if the specified address is equivalent to this address.
setAddress1(String)Sets the customer’s first address.
setAddress2(String)Sets the customer’s second address.
setCity(String)Sets the Customer’s City.
setCompanyName(String)Sets the Customer’s company name.
setCountryCode(String)Sets the Customer’s country code.
setFirstName(String)Sets the Customer’s first name.
setJobTitle(String)Sets the customer’s job title.
setLastName(String)Sets the customer’s last name.
setPhone(String)Sets the customer’s phone number.
setPostBox(String)Sets the customer’s post box.
setPostalCode(String)Sets the customer’s postal code.
setSaluation(String)Sets the customer’s salutation.
setSalutation(String)Sets the customer’s salutation.
setSecondName(String)Sets the customer’s second name.
setStateCode(String)Sets the customer’s state.
setSuffix(String)Sets the customer’s suffix.
setSuite(String)Sets the customer’s suite.
setTitle(String)Sets the customer’s title.

Methods inherited from class ExtensibleObject 

describe, getCustom

Methods inherited from class PersistentObject 

getCreationDate, getLastModified, getUUID

Methods inherited from class Object 

assign, create, create, defineProperties, defineProperty, entries, freeze, fromEntries, getOwnPropertyDescriptor, getOwnPropertyNames, getOwnPropertySymbols, getPrototypeOf, hasOwnProperty, is, isExtensible, isFrozen, isPrototypeOf, isSealed, keys, preventExtensions, propertyIsEnumerable, seal, setPrototypeOf, toLocaleString, toString, valueOf, values

Property Details 

address1 

address1: String

Returns the customer's first address.


address2 

address2: String

Returns the customer's second address.


city 

city: String

Returns the Customer's City.


companyName 

companyName: String

Returns the Customer's company name.


countryCode 

countryCode: EnumValue

Returns the customer's country code.


firstName 

firstName: String

Returns the Customer's first name.


fullName 

fullName: String (read-only)

Returns a concatenation of the Customer's first, middle, and last names and it' suffix.


jobTitle 

jobTitle: String

Returns the customer's job title.


lastName 

lastName: String

Returns the customer's last name.


phone 

phone: String

Returns the customer's phone number.


postBox 

postBox: String

Returns the customer's post box.


postalCode 

postalCode: String

Returns the customer's postal code.


salutation 

salutation: String

Returns the customer's salutation.


secondName 

secondName: String

Returns the customer's second name.


stateCode 

stateCode: String

Returns the customer's state.


suffix 

suffix: String

Returns the customer's suffix.


suite 

suite: String

Returns the customer's suite.


title 

title: String

Returns the customer's title.


Method Details 

getAddress1() 

getAddress1(): String

Returns the customer's first address.

Returns:

  • the first address value.

getAddress2() 

getAddress2(): String

Returns the customer's second address.

Returns:

  • the second address value.

getCity() 

getCity(): String

Returns the Customer's City.

Returns:

  • the Customer's city.

getCompanyName() 

getCompanyName(): String

Returns the Customer's company name.

Returns:

  • the company name.

getCountryCode() 

getCountryCode(): EnumValue

Returns the customer's country code.

Returns:

  • the country code.

getFirstName() 

getFirstName(): String

Returns the Customer's first name.

Returns:

  • the Customer first name.

getFullName() 

getFullName(): String

Returns a concatenation of the Customer's first, middle, and last names and it' suffix.

Returns:

  • a concatenation of the Customer's first, middle, and last names and it' suffix.

getJobTitle() 

getJobTitle(): String

Returns the customer's job title.

Returns:

  • the job title.

getLastName() 

getLastName(): String

Returns the customer's last name.

Returns:

  • the last name.

getPhone() 

getPhone(): String

Returns the customer's phone number.

Returns:

  • the phone number.

getPostBox() 

getPostBox(): String

Returns the customer's post box.

Returns:

  • the postBox.

getPostalCode() 

getPostalCode(): String

Returns the customer's postal code.

Returns:

  • the postal code.

getSalutation() 

getSalutation(): String

Returns the customer's salutation.

Returns:

  • the customer's salutation.

getSecondName() 

getSecondName(): String

Returns the customer's second name.

Returns:

  • the second name.

getStateCode() 

getStateCode(): String

Returns the customer's state.

Returns:

  • the state.

getSuffix() 

getSuffix(): String

Returns the customer's suffix.

Returns:

  • the suffix.

getSuite() 

getSuite(): String

Returns the customer's suite.

Returns:

  • the customer's suite.

getTitle() 

getTitle(): String

Returns the customer's title.

Returns:

  • the title.

isEquivalentAddress(Object) 

isEquivalentAddress(address: Object): Boolean

Returns true if the specified address is equivalent to this address. An equivalent address is an address whose core attributes contain the same values. The core attributes are:

  • address1
  • address2
  • city
  • companyName
  • countryCode
  • firstName
  • lastName
  • postalCode
  • postBox
  • stateCode

Parameters:

  • address - the address to test.

Returns:

  • true if the specified address is equivalent to this address, false otherwise.

setAddress1(String) 

setAddress1(value: String): void

Sets the customer's first address.

Parameters:

  • value - The value to set.

setAddress2(String) 

setAddress2(value: String): void

Sets the customer's second address.

Parameters:

  • value - The value to set.

setCity(String) 

setCity(city: String): void

Sets the Customer's City.

Parameters:

  • city - the Customer's city to set.

setCompanyName(String) 

setCompanyName(companyName: String): void

Sets the Customer's company name.

Parameters:

  • companyName - the name of the company.

setCountryCode(String) 

setCountryCode(countryCode: String): void

Sets the Customer's country code.

Parameters:

  • countryCode - the country code.

setFirstName(String) 

setFirstName(firstName: String): void

Sets the Customer's first name.

Parameters:

  • firstName - the customer's first name to set.

setJobTitle(String) 

setJobTitle(jobTitle: String): void

Sets the customer's job title.

Parameters:

  • jobTitle - The job title to set.

setLastName(String) 

setLastName(lastName: String): void

Sets the customer's last name.

Parameters:

  • lastName - The last name to set.

setPhone(String) 

setPhone(phoneNumber: String): void

Sets the customer's phone number. The length is restricted to 256 characters.

Parameters:

  • phoneNumber - The phone number to set.

setPostBox(String) 

setPostBox(postBox: String): void

Sets the customer's post box.

Parameters:

  • postBox - The post box to set.

setPostalCode(String) 

setPostalCode(postalCode: String): void

Sets the customer's postal code.

Parameters:

  • postalCode - The postal code to set.

setSaluation(String) 

setSaluation(value: String): void

Sets the customer's salutation.

Parameters:

  • value - the customer's salutation.

Deprecated:

Use setSalutation(String)

Warning


setSalutation(String) 

setSalutation(value: String): void

Sets the customer's salutation.

Parameters:

  • value - the customer's salutation.

setSecondName(String) 

setSecondName(secondName: String): void

Sets the customer's second name.

Parameters:

  • secondName - The second name to set.

setStateCode(String) 

setStateCode(state: String): void

Sets the customer's state.

Parameters:

  • state - The state to set.

setSuffix(String) 

setSuffix(suffix: String): void

Sets the customer's suffix.

Parameters:

  • suffix - The suffix to set.

setSuite(String) 

setSuite(value: String): void

Sets the customer's suite. The length is restricted to 256 characters.

Parameters:

  • value - the customer's suite.

setTitle(String) 

setTitle(title: String): void

Sets the customer's title.

Parameters:

  • title - The title to set.