Interface CartApplyDeltaToCustomLineItemShippingDetailsTargetsAction
- All Superinterfaces:
CartUpdateAction
,ResourceUpdateAction<CartUpdateAction>
public interface CartApplyDeltaToCustomLineItemShippingDetailsTargetsAction
extends CartUpdateAction
CartApplyDeltaToCustomLineItemShippingDetailsTargetsAction
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
CartApplyDeltaToCustomLineItemShippingDetailsTargetsAction cartApplyDeltaToCustomLineItemShippingDetailsTargetsAction = CartApplyDeltaToCustomLineItemShippingDetailsTargetsAction.builder()
.plusTargetsDelta(targetsDeltaBuilder -> targetsDeltaBuilder)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for CartApplyDeltaToCustomLineItemShippingDetailsTargetsAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for CartApplyDeltaToCustomLineItemShippingDetailsTargetsActioncreate builder for CartApplyDeltaToCustomLineItemShippingDetailsTargetsAction instancefactory method to create a deep copy of CartApplyDeltaToCustomLineItemShippingDetailsTargetsActionid
of the CustomLineItem to update.key
of the CustomLineItem 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 CartApplyDeltaToCustomLineItemShippingDetailsTargetsActionvoid
setCustomLineItemId
(String customLineItemId) id
of the CustomLineItem to update.void
setCustomLineItemKey
(String customLineItemKey) key
of the CustomLineItem 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<CartApplyDeltaToCustomLineItemShippingDetailsTargetsAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withCartApplyDeltaToCustomLineItemShippingDetailsTargetsAction
(Function<CartApplyDeltaToCustomLineItemShippingDetailsTargetsAction, 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_CUSTOM_LINE_ITEM_SHIPPING_DETAILS_TARGETS
discriminator value for CartApplyDeltaToCustomLineItemShippingDetailsTargetsAction- See Also:
-
-
Method Details
-
getCustomLineItemId
String getCustomLineItemId()id
of the CustomLineItem to update. EithercustomLineItemId
orcustomLineItemKey
is required.- Returns:
- customLineItemId
-
getCustomLineItemKey
String getCustomLineItemKey()key
of the CustomLineItem to update. EithercustomLineItemId
orcustomLineItemKey
is required.- Returns:
- customLineItemKey
-
getTargetsDelta
Using positive or negative quantities increases or decreases the number of items shipped to an address.
- Returns:
- targetsDelta
-
setCustomLineItemId
id
of the CustomLineItem to update. EithercustomLineItemId
orcustomLineItemKey
is required.- Parameters:
customLineItemId
- value to be set
-
setCustomLineItemKey
key
of the CustomLineItem to update. EithercustomLineItemId
orcustomLineItemKey
is required.- Parameters:
customLineItemKey
- 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 CartApplyDeltaToCustomLineItemShippingDetailsTargetsAction
-
of
static CartApplyDeltaToCustomLineItemShippingDetailsTargetsAction of(CartApplyDeltaToCustomLineItemShippingDetailsTargetsAction template) factory method to create a shallow copy CartApplyDeltaToCustomLineItemShippingDetailsTargetsAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static CartApplyDeltaToCustomLineItemShippingDetailsTargetsAction deepCopy(@Nullable CartApplyDeltaToCustomLineItemShippingDetailsTargetsAction template) factory method to create a deep copy of CartApplyDeltaToCustomLineItemShippingDetailsTargetsAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for CartApplyDeltaToCustomLineItemShippingDetailsTargetsAction- Returns:
- builder
-
builder
static CartApplyDeltaToCustomLineItemShippingDetailsTargetsActionBuilder builder(CartApplyDeltaToCustomLineItemShippingDetailsTargetsAction template) create builder for CartApplyDeltaToCustomLineItemShippingDetailsTargetsAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withCartApplyDeltaToCustomLineItemShippingDetailsTargetsAction
default <T> T withCartApplyDeltaToCustomLineItemShippingDetailsTargetsAction(Function<CartApplyDeltaToCustomLineItemShippingDetailsTargetsAction, 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<CartApplyDeltaToCustomLineItemShippingDetailsTargetsAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-