Interface NotificationStore


public interface NotificationStore
Outbound persistence port for recorded notification intents.
  • Method Summary

    Modifier and Type
    Method
    Description
    Lists recent notification records.
    void
    save(UUID sourceId, NotificationDraft draft)
    Persists at most one ready notification intent per source and notification type.
  • Method Details

    • save

      void save(UUID sourceId, NotificationDraft draft)
      Persists at most one ready notification intent per source and notification type.
      Parameters:
      sourceId - order or payment identifier that caused the notification
      draft - validated notification draft
    • findRecent

      List<NotificationSummary> findRecent()
      Lists recent notification records.
      Returns:
      recent notifications in reverse creation order