Class CartSetLineItemPriceActionBuilder
- All Implemented Interfaces:
Builder<CartSetLineItemPriceAction>
Example to create an instance using the builder pattern
CartSetLineItemPriceAction cartSetLineItemPriceAction = CartSetLineItemPriceAction.builder()
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()builds CartSetLineItemPriceAction with checking for non-null required valuesbuilds CartSetLineItemPriceAction 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 CartSetLineItemPriceActionBuilderof(CartSetLineItemPriceAction template) create builder for CartSetLineItemPriceAction instancewithExternalPrice(Function<MoneyBuilder, Money> builder) Value to set.
-
Constructor Details
-
CartSetLineItemPriceActionBuilder
public CartSetLineItemPriceActionBuilder()
-
-
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
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
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 CartSetLineItemPriceAction with checking for non-null required values- Specified by:
buildin interfaceBuilder<CartSetLineItemPriceAction>- Returns:
- CartSetLineItemPriceAction
-
buildUnchecked
builds CartSetLineItemPriceAction without checking for non-null required values- Returns:
- CartSetLineItemPriceAction
-
of
factory method for an instance of CartSetLineItemPriceActionBuilder- Returns:
- builder
-
of
create builder for CartSetLineItemPriceAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-