Class CartSetLineItemSupplyChannelActionImpl
java.lang.Object
com.commercetools.api.models.cart.CartSetLineItemSupplyChannelActionImpl
- All Implemented Interfaces:
CartSetLineItemSupplyChannelAction
,CartUpdateAction
,ResourceUpdateAction<CartUpdateAction>
,io.vrap.rmf.base.client.ModelBase
public class CartSetLineItemSupplyChannelActionImpl
extends Object
implements CartSetLineItemSupplyChannelAction, io.vrap.rmf.base.client.ModelBase
Performing this action has no impact on inventory that should be reserved.
-
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.CartSetLineItemSupplyChannelAction
SET_LINE_ITEM_SUPPLY_CHANNEL
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
id
of the LineItem to update.If present, a Reference to the Channel is set for the LineItem specified bylineItemId
. If not present, the current Reference to a supply channel will be removed from the LineItem specified bylineItemId
.int
hashCode()
void
setLineItemId
(String lineItemId) id
of the LineItem to update.void
setSupplyChannel
(ChannelResourceIdentifier supplyChannel) If present, a Reference to the Channel is set for the LineItem specified bylineItemId
. If not present, the current Reference to a supply channel will be removed from the LineItem specified bylineItemId
.Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.commercetools.api.models.cart.CartSetLineItemSupplyChannelAction
withCartSetLineItemSupplyChannelAction
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
-
CartSetLineItemSupplyChannelActionImpl
create empty instance
-
-
Method Details
-
getAction
- Specified by:
getAction
in interfaceCartUpdateAction
- Specified by:
getAction
in interfaceResourceUpdateAction<CartUpdateAction>
- Returns:
- action
-
getLineItemId
id
of the LineItem to update.- Specified by:
getLineItemId
in interfaceCartSetLineItemSupplyChannelAction
- Returns:
- lineItemId
-
getSupplyChannel
- If present, a Reference to the Channel is set for the LineItem specified by
lineItemId
. - If not present, the current Reference to a supply channel will be removed from the LineItem specified by
lineItemId
. The Channel must have theInventorySupply
ChannelRoleEnum.
- Specified by:
getSupplyChannel
in interfaceCartSetLineItemSupplyChannelAction
- Returns:
- supplyChannel
- If present, a Reference to the Channel is set for the LineItem specified by
-
setLineItemId
Description copied from interface:CartSetLineItemSupplyChannelAction
id
of the LineItem to update.- Specified by:
setLineItemId
in interfaceCartSetLineItemSupplyChannelAction
- Parameters:
lineItemId
- value to be set
-
setSupplyChannel
Description copied from interface:CartSetLineItemSupplyChannelAction
- If present, a Reference to the Channel is set for the LineItem specified by
lineItemId
. - If not present, the current Reference to a supply channel will be removed from the LineItem specified by
lineItemId
. The Channel must have theInventorySupply
ChannelRoleEnum.
- Specified by:
setSupplyChannel
in interfaceCartSetLineItemSupplyChannelAction
- Parameters:
supplyChannel
- value to be set
- If present, a Reference to the Channel is set for the LineItem specified by
-
equals
-
hashCode
-