StoredOrder — @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 { StoredOrder } from '@gj-kit/toss-payments/server';Signature, parameters, and return type
Section titled “Signature, parameters, and return type”/** * 저장소 인터페이스 — 검증 플로우가 성립하기 위한 필수 주입 지점. * * - OrderStore: 금액 비교의 단일 진실 공급원. createOrder가 save를 호출하므로 * '저장을 잊는' 실수가 플로우 안에서 불가능해진다. * - BillingKeyStore: 토스에 빌링키 조회 API가 없다 — 저장 실패 = 복구 불가. */interface StoredOrder { readonly orderId: OrderId; /** requestPayment 시점에 고정한 금액 — 단일 진실 공급원. */ readonly amount: number; readonly currency: 'KRW' | 'USD' | 'JPY'; readonly orderName: string; /** ISO 8601. */ readonly createdAt: string;}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