Class StagedOrderSetLineItemShippingDetailsActionBuilder
- All Implemented Interfaces:
io.vrap.rmf.base.client.Builder<StagedOrderSetLineItemShippingDetailsAction>
Example to create an instance using the builder pattern
StagedOrderSetLineItemShippingDetailsAction stagedOrderSetLineItemShippingDetailsAction = StagedOrderSetLineItemShippingDetailsAction.builder()
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds StagedOrderSetLineItemShippingDetailsAction with checking for non-null required valuesbuilds StagedOrderSetLineItemShippingDetailsAction without checking for non-null required valuesid
of the LineItem to update.key
of the LineItem to update.For order creation and updates, the sum of thetargets
must match the quantity of the Line Items or Custom Line Items.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 StagedOrderSetLineItemShippingDetailsActionBuildercreate builder for StagedOrderSetLineItemShippingDetailsAction instanceshippingDetails
(ItemShippingDetailsDraft shippingDetails) For order creation and updates, the sum of thetargets
must match the quantity of the Line Items or Custom Line Items.For order creation and updates, the sum of thetargets
must match the quantity of the Line Items or Custom Line Items.For order creation and updates, the sum of thetargets
must match the quantity of the Line Items or Custom Line Items.
-
Constructor Details
-
StagedOrderSetLineItemShippingDetailsActionBuilder
-
-
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
-
shippingDetails
public StagedOrderSetLineItemShippingDetailsActionBuilder shippingDetails(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 shippingDetails value- Returns:
- Builder
-
withShippingDetails
public StagedOrderSetLineItemShippingDetailsActionBuilder withShippingDetails(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 shippingDetails value- Returns:
- Builder
-
shippingDetails
public StagedOrderSetLineItemShippingDetailsActionBuilder shippingDetails(@Nullable ItemShippingDetailsDraft shippingDetails) For order creation and updates, the sum of the
targets
must match the quantity of the Line Items or Custom Line Items.- Parameters:
shippingDetails
- 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
-
getShippingDetails
For order creation and updates, the sum of the
targets
must match the quantity of the Line Items or Custom Line Items.- Returns:
- shippingDetails
-
build
builds StagedOrderSetLineItemShippingDetailsAction with checking for non-null required values- Specified by:
build
in interfaceio.vrap.rmf.base.client.Builder<StagedOrderSetLineItemShippingDetailsAction>
- Returns:
- StagedOrderSetLineItemShippingDetailsAction
-
buildUnchecked
builds StagedOrderSetLineItemShippingDetailsAction without checking for non-null required values- Returns:
- StagedOrderSetLineItemShippingDetailsAction
-
of
factory method for an instance of StagedOrderSetLineItemShippingDetailsActionBuilder- Returns:
- builder
-
of
public static StagedOrderSetLineItemShippingDetailsActionBuilder of(StagedOrderSetLineItemShippingDetailsAction template) create builder for StagedOrderSetLineItemShippingDetailsAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-