@fantastic.dev/better-stripe 0.89.0 → 0.90.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/README.md +1 -1
- package/dist/client/billing/renewalAttach/internal/acquisition/array-order.test.d.ts +2 -0
- package/dist/client/billing/renewalAttach/internal/acquisition/array-order.test.d.ts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/acquisition/array-order.test.js +61 -0
- package/dist/client/billing/renewalAttach/internal/acquisition/array-order.test.js.map +1 -0
- package/dist/client/billing/renewalAttach/internal/acquisition/coupon-stop-order.test.d.ts +2 -0
- package/dist/client/billing/renewalAttach/internal/acquisition/coupon-stop-order.test.d.ts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/acquisition/coupon-stop-order.test.js +18 -0
- package/dist/client/billing/renewalAttach/internal/acquisition/coupon-stop-order.test.js.map +1 -0
- package/dist/client/billing/renewalAttach/internal/acquisition/fetch-metadata.test.d.ts +2 -0
- package/dist/client/billing/renewalAttach/internal/acquisition/fetch-metadata.test.d.ts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/acquisition/fetch-metadata.test.js +67 -0
- package/dist/client/billing/renewalAttach/internal/acquisition/fetch-metadata.test.js.map +1 -0
- package/dist/client/billing/renewalAttach/internal/acquisition/raw-acquisition.test.d.ts +2 -0
- package/dist/client/billing/renewalAttach/internal/acquisition/raw-acquisition.test.d.ts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/acquisition/raw-acquisition.test.js +372 -0
- package/dist/client/billing/renewalAttach/internal/acquisition/raw-acquisition.test.js.map +1 -0
- package/dist/client/billing/renewalAttach/internal/acquisition/rawAcquisition.d.ts +24 -0
- package/dist/client/billing/renewalAttach/internal/acquisition/rawAcquisition.d.ts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/acquisition/rawAcquisition.js +113 -0
- package/dist/client/billing/renewalAttach/internal/acquisition/rawAcquisition.js.map +1 -0
- package/dist/client/billing/renewalAttach/internal/acquisition/rawCouponJoins.d.ts +55 -0
- package/dist/client/billing/renewalAttach/internal/acquisition/rawCouponJoins.d.ts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/acquisition/rawCouponJoins.js +87 -0
- package/dist/client/billing/renewalAttach/internal/acquisition/rawCouponJoins.js.map +1 -0
- package/dist/client/billing/renewalAttach/internal/acquisition/rawWireSource.d.ts +7 -0
- package/dist/client/billing/renewalAttach/internal/acquisition/rawWireSource.d.ts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/acquisition/rawWireSource.js +130 -0
- package/dist/client/billing/renewalAttach/internal/acquisition/rawWireSource.js.map +1 -0
- package/dist/client/billing/renewalAttach/internal/acquisition/readLifetime.d.ts +14 -0
- package/dist/client/billing/renewalAttach/internal/acquisition/readLifetime.d.ts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/acquisition/readLifetime.js +60 -0
- package/dist/client/billing/renewalAttach/internal/acquisition/readLifetime.js.map +1 -0
- package/dist/client/billing/renewalAttach/internal/acquisition/sourceBinding.test.d.ts +2 -0
- package/dist/client/billing/renewalAttach/internal/acquisition/sourceBinding.test.d.ts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/acquisition/sourceBinding.test.js +126 -0
- package/dist/client/billing/renewalAttach/internal/acquisition/sourceBinding.test.js.map +1 -0
- package/dist/client/billing/renewalAttach/internal/acquisition/test-fixtures/fixture.d.mts +627 -0
- package/dist/client/billing/renewalAttach/internal/acquisition/test-fixtures/fixture.d.mts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/acquisition/test-fixtures/fixture.mjs +488 -0
- package/dist/client/billing/renewalAttach/internal/acquisition/test-fixtures/fixture.mjs.map +1 -0
- package/dist/client/billing/renewalAttach/internal/acquisition/test-fixtures/raw-retention-fixture.d.mts +214 -0
- package/dist/client/billing/renewalAttach/internal/acquisition/test-fixtures/raw-retention-fixture.d.mts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/acquisition/test-fixtures/raw-retention-fixture.mjs +63 -0
- package/dist/client/billing/renewalAttach/internal/acquisition/test-fixtures/raw-retention-fixture.mjs.map +1 -0
- package/dist/client/billing/renewalAttach/internal/acquisition/test-fixtures/scenario.d.mts +75 -0
- package/dist/client/billing/renewalAttach/internal/acquisition/test-fixtures/scenario.d.mts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/acquisition/test-fixtures/scenario.mjs +145 -0
- package/dist/client/billing/renewalAttach/internal/acquisition/test-fixtures/scenario.mjs.map +1 -0
- package/dist/client/billing/renewalAttach/internal/acquisition/test-fixtures/sourcePort.d.mts +7 -0
- package/dist/client/billing/renewalAttach/internal/acquisition/test-fixtures/sourcePort.d.mts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/acquisition/test-fixtures/sourcePort.mjs +26 -0
- package/dist/client/billing/renewalAttach/internal/acquisition/test-fixtures/sourcePort.mjs.map +1 -0
- package/dist/client/billing/renewalAttach/internal/c10/appendAck.d.ts +14 -0
- package/dist/client/billing/renewalAttach/internal/c10/appendAck.d.ts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/c10/appendAck.js +202 -0
- package/dist/client/billing/renewalAttach/internal/c10/appendAck.js.map +1 -0
- package/dist/client/billing/renewalAttach/internal/c10/attachEvents.d.ts +23 -0
- package/dist/client/billing/renewalAttach/internal/c10/attachEvents.d.ts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/c10/attachEvents.js +117 -0
- package/dist/client/billing/renewalAttach/internal/c10/attachEvents.js.map +1 -0
- package/dist/client/billing/renewalAttach/internal/c10/configureEvents.d.ts +23 -0
- package/dist/client/billing/renewalAttach/internal/c10/configureEvents.d.ts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/c10/configureEvents.js +111 -0
- package/dist/client/billing/renewalAttach/internal/c10/configureEvents.js.map +1 -0
- package/dist/client/billing/renewalAttach/internal/c10/eventCapture.d.ts +11 -0
- package/dist/client/billing/renewalAttach/internal/c10/eventCapture.d.ts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/c10/eventCapture.js +376 -0
- package/dist/client/billing/renewalAttach/internal/c10/eventCapture.js.map +1 -0
- package/dist/client/billing/renewalAttach/internal/c10/eventCodec.d.ts +16 -0
- package/dist/client/billing/renewalAttach/internal/c10/eventCodec.d.ts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/c10/eventCodec.js +119 -0
- package/dist/client/billing/renewalAttach/internal/c10/eventCodec.js.map +1 -0
- package/dist/client/billing/renewalAttach/internal/c10/ownData.d.ts +30 -0
- package/dist/client/billing/renewalAttach/internal/c10/ownData.d.ts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/c10/ownData.js +74 -0
- package/dist/client/billing/renewalAttach/internal/c10/ownData.js.map +1 -0
- package/dist/client/billing/renewalAttach/internal/c10/ownerBinding.d.ts +3 -0
- package/dist/client/billing/renewalAttach/internal/c10/ownerBinding.d.ts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/c10/ownerBinding.js +3 -0
- package/dist/client/billing/renewalAttach/internal/c10/ownerBinding.js.map +1 -0
- package/dist/client/billing/renewalAttach/internal/c10/privacy.d.ts +2 -0
- package/dist/client/billing/renewalAttach/internal/c10/privacy.d.ts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/c10/privacy.js +175 -0
- package/dist/client/billing/renewalAttach/internal/c10/privacy.js.map +1 -0
- package/dist/client/billing/renewalAttach/internal/c10/publicApi.d.ts +3 -0
- package/dist/client/billing/renewalAttach/internal/c10/publicApi.d.ts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/c10/publicApi.js +3 -0
- package/dist/client/billing/renewalAttach/internal/c10/publicApi.js.map +1 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/compilerIndex.d.mts +3 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/compilerIndex.d.mts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/compilerIndex.mjs +4 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/compilerIndex.mjs.map +1 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/fixture.d.mts +26 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/fixture.d.mts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/fixture.mjs +42 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/fixture.mjs.map +1 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f00.d.mts +7 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f00.d.mts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f00.mjs +60 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f00.mjs.map +1 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f01.d.mts +335 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f01.d.mts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f01.mjs +122 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f01.mjs.map +1 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f02.d.mts +46 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f02.d.mts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f02.mjs +87 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f02.mjs.map +1 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f03.d.mts +35 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f03.d.mts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f03.mjs +90 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f03.mjs.map +1 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f04.d.mts +132 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f04.d.mts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f04.mjs +82 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f04.mjs.map +1 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f05.d.mts +4 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f05.d.mts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f05.mjs +23 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f05.mjs.map +1 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f06.d.mts +16 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f06.d.mts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f06.mjs +41 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f06.mjs.map +1 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f07.d.mts +43 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f07.d.mts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f07.mjs +132 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f07.mjs.map +1 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f08.d.mts +200 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f08.d.mts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f08.mjs +150 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f08.mjs.map +1 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f09.d.mts +124 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f09.d.mts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f09.mjs +127 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f09.mjs.map +1 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f10.d.mts +3 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f10.d.mts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f10.mjs +69 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f10.mjs.map +1 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f11.d.mts +2 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f11.d.mts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f11.mjs +152 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f11.mjs.map +1 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f12.d.mts +2 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f12.d.mts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f12.mjs +2 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f12.mjs.map +1 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f13.d.mts +5 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f13.d.mts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f13.mjs +243 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f13.mjs.map +1 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f14.d.mts +17 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f14.d.mts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f14.mjs +75 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f14.mjs.map +1 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f15.d.mts +2 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f15.d.mts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f15.mjs +173 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f15.mjs.map +1 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f16.d.mts +4 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f16.d.mts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f16.mjs +4 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f16.mjs.map +1 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f17.d.mts +7 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f17.d.mts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f17.mjs +30 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f17.mjs.map +1 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f18.d.mts +29 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f18.d.mts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f18.mjs +33 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f18.mjs.map +1 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f19.json +452 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f20.d.mts +2 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f20.d.mts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f20.mjs +173 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f20.mjs.map +1 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f21.d.mts +2 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f21.d.mts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f21.mjs +449 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f21.mjs.map +1 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f22.d.mts +9 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f22.d.mts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f22.mjs +27 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f22.mjs.map +1 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f23.d.mts +7 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f23.d.mts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f23.mjs +150 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f23.mjs.map +1 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f24.d.mts +3 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f24.d.mts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f24.mjs +503 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f24.mjs.map +1 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f25.d.mts +2 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f25.d.mts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f25.mjs +91 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f25.mjs.map +1 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f26.d.mts +14 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f26.d.mts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f26.mjs +41 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f26.mjs.map +1 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f27.d.mts +103 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f27.d.mts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f27.mjs +46 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f27.mjs.map +1 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f28.d.mts +73 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f28.d.mts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f28.mjs +294 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f28.mjs.map +1 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f29.d.mts +2 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f29.d.mts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f29.mjs +60 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f29.mjs.map +1 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/publishedRawkeyHelper.d.mts +58 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/publishedRawkeyHelper.d.mts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/publishedRawkeyHelper.mjs +96 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/publishedRawkeyHelper.mjs.map +1 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/semanticSetup.d.ts +2 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/semanticSetup.d.ts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/semanticSetup.js +40 -0
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/semanticSetup.js.map +1 -0
- package/dist/client/billing/renewalAttach/internal/material/capture.d.ts +88 -0
- package/dist/client/billing/renewalAttach/internal/material/capture.d.ts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/material/capture.js +181 -0
- package/dist/client/billing/renewalAttach/internal/material/capture.js.map +1 -0
- package/dist/client/billing/renewalAttach/internal/material/classifiers.d.ts +522 -0
- package/dist/client/billing/renewalAttach/internal/material/classifiers.d.ts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/material/classifiers.js +226 -0
- package/dist/client/billing/renewalAttach/internal/material/classifiers.js.map +1 -0
- package/dist/client/billing/renewalAttach/internal/material/nodeKernel.d.ts +17 -0
- package/dist/client/billing/renewalAttach/internal/material/nodeKernel.d.ts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/material/nodeKernel.js +95 -0
- package/dist/client/billing/renewalAttach/internal/material/nodeKernel.js.map +1 -0
- package/dist/client/billing/renewalAttach/internal/material/readMaterial.d.ts +338 -0
- package/dist/client/billing/renewalAttach/internal/material/readMaterial.d.ts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/material/readMaterial.js +122 -0
- package/dist/client/billing/renewalAttach/internal/material/readMaterial.js.map +1 -0
- package/dist/client/billing/renewalAttach/internal/material/requiredJson.d.ts +2 -0
- package/dist/client/billing/renewalAttach/internal/material/requiredJson.d.ts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/material/requiredJson.js +174 -0
- package/dist/client/billing/renewalAttach/internal/material/requiredJson.js.map +1 -0
- package/dist/client/connect/payoutExecutionTestHelpers.d.ts +16 -16
- package/dist/client/connect/payoutLargeAdoptionTestHelpers.d.ts +32 -32
- package/dist/component/balanceFunding/internal/actions.d.ts +11 -11
- package/dist/component/financialObservations/settlementHelpers.d.ts +3 -3
- package/dist/component/usage/allowance.fixtures.d.ts +16 -16
- package/dist/component/usageCredits/accounting.fixtures.d.ts +16 -16
- package/docs/renewal-context-reads.md +28 -0
- package/docs/renewal-phase-assembly.md +23 -0
- package/docs/renewal-raw-acquisition.md +64 -0
- package/package.json +1 -1
- package/src/client/billing/renewalAttach/internal/acquisition/array-order.test.js +70 -0
- package/src/client/billing/renewalAttach/internal/acquisition/coupon-stop-order.test.js +23 -0
- package/src/client/billing/renewalAttach/internal/acquisition/fetch-metadata.test.js +77 -0
- package/src/client/billing/renewalAttach/internal/acquisition/raw-acquisition.test.js +418 -0
- package/src/client/billing/renewalAttach/internal/acquisition/rawAcquisition.ts +160 -0
- package/src/client/billing/renewalAttach/internal/acquisition/rawCouponJoins.ts +110 -0
- package/src/client/billing/renewalAttach/internal/acquisition/rawWireSource.ts +156 -0
- package/src/client/billing/renewalAttach/internal/acquisition/readLifetime.ts +64 -0
- package/src/client/billing/renewalAttach/internal/acquisition/sourceBinding.test.js +138 -0
- package/src/client/billing/renewalAttach/internal/acquisition/test-fixtures/fixture.mjs +510 -0
- package/src/client/billing/renewalAttach/internal/acquisition/test-fixtures/raw-retention-fixture.mjs +64 -0
- package/src/client/billing/renewalAttach/internal/acquisition/test-fixtures/scenario.mjs +159 -0
- package/src/client/billing/renewalAttach/internal/acquisition/test-fixtures/sourcePort.mjs +25 -0
- package/src/client/billing/renewalAttach/internal/c10/appendAck.first.test.ts +86 -0
- package/src/client/billing/renewalAttach/internal/c10/appendAck.ts +226 -0
- package/src/client/billing/renewalAttach/internal/c10/appendCodec.test.ts +186 -0
- package/src/client/billing/renewalAttach/internal/c10/arrayOrder.test.ts +47 -0
- package/src/client/billing/renewalAttach/internal/c10/attachEvents.ts +144 -0
- package/src/client/billing/renewalAttach/internal/c10/compiler.test.ts +443 -0
- package/src/client/billing/renewalAttach/internal/c10/configureEvents.ts +145 -0
- package/src/client/billing/renewalAttach/internal/c10/eventCapture.ts +464 -0
- package/src/client/billing/renewalAttach/internal/c10/eventCodec.ts +131 -0
- package/src/client/billing/renewalAttach/internal/c10/hardening.test.ts +175 -0
- package/src/client/billing/renewalAttach/internal/c10/historicalClassifier.test.ts +114 -0
- package/src/client/billing/renewalAttach/internal/c10/ownData.ts +103 -0
- package/src/client/billing/renewalAttach/internal/c10/ownerBinding.ts +2 -0
- package/src/client/billing/renewalAttach/internal/c10/ownerContinuations.test.ts +283 -0
- package/src/client/billing/renewalAttach/internal/c10/privacy.ts +181 -0
- package/src/client/billing/renewalAttach/internal/c10/publicApi.ts +8 -0
- package/src/client/billing/renewalAttach/internal/c10/reflectionPrivacy.test.ts +87 -0
- package/src/client/billing/renewalAttach/internal/c10/test-fixtures/compilerIndex.mjs +3 -0
- package/src/client/billing/renewalAttach/internal/c10/test-fixtures/fixture.mjs +49 -0
- package/src/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f00.mjs +63 -0
- package/src/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f01.mjs +160 -0
- package/src/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f02.mjs +88 -0
- package/src/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f03.mjs +102 -0
- package/src/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f04.mjs +82 -0
- package/src/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f05.mjs +20 -0
- package/src/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f06.mjs +41 -0
- package/src/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f07.mjs +137 -0
- package/src/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f08.mjs +153 -0
- package/src/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f09.mjs +127 -0
- package/src/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f10.mjs +85 -0
- package/src/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f11.mjs +170 -0
- package/src/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f12.mjs +6 -0
- package/src/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f13.mjs +295 -0
- package/src/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f14.mjs +78 -0
- package/src/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f15.mjs +177 -0
- package/src/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f16.mjs +8 -0
- package/src/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f17.mjs +34 -0
- package/src/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f18.mjs +32 -0
- package/src/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f19.json +452 -0
- package/src/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f20.mjs +177 -0
- package/src/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f21.mjs +466 -0
- package/src/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f22.mjs +29 -0
- package/src/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f23.mjs +165 -0
- package/src/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f24.mjs +507 -0
- package/src/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f25.mjs +89 -0
- package/src/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f26.mjs +38 -0
- package/src/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f27.mjs +45 -0
- package/src/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f28.mjs +309 -0
- package/src/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f29.mjs +58 -0
- package/src/client/billing/renewalAttach/internal/c10/test-fixtures/publishedRawkeyHelper.mjs +104 -0
- package/src/client/billing/renewalAttach/internal/c10/test-fixtures/semanticSetup.ts +43 -0
- package/src/client/billing/renewalAttach/internal/material/capture.ts +243 -0
- package/src/client/billing/renewalAttach/internal/material/classifiers.test.ts +510 -0
- package/src/client/billing/renewalAttach/internal/material/classifiers.ts +313 -0
- package/src/client/billing/renewalAttach/internal/material/nodeKernel.ts +118 -0
- package/src/client/billing/renewalAttach/internal/material/readMaterial.ts +176 -0
- package/src/client/billing/renewalAttach/internal/material/requiredJson.ts +183 -0
|
@@ -0,0 +1,522 @@
|
|
|
1
|
+
import { prepareRenewalPriceReplacementV2 as c1, prepareRenewalScheduleAttachmentV2 as c2 } from "../../../renewalV2/index.js";
|
|
2
|
+
import { type RetainedInput } from "./capture.js";
|
|
3
|
+
import { validateOwnedReadMaterial } from "./readMaterial.js";
|
|
4
|
+
type Prepared = Awaited<ReturnType<typeof c1>>;
|
|
5
|
+
type Request = Awaited<ReturnType<typeof c2>>;
|
|
6
|
+
type Reads = ReturnType<typeof validateOwnedReadMaterial>;
|
|
7
|
+
type Args = {
|
|
8
|
+
attachRequest: RetainedInput["attachRequest"];
|
|
9
|
+
intent: "initial";
|
|
10
|
+
freshSubscription?: unknown;
|
|
11
|
+
targetPrice?: unknown;
|
|
12
|
+
billingCustomer?: unknown;
|
|
13
|
+
observedAt?: number;
|
|
14
|
+
};
|
|
15
|
+
declare function material(args: Args, fresh: boolean, prepared: Prepared, request: Request, reads: Reads, evidence: {
|
|
16
|
+
actualFreshSubscription: unknown;
|
|
17
|
+
}): {
|
|
18
|
+
classificationRevision: string;
|
|
19
|
+
protocolRevision: string;
|
|
20
|
+
stage: string;
|
|
21
|
+
intent: "initial";
|
|
22
|
+
scope: "platform";
|
|
23
|
+
apiVersion: string;
|
|
24
|
+
profile: import("../../../renewalAggregate/profile.js").RenewalProfile;
|
|
25
|
+
quantity: number;
|
|
26
|
+
currentPrice: {
|
|
27
|
+
[x: string]: unknown;
|
|
28
|
+
id: string;
|
|
29
|
+
object: "price";
|
|
30
|
+
product: string | {
|
|
31
|
+
[x: string]: unknown;
|
|
32
|
+
id: string;
|
|
33
|
+
object: "product";
|
|
34
|
+
deleted?: false | undefined;
|
|
35
|
+
};
|
|
36
|
+
active: boolean;
|
|
37
|
+
livemode: boolean;
|
|
38
|
+
type: "recurring";
|
|
39
|
+
currency: string;
|
|
40
|
+
billing_scheme: "per_unit";
|
|
41
|
+
recurring: {
|
|
42
|
+
[x: string]: unknown;
|
|
43
|
+
interval: "day" | "month" | "week" | "year";
|
|
44
|
+
interval_count: number;
|
|
45
|
+
usage_type: "licensed";
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
targetPrice: {
|
|
49
|
+
[x: string]: unknown;
|
|
50
|
+
id: string;
|
|
51
|
+
object: "price";
|
|
52
|
+
product: string | {
|
|
53
|
+
[x: string]: unknown;
|
|
54
|
+
id: string;
|
|
55
|
+
object: "product";
|
|
56
|
+
deleted?: false | undefined;
|
|
57
|
+
};
|
|
58
|
+
active: boolean;
|
|
59
|
+
livemode: boolean;
|
|
60
|
+
type: "recurring";
|
|
61
|
+
currency: string;
|
|
62
|
+
billing_scheme: "per_unit";
|
|
63
|
+
recurring: {
|
|
64
|
+
[x: string]: unknown;
|
|
65
|
+
interval: "day" | "month" | "week" | "year";
|
|
66
|
+
interval_count: number;
|
|
67
|
+
usage_type: "licensed";
|
|
68
|
+
};
|
|
69
|
+
};
|
|
70
|
+
source: {
|
|
71
|
+
[x: string]: unknown;
|
|
72
|
+
id: string;
|
|
73
|
+
object: "subscription";
|
|
74
|
+
customer_account: string;
|
|
75
|
+
status: "active";
|
|
76
|
+
currency: string;
|
|
77
|
+
livemode: boolean;
|
|
78
|
+
cancel_at: null;
|
|
79
|
+
cancel_at_period_end: false;
|
|
80
|
+
pause_collection: null;
|
|
81
|
+
pending_update: null;
|
|
82
|
+
default_source: null;
|
|
83
|
+
application_fee_percent: null;
|
|
84
|
+
payment_settings: {
|
|
85
|
+
payment_method_options: null;
|
|
86
|
+
payment_method_types: null;
|
|
87
|
+
save_default_payment_method: "off" | null;
|
|
88
|
+
} | null;
|
|
89
|
+
billing_schedules?: unknown[] | undefined;
|
|
90
|
+
items: {
|
|
91
|
+
[x: string]: unknown;
|
|
92
|
+
has_more: false;
|
|
93
|
+
data: [{
|
|
94
|
+
[x: string]: unknown;
|
|
95
|
+
id: string;
|
|
96
|
+
object: "subscription_item";
|
|
97
|
+
subscription: string;
|
|
98
|
+
current_period_start: number;
|
|
99
|
+
current_period_end: number;
|
|
100
|
+
quantity: number;
|
|
101
|
+
price: {
|
|
102
|
+
[x: string]: unknown;
|
|
103
|
+
id: string;
|
|
104
|
+
object: "price";
|
|
105
|
+
product: string | {
|
|
106
|
+
[x: string]: unknown;
|
|
107
|
+
id: string;
|
|
108
|
+
object: "product";
|
|
109
|
+
deleted?: false | undefined;
|
|
110
|
+
};
|
|
111
|
+
active: boolean;
|
|
112
|
+
livemode: boolean;
|
|
113
|
+
type: "recurring";
|
|
114
|
+
currency: string;
|
|
115
|
+
billing_scheme: "per_unit";
|
|
116
|
+
recurring: {
|
|
117
|
+
[x: string]: unknown;
|
|
118
|
+
interval: "day" | "month" | "week" | "year";
|
|
119
|
+
interval_count: number;
|
|
120
|
+
usage_type: "licensed";
|
|
121
|
+
};
|
|
122
|
+
};
|
|
123
|
+
}];
|
|
124
|
+
};
|
|
125
|
+
schedule: string | {
|
|
126
|
+
[x: string]: unknown;
|
|
127
|
+
id: string;
|
|
128
|
+
object: "subscription_schedule";
|
|
129
|
+
deleted?: false | undefined;
|
|
130
|
+
customer_account?: string | undefined;
|
|
131
|
+
livemode?: boolean | undefined;
|
|
132
|
+
} | null;
|
|
133
|
+
};
|
|
134
|
+
nativeItem: {
|
|
135
|
+
[x: string]: unknown;
|
|
136
|
+
id: string;
|
|
137
|
+
object: "subscription_item";
|
|
138
|
+
subscription: string;
|
|
139
|
+
current_period_start: number;
|
|
140
|
+
current_period_end: number;
|
|
141
|
+
quantity: number;
|
|
142
|
+
price: {
|
|
143
|
+
[x: string]: unknown;
|
|
144
|
+
id: string;
|
|
145
|
+
object: "price";
|
|
146
|
+
product: string | {
|
|
147
|
+
[x: string]: unknown;
|
|
148
|
+
id: string;
|
|
149
|
+
object: "product";
|
|
150
|
+
deleted?: false | undefined;
|
|
151
|
+
};
|
|
152
|
+
active: boolean;
|
|
153
|
+
livemode: boolean;
|
|
154
|
+
type: "recurring";
|
|
155
|
+
currency: string;
|
|
156
|
+
billing_scheme: "per_unit";
|
|
157
|
+
recurring: {
|
|
158
|
+
[x: string]: unknown;
|
|
159
|
+
interval: "day" | "month" | "week" | "year";
|
|
160
|
+
interval_count: number;
|
|
161
|
+
usage_type: "licensed";
|
|
162
|
+
};
|
|
163
|
+
};
|
|
164
|
+
};
|
|
165
|
+
billingCustomer: {
|
|
166
|
+
[x: string]: unknown;
|
|
167
|
+
id: string;
|
|
168
|
+
object: "customer";
|
|
169
|
+
customer_account: string;
|
|
170
|
+
livemode: boolean;
|
|
171
|
+
deleted?: false | undefined;
|
|
172
|
+
discount: {
|
|
173
|
+
[x: string]: unknown;
|
|
174
|
+
id: string;
|
|
175
|
+
object: "discount";
|
|
176
|
+
deleted?: false | undefined;
|
|
177
|
+
} | null;
|
|
178
|
+
};
|
|
179
|
+
subscriptionDiscounts: {
|
|
180
|
+
[x: string]: unknown;
|
|
181
|
+
id: string;
|
|
182
|
+
object: "discount";
|
|
183
|
+
deleted?: false | undefined;
|
|
184
|
+
customer_account: string;
|
|
185
|
+
customer?: string | {
|
|
186
|
+
[x: string]: unknown;
|
|
187
|
+
id: string;
|
|
188
|
+
object: "customer";
|
|
189
|
+
deleted?: false | undefined;
|
|
190
|
+
livemode?: boolean | undefined;
|
|
191
|
+
customer_account?: string | null | undefined;
|
|
192
|
+
} | null | undefined;
|
|
193
|
+
subscription: string | null;
|
|
194
|
+
subscription_item: string | null;
|
|
195
|
+
start: number;
|
|
196
|
+
end: null;
|
|
197
|
+
source: {
|
|
198
|
+
[x: string]: unknown;
|
|
199
|
+
type: "coupon";
|
|
200
|
+
coupon: {
|
|
201
|
+
[x: string]: unknown;
|
|
202
|
+
id: string;
|
|
203
|
+
object: "coupon";
|
|
204
|
+
deleted?: false | undefined;
|
|
205
|
+
livemode?: boolean | undefined;
|
|
206
|
+
duration: "forever";
|
|
207
|
+
applies_to?: {
|
|
208
|
+
products: string[];
|
|
209
|
+
} | undefined;
|
|
210
|
+
};
|
|
211
|
+
};
|
|
212
|
+
}[];
|
|
213
|
+
itemDiscounts: {
|
|
214
|
+
[x: string]: unknown;
|
|
215
|
+
id: string;
|
|
216
|
+
object: "discount";
|
|
217
|
+
deleted?: false | undefined;
|
|
218
|
+
customer_account: string;
|
|
219
|
+
customer?: string | {
|
|
220
|
+
[x: string]: unknown;
|
|
221
|
+
id: string;
|
|
222
|
+
object: "customer";
|
|
223
|
+
deleted?: false | undefined;
|
|
224
|
+
livemode?: boolean | undefined;
|
|
225
|
+
customer_account?: string | null | undefined;
|
|
226
|
+
} | null | undefined;
|
|
227
|
+
subscription: string | null;
|
|
228
|
+
subscription_item: string | null;
|
|
229
|
+
start: number;
|
|
230
|
+
end: null;
|
|
231
|
+
source: {
|
|
232
|
+
[x: string]: unknown;
|
|
233
|
+
type: "coupon";
|
|
234
|
+
coupon: {
|
|
235
|
+
[x: string]: unknown;
|
|
236
|
+
id: string;
|
|
237
|
+
object: "coupon";
|
|
238
|
+
deleted?: false | undefined;
|
|
239
|
+
livemode?: boolean | undefined;
|
|
240
|
+
duration: "forever";
|
|
241
|
+
applies_to?: {
|
|
242
|
+
products: string[];
|
|
243
|
+
} | undefined;
|
|
244
|
+
};
|
|
245
|
+
};
|
|
246
|
+
}[];
|
|
247
|
+
settings: {
|
|
248
|
+
context: {
|
|
249
|
+
customerAccountId: string;
|
|
250
|
+
customerId: string;
|
|
251
|
+
livemode: boolean;
|
|
252
|
+
effectiveCollectionMethod: "charge_automatically" | "send_invoice";
|
|
253
|
+
effectiveAutomaticTax: boolean;
|
|
254
|
+
effectiveInvoiceIssuer: {
|
|
255
|
+
type: "self";
|
|
256
|
+
account?: null | undefined;
|
|
257
|
+
} | {
|
|
258
|
+
type: "account";
|
|
259
|
+
account: string | {
|
|
260
|
+
[x: string]: unknown;
|
|
261
|
+
id: string;
|
|
262
|
+
object: string;
|
|
263
|
+
deleted?: false | undefined;
|
|
264
|
+
livemode?: boolean | undefined;
|
|
265
|
+
customer?: string | {
|
|
266
|
+
[x: string]: unknown;
|
|
267
|
+
id: string;
|
|
268
|
+
object: "customer";
|
|
269
|
+
deleted?: false | undefined;
|
|
270
|
+
livemode?: boolean | undefined;
|
|
271
|
+
customer_account?: string | null | undefined;
|
|
272
|
+
} | null | undefined;
|
|
273
|
+
customer_account?: string | null | undefined;
|
|
274
|
+
};
|
|
275
|
+
};
|
|
276
|
+
};
|
|
277
|
+
invoice: {
|
|
278
|
+
account_tax_ids: (string | {
|
|
279
|
+
[x: string]: unknown;
|
|
280
|
+
id: string;
|
|
281
|
+
object: "tax_id";
|
|
282
|
+
deleted?: false | undefined;
|
|
283
|
+
livemode: boolean;
|
|
284
|
+
customer?: null | undefined;
|
|
285
|
+
customer_account?: null | undefined;
|
|
286
|
+
owner: {
|
|
287
|
+
type: "self";
|
|
288
|
+
customer_account: null;
|
|
289
|
+
account?: null | undefined;
|
|
290
|
+
customer?: null | undefined;
|
|
291
|
+
} | {
|
|
292
|
+
type: "account";
|
|
293
|
+
account: string | {
|
|
294
|
+
[x: string]: unknown;
|
|
295
|
+
id: string;
|
|
296
|
+
object: string;
|
|
297
|
+
deleted?: false | undefined;
|
|
298
|
+
livemode?: boolean | undefined;
|
|
299
|
+
customer?: string | {
|
|
300
|
+
[x: string]: unknown;
|
|
301
|
+
id: string;
|
|
302
|
+
object: "customer";
|
|
303
|
+
deleted?: false | undefined;
|
|
304
|
+
livemode?: boolean | undefined;
|
|
305
|
+
customer_account?: string | null | undefined;
|
|
306
|
+
} | null | undefined;
|
|
307
|
+
customer_account?: string | null | undefined;
|
|
308
|
+
};
|
|
309
|
+
customer_account: null;
|
|
310
|
+
customer?: null | undefined;
|
|
311
|
+
};
|
|
312
|
+
})[] | null;
|
|
313
|
+
custom_fields: {
|
|
314
|
+
name: string;
|
|
315
|
+
value: string;
|
|
316
|
+
}[] | null;
|
|
317
|
+
description: string | null;
|
|
318
|
+
footer: string | null;
|
|
319
|
+
issuer: {
|
|
320
|
+
type: "self";
|
|
321
|
+
account?: null | undefined;
|
|
322
|
+
} | {
|
|
323
|
+
type: "account";
|
|
324
|
+
account: string | {
|
|
325
|
+
[x: string]: unknown;
|
|
326
|
+
id: string;
|
|
327
|
+
object: string;
|
|
328
|
+
deleted?: false | undefined;
|
|
329
|
+
livemode?: boolean | undefined;
|
|
330
|
+
customer?: string | {
|
|
331
|
+
[x: string]: unknown;
|
|
332
|
+
id: string;
|
|
333
|
+
object: "customer";
|
|
334
|
+
deleted?: false | undefined;
|
|
335
|
+
livemode?: boolean | undefined;
|
|
336
|
+
customer_account?: string | null | undefined;
|
|
337
|
+
} | null | undefined;
|
|
338
|
+
customer_account?: string | null | undefined;
|
|
339
|
+
};
|
|
340
|
+
};
|
|
341
|
+
};
|
|
342
|
+
automaticTax: {
|
|
343
|
+
enabled: boolean;
|
|
344
|
+
liability?: {
|
|
345
|
+
type: "self";
|
|
346
|
+
account?: null | undefined;
|
|
347
|
+
} | {
|
|
348
|
+
type: "account";
|
|
349
|
+
account: string | {
|
|
350
|
+
[x: string]: unknown;
|
|
351
|
+
id: string;
|
|
352
|
+
object: string;
|
|
353
|
+
deleted?: false | undefined;
|
|
354
|
+
livemode?: boolean | undefined;
|
|
355
|
+
customer?: string | {
|
|
356
|
+
[x: string]: unknown;
|
|
357
|
+
id: string;
|
|
358
|
+
object: "customer";
|
|
359
|
+
deleted?: false | undefined;
|
|
360
|
+
livemode?: boolean | undefined;
|
|
361
|
+
customer_account?: string | null | undefined;
|
|
362
|
+
} | null | undefined;
|
|
363
|
+
customer_account?: string | null | undefined;
|
|
364
|
+
};
|
|
365
|
+
} | null | undefined;
|
|
366
|
+
disabled_reason?: null | undefined;
|
|
367
|
+
};
|
|
368
|
+
taxLevels: {
|
|
369
|
+
subscription: string[];
|
|
370
|
+
item: string[];
|
|
371
|
+
};
|
|
372
|
+
};
|
|
373
|
+
originalPrepared: Omit<{
|
|
374
|
+
version: 1;
|
|
375
|
+
scope: "platform";
|
|
376
|
+
expected: {
|
|
377
|
+
customerAccountId: string;
|
|
378
|
+
subscriptionId: string;
|
|
379
|
+
itemId: string;
|
|
380
|
+
currentPriceId: string;
|
|
381
|
+
currentProductId: string;
|
|
382
|
+
targetPriceId: string;
|
|
383
|
+
targetProductId: string;
|
|
384
|
+
periodStart: number;
|
|
385
|
+
periodEnd: number;
|
|
386
|
+
livemode: boolean;
|
|
387
|
+
};
|
|
388
|
+
quantity: number;
|
|
389
|
+
providerSnapshot: {
|
|
390
|
+
subscription: {
|
|
391
|
+
[x: string]: unknown;
|
|
392
|
+
id: string;
|
|
393
|
+
object: "subscription";
|
|
394
|
+
customer_account: string;
|
|
395
|
+
status: "active";
|
|
396
|
+
currency: string;
|
|
397
|
+
livemode: boolean;
|
|
398
|
+
schedule: null;
|
|
399
|
+
cancel_at: null;
|
|
400
|
+
cancel_at_period_end: false;
|
|
401
|
+
pause_collection: null;
|
|
402
|
+
pending_update: null;
|
|
403
|
+
default_source: null;
|
|
404
|
+
application_fee_percent: null;
|
|
405
|
+
payment_settings: {
|
|
406
|
+
payment_method_options: null;
|
|
407
|
+
payment_method_types: null;
|
|
408
|
+
save_default_payment_method: "off" | null;
|
|
409
|
+
} | null;
|
|
410
|
+
billing_schedules?: unknown[] | undefined;
|
|
411
|
+
items: {
|
|
412
|
+
[x: string]: unknown;
|
|
413
|
+
has_more: false;
|
|
414
|
+
data: [{
|
|
415
|
+
[x: string]: unknown;
|
|
416
|
+
id: string;
|
|
417
|
+
object: "subscription_item";
|
|
418
|
+
subscription: string;
|
|
419
|
+
current_period_start: number;
|
|
420
|
+
current_period_end: number;
|
|
421
|
+
quantity: number;
|
|
422
|
+
price: {
|
|
423
|
+
[x: string]: unknown;
|
|
424
|
+
id: string;
|
|
425
|
+
object: "price";
|
|
426
|
+
product: string | {
|
|
427
|
+
[x: string]: unknown;
|
|
428
|
+
id: string;
|
|
429
|
+
object: "product";
|
|
430
|
+
deleted?: false | undefined;
|
|
431
|
+
};
|
|
432
|
+
active: boolean;
|
|
433
|
+
livemode: boolean;
|
|
434
|
+
type: "recurring";
|
|
435
|
+
currency: string;
|
|
436
|
+
billing_scheme: "per_unit";
|
|
437
|
+
recurring: {
|
|
438
|
+
[x: string]: unknown;
|
|
439
|
+
interval: "day" | "month" | "week" | "year";
|
|
440
|
+
interval_count: number;
|
|
441
|
+
usage_type: "licensed";
|
|
442
|
+
};
|
|
443
|
+
};
|
|
444
|
+
}];
|
|
445
|
+
};
|
|
446
|
+
};
|
|
447
|
+
targetPrice: {
|
|
448
|
+
[x: string]: unknown;
|
|
449
|
+
id: string;
|
|
450
|
+
object: "price";
|
|
451
|
+
product: string | {
|
|
452
|
+
[x: string]: unknown;
|
|
453
|
+
id: string;
|
|
454
|
+
object: "product";
|
|
455
|
+
deleted?: false | undefined;
|
|
456
|
+
};
|
|
457
|
+
active: boolean;
|
|
458
|
+
livemode: boolean;
|
|
459
|
+
type: "recurring";
|
|
460
|
+
currency: string;
|
|
461
|
+
billing_scheme: "per_unit";
|
|
462
|
+
recurring: {
|
|
463
|
+
[x: string]: unknown;
|
|
464
|
+
interval: "day" | "month" | "week" | "year";
|
|
465
|
+
interval_count: number;
|
|
466
|
+
usage_type: "licensed";
|
|
467
|
+
};
|
|
468
|
+
};
|
|
469
|
+
billingCustomer?: {
|
|
470
|
+
[x: string]: unknown;
|
|
471
|
+
id: string;
|
|
472
|
+
object: "customer";
|
|
473
|
+
customer_account: string;
|
|
474
|
+
livemode: boolean;
|
|
475
|
+
deleted?: false | undefined;
|
|
476
|
+
discount: {
|
|
477
|
+
[x: string]: unknown;
|
|
478
|
+
id: string;
|
|
479
|
+
object: "discount";
|
|
480
|
+
deleted?: false | undefined;
|
|
481
|
+
} | null;
|
|
482
|
+
} | undefined;
|
|
483
|
+
};
|
|
484
|
+
status: "prepared";
|
|
485
|
+
preservation: "requires_schedule_validation";
|
|
486
|
+
requestIdentity: {
|
|
487
|
+
key: string;
|
|
488
|
+
binding: string;
|
|
489
|
+
};
|
|
490
|
+
}, "requestIdentity" | "version"> & {
|
|
491
|
+
version: 2;
|
|
492
|
+
requestIdentity: {
|
|
493
|
+
key: string;
|
|
494
|
+
binding: string;
|
|
495
|
+
};
|
|
496
|
+
};
|
|
497
|
+
completeRequest: import("../../../renewalV2/index.js").PreparedRenewalScheduleAttachmentV2;
|
|
498
|
+
stageEvidence: {
|
|
499
|
+
actualFreshSubscription: unknown;
|
|
500
|
+
};
|
|
501
|
+
rawSources: Args;
|
|
502
|
+
freshness: string;
|
|
503
|
+
};
|
|
504
|
+
type InitialMaterial = ReturnType<typeof material>;
|
|
505
|
+
type Classified = {
|
|
506
|
+
status: "classified";
|
|
507
|
+
kind: "RENEWAL_MATERIAL_V2_DATA_CONSISTENCY_ONLY";
|
|
508
|
+
material: InitialMaterial;
|
|
509
|
+
};
|
|
510
|
+
declare const RETAINED_STOP: Readonly<{
|
|
511
|
+
status: "unsupported";
|
|
512
|
+
code: "RETAINED_INITIAL_MATERIAL_STOP";
|
|
513
|
+
}>;
|
|
514
|
+
declare const FRESH_STOP: Readonly<{
|
|
515
|
+
status: "unsupported";
|
|
516
|
+
code: "RAW_COUPON_MATERIAL_STOP";
|
|
517
|
+
}>;
|
|
518
|
+
/** Internal DATA consistency only; Source owner and acquisition provenance remain unbound. */
|
|
519
|
+
export declare function classifyOwnedRetainedInitialAttachment(raw: unknown): Promise<Classified | typeof RETAINED_STOP>;
|
|
520
|
+
export declare function classifyOwnedInitialAttachment(raw: unknown): Promise<Classified | typeof FRESH_STOP>;
|
|
521
|
+
export {};
|
|
522
|
+
//# sourceMappingURL=classifiers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"classifiers.d.ts","sourceRoot":"","sources":["../../../../../../src/client/billing/renewalAttach/internal/material/classifiers.ts"],"names":[],"mappings":"AACA,OAAO,EACL,gCAAgC,IAAI,EAAE,EACtC,kCAAkC,IAAI,EAAE,EACzC,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAKL,KAAK,aAAa,EAEnB,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,yBAAyB,EAAE,MAAM,mBAAmB,CAAC;AAW9D,KAAK,QAAQ,GAAG,OAAO,CAAC,UAAU,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC;AAC/C,KAAK,OAAO,GAAG,OAAO,CAAC,UAAU,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC;AAC9C,KAAK,KAAK,GAAG,UAAU,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAC1D,KAAK,IAAI,GAAG;IACV,aAAa,EAAE,aAAa,CAAC,eAAe,CAAC,CAAC;IAC9C,MAAM,EAAE,SAAS,CAAC;IAClB,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC;AACF,iBAAS,QAAQ,CACf,IAAI,EAAE,IAAI,EACV,KAAK,EAAE,OAAO,EACd,QAAQ,EAAE,QAAQ,EAClB,OAAO,EAAE,OAAO,EAChB,KAAK,EAAE,KAAK,EACZ,QAAQ,EAAE;IAAE,uBAAuB,EAAE,OAAO,CAAA;CAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iCAAT,OAAO;;;;EAyB7C;AACD,KAAK,eAAe,GAAG,UAAU,CAAC,OAAO,QAAQ,CAAC,CAAC;AACnD,KAAK,UAAU,GAAG;IAChB,MAAM,EAAE,YAAY,CAAC;IACrB,IAAI,EAAE,2CAA2C,CAAC;IAClD,QAAQ,EAAE,eAAe,CAAC;CAC3B,CAAC;AACF,QAAA,MAAM,aAAa;YACT,aAAa;;EAErB,CAAC;AACH,QAAA,MAAM,UAAU;YACN,aAAa;;EAErB,CAAC;AAoMH,8FAA8F;AAC9F,wBAAgB,sCAAsC,CACpD,GAAG,EAAE,OAAO,GACX,OAAO,CAAC,UAAU,GAAG,OAAO,aAAa,CAAC,CAe5C;AACD,wBAAgB,8BAA8B,CAC5C,GAAG,EAAE,OAAO,GACX,OAAO,CAAC,UAAU,GAAG,OAAO,UAAU,CAAC,CAezC"}
|