Class 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 Detail

      • AddressDataUpdateRequest

        public AddressDataUpdateRequest()
    • Method Detail

      • getCountryCode

        public UpdateField<String> getCountryCode()
        Gets the country code.
        Returns:
        The UpdateField representing the country code.
      • setCountryCode

        public void setCountryCode​(UpdateField<String> countryCode)
        Sets the country code.
        Parameters:
        countryCode - The UpdateField representing the country code.
      • setRegionCode

        public void setRegionCode​(UpdateField<String> regionCode)
        Sets the region code.
        Parameters:
        regionCode - The UpdateField representing the region code.
      • getAddressLine2

        public UpdateField<String> getAddressLine2()
        Gets the second line of the address.
        Returns:
        The UpdateField representing the second address line.
      • setAddressLine2

        public void setAddressLine2​(UpdateField<String> addressLine2)
        Sets the second line of the address.
        Parameters:
        addressLine2 - The UpdateField representing the second address line.
      • setTown

        public void setTown​(UpdateField<String> town)
        Sets the town or city of the address.
        Parameters:
        town - The UpdateField representing the town.
      • getPostCode

        public UpdateField<String> getPostCode()
        Gets the postal code of the address.
        Returns:
        The UpdateField representing the postal code.
      • setPostCode

        public void setPostCode​(UpdateField<String> postCode)
        Sets the postal code of the address.
        Parameters:
        postCode - The UpdateField representing the postal code.
      • setAddressType

        public void setAddressType​(UpdateField<AddressTypeEnum> addressType)
        Sets the address type (e.g., home, work).
        Parameters:
        addressType - The UpdateField representing the address type.
      • getAddressLine1

        public UpdateField<String> getAddressLine1()
        Gets the first line of the address.
        Returns:
        The UpdateField representing the first address line.
      • setAddressLine1

        public void setAddressLine1​(UpdateField<String> addressLine1)
        Sets the first line of the address.
        Parameters:
        addressLine1 - The UpdateField representing the first address line.
      • getAddressLine3

        public UpdateField<String> getAddressLine3()
        Gets the third line of the address.
        Returns:
        The UpdateField representing the third address line.
      • setAddressLine3

        public void setAddressLine3​(UpdateField<String> addressLine3)
        Sets the third line of the address.
        Parameters:
        addressLine3 - The UpdateField representing 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.
        Overrides:
        toString in class Object
        Returns:
        A string representation of the address update request.