Interface CustomerAddress
Different from Address in that key
is required and id
is not supported.
Example to create an instance using the builder pattern
CustomerAddress customerAddress = CustomerAddress.builder()
.key("{key}")
.country("{country}")
.build()
-
Method Summary
Modifier and TypeMethodDescriptionstatic CustomerAddressBuilder
builder()
builder factory method for CustomerAddressstatic CustomerAddressBuilder
builder
(CustomerAddress template) create builder for CustomerAddress instancestatic CustomerAddress
deepCopy
(CustomerAddress template) factory method to create a deep copy of CustomerAddressFurther information on the Address.Further information on the street address.Number or name of the apartment.Number or name of the building.getCity()
Name of the city.Name of the company.@NotNull String
Name of the country.@Valid Custom
Custom Fields for the address.Name of the department.getEmail()
Email address of the contact.ID for the contact used in an external system.getFax()
Fax number of the contact.Given name (first name) of the contact.@NotNull String
getKey()
User-defined identifier for the address.Family name (last name) of the contact.Mobile phone number of the contact.getPhone()
Phone number of the contact.getPOBox()
Post office box number.Postal code.Name of the region.Salutation of the contact, for example 'Mr.' or 'Ms.'getState()
Name of the state, for example, Colorado.Name of the street.Street number.getTitle()
Title of the contact, for example 'Dr.'static CustomerAddress
of()
factory methodstatic CustomerAddress
of
(CustomerAddress template) factory method to create a shallow copy CustomerAddressvoid
setAdditionalAddressInfo
(String additionalAddressInfo) Further information on the Address.void
setAdditionalStreetInfo
(String additionalStreetInfo) Further information on the street address.void
setApartment
(String apartment) Number or name of the apartment.void
setBuilding
(String building) Number or name of the building.void
Name of the city.void
setCompany
(String company) Name of the company.void
setCountry
(String country) Name of the country.void
Custom Fields for the address.void
setDepartment
(String department) Name of the department.void
Email address of the contact.void
setExternalId
(String externalId) ID for the contact used in an external system.void
Fax number of the contact.void
setFirstName
(String firstName) Given name (first name) of the contact.void
User-defined identifier for the address.void
setLastName
(String lastName) Family name (last name) of the contact.void
Mobile phone number of the contact.void
Phone number of the contact.void
Post office box number.void
setPostalCode
(String postalCode) Postal code.void
Name of the region.void
setSalutation
(String salutation) Salutation of the contact, for example 'Mr.' or 'Ms.'void
Name of the state, for example, Colorado.void
setStreetName
(String streetName) Name of the street.void
setStreetNumber
(String streetNumber) Street number.void
Title of the contact, for example 'Dr.'static com.fasterxml.jackson.core.type.TypeReference<CustomerAddress>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withCustomerAddress
(Function<CustomerAddress, T> helper) accessor map function
-
Method Details
-
getKey
User-defined identifier for the address. Must follow the pattern
[a-zA-Z0-9_\-]{2,256}
and must be unique per customer.- Returns:
- key
-
getCountry
Name of the country.
- Returns:
- country
-
getTitle
String getTitle()Title of the contact, for example 'Dr.'
- Returns:
- title
-
getSalutation
String getSalutation()Salutation of the contact, for example 'Mr.' or 'Ms.'
- Returns:
- salutation
-
getFirstName
String getFirstName()Given name (first name) of the contact.
- Returns:
- firstName
-
getLastName
String getLastName()Family name (last name) of the contact.
- Returns:
- lastName
-
getStreetName
String getStreetName()Name of the street.
- Returns:
- streetName
-
getStreetNumber
String getStreetNumber()Street number.
- Returns:
- streetNumber
-
getAdditionalStreetInfo
String getAdditionalStreetInfo()Further information on the street address.
- Returns:
- additionalStreetInfo
-
getPostalCode
String getPostalCode()Postal code.
- Returns:
- postalCode
-
getCity
String getCity()Name of the city.
- Returns:
- city
-
getRegion
String getRegion()Name of the region.
- Returns:
- region
-
getState
String getState()Name of the state, for example, Colorado.
- Returns:
- state
-
getCompany
String getCompany()Name of the company.
- Returns:
- company
-
getDepartment
String getDepartment()Name of the department.
- Returns:
- department
-
getBuilding
String getBuilding()Number or name of the building.
- Returns:
- building
-
getApartment
String getApartment()Number or name of the apartment.
- Returns:
- apartment
-
getPOBox
String getPOBox()Post office box number.
- Returns:
- pOBox
-
getPhone
String getPhone()Phone number of the contact.
- Returns:
- phone
-
getMobile
String getMobile()Mobile phone number of the contact.
- Returns:
- mobile
-
getEmail
String getEmail()Email address of the contact.
- Returns:
-
getFax
String getFax()Fax number of the contact.
- Returns:
- fax
-
getAdditionalAddressInfo
String getAdditionalAddressInfo()Further information on the Address.
- Returns:
- additionalAddressInfo
-
getExternalId
String getExternalId()ID for the contact used in an external system.
- Returns:
- externalId
-
getCustom
Custom Fields for the address.
- Returns:
- custom
-
setKey
User-defined identifier for the address. Must follow the pattern
[a-zA-Z0-9_\-]{2,256}
and must be unique per customer.- Parameters:
key
- value to be set
-
setCountry
Name of the country.
- Parameters:
country
- value to be set
-
setTitle
Title of the contact, for example 'Dr.'
- Parameters:
title
- value to be set
-
setSalutation
Salutation of the contact, for example 'Mr.' or 'Ms.'
- Parameters:
salutation
- value to be set
-
setFirstName
Given name (first name) of the contact.
- Parameters:
firstName
- value to be set
-
setLastName
Family name (last name) of the contact.
- Parameters:
lastName
- value to be set
-
setStreetName
Name of the street.
- Parameters:
streetName
- value to be set
-
setStreetNumber
Street number.
- Parameters:
streetNumber
- value to be set
-
setAdditionalStreetInfo
Further information on the street address.
- Parameters:
additionalStreetInfo
- value to be set
-
setPostalCode
Postal code.
- Parameters:
postalCode
- value to be set
-
setCity
Name of the city.
- Parameters:
city
- value to be set
-
setRegion
Name of the region.
- Parameters:
region
- value to be set
-
setState
Name of the state, for example, Colorado.
- Parameters:
state
- value to be set
-
setCompany
Name of the company.
- Parameters:
company
- value to be set
-
setDepartment
Name of the department.
- Parameters:
department
- value to be set
-
setBuilding
Number or name of the building.
- Parameters:
building
- value to be set
-
setApartment
Number or name of the apartment.
- Parameters:
apartment
- value to be set
-
setPOBox
Post office box number.
- Parameters:
pOBox
- value to be set
-
setPhone
Phone number of the contact.
- Parameters:
phone
- value to be set
-
setMobile
Mobile phone number of the contact.
- Parameters:
mobile
- value to be set
-
setEmail
Email address of the contact.
- Parameters:
email
- value to be set
-
setFax
Fax number of the contact.
- Parameters:
fax
- value to be set
-
setAdditionalAddressInfo
Further information on the Address.
- Parameters:
additionalAddressInfo
- value to be set
-
setExternalId
ID for the contact used in an external system.
- Parameters:
externalId
- value to be set
-
setCustom
Custom Fields for the address.
- Parameters:
custom
- value to be set
-
of
factory method- Returns:
- instance of CustomerAddress
-
of
factory method to create a shallow copy CustomerAddress- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of CustomerAddress- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for CustomerAddress- Returns:
- builder
-
builder
create builder for CustomerAddress instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withCustomerAddress
accessor map function- Type Parameters:
T
- mapped type- Parameters:
helper
- function to map the object- Returns:
- mapped value
-
typeReference
gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-