Class CustomerRef

java.lang.Object
com.broadleafcommerce.customer.domain.CustomerRef
All Implemented Interfaces:
Serializable

public class CustomerRef extends Object implements Serializable
A reference to a customer.
Author:
Chad Harchar (charchar), Chris Kittrell (ckittrell)
See Also:
  • Constructor Details

    • CustomerRef

      public CustomerRef()
  • Method Details

    • fromCustomer

      public CustomerRef fromCustomer(@Nullable Customer customer)
      Builds an CustomerRef based on the provided Customer
      Parameters:
      customer - the Customer used to build the CustomerRef
      Returns:
      an CustomerRef based on the provided Customer
    • getId

      public String getId()
      The customer's id.
      Returns:
      The customer's id.
    • getUsername

      public String getUsername()
      The customer's username.
      Returns:
      The customer's username.
    • getEmail

      public String getEmail()
      The customer's email address.
      Returns:
      The customer's email address.
    • getName

      public String getName()
      The customer's name
      Returns:
      The customer's name.
    • getPhoneNumber

      public String getPhoneNumber()
      The customer's phone number.
      Returns:
      The customer's phone number.
    • setId

      public void setId(String id)
      The customer's id.
      Parameters:
      customerId - The customer's id.
    • setUsername

      public void setUsername(String username)
      The customer's username.
      Parameters:
      username - The customer's username.
    • setEmail

      public void setEmail(String email)
      The customer's email address.
      Parameters:
      email - The customer's email address.
    • setName

      public void setName(String name)
      The customer's name
      Parameters:
      name - The customer's name
    • setPhoneNumber

      public void setPhoneNumber(String phoneNumber)
      The customer's phone number.
      Parameters:
      username - The customer's phone number.
    • 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