Interface Event
- All Known Subinterfaces:
CheckoutOrderCreationFailedEvent
,CheckoutPaymentAuthorizationCancelledEvent
,CheckoutPaymentAuthorizationFailedEvent
,CheckoutPaymentAuthorizedEvent
,CheckoutPaymentCancelAuthorizationFailedEvent
,CheckoutPaymentChargedEvent
,CheckoutPaymentChargeFailedEvent
,CheckoutPaymentRefundedEvent
,CheckoutPaymentRefundFailedEvent
,ImportContainerCreatedEvent
,ImportContainerDeletedEvent
,ImportOperationRejectedEvent
,ImportUnresolvedEvent
,ImportValidationFailedEvent
,ImportWaitForMasterVariantEvent
public interface Event
Base representation of an Event containing common fields to all Event Types.
Example to create a subtype instance using the builder pattern
Event event = Event.checkoutOrderCreationFailedBuilder()
id("{id}")
notificationType("{notificationType}")
resourceType(EventSubscriptionResourceTypeId.CHECKOUT)
createdAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
data(dataBuilder -> dataBuilder)
.build()
-
Method Summary
Modifier and TypeMethodDescriptionbuilder for checkoutOrderCreationFailed subtypebuilder for checkoutPaymentAuthorizationCancelled subtypebuilder for checkoutPaymentAuthorizationFailed subtypebuilder for checkoutPaymentAuthorized subtypebuilder for checkoutPaymentCancelAuthorizationFailed subtypebuilder for checkoutPaymentCharged subtypebuilder for checkoutPaymentChargeFailed subtypebuilder for checkoutPaymentRefunded subtypebuilder for checkoutPaymentRefundFailed subtypecopyDeep()
static Event
factory method to create a deep copy of Event@NotNull ZonedDateTime
Date and time (UTC) the Event was generated.@NotNull String
getId()
Unique identifier of the Event.@NotNull String
@NotNull EventSubscriptionResourceTypeId
The type of resource targeted by the Event.@NotNull EventType
getType()
The type of Event that has occurred.builder for importContainerCreated subtypebuilder for importContainerDeleted subtypebuilder for importOperationRejected subtypestatic ImportUnresolvedEventBuilder
builder for importUnresolved subtypebuilder for importValidationFailed subtypebuilder for importWaitForMasterVariant subtypevoid
setCreatedAt
(ZonedDateTime createdAt) Date and time (UTC) the Event was generated.void
Unique identifier of the Event.void
setNotificationType
(String notificationType) set notificationTypevoid
setResourceType
(EventSubscriptionResourceTypeId resourceType) The type of resource targeted by the Event.static com.fasterxml.jackson.core.type.TypeReference<Event>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map function
-
Method Details
-
getId
Unique identifier of the Event.
- Returns:
- id
-
getNotificationType
- Returns:
- notificationType
-
getResourceType
The type of resource targeted by the Event.
- Returns:
- resourceType
-
getType
The type of Event that has occurred.
- Returns:
- type
-
getCreatedAt
Date and time (UTC) the Event was generated.
- Returns:
- createdAt
-
setId
Unique identifier of the Event.
- Parameters:
id
- value to be set
-
setNotificationType
set notificationType- Parameters:
notificationType
- value to be set
-
setResourceType
The type of resource targeted by the Event.
- Parameters:
resourceType
- value to be set
-
setCreatedAt
Date and time (UTC) the Event was generated.
- Parameters:
createdAt
- value to be set
-
copyDeep
Event copyDeep() -
deepCopy
factory method to create a deep copy of Event- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
checkoutOrderCreationFailedBuilder
builder for checkoutOrderCreationFailed subtype- Returns:
- builder
-
checkoutPaymentAuthorizationCancelledBuilder
static CheckoutPaymentAuthorizationCancelledEventBuilder checkoutPaymentAuthorizationCancelledBuilder()builder for checkoutPaymentAuthorizationCancelled subtype- Returns:
- builder
-
checkoutPaymentAuthorizationFailedBuilder
builder for checkoutPaymentAuthorizationFailed subtype- Returns:
- builder
-
checkoutPaymentAuthorizedBuilder
builder for checkoutPaymentAuthorized subtype- Returns:
- builder
-
checkoutPaymentCancelAuthorizationFailedBuilder
static CheckoutPaymentCancelAuthorizationFailedEventBuilder checkoutPaymentCancelAuthorizationFailedBuilder()builder for checkoutPaymentCancelAuthorizationFailed subtype- Returns:
- builder
-
checkoutPaymentChargeFailedBuilder
builder for checkoutPaymentChargeFailed subtype- Returns:
- builder
-
checkoutPaymentChargedBuilder
builder for checkoutPaymentCharged subtype- Returns:
- builder
-
checkoutPaymentRefundFailedBuilder
builder for checkoutPaymentRefundFailed subtype- Returns:
- builder
-
checkoutPaymentRefundedBuilder
builder for checkoutPaymentRefunded subtype- Returns:
- builder
-
importContainerCreatedBuilder
builder for importContainerCreated subtype- Returns:
- builder
-
importContainerDeletedBuilder
builder for importContainerDeleted subtype- Returns:
- builder
-
importOperationRejectedBuilder
builder for importOperationRejected subtype- Returns:
- builder
-
importUnresolvedBuilder
builder for importUnresolved subtype- Returns:
- builder
-
importValidationFailedBuilder
builder for importValidationFailed subtype- Returns:
- builder
-
importWaitForMasterVariantBuilder
builder for importWaitForMasterVariant subtype- Returns:
- builder
-
withEvent
accessor map function- Type Parameters:
T
- mapped type- Parameters:
helper
- function to map the object- Returns:
- mapped value
-
typeReference
gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-