# Class OrderAddress

- [TopLevel.Object](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Object.md)
  - [dw.object.PersistentObject](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.object.PersistentObject.md)
    - [dw.object.ExtensibleObject](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.object.ExtensibleObject.md)
      - [dw.order.OrderAddress](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.order.OrderAddress.md)

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

| Property                                                                                                                | Description                                                                              |
| ----------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- |
| [address1](#address1): [String](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.String.md)               | Returns the customer's first address.                                                    |
| [address2](#address2): [String](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.String.md)               | Returns the customer's second address.                                                   |
| [city](#city): [String](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.String.md)                       | Returns the Customer's City.                                                             |
| [companyName](#companyname): [String](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.String.md)         | Returns the Customer's company name.                                                     |
| [countryCode](#countrycode): [EnumValue](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.value.EnumValue.md)   | Returns the customer's country code.                                                     |
| [firstName](#firstname): [String](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.String.md)             | Returns the Customer's first name.                                                       |
| [fullName](#fullname): [String](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.String.md) `(read-only)` | Returns a concatenation of the Customer's first, middle,  and last names and it' suffix. |
| [jobTitle](#jobtitle): [String](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.String.md)               | Returns the customer's job title.                                                        |
| [lastName](#lastname): [String](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.String.md)               | Returns the customer's last name.                                                        |
| [phone](#phone): [String](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.String.md)                     | Returns the customer's phone number.                                                     |
| [postBox](#postbox): [String](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.String.md)                 | Returns the customer's post box.                                                         |
| [postalCode](#postalcode): [String](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.String.md)           | Returns the customer's postal code.                                                      |
| [salutation](#salutation): [String](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.String.md)           | Returns the customer's salutation.                                                       |
| [secondName](#secondname): [String](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.String.md)           | Returns the customer's second name.                                                      |
| [stateCode](#statecode): [String](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.String.md)             | Returns the customer's state.                                                            |
| [suffix](#suffix): [String](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.String.md)                   | Returns the customer's suffix.                                                           |
| [suite](#suite): [String](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.String.md)                     | Returns the customer's suite.                                                            |
| [title](#title): [String](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.String.md)                     | Returns the customer's title.                                                            |

## Constructor Summary

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

## Method Summary

| Method                                                                                                                                                                                                              | Description                                                                              |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- |
| [getAddress1](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.order.OrderAddress.md#getaddress1)()                                                                                                         | Returns the customer's first address.                                                    |
| [getAddress2](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.order.OrderAddress.md#getaddress2)()                                                                                                         | Returns the customer's second address.                                                   |
| [getCity](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.order.OrderAddress.md#getcity)()                                                                                                                 | Returns the Customer's City.                                                             |
| [getCompanyName](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.order.OrderAddress.md#getcompanyname)()                                                                                                   | Returns the Customer's company name.                                                     |
| [getCountryCode](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.order.OrderAddress.md#getcountrycode)()                                                                                                   | Returns the customer's country code.                                                     |
| [getFirstName](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.order.OrderAddress.md#getfirstname)()                                                                                                       | Returns the Customer's first name.                                                       |
| [getFullName](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.order.OrderAddress.md#getfullname)()                                                                                                         | Returns a concatenation of the Customer's first, middle,  and last names and it' suffix. |
| [getJobTitle](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.order.OrderAddress.md#getjobtitle)()                                                                                                         | Returns the customer's job title.                                                        |
| [getLastName](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.order.OrderAddress.md#getlastname)()                                                                                                         | Returns the customer's last name.                                                        |
| [getPhone](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.order.OrderAddress.md#getphone)()                                                                                                               | Returns the customer's phone number.                                                     |
| [getPostBox](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.order.OrderAddress.md#getpostbox)()                                                                                                           | Returns the customer's post box.                                                         |
| [getPostalCode](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.order.OrderAddress.md#getpostalcode)()                                                                                                     | Returns the customer's postal code.                                                      |
| [getSalutation](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.order.OrderAddress.md#getsalutation)()                                                                                                     | Returns the customer's salutation.                                                       |
| [getSecondName](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.order.OrderAddress.md#getsecondname)()                                                                                                     | Returns the customer's second name.                                                      |
| [getStateCode](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.order.OrderAddress.md#getstatecode)()                                                                                                       | Returns the customer's state.                                                            |
| [getSuffix](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.order.OrderAddress.md#getsuffix)()                                                                                                             | Returns the customer's suffix.                                                           |
| [getSuite](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.order.OrderAddress.md#getsuite)()                                                                                                               | Returns the customer's suite.                                                            |
| [getTitle](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.order.OrderAddress.md#gettitle)()                                                                                                               | Returns the customer's title.                                                            |
| [isEquivalentAddress](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.order.OrderAddress.md#isequivalentaddressobject)([Object](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Object.md)) | Returns true if the specified address is equivalent to  this address.                    |
| [setAddress1](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.order.OrderAddress.md#setaddress1string)([String](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.String.md))                 | Sets the customer's first address.                                                       |
| [setAddress2](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.order.OrderAddress.md#setaddress2string)([String](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.String.md))                 | Sets the customer's second address.                                                      |
| [setCity](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.order.OrderAddress.md#setcitystring)([String](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.String.md))                         | Sets the Customer's City.                                                                |
| [setCompanyName](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.order.OrderAddress.md#setcompanynamestring)([String](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.String.md))           | Sets the Customer's company name.                                                        |
| [setCountryCode](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.order.OrderAddress.md#setcountrycodestring)([String](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.String.md))           | Sets the Customer's country code.                                                        |
| [setFirstName](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.order.OrderAddress.md#setfirstnamestring)([String](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.String.md))               | Sets the Customer's first name.                                                          |
| [setJobTitle](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.order.OrderAddress.md#setjobtitlestring)([String](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.String.md))                 | Sets the customer's job title.                                                           |
| [setLastName](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.order.OrderAddress.md#setlastnamestring)([String](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.String.md))                 | Sets the customer's last name.                                                           |
| [setPhone](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.order.OrderAddress.md#setphonestring)([String](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.String.md))                       | Sets the customer's phone number.                                                        |
| [setPostBox](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.order.OrderAddress.md#setpostboxstring)([String](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.String.md))                   | Sets the customer's post box.                                                            |
| [setPostalCode](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.order.OrderAddress.md#setpostalcodestring)([String](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.String.md))             | Sets the customer's postal code.                                                         |
| ~~[setSaluation](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.order.OrderAddress.md#setsaluationstring)([String](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.String.md))~~           | Sets the customer's salutation.                                                          |
| [setSalutation](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.order.OrderAddress.md#setsalutationstring)([String](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.String.md))             | Sets the customer's salutation.                                                          |
| [setSecondName](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.order.OrderAddress.md#setsecondnamestring)([String](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.String.md))             | Sets the customer's second name.                                                         |
| [setStateCode](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.order.OrderAddress.md#setstatecodestring)([String](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.String.md))               | Sets the customer's state.                                                               |
| [setSuffix](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.order.OrderAddress.md#setsuffixstring)([String](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.String.md))                     | Sets the customer's suffix.                                                              |
| [setSuite](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.order.OrderAddress.md#setsuitestring)([String](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.String.md))                       | Sets the customer's suite.                                                               |
| [setTitle](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.order.OrderAddress.md#settitlestring)([String](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.String.md))                       | Sets the customer's title.                                                               |

### Methods inherited from class ExtensibleObject

[describe](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.object.ExtensibleObject.md#describe), [getCustom](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.object.ExtensibleObject.md#getcustom)

### Methods inherited from class PersistentObject

[getCreationDate](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.object.PersistentObject.md#getcreationdate), [getLastModified](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.object.PersistentObject.md#getlastmodified), [getUUID](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.object.PersistentObject.md#getuuid)

### Methods inherited from class Object

[assign](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Object.md#assignobject-object), [create](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Object.md#createobject), [create](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Object.md#createobject-object), [defineProperties](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Object.md#definepropertiesobject-object), [defineProperty](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Object.md#definepropertyobject-object-object), [entries](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Object.md#entriesobject), [freeze](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Object.md#freezeobject), [fromEntries](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Object.md#fromentriesiterable), [getOwnPropertyDescriptor](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Object.md#getownpropertydescriptorobject-object), [getOwnPropertyNames](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Object.md#getownpropertynamesobject), [getOwnPropertySymbols](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Object.md#getownpropertysymbolsobject), [getPrototypeOf](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Object.md#getprototypeofobject), [hasOwnProperty](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Object.md#hasownpropertystring), [is](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Object.md#isobject-object), [isExtensible](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Object.md#isextensibleobject), [isFrozen](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Object.md#isfrozenobject), [isPrototypeOf](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Object.md#isprototypeofobject), [isSealed](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Object.md#issealedobject), [keys](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Object.md#keysobject), [preventExtensions](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Object.md#preventextensionsobject), [propertyIsEnumerable](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Object.md#propertyisenumerablestring), [seal](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Object.md#sealobject), [setPrototypeOf](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Object.md#setprototypeofobject-object), [toLocaleString](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Object.md#tolocalestring), [toString](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Object.md#tostring), [valueOf](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Object.md#valueof), [values](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Object.md#valuesobject)

## Property Details

### address1

- address1: [String](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.String.md)
  - : Returns the customer's first address.

***

### address2

- address2: [String](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.String.md)
  - : Returns the customer's second address.

***

### city

- city: [String](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.String.md)
  - : Returns the Customer's City.

***

### companyName

- companyName: [String](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.String.md)
  - : Returns the Customer's company name.

***

### countryCode

- countryCode: [EnumValue](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.value.EnumValue.md)
  - : Returns the customer's country code.

***

### firstName

- firstName: [String](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.String.md)
  - : Returns the Customer's first name.

***

### fullName

- fullName: [String](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.String.md) `(read-only)`
  - : Returns a concatenation of the Customer's first, middle,
    and last names and it' suffix.

***

### jobTitle

- jobTitle: [String](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.String.md)
  - : Returns the customer's job title.

***

### lastName

- lastName: [String](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.String.md)
  - : Returns the customer's last name.

***

### phone

- phone: [String](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.String.md)
  - : Returns the customer's phone number.

***

### postBox

- postBox: [String](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.String.md)
  - : Returns the customer's post box.

***

### postalCode

- postalCode: [String](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.String.md)
  - : Returns the customer's postal code.

***

### salutation

- salutation: [String](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.String.md)
  - : Returns the customer's salutation.

***

### secondName

- secondName: [String](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.String.md)
  - : Returns the customer's second name.

***

### stateCode

- stateCode: [String](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.String.md)
  - : Returns the customer's state.

***

### suffix

- suffix: [String](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.String.md)
  - : Returns the customer's suffix.

***

### suite

- suite: [String](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.String.md)
  - : Returns the customer's suite.

***

### title

- title: [String](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.String.md)
  - : Returns the customer's title.

***

## Method Details

### getAddress1()

- getAddress1(): [String](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.String.md)
  - : Returns the customer's first address.

    **Returns:**

    - the first address value.

***

### getAddress2()

- getAddress2(): [String](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.String.md)
  - : Returns the customer's second address.

    **Returns:**

    - the second address value.

***

### getCity()

- getCity(): [String](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.String.md)
  - : Returns the Customer's City.

    **Returns:**

    - the Customer's city.

***

### getCompanyName()

- getCompanyName(): [String](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.String.md)
  - : Returns the Customer's company name.

    **Returns:**

    - the company name.

***

### getCountryCode()

- getCountryCode(): [EnumValue](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.value.EnumValue.md)
  - : Returns the customer's country code.

    **Returns:**

    - the country code.

***

### getFirstName()

- getFirstName(): [String](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.String.md)
  - : Returns the Customer's first name.

    **Returns:**

    - the Customer first name.

***

### getFullName()

- getFullName(): [String](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.String.md)
  - : 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](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.String.md)
  - : Returns the customer's job title.

    **Returns:**

    - the job title.

***

### getLastName()

- getLastName(): [String](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.String.md)
  - : Returns the customer's last name.

    **Returns:**

    - the last name.

***

### getPhone()

- getPhone(): [String](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.String.md)
  - : Returns the customer's phone number.

    **Returns:**

    - the phone number.

***

### getPostBox()

- getPostBox(): [String](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.String.md)
  - : Returns the customer's post box.

    **Returns:**

    - the postBox.

***

### getPostalCode()

- getPostalCode(): [String](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.String.md)
  - : Returns the customer's postal code.

    **Returns:**

    - the postal code.

***

### getSalutation()

- getSalutation(): [String](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.String.md)
  - : Returns the customer's salutation.

    **Returns:**

    - the customer's salutation.

***

### getSecondName()

- getSecondName(): [String](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.String.md)
  - : Returns the customer's second name.

    **Returns:**

    - the second name.

***

### getStateCode()

- getStateCode(): [String](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.String.md)
  - : Returns the customer's state.

    **Returns:**

    - the state.

***

### getSuffix()

- getSuffix(): [String](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.String.md)
  - : Returns the customer's suffix.

    **Returns:**

    - the suffix.

***

### getSuite()

- getSuite(): [String](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.String.md)
  - : Returns the customer's suite.

    **Returns:**

    - the customer's suite.

***

### getTitle()

- getTitle(): [String](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.String.md)
  - : Returns the customer's title.

    **Returns:**

    - the title.

***

### isEquivalentAddress(Object)

- isEquivalentAddress(address: [Object](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Object.md)): [Boolean](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.Boolean.md)
  - : 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](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.String.md)): void
  - : Sets the customer's first address.

    **Parameters:**

    - value - The value to set.

***

### setAddress2(String)

- setAddress2(value: [String](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.String.md)): void
  - : Sets the customer's second address.

    **Parameters:**

    - value - The value to set.

***

### setCity(String)

- setCity(city: [String](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.String.md)): void
  - : Sets the Customer's City.

    **Parameters:**

    - city - the Customer's city to set.

***

### setCompanyName(String)

- setCompanyName(companyName: [String](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.String.md)): void
  - : Sets the Customer's company name.

    **Parameters:**

    - companyName - the name of the company.

***

### setCountryCode(String)

- setCountryCode(countryCode: [String](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.String.md)): void
  - : Sets the Customer's country code.

    **Parameters:**

    - countryCode - the country code.

***

### setFirstName(String)

- setFirstName(firstName: [String](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.String.md)): void
  - : Sets the Customer's first name.

    **Parameters:**

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

***

### setJobTitle(String)

- setJobTitle(jobTitle: [String](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.String.md)): void
  - : Sets the customer's job title.

    **Parameters:**

    - jobTitle - The job title to set.

***

### setLastName(String)

- setLastName(lastName: [String](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.String.md)): void
  - : Sets the customer's last name.

    **Parameters:**

    - lastName - The last name to set.

***

### setPhone(String)

- setPhone(phoneNumber: [String](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.String.md)): 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](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.String.md)): void
  - : Sets the customer's post box.

    **Parameters:**

    - postBox - The post box to set.

***

### setPostalCode(String)

- setPostalCode(postalCode: [String](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.String.md)): void
  - : Sets the customer's postal code.

    **Parameters:**

    - postalCode - The postal code to set.

***

### setSaluation(String)

- ~~setSaluation(value: [String](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.String.md)): void~~
  - : Sets the customer's salutation.

    **Parameters:**

    - value - the customer's salutation.

    **Deprecated:**

:::warning
Use [setSalutation(String)](/docs/commerce/b2c-commerce/references/b2c-script-api/dw.order.OrderAddress.md#setsalutationstring)
:::

***

### setSalutation(String)

- setSalutation(value: [String](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.String.md)): void
  - : Sets the customer's salutation.

    **Parameters:**

    - value - the customer's salutation.

***

### setSecondName(String)

- setSecondName(secondName: [String](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.String.md)): void
  - : Sets the customer's second name.

    **Parameters:**

    - secondName - The second name to set.

***

### setStateCode(String)

- setStateCode(state: [String](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.String.md)): void
  - : Sets the customer's state.

    **Parameters:**

    - state - The state to set.

***

### setSuffix(String)

- setSuffix(suffix: [String](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.String.md)): void
  - : Sets the customer's suffix.

    **Parameters:**

    - suffix - The suffix to set.

***

### setSuite(String)

- setSuite(value: [String](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.String.md)): void
  - : Sets the customer's suite. The length is restricted to 256 characters.

    **Parameters:**

    - value - the customer's suite.

***

### setTitle(String)

- setTitle(title: [String](/docs/commerce/b2c-commerce/references/b2c-script-api/TopLevel.String.md)): void
  - : Sets the customer's title.

    **Parameters:**

    - title - The title to set.

***
