Skip to content

isAlreadyFullyCanceledError — @gj-kit/toss-payments

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

import { isAlreadyFullyCanceledError } from '@gj-kit/toss-payments/server';
/**
* "이미 완전 취소됨" 재취소 이중 매핑 헬퍼.
*
* Phase 0 실측(2026-08-09): 단일 전액 취소 후 재취소는 400 ALREADY_CANCELED_PAYMENT,
* **부분취소 이력이 있는 결제의 잔액 0 재취소는 403 NOT_CANCELABLE_AMOUNT**로 온다.
* 두 코드를 모두 수용해야 한다. (라이브러리 사전검증이 잔액 초과 부분취소를 API 호출 전에
* 차단하므로, 이 헬퍼에 도달하는 NOT_CANCELABLE_AMOUNT는 사실상 재취소 케이스다.)
*/
declare function isAlreadyFullyCanceledError(e: TossApiFailure): boolean;

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