Class StagedOrderSetShippingMethodTaxRateActionBuilder
java.lang.Object
com.commercetools.api.models.order_edit.StagedOrderSetShippingMethodTaxRateActionBuilder
- All Implemented Interfaces:
io.vrap.rmf.base.client.Builder<StagedOrderSetShippingMethodTaxRateAction>
public class StagedOrderSetShippingMethodTaxRateActionBuilder
extends Object
implements io.vrap.rmf.base.client.Builder<StagedOrderSetShippingMethodTaxRateAction>
StagedOrderSetShippingMethodTaxRateActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
StagedOrderSetShippingMethodTaxRateAction stagedOrderSetShippingMethodTaxRateAction = StagedOrderSetShippingMethodTaxRateAction.builder()
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds StagedOrderSetShippingMethodTaxRateAction with checking for non-null required valuesbuilds StagedOrderSetShippingMethodTaxRateAction 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.key
of the ShippingMethod to update.of()
factory method for an instance of StagedOrderSetShippingMethodTaxRateActionBuilderof
(StagedOrderSetShippingMethodTaxRateAction template) create builder for StagedOrderSetShippingMethodTaxRateAction instanceshippingKey
(String shippingKey) key
of the ShippingMethod to update.Controls calculation of taxed prices for Line Items, Custom Line Items, and Shipping Methods as explained in Cart tax calculation.
-
Constructor Details
-
StagedOrderSetShippingMethodTaxRateActionBuilder
-
-
Method Details
-
shippingKey
key
of the ShippingMethod to update. This is required for Orders withMultiple
ShippingMode.- Parameters:
shippingKey
- value to be set- Returns:
- Builder
-
externalTaxRate
public StagedOrderSetShippingMethodTaxRateActionBuilder 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 StagedOrderSetShippingMethodTaxRateActionBuilder 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 StagedOrderSetShippingMethodTaxRateActionBuilder 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
-
getShippingKey
key
of the ShippingMethod to update. This is required for Orders withMultiple
ShippingMode.- Returns:
- shippingKey
-
getExternalTaxRate
Controls calculation of taxed prices for Line Items, Custom Line Items, and Shipping Methods as explained in Cart tax calculation.
- Returns:
- externalTaxRate
-
build
builds StagedOrderSetShippingMethodTaxRateAction with checking for non-null required values- Specified by:
build
in interfaceio.vrap.rmf.base.client.Builder<StagedOrderSetShippingMethodTaxRateAction>
- Returns:
- StagedOrderSetShippingMethodTaxRateAction
-
buildUnchecked
builds StagedOrderSetShippingMethodTaxRateAction without checking for non-null required values- Returns:
- StagedOrderSetShippingMethodTaxRateAction
-
of
factory method for an instance of StagedOrderSetShippingMethodTaxRateActionBuilder- Returns:
- builder
-
of
public static StagedOrderSetShippingMethodTaxRateActionBuilder of(StagedOrderSetShippingMethodTaxRateAction template) create builder for StagedOrderSetShippingMethodTaxRateAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-