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
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for CartApplyDeltaToCustomLineItemShippingDetailsTargetsAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for CartApplyDeltaToCustomLineItemShippingDetailsTargetsActioncreate builder for CartApplyDeltaToCustomLineItemShippingDetailsTargetsAction instancecopyDeep()factory method to create a deep copy of CartApplyDeltaToCustomLineItemShippingDetailsTargetsActionidof the CustomLineItem to update.keyof 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 CartApplyDeltaToCustomLineItemShippingDetailsTargetsActionvoidsetCustomLineItemId(String customLineItemId) idof the CustomLineItem to update.voidsetCustomLineItemKey(String customLineItemKey) keyof the CustomLineItem 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<CartApplyDeltaToCustomLineItemShippingDetailsTargetsAction>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithCartApplyDeltaToCustomLineItemShippingDetailsTargetsAction(Function<CartApplyDeltaToCustomLineItemShippingDetailsTargetsAction, 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_CUSTOM_LINE_ITEM_SHIPPING_DETAILS_TARGETS
discriminator value for CartApplyDeltaToCustomLineItemShippingDetailsTargetsAction- See Also:
-
-
Method Details
-
getCustomLineItemId
String getCustomLineItemId()idof the CustomLineItem to update. EithercustomLineItemIdorcustomLineItemKeyis required.- Returns:
- customLineItemId
-
getCustomLineItemKey
String getCustomLineItemKey()keyof the CustomLineItem to update. EithercustomLineItemIdorcustomLineItemKeyis required.- Returns:
- customLineItemKey
-
getTargetsDelta
Using positive or negative quantities increases or decreases the number of items shipped to an address.
- Returns:
- targetsDelta
-
setCustomLineItemId
idof the CustomLineItem to update. EithercustomLineItemIdorcustomLineItemKeyis required.- Parameters:
customLineItemId- value to be set
-
setCustomLineItemKey
keyof the CustomLineItem to update. EithercustomLineItemIdorcustomLineItemKeyis 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
-
copyDeep
- Specified by:
copyDeepin interfaceCartUpdateAction
-
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
-