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
-
Method Summary
Modifier and TypeMethodDescriptionSet if theexternalTotalGross
price 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 theexternalTotalGross
price is a sum of portions with different tax rates.externalTaxPortions
(List<TaxPortionDraft> externalTaxPortions) Set if theexternalTotalGross
price is a sum of portions with different tax rates.externalTotalGross
(Money externalTotalGross) The Cart's total gross price becoming thetotalGross
field (totalNet
+ taxes) on the Cart'staxedPrice
.externalTotalGross
(Function<MoneyBuilder, MoneyBuilder> builder) The Cart's total gross price becoming thetotalGross
field (totalNet
+ taxes) on the Cart'staxedPrice
.Set if theexternalTotalGross
price is a sum of portions with different tax rates.The Cart's total gross price becoming thetotalGross
field (totalNet
+ taxes) on the Cart'staxedPrice
.of()
factory method for an instance of CartSetCartTotalTaxActionBuilderof
(CartSetCartTotalTaxAction template) create builder for CartSetCartTotalTaxAction instanceplusExternalTaxPortions
(TaxPortionDraft... externalTaxPortions) Set if theexternalTotalGross
price is a sum of portions with different tax rates.Set if theexternalTotalGross
price is a sum of portions with different tax rates.Set if theexternalTotalGross
price is a sum of portions with different tax rates.Set if theexternalTotalGross
price is a sum of portions with different tax rates.withExternalTotalGross
(Function<MoneyBuilder, Money> builder) The Cart's total gross price becoming thetotalGross
field (totalNet
+ taxes) on the Cart'staxedPrice
.
-
Constructor Details
-
CartSetCartTotalTaxActionBuilder
public CartSetCartTotalTaxActionBuilder()
-
-
Method Details
-
externalTotalGross
public CartSetCartTotalTaxActionBuilder externalTotalGross(Function<MoneyBuilder, MoneyBuilder> builder) The Cart's total gross price becoming the
totalGross
field (totalNet
+ taxes) on the Cart'staxedPrice
.- Parameters:
builder
- function to build the externalTotalGross value- Returns:
- Builder
-
withExternalTotalGross
public CartSetCartTotalTaxActionBuilder withExternalTotalGross(Function<MoneyBuilder, Money> builder) The Cart's total gross price becoming the
totalGross
field (totalNet
+ taxes) on the Cart'staxedPrice
.- Parameters:
builder
- function to build the externalTotalGross value- Returns:
- Builder
-
externalTotalGross
The Cart's total gross price becoming the
totalGross
field (totalNet
+ taxes) on the Cart'staxedPrice
.- Parameters:
externalTotalGross
- value to be set- Returns:
- Builder
-
externalTaxPortions
public CartSetCartTotalTaxActionBuilder externalTaxPortions(@Nullable TaxPortionDraft... externalTaxPortions) Set if the
externalTotalGross
price 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
externalTotalGross
price 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
externalTotalGross
price 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
externalTotalGross
price 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
externalTotalGross
price 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
externalTotalGross
price 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
externalTotalGross
price is a sum of portions with different tax rates.- Parameters:
builder
- function to build the externalTaxPortions value- Returns:
- Builder
-
getExternalTotalGross
The Cart's total gross price becoming the
totalGross
field (totalNet
+ taxes) on the Cart'staxedPrice
.- Returns:
- externalTotalGross
-
getExternalTaxPortions
Set if the
externalTotalGross
price is a sum of portions with different tax rates.- Returns:
- externalTaxPortions
-
build
builds CartSetCartTotalTaxAction with checking for non-null required values- Specified by:
build
in 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
-