Class StagedOrderSetLineItemTaxRateActionBuilder
- All Implemented Interfaces:
io.vrap.rmf.base.client.Builder<StagedOrderSetLineItemTaxRateAction>
Example to create an instance using the builder pattern
StagedOrderSetLineItemTaxRateAction stagedOrderSetLineItemTaxRateAction = StagedOrderSetLineItemTaxRateAction.builder()
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds StagedOrderSetLineItemTaxRateAction with checking for non-null required valuesbuilds StagedOrderSetLineItemTaxRateAction without checking for non-null required valuesexternalTaxRate
(ExternalTaxRateDraft externalTaxRate) Controls calculation of taxed prices for Line Items, Custom Line Items, and Shipping Methods as explained in Cart tax calculation.Controls calculation of taxed prices for Line Items, Custom Line Items, and Shipping Methods as explained in Cart tax calculation.Controls calculation of taxed prices for Line Items, Custom Line Items, and Shipping Methods as explained in Cart tax calculation.id
of the LineItem to update.key
of the LineItem to update.key
of the ShippingMethod used for this Line Item.lineItemId
(String lineItemId) id
of the LineItem to update.lineItemKey
(String lineItemKey) key
of the LineItem to update.of()
factory method for an instance of StagedOrderSetLineItemTaxRateActionBuilderof
(StagedOrderSetLineItemTaxRateAction template) create builder for StagedOrderSetLineItemTaxRateAction instanceshippingKey
(String shippingKey) key
of the ShippingMethod used for this Line Item.Controls calculation of taxed prices for Line Items, Custom Line Items, and Shipping Methods as explained in Cart tax calculation.
-
Constructor Details
-
StagedOrderSetLineItemTaxRateActionBuilder
-
-
Method Details
-
lineItemId
id
of the LineItem to update. EitherlineItemId
orlineItemKey
is required.- Parameters:
lineItemId
- value to be set- Returns:
- Builder
-
lineItemKey
key
of the LineItem to update. EitherlineItemId
orlineItemKey
is required.- Parameters:
lineItemKey
- value to be set- Returns:
- Builder
-
externalTaxRate
public StagedOrderSetLineItemTaxRateActionBuilder externalTaxRate(Function<ExternalTaxRateDraftBuilder, ExternalTaxRateDraftBuilder> builder) Controls calculation of taxed prices for Line Items, Custom Line Items, and Shipping Methods as explained in Cart tax calculation.
- Parameters:
builder
- function to build the externalTaxRate value- Returns:
- Builder
-
withExternalTaxRate
public StagedOrderSetLineItemTaxRateActionBuilder withExternalTaxRate(Function<ExternalTaxRateDraftBuilder, ExternalTaxRateDraft> builder) Controls calculation of taxed prices for Line Items, Custom Line Items, and Shipping Methods as explained in Cart tax calculation.
- Parameters:
builder
- function to build the externalTaxRate value- Returns:
- Builder
-
externalTaxRate
public StagedOrderSetLineItemTaxRateActionBuilder externalTaxRate(@Nullable ExternalTaxRateDraft externalTaxRate) Controls calculation of taxed prices for Line Items, Custom Line Items, and Shipping Methods as explained in Cart tax calculation.
- Parameters:
externalTaxRate
- value to be set- Returns:
- Builder
-
shippingKey
key
of the ShippingMethod used for this Line Item. This is required for Carts withMultiple
ShippingMode.- Parameters:
shippingKey
- value to be set- Returns:
- Builder
-
getLineItemId
id
of the LineItem to update. EitherlineItemId
orlineItemKey
is required.- Returns:
- lineItemId
-
getLineItemKey
key
of the LineItem to update. EitherlineItemId
orlineItemKey
is required.- Returns:
- lineItemKey
-
getExternalTaxRate
Controls calculation of taxed prices for Line Items, Custom Line Items, and Shipping Methods as explained in Cart tax calculation.
- Returns:
- externalTaxRate
-
getShippingKey
key
of the ShippingMethod used for this Line Item. This is required for Carts withMultiple
ShippingMode.- Returns:
- shippingKey
-
build
builds StagedOrderSetLineItemTaxRateAction with checking for non-null required values- Specified by:
build
in interfaceio.vrap.rmf.base.client.Builder<StagedOrderSetLineItemTaxRateAction>
- Returns:
- StagedOrderSetLineItemTaxRateAction
-
buildUnchecked
builds StagedOrderSetLineItemTaxRateAction without checking for non-null required values- Returns:
- StagedOrderSetLineItemTaxRateAction
-
of
factory method for an instance of StagedOrderSetLineItemTaxRateActionBuilder- Returns:
- builder
-
of
public static StagedOrderSetLineItemTaxRateActionBuilder of(StagedOrderSetLineItemTaxRateAction template) create builder for StagedOrderSetLineItemTaxRateAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-