Class StagedOrderSetCustomLineItemTaxRateActionBuilder
- All Implemented Interfaces:
Builder<StagedOrderSetCustomLineItemTaxRateAction>
Example to create an instance using the builder pattern
StagedOrderSetCustomLineItemTaxRateAction stagedOrderSetCustomLineItemTaxRateAction = StagedOrderSetCustomLineItemTaxRateAction.builder()
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()builds StagedOrderSetCustomLineItemTaxRateAction with checking for non-null required valuesbuilds StagedOrderSetCustomLineItemTaxRateAction 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 StagedOrderSetCustomLineItemTaxRateActionBuilderof(StagedOrderSetCustomLineItemTaxRateAction template) create builder for StagedOrderSetCustomLineItemTaxRateAction instanceshippingKey(String shippingKey) keyof the ShippingMethod used for this Custom Line Item.Value to set.
-
Constructor Details
-
StagedOrderSetCustomLineItemTaxRateActionBuilder
public StagedOrderSetCustomLineItemTaxRateActionBuilder()
-
-
Method Details
-
customLineItemId
public StagedOrderSetCustomLineItemTaxRateActionBuilder customLineItemId(@Nullable String customLineItemId) idof the CustomLineItem to update. EithercustomLineItemIdorcustomLineItemKeyis required.- Parameters:
customLineItemId- value to be set- Returns:
- Builder
-
customLineItemKey
public StagedOrderSetCustomLineItemTaxRateActionBuilder customLineItemKey(@Nullable String customLineItemKey) keyof the CustomLineItem to update. EithercustomLineItemIdorcustomLineItemKeyis required.- Parameters:
customLineItemKey- value to be set- Returns:
- Builder
-
externalTaxRate
public StagedOrderSetCustomLineItemTaxRateActionBuilder 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 StagedOrderSetCustomLineItemTaxRateActionBuilder 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 StagedOrderSetCustomLineItemTaxRateActionBuilder 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 StagedOrderSetCustomLineItemTaxRateAction with checking for non-null required values- Specified by:
buildin interfaceBuilder<StagedOrderSetCustomLineItemTaxRateAction>- Returns:
- StagedOrderSetCustomLineItemTaxRateAction
-
buildUnchecked
builds StagedOrderSetCustomLineItemTaxRateAction without checking for non-null required values- Returns:
- StagedOrderSetCustomLineItemTaxRateAction
-
of
factory method for an instance of StagedOrderSetCustomLineItemTaxRateActionBuilder- Returns:
- builder
-
of
public static StagedOrderSetCustomLineItemTaxRateActionBuilder of(StagedOrderSetCustomLineItemTaxRateAction template) create builder for StagedOrderSetCustomLineItemTaxRateAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-