@fantastic.dev/better-stripe 0.90.0 → 0.92.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 +12 -0
- package/README.md +1 -1
- package/dist/client/billing/renewalAttach/internal/acquisition/ownedAcquisition.d.ts +41 -0
- package/dist/client/billing/renewalAttach/internal/acquisition/ownedAcquisition.d.ts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/acquisition/ownedAcquisition.js +187 -0
- package/dist/client/billing/renewalAttach/internal/acquisition/ownedAcquisition.js.map +1 -0
- package/dist/client/billing/renewalAttach/internal/acquisition/rawAcquisition.d.ts +2 -23
- package/dist/client/billing/renewalAttach/internal/acquisition/rawAcquisition.d.ts.map +1 -1
- package/dist/client/billing/renewalAttach/internal/acquisition/rawAcquisition.js +1 -112
- package/dist/client/billing/renewalAttach/internal/acquisition/rawAcquisition.js.map +1 -1
- package/dist/client/billing/renewalAttach/internal/acquisition/rawWireSource.d.ts +8 -3
- package/dist/client/billing/renewalAttach/internal/acquisition/rawWireSource.d.ts.map +1 -1
- package/dist/client/billing/renewalAttach/internal/acquisition/rawWireSource.js +1 -0
- package/dist/client/billing/renewalAttach/internal/acquisition/rawWireSource.js.map +1 -1
- package/dist/client/billing/renewalAttach/internal/acquisition/test-fixtures/sourcePort.d.mts +1 -1
- package/dist/client/billing/renewalAttach/internal/configure/actor.d.ts +14 -0
- package/dist/client/billing/renewalAttach/internal/configure/actor.d.ts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/configure/actor.js +444 -0
- package/dist/client/billing/renewalAttach/internal/configure/actor.js.map +1 -0
- package/dist/client/billing/renewalAttach/internal/configure/capture.d.ts +12 -0
- package/dist/client/billing/renewalAttach/internal/configure/capture.d.ts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/configure/capture.js +99 -0
- package/dist/client/billing/renewalAttach/internal/configure/capture.js.map +1 -0
- package/dist/client/billing/renewalAttach/internal/configure/output.d.ts +16 -0
- package/dist/client/billing/renewalAttach/internal/configure/output.d.ts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/configure/output.js +274 -0
- package/dist/client/billing/renewalAttach/internal/configure/output.js.map +1 -0
- package/dist/client/billing/renewalAttach/internal/configure/ownedContinuation.d.ts +3 -0
- package/dist/client/billing/renewalAttach/internal/configure/ownedContinuation.d.ts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/configure/ownedContinuation.js +61 -0
- package/dist/client/billing/renewalAttach/internal/configure/ownedContinuation.js.map +1 -0
- package/dist/client/billing/renewalAttach/internal/configure/replay.d.ts +3 -0
- package/dist/client/billing/renewalAttach/internal/configure/replay.d.ts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/configure/replay.js +9 -0
- package/dist/client/billing/renewalAttach/internal/configure/replay.js.map +1 -0
- package/dist/client/billing/renewalAttach/internal/configure/request.d.ts +39 -0
- package/dist/client/billing/renewalAttach/internal/configure/request.d.ts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/configure/request.js +245 -0
- package/dist/client/billing/renewalAttach/internal/configure/request.js.map +1 -0
- package/dist/client/billing/renewalAttach/internal/configure/transport.d.ts +88 -0
- package/dist/client/billing/renewalAttach/internal/configure/transport.d.ts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/configure/transport.js +289 -0
- package/dist/client/billing/renewalAttach/internal/configure/transport.js.map +1 -0
- package/dist/client/billing/renewalAttach/internal/observation/actor.d.ts +16 -0
- package/dist/client/billing/renewalAttach/internal/observation/actor.d.ts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/observation/actor.js +383 -0
- package/dist/client/billing/renewalAttach/internal/observation/actor.js.map +1 -0
- package/dist/client/billing/renewalAttach/internal/observation/capture.d.ts +9 -0
- package/dist/client/billing/renewalAttach/internal/observation/capture.d.ts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/observation/capture.js +216 -0
- package/dist/client/billing/renewalAttach/internal/observation/capture.js.map +1 -0
- package/dist/client/billing/renewalAttach/internal/observation/configureAcknowledgement.d.ts +5 -0
- package/dist/client/billing/renewalAttach/internal/observation/configureAcknowledgement.d.ts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/observation/configureAcknowledgement.js +11 -0
- package/dist/client/billing/renewalAttach/internal/observation/configureAcknowledgement.js.map +1 -0
- package/dist/client/billing/renewalAttach/internal/observation/profile.d.ts +7 -0
- package/dist/client/billing/renewalAttach/internal/observation/profile.d.ts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/observation/profile.js +190 -0
- package/dist/client/billing/renewalAttach/internal/observation/profile.js.map +1 -0
- package/dist/client/billing/renewalAttach/internal/observation/record.d.ts +5 -0
- package/dist/client/billing/renewalAttach/internal/observation/record.d.ts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/observation/record.js +317 -0
- package/dist/client/billing/renewalAttach/internal/observation/record.js.map +1 -0
- package/dist/client/billing/renewalAttach/internal/observation/types.d.ts +84 -0
- package/dist/client/billing/renewalAttach/internal/observation/types.d.ts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/observation/types.js +27 -0
- package/dist/client/billing/renewalAttach/internal/observation/types.js.map +1 -0
- package/dist/client/billing/renewalAttach/internal/operations/configureReadTransport.d.ts +18 -0
- package/dist/client/billing/renewalAttach/internal/operations/configureReadTransport.d.ts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/operations/configureReadTransport.js +229 -0
- package/dist/client/billing/renewalAttach/internal/operations/configureReadTransport.js.map +1 -0
- package/dist/client/billing/renewalAttach/internal/operations/fixedTransport.d.ts +163 -0
- package/dist/client/billing/renewalAttach/internal/operations/fixedTransport.d.ts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/operations/fixedTransport.js +443 -0
- package/dist/client/billing/renewalAttach/internal/operations/fixedTransport.js.map +1 -0
- package/dist/client/billing/renewalAttach/internal/operations/initialAttach.d.ts +8 -0
- package/dist/client/billing/renewalAttach/internal/operations/initialAttach.d.ts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/operations/initialAttach.js +467 -0
- package/dist/client/billing/renewalAttach/internal/operations/initialAttach.js.map +1 -0
- package/dist/client/billing/renewalAttach/internal/operations/ownedAwait.d.ts +6 -0
- package/dist/client/billing/renewalAttach/internal/operations/ownedAwait.d.ts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/operations/ownedAwait.js +59 -0
- package/dist/client/billing/renewalAttach/internal/operations/ownedAwait.js.map +1 -0
- package/dist/client/billing/renewalAttach/internal/operations/providerFailure.d.ts +10 -0
- package/dist/client/billing/renewalAttach/internal/operations/providerFailure.d.ts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/operations/providerFailure.js +48 -0
- package/dist/client/billing/renewalAttach/internal/operations/providerFailure.js.map +1 -0
- package/dist/client/billing/renewalAttach/internal/operations/sourceOperations.d.ts +20 -0
- package/dist/client/billing/renewalAttach/internal/operations/sourceOperations.d.ts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/operations/sourceOperations.js +44 -0
- package/dist/client/billing/renewalAttach/internal/operations/sourceOperations.js.map +1 -0
- package/dist/client/billing/renewalAttach/internal/operations/types.d.ts +42 -0
- package/dist/client/billing/renewalAttach/internal/operations/types.d.ts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/operations/types.js +158 -0
- package/dist/client/billing/renewalAttach/internal/operations/types.js.map +1 -0
- package/dist/client/billing/renewalAttach/internal/preflight/configurePreflight.d.ts +5 -0
- package/dist/client/billing/renewalAttach/internal/preflight/configurePreflight.d.ts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/preflight/configurePreflight.js +214 -0
- package/dist/client/billing/renewalAttach/internal/preflight/configurePreflight.js.map +1 -0
- package/dist/client/billing/renewalAttach/internal/preflight/grammar.d.ts +33 -0
- package/dist/client/billing/renewalAttach/internal/preflight/grammar.d.ts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/preflight/grammar.js +208 -0
- package/dist/client/billing/renewalAttach/internal/preflight/grammar.js.map +1 -0
- package/dist/client/billing/renewalAttach/internal/preflight/output.d.ts +4 -0
- package/dist/client/billing/renewalAttach/internal/preflight/output.d.ts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/preflight/output.js +25 -0
- package/dist/client/billing/renewalAttach/internal/preflight/output.js.map +1 -0
- package/dist/client/billing/renewalAttach/internal/preflight/record.d.ts +16 -0
- package/dist/client/billing/renewalAttach/internal/preflight/record.d.ts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/preflight/record.js +93 -0
- package/dist/client/billing/renewalAttach/internal/preflight/record.js.map +1 -0
- package/dist/client/billing/renewalAttach/internal/preflight/relations.d.ts +7 -0
- package/dist/client/billing/renewalAttach/internal/preflight/relations.d.ts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/preflight/relations.js +153 -0
- package/dist/client/billing/renewalAttach/internal/preflight/relations.js.map +1 -0
- package/dist/client/billing/renewalAttach/internal/recovery/material.d.ts +22 -0
- package/dist/client/billing/renewalAttach/internal/recovery/material.d.ts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/recovery/material.js +221 -0
- package/dist/client/billing/renewalAttach/internal/recovery/material.js.map +1 -0
- package/dist/client/billing/renewalAttach/internal/recovery/output.d.ts +8 -0
- package/dist/client/billing/renewalAttach/internal/recovery/output.d.ts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/recovery/output.js +101 -0
- package/dist/client/billing/renewalAttach/internal/recovery/output.js.map +1 -0
- package/dist/client/billing/renewalAttach/internal/recovery/record.d.ts +12 -0
- package/dist/client/billing/renewalAttach/internal/recovery/record.d.ts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/recovery/record.js +186 -0
- package/dist/client/billing/renewalAttach/internal/recovery/record.js.map +1 -0
- package/dist/client/billing/renewalAttach/internal/recovery/recoveryActor.d.ts +5 -0
- package/dist/client/billing/renewalAttach/internal/recovery/recoveryActor.d.ts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/recovery/recoveryActor.js +498 -0
- package/dist/client/billing/renewalAttach/internal/recovery/recoveryActor.js.map +1 -0
- package/dist/client/billing/renewalAttach/internal/recovery/relation.d.ts +21 -0
- package/dist/client/billing/renewalAttach/internal/recovery/relation.d.ts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/recovery/relation.js +119 -0
- package/dist/client/billing/renewalAttach/internal/recovery/relation.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 +26 -8
- package/docs/renewal-material-observation.md +58 -0
- package/docs/renewal-phase-assembly.md +68 -0
- package/docs/renewal-raw-acquisition.md +19 -5
- package/package.json +1 -1
- package/src/client/billing/renewalAttach/internal/acquisition/ownedAcquisition.ts +304 -0
- package/src/client/billing/renewalAttach/internal/acquisition/rawAcquisition.ts +2 -160
- package/src/client/billing/renewalAttach/internal/acquisition/rawWireSource.ts +15 -3
- package/src/client/billing/renewalAttach/internal/configure/actor.ts +586 -0
- package/src/client/billing/renewalAttach/internal/configure/capture.ts +117 -0
- package/src/client/billing/renewalAttach/internal/configure/dispatch.integration.test.ts +32 -0
- package/src/client/billing/renewalAttach/internal/configure/limits.test.ts +510 -0
- package/src/client/billing/renewalAttach/internal/configure/order.integration.test.ts +207 -0
- package/src/client/billing/renewalAttach/internal/configure/output.ts +372 -0
- package/src/client/billing/renewalAttach/internal/configure/ownedContinuation.ts +56 -0
- package/src/client/billing/renewalAttach/internal/configure/ownership.integration.test.ts +148 -0
- package/src/client/billing/renewalAttach/internal/configure/replay.integration.test.ts +173 -0
- package/src/client/billing/renewalAttach/internal/configure/replay.ts +13 -0
- package/src/client/billing/renewalAttach/internal/configure/request.ts +312 -0
- package/src/client/billing/renewalAttach/internal/configure/transport.integration.test.ts +507 -0
- package/src/client/billing/renewalAttach/internal/configure/transport.ts +348 -0
- package/src/client/billing/renewalAttach/internal/observation/actor.ts +487 -0
- package/src/client/billing/renewalAttach/internal/observation/capture.ts +251 -0
- package/src/client/billing/renewalAttach/internal/observation/configureAcknowledgement.ts +20 -0
- package/src/client/billing/renewalAttach/internal/observation/observation.integration.test.ts +220 -0
- package/src/client/billing/renewalAttach/internal/observation/observationConfigureACK.integration.test.ts +36 -0
- package/src/client/billing/renewalAttach/internal/observation/observationConfigureACKControls.integration.test.ts +48 -0
- package/src/client/billing/renewalAttach/internal/observation/observationConfigureACKLifecycle.integration.test.ts +44 -0
- package/src/client/billing/renewalAttach/internal/observation/observationConfiguredHistory.integration.test.ts +34 -0
- package/src/client/billing/renewalAttach/internal/observation/observationRetirement.integration.test.ts +60 -0
- package/src/client/billing/renewalAttach/internal/observation/profile.ts +264 -0
- package/src/client/billing/renewalAttach/internal/observation/record.ts +408 -0
- package/src/client/billing/renewalAttach/internal/observation/types.ts +107 -0
- package/src/client/billing/renewalAttach/internal/operations/configureReadTransport.ts +285 -0
- package/src/client/billing/renewalAttach/internal/operations/defaultBindings.test.ts +69 -0
- package/src/client/billing/renewalAttach/internal/operations/fixedTransport.ts +574 -0
- package/src/client/billing/renewalAttach/internal/operations/initialAttach.integration.test.ts +34 -0
- package/src/client/billing/renewalAttach/internal/operations/initialAttach.ts +535 -0
- package/src/client/billing/renewalAttach/internal/operations/ownedAwait.ts +63 -0
- package/src/client/billing/renewalAttach/internal/operations/providerFailure.integration.test.ts +61 -0
- package/src/client/billing/renewalAttach/internal/operations/providerFailure.ts +66 -0
- package/src/client/billing/renewalAttach/internal/operations/sourceOperations.ts +50 -0
- package/src/client/billing/renewalAttach/internal/operations/transport.integration.test.ts +116 -0
- package/src/client/billing/renewalAttach/internal/operations/types.ts +223 -0
- package/src/client/billing/renewalAttach/internal/preflight/configurePreflight.integration.test.ts +285 -0
- package/src/client/billing/renewalAttach/internal/preflight/configurePreflight.ts +258 -0
- package/src/client/billing/renewalAttach/internal/preflight/configureReads.integration.test.ts +139 -0
- package/src/client/billing/renewalAttach/internal/preflight/grammar.ts +257 -0
- package/src/client/billing/renewalAttach/internal/preflight/output.ts +42 -0
- package/src/client/billing/renewalAttach/internal/preflight/owner.integration.test.ts +82 -0
- package/src/client/billing/renewalAttach/internal/preflight/preflight.integration.test.ts +354 -0
- package/src/client/billing/renewalAttach/internal/preflight/record.ts +127 -0
- package/src/client/billing/renewalAttach/internal/preflight/relations.ts +209 -0
- package/src/client/billing/renewalAttach/internal/recovery/material.ts +311 -0
- package/src/client/billing/renewalAttach/internal/recovery/output.ts +136 -0
- package/src/client/billing/renewalAttach/internal/recovery/record.ts +230 -0
- package/src/client/billing/renewalAttach/internal/recovery/recovery.integration.test.ts +463 -0
- package/src/client/billing/renewalAttach/internal/recovery/recoveryActor.ts +599 -0
- package/src/client/billing/renewalAttach/internal/recovery/relation.ts +175 -0
- package/src/client/billing/renewalAttach/internal/test-fixtures/attachEntries.ts +217 -0
- package/src/client/billing/renewalAttach/internal/test-fixtures/attachObservations.ts +226 -0
- package/src/client/billing/renewalAttach/internal/test-fixtures/attachScenario.ts +556 -0
- package/src/client/billing/renewalAttach/internal/test-fixtures/attachScenarioAssertions.ts +180 -0
- package/src/client/billing/renewalAttach/internal/test-fixtures/attachScenarioBarriers.ts +144 -0
- package/src/client/billing/renewalAttach/internal/test-fixtures/configurePreflightAssertions.ts +122 -0
- package/src/client/billing/renewalAttach/internal/test-fixtures/configurePreflightBarriers.ts +330 -0
- package/src/client/billing/renewalAttach/internal/test-fixtures/configurePreflightControls.ts +139 -0
- package/src/client/billing/renewalAttach/internal/test-fixtures/configurePreflightOperation.ts +513 -0
- package/src/client/billing/renewalAttach/internal/test-fixtures/configureReadNativeBaseline.ts +344 -0
- package/src/client/billing/renewalAttach/internal/test-fixtures/configureReadOperation.ts +278 -0
- package/src/client/billing/renewalAttach/internal/test-fixtures/configureReadPort.ts +17 -0
- package/src/client/billing/renewalAttach/internal/test-fixtures/configureWriteAssertions.ts +537 -0
- package/src/client/billing/renewalAttach/internal/test-fixtures/configureWriteBarriers.ts +125 -0
- package/src/client/billing/renewalAttach/internal/test-fixtures/configureWriteDeclarations.ts +325 -0
- package/src/client/billing/renewalAttach/internal/test-fixtures/configureWriteDelegate.ts +38 -0
- package/src/client/billing/renewalAttach/internal/test-fixtures/configureWriteHistory.ts +471 -0
- package/src/client/billing/renewalAttach/internal/test-fixtures/configureWriteObservations.ts +515 -0
- package/src/client/billing/renewalAttach/internal/test-fixtures/configureWriteOperation.ts +587 -0
- package/src/client/billing/renewalAttach/internal/test-fixtures/observationAssertions.ts +211 -0
- package/src/client/billing/renewalAttach/internal/test-fixtures/observationConfigureACKAssertions.ts +115 -0
- package/src/client/billing/renewalAttach/internal/test-fixtures/observationConfigureACKDeclarations.ts +141 -0
- package/src/client/billing/renewalAttach/internal/test-fixtures/observationConfigureACKLifecycleAssertions.ts +74 -0
- package/src/client/billing/renewalAttach/internal/test-fixtures/observationConfigureACKLifecycleDeclarations.ts +79 -0
- package/src/client/billing/renewalAttach/internal/test-fixtures/observationConfigureACKLifecycleInstrumentation.ts +207 -0
- package/src/client/billing/renewalAttach/internal/test-fixtures/observationConfigureACKLifecycleOperation.ts +494 -0
- package/src/client/billing/renewalAttach/internal/test-fixtures/observationConfigureACKOperation.ts +452 -0
- package/src/client/billing/renewalAttach/internal/test-fixtures/observationConfiguredHistoryAssertions.ts +88 -0
- package/src/client/billing/renewalAttach/internal/test-fixtures/observationConfiguredHistoryDeclarations.ts +170 -0
- package/src/client/billing/renewalAttach/internal/test-fixtures/observationConfiguredHistoryNative.ts +99 -0
- package/src/client/billing/renewalAttach/internal/test-fixtures/observationConfiguredHistoryOperation.ts +411 -0
- package/src/client/billing/renewalAttach/internal/test-fixtures/observationDeclarations.ts +192 -0
- package/src/client/billing/renewalAttach/internal/test-fixtures/observationHTTP.ts +197 -0
- package/src/client/billing/renewalAttach/internal/test-fixtures/observationObservations.ts +269 -0
- package/src/client/billing/renewalAttach/internal/test-fixtures/observationOperation.ts +262 -0
- package/src/client/billing/renewalAttach/internal/test-fixtures/observationProbe.ts +319 -0
- package/src/client/billing/renewalAttach/internal/test-fixtures/ownedOperations.ts +94 -0
- package/src/client/billing/renewalAttach/internal/test-fixtures/sourceOperationPort.ts +16 -0
- package/src/client/billing/renewalAttach/internal/test-fixtures/stockHttp.ts +21 -0
package/CHANGELOG.md
CHANGED
|
@@ -26,6 +26,18 @@
|
|
|
26
26
|
- Remove internal tracker references from public documentation and add a
|
|
27
27
|
regression check that prevents their reintroduction.
|
|
28
28
|
|
|
29
|
+
## [0.92.0](https://github.com/FantasticDevHQ/better-stripe/compare/v0.91.0...v0.92.0) (2026-10-30)
|
|
30
|
+
|
|
31
|
+
### Features
|
|
32
|
+
|
|
33
|
+
- **billing:** retain configure acknowledgements for owned observation ([#422](https://github.com/FantasticDevHQ/better-stripe/issues/422)) ([78215f3](https://github.com/FantasticDevHQ/better-stripe/commit/78215f3b63bc103ed7e32df5ba5386c88c7bcc2a))
|
|
34
|
+
|
|
35
|
+
## [0.91.0](https://github.com/FantasticDevHQ/better-stripe/compare/v0.90.0...v0.91.0) (2026-10-30)
|
|
36
|
+
|
|
37
|
+
### Features
|
|
38
|
+
|
|
39
|
+
- **billing:** add internal owned renewal operations ([#420](https://github.com/FantasticDevHQ/better-stripe/issues/420)) ([bb0363d](https://github.com/FantasticDevHQ/better-stripe/commit/bb0363d8d8d6425fc4dcacd48d1fa9933bdde822))
|
|
40
|
+
|
|
29
41
|
## [0.90.0](https://github.com/FantasticDevHQ/better-stripe/compare/v0.89.0...v0.90.0) (2026-10-30)
|
|
30
42
|
|
|
31
43
|
### Features
|
package/README.md
CHANGED
|
@@ -5,7 +5,7 @@ billing, and Connect marketplaces. It provides checkout, subscriptions, webhook
|
|
|
5
5
|
syncing, marketplace fees and splits, payouts, refunds, and disputes, with React
|
|
6
6
|
hooks and headless UI components.
|
|
7
7
|
|
|
8
|
-
**Version**: `0.
|
|
8
|
+
**Version**: `0.92.0` <!-- x-release-please-version --> (pre-1.0). API may change between minor versions until 1.0.
|
|
9
9
|
|
|
10
10
|
Connect platforms use the default GA API version. Non-Connect merchants using
|
|
11
11
|
customer-only Accounts v2 need preview access and an explicit preview version.
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { OWNER } from "../originalOwner.js";
|
|
2
|
+
import { type RawReadTransport } from "./rawWireSource.js";
|
|
3
|
+
import { acquireCouponJoins } from "./rawCouponJoins.js";
|
|
4
|
+
declare const STOP: Readonly<{
|
|
5
|
+
ok: false;
|
|
6
|
+
complete: false;
|
|
7
|
+
code: "RAW_ACQUISITION_STOP";
|
|
8
|
+
}>;
|
|
9
|
+
type RawSuccess = Readonly<{
|
|
10
|
+
ok: true;
|
|
11
|
+
dataOnly: true;
|
|
12
|
+
bundle: {
|
|
13
|
+
wireSubscription: Record<string, unknown>;
|
|
14
|
+
wireTargetPrice: Record<string, unknown>;
|
|
15
|
+
wireBillingCustomer: Record<string, unknown>;
|
|
16
|
+
} & Awaited<ReturnType<typeof acquireCouponJoins>>;
|
|
17
|
+
observedAt: number;
|
|
18
|
+
sourceFulfillmentEstablished: false;
|
|
19
|
+
clockProvenanceEstablished: false;
|
|
20
|
+
operatorReady: false;
|
|
21
|
+
}>;
|
|
22
|
+
export type RawAcquisitionResult = typeof STOP | RawSuccess;
|
|
23
|
+
export type RawConfigureAcquisitionResult = typeof STOP | (RawSuccess & Readonly<{
|
|
24
|
+
schedule: Record<string, unknown>;
|
|
25
|
+
}>);
|
|
26
|
+
export declare function createSourceRawAcquisition(): Readonly<{
|
|
27
|
+
acquire(rawExpected: unknown): Promise<RawAcquisitionResult>;
|
|
28
|
+
}>;
|
|
29
|
+
/** Internal mechanical binding. It returns unsigned read data, not an operation context. */
|
|
30
|
+
export declare function bindRawAcquisitionFromSource(sourceOwner: typeof OWNER, sourceTransport: RawReadTransport): Readonly<{
|
|
31
|
+
acquire(rawExpected: unknown): Promise<RawAcquisitionResult>;
|
|
32
|
+
}>;
|
|
33
|
+
/** Fixed readonly configure profile. Its output is unsigned DATA, never operation authority. */
|
|
34
|
+
export declare function bindConfigureReadAcquisitionFromSource(sourceOwner: typeof OWNER, sourceTransport: RawReadTransport, fixedScope: Readonly<{
|
|
35
|
+
expected: unknown;
|
|
36
|
+
scheduleId: string;
|
|
37
|
+
}>): Readonly<{
|
|
38
|
+
acquire(): Promise<RawConfigureAcquisitionResult>;
|
|
39
|
+
}>;
|
|
40
|
+
export {};
|
|
41
|
+
//# sourceMappingURL=ownedAcquisition.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ownedAcquisition.d.ts","sourceRoot":"","sources":["../../../../../../src/client/billing/renewalAttach/internal/acquisition/ownedAcquisition.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAiB5C,OAAO,EAGL,KAAK,gBAAgB,EACtB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAIzD,QAAA,MAAM,IAAI;;;;EAIR,CAAC;AAEH,KAAK,UAAU,GAAG,QAAQ,CAAC;IACzB,EAAE,EAAE,IAAI,CAAC;IACT,QAAQ,EAAE,IAAI,CAAC;IACf,MAAM,EAAE;QACN,gBAAgB,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;QAC1C,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;QACzC,mBAAmB,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;KAC9C,GAAG,OAAO,CAAC,UAAU,CAAC,OAAO,kBAAkB,CAAC,CAAC,CAAC;IACnD,UAAU,EAAE,MAAM,CAAC;IACnB,4BAA4B,EAAE,KAAK,CAAC;IACpC,0BAA0B,EAAE,KAAK,CAAC;IAClC,aAAa,EAAE,KAAK,CAAC;CACtB,CAAC,CAAC;AACH,MAAM,MAAM,oBAAoB,GAAG,OAAO,IAAI,GAAG,UAAU,CAAC;AAC5D,MAAM,MAAM,6BAA6B,GACvC,OAAO,IAAI,GAAG,CAAC,UAAU,GAAG,QAAQ,CAAC;IAAE,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CAAE,CAAC,CAAC,CAAC;AAc/E,wBAAgB,0BAA0B,IAAI,QAAQ,CAAC;IACrD,OAAO,CAAC,WAAW,EAAE,OAAO,GAAG,OAAO,CAAC,oBAAoB,CAAC,CAAC;CAC9D,CAAC,CAOD;AAED,4FAA4F;AAC5F,wBAAgB,4BAA4B,CAC1C,WAAW,EAAE,OAAO,KAAK,EACzB,eAAe,EAAE,gBAAgB,GAChC,QAAQ,CAAC;IAAE,OAAO,CAAC,WAAW,EAAE,OAAO,GAAG,OAAO,CAAC,oBAAoB,CAAC,CAAA;CAAE,CAAC,CAO5E;AAED,gGAAgG;AAChG,wBAAgB,sCAAsC,CACpD,WAAW,EAAE,OAAO,KAAK,EACzB,eAAe,EAAE,gBAAgB,EACjC,UAAU,EAAE,QAAQ,CAAC;IAAE,QAAQ,EAAE,OAAO,CAAC;IAAC,UAAU,EAAE,MAAM,CAAA;CAAE,CAAC,GAC9D,QAAQ,CAAC;IAAE,OAAO,IAAI,OAAO,CAAC,6BAA6B,CAAC,CAAA;CAAE,CAAC,CAgDjE"}
|
|
@@ -0,0 +1,187 @@
|
|
|
1
|
+
import { types } from "node:util";
|
|
2
|
+
import { OWNER } from "../originalOwner.js";
|
|
3
|
+
import { createSourceStockRawDelegate } from "../stockRawDelegate.js";
|
|
4
|
+
import { freeze } from "../material/nodeKernel.js";
|
|
5
|
+
import { z } from "zod";
|
|
6
|
+
import { renewalExpected, renewalSubscription, renewalPrice, renewalBillingCustomer, } from "../../../renewalReplacementSchema.js";
|
|
7
|
+
import { resourceId, productId, referenceId, } from "../../../renewalAggregate/shared.js";
|
|
8
|
+
import { requiredJSONSnapshot } from "../material/requiredJson.js";
|
|
9
|
+
import { createReadLifetime } from "./readLifetime.js";
|
|
10
|
+
import { bindWireSource, rejectProxyJSON, } from "./rawWireSource.js";
|
|
11
|
+
import { acquireCouponJoins } from "./rawCouponJoins.js";
|
|
12
|
+
const need = (x) => {
|
|
13
|
+
if (!x)
|
|
14
|
+
throw Error("RAW_ACQUISITION_STOP");
|
|
15
|
+
};
|
|
16
|
+
const STOP = Object.freeze({
|
|
17
|
+
ok: false,
|
|
18
|
+
complete: false,
|
|
19
|
+
code: "RAW_ACQUISITION_STOP",
|
|
20
|
+
});
|
|
21
|
+
const observed = z.union([
|
|
22
|
+
z.null(),
|
|
23
|
+
resourceId("sub_sched"),
|
|
24
|
+
z
|
|
25
|
+
.object({
|
|
26
|
+
id: resourceId("sub_sched"),
|
|
27
|
+
object: z.literal("subscription_schedule"),
|
|
28
|
+
deleted: z.literal(false).optional(),
|
|
29
|
+
})
|
|
30
|
+
.passthrough(),
|
|
31
|
+
]);
|
|
32
|
+
const subscriptionView = renewalSubscription.extend({ schedule: observed });
|
|
33
|
+
// No public/operational entry binds this primitive. Only the separate TEST port binds fakes.
|
|
34
|
+
export function createSourceRawAcquisition() {
|
|
35
|
+
if (arguments.length !== 0)
|
|
36
|
+
throw Error("RAW_ACQUISITION_STOP");
|
|
37
|
+
const sourceOwner = OWNER;
|
|
38
|
+
sourceOwner.check();
|
|
39
|
+
const sourceTransport = createSourceStockRawDelegate();
|
|
40
|
+
sourceOwner.check();
|
|
41
|
+
return createSelectedRawAcquisition(sourceOwner, sourceTransport);
|
|
42
|
+
}
|
|
43
|
+
/** Internal mechanical binding. It returns unsigned read data, not an operation context. */
|
|
44
|
+
export function bindRawAcquisitionFromSource(sourceOwner, sourceTransport) {
|
|
45
|
+
if (arguments.length !== 2 || sourceOwner !== OWNER)
|
|
46
|
+
throw Error("RAW_ACQUISITION_STOP");
|
|
47
|
+
sourceOwner.check();
|
|
48
|
+
const capturedTransport = captureTransport(sourceTransport);
|
|
49
|
+
sourceOwner.check();
|
|
50
|
+
return createSelectedRawAcquisition(sourceOwner, capturedTransport);
|
|
51
|
+
}
|
|
52
|
+
/** Fixed readonly configure profile. Its output is unsigned DATA, never operation authority. */
|
|
53
|
+
export function bindConfigureReadAcquisitionFromSource(sourceOwner, sourceTransport, fixedScope) {
|
|
54
|
+
if (arguments.length !== 3 || sourceOwner !== OWNER)
|
|
55
|
+
throw Error("RAW_ACQUISITION_STOP");
|
|
56
|
+
sourceOwner.check();
|
|
57
|
+
need(fixedScope !== null && typeof fixedScope === "object");
|
|
58
|
+
need(!types.isProxy(fixedScope));
|
|
59
|
+
const prototype = Object.getPrototypeOf(fixedScope);
|
|
60
|
+
need(prototype === Object.prototype || prototype === null);
|
|
61
|
+
const keys = Reflect.ownKeys(fixedScope);
|
|
62
|
+
need(keys.length === 2 &&
|
|
63
|
+
keys.includes("expected") &&
|
|
64
|
+
keys.includes("scheduleId"));
|
|
65
|
+
const expectedDescriptor = Object.getOwnPropertyDescriptor(fixedScope, "expected"), scheduleDescriptor = Object.getOwnPropertyDescriptor(fixedScope, "scheduleId");
|
|
66
|
+
need(expectedDescriptor &&
|
|
67
|
+
expectedDescriptor.enumerable &&
|
|
68
|
+
"value" in expectedDescriptor);
|
|
69
|
+
need(scheduleDescriptor &&
|
|
70
|
+
scheduleDescriptor.enumerable &&
|
|
71
|
+
"value" in scheduleDescriptor);
|
|
72
|
+
need(typeof scheduleDescriptor.value === "string");
|
|
73
|
+
rejectProxyJSON(expectedDescriptor.value);
|
|
74
|
+
const expected = freeze(requiredJSONSnapshot(expectedDescriptor.value)), scheduleId = resourceId("sub_sched").parse(scheduleDescriptor.value), capturedTransport = captureTransport(sourceTransport);
|
|
75
|
+
sourceOwner.check();
|
|
76
|
+
const reader = createSelectedRawAcquisition(sourceOwner, capturedTransport, scheduleId);
|
|
77
|
+
return Object.freeze({
|
|
78
|
+
acquire() {
|
|
79
|
+
return reader.acquire(expected);
|
|
80
|
+
},
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
function captureTransport(sourceTransport) {
|
|
84
|
+
need(sourceTransport !== null && typeof sourceTransport === "object");
|
|
85
|
+
need(!types.isProxy(sourceTransport));
|
|
86
|
+
const prototype = Object.getPrototypeOf(sourceTransport);
|
|
87
|
+
need(prototype === Object.prototype || prototype === null);
|
|
88
|
+
const keys = Reflect.ownKeys(sourceTransport);
|
|
89
|
+
need(keys.length === 1 && keys[0] === "rawRequest");
|
|
90
|
+
const descriptor = Object.getOwnPropertyDescriptor(sourceTransport, "rawRequest");
|
|
91
|
+
need(descriptor &&
|
|
92
|
+
descriptor.enumerable &&
|
|
93
|
+
"value" in descriptor &&
|
|
94
|
+
typeof descriptor.value === "function");
|
|
95
|
+
const method = descriptor.value;
|
|
96
|
+
const capturedTransport = Object.freeze({
|
|
97
|
+
rawRequest(...args) {
|
|
98
|
+
return Reflect.apply(method, sourceTransport, args);
|
|
99
|
+
},
|
|
100
|
+
});
|
|
101
|
+
return capturedTransport;
|
|
102
|
+
}
|
|
103
|
+
function createSelectedRawAcquisition(sourceOwner, sourceTransport, fixedScheduleId = null) {
|
|
104
|
+
const lifetime = createReadLifetime(sourceOwner), read = bindWireSource(sourceTransport, lifetime);
|
|
105
|
+
return Object.freeze({
|
|
106
|
+
async acquire(rawExpected) {
|
|
107
|
+
try {
|
|
108
|
+
if (!lifetime.begin())
|
|
109
|
+
return STOP;
|
|
110
|
+
}
|
|
111
|
+
catch {
|
|
112
|
+
return STOP;
|
|
113
|
+
}
|
|
114
|
+
try {
|
|
115
|
+
rejectProxyJSON(rawExpected);
|
|
116
|
+
const expected = renewalExpected.parse(requiredJSONSnapshot(rawExpected)), context = {
|
|
117
|
+
customerAccountId: expected.customerAccountId,
|
|
118
|
+
livemode: expected.livemode,
|
|
119
|
+
};
|
|
120
|
+
const wireSubscription = await read("subscription", expected.subscriptionId);
|
|
121
|
+
lifetime.check();
|
|
122
|
+
const subscription = subscriptionView.parse(wireSubscription), item = subscription.items.data[0];
|
|
123
|
+
need(subscription.id === expected.subscriptionId &&
|
|
124
|
+
subscription.customer_account === expected.customerAccountId &&
|
|
125
|
+
subscription.livemode === expected.livemode &&
|
|
126
|
+
item.id === expected.itemId &&
|
|
127
|
+
item.subscription === expected.subscriptionId &&
|
|
128
|
+
item.price.id === expected.currentPriceId &&
|
|
129
|
+
item.price.livemode === expected.livemode &&
|
|
130
|
+
productId(item.price.product, context) ===
|
|
131
|
+
expected.currentProductId &&
|
|
132
|
+
item.current_period_start === expected.periodStart &&
|
|
133
|
+
item.current_period_end === expected.periodEnd);
|
|
134
|
+
const wireTargetPrice = await read("price", expected.targetPriceId);
|
|
135
|
+
lifetime.check();
|
|
136
|
+
const price = renewalPrice.parse(wireTargetPrice);
|
|
137
|
+
need(price.id === expected.targetPriceId &&
|
|
138
|
+
price.livemode === expected.livemode &&
|
|
139
|
+
productId(price.product, context) === expected.targetProductId);
|
|
140
|
+
const customerID = referenceId(subscription.customer, "cus", "customer", context), wireBillingCustomer = await read("customer", customerID);
|
|
141
|
+
lifetime.check();
|
|
142
|
+
const customer = renewalBillingCustomer.parse(wireBillingCustomer);
|
|
143
|
+
need(customer.id === customerID &&
|
|
144
|
+
customer.customer_account === expected.customerAccountId &&
|
|
145
|
+
customer.livemode === expected.livemode);
|
|
146
|
+
const joined = await acquireCouponJoins(wireSubscription, wireSubscription.items.data[0], expected.livemode, read, lifetime);
|
|
147
|
+
lifetime.check();
|
|
148
|
+
let schedule;
|
|
149
|
+
if (fixedScheduleId !== null) {
|
|
150
|
+
need(referenceId(subscription.schedule, "sub_sched", "subscription_schedule", context) === fixedScheduleId);
|
|
151
|
+
schedule = await read("schedule", fixedScheduleId);
|
|
152
|
+
lifetime.check();
|
|
153
|
+
need(schedule.id === fixedScheduleId &&
|
|
154
|
+
schedule.object === "subscription_schedule" &&
|
|
155
|
+
schedule.deleted !== true);
|
|
156
|
+
}
|
|
157
|
+
const sample = lifetime.check(), bundle = {
|
|
158
|
+
wireSubscription,
|
|
159
|
+
wireTargetPrice,
|
|
160
|
+
wireBillingCustomer,
|
|
161
|
+
...joined,
|
|
162
|
+
};
|
|
163
|
+
const result = requiredJSONSnapshot({
|
|
164
|
+
ok: true,
|
|
165
|
+
dataOnly: true,
|
|
166
|
+
bundle,
|
|
167
|
+
...(fixedScheduleId === null ? {} : { schedule }),
|
|
168
|
+
observedAt: Math.floor(sample.wallMs / 1000),
|
|
169
|
+
sourceFulfillmentEstablished: false,
|
|
170
|
+
clockProvenanceEstablished: false,
|
|
171
|
+
operatorReady: false,
|
|
172
|
+
});
|
|
173
|
+
lifetime.finish();
|
|
174
|
+
return freeze(result);
|
|
175
|
+
}
|
|
176
|
+
catch {
|
|
177
|
+
try {
|
|
178
|
+
lifetime.check();
|
|
179
|
+
}
|
|
180
|
+
catch { }
|
|
181
|
+
lifetime.fail();
|
|
182
|
+
return STOP;
|
|
183
|
+
}
|
|
184
|
+
},
|
|
185
|
+
});
|
|
186
|
+
}
|
|
187
|
+
//# sourceMappingURL=ownedAcquisition.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ownedAcquisition.js","sourceRoot":"","sources":["../../../../../../src/client/billing/renewalAttach/internal/acquisition/ownedAcquisition.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,WAAW,CAAC;AAClC,OAAO,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAC5C,OAAO,EAAE,4BAA4B,EAAE,MAAM,wBAAwB,CAAC;AACtE,OAAO,EAAE,MAAM,EAAE,MAAM,2BAA2B,CAAC;AACnD,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,YAAY,EACZ,sBAAsB,GACvB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EACL,UAAU,EACV,SAAS,EACT,WAAW,GACZ,MAAM,qCAAqC,CAAC;AAC7C,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AACnE,OAAO,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,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,eAAe;oBACf,mBAAmB;oBACnB,GAAG,MAAM;iBACV,CAAC;gBACJ,MAAM,MAAM,GAAG,oBAAoB,CAAC;oBAClC,EAAE,EAAE,IAAI;oBACR,QAAQ,EAAE,IAAI;oBACd,MAAM;oBACN,GAAG,CAAC,eAAe,KAAK,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,QAAQ,EAAE,CAAC;oBACjD,UAAU,EAAE,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM,GAAG,IAAI,CAAC;oBAC5C,4BAA4B,EAAE,KAAK;oBACnC,0BAA0B,EAAE,KAAK;oBACjC,aAAa,EAAE,KAAK;iBACrB,CAAyD,CAAC;gBAC3D,QAAQ,CAAC,MAAM,EAAE,CAAC;gBAClB,OAAO,MAAM,CAAC,MAAM,CAAC,CAAC;YACxB,CAAC;YAAC,MAAM,CAAC;gBACP,IAAI,CAAC;oBACH,QAAQ,CAAC,KAAK,EAAE,CAAC;gBACnB,CAAC;gBAAC,MAAM,CAAC,CAAA,CAAC;gBACV,QAAQ,CAAC,IAAI,EAAE,CAAC;gBAChB,OAAO,IAAI,CAAC;YACd,CAAC;QACH,CAAC;KACF,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -1,24 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
ok: false;
|
|
4
|
-
complete: false;
|
|
5
|
-
code: "RAW_ACQUISITION_STOP";
|
|
6
|
-
}>;
|
|
7
|
-
export type RawAcquisitionResult = typeof STOP | Readonly<{
|
|
8
|
-
ok: true;
|
|
9
|
-
dataOnly: true;
|
|
10
|
-
bundle: {
|
|
11
|
-
wireSubscription: Record<string, unknown>;
|
|
12
|
-
wireTargetPrice: Record<string, unknown>;
|
|
13
|
-
wireBillingCustomer: Record<string, unknown>;
|
|
14
|
-
} & Awaited<ReturnType<typeof acquireCouponJoins>>;
|
|
15
|
-
observedAt: number;
|
|
16
|
-
sourceFulfillmentEstablished: false;
|
|
17
|
-
clockProvenanceEstablished: false;
|
|
18
|
-
operatorReady: false;
|
|
19
|
-
}>;
|
|
20
|
-
export declare function createSourceRawAcquisition(): Readonly<{
|
|
21
|
-
acquire(rawExpected: unknown): Promise<RawAcquisitionResult>;
|
|
22
|
-
}>;
|
|
23
|
-
export {};
|
|
1
|
+
export { createSourceRawAcquisition } from "./ownedAcquisition.js";
|
|
2
|
+
export type { RawAcquisitionResult } from "./ownedAcquisition.js";
|
|
24
3
|
//# sourceMappingURL=rawAcquisition.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rawAcquisition.d.ts","sourceRoot":"","sources":["../../../../../../src/client/billing/renewalAttach/internal/acquisition/rawAcquisition.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"rawAcquisition.d.ts","sourceRoot":"","sources":["../../../../../../src/client/billing/renewalAttach/internal/acquisition/rawAcquisition.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAE,MAAM,uBAAuB,CAAC;AACnE,YAAY,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC"}
|
|
@@ -1,113 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
import { createSourceStockRawDelegate } from "../stockRawDelegate.js";
|
|
3
|
-
import { freeze } from "../material/nodeKernel.js";
|
|
4
|
-
import { z } from "zod";
|
|
5
|
-
import { renewalExpected, renewalSubscription, renewalPrice, renewalBillingCustomer, } from "../../../renewalReplacementSchema.js";
|
|
6
|
-
import { resourceId, productId, referenceId, } from "../../../renewalAggregate/shared.js";
|
|
7
|
-
import { requiredJSONSnapshot } from "../material/requiredJson.js";
|
|
8
|
-
import { createReadLifetime } from "./readLifetime.js";
|
|
9
|
-
import { bindWireSource, rejectProxyJSON } from "./rawWireSource.js";
|
|
10
|
-
import { acquireCouponJoins } from "./rawCouponJoins.js";
|
|
11
|
-
const need = (x) => {
|
|
12
|
-
if (!x)
|
|
13
|
-
throw Error("RAW_ACQUISITION_STOP");
|
|
14
|
-
};
|
|
15
|
-
const STOP = Object.freeze({
|
|
16
|
-
ok: false,
|
|
17
|
-
complete: false,
|
|
18
|
-
code: "RAW_ACQUISITION_STOP",
|
|
19
|
-
});
|
|
20
|
-
const observed = z.union([
|
|
21
|
-
z.null(),
|
|
22
|
-
resourceId("sub_sched"),
|
|
23
|
-
z
|
|
24
|
-
.object({
|
|
25
|
-
id: resourceId("sub_sched"),
|
|
26
|
-
object: z.literal("subscription_schedule"),
|
|
27
|
-
deleted: z.literal(false).optional(),
|
|
28
|
-
})
|
|
29
|
-
.passthrough(),
|
|
30
|
-
]);
|
|
31
|
-
const subscriptionView = renewalSubscription.extend({ schedule: observed });
|
|
32
|
-
// No public/operational entry binds this primitive. Only the separate TEST port binds fakes.
|
|
33
|
-
export function createSourceRawAcquisition() {
|
|
34
|
-
if (arguments.length !== 0)
|
|
35
|
-
throw Error("RAW_ACQUISITION_STOP");
|
|
36
|
-
const sourceOwner = OWNER;
|
|
37
|
-
sourceOwner.check();
|
|
38
|
-
const sourceTransport = createSourceStockRawDelegate();
|
|
39
|
-
sourceOwner.check();
|
|
40
|
-
const lifetime = createReadLifetime(sourceOwner), read = bindWireSource(sourceTransport, lifetime);
|
|
41
|
-
return Object.freeze({
|
|
42
|
-
async acquire(rawExpected) {
|
|
43
|
-
try {
|
|
44
|
-
if (!lifetime.begin())
|
|
45
|
-
return STOP;
|
|
46
|
-
}
|
|
47
|
-
catch {
|
|
48
|
-
return STOP;
|
|
49
|
-
}
|
|
50
|
-
try {
|
|
51
|
-
rejectProxyJSON(rawExpected);
|
|
52
|
-
const expected = renewalExpected.parse(requiredJSONSnapshot(rawExpected)), context = {
|
|
53
|
-
customerAccountId: expected.customerAccountId,
|
|
54
|
-
livemode: expected.livemode,
|
|
55
|
-
};
|
|
56
|
-
const wireSubscription = await read("subscription", expected.subscriptionId);
|
|
57
|
-
lifetime.check();
|
|
58
|
-
const subscription = subscriptionView.parse(wireSubscription), item = subscription.items.data[0];
|
|
59
|
-
need(subscription.id === expected.subscriptionId &&
|
|
60
|
-
subscription.customer_account === expected.customerAccountId &&
|
|
61
|
-
subscription.livemode === expected.livemode &&
|
|
62
|
-
item.id === expected.itemId &&
|
|
63
|
-
item.subscription === expected.subscriptionId &&
|
|
64
|
-
item.price.id === expected.currentPriceId &&
|
|
65
|
-
item.price.livemode === expected.livemode &&
|
|
66
|
-
productId(item.price.product, context) ===
|
|
67
|
-
expected.currentProductId &&
|
|
68
|
-
item.current_period_start === expected.periodStart &&
|
|
69
|
-
item.current_period_end === expected.periodEnd);
|
|
70
|
-
const wireTargetPrice = await read("price", expected.targetPriceId);
|
|
71
|
-
lifetime.check();
|
|
72
|
-
const price = renewalPrice.parse(wireTargetPrice);
|
|
73
|
-
need(price.id === expected.targetPriceId &&
|
|
74
|
-
price.livemode === expected.livemode &&
|
|
75
|
-
productId(price.product, context) === expected.targetProductId);
|
|
76
|
-
const customerID = referenceId(subscription.customer, "cus", "customer", context), wireBillingCustomer = await read("customer", customerID);
|
|
77
|
-
lifetime.check();
|
|
78
|
-
const customer = renewalBillingCustomer.parse(wireBillingCustomer);
|
|
79
|
-
need(customer.id === customerID &&
|
|
80
|
-
customer.customer_account === expected.customerAccountId &&
|
|
81
|
-
customer.livemode === expected.livemode);
|
|
82
|
-
const joined = await acquireCouponJoins(wireSubscription, wireSubscription.items.data[0], expected.livemode, read, lifetime);
|
|
83
|
-
lifetime.check();
|
|
84
|
-
const sample = lifetime.check(), bundle = {
|
|
85
|
-
wireSubscription,
|
|
86
|
-
wireTargetPrice,
|
|
87
|
-
wireBillingCustomer,
|
|
88
|
-
...joined,
|
|
89
|
-
};
|
|
90
|
-
const result = requiredJSONSnapshot({
|
|
91
|
-
ok: true,
|
|
92
|
-
dataOnly: true,
|
|
93
|
-
bundle,
|
|
94
|
-
observedAt: Math.floor(sample.wallMs / 1000),
|
|
95
|
-
sourceFulfillmentEstablished: false,
|
|
96
|
-
clockProvenanceEstablished: false,
|
|
97
|
-
operatorReady: false,
|
|
98
|
-
});
|
|
99
|
-
lifetime.finish();
|
|
100
|
-
return freeze(result);
|
|
101
|
-
}
|
|
102
|
-
catch {
|
|
103
|
-
try {
|
|
104
|
-
lifetime.check();
|
|
105
|
-
}
|
|
106
|
-
catch { }
|
|
107
|
-
lifetime.fail();
|
|
108
|
-
return STOP;
|
|
109
|
-
}
|
|
110
|
-
},
|
|
111
|
-
});
|
|
112
|
-
}
|
|
1
|
+
export { createSourceRawAcquisition } from "./ownedAcquisition.js";
|
|
113
2
|
//# sourceMappingURL=rawAcquisition.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rawAcquisition.js","sourceRoot":"","sources":["../../../../../../src/client/billing/renewalAttach/internal/acquisition/rawAcquisition.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"rawAcquisition.js","sourceRoot":"","sources":["../../../../../../src/client/billing/renewalAttach/internal/acquisition/rawAcquisition.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAE,MAAM,uBAAuB,CAAC"}
|
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
import type { createReadLifetime } from "./readLifetime.js";
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
export type RawReadTransport = Readonly<{
|
|
3
|
+
rawRequest(method: "GET", path: string, body: undefined, options: Readonly<{
|
|
4
|
+
apiVersion: "2026-09-30.endive";
|
|
5
|
+
maxNetworkRetries: 0;
|
|
6
|
+
}>): Promise<unknown>;
|
|
7
|
+
}>;
|
|
8
|
+
export type Resource = "subscription" | "price" | "customer" | "coupon" | "schedule";
|
|
4
9
|
export type Read = ReturnType<typeof bindWireSource>;
|
|
5
10
|
export declare function rejectProxyJSON(value: unknown, transportRoot?: boolean): void;
|
|
6
|
-
export declare function bindWireSource(sourceTransport:
|
|
11
|
+
export declare function bindWireSource(sourceTransport: RawReadTransport, lifetime: ReturnType<typeof createReadLifetime>): (resource: Resource, id: string) => Promise<Record<string, unknown>>;
|
|
7
12
|
//# sourceMappingURL=rawWireSource.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rawWireSource.d.ts","sourceRoot":"","sources":["../../../../../../src/client/billing/renewalAttach/internal/acquisition/rawWireSource.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAC5D,
|
|
1
|
+
{"version":3,"file":"rawWireSource.d.ts","sourceRoot":"","sources":["../../../../../../src/client/billing/renewalAttach/internal/acquisition/rawWireSource.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAC5D,MAAM,MAAM,gBAAgB,GAAG,QAAQ,CAAC;IACtC,UAAU,CACR,MAAM,EAAE,KAAK,EACb,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,SAAS,EACf,OAAO,EAAE,QAAQ,CAAC;QAChB,UAAU,EAAE,mBAAmB,CAAC;QAChC,iBAAiB,EAAE,CAAC,CAAC;KACtB,CAAC,GACD,OAAO,CAAC,OAAO,CAAC,CAAC;CACrB,CAAC,CAAC;AACH,MAAM,MAAM,QAAQ,GAClB,cAAc,GAAG,OAAO,GAAG,UAAU,GAAG,QAAQ,GAAG,UAAU,CAAC;AAChE,MAAM,MAAM,IAAI,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AA0CrD,wBAAgB,eAAe,CAAC,KAAK,EAAE,OAAO,EAAE,aAAa,UAAQ,QAyBpE;AAkDD,wBAAgB,cAAc,CAC5B,eAAe,EAAE,gBAAgB,EACjC,QAAQ,EAAE,UAAU,CAAC,OAAO,kBAAkB,CAAC,cAEV,QAAQ,MAAM,MAAM,sCAgC1D"}
|
|
@@ -13,6 +13,7 @@ const specs = Object.freeze({
|
|
|
13
13
|
price: ["prices", resourceId("price")],
|
|
14
14
|
customer: ["customers", resourceId("cus")],
|
|
15
15
|
coupon: ["coupons", null],
|
|
16
|
+
schedule: ["subscription_schedules", resourceId("sub_sched")],
|
|
16
17
|
});
|
|
17
18
|
const expansions = ["discounts", "items.data.discounts", "items.data.price"];
|
|
18
19
|
// Fixed pinned Node intrinsics, captured before any reply; not a provenance assertion.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rawWireSource.js","sourceRoot":"","sources":["../../../../../../src/client/billing/renewalAttach/internal/acquisition/rawWireSource.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"rawWireSource.js","sourceRoot":"","sources":["../../../../../../src/client/billing/renewalAttach/internal/acquisition/rawWireSource.ts"],"names":[],"mappings":"AAeA,OAAO,EAAE,KAAK,EAAE,MAAM,WAAW,CAAC;AAClC,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AACnE,OAAO,EAAE,UAAU,EAAE,MAAM,qCAAqC,CAAC;AACjE,MAAM,IAAI,GAAG,GAAG,EAAE;IAChB,MAAM,KAAK,CAAC,sBAAsB,CAAC,CAAC;AACtC,CAAC,CAAC;AACF,MAAM,IAAI,GAA8B,CAAC,CAAC,EAAE,EAAE;IAC5C,IAAI,CAAC,CAAC;QAAE,IAAI,EAAE,CAAC;AACjB,CAAC,CAAC;AACF,MAAM,KAAK,GAAG,MAAM,CAAC,MAAM,CAAC;IAC1B,YAAY,EAAE,CAAC,eAAe,EAAE,UAAU,CAAC,KAAK,CAAC,CAAC;IAClD,KAAK,EAAE,CAAC,QAAQ,EAAE,UAAU,CAAC,OAAO,CAAC,CAAC;IACtC,QAAQ,EAAE,CAAC,WAAW,EAAE,UAAU,CAAC,KAAK,CAAC,CAAC;IAC1C,MAAM,EAAE,CAAC,SAAS,EAAE,IAAI,CAAC;IACzB,QAAQ,EAAE,CAAC,wBAAwB,EAAE,UAAU,CAAC,WAAW,CAAC,CAAC;CACrD,CAAC,CAAC;AACZ,MAAM,UAAU,GAAG,CAAC,WAAW,EAAE,sBAAsB,EAAE,kBAAkB,CAAC,CAAC;AAC7E,uFAAuF;AACvF,MA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BAAmB,EAAE,iBAAiB,EAAE,CAAC,EAAE,CAC1D,CAAC;QACJ,CAAC;QAAC,MAAM,CAAC;YACP,QAAQ,CAAC,KAAK,EAAE,CAAC;YACjB,IAAI,EAAE,CAAC;QACT,CAAC;QACD,qFAAqF;QACrF,QAAQ,CAAC,KAAK,EAAE,CAAC;QACjB,MAAM,IAAI,GAAG,YAAY,CAAC,KAAK,CAAC,CAAC;QACjC,QAAQ,CAAC,KAAK,EAAE,CAAC;QACjB,OAAO,IAAI,CAAC;IACd,CAAC,CAAC;AACJ,CAAC"}
|
package/dist/client/billing/renewalAttach/internal/acquisition/test-fixtures/sourcePort.d.mts
CHANGED
|
@@ -2,6 +2,6 @@ export declare function createTestOnlyRawAcquisition({ owner, transport }: {
|
|
|
2
2
|
owner: any;
|
|
3
3
|
transport: any;
|
|
4
4
|
}): Readonly<{
|
|
5
|
-
acquire(rawExpected: unknown): Promise<import("../
|
|
5
|
+
acquire(rawExpected: unknown): Promise<import("../ownedAcquisition.js").RawAcquisitionResult>;
|
|
6
6
|
}>;
|
|
7
7
|
//# sourceMappingURL=sourcePort.d.mts.map
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { PreflightRecord } from "../preflight/grammar.js";
|
|
2
|
+
/** Checked process-local custody only; neither a caller context nor write authority. */
|
|
3
|
+
export declare function readOwnedConfigureAcknowledgement(operation: unknown, acknowledgement: unknown, record: PreflightRecord, actualAttachAcknowledgement: unknown, origin: unknown, originalEntry: unknown): Readonly<{
|
|
4
|
+
rawReceipt: import("../../../renewalV2/index.js").ConstructRenewalConfigurationReceiptV2Options;
|
|
5
|
+
receipt: unknown;
|
|
6
|
+
}>;
|
|
7
|
+
/** Internal fixed zeroarg entrypoints. Normal Source registries stay EMPTY. */
|
|
8
|
+
export declare function captureOwnedConfigureV2(): Readonly<{
|
|
9
|
+
invoke(): Promise<unknown>;
|
|
10
|
+
}>;
|
|
11
|
+
export declare function captureOwnedConfigureReplayV2(): Readonly<{
|
|
12
|
+
invoke(): Promise<unknown>;
|
|
13
|
+
}>;
|
|
14
|
+
//# sourceMappingURL=actor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"actor.d.ts","sourceRoot":"","sources":["../../../../../../src/client/billing/renewalAttach/internal/configure/actor.ts"],"names":[],"mappings":"AAuCA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AA+C/D,wFAAwF;AACxF,wBAAgB,iCAAiC,CAC/C,SAAS,EAAE,OAAO,EAClB,eAAe,EAAE,OAAO,EACxB,MAAM,EAAE,eAAe,EACvB,2BAA2B,EAAE,OAAO,EACpC,MAAM,EAAE,OAAO,EACf,aAAa,EAAE,OAAO;;;GAiDvB;AAmbD,+EAA+E;AAC/E,wBAAgB,uBAAuB;;GAGtC;AACD,wBAAgB,6BAA6B;;GAG5C"}
|