Class StagedOrderSetLineItemTotalPriceActionBuilder
- All Implemented Interfaces:
Builder<StagedOrderSetLineItemTotalPriceAction>
Example to create an instance using the builder pattern
StagedOrderSetLineItemTotalPriceAction stagedOrderSetLineItemTotalPriceAction = StagedOrderSetLineItemTotalPriceAction.builder()
.build()
-
Constructor Summary
-
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.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 StagedOrderSetLineItemTotalPriceActionBuilderof
(StagedOrderSetLineItemTotalPriceAction template) create builder for StagedOrderSetLineItemTotalPriceAction instancewithExternalTotalPrice
(Function<ExternalLineItemTotalPriceBuilder, ExternalLineItemTotalPrice> builder) Value to set.
-
Constructor Details
-
StagedOrderSetLineItemTotalPriceActionBuilder
public StagedOrderSetLineItemTotalPriceActionBuilder()
-
-
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 StagedOrderSetLineItemTotalPriceActionBuilder 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 StagedOrderSetLineItemTotalPriceActionBuilder 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 StagedOrderSetLineItemTotalPriceActionBuilder 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 StagedOrderSetLineItemTotalPriceAction with checking for non-null required values- Specified by:
build
in 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
-