Class StagedOrderSetCustomLineItemTaxAmountActionBuilder
java.lang.Object
com.commercetools.api.models.order_edit.StagedOrderSetCustomLineItemTaxAmountActionBuilder
- All Implemented Interfaces:
io.vrap.rmf.base.client.Builder<StagedOrderSetCustomLineItemTaxAmountAction>
public class StagedOrderSetCustomLineItemTaxAmountActionBuilder
extends Object
implements io.vrap.rmf.base.client.Builder<StagedOrderSetCustomLineItemTaxAmountAction>
StagedOrderSetCustomLineItemTaxAmountActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
StagedOrderSetCustomLineItemTaxAmountAction stagedOrderSetCustomLineItemTaxAmountAction = StagedOrderSetCustomLineItemTaxAmountAction.builder()
.customLineItemId("{customLineItemId}")
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds StagedOrderSetCustomLineItemTaxAmountAction with checking for non-null required valuesbuilds StagedOrderSetCustomLineItemTaxAmountAction without checking for non-null required valuescustomLineItemId
(String customLineItemId) set the value to the customLineItemIdexternalTaxAmount
(ExternalTaxAmountDraft externalTaxAmount) Cannot be used in LineItemDraft or CustomLineItemDraft.Cannot be used in LineItemDraft or CustomLineItemDraft.value of customLineItemId}Cannot be used in LineItemDraft or CustomLineItemDraft.of()
factory method for an instance of StagedOrderSetCustomLineItemTaxAmountActionBuildercreate builder for StagedOrderSetCustomLineItemTaxAmountAction instanceCannot be used in LineItemDraft or CustomLineItemDraft.
-
Constructor Details
-
StagedOrderSetCustomLineItemTaxAmountActionBuilder
-
-
Method Details
-
customLineItemId
set the value to the customLineItemId- Parameters:
customLineItemId
- value to be set- Returns:
- Builder
-
externalTaxAmount
public StagedOrderSetCustomLineItemTaxAmountActionBuilder externalTaxAmount(Function<ExternalTaxAmountDraftBuilder, ExternalTaxAmountDraftBuilder> builder) Cannot be used in LineItemDraft or CustomLineItemDraft.
Can only be set by these update actions:
- Set LineItem TaxAmount, Set CustomLineItem TaxAmount, or Set ShippingMethod TaxAmount on Carts
- Set LineItem TaxAmount, Set CustomLineItem TaxAmount, or Set ShippingMethod TaxAmount on Order Edits
- Parameters:
builder
- function to build the externalTaxAmount value- Returns:
- Builder
-
withExternalTaxAmount
public StagedOrderSetCustomLineItemTaxAmountActionBuilder withExternalTaxAmount(Function<ExternalTaxAmountDraftBuilder, ExternalTaxAmountDraft> builder) Cannot be used in LineItemDraft or CustomLineItemDraft.
Can only be set by these update actions:
- Set LineItem TaxAmount, Set CustomLineItem TaxAmount, or Set ShippingMethod TaxAmount on Carts
- Set LineItem TaxAmount, Set CustomLineItem TaxAmount, or Set ShippingMethod TaxAmount on Order Edits
- Parameters:
builder
- function to build the externalTaxAmount value- Returns:
- Builder
-
externalTaxAmount
public StagedOrderSetCustomLineItemTaxAmountActionBuilder externalTaxAmount(@Nullable ExternalTaxAmountDraft externalTaxAmount) Cannot be used in LineItemDraft or CustomLineItemDraft.
Can only be set by these update actions:
- Set LineItem TaxAmount, Set CustomLineItem TaxAmount, or Set ShippingMethod TaxAmount on Carts
- Set LineItem TaxAmount, Set CustomLineItem TaxAmount, or Set ShippingMethod TaxAmount on Order Edits
- Parameters:
externalTaxAmount
- value to be set- Returns:
- Builder
-
getCustomLineItemId
value of customLineItemId}- Returns:
- customLineItemId
-
getExternalTaxAmount
Cannot be used in LineItemDraft or CustomLineItemDraft.
Can only be set by these update actions:
- Set LineItem TaxAmount, Set CustomLineItem TaxAmount, or Set ShippingMethod TaxAmount on Carts
- Set LineItem TaxAmount, Set CustomLineItem TaxAmount, or Set ShippingMethod TaxAmount on Order Edits
- Returns:
- externalTaxAmount
-
build
builds StagedOrderSetCustomLineItemTaxAmountAction with checking for non-null required values- Specified by:
build
in interfaceio.vrap.rmf.base.client.Builder<StagedOrderSetCustomLineItemTaxAmountAction>
- Returns:
- StagedOrderSetCustomLineItemTaxAmountAction
-
buildUnchecked
builds StagedOrderSetCustomLineItemTaxAmountAction without checking for non-null required values- Returns:
- StagedOrderSetCustomLineItemTaxAmountAction
-
of
factory method for an instance of StagedOrderSetCustomLineItemTaxAmountActionBuilder- Returns:
- builder
-
of
public static StagedOrderSetCustomLineItemTaxAmountActionBuilder of(StagedOrderSetCustomLineItemTaxAmountAction template) create builder for StagedOrderSetCustomLineItemTaxAmountAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-