Interface StagedOrderSetCustomLineItemShippingDetailsAction
- All Superinterfaces:
ResourceUpdateAction<StagedOrderUpdateAction>
,StagedOrderUpdateAction
StagedOrderSetCustomLineItemShippingDetailsAction
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
StagedOrderSetCustomLineItemShippingDetailsAction stagedOrderSetCustomLineItemShippingDetailsAction = StagedOrderSetCustomLineItemShippingDetailsAction.builder()
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
discriminator value for StagedOrderSetCustomLineItemShippingDetailsAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for StagedOrderSetCustomLineItemShippingDetailsActioncreate builder for StagedOrderSetCustomLineItemShippingDetailsAction instancefactory method to create a deep copy of StagedOrderSetCustomLineItemShippingDetailsActionid
of the CustomLineItem to update.key
of the CustomLineItem to update.@Valid ItemShippingDetailsDraft
Value to set.of()
factory methodfactory method to create a shallow copy StagedOrderSetCustomLineItemShippingDetailsActionvoid
setCustomLineItemId
(String customLineItemId) id
of the CustomLineItem to update.void
setCustomLineItemKey
(String customLineItemKey) key
of the CustomLineItem to update.void
setShippingDetails
(ItemShippingDetailsDraft shippingDetails) Value to set.static com.fasterxml.jackson.core.type.TypeReference<StagedOrderSetCustomLineItemShippingDetailsAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withStagedOrderSetCustomLineItemShippingDetailsAction
(Function<StagedOrderSetCustomLineItemShippingDetailsAction, 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_CUSTOM_LINE_ITEM_SHIPPING_DETAILS
discriminator value for StagedOrderSetCustomLineItemShippingDetailsAction- See Also:
-
-
Method Details
-
getCustomLineItemId
String getCustomLineItemId()id
of the CustomLineItem to update. EithercustomLineItemId
orcustomLineItemKey
is required.- Returns:
- customLineItemId
-
getCustomLineItemKey
String getCustomLineItemKey()key
of the CustomLineItem to update. EithercustomLineItemId
orcustomLineItemKey
is required.- Returns:
- customLineItemKey
-
getShippingDetails
Value to set. If empty, any existing value is removed.
- Returns:
- shippingDetails
-
setCustomLineItemId
id
of the CustomLineItem to update. EithercustomLineItemId
orcustomLineItemKey
is required.- Parameters:
customLineItemId
- value to be set
-
setCustomLineItemKey
key
of the CustomLineItem to update. EithercustomLineItemId
orcustomLineItemKey
is required.- Parameters:
customLineItemKey
- value to be set
-
setShippingDetails
Value to set. If empty, any existing value is removed.
- Parameters:
shippingDetails
- value to be set
-
of
factory method- Returns:
- instance of StagedOrderSetCustomLineItemShippingDetailsAction
-
of
static StagedOrderSetCustomLineItemShippingDetailsAction of(StagedOrderSetCustomLineItemShippingDetailsAction template) factory method to create a shallow copy StagedOrderSetCustomLineItemShippingDetailsAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static StagedOrderSetCustomLineItemShippingDetailsAction deepCopy(@Nullable StagedOrderSetCustomLineItemShippingDetailsAction template) factory method to create a deep copy of StagedOrderSetCustomLineItemShippingDetailsAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for StagedOrderSetCustomLineItemShippingDetailsAction- Returns:
- builder
-
builder
static StagedOrderSetCustomLineItemShippingDetailsActionBuilder builder(StagedOrderSetCustomLineItemShippingDetailsAction template) create builder for StagedOrderSetCustomLineItemShippingDetailsAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withStagedOrderSetCustomLineItemShippingDetailsAction
default <T> T withStagedOrderSetCustomLineItemShippingDetailsAction(Function<StagedOrderSetCustomLineItemShippingDetailsAction, 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<StagedOrderSetCustomLineItemShippingDetailsAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-