Skip to content

WebhookDedupeStore — @gj-kit/toss-payments

A public interface from @gj-kit/toss-payments/webhook. The signature below is taken directly from the 0.6.1 release declaration.

import { WebhookDedupeStore } from '@gj-kit/toss-payments/webhook';
interface WebhookDedupeStore {
/** 원자적 상태 전이. processing 레코드는 lease 만료 후 재점유 가능해야 한다. */
claim(dedupeKey: string): Promise<WebhookClaimState>;
/** 비즈니스 핸들러가 내구적 처리를 완료한 후만 호출된다. */
complete(dedupeKey: string): Promise<void>;
/** 처리 실패 시 재전송이 다시 점유할 수 있게 한다. */
release(dedupeKey: string): Promise<void>;
}

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
  • Version: 0.6.1
  • Public entry: ./webhook
  • Source: GitHub