Class StagedOrderSetShippingMethodTaxAmountActionBuilder
java.lang.Object
com.commercetools.api.models.order_edit.StagedOrderSetShippingMethodTaxAmountActionBuilder
- All Implemented Interfaces:
io.vrap.rmf.base.client.Builder<StagedOrderSetShippingMethodTaxAmountAction>
public class StagedOrderSetShippingMethodTaxAmountActionBuilder
extends Object
implements io.vrap.rmf.base.client.Builder<StagedOrderSetShippingMethodTaxAmountAction>
StagedOrderSetShippingMethodTaxAmountActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
StagedOrderSetShippingMethodTaxAmountAction stagedOrderSetShippingMethodTaxAmountAction = StagedOrderSetShippingMethodTaxAmountAction.builder()
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds StagedOrderSetShippingMethodTaxAmountAction with checking for non-null required valuesbuilds StagedOrderSetShippingMethodTaxAmountAction without checking for non-null required valuesexternalTaxAmount
(ExternalTaxAmountDraft externalTaxAmount) Cannot be used in LineItemDraft or CustomLineItemDraft.Cannot be used in LineItemDraft or CustomLineItemDraft.Cannot be used in LineItemDraft or CustomLineItemDraft.key
of the ShippingMethod to update.of()
factory method for an instance of StagedOrderSetShippingMethodTaxAmountActionBuildercreate builder for StagedOrderSetShippingMethodTaxAmountAction instanceshippingKey
(String shippingKey) key
of the ShippingMethod to update.Cannot be used in LineItemDraft or CustomLineItemDraft.
-
Constructor Details
-
StagedOrderSetShippingMethodTaxAmountActionBuilder
-
-
Method Details
-
shippingKey
key
of the ShippingMethod to update. This is required for Orders withMultiple
ShippingMode.- Parameters:
shippingKey
- value to be set- Returns:
- Builder
-
externalTaxAmount
public StagedOrderSetShippingMethodTaxAmountActionBuilder 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 StagedOrderSetShippingMethodTaxAmountActionBuilder 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 StagedOrderSetShippingMethodTaxAmountActionBuilder 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
-
getShippingKey
key
of the ShippingMethod to update. This is required for Orders withMultiple
ShippingMode.- Returns:
- shippingKey
-
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 StagedOrderSetShippingMethodTaxAmountAction with checking for non-null required values- Specified by:
build
in interfaceio.vrap.rmf.base.client.Builder<StagedOrderSetShippingMethodTaxAmountAction>
- Returns:
- StagedOrderSetShippingMethodTaxAmountAction
-
buildUnchecked
builds StagedOrderSetShippingMethodTaxAmountAction without checking for non-null required values- Returns:
- StagedOrderSetShippingMethodTaxAmountAction
-
of
factory method for an instance of StagedOrderSetShippingMethodTaxAmountActionBuilder- Returns:
- builder
-
of
public static StagedOrderSetShippingMethodTaxAmountActionBuilder of(StagedOrderSetShippingMethodTaxAmountAction template) create builder for StagedOrderSetShippingMethodTaxAmountAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-