Interface StagedOrderSetLineItemShippingDetailsAction
- All Superinterfaces:
ResourceUpdateAction<StagedOrderUpdateAction>
,StagedOrderUpdateAction
- All Known Implementing Classes:
StagedOrderSetLineItemShippingDetailsActionImpl
StagedOrderSetLineItemShippingDetailsAction
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
StagedOrderSetLineItemShippingDetailsAction stagedOrderSetLineItemShippingDetailsAction = StagedOrderSetLineItemShippingDetailsAction.builder()
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
discriminator value for StagedOrderSetLineItemShippingDetailsAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for StagedOrderSetLineItemShippingDetailsActioncreate builder for StagedOrderSetLineItemShippingDetailsAction instancefactory method to create a deep copy of StagedOrderSetLineItemShippingDetailsActionid
of the LineItem to update.key
of the LineItem to update.@Valid ItemShippingDetailsDraft
For order creation and updates, the sum of thetargets
must match the quantity of the Line Items or Custom Line Items.of()
factory methodfactory method to create a shallow copy StagedOrderSetLineItemShippingDetailsActionvoid
setLineItemId
(String lineItemId) id
of the LineItem to update.void
setLineItemKey
(String lineItemKey) key
of the LineItem to update.void
setShippingDetails
(ItemShippingDetailsDraft shippingDetails) For order creation and updates, the sum of thetargets
must match the quantity of the Line Items or Custom Line Items.static com.fasterxml.jackson.core.type.TypeReference<StagedOrderSetLineItemShippingDetailsAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withStagedOrderSetLineItemShippingDetailsAction
(Function<StagedOrderSetLineItemShippingDetailsAction, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
Methods inherited from interface com.commercetools.api.models.order.StagedOrderUpdateAction
getAction, withStagedOrderUpdateAction
-
Field Details
-
SET_LINE_ITEM_SHIPPING_DETAILS
discriminator value for StagedOrderSetLineItemShippingDetailsAction- See Also:
-
-
Method Details
-
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
-
setLineItemId
id
of the LineItem to update. EitherlineItemId
orlineItemKey
is required.- Parameters:
lineItemId
- value to be set
-
setLineItemKey
key
of the LineItem to update. EitherlineItemId
orlineItemKey
is required.- Parameters:
lineItemKey
- value to be set
-
setShippingDetails
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
-
of
factory method- Returns:
- instance of StagedOrderSetLineItemShippingDetailsAction
-
of
static StagedOrderSetLineItemShippingDetailsAction of(StagedOrderSetLineItemShippingDetailsAction template) factory method to create a shallow copy StagedOrderSetLineItemShippingDetailsAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static StagedOrderSetLineItemShippingDetailsAction deepCopy(@Nullable StagedOrderSetLineItemShippingDetailsAction template) factory method to create a deep copy of StagedOrderSetLineItemShippingDetailsAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for StagedOrderSetLineItemShippingDetailsAction- Returns:
- builder
-
builder
static StagedOrderSetLineItemShippingDetailsActionBuilder builder(StagedOrderSetLineItemShippingDetailsAction template) create builder for StagedOrderSetLineItemShippingDetailsAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withStagedOrderSetLineItemShippingDetailsAction
default <T> T withStagedOrderSetLineItemShippingDetailsAction(Function<StagedOrderSetLineItemShippingDetailsAction, T> helper) accessor map function- Type Parameters:
T
- mapped type- Parameters:
helper
- function to map the object- Returns:
- mapped value
-
typeReference
static com.fasterxml.jackson.core.type.TypeReference<StagedOrderSetLineItemShippingDetailsAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-