Class CartAddShoppingListActionImpl
java.lang.Object
com.commercetools.api.models.cart.CartAddShoppingListActionImpl
- All Implemented Interfaces:
CartAddShoppingListAction
,CartUpdateAction
,ResourceUpdateAction<CartUpdateAction>
,io.vrap.rmf.base.client.ModelBase
public class CartAddShoppingListActionImpl
extends Object
implements CartAddShoppingListAction, 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.cart.CartAddShoppingListAction
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 com.commercetools.api.models.cart.CartAddShoppingListAction
withCartAddShoppingListAction
Methods inherited from interface com.commercetools.api.models.cart.CartUpdateAction
withCartUpdateAction
Methods inherited from interface io.vrap.rmf.base.client.ModelBase
reflectionString, reflectionString
Methods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Constructor Details
-
CartAddShoppingListActionImpl
public CartAddShoppingListActionImpl()create empty instance
-
-
Method Details
-
getAction
- Specified by:
getAction
in interfaceCartUpdateAction
- Specified by:
getAction
in interfaceResourceUpdateAction<CartUpdateAction>
- Returns:
- action
-
getShoppingList
Shopping List that contains the Line Items to be added.
- Specified by:
getShoppingList
in interfaceCartAddShoppingListAction
- 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 interfaceCartAddShoppingListAction
- 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 interfaceCartAddShoppingListAction
- Returns:
- supplyChannel
-
setShoppingList
Description copied from interface:CartAddShoppingListAction
Shopping List that contains the Line Items to be added.
- Specified by:
setShoppingList
in interfaceCartAddShoppingListAction
- Parameters:
shoppingList
- value to be set
-
setDistributionChannel
Description copied from interface:CartAddShoppingListAction
distributionChannel
to set for all LineItems that are added to the Cart. The Channel must have theProductDistribution
ChannelRoleEnum.- Specified by:
setDistributionChannel
in interfaceCartAddShoppingListAction
- Parameters:
distributionChannel
- value to be set
-
setSupplyChannel
Description copied from interface:CartAddShoppingListAction
supplyChannel
to set for all LineItems that are added to the Cart. The Channel must have theInventorySupply
ChannelRoleEnum.- Specified by:
setSupplyChannel
in interfaceCartAddShoppingListAction
- Parameters:
supplyChannel
- value to be set
-
equals
-
hashCode
public int hashCode()
-