Interface DeliveryItem


public interface DeliveryItem
DeliveryItem
Example to create an instance using the builder pattern

     DeliveryItem deliveryItem = DeliveryItem.builder()
             .id("{id}")
             .quantity(0.3)
             .build()
 
  • Method Details

    • getId

      @NotNull @NotNull String getId()

      id of the LineItem or CustomLineItem delivered.

      Returns:
      id
    • getQuantity

      @NotNull @NotNull Long getQuantity()

      Number of Line Items or Custom Line Items delivered.

      Returns:
      quantity
    • setId

      void setId(String id)

      id of the LineItem or CustomLineItem delivered.

      Parameters:
      id - value to be set
    • setQuantity

      void setQuantity(Long quantity)

      Number of Line Items or Custom Line Items delivered.

      Parameters:
      quantity - value to be set
    • of

      static DeliveryItem of()
      factory method
      Returns:
      instance of DeliveryItem
    • of

      static DeliveryItem of(DeliveryItem template)
      factory method to create a shallow copy DeliveryItem
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • deepCopy

      @Nullable static DeliveryItem deepCopy(@Nullable DeliveryItem template)
      factory method to create a deep copy of DeliveryItem
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • builder

      static DeliveryItemBuilder builder()
      builder factory method for DeliveryItem
      Returns:
      builder
    • builder

      static DeliveryItemBuilder builder(DeliveryItem template)
      create builder for DeliveryItem instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withDeliveryItem

      default <T> T withDeliveryItem(Function<DeliveryItem,T> helper)
      accessor map function
      Type Parameters:
      T - mapped type
      Parameters:
      helper - function to map the object
      Returns:
      mapped value
    • typeReference

      static com.fasterxml.jackson.core.type.TypeReference<DeliveryItem> typeReference()
      gives a TypeReference for usage with Jackson DataBind
      Returns:
      TypeReference