Class CartDiscountValueFixedDraftBuilder
- All Implemented Interfaces:
io.vrap.rmf.base.client.Builder<CartDiscountValueFixedDraft>
Example to create an instance using the builder pattern
CartDiscountValueFixedDraft cartDiscountValueFixedDraft = CartDiscountValueFixedDraft.builder()
.plusMoney(moneyBuilder -> moneyBuilder)
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddMoney
(Function<MoneyBuilder, Money> builder) Money values in different currencies.build()
builds CartDiscountValueFixedDraft with checking for non-null required valuesbuilds CartDiscountValueFixedDraft without checking for non-null required valuesgetMoney()
Money values in different currencies.Money values in different currencies.Money values in different currencies.of()
factory method for an instance of CartDiscountValueFixedDraftBuilderof
(CartDiscountValueFixedDraft template) create builder for CartDiscountValueFixedDraft instanceMoney values in different currencies.plusMoney
(Function<MoneyBuilder, MoneyBuilder> builder) Money values in different currencies.setMoney
(Function<MoneyBuilder, Money> builder) Money values in different currencies.withMoney
(Function<MoneyBuilder, MoneyBuilder> builder) Money values in different currencies.
-
Constructor Details
-
CartDiscountValueFixedDraftBuilder
public CartDiscountValueFixedDraftBuilder()
-
-
Method Details
-
money
Money values in different currencies. A fixed Cart Discount will only match a price if this array contains a value with the same currency. If it contains 10€ and 15$, the matching € price will be discounted by 10€ and the matching $ price will be discounted to 15$.
- Parameters:
money
- value to be set- Returns:
- Builder
-
money
Money values in different currencies. A fixed Cart Discount will only match a price if this array contains a value with the same currency. If it contains 10€ and 15$, the matching € price will be discounted by 10€ and the matching $ price will be discounted to 15$.
- Parameters:
money
- value to be set- Returns:
- Builder
-
plusMoney
Money values in different currencies. A fixed Cart Discount will only match a price if this array contains a value with the same currency. If it contains 10€ and 15$, the matching € price will be discounted by 10€ and the matching $ price will be discounted to 15$.
- Parameters:
money
- value to be set- Returns:
- Builder
-
plusMoney
Money values in different currencies. A fixed Cart Discount will only match a price if this array contains a value with the same currency. If it contains 10€ and 15$, the matching € price will be discounted by 10€ and the matching $ price will be discounted to 15$.
- Parameters:
builder
- function to build the money value- Returns:
- Builder
-
withMoney
Money values in different currencies. A fixed Cart Discount will only match a price if this array contains a value with the same currency. If it contains 10€ and 15$, the matching € price will be discounted by 10€ and the matching $ price will be discounted to 15$.
- Parameters:
builder
- function to build the money value- Returns:
- Builder
-
addMoney
Money values in different currencies. A fixed Cart Discount will only match a price if this array contains a value with the same currency. If it contains 10€ and 15$, the matching € price will be discounted by 10€ and the matching $ price will be discounted to 15$.
- Parameters:
builder
- function to build the money value- Returns:
- Builder
-
setMoney
Money values in different currencies. A fixed Cart Discount will only match a price if this array contains a value with the same currency. If it contains 10€ and 15$, the matching € price will be discounted by 10€ and the matching $ price will be discounted to 15$.
- Parameters:
builder
- function to build the money value- Returns:
- Builder
-
getMoney
Money values in different currencies. A fixed Cart Discount will only match a price if this array contains a value with the same currency. If it contains 10€ and 15$, the matching € price will be discounted by 10€ and the matching $ price will be discounted to 15$.
- Returns:
- money
-
build
builds CartDiscountValueFixedDraft with checking for non-null required values- Specified by:
build
in interfaceio.vrap.rmf.base.client.Builder<CartDiscountValueFixedDraft>
- Returns:
- CartDiscountValueFixedDraft
-
buildUnchecked
builds CartDiscountValueFixedDraft without checking for non-null required values- Returns:
- CartDiscountValueFixedDraft
-
of
factory method for an instance of CartDiscountValueFixedDraftBuilder- Returns:
- builder
-
of
create builder for CartDiscountValueFixedDraft instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-