Class MethodTaxedPriceBuilder
java.lang.Object
com.commercetools.api.models.cart.MethodTaxedPriceBuilder
- All Implemented Interfaces:
io.vrap.rmf.base.client.Builder<MethodTaxedPrice>
public class MethodTaxedPriceBuilder
extends Object
implements io.vrap.rmf.base.client.Builder<MethodTaxedPrice>
MethodTaxedPriceBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
MethodTaxedPrice methodTaxedPrice = MethodTaxedPrice.builder()
.shippingMethodKey("{shippingMethodKey}")
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds MethodTaxedPrice with checking for non-null required valuesbuilds MethodTaxedPrice without checking for non-null required valuesUser-defined unique identifier of the Shipping Method in a Cart withMultiple
ShippingMode.Taxed price for the Shipping Method.static MethodTaxedPriceBuilder
of()
factory method for an instance of MethodTaxedPriceBuilderstatic MethodTaxedPriceBuilder
of
(MethodTaxedPrice template) create builder for MethodTaxedPrice instanceshippingMethodKey
(String shippingMethodKey) User-defined unique identifier of the Shipping Method in a Cart withMultiple
ShippingMode.taxedPrice
(TaxedItemPrice taxedPrice) Taxed price for the Shipping Method.Taxed price for the Shipping Method.Taxed price for the Shipping Method.
-
Constructor Details
-
MethodTaxedPriceBuilder
public MethodTaxedPriceBuilder()
-
-
Method Details
-
shippingMethodKey
User-defined unique identifier of the Shipping Method in a Cart with
Multiple
ShippingMode.- Parameters:
shippingMethodKey
- value to be set- Returns:
- Builder
-
taxedPrice
public MethodTaxedPriceBuilder taxedPrice(Function<TaxedItemPriceBuilder, TaxedItemPriceBuilder> builder) Taxed price for the Shipping Method.
- Parameters:
builder
- function to build the taxedPrice value- Returns:
- Builder
-
withTaxedPrice
public MethodTaxedPriceBuilder withTaxedPrice(Function<TaxedItemPriceBuilder, TaxedItemPrice> builder) Taxed price for the Shipping Method.
- Parameters:
builder
- function to build the taxedPrice value- Returns:
- Builder
-
taxedPrice
Taxed price for the Shipping Method.
- Parameters:
taxedPrice
- value to be set- Returns:
- Builder
-
getShippingMethodKey
User-defined unique identifier of the Shipping Method in a Cart with
Multiple
ShippingMode.- Returns:
- shippingMethodKey
-
getTaxedPrice
Taxed price for the Shipping Method.
- Returns:
- taxedPrice
-
build
builds MethodTaxedPrice with checking for non-null required values- Specified by:
build
in interfaceio.vrap.rmf.base.client.Builder<MethodTaxedPrice>
- Returns:
- MethodTaxedPrice
-
buildUnchecked
builds MethodTaxedPrice without checking for non-null required values- Returns:
- MethodTaxedPrice
-
of
factory method for an instance of MethodTaxedPriceBuilder- Returns:
- builder
-
of
create builder for MethodTaxedPrice instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-