java.lang.Object
com.broadleafcommerce.tabby.provider.domain.Address
All Implemented Interfaces:
Serializable

public class Address extends Object implements Serializable
Author:
Dima Myroniuk (dmyroniuk)
See Also:
  • Constructor Details

    • Address

      public Address()
  • Method Details

    • addAttribute

      public void addAttribute(String name, Object value)
      Add a value to the JSON data. Necessary for populating the JSON from the payload.
      Parameters:
      name - the attribute name
      value - the attribute value
    • getAttribute

      public Object getAttribute(String name)
      Get a value from the JSON data. Necessary for populating the JSON from the payload.
      Parameters:
      name - the attribute name
    • getFullName

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

      public String getAddressLine1()
      Primary address information, typically street name and building number.
      Returns:
      Primary address information, typically street name and building number.
    • getCity

      public String getCity()
      The city, town or village of this address.
      Returns:
      The city, town or village of this address.
    • getPostalCode

      public String getPostalCode()
      Postal code or ZIP code for this address.
      Returns:
      Postal code or ZIP code for this address.
    • getPhonePrimary

      public Phone getPhonePrimary()
      The primary phone number for this address.
      Returns:
      The primary phone number for this address.
    • getJsonMap

      public Map<String,Object> getJsonMap()
      JSON data for the address object which isn't already stored in other fields.
      Returns:
      JSON order object data
    • setFullName

      public void setFullName(String fullName)
      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
    • setAddressLine1

      public void setAddressLine1(String addressLine1)
      Primary address information, typically street name and building number.
      Parameters:
      addressLine1 - Primary address information, typically street name and building number.
    • setCity

      public void setCity(String city)
      The city, town or village of this address.
      Parameters:
      city - The city, town or village of this address.
    • setPostalCode

      public void setPostalCode(String postalCode)
      Postal code or ZIP code for this address.
      Parameters:
      postalCode - Postal code or ZIP code for this address.
    • setPhonePrimary

      public void setPhonePrimary(Phone phonePrimary)
      The primary phone number for this address.
      Parameters:
      phonePrimary - The primary phone number for this address.
    • setJsonMap

      public void setJsonMap(Map<String,Object> jsonMap)
      JSON data for the address object which isn't already stored in other fields.
      Parameters:
      jsonMap - JSON order object data
    • 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