Class StagedOrderChangeCustomLineItemMoneyActionBuilder
- All Implemented Interfaces:
Builder<StagedOrderChangeCustomLineItemMoneyAction>
Example to create an instance using the builder pattern
StagedOrderChangeCustomLineItemMoneyAction stagedOrderChangeCustomLineItemMoneyAction = StagedOrderChangeCustomLineItemMoneyAction.builder()
.money(moneyBuilder -> moneyBuilder)
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()builds StagedOrderChangeCustomLineItemMoneyAction with checking for non-null required valuesbuilds StagedOrderChangeCustomLineItemMoneyAction without checking for non-null required valuescustomLineItemId(String customLineItemId) idof the CustomLineItem to update.customLineItemKey(String customLineItemKey) keyof the CustomLineItem to update.idof the CustomLineItem to update.keyof the CustomLineItem to update.getMoney()Value to set.Value to set.money(Function<MoneyBuilder, MoneyBuilder> builder) Value to set.of()factory method for an instance of StagedOrderChangeCustomLineItemMoneyActionBuilderof(StagedOrderChangeCustomLineItemMoneyAction template) create builder for StagedOrderChangeCustomLineItemMoneyAction instancewithMoney(Function<MoneyBuilder, Money> builder) Value to set.
-
Constructor Details
-
StagedOrderChangeCustomLineItemMoneyActionBuilder
public StagedOrderChangeCustomLineItemMoneyActionBuilder()
-
-
Method Details
-
customLineItemId
public StagedOrderChangeCustomLineItemMoneyActionBuilder customLineItemId(@Nullable String customLineItemId) idof the CustomLineItem to update. EithercustomLineItemIdorcustomLineItemKeyis required.- Parameters:
customLineItemId- value to be set- Returns:
- Builder
-
customLineItemKey
public StagedOrderChangeCustomLineItemMoneyActionBuilder customLineItemKey(@Nullable String customLineItemKey) keyof the CustomLineItem to update. EithercustomLineItemIdorcustomLineItemKeyis required.- Parameters:
customLineItemKey- value to be set- Returns:
- Builder
-
money
public StagedOrderChangeCustomLineItemMoneyActionBuilder money(Function<MoneyBuilder, MoneyBuilder> builder) Value to set. Must not be empty. Can be a negative amount.
To set the money value in high precision, use HighPrecisionMoneyDraft.
- Parameters:
builder- function to build the money value- Returns:
- Builder
-
withMoney
public StagedOrderChangeCustomLineItemMoneyActionBuilder withMoney(Function<MoneyBuilder, Money> builder) Value to set. Must not be empty. Can be a negative amount.
To set the money value in high precision, use HighPrecisionMoneyDraft.
- Parameters:
builder- function to build the money value- Returns:
- Builder
-
money
Value to set. Must not be empty. Can be a negative amount.
To set the money value in high precision, use HighPrecisionMoneyDraft.
- Parameters:
money- value to be set- Returns:
- Builder
-
getCustomLineItemId
idof the CustomLineItem to update. EithercustomLineItemIdorcustomLineItemKeyis required.- Returns:
- customLineItemId
-
getCustomLineItemKey
keyof the CustomLineItem to update. EithercustomLineItemIdorcustomLineItemKeyis required.- Returns:
- customLineItemKey
-
getMoney
Value to set. Must not be empty. Can be a negative amount.
To set the money value in high precision, use HighPrecisionMoneyDraft.
- Returns:
- money
-
build
builds StagedOrderChangeCustomLineItemMoneyAction with checking for non-null required values- Specified by:
buildin interfaceBuilder<StagedOrderChangeCustomLineItemMoneyAction>- Returns:
- StagedOrderChangeCustomLineItemMoneyAction
-
buildUnchecked
builds StagedOrderChangeCustomLineItemMoneyAction without checking for non-null required values- Returns:
- StagedOrderChangeCustomLineItemMoneyAction
-
of
factory method for an instance of StagedOrderChangeCustomLineItemMoneyActionBuilder- Returns:
- builder
-
of
public static StagedOrderChangeCustomLineItemMoneyActionBuilder of(StagedOrderChangeCustomLineItemMoneyAction template) create builder for StagedOrderChangeCustomLineItemMoneyAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-