Class AddressData
- java.lang.Object
-
- com.inteliqua.rest.customer.payload.address.AddressData
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
AddressDataResponse
public class AddressData extends Object implements Serializable
Represents address data with detailed information about the address such as country, region, address lines, town, post code, address type, and additional attributes.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AddressData()Default constructor required for Jackson serialization/deserialization.AddressData(String addressCountryCode, String regionCode, String addressLine, String town, String postCode, AddressTypeEnum addressType)Constructor for creating an AddressData object with specific address details.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddAtrribute(EntityAttribute entityAttribute)Adds an attribute to the list of general attributes for the address.StringgetAddressLine1()Gets the first address line.StringgetAddressLine2()Gets the second address line.StringgetAddressLine3()Gets the third address line (optional).AddressTypeEnumgetAddressType()Gets the type of the address (primary, delivery, or store address).List<EntityAttribute>getAttributes()Gets the list of general attributes for the address.StringgetCountryCode()Gets the country code for the address.StringgetPostCode()Gets the post code of the address.StringgetRegionCode()Gets the region code for the address.StringgetTown()Gets the town or city of the address.voidsetAddressLine1(String addressLine1)Sets the first address line.voidsetAddressLine2(String addressLine2)Sets the second address line.voidsetAddressLine3(String addressLine3)Sets the third address line (optional).voidsetAddressType(AddressTypeEnum addressType)Sets the type of the address (primary, delivery, or store address).voidsetCountryCode(String countryCode)Sets the country code for the address.voidsetPostCode(String postCode)Sets the post code for the address.voidsetRegionCode(String regionCode)Sets the region code for the address.voidsetTown(String town)Sets the town or city of the address.StringtoString()Provides a string representation of the address data.
-
-
-
Constructor Detail
-
AddressData
public AddressData()
Default constructor required for Jackson serialization/deserialization.
-
AddressData
public AddressData(String addressCountryCode, String regionCode, String addressLine, String town, String postCode, AddressTypeEnum addressType)
Constructor for creating an AddressData object with specific address details.- Parameters:
addressCountryCode- The country code of the address.regionCode- The region code for the address.addressLine- The second line of the address.town- The town or city of the address.postCode- The post code of the address.addressType- The type of the address (primary, delivery, or store address).
-
-
Method Detail
-
getCountryCode
public String getCountryCode()
Gets the country code for the address.- Returns:
- The country code.
-
setCountryCode
public void setCountryCode(String countryCode)
Sets the country code for the address.- Parameters:
countryCode- The country code to set.
-
getRegionCode
public String getRegionCode()
Gets the region code for the address.- Returns:
- The region code.
-
setRegionCode
public void setRegionCode(String regionCode)
Sets the region code for the address.- Parameters:
regionCode- The region code to set.
-
getAddressLine2
public String getAddressLine2()
Gets the second address line.- Returns:
- The second address line.
-
setAddressLine2
public void setAddressLine2(String addressLine2)
Sets the second address line.- Parameters:
addressLine2- The second address line to set.
-
getTown
public String getTown()
Gets the town or city of the address.- Returns:
- The town or city.
-
setTown
public void setTown(String town)
Sets the town or city of the address.- Parameters:
town- The town or city to set.
-
getPostCode
public String getPostCode()
Gets the post code of the address.- Returns:
- The post code.
-
setPostCode
public void setPostCode(String postCode)
Sets the post code for the address.- Parameters:
postCode- The post code to set.
-
getAddressType
public AddressTypeEnum getAddressType()
Gets the type of the address (primary, delivery, or store address).- Returns:
- The address type.
-
setAddressType
public void setAddressType(AddressTypeEnum addressType)
Sets the type of the address (primary, delivery, or store address).- Parameters:
addressType- The address type to set.
-
getAttributes
public List<EntityAttribute> getAttributes()
Gets the list of general attributes for the address.- Returns:
- The list of attributes.
-
addAtrribute
public void addAtrribute(EntityAttribute entityAttribute)
Adds an attribute to the list of general attributes for the address.- Parameters:
entityAttribute- The attribute to add.
-
getAddressLine1
public String getAddressLine1()
Gets the first address line.- Returns:
- The first address line.
-
setAddressLine1
public void setAddressLine1(String addressLine1)
Sets the first address line.- Parameters:
addressLine1- The first address line to set.
-
getAddressLine3
public String getAddressLine3()
Gets the third address line (optional).- Returns:
- The third address line.
-
setAddressLine3
public void setAddressLine3(String addressLine3)
Sets the third address line (optional).- Parameters:
addressLine3- The third address line to set.
-
-