Class StagedOrderAddShoppingListActionImpl
java.lang.Object
com.commercetools.api.models.order_edit.StagedOrderAddShoppingListActionImpl
- All Implemented Interfaces:
StagedOrderAddShoppingListAction
,StagedOrderUpdateAction
,ResourceUpdateAction<StagedOrderUpdateAction>
,io.vrap.rmf.base.client.ModelBase
public class StagedOrderAddShoppingListActionImpl
extends Object
implements StagedOrderAddShoppingListAction, io.vrap.rmf.base.client.ModelBase
Adds all LineItems of a ShoppingList to the Cart.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.vrap.rmf.base.client.ModelBase
io.vrap.rmf.base.client.ModelBase.FilteredRecursiveToStringStyle
-
Field Summary
Fields inherited from interface com.commercetools.api.models.order_edit.StagedOrderAddShoppingListAction
ADD_SHOPPING_LIST
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
distributionChannel
to set for all LineItems that are added to the Cart.Shopping List that contains the Line Items to be added.supplyChannel
to set for all LineItems that are added to the Cart.int
hashCode()
void
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.Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.vrap.rmf.base.client.ModelBase
reflectionString, reflectionString
Methods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
Methods inherited from interface com.commercetools.api.models.order_edit.StagedOrderAddShoppingListAction
withStagedOrderAddShoppingListAction
Methods inherited from interface com.commercetools.api.models.order.StagedOrderUpdateAction
withStagedOrderUpdateAction
-
Constructor Details
-
StagedOrderAddShoppingListActionImpl
public StagedOrderAddShoppingListActionImpl()create empty instance
-
-
Method Details
-
getAction
- Specified by:
getAction
in interfaceResourceUpdateAction<StagedOrderUpdateAction>
- Specified by:
getAction
in interfaceStagedOrderUpdateAction
- Returns:
- action
-
getShoppingList
Shopping List that contains the Line Items to be added.
- Specified by:
getShoppingList
in interfaceStagedOrderAddShoppingListAction
- Returns:
- shoppingList
-
getDistributionChannel
distributionChannel
to set for all LineItems that are added to the Cart. The Channel must have theProductDistribution
ChannelRoleEnum.- Specified by:
getDistributionChannel
in interfaceStagedOrderAddShoppingListAction
- Returns:
- distributionChannel
-
getSupplyChannel
supplyChannel
to set for all LineItems that are added to the Cart. The Channel must have theInventorySupply
ChannelRoleEnum.- Specified by:
getSupplyChannel
in interfaceStagedOrderAddShoppingListAction
- Returns:
- supplyChannel
-
setShoppingList
Description copied from interface:StagedOrderAddShoppingListAction
Shopping List that contains the Line Items to be added.
- Specified by:
setShoppingList
in interfaceStagedOrderAddShoppingListAction
- Parameters:
shoppingList
- value to be set
-
setDistributionChannel
Description copied from interface:StagedOrderAddShoppingListAction
distributionChannel
to set for all LineItems that are added to the Cart. The Channel must have theProductDistribution
ChannelRoleEnum.- Specified by:
setDistributionChannel
in interfaceStagedOrderAddShoppingListAction
- Parameters:
distributionChannel
- value to be set
-
setSupplyChannel
Description copied from interface:StagedOrderAddShoppingListAction
supplyChannel
to set for all LineItems that are added to the Cart. The Channel must have theInventorySupply
ChannelRoleEnum.- Specified by:
setSupplyChannel
in interfaceStagedOrderAddShoppingListAction
- Parameters:
supplyChannel
- value to be set
-
equals
-
hashCode
public int hashCode()
-