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
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for CartApplyDeltaToLineItemShippingDetailsTargetsAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for CartApplyDeltaToLineItemShippingDetailsTargetsActioncreate builder for CartApplyDeltaToLineItemShippingDetailsTargetsAction instancecopyDeep()factory method to create a deep copy of CartApplyDeltaToLineItemShippingDetailsTargetsActionidof the LineItem to update.keyof 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 CartApplyDeltaToLineItemShippingDetailsTargetsActionvoidsetLineItemId(String lineItemId) idof the LineItem to update.voidsetLineItemKey(String lineItemKey) keyof the LineItem to update.voidsetTargetsDelta(ItemShippingTarget... targetsDelta) Using positive or negative quantities increases or decreases the number of items shipped to an address.voidsetTargetsDelta(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> TwithCartApplyDeltaToLineItemShippingDetailsTargetsAction(Function<CartApplyDeltaToLineItemShippingDetailsTargetsAction, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.cart.CartUpdateAction
getAction, withCartUpdateActionMethods 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()idof the LineItem to update. EitherlineItemIdorlineItemKeyis required.- Returns:
- lineItemId
-
getLineItemKey
String getLineItemKey()keyof the LineItem to update. EitherlineItemIdorlineItemKeyis required.- Returns:
- lineItemKey
-
getTargetsDelta
Using positive or negative quantities increases or decreases the number of items shipped to an address.
- Returns:
- targetsDelta
-
setLineItemId
idof the LineItem to update. EitherlineItemIdorlineItemKeyis required.- Parameters:
lineItemId- value to be set
-
setLineItemKey
keyof the LineItem to update. EitherlineItemIdorlineItemKeyis 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
-
copyDeep
- Specified by:
copyDeepin interfaceCartUpdateAction
-
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
-