Skip to content

RefundExecutionPlan — @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 { RefundExecutionPlan } from '@gj-kit/toss-payments/server';
/**
* 직렬화 가능한 공개 메타만 열거된다. 실제 CancelablePayment는 비열거 symbol로 봉인되어
* prepareRefund를 통과하지 않은 객체를 실행할 수 없다.
*/
type RefundExecutionPlan = (RefundExecutionPlanBase & {
readonly mode: "full" | "partial";
readonly targetKind: "settled";
}) | (RefundExecutionPlanBase & {
readonly mode: "full" | "partial";
readonly targetKind: "deposited-virtual-account";
}) | (RefundExecutionPlanBase & {
readonly mode: "full";
readonly targetKind: "awaiting-deposit";
});

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