Package com.xero.models.accounting
Class Address
- java.lang.Object
-
- com.xero.models.accounting.Address
-
public class Address extends Object
Address
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAddress.AddressTypeEnumdefine the type of address
-
Constructor Summary
Constructors Constructor Description Address()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AddressaddressLine1(String addressLine1)max length = 500AddressaddressLine2(String addressLine2)max length = 500AddressaddressLine3(String addressLine3)max length = 500AddressaddressLine4(String addressLine4)max length = 500AddressaddressType(Address.AddressTypeEnum addressType)define the type of addressAddressattentionTo(String attentionTo)max length = 255Addresscity(String city)max length = 255Addresscountry(String country)max length = 50, [A-Z], [a-z] onlybooleanequals(Object o)StringgetAddressLine1()max length = 500StringgetAddressLine2()max length = 500StringgetAddressLine3()max length = 500StringgetAddressLine4()max length = 500Address.AddressTypeEnumgetAddressType()define the type of addressStringgetAttentionTo()max length = 255StringgetCity()max length = 255StringgetCountry()max length = 50, [A-Z], [a-z] onlyStringgetPostalCode()max length = 50StringgetRegion()max length = 255inthashCode()AddresspostalCode(String postalCode)max length = 50Addressregion(String region)max length = 255voidsetAddressLine1(String addressLine1)max length = 500voidsetAddressLine2(String addressLine2)max length = 500voidsetAddressLine3(String addressLine3)max length = 500voidsetAddressLine4(String addressLine4)max length = 500voidsetAddressType(Address.AddressTypeEnum addressType)define the type of addressvoidsetAttentionTo(String attentionTo)max length = 255voidsetCity(String city)max length = 255voidsetCountry(String country)max length = 50, [A-Z], [a-z] onlyvoidsetPostalCode(String postalCode)max length = 50voidsetRegion(String region)max length = 255StringtoString()
-
-
-
Method Detail
-
addressType
public Address addressType(Address.AddressTypeEnum addressType)
define the type of address- Parameters:
addressType- AddressTypeEnum- Returns:
- Address
-
getAddressType
public Address.AddressTypeEnum getAddressType()
define the type of address- Returns:
- addressType
-
setAddressType
public void setAddressType(Address.AddressTypeEnum addressType)
define the type of address- Parameters:
addressType- AddressTypeEnum
-
addressLine1
public Address addressLine1(String addressLine1)
max length = 500- Parameters:
addressLine1- String- Returns:
- Address
-
getAddressLine1
public String getAddressLine1()
max length = 500- Returns:
- addressLine1
-
setAddressLine1
public void setAddressLine1(String addressLine1)
max length = 500- Parameters:
addressLine1- String
-
addressLine2
public Address addressLine2(String addressLine2)
max length = 500- Parameters:
addressLine2- String- Returns:
- Address
-
getAddressLine2
public String getAddressLine2()
max length = 500- Returns:
- addressLine2
-
setAddressLine2
public void setAddressLine2(String addressLine2)
max length = 500- Parameters:
addressLine2- String
-
addressLine3
public Address addressLine3(String addressLine3)
max length = 500- Parameters:
addressLine3- String- Returns:
- Address
-
getAddressLine3
public String getAddressLine3()
max length = 500- Returns:
- addressLine3
-
setAddressLine3
public void setAddressLine3(String addressLine3)
max length = 500- Parameters:
addressLine3- String
-
addressLine4
public Address addressLine4(String addressLine4)
max length = 500- Parameters:
addressLine4- String- Returns:
- Address
-
getAddressLine4
public String getAddressLine4()
max length = 500- Returns:
- addressLine4
-
setAddressLine4
public void setAddressLine4(String addressLine4)
max length = 500- Parameters:
addressLine4- String
-
getCity
public String getCity()
max length = 255- Returns:
- city
-
setCity
public void setCity(String city)
max length = 255- Parameters:
city- String
-
region
public Address region(String region)
max length = 255- Parameters:
region- String- Returns:
- Address
-
getRegion
public String getRegion()
max length = 255- Returns:
- region
-
setRegion
public void setRegion(String region)
max length = 255- Parameters:
region- String
-
postalCode
public Address postalCode(String postalCode)
max length = 50- Parameters:
postalCode- String- Returns:
- Address
-
getPostalCode
public String getPostalCode()
max length = 50- Returns:
- postalCode
-
setPostalCode
public void setPostalCode(String postalCode)
max length = 50- Parameters:
postalCode- String
-
country
public Address country(String country)
max length = 50, [A-Z], [a-z] only- Parameters:
country- String- Returns:
- Address
-
getCountry
public String getCountry()
max length = 50, [A-Z], [a-z] only- Returns:
- country
-
setCountry
public void setCountry(String country)
max length = 50, [A-Z], [a-z] only- Parameters:
country- String
-
attentionTo
public Address attentionTo(String attentionTo)
max length = 255- Parameters:
attentionTo- String- Returns:
- Address
-
getAttentionTo
public String getAttentionTo()
max length = 255- Returns:
- attentionTo
-
setAttentionTo
public void setAttentionTo(String attentionTo)
max length = 255- Parameters:
attentionTo- String
-
-