Class StagedOrderRemoveLineItemActionBuilder
- All Implemented Interfaces:
io.vrap.rmf.base.client.Builder<StagedOrderRemoveLineItemAction>
Example to create an instance using the builder pattern
StagedOrderRemoveLineItemAction stagedOrderRemoveLineItemAction = StagedOrderRemoveLineItemAction.builder()
.lineItemId("{lineItemId}")
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds StagedOrderRemoveLineItemAction with checking for non-null required valuesbuilds StagedOrderRemoveLineItemAction 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}value of lineItemId}value of quantity}For order creation and updates, the sum of thetargets
must match the quantity of the Line Items or Custom Line Items.lineItemId
(String lineItemId) set the value to the lineItemIdof()
factory method for an instance of StagedOrderRemoveLineItemActionBuilderof
(StagedOrderRemoveLineItemAction template) create builder for StagedOrderRemoveLineItemAction instanceset the value to the quantityshippingDetailsToRemove
(ItemShippingDetailsDraft shippingDetailsToRemove) For order creation and updates, the sum of thetargets
must match the quantity of the Line Items or Custom Line Items.shippingDetailsToRemove
(Function<ItemShippingDetailsDraftBuilder, ItemShippingDetailsDraftBuilder> builder) For order creation and updates, the sum of thetargets
must match the quantity of the Line Items or Custom Line Items.withExternalPrice
(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 functionwithShippingDetailsToRemove
(Function<ItemShippingDetailsDraftBuilder, ItemShippingDetailsDraft> builder) For order creation and updates, the sum of thetargets
must match the quantity of the Line Items or Custom Line Items.
-
Constructor Details
-
StagedOrderRemoveLineItemActionBuilder
-
-
Method Details
-
lineItemId
set the value to the lineItemId- Parameters:
lineItemId
- value to be set- Returns:
- Builder
-
quantity
set the value to the quantity- Parameters:
quantity
- value to be set- Returns:
- Builder
-
externalPrice
public StagedOrderRemoveLineItemActionBuilder 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 StagedOrderRemoveLineItemActionBuilder 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 StagedOrderRemoveLineItemActionBuilder 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 StagedOrderRemoveLineItemActionBuilder 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 StagedOrderRemoveLineItemActionBuilder externalTotalPrice(@Nullable ExternalLineItemTotalPrice externalTotalPrice) set the value to the externalTotalPrice- Parameters:
externalTotalPrice
- value to be set- Returns:
- Builder
-
shippingDetailsToRemove
public StagedOrderRemoveLineItemActionBuilder shippingDetailsToRemove(Function<ItemShippingDetailsDraftBuilder, ItemShippingDetailsDraftBuilder> builder) For order creation and updates, the sum of the
targets
must match the quantity of the Line Items or Custom Line Items.- Parameters:
builder
- function to build the shippingDetailsToRemove value- Returns:
- Builder
-
withShippingDetailsToRemove
public StagedOrderRemoveLineItemActionBuilder withShippingDetailsToRemove(Function<ItemShippingDetailsDraftBuilder, ItemShippingDetailsDraft> builder) For order creation and updates, the sum of the
targets
must match the quantity of the Line Items or Custom Line Items.- Parameters:
builder
- function to build the shippingDetailsToRemove value- Returns:
- Builder
-
shippingDetailsToRemove
public StagedOrderRemoveLineItemActionBuilder shippingDetailsToRemove(@Nullable ItemShippingDetailsDraft shippingDetailsToRemove) For order creation and updates, the sum of the
targets
must match the quantity of the Line Items or Custom Line Items.- Parameters:
shippingDetailsToRemove
- value to be set- Returns:
- Builder
-
getLineItemId
value of lineItemId}- Returns:
- lineItemId
-
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
-
getShippingDetailsToRemove
For order creation and updates, the sum of the
targets
must match the quantity of the Line Items or Custom Line Items.- Returns:
- shippingDetailsToRemove
-
build
builds StagedOrderRemoveLineItemAction with checking for non-null required values- Specified by:
build
in interfaceio.vrap.rmf.base.client.Builder<StagedOrderRemoveLineItemAction>
- Returns:
- StagedOrderRemoveLineItemAction
-
buildUnchecked
builds StagedOrderRemoveLineItemAction without checking for non-null required values- Returns:
- StagedOrderRemoveLineItemAction
-
of
factory method for an instance of StagedOrderRemoveLineItemActionBuilder- Returns:
- builder
-
of
create builder for StagedOrderRemoveLineItemAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-