Interface RecurringOrderFailedMessagePayload
- All Superinterfaces:
MessagePayload,MessagePayloadMixin
Generated after a RecurringOrder failed to process an Order.
Example to create an instance using the builder pattern
RecurringOrderFailedMessagePayload recurringOrderFailedMessagePayload = RecurringOrderFailedMessagePayload.builder()
.cartId("{cartId}")
.failedAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
.failureReason("{failureReason}")
.orderScheduledAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for RecurringOrderFailedMessagePayload -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for RecurringOrderFailedMessagePayloadbuilder(RecurringOrderFailedMessagePayload template) create builder for RecurringOrderFailedMessagePayload instancecopyDeep()deepCopy(RecurringOrderFailedMessagePayload template) factory method to create a deep copy of RecurringOrderFailedMessagePayload@NotNull StringID of the Cart used in the failed Order creation attempt.@Valid List<RecurringOrderFailureError>Errors due to which the Order creation failed.@NotNull ZonedDateTimeDate and time (UTC) when the Order creation attempt failed.@NotNull StringDescription of why the Order creation failed, such as insufficient stock.@NotNull ZonedDateTimeDate and time (UTC) the Order was scheduled to be created.of()factory methodof(RecurringOrderFailedMessagePayload template) factory method to create a shallow copy RecurringOrderFailedMessagePayloadvoidID of the Cart used in the failed Order creation attempt.voidsetErrors(RecurringOrderFailureError... errors) Errors due to which the Order creation failed.voidsetErrors(List<RecurringOrderFailureError> errors) Errors due to which the Order creation failed.voidsetFailedAt(ZonedDateTime failedAt) Date and time (UTC) when the Order creation attempt failed.voidsetFailureReason(String failureReason) Description of why the Order creation failed, such as insufficient stock.voidsetOrderScheduledAt(ZonedDateTime orderScheduledAt) Date and time (UTC) the Order was scheduled to be created.static com.fasterxml.jackson.core.type.TypeReference<RecurringOrderFailedMessagePayload>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map functionMethods inherited from interface com.commercetools.api.models.message.MessagePayload
getType, withMessagePayloadMethods inherited from interface com.commercetools.api.models.message.MessagePayloadMixin
as
-
Field Details
-
RECURRING_ORDER_FAILED
discriminator value for RecurringOrderFailedMessagePayload- See Also:
-
-
Method Details
-
getCartId
ID of the Cart used in the failed Order creation attempt.
- Returns:
- cartId
-
getFailedAt
Date and time (UTC) when the Order creation attempt failed.
- Returns:
- failedAt
-
getFailureReason
Description of why the Order creation failed, such as insufficient stock.
- Returns:
- failureReason
-
getOrderScheduledAt
Date and time (UTC) the Order was scheduled to be created.
- Returns:
- orderScheduledAt
-
getErrors
Errors due to which the Order creation failed.
- Returns:
- errors
-
setCartId
ID of the Cart used in the failed Order creation attempt.
- Parameters:
cartId- value to be set
-
setFailedAt
Date and time (UTC) when the Order creation attempt failed.
- Parameters:
failedAt- value to be set
-
setFailureReason
Description of why the Order creation failed, such as insufficient stock.
- Parameters:
failureReason- value to be set
-
setOrderScheduledAt
Date and time (UTC) the Order was scheduled to be created.
- Parameters:
orderScheduledAt- value to be set
-
setErrors
Errors due to which the Order creation failed.
- Parameters:
errors- values to be set
-
setErrors
Errors due to which the Order creation failed.
- Parameters:
errors- values to be set
-
of
factory method- Returns:
- instance of RecurringOrderFailedMessagePayload
-
of
factory method to create a shallow copy RecurringOrderFailedMessagePayload- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
RecurringOrderFailedMessagePayload copyDeep()- Specified by:
copyDeepin interfaceMessagePayload
-
deepCopy
@Nullable static RecurringOrderFailedMessagePayload deepCopy(@Nullable RecurringOrderFailedMessagePayload template) factory method to create a deep copy of RecurringOrderFailedMessagePayload- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for RecurringOrderFailedMessagePayload- Returns:
- builder
-
builder
static RecurringOrderFailedMessagePayloadBuilder builder(RecurringOrderFailedMessagePayload template) create builder for RecurringOrderFailedMessagePayload instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withRecurringOrderFailedMessagePayload
default <T> T withRecurringOrderFailedMessagePayload(Function<RecurringOrderFailedMessagePayload, 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<RecurringOrderFailedMessagePayload> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-