Class OrderItemProperties


  • public final class OrderItemProperties
    extends Object
    Represents order item details.
    • Constructor Detail

      • OrderItemProperties

        public OrderItemProperties()
    • Method Detail

      • orderItemDetails

        public OrderItemDetails orderItemDetails()
        Get the orderItemDetails property: Represents order item details.
        Returns:
        the orderItemDetails value.
      • withOrderItemDetails

        public OrderItemProperties withOrderItemDetails​(OrderItemDetails orderItemDetails)
        Set the orderItemDetails property: Represents order item details.
        Parameters:
        orderItemDetails - the orderItemDetails value to set.
        Returns:
        the OrderItemProperties object itself.
      • addressDetails

        public AddressDetails addressDetails()
        Get the addressDetails property: Represents shipping and return address for order item.
        Returns:
        the addressDetails value.
      • withAddressDetails

        public OrderItemProperties withAddressDetails​(AddressDetails addressDetails)
        Set the addressDetails property: Represents shipping and return address for order item.
        Parameters:
        addressDetails - the addressDetails value to set.
        Returns:
        the OrderItemProperties object itself.
      • startTime

        public OffsetDateTime startTime()
        Get the startTime property: Start time of order item.
        Returns:
        the startTime value.
      • orderId

        public String orderId()
        Get the orderId property: Id of the order to which order item belongs to.
        Returns:
        the orderId value.
      • withOrderId

        public OrderItemProperties withOrderId​(String orderId)
        Set the orderId property: Id of the order to which order item belongs to.
        Parameters:
        orderId - the orderId value to set.
        Returns:
        the OrderItemProperties object itself.
      • validate

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