memoryBillingKeyStore — @gj-kit/toss-payments
A public function from @gj-kit/toss-payments/testing. The signature below is taken directly from the 0.6.1 release declaration.
Verified import example
Section titled “Verified import example”import { memoryBillingKeyStore } from '@gj-kit/toss-payments/testing';Signature, parameters, and return type
Section titled “Signature, parameters, and return type”/** * customerKey 키 인메모리 BillingKeyStore — save는 같은 customerKey를 덮어쓴다(upsert). * * `delete` 비교와 제거 사이에 await가 없어 한 JavaScript 프로세스 안에서는 조건부 * 삭제가 원자적이다. 다중 프로세스/인스턴스 환경에는 DB CAS 또는 transaction 구현을 * 써야 하며, 이 테스트용 구현을 프로덕션에 사용하면 안 된다. */declare function memoryBillingKeyStore(): BillingKeyStore & { recordOf(customerKey: string): BillingKeyRecord | undefined;};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:
./testing - Source: GitHub