Interface SubscriptionNotification

All Known Subinterfaces:
DeliveryPayload, EventDeliveryPayload, MessageDelivery, MessageDeliveryPayload, ResourceCreatedDelivery, ResourceCreatedDeliveryPayload, ResourceDeletedDelivery, ResourceDeletedDeliveryPayload, ResourceUpdatedDelivery, ResourceUpdatedDeliveryPayload, SubscriptionDelivery

public interface SubscriptionNotification

All payloads for the PlatformFormat share these common fields.


Example to create a subtype instance using the builder pattern

     SubscriptionNotification subscriptionNotification = SubscriptionNotification.eventBuilder()
             id("{id}")
             type(EventType.CHECKOUT_ORDER_CREATION_FAILED)
             resourceType("{resourceType}")
             data(dataBuilder -> dataBuilder)
             createdAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
             .build()
 
  • Method Details