Interface ItemShippingDetailsDraft

All Superinterfaces:
Draft<ItemShippingDetailsDraft>

public interface ItemShippingDetailsDraft extends Draft<ItemShippingDetailsDraft>

For order creation and updates, the sum of the targets must match the quantity of the Line Items or Custom Line Items.


Example to create an instance using the builder pattern

     ItemShippingDetailsDraft itemShippingDetailsDraft = ItemShippingDetailsDraft.builder()
             .plusTargets(targetsBuilder -> targetsBuilder)
             .build()
 
  • Method Details

    • getTargets

      @NotNull @Valid @NotNull @Valid List<ItemShippingTarget> getTargets()

      Holds information on the quantity of Line Items or Custom Line Items and the address it is shipped.

      If multiple shipping addresses are present for a Line Item or Custom Line Item, sub-quantities must be specified.

      Returns:
      targets
    • setTargets

      void setTargets(ItemShippingTarget... targets)

      Holds information on the quantity of Line Items or Custom Line Items and the address it is shipped.

      If multiple shipping addresses are present for a Line Item or Custom Line Item, sub-quantities must be specified.

      Parameters:
      targets - values to be set
    • setTargets

      void setTargets(List<ItemShippingTarget> targets)

      Holds information on the quantity of Line Items or Custom Line Items and the address it is shipped.

      If multiple shipping addresses are present for a Line Item or Custom Line Item, sub-quantities must be specified.

      Parameters:
      targets - values to be set
    • of

      factory method
      Returns:
      instance of ItemShippingDetailsDraft
    • of

      factory method to create a shallow copy ItemShippingDetailsDraft
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • deepCopy

      factory method to create a deep copy of ItemShippingDetailsDraft
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • builder

      builder factory method for ItemShippingDetailsDraft
      Returns:
      builder
    • builder

      create builder for ItemShippingDetailsDraft instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withItemShippingDetailsDraft

      default <T> T withItemShippingDetailsDraft(Function<ItemShippingDetailsDraft,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<ItemShippingDetailsDraft> typeReference()
      gives a TypeReference for usage with Jackson DataBind
      Returns:
      TypeReference