Class StagedOrderSetCustomLineItemTaxRateActionBuilder
- All Implemented Interfaces:
Builder<StagedOrderSetCustomLineItemTaxRateAction>
Example to create an instance using the builder pattern
StagedOrderSetCustomLineItemTaxRateAction stagedOrderSetCustomLineItemTaxRateAction = StagedOrderSetCustomLineItemTaxRateAction.builder()
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds StagedOrderSetCustomLineItemTaxRateAction with checking for non-null required valuesbuilds StagedOrderSetCustomLineItemTaxRateAction 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 StagedOrderSetCustomLineItemTaxRateActionBuilderof
(StagedOrderSetCustomLineItemTaxRateAction template) create builder for StagedOrderSetCustomLineItemTaxRateAction instanceshippingKey
(String shippingKey) key
of 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) id
of the CustomLineItem to update. EithercustomLineItemId
orcustomLineItemKey
is required.- Parameters:
customLineItemId
- value to be set- Returns:
- Builder
-
customLineItemKey
public StagedOrderSetCustomLineItemTaxRateActionBuilder customLineItemKey(@Nullable String customLineItemKey) key
of the CustomLineItem to update. EithercustomLineItemId
orcustomLineItemKey
is 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
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 StagedOrderSetCustomLineItemTaxRateAction with checking for non-null required values- Specified by:
build
in 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
-