Class StagedOrderSetLineItemPriceActionBuilder
- All Implemented Interfaces:
Builder<StagedOrderSetLineItemPriceAction>
Example to create an instance using the builder pattern
StagedOrderSetLineItemPriceAction stagedOrderSetLineItemPriceAction = StagedOrderSetLineItemPriceAction.builder()
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds StagedOrderSetLineItemPriceAction with checking for non-null required valuesbuilds StagedOrderSetLineItemPriceAction 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 StagedOrderSetLineItemPriceActionBuilderof
(StagedOrderSetLineItemPriceAction template) create builder for StagedOrderSetLineItemPriceAction instancewithExternalPrice
(Function<MoneyBuilder, Money> builder) Value to set.
-
Constructor Details
-
StagedOrderSetLineItemPriceActionBuilder
public StagedOrderSetLineItemPriceActionBuilder()
-
-
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
public StagedOrderSetLineItemPriceActionBuilder externalPrice(Function<MoneyBuilder, MoneyBuilder> builder) 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
public StagedOrderSetLineItemPriceActionBuilder withExternalPrice(Function<MoneyBuilder, Money> builder) 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 StagedOrderSetLineItemPriceAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<StagedOrderSetLineItemPriceAction>
- Returns:
- StagedOrderSetLineItemPriceAction
-
buildUnchecked
builds StagedOrderSetLineItemPriceAction without checking for non-null required values- Returns:
- StagedOrderSetLineItemPriceAction
-
of
factory method for an instance of StagedOrderSetLineItemPriceActionBuilder- Returns:
- builder
-
of
public static StagedOrderSetLineItemPriceActionBuilder of(StagedOrderSetLineItemPriceAction template) create builder for StagedOrderSetLineItemPriceAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-