Class ShippingMethodTaxAmountChangeValueBuilder
java.lang.Object
com.commercetools.history.models.change_value.ShippingMethodTaxAmountChangeValueBuilder
- All Implemented Interfaces:
Builder<ShippingMethodTaxAmountChangeValue>
public class ShippingMethodTaxAmountChangeValueBuilder
extends Object
implements Builder<ShippingMethodTaxAmountChangeValue>
ShippingMethodTaxAmountChangeValueBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ShippingMethodTaxAmountChangeValue shippingMethodTaxAmountChangeValue = ShippingMethodTaxAmountChangeValue.builder()
.taxedPrice(taxedPriceBuilder -> taxedPriceBuilder)
.taxRate(taxRateBuilder -> taxRateBuilder)
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()builds ShippingMethodTaxAmountChangeValue with checking for non-null required valuesbuilds ShippingMethodTaxAmountChangeValue without checking for non-null required valuesTaxed price for the Shipping Method based ontaxRate.Tax rate set externally for the Shipping Method.of()factory method for an instance of ShippingMethodTaxAmountChangeValueBuilderof(ShippingMethodTaxAmountChangeValue template) create builder for ShippingMethodTaxAmountChangeValue instancetaxedPrice(TaxedPrice taxedPrice) Taxed price for the Shipping Method based ontaxRate.taxedPrice(Function<TaxedPriceBuilder, TaxedPriceBuilder> builder) Taxed price for the Shipping Method based ontaxRate.Tax rate set externally for the Shipping Method.taxRate(Function<TaxRateBuilder, TaxRateBuilder> builder) Tax rate set externally for the Shipping Method.withTaxedPrice(Function<TaxedPriceBuilder, TaxedPrice> builder) Taxed price for the Shipping Method based ontaxRate.withTaxRate(Function<TaxRateBuilder, TaxRate> builder) Tax rate set externally for the Shipping Method.
-
Constructor Details
-
ShippingMethodTaxAmountChangeValueBuilder
public ShippingMethodTaxAmountChangeValueBuilder()
-
-
Method Details
-
taxedPrice
public ShippingMethodTaxAmountChangeValueBuilder taxedPrice(Function<TaxedPriceBuilder, TaxedPriceBuilder> builder) Taxed price for the Shipping Method based on
taxRate.- Parameters:
builder- function to build the taxedPrice value- Returns:
- Builder
-
withTaxedPrice
public ShippingMethodTaxAmountChangeValueBuilder withTaxedPrice(Function<TaxedPriceBuilder, TaxedPrice> builder) Taxed price for the Shipping Method based on
taxRate.- Parameters:
builder- function to build the taxedPrice value- Returns:
- Builder
-
taxedPrice
Taxed price for the Shipping Method based on
taxRate.- Parameters:
taxedPrice- value to be set- Returns:
- Builder
-
taxRate
public ShippingMethodTaxAmountChangeValueBuilder taxRate(Function<TaxRateBuilder, TaxRateBuilder> builder) Tax rate set externally for the Shipping Method.
- Parameters:
builder- function to build the taxRate value- Returns:
- Builder
-
withTaxRate
public ShippingMethodTaxAmountChangeValueBuilder withTaxRate(Function<TaxRateBuilder, TaxRate> builder) Tax rate set externally for the Shipping Method.
- Parameters:
builder- function to build the taxRate value- Returns:
- Builder
-
taxRate
Tax rate set externally for the Shipping Method.
- Parameters:
taxRate- value to be set- Returns:
- Builder
-
getTaxedPrice
Taxed price for the Shipping Method based on
taxRate.- Returns:
- taxedPrice
-
getTaxRate
Tax rate set externally for the Shipping Method.
- Returns:
- taxRate
-
build
builds ShippingMethodTaxAmountChangeValue with checking for non-null required values- Specified by:
buildin interfaceBuilder<ShippingMethodTaxAmountChangeValue>- Returns:
- ShippingMethodTaxAmountChangeValue
-
buildUnchecked
builds ShippingMethodTaxAmountChangeValue without checking for non-null required values- Returns:
- ShippingMethodTaxAmountChangeValue
-
of
factory method for an instance of ShippingMethodTaxAmountChangeValueBuilder- Returns:
- builder
-
of
public static ShippingMethodTaxAmountChangeValueBuilder of(ShippingMethodTaxAmountChangeValue template) create builder for ShippingMethodTaxAmountChangeValue instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-