Class CustomerAddress
java.lang.Object
com.broadleafcommerce.customer.domain.CustomerAddress
- All Implemented Interfaces:
com.broadleafcommerce.data.tracking.core.ContextStateAware
,com.broadleafcommerce.data.tracking.core.policy.Owned
,Serializable
public class CustomerAddress
extends Object
implements com.broadleafcommerce.data.tracking.core.ContextStateAware, Serializable, com.broadleafcommerce.data.tracking.core.policy.Owned
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addAdditionalAttribute
(String name, Object value) Takes in any additional attributes passed in the request not matching any defined properties.protected boolean
boolean
Return any additional attributes passed in the request not matching any defined properties.Primary address information, typically street name and building number.Secondary address information, like apartment, suite, or unit number.Tertiary address information, typically for international addresses.getCity()
The city, town or village of this address.The name of the company at this address.com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState
A subset ofTracking
information to expose the context state for this object.The country for this address.The county of this address.The customer in the relationship.The email address of the individual at this physical address.The first name of the individual at this address.The combined names of the individual at this address.getId()
The context ID of the relationship.The last name of the individual at this address.getName()
The customer-provided name of the address.Thefax number
for this address.The primaryphone number
for this address.The secondaryphone number
for this address.Postal code or ZIP code for this address.The state, province or region of this address.int
hashCode()
boolean
isActive()
Whether this address is an active address of the owner.boolean
Specifies whether or not the address is the default billing address for the customer.boolean
Specifies whether or not the address is the default shipping address for the customer.void
setActive
(boolean isActive) Whether this address is an active address of the owner.void
setAdditionalAttributes
(Map<String, Object> additionalAttributes) Map holding any additional attributes passed in the request not matching any defined properties.void
setAddressLine1
(String addressLine1) Primary address information, typically street name and building number.void
setAddressLine2
(String addressLine2) Secondary address information, like apartment, suite, or unit number.void
setAddressLine3
(String addressLine3) Tertiary address information, typically for international addresses.void
The city, town or village of this address.void
setCompanyName
(String companyName) The name of the company at this address.void
setContextState
(com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState contextState) A subset ofTracking
information to expose the context state for this object.void
setCountry
(String country) The country for this address.void
The county of this address.void
setCustomerRef
(CustomerRef customerRef) The customer in the relationship.void
setDefaultBillingAddress
(boolean defaultBillingAddress) Specifies whether or not the address is the default billing address for the customer.void
setDefaultShippingAddress
(boolean defaultShippingAddress) Specifies whether or not the address is the default shipping address for the customer.void
setEmailAddress
(String emailAddress) The email address of the individual at this physical address.void
setFirstName
(String firstName) The first name of the individual at this address.void
setFullName
(String fullName) The combined names of the individual at this address.void
The context ID of the relationship.void
setLastName
(String lastName) The last name of the individual at this address.void
The customer-provided name of the address.void
setPhoneFax
(Phone phoneFax) Thefax number
for this address.void
setPhonePrimary
(Phone phonePrimary) The primaryphone number
for this address.void
setPhoneSecondary
(Phone phoneSecondary) The secondaryphone number
for this address.void
setPostalCode
(String postalCode) Postal code or ZIP code for this address.void
setStateProvinceRegion
(String stateProvinceRegion) The state, province or region of this address.toString()
-
Constructor Details
-
CustomerAddress
public CustomerAddress()
-
-
Method Details
-
addAdditionalAttribute
Takes in any additional attributes passed in the request not matching any defined properties.- Parameters:
name
- Name of the additional attributevalue
- Value of the additional attribute
-
getAdditionalAttributes
Return any additional attributes passed in the request not matching any defined properties.- Returns:
- any additional attributes passed in the request not matching any defined properties.
-
getOwnerIdentifier
- Specified by:
getOwnerIdentifier
in interfacecom.broadleafcommerce.data.tracking.core.policy.Owned
-
getId
The context ID of the relationship.- Returns:
- the context ID of the relationship
-
getName
The customer-provided name of the address.- Returns:
- the customer-provided name of the address
-
isDefaultShippingAddress
public boolean isDefaultShippingAddress()Specifies whether or not the address is the default shipping address for the customer.- Returns:
- whether or not the address is the default shipping address for the customer.
-
isDefaultBillingAddress
public boolean isDefaultBillingAddress()Specifies whether or not the address is the default billing address for the customer.- Returns:
- whether or not the address is the default billing address for the customer.
-
getCustomerRef
The customer in the relationship.- Returns:
- the customer
-
getFirstName
The first name of the individual at this address.- Returns:
- The first name of the individual at this address.
-
getLastName
The last name of the individual at this address.- Returns:
- The last name of the individual at this address.
-
getFullName
The combined names of the individual at this address. It is considered better UX to use a full name field in place of separate first and last name fields.- Returns:
- The combined names of the individual at this address
-
getEmailAddress
The email address of the individual at this physical address.- Returns:
- The email address of the individual at this physical address.
-
getCompanyName
The name of the company at this address.- Returns:
- The name of the company at this address.
-
getAddressLine1
Primary address information, typically street name and building number.- Returns:
- Primary address information, typically street name and building number.
-
getAddressLine2
Secondary address information, like apartment, suite, or unit number.- Returns:
- Secondary address information, like apartment number or suite number.
-
getAddressLine3
Tertiary address information, typically for international addresses.- Returns:
- Tertiary address information, typically for international addresses.
-
getCity
The city, town or village of this address.- Returns:
- The city, town or village of this address.
-
getCounty
The county of this address.- Returns:
- The county of this address.
-
getStateProvinceRegion
The state, province or region of this address.- Returns:
- The state, province or region of this address.
-
getCountry
The country for this address.- Returns:
- The country for this address.
-
getPostalCode
Postal code or ZIP code for this address.- Returns:
- Postal code or ZIP code for this address.
-
getPhonePrimary
The primaryphone number
for this address.- Returns:
- The primary
phone number
for this address.
-
getPhoneSecondary
The secondaryphone number
for this address.- Returns:
- The secondary
phone number
for this address.
-
getPhoneFax
Thefax number
for this address.- Returns:
- The
fax number
for this address.
-
isActive
public boolean isActive()Whether this address is an active address of the owner.- Returns:
- Whether this address is an active address of the owner.
-
getContextState
public com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState getContextState()A subset ofTracking
information to expose the context state for this object.- Specified by:
getContextState
in interfacecom.broadleafcommerce.data.tracking.core.ContextStateAware
- Returns:
- a subset of
Tracking
information to expose the context state for this object
-
setId
The context ID of the relationship.- Parameters:
id
- the context ID of the relationship
-
setName
The customer-provided name of the address.- Parameters:
name
- the customer-provided name of the address
-
setDefaultShippingAddress
public void setDefaultShippingAddress(boolean defaultShippingAddress) Specifies whether or not the address is the default shipping address for the customer.- Parameters:
defaultShippingAddress
- Whether the address is the default shipping address for the customer.
-
setDefaultBillingAddress
public void setDefaultBillingAddress(boolean defaultBillingAddress) Specifies whether or not the address is the default billing address for the customer.- Parameters:
defaultBillingAddress
- Whether the address is the default billing address for the customer.
-
setCustomerRef
The customer in the relationship.- Parameters:
customerRef
- the customer
-
setFirstName
The first name of the individual at this address.- Parameters:
firstName
- The first name of the individual at this address.
-
setLastName
The last name of the individual at this address.- Parameters:
lastName
- The last name of the individual at this address.
-
setFullName
The combined names of the individual at this address. It is considered better UX to use a full name field in place of separate first and last name fields.- Parameters:
fullName
- The combined names of the individual at this address
-
setEmailAddress
The email address of the individual at this physical address.- Parameters:
emailAddress
- The email address of the individual at this physical address.
-
setCompanyName
The name of the company at this address.- Parameters:
companyName
- The name of the company at this address.
-
setAddressLine1
Primary address information, typically street name and building number.- Parameters:
addressLine1
- Primary address information, typically street name and building number.
-
setAddressLine2
Secondary address information, like apartment, suite, or unit number.- Parameters:
addressLine2
- Secondary address information, like apartment number or suite number.
-
setAddressLine3
Tertiary address information, typically for international addresses.- Parameters:
addressLine3
- Tertiary address information, typically for international addresses.
-
setCity
The city, town or village of this address.- Parameters:
city
- The city, town or village of this address.
-
setCounty
The county of this address.- Parameters:
county
- The county of this address.
-
setStateProvinceRegion
The state, province or region of this address.- Parameters:
stateProvinceRegion
- The state, province or region of this address.
-
setCountry
The country for this address.- Parameters:
country
- The country for this address.
-
setPostalCode
Postal code or ZIP code for this address.- Parameters:
postalCode
- Postal code or ZIP code for this address.
-
setPhonePrimary
The primaryphone number
for this address.- Parameters:
phonePrimary
- The primaryphone number
for this address.
-
setPhoneSecondary
The secondaryphone number
for this address.- Parameters:
phoneSecondary
- The secondaryphone number
for this address.
-
setPhoneFax
Thefax number
for this address.- Parameters:
phoneFax
- Thefax number
for this address.
-
setActive
public void setActive(boolean isActive) Whether this address is an active address of the owner.- Parameters:
isActive
- Whether this address is an active address of the owner.
-
setAdditionalAttributes
Map holding any additional attributes passed in the request not matching any defined properties. -
setContextState
public void setContextState(com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState contextState) A subset ofTracking
information to expose the context state for this object.- Specified by:
setContextState
in interfacecom.broadleafcommerce.data.tracking.core.ContextStateAware
- Parameters:
contextState
- a subset ofTracking
information to expose the context state for this object
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-