Skip to content

RefundObservedPaymentState — @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 { RefundObservedPaymentState } from '@gj-kit/toss-payments/server';
/** quote를 만든 Payment와 실행 직전 재조회 Payment가 같은 관측 상태인지 대조하는 값. */
interface RefundObservedPaymentState {
readonly status: PaymentStatus;
readonly method: Payment["method"];
readonly lastTransactionKey: string | null;
readonly isPartialCancelable: boolean;
readonly cancels: readonly RefundObservedCancelState[];
}

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