Class StagedOrderSetCustomLineItemTaxRateActionBuilder
java.lang.Object
com.commercetools.api.models.order_edit.StagedOrderSetCustomLineItemTaxRateActionBuilder
- All Implemented Interfaces:
io.vrap.rmf.base.client.Builder<StagedOrderSetCustomLineItemTaxRateAction>
public class StagedOrderSetCustomLineItemTaxRateActionBuilder
extends Object
implements io.vrap.rmf.base.client.Builder<StagedOrderSetCustomLineItemTaxRateAction>
StagedOrderSetCustomLineItemTaxRateActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
StagedOrderSetCustomLineItemTaxRateAction stagedOrderSetCustomLineItemTaxRateAction = StagedOrderSetCustomLineItemTaxRateAction.builder()
.customLineItemId("{customLineItemId}")
.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) set the value to the customLineItemIdexternalTaxRate
(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.value of customLineItemId}Controls calculation of taxed prices for Line Items, Custom Line Items, and Shipping Methods as explained in Cart tax calculation.of()
factory method for an instance of StagedOrderSetCustomLineItemTaxRateActionBuilderof
(StagedOrderSetCustomLineItemTaxRateAction template) create builder for StagedOrderSetCustomLineItemTaxRateAction instanceControls calculation of taxed prices for Line Items, Custom Line Items, and Shipping Methods as explained in Cart tax calculation.
-
Constructor Details
-
StagedOrderSetCustomLineItemTaxRateActionBuilder
-
-
Method Details
-
customLineItemId
set the value to the customLineItemId- Parameters:
customLineItemId
- value to be set- Returns:
- Builder
-
externalTaxRate
public StagedOrderSetCustomLineItemTaxRateActionBuilder 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 StagedOrderSetCustomLineItemTaxRateActionBuilder 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 StagedOrderSetCustomLineItemTaxRateActionBuilder 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
-
getCustomLineItemId
value of customLineItemId}- Returns:
- customLineItemId
-
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 StagedOrderSetCustomLineItemTaxRateAction with checking for non-null required values- Specified by:
build
in interfaceio.vrap.rmf.base.client.Builder<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
-