Class StagedOrderChangeLineItemQuantityActionBuilder
java.lang.Object
com.commercetools.api.models.order_edit.StagedOrderChangeLineItemQuantityActionBuilder
- All Implemented Interfaces:
io.vrap.rmf.base.client.Builder<StagedOrderChangeLineItemQuantityAction>
public class StagedOrderChangeLineItemQuantityActionBuilder
extends Object
implements io.vrap.rmf.base.client.Builder<StagedOrderChangeLineItemQuantityAction>
StagedOrderChangeLineItemQuantityActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
StagedOrderChangeLineItemQuantityAction stagedOrderChangeLineItemQuantityAction = StagedOrderChangeLineItemQuantityAction.builder()
.quantity(0.3)
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds StagedOrderChangeLineItemQuantityAction with checking for non-null required valuesbuilds StagedOrderChangeLineItemQuantityAction without checking for non-null required valuesexternalPrice
(Money externalPrice) Draft type that stores amounts only in cent precision for the specified currency.externalPrice
(Function<MoneyBuilder, MoneyBuilder> builder) Draft type that stores amounts only in cent precision for the specified currency.externalTotalPrice
(ExternalLineItemTotalPrice externalTotalPrice) set the value to the externalTotalPriceexternalTotalPrice
(Function<ExternalLineItemTotalPriceBuilder, ExternalLineItemTotalPriceBuilder> builder) set the value to the externalTotalPrice using the builder functionDraft type that stores amounts only in cent precision for the specified currency.value of externalTotalPrice}id
of the LineItem to update.key
of the LineItem to update.value of quantity}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 StagedOrderChangeLineItemQuantityActionBuilderof
(StagedOrderChangeLineItemQuantityAction template) create builder for StagedOrderChangeLineItemQuantityAction instanceset the value to the quantitywithExternalPrice
(Function<MoneyBuilder, Money> builder) Draft type that stores amounts only in cent precision for the specified currency.withExternalTotalPrice
(Function<ExternalLineItemTotalPriceBuilder, ExternalLineItemTotalPrice> builder) set the value to the externalTotalPrice using the builder function
-
Constructor Details
-
StagedOrderChangeLineItemQuantityActionBuilder
-
-
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
-
quantity
set the value to the quantity- Parameters:
quantity
- value to be set- Returns:
- Builder
-
externalPrice
public StagedOrderChangeLineItemQuantityActionBuilder externalPrice(Function<MoneyBuilder, MoneyBuilder> builder) Draft type that stores amounts only in cent precision for the specified currency.
- Parameters:
builder
- function to build the externalPrice value- Returns:
- Builder
-
withExternalPrice
public StagedOrderChangeLineItemQuantityActionBuilder withExternalPrice(Function<MoneyBuilder, Money> builder) Draft type that stores amounts only in cent precision for the specified currency.
- Parameters:
builder
- function to build the externalPrice value- Returns:
- Builder
-
externalPrice
Draft type that stores amounts only in cent precision for the specified currency.
- Parameters:
externalPrice
- value to be set- Returns:
- Builder
-
externalTotalPrice
public StagedOrderChangeLineItemQuantityActionBuilder externalTotalPrice(Function<ExternalLineItemTotalPriceBuilder, ExternalLineItemTotalPriceBuilder> builder) set the value to the externalTotalPrice using the builder function- Parameters:
builder
- function to build the externalTotalPrice value- Returns:
- Builder
-
withExternalTotalPrice
public StagedOrderChangeLineItemQuantityActionBuilder withExternalTotalPrice(Function<ExternalLineItemTotalPriceBuilder, ExternalLineItemTotalPrice> builder) set the value to the externalTotalPrice using the builder function- Parameters:
builder
- function to build the externalTotalPrice value- Returns:
- Builder
-
externalTotalPrice
public StagedOrderChangeLineItemQuantityActionBuilder externalTotalPrice(@Nullable ExternalLineItemTotalPrice externalTotalPrice) set the value to the externalTotalPrice- 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
-
getQuantity
value of quantity}- Returns:
- quantity
-
getExternalPrice
Draft type that stores amounts only in cent precision for the specified currency.
- Returns:
- externalPrice
-
getExternalTotalPrice
value of externalTotalPrice}- Returns:
- externalTotalPrice
-
build
builds StagedOrderChangeLineItemQuantityAction with checking for non-null required values- Specified by:
build
in interfaceio.vrap.rmf.base.client.Builder<StagedOrderChangeLineItemQuantityAction>
- Returns:
- StagedOrderChangeLineItemQuantityAction
-
buildUnchecked
builds StagedOrderChangeLineItemQuantityAction without checking for non-null required values- Returns:
- StagedOrderChangeLineItemQuantityAction
-
of
factory method for an instance of StagedOrderChangeLineItemQuantityActionBuilder- Returns:
- builder
-
of
public static StagedOrderChangeLineItemQuantityActionBuilder of(StagedOrderChangeLineItemQuantityAction template) create builder for StagedOrderChangeLineItemQuantityAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-