Package com.commercetools.api.models.me
Interface MyCartApplyDeltaToLineItemShippingDetailsTargetsAction
- All Superinterfaces:
MyCartUpdateAction,ResourceUpdateAction<MyCartUpdateAction>
To override the shipping details, see Set LineItem ShippingDetails.
Example to create an instance using the builder pattern
MyCartApplyDeltaToLineItemShippingDetailsTargetsAction myCartApplyDeltaToLineItemShippingDetailsTargetsAction = MyCartApplyDeltaToLineItemShippingDetailsTargetsAction.builder()
.plusTargetsDelta(targetsDeltaBuilder -> targetsDeltaBuilder)
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for MyCartApplyDeltaToLineItemShippingDetailsTargetsAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for MyCartApplyDeltaToLineItemShippingDetailsTargetsActioncreate builder for MyCartApplyDeltaToLineItemShippingDetailsTargetsAction instancecopyDeep()factory method to create a deep copy of MyCartApplyDeltaToLineItemShippingDetailsTargetsActionidof 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 MyCartApplyDeltaToLineItemShippingDetailsTargetsActionvoidsetLineItemId(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<MyCartApplyDeltaToLineItemShippingDetailsTargetsAction>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithMyCartApplyDeltaToLineItemShippingDetailsTargetsAction(Function<MyCartApplyDeltaToLineItemShippingDetailsTargetsAction, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.me.MyCartUpdateAction
getAction, withMyCartUpdateActionMethods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Field Details
-
APPLY_DELTA_TO_LINE_ITEM_SHIPPING_DETAILS_TARGETS
discriminator value for MyCartApplyDeltaToLineItemShippingDetailsTargetsAction- 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 MyCartApplyDeltaToLineItemShippingDetailsTargetsAction
-
of
static MyCartApplyDeltaToLineItemShippingDetailsTargetsAction of(MyCartApplyDeltaToLineItemShippingDetailsTargetsAction template) factory method to create a shallow copy MyCartApplyDeltaToLineItemShippingDetailsTargetsAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
- Specified by:
copyDeepin interfaceMyCartUpdateAction
-
deepCopy
@Nullable static MyCartApplyDeltaToLineItemShippingDetailsTargetsAction deepCopy(@Nullable MyCartApplyDeltaToLineItemShippingDetailsTargetsAction template) factory method to create a deep copy of MyCartApplyDeltaToLineItemShippingDetailsTargetsAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for MyCartApplyDeltaToLineItemShippingDetailsTargetsAction- Returns:
- builder
-
builder
static MyCartApplyDeltaToLineItemShippingDetailsTargetsActionBuilder builder(MyCartApplyDeltaToLineItemShippingDetailsTargetsAction template) create builder for MyCartApplyDeltaToLineItemShippingDetailsTargetsAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withMyCartApplyDeltaToLineItemShippingDetailsTargetsAction
default <T> T withMyCartApplyDeltaToLineItemShippingDetailsTargetsAction(Function<MyCartApplyDeltaToLineItemShippingDetailsTargetsAction, 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<MyCartApplyDeltaToLineItemShippingDetailsTargetsAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-