java.lang.Object
com.broadleafcommerce.cartoperation.service.provider.external.domain.customer.Customer

public class Customer extends Object
Represents a customer
  • Constructor Details

    • Customer

      public Customer()
  • Method Details

    • getId

      public String getId()
      The customer ID
    • getUsername

      public String 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

      public String 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

      public String getTaxId()
      The customer's tax ID.
    • getVatRegistrationId

      public String getVatRegistrationId()
      Customer's VAT registration ID, if applicable. This usually only applies to businesses.
    • setId

      public void setId(String id)
      The customer ID
    • setUsername

      public void setUsername(String username)
      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

      public void setEmail(String email)
      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

      public void setTaxId(String taxId)
      The customer's tax ID.
    • setVatRegistrationId

      public void setVatRegistrationId(String vatRegistrationId)
      Customer's VAT registration ID, if applicable. This usually only applies to businesses.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object