Interface OrderSetReturnItemCustomTypeAction
- All Superinterfaces:
OrderUpdateAction
,ResourceUpdateAction<OrderUpdateAction>
OrderSetReturnItemCustomTypeAction
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
OrderSetReturnItemCustomTypeAction orderSetReturnItemCustomTypeAction = OrderSetReturnItemCustomTypeAction.builder()
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
discriminator value for OrderSetReturnItemCustomTypeAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for OrderSetReturnItemCustomTypeActionbuilder
(OrderSetReturnItemCustomTypeAction template) create builder for OrderSetReturnItemCustomTypeAction instancedeepCopy
(OrderSetReturnItemCustomTypeAction template) factory method to create a deep copy of OrderSetReturnItemCustomTypeAction@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
(OrderSetReturnItemCustomTypeAction template) factory method to create a shallow copy OrderSetReturnItemCustomTypeActionvoid
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<OrderSetReturnItemCustomTypeAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.order.OrderUpdateAction
getAction, withOrderUpdateAction
Methods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Field Details
-
SET_RETURN_ITEM_CUSTOM_TYPE
discriminator value for OrderSetReturnItemCustomTypeAction- 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 OrderSetReturnItemCustomTypeAction
-
of
factory method to create a shallow copy OrderSetReturnItemCustomTypeAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static OrderSetReturnItemCustomTypeAction deepCopy(@Nullable OrderSetReturnItemCustomTypeAction template) factory method to create a deep copy of OrderSetReturnItemCustomTypeAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for OrderSetReturnItemCustomTypeAction- Returns:
- builder
-
builder
static OrderSetReturnItemCustomTypeActionBuilder builder(OrderSetReturnItemCustomTypeAction template) create builder for OrderSetReturnItemCustomTypeAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withOrderSetReturnItemCustomTypeAction
default <T> T withOrderSetReturnItemCustomTypeAction(Function<OrderSetReturnItemCustomTypeAction, 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<OrderSetReturnItemCustomTypeAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-