Skip to content

PgBillingKeySnapshot — @gj-kit/toss-payments-postgresql

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

import { PgBillingKeySnapshot } from '@gj-kit/toss-payments-postgresql/nestjs';
/**
* Opaque previous snapshot returned by `replaceAndGetPrevious`.
*
* Only `record` is readable, for recovery or display. Passing the original snapshot object
* back to `replaceIfBillingKeyMatches` also restores the nonsecret operation fingerprint.
* The fingerprint and the trusted record are linked only through a module-private
* `WeakMap`, so JSON copies, spreads, manual reconstructions, or inheriting objects have no
* registry identity and the lifecycle fence is intentionally false after such a restore.
*/
interface PgBillingKeySnapshot {
readonly record: BillingKeyRecord;
}

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-postgresql
  • Version: 0.5.1
  • Public entry: ./nestjs
  • Source: GitHub