Interface OrderSetCustomTypeAction
- All Superinterfaces:
OrderUpdateAction
,ResourceUpdateAction<OrderUpdateAction>
OrderSetCustomTypeAction
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
OrderSetCustomTypeAction orderSetCustomTypeAction = OrderSetCustomTypeAction.builder()
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
discriminator value for OrderSetCustomTypeAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for OrderSetCustomTypeActionbuilder
(OrderSetCustomTypeAction template) create builder for OrderSetCustomTypeAction instancestatic OrderSetCustomTypeAction
deepCopy
(OrderSetCustomTypeAction template) factory method to create a deep copy of OrderSetCustomTypeAction@Valid FieldContainer
Sets the Custom Fields fields for the Order.@Valid TypeResourceIdentifier
getType()
Defines the Type that extends the Order with Custom Fields.static OrderSetCustomTypeAction
of()
factory methodstatic OrderSetCustomTypeAction
of
(OrderSetCustomTypeAction template) factory method to create a shallow copy OrderSetCustomTypeActionvoid
setFields
(FieldContainer fields) Sets the Custom Fields fields for the Order.void
Defines the Type that extends the Order with Custom Fields.static com.fasterxml.jackson.core.type.TypeReference<OrderSetCustomTypeAction>
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_CUSTOM_TYPE
discriminator value for OrderSetCustomTypeAction- See Also:
-
-
Method Details
-
getType
Defines the Type that extends the Order with Custom Fields. If absent, any existing Type and Custom Fields are removed from the Order.
- Returns:
- type
-
getFields
Sets the Custom Fields fields for the Order.
- Returns:
- fields
-
setType
Defines the Type that extends the Order with Custom Fields. If absent, any existing Type and Custom Fields are removed from the Order.
- Parameters:
type
- value to be set
-
setFields
Sets the Custom Fields fields for the Order.
- Parameters:
fields
- value to be set
-
of
factory method- Returns:
- instance of OrderSetCustomTypeAction
-
of
factory method to create a shallow copy OrderSetCustomTypeAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of OrderSetCustomTypeAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for OrderSetCustomTypeAction- Returns:
- builder
-
builder
create builder for OrderSetCustomTypeAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withOrderSetCustomTypeAction
accessor map function- Type Parameters:
T
- mapped type- Parameters:
helper
- function to map the object- Returns:
- mapped value
-
typeReference
gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-