Class CartSetCustomLineItemTaxAmountActionBuilder
- All Implemented Interfaces:
Builder<CartSetCustomLineItemTaxAmountAction>
Example to create an instance using the builder pattern
CartSetCustomLineItemTaxAmountAction cartSetCustomLineItemTaxAmountAction = CartSetCustomLineItemTaxAmountAction.builder()
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds CartSetCustomLineItemTaxAmountAction with checking for non-null required valuesbuilds CartSetCustomLineItemTaxAmountAction without checking for non-null required valuescustomLineItemId
(String customLineItemId) id
of the CustomLineItem to update.customLineItemKey
(String customLineItemKey) key
of the CustomLineItem to update.externalTaxAmount
(ExternalTaxAmountDraft externalTaxAmount) Value to set.Value to set.id
of the CustomLineItem to update.key
of the CustomLineItem to update.Value to set.key
of the ShippingMethod used for this Custom Line Item.of()
factory method for an instance of CartSetCustomLineItemTaxAmountActionBuilderof
(CartSetCustomLineItemTaxAmountAction template) create builder for CartSetCustomLineItemTaxAmountAction instanceshippingKey
(String shippingKey) key
of the ShippingMethod used for this Custom Line Item.Value to set.
-
Constructor Details
-
CartSetCustomLineItemTaxAmountActionBuilder
public CartSetCustomLineItemTaxAmountActionBuilder()
-
-
Method Details
-
customLineItemId
public CartSetCustomLineItemTaxAmountActionBuilder customLineItemId(@Nullable String customLineItemId) id
of the CustomLineItem to update. EithercustomLineItemId
orcustomLineItemKey
is required.- Parameters:
customLineItemId
- value to be set- Returns:
- Builder
-
customLineItemKey
public CartSetCustomLineItemTaxAmountActionBuilder customLineItemKey(@Nullable String customLineItemKey) key
of the CustomLineItem to update. EithercustomLineItemId
orcustomLineItemKey
is required.- Parameters:
customLineItemKey
- value to be set- Returns:
- Builder
-
externalTaxAmount
public CartSetCustomLineItemTaxAmountActionBuilder externalTaxAmount(Function<ExternalTaxAmountDraftBuilder, ExternalTaxAmountDraftBuilder> builder) Value to set. If empty, any existing value is removed.
- Parameters:
builder
- function to build the externalTaxAmount value- Returns:
- Builder
-
withExternalTaxAmount
public CartSetCustomLineItemTaxAmountActionBuilder withExternalTaxAmount(Function<ExternalTaxAmountDraftBuilder, ExternalTaxAmountDraft> builder) Value to set. If empty, any existing value is removed.
- Parameters:
builder
- function to build the externalTaxAmount value- Returns:
- Builder
-
externalTaxAmount
public CartSetCustomLineItemTaxAmountActionBuilder externalTaxAmount(@Nullable ExternalTaxAmountDraft externalTaxAmount) Value to set. If empty, any existing value is removed.
- Parameters:
externalTaxAmount
- value to be set- Returns:
- Builder
-
shippingKey
key
of the ShippingMethod used for this Custom Line Item. This is required for Carts withMultiple
ShippingMode.- Parameters:
shippingKey
- value to be set- 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
-
getExternalTaxAmount
Value to set. If empty, any existing value is removed.
- Returns:
- externalTaxAmount
-
getShippingKey
key
of the ShippingMethod used for this Custom Line Item. This is required for Carts withMultiple
ShippingMode.- Returns:
- shippingKey
-
build
builds CartSetCustomLineItemTaxAmountAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<CartSetCustomLineItemTaxAmountAction>
- Returns:
- CartSetCustomLineItemTaxAmountAction
-
buildUnchecked
builds CartSetCustomLineItemTaxAmountAction without checking for non-null required values- Returns:
- CartSetCustomLineItemTaxAmountAction
-
of
factory method for an instance of CartSetCustomLineItemTaxAmountActionBuilder- Returns:
- builder
-
of
public static CartSetCustomLineItemTaxAmountActionBuilder of(CartSetCustomLineItemTaxAmountAction template) create builder for CartSetCustomLineItemTaxAmountAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-