Class StagedOrderSetLineItemPriceActionBuilder
- All Implemented Interfaces:
Builder<StagedOrderSetLineItemPriceAction>
Example to create an instance using the builder pattern
StagedOrderSetLineItemPriceAction stagedOrderSetLineItemPriceAction = StagedOrderSetLineItemPriceAction.builder()
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()builds StagedOrderSetLineItemPriceAction with checking for non-null required valuesbuilds StagedOrderSetLineItemPriceAction without checking for non-null required valuesexternalPrice(Money externalPrice) Value to set.externalPrice(Function<MoneyBuilder, MoneyBuilder> builder) Value to set.Value to set.idof the LineItem to update.keyof the LineItem to update.lineItemId(String lineItemId) idof the LineItem to update.lineItemKey(String lineItemKey) keyof the LineItem to update.of()factory method for an instance of StagedOrderSetLineItemPriceActionBuilderof(StagedOrderSetLineItemPriceAction template) create builder for StagedOrderSetLineItemPriceAction instancewithExternalPrice(Function<MoneyBuilder, Money> builder) Value to set.
-
Constructor Details
-
StagedOrderSetLineItemPriceActionBuilder
public StagedOrderSetLineItemPriceActionBuilder()
-
-
Method Details
-
lineItemId
idof the LineItem to update. EitherlineItemIdorlineItemKeyis required.- Parameters:
lineItemId- value to be set- Returns:
- Builder
-
lineItemKey
keyof the LineItem to update. EitherlineItemIdorlineItemKeyis required.- Parameters:
lineItemKey- value to be set- Returns:
- Builder
-
externalPrice
public StagedOrderSetLineItemPriceActionBuilder externalPrice(Function<MoneyBuilder, MoneyBuilder> builder) Value to set. If
externalPriceis not given and thepriceModeisExternalPrice, the external price is unset and thepriceModeis set toPlatform.To set the money value in high precision, use HighPrecisionMoneyDraft.
- Parameters:
builder- function to build the externalPrice value- Returns:
- Builder
-
withExternalPrice
public StagedOrderSetLineItemPriceActionBuilder withExternalPrice(Function<MoneyBuilder, Money> builder) Value to set. If
externalPriceis not given and thepriceModeisExternalPrice, the external price is unset and thepriceModeis set toPlatform.To set the money value in high precision, use HighPrecisionMoneyDraft.
- Parameters:
builder- function to build the externalPrice value- Returns:
- Builder
-
externalPrice
Value to set. If
externalPriceis not given and thepriceModeisExternalPrice, the external price is unset and thepriceModeis set toPlatform.To set the money value in high precision, use HighPrecisionMoneyDraft.
- Parameters:
externalPrice- value to be set- Returns:
- Builder
-
getLineItemId
idof the LineItem to update. EitherlineItemIdorlineItemKeyis required.- Returns:
- lineItemId
-
getLineItemKey
keyof the LineItem to update. EitherlineItemIdorlineItemKeyis required.- Returns:
- lineItemKey
-
getExternalPrice
Value to set. If
externalPriceis not given and thepriceModeisExternalPrice, the external price is unset and thepriceModeis set toPlatform.To set the money value in high precision, use HighPrecisionMoneyDraft.
- Returns:
- externalPrice
-
build
builds StagedOrderSetLineItemPriceAction with checking for non-null required values- Specified by:
buildin interfaceBuilder<StagedOrderSetLineItemPriceAction>- Returns:
- StagedOrderSetLineItemPriceAction
-
buildUnchecked
builds StagedOrderSetLineItemPriceAction without checking for non-null required values- Returns:
- StagedOrderSetLineItemPriceAction
-
of
factory method for an instance of StagedOrderSetLineItemPriceActionBuilder- Returns:
- builder
-
of
public static StagedOrderSetLineItemPriceActionBuilder of(StagedOrderSetLineItemPriceAction template) create builder for StagedOrderSetLineItemPriceAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-