Class MethodTaxedPriceBuilder
java.lang.Object
com.commercetools.api.models.cart.MethodTaxedPriceBuilder
- All Implemented Interfaces:
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.Total taxed price based on the quantity of the Line Item or Custom Line Item assigned to the Shipping Method identified byshippingMethodKey
.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) Total taxed price based on the quantity of the Line Item or Custom Line Item assigned to the Shipping Method identified byshippingMethodKey
.Total taxed price based on the quantity of the Line Item or Custom Line Item assigned to the Shipping Method identified byshippingMethodKey
.Total taxed price based on the quantity of the Line Item or Custom Line Item assigned to the Shipping Method identified byshippingMethodKey
.
-
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) Total taxed price based on the quantity of the Line Item or Custom Line Item assigned to the Shipping Method identified by
shippingMethodKey
.- Parameters:
builder
- function to build the taxedPrice value- Returns:
- Builder
-
withTaxedPrice
public MethodTaxedPriceBuilder withTaxedPrice(Function<TaxedItemPriceBuilder, TaxedItemPrice> builder) Total taxed price based on the quantity of the Line Item or Custom Line Item assigned to the Shipping Method identified by
shippingMethodKey
.- Parameters:
builder
- function to build the taxedPrice value- Returns:
- Builder
-
taxedPrice
Total taxed price based on the quantity of the Line Item or Custom Line Item assigned to the Shipping Method identified by
shippingMethodKey
.- 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
Total taxed price based on the quantity of the Line Item or Custom Line Item assigned to the Shipping Method identified by
shippingMethodKey
.- Returns:
- taxedPrice
-
build
builds MethodTaxedPrice with checking for non-null required values- Specified by:
build
in interfaceBuilder<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
-