Class AddressProperties


  • public final class AddressProperties
    extends Object
    Address Properties.
    • Constructor Detail

      • AddressProperties

        public AddressProperties()
    • Method Detail

      • shippingAddress

        public ShippingAddress shippingAddress()
        Get the shippingAddress property: Shipping details for the address.
        Returns:
        the shippingAddress value.
      • withShippingAddress

        public AddressProperties withShippingAddress​(ShippingAddress shippingAddress)
        Set the shippingAddress property: Shipping details for the address.
        Parameters:
        shippingAddress - the shippingAddress value to set.
        Returns:
        the AddressProperties object itself.
      • contactDetails

        public ContactDetails contactDetails()
        Get the contactDetails property: Contact details for the address.
        Returns:
        the contactDetails value.
      • withContactDetails

        public AddressProperties withContactDetails​(ContactDetails contactDetails)
        Set the contactDetails property: Contact details for the address.
        Parameters:
        contactDetails - the contactDetails value to set.
        Returns:
        the AddressProperties object itself.
      • addressValidationStatus

        public AddressValidationStatus addressValidationStatus()
        Get the addressValidationStatus property: Status of address validation.
        Returns:
        the addressValidationStatus value.
      • validate

        public void validate()
        Validates the instance.
        Throws:
        IllegalArgumentException - thrown if the instance is not valid.