Class CartSetLineItemPriceActionBuilder
- All Implemented Interfaces:
Builder<CartSetLineItemPriceAction>
Example to create an instance using the builder pattern
CartSetLineItemPriceAction cartSetLineItemPriceAction = CartSetLineItemPriceAction.builder()
.build()
-
Constructor Summary
-
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.id
of the LineItem to update.key
of the LineItem to update.lineItemId
(String lineItemId) id
of the LineItem to update.lineItemKey
(String lineItemKey) key
of 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
id
of the LineItem to update. EitherlineItemId
orlineItemKey
is required.- Parameters:
lineItemId
- value to be set- Returns:
- Builder
-
lineItemKey
key
of the LineItem to update. EitherlineItemId
orlineItemKey
is required.- Parameters:
lineItemKey
- value to be set- Returns:
- Builder
-
externalPrice
Value to set. If
externalPrice
is not given and thepriceMode
isExternalPrice
, the external price is unset and thepriceMode
is set toPlatform
.- Parameters:
builder
- function to build the externalPrice value- Returns:
- Builder
-
withExternalPrice
Value to set. If
externalPrice
is not given and thepriceMode
isExternalPrice
, the external price is unset and thepriceMode
is set toPlatform
.- Parameters:
builder
- function to build the externalPrice value- Returns:
- Builder
-
externalPrice
Value to set. If
externalPrice
is not given and thepriceMode
isExternalPrice
, the external price is unset and thepriceMode
is set toPlatform
.- Parameters:
externalPrice
- value to be set- Returns:
- Builder
-
getLineItemId
id
of the LineItem to update. EitherlineItemId
orlineItemKey
is required.- Returns:
- lineItemId
-
getLineItemKey
key
of the LineItem to update. EitherlineItemId
orlineItemKey
is required.- Returns:
- lineItemKey
-
getExternalPrice
Value to set. If
externalPrice
is not given and thepriceMode
isExternalPrice
, the external price is unset and thepriceMode
is set toPlatform
.- Returns:
- externalPrice
-
build
builds CartSetLineItemPriceAction with checking for non-null required values- Specified by:
build
in 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
-