Class CartSetLineItemTotalPriceActionBuilder
- All Implemented Interfaces:
Builder<CartSetLineItemTotalPriceAction>
Example to create an instance using the builder pattern
CartSetLineItemTotalPriceAction cartSetLineItemTotalPriceAction = CartSetLineItemTotalPriceAction.builder()
.build()
-
Constructor Summary
-
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.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 CartSetLineItemTotalPriceActionBuilderof
(CartSetLineItemTotalPriceAction template) create builder for CartSetLineItemTotalPriceAction instancewithExternalTotalPrice
(Function<ExternalLineItemTotalPriceBuilder, ExternalLineItemTotalPrice> builder) Value to set.
-
Constructor Details
-
CartSetLineItemTotalPriceActionBuilder
public CartSetLineItemTotalPriceActionBuilder()
-
-
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
-
externalTotalPrice
public CartSetLineItemTotalPriceActionBuilder externalTotalPrice(Function<ExternalLineItemTotalPriceBuilder, ExternalLineItemTotalPriceBuilder> builder) Value to set. If
externalTotalPrice
is not given and thepriceMode
isExternalTotal
, the external price is unset and thepriceMode
is set toPlatform
.- Parameters:
builder
- function to build the externalTotalPrice value- Returns:
- Builder
-
withExternalTotalPrice
public CartSetLineItemTotalPriceActionBuilder withExternalTotalPrice(Function<ExternalLineItemTotalPriceBuilder, ExternalLineItemTotalPrice> builder) Value to set. If
externalTotalPrice
is not given and thepriceMode
isExternalTotal
, the external price is unset and thepriceMode
is set toPlatform
.- Parameters:
builder
- function to build the externalTotalPrice value- Returns:
- Builder
-
externalTotalPrice
public CartSetLineItemTotalPriceActionBuilder externalTotalPrice(@Nullable ExternalLineItemTotalPrice externalTotalPrice) Value to set. If
externalTotalPrice
is not given and thepriceMode
isExternalTotal
, the external price is unset and thepriceMode
is set toPlatform
.- Parameters:
externalTotalPrice
- 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
-
getExternalTotalPrice
Value to set. If
externalTotalPrice
is not given and thepriceMode
isExternalTotal
, the external price is unset and thepriceMode
is set toPlatform
.- Returns:
- externalTotalPrice
-
build
builds CartSetLineItemTotalPriceAction with checking for non-null required values- Specified by:
build
in 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
-