Interface ItemShippingDetailsDraft
- All Superinterfaces:
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 Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for ItemShippingDetailsDraftbuilder(ItemShippingDetailsDraft template) create builder for ItemShippingDetailsDraft instancecopyDeep()static ItemShippingDetailsDraftdeepCopy(ItemShippingDetailsDraft template) factory method to create a deep copy of ItemShippingDetailsDraft@NotNull @Valid List<ItemShippingTarget>Holds information on the quantity of Line Items or Custom Line Items and the address it is shipped.static ItemShippingDetailsDraftof()factory methodstatic ItemShippingDetailsDraftof(ItemShippingDetailsDraft template) factory method to create a shallow copy ItemShippingDetailsDraftvoidsetTargets(ItemShippingTarget... targets) Holds information on the quantity of Line Items or Custom Line Items and the address it is shipped.voidsetTargets(List<ItemShippingTarget> targets) Holds information on the quantity of Line Items or Custom Line Items and the address it is shipped.static com.fasterxml.jackson.core.type.TypeReference<ItemShippingDetailsDraft>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map function
-
Method Details
-
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
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
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
-
copyDeep
ItemShippingDetailsDraft copyDeep() -
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
accessor map function- Type Parameters:
T- mapped type- Parameters:
helper- function to map the object- Returns:
- mapped value
-
typeReference
gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-