Class CartSetCustomLineItemTaxAmountActionBuilder
- All Implemented Interfaces:
Builder<CartSetCustomLineItemTaxAmountAction>
Example to create an instance using the builder pattern
CartSetCustomLineItemTaxAmountAction cartSetCustomLineItemTaxAmountAction = CartSetCustomLineItemTaxAmountAction.builder()
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()builds CartSetCustomLineItemTaxAmountAction with checking for non-null required valuesbuilds CartSetCustomLineItemTaxAmountAction without checking for non-null required valuescustomLineItemId(String customLineItemId) idof the CustomLineItem to update.customLineItemKey(String customLineItemKey) keyof the CustomLineItem to update.externalTaxAmount(ExternalTaxAmountDraft externalTaxAmount) Value to set.Value to set.idof the CustomLineItem to update.keyof the CustomLineItem to update.Value to set.keyof 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) keyof 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) idof the CustomLineItem to update. EithercustomLineItemIdorcustomLineItemKeyis required.- Parameters:
customLineItemId- value to be set- Returns:
- Builder
-
customLineItemKey
public CartSetCustomLineItemTaxAmountActionBuilder customLineItemKey(@Nullable String customLineItemKey) keyof the CustomLineItem to update. EithercustomLineItemIdorcustomLineItemKeyis 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
keyof the ShippingMethod used for this Custom Line Item. This is required for Carts withMultipleShippingMode.- Parameters:
shippingKey- value to be set- Returns:
- Builder
-
getCustomLineItemId
idof the CustomLineItem to update. EithercustomLineItemIdorcustomLineItemKeyis required.- Returns:
- customLineItemId
-
getCustomLineItemKey
keyof the CustomLineItem to update. EithercustomLineItemIdorcustomLineItemKeyis required.- Returns:
- customLineItemKey
-
getExternalTaxAmount
Value to set. If empty, any existing value is removed.
- Returns:
- externalTaxAmount
-
getShippingKey
keyof the ShippingMethod used for this Custom Line Item. This is required for Carts withMultipleShippingMode.- Returns:
- shippingKey
-
build
builds CartSetCustomLineItemTaxAmountAction with checking for non-null required values- Specified by:
buildin 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
-