Interface OrderImportCustomLineItemStateAction
- All Superinterfaces:
OrderUpdateAction,ResourceUpdateAction<OrderUpdateAction>
The import of States does not follow any predefined rules and should be only used if no transitions are defined. The quantity in the ItemStates must match the sum of all Custom Line Item states' quantities.
Example to create an instance using the builder pattern
OrderImportCustomLineItemStateAction orderImportCustomLineItemStateAction = OrderImportCustomLineItemStateAction.builder()
.plusState(stateBuilder -> stateBuilder)
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for OrderImportCustomLineItemStateAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for OrderImportCustomLineItemStateActionbuilder(OrderImportCustomLineItemStateAction template) create builder for OrderImportCustomLineItemStateAction instancecopyDeep()deepCopy(OrderImportCustomLineItemStateAction template) factory method to create a deep copy of OrderImportCustomLineItemStateActionidof the CustomLineItem to update.keyof the CustomLineItem to update.getState()New status of the Custom Line Items.of()factory methodof(OrderImportCustomLineItemStateAction template) factory method to create a shallow copy OrderImportCustomLineItemStateActionvoidsetCustomLineItemId(String customLineItemId) idof the CustomLineItem to update.voidsetCustomLineItemKey(String customLineItemKey) keyof the CustomLineItem to update.voidNew status of the Custom Line Items.voidNew status of the Custom Line Items.static com.fasterxml.jackson.core.type.TypeReference<OrderImportCustomLineItemStateAction>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map functionMethods inherited from interface com.commercetools.api.models.order.OrderUpdateAction
getAction, withOrderUpdateActionMethods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Field Details
-
IMPORT_CUSTOM_LINE_ITEM_STATE
discriminator value for OrderImportCustomLineItemStateAction- See Also:
-
-
Method Details
-
getCustomLineItemId
String getCustomLineItemId()idof the CustomLineItem to update. EithercustomLineItemIdorcustomLineItemKeyis required.- Returns:
- customLineItemId
-
getCustomLineItemKey
String getCustomLineItemKey()keyof the CustomLineItem to update. EithercustomLineItemIdorcustomLineItemKeyis required.- Returns:
- customLineItemKey
-
getState
New status of the Custom Line Items.
- Returns:
- state
-
setCustomLineItemId
idof the CustomLineItem to update. EithercustomLineItemIdorcustomLineItemKeyis required.- Parameters:
customLineItemId- value to be set
-
setCustomLineItemKey
keyof the CustomLineItem to update. EithercustomLineItemIdorcustomLineItemKeyis required.- Parameters:
customLineItemKey- value to be set
-
setState
New status of the Custom Line Items.
- Parameters:
state- values to be set
-
setState
New status of the Custom Line Items.
- Parameters:
state- values to be set
-
of
factory method- Returns:
- instance of OrderImportCustomLineItemStateAction
-
of
factory method to create a shallow copy OrderImportCustomLineItemStateAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
OrderImportCustomLineItemStateAction copyDeep()- Specified by:
copyDeepin interfaceOrderUpdateAction
-
deepCopy
@Nullable static OrderImportCustomLineItemStateAction deepCopy(@Nullable OrderImportCustomLineItemStateAction template) factory method to create a deep copy of OrderImportCustomLineItemStateAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for OrderImportCustomLineItemStateAction- Returns:
- builder
-
builder
static OrderImportCustomLineItemStateActionBuilder builder(OrderImportCustomLineItemStateAction template) create builder for OrderImportCustomLineItemStateAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withOrderImportCustomLineItemStateAction
default <T> T withOrderImportCustomLineItemStateAction(Function<OrderImportCustomLineItemStateAction, 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<OrderImportCustomLineItemStateAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-