Interface RecurringOrderExpiresAtSetMessagePayload
- All Superinterfaces:
MessagePayload
,MessagePayloadMixin
Generated after a successful Set Expires At update action.
Example to create an instance using the builder pattern
RecurringOrderExpiresAtSetMessagePayload recurringOrderExpiresAtSetMessagePayload = RecurringOrderExpiresAtSetMessagePayload.builder()
.newExpiresAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
.oldExpiresAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
discriminator value for RecurringOrderExpiresAtSetMessagePayload -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for RecurringOrderExpiresAtSetMessagePayloadcreate builder for RecurringOrderExpiresAtSetMessagePayload instancecopyDeep()
factory method to create a deep copy of RecurringOrderExpiresAtSetMessagePayload@NotNull ZonedDateTime
Expiration date and time of the Recurring Order after the Set Expires At update action.@NotNull ZonedDateTime
Expiration date and time of the Recurring Order before the Set Expires At update action.of()
factory methodof
(RecurringOrderExpiresAtSetMessagePayload template) factory method to create a shallow copy RecurringOrderExpiresAtSetMessagePayloadvoid
setNewExpiresAt
(ZonedDateTime newExpiresAt) Expiration date and time of the Recurring Order after the Set Expires At update action.void
setOldExpiresAt
(ZonedDateTime oldExpiresAt) Expiration date and time of the Recurring Order before the Set Expires At update action.static com.fasterxml.jackson.core.type.TypeReference<RecurringOrderExpiresAtSetMessagePayload>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withRecurringOrderExpiresAtSetMessagePayload
(Function<RecurringOrderExpiresAtSetMessagePayload, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.message.MessagePayload
getType, withMessagePayload
Methods inherited from interface com.commercetools.api.models.message.MessagePayloadMixin
as
-
Field Details
-
RECURRING_ORDER_EXPIRES_AT_SET
discriminator value for RecurringOrderExpiresAtSetMessagePayload- See Also:
-
-
Method Details
-
getNewExpiresAt
Expiration date and time of the Recurring Order after the Set Expires At update action.
- Returns:
- newExpiresAt
-
getOldExpiresAt
Expiration date and time of the Recurring Order before the Set Expires At update action.
- Returns:
- oldExpiresAt
-
setNewExpiresAt
Expiration date and time of the Recurring Order after the Set Expires At update action.
- Parameters:
newExpiresAt
- value to be set
-
setOldExpiresAt
Expiration date and time of the Recurring Order before the Set Expires At update action.
- Parameters:
oldExpiresAt
- value to be set
-
of
factory method- Returns:
- instance of RecurringOrderExpiresAtSetMessagePayload
-
of
static RecurringOrderExpiresAtSetMessagePayload of(RecurringOrderExpiresAtSetMessagePayload template) factory method to create a shallow copy RecurringOrderExpiresAtSetMessagePayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
copyDeep
RecurringOrderExpiresAtSetMessagePayload copyDeep()- Specified by:
copyDeep
in interfaceMessagePayload
-
deepCopy
@Nullable static RecurringOrderExpiresAtSetMessagePayload deepCopy(@Nullable RecurringOrderExpiresAtSetMessagePayload template) factory method to create a deep copy of RecurringOrderExpiresAtSetMessagePayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for RecurringOrderExpiresAtSetMessagePayload- Returns:
- builder
-
builder
static RecurringOrderExpiresAtSetMessagePayloadBuilder builder(RecurringOrderExpiresAtSetMessagePayload template) create builder for RecurringOrderExpiresAtSetMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withRecurringOrderExpiresAtSetMessagePayload
default <T> T withRecurringOrderExpiresAtSetMessagePayload(Function<RecurringOrderExpiresAtSetMessagePayload, 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<RecurringOrderExpiresAtSetMessagePayload> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-