Package com.commercetools.api.models.me
Class MyCartSetLineItemSupplyChannelActionImpl
java.lang.Object
com.commercetools.api.models.me.MyCartSetLineItemSupplyChannelActionImpl
- All Implemented Interfaces:
MyCartSetLineItemSupplyChannelAction
,MyCartUpdateAction
,ResourceUpdateAction<MyCartUpdateAction>
,io.vrap.rmf.base.client.ModelBase
public class MyCartSetLineItemSupplyChannelActionImpl
extends Object
implements MyCartSetLineItemSupplyChannelAction, 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.me.MyCartSetLineItemSupplyChannelAction
SET_LINE_ITEM_SUPPLY_CHANNEL
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
id
of the LineItem to update.key
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
setLineItemKey
(String lineItemKey) key
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 io.vrap.rmf.base.client.ModelBase
reflectionString, reflectionString
Methods inherited from interface com.commercetools.api.models.me.MyCartSetLineItemSupplyChannelAction
withMyCartSetLineItemSupplyChannelAction
Methods inherited from interface com.commercetools.api.models.me.MyCartUpdateAction
withMyCartUpdateAction
Methods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Constructor Details
-
MyCartSetLineItemSupplyChannelActionImpl
create empty instance
-
-
Method Details
-
getAction
- Specified by:
getAction
in interfaceMyCartUpdateAction
- Specified by:
getAction
in interfaceResourceUpdateAction<MyCartUpdateAction>
- Returns:
- action
-
getLineItemId
id
of the LineItem to update. EitherlineItemId
orlineItemKey
is required.- Specified by:
getLineItemId
in interfaceMyCartSetLineItemSupplyChannelAction
- Returns:
- lineItemId
-
getLineItemKey
key
of the LineItem to update. EitherlineItemId
orlineItemKey
is required.- Specified by:
getLineItemKey
in interfaceMyCartSetLineItemSupplyChannelAction
- Returns:
- lineItemKey
-
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 interfaceMyCartSetLineItemSupplyChannelAction
- Returns:
- supplyChannel
- If present, a Reference to the Channel is set for the LineItem specified by
-
setLineItemId
Description copied from interface:MyCartSetLineItemSupplyChannelAction
id
of the LineItem to update. EitherlineItemId
orlineItemKey
is required.- Specified by:
setLineItemId
in interfaceMyCartSetLineItemSupplyChannelAction
- Parameters:
lineItemId
- value to be set
-
setLineItemKey
Description copied from interface:MyCartSetLineItemSupplyChannelAction
key
of the LineItem to update. EitherlineItemId
orlineItemKey
is required.- Specified by:
setLineItemKey
in interfaceMyCartSetLineItemSupplyChannelAction
- Parameters:
lineItemKey
- value to be set
-
setSupplyChannel
Description copied from interface:MyCartSetLineItemSupplyChannelAction
- 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 interfaceMyCartSetLineItemSupplyChannelAction
- Parameters:
supplyChannel
- value to be set
- If present, a Reference to the Channel is set for the LineItem specified by
-
equals
-
hashCode
-