Class StagedOrderSetShippingMethodActionBuilder
java.lang.Object
com.commercetools.api.models.order_edit.StagedOrderSetShippingMethodActionBuilder
- All Implemented Interfaces:
io.vrap.rmf.base.client.Builder<StagedOrderSetShippingMethodAction>
public class StagedOrderSetShippingMethodActionBuilder
extends Object
implements io.vrap.rmf.base.client.Builder<StagedOrderSetShippingMethodAction>
StagedOrderSetShippingMethodActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
StagedOrderSetShippingMethodAction stagedOrderSetShippingMethodAction = StagedOrderSetShippingMethodAction.builder()
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds StagedOrderSetShippingMethodAction with checking for non-null required valuesbuilds StagedOrderSetShippingMethodAction 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.ResourceIdentifier to a ShippingMethod.of()
factory method for an instance of StagedOrderSetShippingMethodActionBuilderof
(StagedOrderSetShippingMethodAction template) create builder for StagedOrderSetShippingMethodAction instanceshippingMethod
(ShippingMethodResourceIdentifier shippingMethod) ResourceIdentifier to a ShippingMethod.shippingMethod
(Function<ShippingMethodResourceIdentifierBuilder, ShippingMethodResourceIdentifierBuilder> builder) ResourceIdentifier to a ShippingMethod.Controls calculation of taxed prices for Line Items, Custom Line Items, and Shipping Methods as explained in Cart tax calculation.withShippingMethod
(Function<ShippingMethodResourceIdentifierBuilder, ShippingMethodResourceIdentifier> builder) ResourceIdentifier to a ShippingMethod.
-
Constructor Details
-
StagedOrderSetShippingMethodActionBuilder
-
-
Method Details
-
shippingMethod
public StagedOrderSetShippingMethodActionBuilder shippingMethod(Function<ShippingMethodResourceIdentifierBuilder, ShippingMethodResourceIdentifierBuilder> builder) ResourceIdentifier to a ShippingMethod.
- Parameters:
builder
- function to build the shippingMethod value- Returns:
- Builder
-
withShippingMethod
public StagedOrderSetShippingMethodActionBuilder withShippingMethod(Function<ShippingMethodResourceIdentifierBuilder, ShippingMethodResourceIdentifier> builder) ResourceIdentifier to a ShippingMethod.
- Parameters:
builder
- function to build the shippingMethod value- Returns:
- Builder
-
shippingMethod
public StagedOrderSetShippingMethodActionBuilder shippingMethod(@Nullable ShippingMethodResourceIdentifier shippingMethod) ResourceIdentifier to a ShippingMethod.
- Parameters:
shippingMethod
- value to be set- Returns:
- Builder
-
externalTaxRate
public StagedOrderSetShippingMethodActionBuilder 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 StagedOrderSetShippingMethodActionBuilder 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 StagedOrderSetShippingMethodActionBuilder 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
-
getShippingMethod
ResourceIdentifier to a ShippingMethod.
- Returns:
- shippingMethod
-
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 StagedOrderSetShippingMethodAction with checking for non-null required values- Specified by:
build
in interfaceio.vrap.rmf.base.client.Builder<StagedOrderSetShippingMethodAction>
- Returns:
- StagedOrderSetShippingMethodAction
-
buildUnchecked
builds StagedOrderSetShippingMethodAction without checking for non-null required values- Returns:
- StagedOrderSetShippingMethodAction
-
of
factory method for an instance of StagedOrderSetShippingMethodActionBuilder- Returns:
- builder
-
of
public static StagedOrderSetShippingMethodActionBuilder of(StagedOrderSetShippingMethodAction template) create builder for StagedOrderSetShippingMethodAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-