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
Constructors -
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) idof the CustomLineItem to update.customLineItemKey(String customLineItemKey) keyof the CustomLineItem to update.idof the CustomLineItem to update.keyof 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) idof the CustomLineItem to update. EithercustomLineItemIdorcustomLineItemKeyis required.- Parameters:
customLineItemId- value to be set- Returns:
- Builder
-
customLineItemKey
public CartApplyDeltaToCustomLineItemShippingDetailsTargetsActionBuilder customLineItemKey(@Nullable String customLineItemKey) keyof the CustomLineItem to update. EithercustomLineItemIdorcustomLineItemKeyis 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
idof the CustomLineItem to update. EithercustomLineItemIdorcustomLineItemKeyis required.- Returns:
- customLineItemId
-
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
-
build
builds CartApplyDeltaToCustomLineItemShippingDetailsTargetsAction with checking for non-null required values- Specified by:
buildin 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
-