Skip to content

PaymentStateDiffWarning — @gj-kit/toss-payments

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

import { PaymentStateDiffWarning } from '@gj-kit/toss-payments/server';
type PaymentStateDiffWarning = {
/** 환불 취소·입금 오류 등 정상적인 역전이일 수도 있으므로 오류로 차단하지 않는다. */
readonly kind: "balance-increased";
readonly previousBalanceAmount: number;
readonly nextBalanceAmount: number;
readonly delta: number;
} | {
/** 제공자 응답의 취소 배열에서 이전 transactionKey가 사라졌다. */
readonly kind: "cancel-removed";
readonly transactionKey: string;
};

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: ./server
  • Source: GitHub