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