Interface CartSetLineItemSupplyChannelAction
- All Superinterfaces:
CartUpdateAction
,ResourceUpdateAction<CartUpdateAction>
Performing this action has no impact on inventory that should be reserved.
Example to create an instance using the builder pattern
CartSetLineItemSupplyChannelAction cartSetLineItemSupplyChannelAction = CartSetLineItemSupplyChannelAction.builder()
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for CartSetLineItemSupplyChannelAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for CartSetLineItemSupplyChannelActionbuilder
(CartSetLineItemSupplyChannelAction template) create builder for CartSetLineItemSupplyChannelAction instancedeepCopy
(CartSetLineItemSupplyChannelAction template) factory method to create a deep copy of CartSetLineItemSupplyChannelActionid
of the LineItem to update.key
of the LineItem to update.@Valid ChannelResourceIdentifier
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
.of()
factory methodof
(CartSetLineItemSupplyChannelAction template) factory method to create a shallow copy CartSetLineItemSupplyChannelActionvoid
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
.static com.fasterxml.jackson.core.type.TypeReference<CartSetLineItemSupplyChannelAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.cart.CartUpdateAction
getAction, withCartUpdateAction
Methods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Field Details
-
SET_LINE_ITEM_SUPPLY_CHANNEL
discriminator value for CartSetLineItemSupplyChannelAction- See Also:
-
-
Method Details
-
getLineItemId
String getLineItemId()id
of the LineItem to update. EitherlineItemId
orlineItemKey
is required.- Returns:
- lineItemId
-
getLineItemKey
String getLineItemKey()key
of the LineItem to update. EitherlineItemId
orlineItemKey
is required.- 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.
- Returns:
- supplyChannel
- If present, a Reference to the Channel is set for the LineItem specified by
-
setLineItemId
id
of the LineItem to update. EitherlineItemId
orlineItemKey
is required.- Parameters:
lineItemId
- value to be set
-
setLineItemKey
key
of the LineItem to update. EitherlineItemId
orlineItemKey
is required.- Parameters:
lineItemKey
- value to be set
-
setSupplyChannel
- 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.
- Parameters:
supplyChannel
- value to be set
- If present, a Reference to the Channel is set for the LineItem specified by
-
of
factory method- Returns:
- instance of CartSetLineItemSupplyChannelAction
-
of
factory method to create a shallow copy CartSetLineItemSupplyChannelAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static CartSetLineItemSupplyChannelAction deepCopy(@Nullable CartSetLineItemSupplyChannelAction template) factory method to create a deep copy of CartSetLineItemSupplyChannelAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for CartSetLineItemSupplyChannelAction- Returns:
- builder
-
builder
static CartSetLineItemSupplyChannelActionBuilder builder(CartSetLineItemSupplyChannelAction template) create builder for CartSetLineItemSupplyChannelAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withCartSetLineItemSupplyChannelAction
default <T> T withCartSetLineItemSupplyChannelAction(Function<CartSetLineItemSupplyChannelAction, 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<CartSetLineItemSupplyChannelAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-