Skip to content

RefundPolicy — @gj-kit/toss-payments

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

import { RefundPolicy } from '@gj-kit/toss-payments/server';
interface RefundPolicy<Input extends RefundQuoteInput = RefundQuoteInput> extends Brand<"RefundPolicy"> {
readonly id: string;
readonly version: string;
readonly kind: RefundPolicyKind;
quote(input: Input): Result<RefundQuote, RefundQuoteError>;
/** 저장 JSON을 활성 policy와 동일 입력으로 재계산해 실행 가능한 quote로 복원한다. */
restoreQuote(stored: unknown, input: Input): Result<RefundQuote, RefundQuoteRestoreError>;
}

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