Class StagedOrderSetShippingMethodTaxRateActionBuilder
java.lang.Object
com.commercetools.api.models.order_edit.StagedOrderSetShippingMethodTaxRateActionBuilder
- All Implemented Interfaces:
Builder<StagedOrderSetShippingMethodTaxRateAction>
public class StagedOrderSetShippingMethodTaxRateActionBuilder
extends Object
implements 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) Value to set.Value to set.Value to set.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.Value to set.
-
Constructor Details
-
StagedOrderSetShippingMethodTaxRateActionBuilder
public 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) Value to set. If empty, any existing value is removed.
- Parameters:
builder
- function to build the externalTaxRate value- Returns:
- Builder
-
withExternalTaxRate
public StagedOrderSetShippingMethodTaxRateActionBuilder withExternalTaxRate(Function<ExternalTaxRateDraftBuilder, ExternalTaxRateDraft> builder) Value to set. If empty, any existing value is removed.
- Parameters:
builder
- function to build the externalTaxRate value- Returns:
- Builder
-
externalTaxRate
public StagedOrderSetShippingMethodTaxRateActionBuilder externalTaxRate(@Nullable ExternalTaxRateDraft externalTaxRate) Value to set. If empty, any existing value is removed.
- 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
Value to set. If empty, any existing value is removed.
- Returns:
- externalTaxRate
-
build
builds StagedOrderSetShippingMethodTaxRateAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<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
-