Class DeliveryPreferences


  • public class DeliveryPreferences
    extends java.lang.Object
    Contains all of the delivery instructions provided by the customer for the shipping address.
    • Constructor Detail

      • DeliveryPreferences

        public DeliveryPreferences()
    • Method Detail

      • dropOffLocation

        public DeliveryPreferences dropOffLocation​(java.lang.String dropOffLocation)
      • getDropOffLocation

        public java.lang.String getDropOffLocation()
        Drop-off location selected by the customer.
        Returns:
        dropOffLocation
      • setDropOffLocation

        public void setDropOffLocation​(java.lang.String dropOffLocation)
      • getPreferredDeliveryTime

        public PreferredDeliveryTime getPreferredDeliveryTime()
        Get preferredDeliveryTime
        Returns:
        preferredDeliveryTime
      • setPreferredDeliveryTime

        public void setPreferredDeliveryTime​(PreferredDeliveryTime preferredDeliveryTime)
      • getOtherAttributes

        public java.util.List<OtherDeliveryAttributes> getOtherAttributes()
        Enumerated list of miscellaneous delivery attributes associated with the shipping address.
        Returns:
        otherAttributes
      • addressInstructions

        public DeliveryPreferences addressInstructions​(java.lang.String addressInstructions)
      • getAddressInstructions

        public java.lang.String getAddressInstructions()
        Building instructions, nearby landmark or navigation instructions.
        Returns:
        addressInstructions
      • setAddressInstructions

        public void setAddressInstructions​(java.lang.String addressInstructions)
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object