Class Customer
java.lang.Object
com.broadleafcommerce.cartoperation.service.provider.external.domain.customer.Customer
Represents a customer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleangetEmail()The email address of the customer.getId()The customer IDcom.broadleafcommerce.order.common.domain.PhonegetPhone()The main phone number of the customer.getTaxId()The customer's tax ID.The username of the customer, used to log in.Customer's VAT registration ID, if applicable.inthashCode()voidThe email address of the customer.voidThe customer IDvoidsetPhone(com.broadleafcommerce.order.common.domain.Phone phone) The main phone number of the customer.voidThe customer's tax ID.voidsetUsername(String username) The username of the customer, used to log in.voidsetVatRegistrationId(String vatRegistrationId) Customer's VAT registration ID, if applicable.toString()
-
Constructor Details
-
Customer
public Customer()
-
-
Method Details
-
getId
The customer ID -
getUsername
The username of the customer, used to log in.- Returns:
- the username of the customer
- Since:
- Cart Operation Service 2.3.0, Release Train 2.3.0
-
getEmail
The email address of the customer.- Returns:
- the email address of the customer
- Since:
- Cart Operation Service 2.3.0, Release Train 2.3.0
-
getPhone
public com.broadleafcommerce.order.common.domain.Phone getPhone()The main phone number of the customer.- Returns:
- The main phone number of the customer.
- Since:
- Cart Operation Service 2.3.0, Release Train 2.3.0
-
getTaxId
The customer's tax ID. -
getVatRegistrationId
Customer's VAT registration ID, if applicable. This usually only applies to businesses. -
setId
The customer ID -
setUsername
The username of the customer, used to log in.- Parameters:
username- the username of the customer- Since:
- Cart Operation Service 2.3.0, Release Train 2.3.0
-
setEmail
The email address of the customer.- Parameters:
email- the email address of the customer- Since:
- Cart Operation Service 2.3.0, Release Train 2.3.0
-
setPhone
public void setPhone(com.broadleafcommerce.order.common.domain.Phone phone) The main phone number of the customer.- Parameters:
phone- The main phone number of the customer.- Since:
- Cart Operation Service 2.3.0, Release Train 2.3.0
-
setTaxId
The customer's tax ID. -
setVatRegistrationId
Customer's VAT registration ID, if applicable. This usually only applies to businesses. -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-