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 String
discriminator value for StagedOrderSetReturnItemCustomTypeAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for StagedOrderSetReturnItemCustomTypeActioncreate builder for StagedOrderSetReturnItemCustomTypeAction instancefactory method to create a deep copy of StagedOrderSetReturnItemCustomTypeAction@Valid FieldContainer
Sets the Custom Fields fields for the Return Item.id
of the ReturnItem to update.key
of the ReturnItem to update.@Valid TypeResourceIdentifier
getType()
Defines the Type that extends the Return Item with Custom Fields.of()
factory methodof
(StagedOrderSetReturnItemCustomTypeAction template) factory method to create a shallow copy StagedOrderSetReturnItemCustomTypeActionvoid
setFields
(FieldContainer fields) Sets the Custom Fields fields for the Return Item.void
setReturnItemId
(String returnItemId) id
of the ReturnItem to update.void
setReturnItemKey
(String returnItemKey) key
of the ReturnItem to update.void
Defines 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> T
withStagedOrderSetReturnItemCustomTypeAction
(Function<StagedOrderSetReturnItemCustomTypeAction, 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_RETURN_ITEM_CUSTOM_TYPE
discriminator value for StagedOrderSetReturnItemCustomTypeAction- See Also:
-
-
Method Details
-
getReturnItemId
String getReturnItemId()id
of the ReturnItem to update. EitherreturnItemId
orreturnItemKey
is required.- Returns:
- returnItemId
-
getReturnItemKey
String getReturnItemKey()key
of the ReturnItem to update. EitherreturnItemId
orreturnItemKey
is 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
id
of the ReturnItem to update. EitherreturnItemId
orreturnItemKey
is required.- Parameters:
returnItemId
- value to be set
-
setReturnItemKey
key
of the ReturnItem to update. EitherreturnItemId
orreturnItemKey
is 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
-
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
-