Package com.commercetools.api.models.me
Interface MyCartApplyDeltaToLineItemShippingDetailsTargetsAction
- All Superinterfaces:
MyCartUpdateAction
,ResourceUpdateAction<MyCartUpdateAction>
- All Known Implementing Classes:
MyCartApplyDeltaToLineItemShippingDetailsTargetsActionImpl
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
Modifier and TypeFieldDescriptionstatic final String
discriminator value for MyCartApplyDeltaToLineItemShippingDetailsTargetsAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for MyCartApplyDeltaToLineItemShippingDetailsTargetsActioncreate builder for MyCartApplyDeltaToLineItemShippingDetailsTargetsAction instancefactory method to create a deep copy of MyCartApplyDeltaToLineItemShippingDetailsTargetsActionid
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 MyCartApplyDeltaToLineItemShippingDetailsTargetsActionvoid
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<MyCartApplyDeltaToLineItemShippingDetailsTargetsAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withMyCartApplyDeltaToLineItemShippingDetailsTargetsAction
(Function<MyCartApplyDeltaToLineItemShippingDetailsTargetsAction, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.me.MyCartUpdateAction
getAction, withMyCartUpdateAction
Methods 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()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 MyCartApplyDeltaToLineItemShippingDetailsTargetsAction
-
of
static MyCartApplyDeltaToLineItemShippingDetailsTargetsAction of(MyCartApplyDeltaToLineItemShippingDetailsTargetsAction template) factory method to create a shallow copy MyCartApplyDeltaToLineItemShippingDetailsTargetsAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
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
-