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