Class CartSetCartTotalTaxActionBuilder
- All Implemented Interfaces:
Builder<CartSetCartTotalTaxAction>
Example to create an instance using the builder pattern
CartSetCartTotalTaxAction cartSetCartTotalTaxAction = CartSetCartTotalTaxAction.builder()
.externalTotalGross(externalTotalGrossBuilder -> externalTotalGrossBuilder)
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSet if theexternalTotalGrossprice is a sum of portions with different tax rates.build()builds CartSetCartTotalTaxAction with checking for non-null required valuesbuilds CartSetCartTotalTaxAction without checking for non-null required valuesexternalTaxPortions(TaxPortionDraft... externalTaxPortions) Set if theexternalTotalGrossprice is a sum of portions with different tax rates.externalTaxPortions(List<TaxPortionDraft> externalTaxPortions) Set if theexternalTotalGrossprice is a sum of portions with different tax rates.externalTotalGross(Money externalTotalGross) The total gross amount of the Cart, including tax.externalTotalGross(Function<MoneyBuilder, MoneyBuilder> builder) The total gross amount of the Cart, including tax.Set if theexternalTotalGrossprice is a sum of portions with different tax rates.The total gross amount of the Cart, including tax.of()factory method for an instance of CartSetCartTotalTaxActionBuilderof(CartSetCartTotalTaxAction template) create builder for CartSetCartTotalTaxAction instanceplusExternalTaxPortions(TaxPortionDraft... externalTaxPortions) Set if theexternalTotalGrossprice is a sum of portions with different tax rates.Set if theexternalTotalGrossprice is a sum of portions with different tax rates.Set if theexternalTotalGrossprice is a sum of portions with different tax rates.Set if theexternalTotalGrossprice is a sum of portions with different tax rates.withExternalTotalGross(Function<MoneyBuilder, Money> builder) The total gross amount of the Cart, including tax.
-
Constructor Details
-
CartSetCartTotalTaxActionBuilder
public CartSetCartTotalTaxActionBuilder()
-
-
Method Details
-
externalTotalGross
public CartSetCartTotalTaxActionBuilder externalTotalGross(Function<MoneyBuilder, MoneyBuilder> builder) The total gross amount of the Cart, including tax. This value is used to calculate the
totalNetandtotalTaxfields of the Cart'staxedPrice.- Parameters:
builder- function to build the externalTotalGross value- Returns:
- Builder
-
withExternalTotalGross
public CartSetCartTotalTaxActionBuilder withExternalTotalGross(Function<MoneyBuilder, Money> builder) The total gross amount of the Cart, including tax. This value is used to calculate the
totalNetandtotalTaxfields of the Cart'staxedPrice.- Parameters:
builder- function to build the externalTotalGross value- Returns:
- Builder
-
externalTotalGross
The total gross amount of the Cart, including tax. This value is used to calculate the
totalNetandtotalTaxfields of the Cart'staxedPrice.- Parameters:
externalTotalGross- value to be set- Returns:
- Builder
-
externalTaxPortions
public CartSetCartTotalTaxActionBuilder externalTaxPortions(@Nullable TaxPortionDraft... externalTaxPortions) Set if the
externalTotalGrossprice is a sum of portions with different tax rates.- Parameters:
externalTaxPortions- value to be set- Returns:
- Builder
-
externalTaxPortions
public CartSetCartTotalTaxActionBuilder externalTaxPortions(@Nullable List<TaxPortionDraft> externalTaxPortions) Set if the
externalTotalGrossprice is a sum of portions with different tax rates.- Parameters:
externalTaxPortions- value to be set- Returns:
- Builder
-
plusExternalTaxPortions
public CartSetCartTotalTaxActionBuilder plusExternalTaxPortions(@Nullable TaxPortionDraft... externalTaxPortions) Set if the
externalTotalGrossprice is a sum of portions with different tax rates.- Parameters:
externalTaxPortions- value to be set- Returns:
- Builder
-
plusExternalTaxPortions
public CartSetCartTotalTaxActionBuilder plusExternalTaxPortions(Function<TaxPortionDraftBuilder, TaxPortionDraftBuilder> builder) Set if the
externalTotalGrossprice is a sum of portions with different tax rates.- Parameters:
builder- function to build the externalTaxPortions value- Returns:
- Builder
-
withExternalTaxPortions
public CartSetCartTotalTaxActionBuilder withExternalTaxPortions(Function<TaxPortionDraftBuilder, TaxPortionDraftBuilder> builder) Set if the
externalTotalGrossprice is a sum of portions with different tax rates.- Parameters:
builder- function to build the externalTaxPortions value- Returns:
- Builder
-
addExternalTaxPortions
public CartSetCartTotalTaxActionBuilder addExternalTaxPortions(Function<TaxPortionDraftBuilder, TaxPortionDraft> builder) Set if the
externalTotalGrossprice is a sum of portions with different tax rates.- Parameters:
builder- function to build the externalTaxPortions value- Returns:
- Builder
-
setExternalTaxPortions
public CartSetCartTotalTaxActionBuilder setExternalTaxPortions(Function<TaxPortionDraftBuilder, TaxPortionDraft> builder) Set if the
externalTotalGrossprice is a sum of portions with different tax rates.- Parameters:
builder- function to build the externalTaxPortions value- Returns:
- Builder
-
getExternalTotalGross
The total gross amount of the Cart, including tax. This value is used to calculate the
totalNetandtotalTaxfields of the Cart'staxedPrice.- Returns:
- externalTotalGross
-
getExternalTaxPortions
Set if the
externalTotalGrossprice is a sum of portions with different tax rates.- Returns:
- externalTaxPortions
-
build
builds CartSetCartTotalTaxAction with checking for non-null required values- Specified by:
buildin interfaceBuilder<CartSetCartTotalTaxAction>- Returns:
- CartSetCartTotalTaxAction
-
buildUnchecked
builds CartSetCartTotalTaxAction without checking for non-null required values- Returns:
- CartSetCartTotalTaxAction
-
of
factory method for an instance of CartSetCartTotalTaxActionBuilder- Returns:
- builder
-
of
create builder for CartSetCartTotalTaxAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-