public class Address extends java.lang.Object
The postal address of an entity.
| Constructor and Description |
|---|
Address()
|
Address(java.lang.String postcode,
java.lang.String lineOne,
java.lang.String cityName,
java.lang.String countryCode)
|
Address(java.lang.String postcode,
java.lang.String lineOne,
java.lang.String lineTwo,
java.lang.String cityName,
java.lang.String countryCode)
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getCity()
|
java.lang.String |
getCountryId()
|
java.lang.String |
getLineOne()
|
java.lang.String |
getLineTwo()
|
java.lang.String |
getPostcode()
|
Address |
setCity(java.lang.String cityName)
|
Address |
setCountryId(java.lang.String countryCode)
|
Address |
setLineOne(java.lang.String lineOne)
|
Address |
setLineTwo(java.lang.String lineTwo)
|
Address |
setPostcode(java.lang.String postcode)
|
public Address()
Instantiates a new trade address.
public Address(java.lang.String postcode, java.lang.String lineOne, java.lang.String cityName, java.lang.String countryCode)
Instantiates a new trade address.
postcode - the postal codelineOne - the line onecityName - the city namecountryCode - the ISO 3166-2A country codepublic Address(java.lang.String postcode, java.lang.String lineOne, java.lang.String lineTwo, java.lang.String cityName, java.lang.String countryCode)
Instantiates a new trade address.
postcode - the postcodelineOne - the line onelineTwo - the line twocityName - the city namecountryCode - the ISO 3166-2A country codepublic java.lang.String getCity()
Gets the city name.
BASIC when part of Trade.agreements.seller.
Zürich
public java.lang.String getCountryId()
Gets the country id.
Two-letter country codes defined in ISO 3166-1,
BASIC when part of Trade.agreements.seller.
CH
href="http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2">ISO 3166-2A Country Codes</a>public java.lang.String getLineOne()
Gets the line one. Usually the Street name.
BASIC when part of Trade.agreements.seller.
Elm Street 13
public java.lang.String getLineTwo()
Gets the line two. Location like Building name or department.
BASIC when part of Trade.agreements.seller.
Department of broken dreams
public java.lang.String getPostcode()
Gets the postcode.
BASIC when part of Trade.agreements.seller.
DE-123456
public Address setCity(java.lang.String cityName)
Sets the city name.
BASIC when part of Trade.agreements.seller.
Zürich
cityName - the new city namepublic Address setCountryId(java.lang.String countryCode)
Sets the country code.
Two-letter country codes defined in ISO 3166-1,
BASIC when part of Trade.agreements.seller.
CH
countryCode - the country codehref="http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2">ISO 3166-2A Country Codes</a>public Address setLineOne(java.lang.String lineOne)
Sets the line one. Usually the Street name.
BASIC when part of Trade.agreements.seller.
Elm Street 13
lineOne - the new line onepublic Address setLineTwo(java.lang.String lineTwo)
Sets the line two.. Location like Building name or department.
BASIC when part of Trade.agreements.seller.
Department of broken dreams
lineTwo - the new line twopublic Address setPostcode(java.lang.String postcode)
Sets the postcode code.
BASIC when part of Trade.agreements.seller.
DE-123456
postcode - the postcodeCopyright © 2014 konik.io. All Rights Reserved.