Interface StagedOrderAddShoppingListAction
- All Superinterfaces:
ResourceUpdateAction<StagedOrderUpdateAction>
,StagedOrderUpdateAction
Adds all LineItems of a ShoppingList to the Cart.
Example to create an instance using the builder pattern
StagedOrderAddShoppingListAction stagedOrderAddShoppingListAction = StagedOrderAddShoppingListAction.builder()
.shoppingList(shoppingListBuilder -> shoppingListBuilder)
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
discriminator value for StagedOrderAddShoppingListAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for StagedOrderAddShoppingListActionbuilder
(StagedOrderAddShoppingListAction template) create builder for StagedOrderAddShoppingListAction instancedeepCopy
(StagedOrderAddShoppingListAction template) factory method to create a deep copy of StagedOrderAddShoppingListAction@Valid ChannelResourceIdentifier
distributionChannel
to set for all LineItems that are added to the Cart.@NotNull @Valid ShoppingListResourceIdentifier
Shopping List that contains the Line Items to be added.@Valid ChannelResourceIdentifier
supplyChannel
to set for all LineItems that are added to the Cart.of()
factory methodof
(StagedOrderAddShoppingListAction template) factory method to create a shallow copy StagedOrderAddShoppingListActionvoid
setDistributionChannel
(ChannelResourceIdentifier distributionChannel) distributionChannel
to set for all LineItems that are added to the Cart.void
setShoppingList
(ShoppingListResourceIdentifier shoppingList) Shopping List that contains the Line Items to be added.void
setSupplyChannel
(ChannelResourceIdentifier supplyChannel) supplyChannel
to set for all LineItems that are added to the Cart.static com.fasterxml.jackson.core.type.TypeReference<StagedOrderAddShoppingListAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
Methods inherited from interface com.commercetools.api.models.order.StagedOrderUpdateAction
getAction, withStagedOrderUpdateAction
-
Field Details
-
ADD_SHOPPING_LIST
discriminator value for StagedOrderAddShoppingListAction- See Also:
-
-
Method Details
-
getShoppingList
Shopping List that contains the Line Items to be added.
- Returns:
- shoppingList
-
getDistributionChannel
distributionChannel
to set for all LineItems that are added to the Cart. The Channel must have theProductDistribution
ChannelRoleEnum.- Returns:
- distributionChannel
-
getSupplyChannel
supplyChannel
to set for all LineItems that are added to the Cart. The Channel must have theInventorySupply
ChannelRoleEnum.- Returns:
- supplyChannel
-
setShoppingList
Shopping List that contains the Line Items to be added.
- Parameters:
shoppingList
- value to be set
-
setDistributionChannel
distributionChannel
to set for all LineItems that are added to the Cart. The Channel must have theProductDistribution
ChannelRoleEnum.- Parameters:
distributionChannel
- value to be set
-
setSupplyChannel
supplyChannel
to set for all LineItems that are added to the Cart. The Channel must have theInventorySupply
ChannelRoleEnum.- Parameters:
supplyChannel
- value to be set
-
of
factory method- Returns:
- instance of StagedOrderAddShoppingListAction
-
of
factory method to create a shallow copy StagedOrderAddShoppingListAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static StagedOrderAddShoppingListAction deepCopy(@Nullable StagedOrderAddShoppingListAction template) factory method to create a deep copy of StagedOrderAddShoppingListAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for StagedOrderAddShoppingListAction- Returns:
- builder
-
builder
create builder for StagedOrderAddShoppingListAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withStagedOrderAddShoppingListAction
default <T> T withStagedOrderAddShoppingListAction(Function<StagedOrderAddShoppingListAction, 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<StagedOrderAddShoppingListAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-