Class StagedOrderSetShippingAddressAndShippingMethodActionBuilder
- All Implemented Interfaces:
io.vrap.rmf.base.client.Builder<StagedOrderSetShippingAddressAndShippingMethodAction>
Example to create an instance using the builder pattern
StagedOrderSetShippingAddressAndShippingMethodAction stagedOrderSetShippingAddressAndShippingMethodAction = StagedOrderSetShippingAddressAndShippingMethodAction.builder()
.address(addressBuilder -> addressBuilder)
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddress
(BaseAddress address) Polymorphic base type that represents a postal address and contact details.address
(Function<BaseAddressBuilder, BaseAddressBuilder> builder) Polymorphic base type that represents a postal address and contact details.build()
builds StagedOrderSetShippingAddressAndShippingMethodAction with checking for non-null required valuesbuilds StagedOrderSetShippingAddressAndShippingMethodAction 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.Polymorphic base type that represents a postal address and contact details.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 StagedOrderSetShippingAddressAndShippingMethodActionBuildercreate builder for StagedOrderSetShippingAddressAndShippingMethodAction instanceshippingMethod
(ShippingMethodResourceIdentifier shippingMethod) ResourceIdentifier to a ShippingMethod.shippingMethod
(Function<ShippingMethodResourceIdentifierBuilder, ShippingMethodResourceIdentifierBuilder> builder) ResourceIdentifier to a ShippingMethod.withAddress
(Function<BaseAddressBuilder, BaseAddress> builder) Polymorphic base type that represents a postal address and contact details.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
-
StagedOrderSetShippingAddressAndShippingMethodActionBuilder
-
-
Method Details
-
address
public StagedOrderSetShippingAddressAndShippingMethodActionBuilder address(Function<BaseAddressBuilder, BaseAddressBuilder> builder) Polymorphic base type that represents a postal address and contact details. Depending on the read or write action, it can be either Address or AddressDraft that only differ in the data type for the optional
custom
field.- Parameters:
builder
- function to build the address value- Returns:
- Builder
-
withAddress
public StagedOrderSetShippingAddressAndShippingMethodActionBuilder withAddress(Function<BaseAddressBuilder, BaseAddress> builder) Polymorphic base type that represents a postal address and contact details. Depending on the read or write action, it can be either Address or AddressDraft that only differ in the data type for the optional
custom
field.- Parameters:
builder
- function to build the address value- Returns:
- Builder
-
address
Polymorphic base type that represents a postal address and contact details. Depending on the read or write action, it can be either Address or AddressDraft that only differ in the data type for the optional
custom
field.- Parameters:
address
- value to be set- Returns:
- Builder
-
shippingMethod
public StagedOrderSetShippingAddressAndShippingMethodActionBuilder shippingMethod(Function<ShippingMethodResourceIdentifierBuilder, ShippingMethodResourceIdentifierBuilder> builder) ResourceIdentifier to a ShippingMethod.
- Parameters:
builder
- function to build the shippingMethod value- Returns:
- Builder
-
withShippingMethod
public StagedOrderSetShippingAddressAndShippingMethodActionBuilder withShippingMethod(Function<ShippingMethodResourceIdentifierBuilder, ShippingMethodResourceIdentifier> builder) ResourceIdentifier to a ShippingMethod.
- Parameters:
builder
- function to build the shippingMethod value- Returns:
- Builder
-
shippingMethod
public StagedOrderSetShippingAddressAndShippingMethodActionBuilder shippingMethod(@Nullable ShippingMethodResourceIdentifier shippingMethod) ResourceIdentifier to a ShippingMethod.
- Parameters:
shippingMethod
- value to be set- Returns:
- Builder
-
externalTaxRate
public StagedOrderSetShippingAddressAndShippingMethodActionBuilder 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 StagedOrderSetShippingAddressAndShippingMethodActionBuilder 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 StagedOrderSetShippingAddressAndShippingMethodActionBuilder 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
-
getAddress
Polymorphic base type that represents a postal address and contact details. Depending on the read or write action, it can be either Address or AddressDraft that only differ in the data type for the optional
custom
field.- Returns:
- address
-
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 StagedOrderSetShippingAddressAndShippingMethodAction with checking for non-null required values- Specified by:
build
in interfaceio.vrap.rmf.base.client.Builder<StagedOrderSetShippingAddressAndShippingMethodAction>
- Returns:
- StagedOrderSetShippingAddressAndShippingMethodAction
-
buildUnchecked
builds StagedOrderSetShippingAddressAndShippingMethodAction without checking for non-null required values- Returns:
- StagedOrderSetShippingAddressAndShippingMethodAction
-
of
factory method for an instance of StagedOrderSetShippingAddressAndShippingMethodActionBuilder- Returns:
- builder
-
of
public static StagedOrderSetShippingAddressAndShippingMethodActionBuilder of(StagedOrderSetShippingAddressAndShippingMethodAction template) create builder for StagedOrderSetShippingAddressAndShippingMethodAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-