Skip to content

RefundExecutionAttempt — @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 { RefundExecutionAttempt } from '@gj-kit/toss-payments/server';
/**
* 준비된 plan에 실행 request와 멱등키를 불변 결속한 재실행 가능한 요청 서술.
* 반복 실행은 조회를 다시 하되 Toss POST의 body와 멱등키는 항상 동일하다.
*/
type RefundExecutionAttempt = (RefundExecutionAttemptBase & {
readonly targetKind: "settled";
readonly mode: "full" | "partial";
}) | (RefundExecutionAttemptBase & {
readonly targetKind: "deposited-virtual-account";
readonly mode: "full" | "partial";
}) | (RefundExecutionAttemptBase & {
readonly targetKind: "awaiting-deposit";
readonly mode: "full";
});

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