Class DeliveryAddress


  • public class DeliveryAddress
    extends Object
    DeliveryAddress
    • Constructor Detail

      • DeliveryAddress

        public DeliveryAddress()
    • Method Detail

      • getCity

        public String getCity()
        The name of the city.
        Returns:
        city
      • setCity

        public void setCity​(String city)
        The name of the city.
        Parameters:
        city -
      • getCountry

        public String getCountry()
        The two-character ISO-3166-1 alpha-2 country code. For example, **US**. >If you don't know the country or are not collecting the country from the shopper, provide `country` as `ZZ`.
        Returns:
        country
      • setCountry

        public void setCountry​(String country)
        The two-character ISO-3166-1 alpha-2 country code. For example, **US**. >If you don't know the country or are not collecting the country from the shopper, provide `country` as `ZZ`.
        Parameters:
        country -
      • getLine1

        public String getLine1()
        The name of the street. Do not include the number of the building. For example, if the address is Simon Carmiggeltstraat 6-50, provide **Simon Carmiggeltstraat**.
        Returns:
        line1
      • setLine1

        public void setLine1​(String line1)
        The name of the street. Do not include the number of the building. For example, if the address is Simon Carmiggeltstraat 6-50, provide **Simon Carmiggeltstraat**.
        Parameters:
        line1 -
      • getLine2

        public String getLine2()
        The number of the building. For example, if the address is Simon Carmiggeltstraat 6-50, provide **6-50**.
        Returns:
        line2
      • setLine2

        public void setLine2​(String line2)
        The number of the building. For example, if the address is Simon Carmiggeltstraat 6-50, provide **6-50**.
        Parameters:
        line2 -
      • getLine3

        public String getLine3()
        Additional information about the delivery address.
        Returns:
        line3
      • setLine3

        public void setLine3​(String line3)
        Additional information about the delivery address.
        Parameters:
        line3 -
      • getPostalCode

        public String getPostalCode()
        The postal code. Maximum length: * 5 digits for an address in the US. * 10 characters for an address in all other countries.
        Returns:
        postalCode
      • setPostalCode

        public void setPostalCode​(String postalCode)
        The postal code. Maximum length: * 5 digits for an address in the US. * 10 characters for an address in all other countries.
        Parameters:
        postalCode -
      • getStateOrProvince

        public String getStateOrProvince()
        The two-letter ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in Canada. > Required for the US and Canada.
        Returns:
        stateOrProvince
      • setStateOrProvince

        public void setStateOrProvince​(String stateOrProvince)
        The two-letter ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in Canada. > Required for the US and Canada.
        Parameters:
        stateOrProvince -
      • equals

        public boolean equals​(Object o)
        Return true if this DeliveryAddress object is equal to o.
        Overrides:
        equals in class Object
      • hashCode

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

        public static DeliveryAddress fromJson​(String jsonString)
                                        throws com.fasterxml.jackson.core.JsonProcessingException
        Create an instance of DeliveryAddress given an JSON string
        Parameters:
        jsonString - JSON string
        Returns:
        An instance of DeliveryAddress
        Throws:
        com.fasterxml.jackson.core.JsonProcessingException - if the JSON string is invalid with respect to DeliveryAddress
      • toJson

        public String toJson()
                      throws com.fasterxml.jackson.core.JsonProcessingException
        Convert an instance of DeliveryAddress to an JSON string
        Returns:
        JSON string
        Throws:
        com.fasterxml.jackson.core.JsonProcessingException