Interface CustomerAddress
public 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 CustomerAddressgetCity()
@NotNull String
A two-digit country code as per ISO 3166-1 alpha-2.@Valid Custom
Custom Fields for the address.getEmail()
getFax()
@NotNull String
getKey()
User-defined identifier for the address.getPhone()
getPOBox()
getState()
getTitle()
static CustomerAddress
of()
factory methodstatic CustomerAddress
of
(CustomerAddress template) factory method to create a shallow copy CustomerAddressvoid
setAdditionalAddressInfo
(String additionalAddressInfo) set additionalAddressInfovoid
setAdditionalStreetInfo
(String additionalStreetInfo) set additionalStreetInfovoid
setApartment
(String apartment) set apartmentvoid
setBuilding
(String building) set buildingvoid
set cityvoid
setCompany
(String company) set companyvoid
setCountry
(String country) A two-digit country code as per ISO 3166-1 alpha-2.void
Custom Fields for the address.void
setDepartment
(String department) set departmentvoid
set emailvoid
setExternalId
(String externalId) set externalIdvoid
set faxvoid
setFirstName
(String firstName) set firstNamevoid
User-defined identifier for the address.void
setLastName
(String lastName) set lastNamevoid
set mobilevoid
set phonevoid
set pOBoxvoid
setPostalCode
(String postalCode) set postalCodevoid
set regionvoid
setSalutation
(String salutation) set salutationvoid
set statevoid
setStreetName
(String streetName) set streetNamevoid
setStreetNumber
(String streetNumber) set streetNumbervoid
set titlestatic 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
-
getTitle
String getTitle()- Returns:
- title
-
getSalutation
String getSalutation()- Returns:
- salutation
-
getFirstName
String getFirstName()- Returns:
- firstName
-
getLastName
String getLastName()- Returns:
- lastName
-
getStreetName
String getStreetName()- Returns:
- streetName
-
getStreetNumber
String getStreetNumber()- Returns:
- streetNumber
-
getAdditionalStreetInfo
String getAdditionalStreetInfo()- Returns:
- additionalStreetInfo
-
getPostalCode
String getPostalCode()- Returns:
- postalCode
-
getCity
String getCity()- Returns:
- city
-
getRegion
String getRegion()- Returns:
- region
-
getState
String getState()- Returns:
- state
-
getCountry
A two-digit country code as per ISO 3166-1 alpha-2.
- Returns:
- country
-
getCompany
String getCompany()- Returns:
- company
-
getDepartment
String getDepartment()- Returns:
- department
-
getBuilding
String getBuilding()- Returns:
- building
-
getApartment
String getApartment()- Returns:
- apartment
-
getPOBox
String getPOBox()- Returns:
- pOBox
-
getPhone
String getPhone()- Returns:
- phone
-
getMobile
String getMobile()- Returns:
- mobile
-
getEmail
String getEmail()- Returns:
-
getFax
String getFax()- Returns:
- fax
-
getAdditionalAddressInfo
String getAdditionalAddressInfo()- Returns:
- additionalAddressInfo
-
getExternalId
String getExternalId()- 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
-
setTitle
set title- Parameters:
title
- value to be set
-
setSalutation
set salutation- Parameters:
salutation
- value to be set
-
setFirstName
set firstName- Parameters:
firstName
- value to be set
-
setLastName
set lastName- Parameters:
lastName
- value to be set
-
setStreetName
set streetName- Parameters:
streetName
- value to be set
-
setStreetNumber
set streetNumber- Parameters:
streetNumber
- value to be set
-
setAdditionalStreetInfo
set additionalStreetInfo- Parameters:
additionalStreetInfo
- value to be set
-
setPostalCode
set postalCode- Parameters:
postalCode
- value to be set
-
setCity
set city- Parameters:
city
- value to be set
-
setRegion
set region- Parameters:
region
- value to be set
-
setState
set state- Parameters:
state
- value to be set
-
setCountry
A two-digit country code as per ISO 3166-1 alpha-2.
- Parameters:
country
- value to be set
-
setCompany
set company- Parameters:
company
- value to be set
-
setDepartment
set department- Parameters:
department
- value to be set
-
setBuilding
set building- Parameters:
building
- value to be set
-
setApartment
set apartment- Parameters:
apartment
- value to be set
-
setPOBox
set pOBox- Parameters:
pOBox
- value to be set
-
setPhone
set phone- Parameters:
phone
- value to be set
-
setMobile
set mobile- Parameters:
mobile
- value to be set
-
setEmail
set email- Parameters:
email
- value to be set
-
setFax
set fax- Parameters:
fax
- value to be set
-
setAdditionalAddressInfo
set additionalAddressInfo- Parameters:
additionalAddressInfo
- value to be set
-
setExternalId
set externalId- 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
-