Interface RecurringOrderSetExpiresAtAction
- All Superinterfaces:
RecurringOrderUpdateAction
Setting the expiration date and time generates the RecurringOrderExpiresAtSet Message.
Example to create an instance using the builder pattern
RecurringOrderSetExpiresAtAction recurringOrderSetExpiresAtAction = RecurringOrderSetExpiresAtAction.builder()
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
discriminator value for RecurringOrderSetExpiresAtAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for RecurringOrderSetExpiresAtActionbuilder
(RecurringOrderSetExpiresAtAction template) create builder for RecurringOrderSetExpiresAtAction instancecopyDeep()
deepCopy
(RecurringOrderSetExpiresAtAction template) factory method to create a deep copy of RecurringOrderSetExpiresAtActionDate and time (UTC) the Recurring Order should expire.of()
factory methodof
(RecurringOrderSetExpiresAtAction template) factory method to create a shallow copy RecurringOrderSetExpiresAtActionvoid
setExpiresAt
(ZonedDateTime expiresAt) Date and time (UTC) the Recurring Order should expire.static com.fasterxml.jackson.core.type.TypeReference<RecurringOrderSetExpiresAtAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.recurring_order.RecurringOrderUpdateAction
getAction, withRecurringOrderUpdateAction
-
Field Details
-
SET_EXPIRES_AT
discriminator value for RecurringOrderSetExpiresAtAction- See Also:
-
-
Method Details
-
getExpiresAt
ZonedDateTime getExpiresAt()Date and time (UTC) the Recurring Order should expire. If empty, any existing value will be removed.
If the date or time is extended or removed when the RecurringOrderState is
Expired
, the state will be updated toActive
.- Returns:
- expiresAt
-
setExpiresAt
Date and time (UTC) the Recurring Order should expire. If empty, any existing value will be removed.
If the date or time is extended or removed when the RecurringOrderState is
Expired
, the state will be updated toActive
.- Parameters:
expiresAt
- value to be set
-
of
factory method- Returns:
- instance of RecurringOrderSetExpiresAtAction
-
of
factory method to create a shallow copy RecurringOrderSetExpiresAtAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
copyDeep
RecurringOrderSetExpiresAtAction copyDeep()- Specified by:
copyDeep
in interfaceRecurringOrderUpdateAction
-
deepCopy
@Nullable static RecurringOrderSetExpiresAtAction deepCopy(@Nullable RecurringOrderSetExpiresAtAction template) factory method to create a deep copy of RecurringOrderSetExpiresAtAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for RecurringOrderSetExpiresAtAction- Returns:
- builder
-
builder
create builder for RecurringOrderSetExpiresAtAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withRecurringOrderSetExpiresAtAction
default <T> T withRecurringOrderSetExpiresAtAction(Function<RecurringOrderSetExpiresAtAction, 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<RecurringOrderSetExpiresAtAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-