Class CartSetLineItemTotalPriceActionBuilder
- All Implemented Interfaces:
Builder<CartSetLineItemTotalPriceAction>
Example to create an instance using the builder pattern
CartSetLineItemTotalPriceAction cartSetLineItemTotalPriceAction = CartSetLineItemTotalPriceAction.builder()
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()builds CartSetLineItemTotalPriceAction with checking for non-null required valuesbuilds CartSetLineItemTotalPriceAction without checking for non-null required valuesexternalTotalPrice(ExternalLineItemTotalPrice externalTotalPrice) Value to set.externalTotalPrice(Function<ExternalLineItemTotalPriceBuilder, ExternalLineItemTotalPriceBuilder> 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 CartSetLineItemTotalPriceActionBuilderof(CartSetLineItemTotalPriceAction template) create builder for CartSetLineItemTotalPriceAction instancewithExternalTotalPrice(Function<ExternalLineItemTotalPriceBuilder, ExternalLineItemTotalPrice> builder) Value to set.
-
Constructor Details
-
CartSetLineItemTotalPriceActionBuilder
public CartSetLineItemTotalPriceActionBuilder()
-
-
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
-
externalTotalPrice
public CartSetLineItemTotalPriceActionBuilder externalTotalPrice(Function<ExternalLineItemTotalPriceBuilder, ExternalLineItemTotalPriceBuilder> builder) Value to set. If
externalTotalPriceis not given and thepriceModeisExternalTotal, the external price is unset and thepriceModeis set toPlatform.- Parameters:
builder- function to build the externalTotalPrice value- Returns:
- Builder
-
withExternalTotalPrice
public CartSetLineItemTotalPriceActionBuilder withExternalTotalPrice(Function<ExternalLineItemTotalPriceBuilder, ExternalLineItemTotalPrice> builder) Value to set. If
externalTotalPriceis not given and thepriceModeisExternalTotal, the external price is unset and thepriceModeis set toPlatform.- Parameters:
builder- function to build the externalTotalPrice value- Returns:
- Builder
-
externalTotalPrice
public CartSetLineItemTotalPriceActionBuilder externalTotalPrice(@Nullable ExternalLineItemTotalPrice externalTotalPrice) Value to set. If
externalTotalPriceis not given and thepriceModeisExternalTotal, the external price is unset and thepriceModeis set toPlatform.- Parameters:
externalTotalPrice- 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
-
getExternalTotalPrice
Value to set. If
externalTotalPriceis not given and thepriceModeisExternalTotal, the external price is unset and thepriceModeis set toPlatform.- Returns:
- externalTotalPrice
-
build
builds CartSetLineItemTotalPriceAction with checking for non-null required values- Specified by:
buildin interfaceBuilder<CartSetLineItemTotalPriceAction>- Returns:
- CartSetLineItemTotalPriceAction
-
buildUnchecked
builds CartSetLineItemTotalPriceAction without checking for non-null required values- Returns:
- CartSetLineItemTotalPriceAction
-
of
factory method for an instance of CartSetLineItemTotalPriceActionBuilder- Returns:
- builder
-
of
create builder for CartSetLineItemTotalPriceAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-