Interface StagedOrderSetReturnItemCustomTypeAction
- All Superinterfaces:
ResourceUpdateAction<StagedOrderUpdateAction>,StagedOrderUpdateAction
StagedOrderSetReturnItemCustomTypeAction
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
StagedOrderSetReturnItemCustomTypeAction stagedOrderSetReturnItemCustomTypeAction = StagedOrderSetReturnItemCustomTypeAction.builder()
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for StagedOrderSetReturnItemCustomTypeAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for StagedOrderSetReturnItemCustomTypeActioncreate builder for StagedOrderSetReturnItemCustomTypeAction instancecopyDeep()factory method to create a deep copy of StagedOrderSetReturnItemCustomTypeAction@Valid FieldContainerSets the Custom Fields fields for the Return Item.idof the ReturnItem to update.keyof the ReturnItem to update.@Valid TypeResourceIdentifiergetType()Defines the Type that extends the Return Item with Custom Fields.of()factory methodof(StagedOrderSetReturnItemCustomTypeAction template) factory method to create a shallow copy StagedOrderSetReturnItemCustomTypeActionvoidsetFields(FieldContainer fields) Sets the Custom Fields fields for the Return Item.voidsetReturnItemId(String returnItemId) idof the ReturnItem to update.voidsetReturnItemKey(String returnItemKey) keyof the ReturnItem to update.voidDefines the Type that extends the Return Item with Custom Fields.static com.fasterxml.jackson.core.type.TypeReference<StagedOrderSetReturnItemCustomTypeAction>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithStagedOrderSetReturnItemCustomTypeAction(Function<StagedOrderSetReturnItemCustomTypeAction, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.ResourceUpdateAction
getMethods inherited from interface com.commercetools.api.models.order.StagedOrderUpdateAction
getAction, withStagedOrderUpdateAction
-
Field Details
-
SET_RETURN_ITEM_CUSTOM_TYPE
discriminator value for StagedOrderSetReturnItemCustomTypeAction- See Also:
-
-
Method Details
-
getReturnItemId
String getReturnItemId()idof the ReturnItem to update. EitherreturnItemIdorreturnItemKeyis required.- Returns:
- returnItemId
-
getReturnItemKey
String getReturnItemKey()keyof the ReturnItem to update. EitherreturnItemIdorreturnItemKeyis required.- Returns:
- returnItemKey
-
getType
Defines the Type that extends the Return Item with Custom Fields. If absent, any existing Type and Custom Fields are removed from the Return Item.
- Returns:
- type
-
getFields
Sets the Custom Fields fields for the Return Item.
- Returns:
- fields
-
setReturnItemId
idof the ReturnItem to update. EitherreturnItemIdorreturnItemKeyis required.- Parameters:
returnItemId- value to be set
-
setReturnItemKey
keyof the ReturnItem to update. EitherreturnItemIdorreturnItemKeyis required.- Parameters:
returnItemKey- value to be set
-
setType
Defines the Type that extends the Return Item with Custom Fields. If absent, any existing Type and Custom Fields are removed from the Return Item.
- Parameters:
type- value to be set
-
setFields
Sets the Custom Fields fields for the Return Item.
- Parameters:
fields- value to be set
-
of
factory method- Returns:
- instance of StagedOrderSetReturnItemCustomTypeAction
-
of
static StagedOrderSetReturnItemCustomTypeAction of(StagedOrderSetReturnItemCustomTypeAction template) factory method to create a shallow copy StagedOrderSetReturnItemCustomTypeAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
StagedOrderSetReturnItemCustomTypeAction copyDeep()- Specified by:
copyDeepin interfaceStagedOrderUpdateAction
-
deepCopy
@Nullable static StagedOrderSetReturnItemCustomTypeAction deepCopy(@Nullable StagedOrderSetReturnItemCustomTypeAction template) factory method to create a deep copy of StagedOrderSetReturnItemCustomTypeAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for StagedOrderSetReturnItemCustomTypeAction- Returns:
- builder
-
builder
static StagedOrderSetReturnItemCustomTypeActionBuilder builder(StagedOrderSetReturnItemCustomTypeAction template) create builder for StagedOrderSetReturnItemCustomTypeAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withStagedOrderSetReturnItemCustomTypeAction
default <T> T withStagedOrderSetReturnItemCustomTypeAction(Function<StagedOrderSetReturnItemCustomTypeAction, 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<StagedOrderSetReturnItemCustomTypeAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-