Interface CartApplyDeltaToLineItemShippingDetailsTargetsAction
- All Superinterfaces:
CartUpdateAction
,ResourceUpdateAction<CartUpdateAction>
To override the shipping details, see Set LineItem ShippingDetails.
Example to create an instance using the builder pattern
CartApplyDeltaToLineItemShippingDetailsTargetsAction cartApplyDeltaToLineItemShippingDetailsTargetsAction = CartApplyDeltaToLineItemShippingDetailsTargetsAction.builder()
.plusTargetsDelta(targetsDeltaBuilder -> targetsDeltaBuilder)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for CartApplyDeltaToLineItemShippingDetailsTargetsAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for CartApplyDeltaToLineItemShippingDetailsTargetsActioncreate builder for CartApplyDeltaToLineItemShippingDetailsTargetsAction instancefactory method to create a deep copy of CartApplyDeltaToLineItemShippingDetailsTargetsActionid
of the LineItem to update.key
of the LineItem to update.@NotNull @Valid List<ItemShippingTarget>
Using positive or negative quantities increases or decreases the number of items shipped to an address.of()
factory methodfactory method to create a shallow copy CartApplyDeltaToLineItemShippingDetailsTargetsActionvoid
setLineItemId
(String lineItemId) id
of the LineItem to update.void
setLineItemKey
(String lineItemKey) key
of the LineItem to update.void
setTargetsDelta
(ItemShippingTarget... targetsDelta) Using positive or negative quantities increases or decreases the number of items shipped to an address.void
setTargetsDelta
(List<ItemShippingTarget> targetsDelta) Using positive or negative quantities increases or decreases the number of items shipped to an address.static com.fasterxml.jackson.core.type.TypeReference<CartApplyDeltaToLineItemShippingDetailsTargetsAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withCartApplyDeltaToLineItemShippingDetailsTargetsAction
(Function<CartApplyDeltaToLineItemShippingDetailsTargetsAction, T> helper) 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
-
APPLY_DELTA_TO_LINE_ITEM_SHIPPING_DETAILS_TARGETS
discriminator value for CartApplyDeltaToLineItemShippingDetailsTargetsAction- 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
-
getTargetsDelta
Using positive or negative quantities increases or decreases the number of items shipped to an address.
- Returns:
- targetsDelta
-
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
-
setTargetsDelta
Using positive or negative quantities increases or decreases the number of items shipped to an address.
- Parameters:
targetsDelta
- values to be set
-
setTargetsDelta
Using positive or negative quantities increases or decreases the number of items shipped to an address.
- Parameters:
targetsDelta
- values to be set
-
of
factory method- Returns:
- instance of CartApplyDeltaToLineItemShippingDetailsTargetsAction
-
of
static CartApplyDeltaToLineItemShippingDetailsTargetsAction of(CartApplyDeltaToLineItemShippingDetailsTargetsAction template) factory method to create a shallow copy CartApplyDeltaToLineItemShippingDetailsTargetsAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static CartApplyDeltaToLineItemShippingDetailsTargetsAction deepCopy(@Nullable CartApplyDeltaToLineItemShippingDetailsTargetsAction template) factory method to create a deep copy of CartApplyDeltaToLineItemShippingDetailsTargetsAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for CartApplyDeltaToLineItemShippingDetailsTargetsAction- Returns:
- builder
-
builder
static CartApplyDeltaToLineItemShippingDetailsTargetsActionBuilder builder(CartApplyDeltaToLineItemShippingDetailsTargetsAction template) create builder for CartApplyDeltaToLineItemShippingDetailsTargetsAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withCartApplyDeltaToLineItemShippingDetailsTargetsAction
default <T> T withCartApplyDeltaToLineItemShippingDetailsTargetsAction(Function<CartApplyDeltaToLineItemShippingDetailsTargetsAction, 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<CartApplyDeltaToLineItemShippingDetailsTargetsAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-