Interface WebhookEvent

All Known Implementing Classes:
WebhookEvent.InvoiceEvent, WebhookEvent.TransactionEvent, WebhookEvent.UnknownEvent

웹훅 이벤트입니다. 같은 이벤트가 여러 번 올 수 있으니 id()로 중복을 거르세요.
switch (event) {
    case InvoiceEvent e when e.type() == WebhookEventType.INVOICE_PAID -> fulfill(e.invoice());
    case InvoiceEvent e -> { }
    case TransactionEvent e -> { }
    case UnknownEvent e -> { }
}
  • Method Details

    • id

      String id()
      이벤트 ID (evt_...)
    • type

      이벤트 종류
    • timestamp

      Instant timestamp()
      이벤트가 일어난 시각