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 Stringdiscriminator value for OrderSetReturnItemCustomTypeAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for OrderSetReturnItemCustomTypeActionbuilder(OrderSetReturnItemCustomTypeAction template) create builder for OrderSetReturnItemCustomTypeAction instancecopyDeep()deepCopy(OrderSetReturnItemCustomTypeAction template) factory method to create a deep copy of OrderSetReturnItemCustomTypeAction@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(OrderSetReturnItemCustomTypeAction template) factory method to create a shallow copy OrderSetReturnItemCustomTypeActionvoidsetFields(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<OrderSetReturnItemCustomTypeAction>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
-
SET_RETURN_ITEM_CUSTOM_TYPE
discriminator value for OrderSetReturnItemCustomTypeAction- 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 OrderSetReturnItemCustomTypeAction
-
of
factory method to create a shallow copy OrderSetReturnItemCustomTypeAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
OrderSetReturnItemCustomTypeAction copyDeep()- Specified by:
copyDeepin interfaceOrderUpdateAction
-
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
-