Class AddressDetails


  • public final class AddressDetails
    extends Object
    Address details for an order item.
    • Constructor Detail

      • AddressDetails

        public AddressDetails()
    • Method Detail

      • forwardAddress

        public AddressProperties forwardAddress()
        Get the forwardAddress property: Customer address and contact details. It should be address resource.
        Returns:
        the forwardAddress value.
      • withForwardAddress

        public AddressDetails withForwardAddress​(AddressProperties forwardAddress)
        Set the forwardAddress property: Customer address and contact details. It should be address resource.
        Parameters:
        forwardAddress - the forwardAddress value to set.
        Returns:
        the AddressDetails object itself.
      • returnAddress

        public AddressProperties returnAddress()
        Get the returnAddress property: Return shipping address.
        Returns:
        the returnAddress value.
      • validate

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