Interface CheckoutOrderCreationFailedEvent
- All Superinterfaces:
Event
Generated when an order creation attempt fails in Checkout. This event includes information about why the order could not be created.
Example to create an instance using the builder pattern
CheckoutOrderCreationFailedEvent checkoutOrderCreationFailedEvent = CheckoutOrderCreationFailedEvent.builder()
.id("{id}")
.notificationType("{notificationType}")
.resourceType(EventSubscriptionResourceTypeId.CHECKOUT)
.createdAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
.data(dataBuilder -> dataBuilder)
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for CheckoutOrderCreationFailedEvent -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for CheckoutOrderCreationFailedEventbuilder(CheckoutOrderCreationFailedEvent template) create builder for CheckoutOrderCreationFailedEvent instancecopyDeep()deepCopy(CheckoutOrderCreationFailedEvent template) factory method to create a deep copy of CheckoutOrderCreationFailedEvent@NotNull @Valid CheckoutMessageOrderPayloadBaseDatagetData()An object containing details of the order which could not be created.@NotNull EventSubscriptionResourceTypeIdThe type of resource targeted by the Event.of()factory methodof(CheckoutOrderCreationFailedEvent template) factory method to create a shallow copy CheckoutOrderCreationFailedEventvoidAn object containing details of the order which could not be created.voidsetResourceType(EventSubscriptionResourceTypeId resourceType) set resourceTypestatic com.fasterxml.jackson.core.type.TypeReference<CheckoutOrderCreationFailedEvent>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map functionMethods inherited from interface com.commercetools.api.models.event.Event
getCreatedAt, getId, getNotificationType, getType, setCreatedAt, setId, setNotificationType, withEvent
-
Field Details
-
CHECKOUT_ORDER_CREATION_FAILED
discriminator value for CheckoutOrderCreationFailedEvent- See Also:
-
-
Method Details
-
getResourceType
Description copied from interface:EventThe type of resource targeted by the Event.
- Specified by:
getResourceTypein interfaceEvent- Returns:
- resourceType
-
getData
An object containing details of the order which could not be created.
- Returns:
- data
-
setResourceType
set resourceType- Specified by:
setResourceTypein interfaceEvent- Parameters:
resourceType- value to be set
-
setData
An object containing details of the order which could not be created.
- Parameters:
data- value to be set
-
of
factory method- Returns:
- instance of CheckoutOrderCreationFailedEvent
-
of
factory method to create a shallow copy CheckoutOrderCreationFailedEvent- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
CheckoutOrderCreationFailedEvent copyDeep() -
deepCopy
@Nullable static CheckoutOrderCreationFailedEvent deepCopy(@Nullable CheckoutOrderCreationFailedEvent template) factory method to create a deep copy of CheckoutOrderCreationFailedEvent- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for CheckoutOrderCreationFailedEvent- Returns:
- builder
-
builder
create builder for CheckoutOrderCreationFailedEvent instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withCheckoutOrderCreationFailedEvent
default <T> T withCheckoutOrderCreationFailedEvent(Function<CheckoutOrderCreationFailedEvent, 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<CheckoutOrderCreationFailedEvent> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-