Skip to content

withWebhookInbox — @gj-kit/toss-payments-postgresql

A public function from @gj-kit/toss-payments-postgresql. The signature below is taken directly from the 0.5.1 release declaration.

import { withWebhookInbox } from '@gj-kit/toss-payments-postgresql';
/**
* handlers의 각 콜백을 record → inner 순서로 감싼 `WebhookHandlers`를 반환한다.
*
* 배선된 핸들러 키만 감싼다 — 키 집합이 변하지 않으므로 코어 어댑터의 "핸들러 없는
* 이벤트" 처리 동작(무시)도 그대로 보존된다. 콜백은 `handlers`를 수신자(this)로
* 호출한다 — 코어 어댑터의 메서드 호출(`handlers.onX?.(w)`)과 동일한 시맨틱이라,
* `this`를 참조하는 객체 리터럴/클래스 인스턴스 핸들러가 래핑 후에도 깨지지 않는다.
*/
declare function withWebhookInbox(inbox: WebhookInboxStore, handlers: WebhookHandlers, options?: WithWebhookInboxOptions): WebhookHandlers;

This declaration is the source of truth for parameters, optionality, generics, return values, and public union/type contracts. Check the package golden path and this subpath’s import conditions for required environment, permission, and error boundaries before calling it.

  • Package: @gj-kit/toss-payments-postgresql
  • Version: 0.5.1
  • Public entry: .
  • Source: GitHub