Class CartApplyDeltaToCustomLineItemShippingDetailsTargetsActionBuilder
- All Implemented Interfaces:
Builder<CartApplyDeltaToCustomLineItemShippingDetailsTargetsAction>
Example to create an instance using the builder pattern
CartApplyDeltaToCustomLineItemShippingDetailsTargetsAction cartApplyDeltaToCustomLineItemShippingDetailsTargetsAction = CartApplyDeltaToCustomLineItemShippingDetailsTargetsAction.builder()
.plusTargetsDelta(targetsDeltaBuilder -> targetsDeltaBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionUsing positive or negative quantities increases or decreases the number of items shipped to an address.build()
builds CartApplyDeltaToCustomLineItemShippingDetailsTargetsAction with checking for non-null required valuesbuilds CartApplyDeltaToCustomLineItemShippingDetailsTargetsAction without checking for non-null required valuescustomLineItemId
(String customLineItemId) id
of the CustomLineItem to update.customLineItemKey
(String customLineItemKey) key
of the CustomLineItem to update.id
of the CustomLineItem to update.key
of the CustomLineItem to update.Using positive or negative quantities increases or decreases the number of items shipped to an address.of()
factory method for an instance of CartApplyDeltaToCustomLineItemShippingDetailsTargetsActionBuildercreate builder for CartApplyDeltaToCustomLineItemShippingDetailsTargetsAction instanceplusTargetsDelta
(ItemShippingTarget... targetsDelta) Using positive or negative quantities increases or decreases the number of items shipped to an address.Using positive or negative quantities increases or decreases the number of items shipped to an address.Using positive or negative quantities increases or decreases the number of items shipped to an address.targetsDelta
(ItemShippingTarget... targetsDelta) Using positive or negative quantities increases or decreases the number of items shipped to an address.targetsDelta
(List<ItemShippingTarget> targetsDelta) Using positive or negative quantities increases or decreases the number of items shipped to an address.Using positive or negative quantities increases or decreases the number of items shipped to an address.
-
Constructor Details
-
CartApplyDeltaToCustomLineItemShippingDetailsTargetsActionBuilder
public CartApplyDeltaToCustomLineItemShippingDetailsTargetsActionBuilder()
-
-
Method Details
-
customLineItemId
public CartApplyDeltaToCustomLineItemShippingDetailsTargetsActionBuilder customLineItemId(@Nullable String customLineItemId) id
of the CustomLineItem to update. EithercustomLineItemId
orcustomLineItemKey
is required.- Parameters:
customLineItemId
- value to be set- Returns:
- Builder
-
customLineItemKey
public CartApplyDeltaToCustomLineItemShippingDetailsTargetsActionBuilder customLineItemKey(@Nullable String customLineItemKey) key
of the CustomLineItem to update. EithercustomLineItemId
orcustomLineItemKey
is required.- Parameters:
customLineItemKey
- value to be set- Returns:
- Builder
-
targetsDelta
public CartApplyDeltaToCustomLineItemShippingDetailsTargetsActionBuilder targetsDelta(ItemShippingTarget... targetsDelta) Using positive or negative quantities increases or decreases the number of items shipped to an address.
- Parameters:
targetsDelta
- value to be set- Returns:
- Builder
-
targetsDelta
public CartApplyDeltaToCustomLineItemShippingDetailsTargetsActionBuilder targetsDelta(List<ItemShippingTarget> targetsDelta) Using positive or negative quantities increases or decreases the number of items shipped to an address.
- Parameters:
targetsDelta
- value to be set- Returns:
- Builder
-
plusTargetsDelta
public CartApplyDeltaToCustomLineItemShippingDetailsTargetsActionBuilder plusTargetsDelta(ItemShippingTarget... targetsDelta) Using positive or negative quantities increases or decreases the number of items shipped to an address.
- Parameters:
targetsDelta
- value to be set- Returns:
- Builder
-
plusTargetsDelta
public CartApplyDeltaToCustomLineItemShippingDetailsTargetsActionBuilder plusTargetsDelta(Function<ItemShippingTargetBuilder, ItemShippingTargetBuilder> builder) Using positive or negative quantities increases or decreases the number of items shipped to an address.
- Parameters:
builder
- function to build the targetsDelta value- Returns:
- Builder
-
withTargetsDelta
public CartApplyDeltaToCustomLineItemShippingDetailsTargetsActionBuilder withTargetsDelta(Function<ItemShippingTargetBuilder, ItemShippingTargetBuilder> builder) Using positive or negative quantities increases or decreases the number of items shipped to an address.
- Parameters:
builder
- function to build the targetsDelta value- Returns:
- Builder
-
addTargetsDelta
public CartApplyDeltaToCustomLineItemShippingDetailsTargetsActionBuilder addTargetsDelta(Function<ItemShippingTargetBuilder, ItemShippingTarget> builder) Using positive or negative quantities increases or decreases the number of items shipped to an address.
- Parameters:
builder
- function to build the targetsDelta value- Returns:
- Builder
-
setTargetsDelta
public CartApplyDeltaToCustomLineItemShippingDetailsTargetsActionBuilder setTargetsDelta(Function<ItemShippingTargetBuilder, ItemShippingTarget> builder) Using positive or negative quantities increases or decreases the number of items shipped to an address.
- Parameters:
builder
- function to build the targetsDelta value- Returns:
- Builder
-
getCustomLineItemId
id
of the CustomLineItem to update. EithercustomLineItemId
orcustomLineItemKey
is required.- Returns:
- customLineItemId
-
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
-
build
builds CartApplyDeltaToCustomLineItemShippingDetailsTargetsAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<CartApplyDeltaToCustomLineItemShippingDetailsTargetsAction>
- Returns:
- CartApplyDeltaToCustomLineItemShippingDetailsTargetsAction
-
buildUnchecked
builds CartApplyDeltaToCustomLineItemShippingDetailsTargetsAction without checking for non-null required values- Returns:
- CartApplyDeltaToCustomLineItemShippingDetailsTargetsAction
-
of
factory method for an instance of CartApplyDeltaToCustomLineItemShippingDetailsTargetsActionBuilder- Returns:
- builder
-
of
public static CartApplyDeltaToCustomLineItemShippingDetailsTargetsActionBuilder of(CartApplyDeltaToCustomLineItemShippingDetailsTargetsAction template) create builder for CartApplyDeltaToCustomLineItemShippingDetailsTargetsAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-