Class BulkAddress


  • public class BulkAddress
    extends Object
    BulkAddress
    • Constructor Detail

      • BulkAddress

        public BulkAddress()
    • 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 -
      • getCompany

        public String getCompany()
        The name of the company.
        Returns:
        company
      • setCompany

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

        public String getCountry()
        The two-character ISO-3166-1 alpha-2 country code. For example, **US**.
        Returns:
        country
      • setCountry

        public void setCountry​(String country)
        The two-character ISO-3166-1 alpha-2 country code. For example, **US**.
        Parameters:
        country -
      • getEmail

        public String getEmail()
        The email address.
        Returns:
        email
      • setEmail

        public void setEmail​(String email)
        The email address.
        Parameters:
        email -
      • houseNumberOrName

        public BulkAddress houseNumberOrName​(String houseNumberOrName)
      • getHouseNumberOrName

        public String getHouseNumberOrName()
        The house number or name.
        Returns:
        houseNumberOrName
      • setHouseNumberOrName

        public void setHouseNumberOrName​(String houseNumberOrName)
        The house number or name.
        Parameters:
        houseNumberOrName -
      • getMobile

        public String getMobile()
        The full telephone number.
        Returns:
        mobile
      • setMobile

        public void setMobile​(String mobile)
        The full telephone number.
        Parameters:
        mobile -
      • getPostalCode

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

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

        public String getStateOrProvince()
        The two-letter ISO 3166-2 state or province code. Maximum length: 2 characters for addresses in the US.
        Returns:
        stateOrProvince
      • setStateOrProvince

        public void setStateOrProvince​(String stateOrProvince)
        The two-letter ISO 3166-2 state or province code. Maximum length: 2 characters for addresses in the US.
        Parameters:
        stateOrProvince -
      • getStreet

        public String getStreet()
        The streetname of the house.
        Returns:
        street
      • setStreet

        public void setStreet​(String street)
        The streetname of the house.
        Parameters:
        street -
      • equals

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

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

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

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