Class Address.Request

  • Enclosing class:
    Address

    public static final class Address.Request
    extends Object
    • Method Detail

      • toJson

        public String toJson()
      • flatNumber

        public Address.Request flatNumber​(String flatNumber)
        The flat number of this address
        Parameters:
        flatNumber - The flat number of this address
        Returns:
        The Address request object.
      • buildingNumber

        public Address.Request buildingNumber​(String buildingNumber)
        The building number of this address
        Parameters:
        buildingNumber - The building number of this address
        Returns:
        The Address request object.
      • buildingName

        public Address.Request buildingName​(String buildingName)
        The building name of this address
        Parameters:
        buildingName - The building name of this address
        Returns:
        The Address request object.
      • street

        public Address.Request street​(String street)
        The street of the applicant’s address
        Parameters:
        street - The street of the applicant’s address
        Returns:
        The Address request object.
      • subStreet

        public Address.Request subStreet​(String subStreet)
        The sub-street of the applicant’s address
        Parameters:
        subStreet - The sub-street of the applicant’s address
        Returns:
        The Address request object.
      • town

        public Address.Request town​(String town)
        The town of the applicant’s address
        Parameters:
        town - The town of the applicant’s address
        Returns:
        The Address request object.
      • postcode

        public Address.Request postcode​(String postcode)
        The postcode or ZIP of the applicant’s address
        Parameters:
        postcode - The postcode or ZIP of the applicant’s address
        Returns:
        The Address request object.
      • country

        public Address.Request country​(String country)
        The 3 character ISO country code of this address. For example, GBR is the country code for the United Kingdom
        Parameters:
        country - The 3 character ISO country code of this address. For example, GBR is the country code for the United Kingdom
        Returns:
        The Address request object.
      • state

        public Address.Request state​(String state)
        The address state. US states must use the USPS abbreviation (see also ISO 3166-2:US), for example AK, CA, or TX.
        Parameters:
        state - The address state. US states must use the USPS abbreviation (see also ISO 3166-2:US), for example AK, CA, or TX.
        Returns:
        The Address request object.
      • getFlatNumber

        public String getFlatNumber()
        The flat number of this address
        Returns:
        The flat number of this address
      • getBuildingNumber

        public String getBuildingNumber()
        The building number of this address
        Returns:
        The building number of this address
      • getBuildingName

        public String getBuildingName()
        The building name of this address
        Returns:
        The building name of this address
      • getStreet

        public String getStreet()
        The street of the applicant’s address
        Returns:
        The street of the applicant’s address
      • getSubStreet

        public String getSubStreet()
        The sub-street of the applicant’s address
        Returns:
        The sub-street of the applicant’s address
      • getTown

        public String getTown()
        The town of the applicant’s address
        Returns:
        The town of the applicant’s address
      • getPostcode

        public String getPostcode()
        The postcode or ZIP of the applicant’s address
        Returns:
        The postcode or ZIP of the applicant’s address
      • getCountry

        public String getCountry()
        The 3 character ISO country code of this address. For example, GBR is the country code for the United Kingdom
        Returns:
        The 3 character ISO country code of this address. For example, GBR is the country code for the United Kingdom
      • getState

        public String getState()
        The address state. US states must use the USPS abbreviation (see also ISO 3166-2:US), for example AK, CA, or TX.
        Returns:
        The address state. US states must use the USPS abbreviation (see also ISO 3166-2:US), for example AK, CA, or TX.