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