Interface RecurringOrderSetCustomTypeAction
- All Superinterfaces:
RecurringOrderUpdateAction
Adding or updating a Custom Type on a Recurring Order generates the RecurringOrderCustomTypeSet Message, removing one generates the RecurringOrderCustomTypeRemoved Message.
Example to create an instance using the builder pattern
RecurringOrderSetCustomTypeAction recurringOrderSetCustomTypeAction = RecurringOrderSetCustomTypeAction.builder()
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for RecurringOrderSetCustomTypeAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for RecurringOrderSetCustomTypeActionbuilder(RecurringOrderSetCustomTypeAction template) create builder for RecurringOrderSetCustomTypeAction instancecopyDeep()deepCopy(RecurringOrderSetCustomTypeAction template) factory method to create a deep copy of RecurringOrderSetCustomTypeAction@Valid FieldContainerSets the Custom Fields fields for the RecurringOrder.@Valid TypeResourceIdentifiergetType()Defines the Type that extends the RecurringOrder with Custom Fields.of()factory methodof(RecurringOrderSetCustomTypeAction template) factory method to create a shallow copy RecurringOrderSetCustomTypeActionvoidsetFields(FieldContainer fields) Sets the Custom Fields fields for the RecurringOrder.voidDefines the Type that extends the RecurringOrder with Custom Fields.static com.fasterxml.jackson.core.type.TypeReference<RecurringOrderSetCustomTypeAction>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map functionMethods inherited from interface com.commercetools.api.models.recurring_order.RecurringOrderUpdateAction
getAction, withRecurringOrderUpdateAction
-
Field Details
-
SET_CUSTOM_TYPE
discriminator value for RecurringOrderSetCustomTypeAction- See Also:
-
-
Method Details
-
getType
Defines the Type that extends the RecurringOrder with Custom Fields. If absent, any existing Type and Custom Fields are removed from the RecurringOrder.
- Returns:
- type
-
getFields
Sets the Custom Fields fields for the RecurringOrder.
- Returns:
- fields
-
setType
Defines the Type that extends the RecurringOrder with Custom Fields. If absent, any existing Type and Custom Fields are removed from the RecurringOrder.
- Parameters:
type- value to be set
-
setFields
Sets the Custom Fields fields for the RecurringOrder.
- Parameters:
fields- value to be set
-
of
factory method- Returns:
- instance of RecurringOrderSetCustomTypeAction
-
of
factory method to create a shallow copy RecurringOrderSetCustomTypeAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
RecurringOrderSetCustomTypeAction copyDeep()- Specified by:
copyDeepin interfaceRecurringOrderUpdateAction
-
deepCopy
@Nullable static RecurringOrderSetCustomTypeAction deepCopy(@Nullable RecurringOrderSetCustomTypeAction template) factory method to create a deep copy of RecurringOrderSetCustomTypeAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for RecurringOrderSetCustomTypeAction- Returns:
- builder
-
builder
create builder for RecurringOrderSetCustomTypeAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withRecurringOrderSetCustomTypeAction
default <T> T withRecurringOrderSetCustomTypeAction(Function<RecurringOrderSetCustomTypeAction, 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<RecurringOrderSetCustomTypeAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-