Class ViasAddress


  • public class ViasAddress
    extends Object
    ViasAddress
    • Constructor Detail

      • ViasAddress

        public ViasAddress()
    • Method Detail

      • getCity

        public String getCity()
        The name of the city. Required if the `houseNumberOrName`, `street`, `postalCode`, or `stateOrProvince` are provided.
        Returns:
        city
      • setCity

        public void setCity​(String city)
      • getCountry

        public String getCountry()
        The two-character country code of the address in ISO-3166-1 alpha-2 format. For example, **NL**.
        Returns:
        country
      • setCountry

        public void setCountry​(String country)
      • houseNumberOrName

        public ViasAddress houseNumberOrName​(String houseNumberOrName)
      • getHouseNumberOrName

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

        public void setHouseNumberOrName​(String houseNumberOrName)
      • getPostalCode

        public String getPostalCode()
        The postal code. Required if the `houseNumberOrName`, `street`, `city`, or `stateOrProvince` are provided. Maximum length: * 5 digits for addresses in the US. * 10 characters for all other countries.
        Returns:
        postalCode
      • setPostalCode

        public void setPostalCode​(String postalCode)
      • getStateOrProvince

        public String getStateOrProvince()
        The abbreviation of the state or province. Required if the `houseNumberOrName`, `street`, `city`, or `postalCode` are provided. Maximum length: * 2 characters for addresses in the US or Canada. * 3 characters for all other countries.
        Returns:
        stateOrProvince
      • setStateOrProvince

        public void setStateOrProvince​(String stateOrProvince)
      • getStreet

        public String getStreet()
        The name of the street. Required if the `houseNumberOrName`, `city`, `postalCode`, or `stateOrProvince` are provided.
        Returns:
        street
      • setStreet

        public void setStreet​(String street)
      • equals

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

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

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

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