Class AddressDataUpdateRequest
- java.lang.Object
-
- com.inteliqua.rest.customer.payload.address.request.AddressDataUpdateRequest
-
- Direct Known Subclasses:
AddressDataModificationRequest
public class AddressDataUpdateRequest extends Object
Represents a request to update the address data of a customer.This class allows the modification of various address fields, including the country code, region code, address lines, town, postcode, and address type. Additionally, it allows the inclusion of custom attributes for further customization.
- Author:
- nikritikos
-
-
Constructor Summary
Constructors Constructor Description AddressDataUpdateRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UpdateField<String>getAddressLine1()Gets the first line of the address.UpdateField<String>getAddressLine2()Gets the second line of the address.UpdateField<String>getAddressLine3()Gets the third line of the address.UpdateField<AddressTypeEnum>getAddressType()Gets the address type (e.g., home, work).List<EntityAttribute>getAttributes()Gets the list of additional attributes for the address.UpdateField<String>getCountryCode()Gets the country code.UpdateField<String>getPostCode()Gets the postal code of the address.UpdateField<String>getRegionCode()Gets the region code.UpdateField<String>getTown()Gets the town or city of the address.voidsetAddressLine1(UpdateField<String> addressLine1)Sets the first line of the address.voidsetAddressLine2(UpdateField<String> addressLine2)Sets the second line of the address.voidsetAddressLine3(UpdateField<String> addressLine3)Sets the third line of the address.voidsetAddressType(UpdateField<AddressTypeEnum> addressType)Sets the address type (e.g., home, work).voidsetCountryCode(UpdateField<String> countryCode)Sets the country code.voidsetPostCode(UpdateField<String> postCode)Sets the postal code of the address.voidsetRegionCode(UpdateField<String> regionCode)Sets the region code.voidsetTown(UpdateField<String> town)Sets the town or city of the address.StringtoString()Provides a string representation of the address update request, including the country code, region code, address lines, town, postcode, address type, and additional attributes.
-
-
-
Method Detail
-
getCountryCode
public UpdateField<String> getCountryCode()
Gets the country code.- Returns:
- The
UpdateFieldrepresenting the country code.
-
setCountryCode
public void setCountryCode(UpdateField<String> countryCode)
Sets the country code.- Parameters:
countryCode- TheUpdateFieldrepresenting the country code.
-
getRegionCode
public UpdateField<String> getRegionCode()
Gets the region code.- Returns:
- The
UpdateFieldrepresenting the region code.
-
setRegionCode
public void setRegionCode(UpdateField<String> regionCode)
Sets the region code.- Parameters:
regionCode- TheUpdateFieldrepresenting the region code.
-
getAddressLine2
public UpdateField<String> getAddressLine2()
Gets the second line of the address.- Returns:
- The
UpdateFieldrepresenting the second address line.
-
setAddressLine2
public void setAddressLine2(UpdateField<String> addressLine2)
Sets the second line of the address.- Parameters:
addressLine2- TheUpdateFieldrepresenting the second address line.
-
getTown
public UpdateField<String> getTown()
Gets the town or city of the address.- Returns:
- The
UpdateFieldrepresenting the town.
-
setTown
public void setTown(UpdateField<String> town)
Sets the town or city of the address.- Parameters:
town- TheUpdateFieldrepresenting the town.
-
getPostCode
public UpdateField<String> getPostCode()
Gets the postal code of the address.- Returns:
- The
UpdateFieldrepresenting the postal code.
-
setPostCode
public void setPostCode(UpdateField<String> postCode)
Sets the postal code of the address.- Parameters:
postCode- TheUpdateFieldrepresenting the postal code.
-
getAddressType
public UpdateField<AddressTypeEnum> getAddressType()
Gets the address type (e.g., home, work).- Returns:
- The
UpdateFieldrepresenting the address type.
-
setAddressType
public void setAddressType(UpdateField<AddressTypeEnum> addressType)
Sets the address type (e.g., home, work).- Parameters:
addressType- TheUpdateFieldrepresenting the address type.
-
getAttributes
public List<EntityAttribute> getAttributes()
Gets the list of additional attributes for the address.- Returns:
- The list of
EntityAttributeobjects.
-
getAddressLine1
public UpdateField<String> getAddressLine1()
Gets the first line of the address.- Returns:
- The
UpdateFieldrepresenting the first address line.
-
setAddressLine1
public void setAddressLine1(UpdateField<String> addressLine1)
Sets the first line of the address.- Parameters:
addressLine1- TheUpdateFieldrepresenting the first address line.
-
getAddressLine3
public UpdateField<String> getAddressLine3()
Gets the third line of the address.- Returns:
- The
UpdateFieldrepresenting the third address line.
-
setAddressLine3
public void setAddressLine3(UpdateField<String> addressLine3)
Sets the third line of the address.- Parameters:
addressLine3- TheUpdateFieldrepresenting the third address line.
-
toString
public String toString()
Provides a string representation of the address update request, including the country code, region code, address lines, town, postcode, address type, and additional attributes.
-
-