RefundQuoteInput — @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.
Verified import example
Section titled “Verified import example”import { RefundQuoteInput } from '@gj-kit/toss-payments/server';Signature, parameters, and return type
Section titled “Signature, parameters, and return type”/** * 모든 정책 quote의 공통 입력. * * basisAmount/alreadyRefundedAmount/expectedBalanceAmount는 프로젝트 장부가 제공한다. * 라이브러리는 expectedBalanceAmount를 최신 Payment.balanceAmount와 대조하므로 외부 * 부분취소나 장부 drift가 있으면 계산 전에 멈춘다. */interface RefundQuoteInput { readonly payment: Payment; /** 정책 비율을 곱할 프로젝트 장부 기준 금액. */ readonly basisAmount: number; /** 프로젝트 장부에 provider 완료로 확정된 누적 환불액. */ readonly alreadyRefundedAmount: number; /** 프로젝트 장부가 기대하는 현재 Toss 환불 가능 잔액. */ readonly expectedBalanceAmount: number; /** 정책을 평가한 시각. 테스트 가능한 명시 입력이며 quote에 ISO로 남는다. */ readonly evaluatedAt: Date; /** * 프로젝트 상태가 반드시 다시 평가되어야 하는 더 이른 경계(선택). * 예: 잔여 달력 일수는 다음 현지 자정. 정책 TTL/시간 구간 경계와의 최솟값이 적용된다. */ readonly validUntil?: Date;}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.
Release context
Section titled “Release context”- Package:
@gj-kit/toss-payments - Version:
0.6.1 - Public entry:
./server - Source: GitHub