@fantastic.dev/better-stripe 0.113.0 → 0.119.2
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 +94 -0
- package/MIGRATION.md +50 -4
- package/README.md +69 -2
- package/dist/client/billing/renewalAggregate/phases.d.ts.map +1 -1
- package/dist/client/billing/renewalAggregate/phases.js +27 -13
- package/dist/client/billing/renewalAggregate/phases.js.map +1 -1
- package/dist/client/billing/renewalAggregate/preflight.d.ts +1 -0
- package/dist/client/billing/renewalAggregate/preflight.d.ts.map +1 -1
- package/dist/client/billing/renewalAggregate/readMaterial.d.ts +2 -1
- package/dist/client/billing/renewalAggregate/readMaterial.d.ts.map +1 -1
- package/dist/client/billing/renewalAggregate/readMaterial.js +28 -5
- package/dist/client/billing/renewalAggregate/readMaterial.js.map +1 -1
- package/dist/client/billing/renewalAggregate/sourceDiscounts.d.ts +1 -1
- package/dist/client/billing/renewalAggregate/sourceDiscounts.d.ts.map +1 -1
- package/dist/client/billing/renewalAggregate/sourceDiscounts.js +2 -2
- package/dist/client/billing/renewalAggregate/sourceDiscounts.js.map +1 -1
- package/dist/client/billing/renewalAttach/attachmentProfile.d.ts +13 -0
- package/dist/client/billing/renewalAttach/attachmentProfile.d.ts.map +1 -0
- package/dist/client/billing/renewalAttach/attachmentProfile.js +15 -0
- package/dist/client/billing/renewalAttach/attachmentProfile.js.map +1 -0
- package/dist/client/billing/renewalAttach/internal/c10/eventCapture.js +1 -1
- package/dist/client/billing/renewalAttach/internal/c10/eventCapture.js.map +1 -1
- package/dist/client/billing/renewalAttach/internal/material/classifiers.d.ts +1 -1
- package/dist/client/billing/renewalAttach/internal/material/classifiers.d.ts.map +1 -1
- package/dist/client/billing/renewalAttach/internal/material/classifiers.js +11 -10
- package/dist/client/billing/renewalAttach/internal/material/classifiers.js.map +1 -1
- package/dist/client/billing/renewalAttach/internal/material/readMaterial.d.ts +1 -1
- package/dist/client/billing/renewalAttach/internal/material/readMaterial.d.ts.map +1 -1
- package/dist/client/billing/renewalAttach/internal/material/readMaterial.js +20 -5
- package/dist/client/billing/renewalAttach/internal/material/readMaterial.js.map +1 -1
- package/dist/client/billing/renewalAttach/internal/operations/configureReadTransport.d.ts.map +1 -1
- package/dist/client/billing/renewalAttach/internal/operations/configureReadTransport.js +7 -7
- package/dist/client/billing/renewalAttach/internal/operations/configureReadTransport.js.map +1 -1
- package/dist/client/billing/renewalAttach/internal/operations/initialAttach.d.ts.map +1 -1
- package/dist/client/billing/renewalAttach/internal/operations/initialAttach.js +5 -3
- package/dist/client/billing/renewalAttach/internal/operations/initialAttach.js.map +1 -1
- package/dist/client/billing/renewalAttach/internal/preflight/grammar.js +1 -1
- package/dist/client/billing/renewalAttach/internal/preflight/grammar.js.map +1 -1
- package/dist/client/billing/renewalAttach/internal/producer/attachAcknowledgement.d.ts.map +1 -1
- package/dist/client/billing/renewalAttach/internal/producer/attachAcknowledgement.js +4 -4
- package/dist/client/billing/renewalAttach/internal/producer/attachAcknowledgement.js.map +1 -1
- package/dist/client/billing/renewalAttach/internal/producer/configureWriteFactory.d.ts.map +1 -1
- package/dist/client/billing/renewalAttach/internal/producer/configureWriteFactory.js +7 -6
- package/dist/client/billing/renewalAttach/internal/producer/configureWriteFactory.js.map +1 -1
- package/dist/client/billing/renewalAttach/internal/producer/invocationProducer.d.ts +3 -0
- package/dist/client/billing/renewalAttach/internal/producer/invocationProducer.d.ts.map +1 -1
- package/dist/client/billing/renewalAttach/internal/producer/invocationProducer.js +16 -1
- package/dist/client/billing/renewalAttach/internal/producer/invocationProducer.js.map +1 -1
- package/dist/client/billing/renewalAttach/internal/producer/nodeAttachmentProfile.d.ts +9 -0
- package/dist/client/billing/renewalAttach/internal/producer/nodeAttachmentProfile.d.ts.map +1 -0
- package/dist/client/billing/renewalAttach/internal/producer/nodeAttachmentProfile.js +83 -0
- package/dist/client/billing/renewalAttach/internal/producer/nodeAttachmentProfile.js.map +1 -0
- package/dist/client/billing/renewalAttach/liveAttachment.d.ts +12 -0
- package/dist/client/billing/renewalAttach/liveAttachment.d.ts.map +1 -0
- package/dist/client/billing/renewalAttach/liveAttachment.js +23 -0
- package/dist/client/billing/renewalAttach/liveAttachment.js.map +1 -0
- package/dist/client/billing/renewalAttach/nodeAttachment.d.ts +4 -0
- package/dist/client/billing/renewalAttach/nodeAttachment.d.ts.map +1 -0
- package/dist/client/billing/renewalAttach/nodeAttachment.js +154 -0
- package/dist/client/billing/renewalAttach/nodeAttachment.js.map +1 -0
- package/dist/client/billing/renewalAttach/nodeConfiguration.d.ts +3 -0
- package/dist/client/billing/renewalAttach/nodeConfiguration.d.ts.map +1 -0
- package/dist/client/billing/renewalAttach/nodeConfiguration.js +126 -0
- package/dist/client/billing/renewalAttach/nodeConfiguration.js.map +1 -0
- package/dist/client/billing/renewalV2/configureInput.d.ts +1 -0
- package/dist/client/billing/renewalV2/configureInput.d.ts.map +1 -1
- package/dist/client/billing/renewalV2/configureInput.js +2 -1
- package/dist/client/billing/renewalV2/configureInput.js.map +1 -1
- package/dist/client/billing/renewalV2/index.d.ts +3 -0
- package/dist/client/billing/renewalV2/index.d.ts.map +1 -1
- package/dist/client/billing/renewalV2/index.js +1 -1
- package/dist/client/billing/renewalV2/index.js.map +1 -1
- package/dist/client/billing/renewalV2/observationInput.d.ts +1 -0
- package/dist/client/billing/renewalV2/observationInput.d.ts.map +1 -1
- package/dist/client/index.d.ts +7 -14
- package/dist/client/index.d.ts.map +1 -1
- package/dist/client/index.js +10 -2
- package/dist/client/index.js.map +1 -1
- package/dist/client/node.d.ts +2 -0
- package/dist/client/node.d.ts.map +1 -0
- package/dist/client/node.js +9 -0
- package/dist/client/node.js.map +1 -0
- package/dist/client/renewal.d.ts +4 -0
- package/dist/client/renewal.d.ts.map +1 -1
- package/dist/client/renewal.js +2 -1
- package/dist/client/renewal.js.map +1 -1
- package/dist/client/renewalAttachmentPreparation.d.ts +23 -0
- package/dist/client/renewalAttachmentPreparation.d.ts.map +1 -0
- package/dist/client/renewalAttachmentPreparation.js +89 -0
- package/dist/client/renewalAttachmentPreparation.js.map +1 -0
- package/dist/client/renewalAttachmentRuntime.d.ts +6 -0
- package/dist/client/renewalAttachmentRuntime.d.ts.map +1 -0
- package/dist/client/renewalAttachmentRuntime.js +13 -0
- package/dist/client/renewalAttachmentRuntime.js.map +1 -0
- package/dist/client/renewalAttachmentTypes.d.ts +45 -0
- package/dist/client/renewalAttachmentTypes.d.ts.map +1 -0
- package/dist/client/renewalAttachmentTypes.js +2 -0
- package/dist/client/renewalAttachmentTypes.js.map +1 -0
- package/dist/client/renewalConfigurationPreparation.d.ts +27 -0
- package/dist/client/renewalConfigurationPreparation.d.ts.map +1 -0
- package/dist/client/renewalConfigurationPreparation.js +78 -0
- package/dist/client/renewalConfigurationPreparation.js.map +1 -0
- package/dist/client/renewalConfigurationRuntime.d.ts +6 -0
- package/dist/client/renewalConfigurationRuntime.d.ts.map +1 -0
- package/dist/client/renewalConfigurationRuntime.js +12 -0
- package/dist/client/renewalConfigurationRuntime.js.map +1 -0
- package/dist/client/renewalConfigurationTypes.d.ts +19 -0
- package/dist/client/renewalConfigurationTypes.d.ts.map +1 -0
- package/dist/client/renewalConfigurationTypes.js +2 -0
- package/dist/client/renewalConfigurationTypes.js.map +1 -0
- package/dist/client/renewalContextClient.d.ts +5 -0
- package/dist/client/renewalContextClient.d.ts.map +1 -1
- package/dist/client/renewalContextClient.js +9 -0
- package/dist/client/renewalContextClient.js.map +1 -1
- package/dist/client/types/documents.d.ts +2 -0
- package/dist/client/types/documents.d.ts.map +1 -1
- package/dist/client/webhooks/helpers.d.ts.map +1 -1
- package/dist/client/webhooks/helpers.js +1 -0
- package/dist/client/webhooks/helpers.js.map +1 -1
- package/dist/client/webhooks/ledger.d.ts +31 -0
- package/dist/client/webhooks/ledger.d.ts.map +1 -0
- package/dist/client/webhooks/ledger.js +13 -0
- package/dist/client/webhooks/ledger.js.map +1 -0
- package/dist/client/webhooks/processors.d.ts.map +1 -1
- package/dist/client/webhooks/processors.js +6 -3
- package/dist/client/webhooks/processors.js.map +1 -1
- package/dist/client/webhooks/subscriptionDeleted.d.ts.map +1 -1
- package/dist/client/webhooks/subscriptionDeleted.js +3 -2
- package/dist/client/webhooks/subscriptionDeleted.js.map +1 -1
- package/dist/component/_generated/api.d.ts +2 -0
- package/dist/component/_generated/api.d.ts.map +1 -1
- package/dist/component/_generated/api.js.map +1 -1
- package/dist/component/_generated/component.d.ts +18 -1
- package/dist/component/_generated/component.d.ts.map +1 -1
- package/dist/component/balanceFunding/internal/actions.d.ts +11 -11
- package/dist/component/balanceFunding/preparationHandlers.d.ts +8 -8
- package/dist/component/billing/mutations.d.ts +2 -1
- package/dist/component/billing/mutations.d.ts.map +1 -1
- package/dist/component/billing/mutations.js +28 -3
- package/dist/component/billing/mutations.js.map +1 -1
- package/dist/component/billing/queries.d.ts +8 -0
- package/dist/component/billing/queries.d.ts.map +1 -1
- package/dist/component/billing/schema.d.ts +3 -1
- package/dist/component/billing/schema.d.ts.map +1 -1
- package/dist/component/billing/validators.d.ts +16 -1
- package/dist/component/billing/validators.d.ts.map +1 -1
- package/dist/component/billing/validators.js +8 -0
- package/dist/component/billing/validators.js.map +1 -1
- package/dist/component/billingHistory/queries.d.ts +1 -0
- package/dist/component/billingHistory/queries.d.ts.map +1 -1
- package/dist/component/core/mutations.d.ts +4 -0
- package/dist/component/core/mutations.d.ts.map +1 -1
- package/dist/component/core/mutations.js +6 -0
- package/dist/component/core/mutations.js.map +1 -1
- package/dist/component/core/stripeMode.d.ts +8 -0
- package/dist/component/core/stripeMode.d.ts.map +1 -0
- package/dist/component/core/stripeMode.js +23 -0
- package/dist/component/core/stripeMode.js.map +1 -0
- package/dist/component/earnings/triggers.d.ts +6 -4
- package/dist/component/earnings/triggers.d.ts.map +1 -1
- package/dist/component/financialObservations/settlementHelpers.d.ts +3 -3
- package/dist/component/payoutRelease/queries.d.ts +2 -2
- package/dist/component/payoutRelease/queries.d.ts.map +1 -1
- package/dist/component/processingCostReconciliation/rollback.d.ts +1 -1
- package/dist/component/schema.d.ts +4 -2
- package/dist/component/webhooks/mutations.d.ts +19 -0
- package/dist/component/webhooks/mutations.d.ts.map +1 -1
- package/dist/component/webhooks/mutations.js +56 -0
- package/dist/component/webhooks/mutations.js.map +1 -1
- package/dist/component/webhooks/schema.d.ts +1 -1
- package/dist/component/webhooks/schema.d.ts.map +1 -1
- package/dist/component/webhooks/schema.js +2 -1
- package/dist/component/webhooks/schema.js.map +1 -1
- package/docs/README.md +43 -8
- package/docs/billing-history.md +1 -1
- package/docs/client-api.md +63 -10
- package/docs/evidence/native-metering/mixed-settlement-2026-10-20.json +1 -1
- package/docs/evidence/native-metering/product-flows-2026-10-19.json +1 -1
- package/docs/example-routing.md +93 -0
- package/docs/pull-request-standard.md +142 -0
- package/docs/react-workflows-audit.md +1 -2
- package/docs/read-contracts.md +6 -5
- package/docs/releasing.md +30 -2
- package/docs/renewal-attachment.md +176 -0
- package/docs/renewal-configuration.md +127 -0
- package/docs/renewal-context-reads.md +9 -5
- package/docs/settlement.md +2 -1
- package/docs/stripe-sandbox-worktrees.md +245 -0
- package/docs/webhooks.md +110 -1
- package/docs/worktrees.md +134 -0
- package/package.json +14 -2
- package/src/client/billing/renewalAggregate/phases.ts +31 -13
- package/src/client/billing/renewalAggregate/readMaterial.ts +36 -2
- package/src/client/billing/renewalAggregate/sourceDiscounts.ts +3 -1
- package/src/client/billing/renewalAttach/attachmentProfile.ts +22 -0
- package/src/client/billing/renewalAttach/internal/c10/eventCapture.ts +1 -1
- package/src/client/billing/renewalAttach/internal/material/classifiers.ts +26 -7
- package/src/client/billing/renewalAttach/internal/material/readMaterial.ts +26 -2
- package/src/client/billing/renewalAttach/internal/operations/configureReadTransport.ts +10 -9
- package/src/client/billing/renewalAttach/internal/operations/initialAttach.ts +5 -3
- package/src/client/billing/renewalAttach/internal/preflight/grammar.ts +1 -1
- package/src/client/billing/renewalAttach/internal/producer/attachAcknowledgement.ts +4 -6
- package/src/client/billing/renewalAttach/internal/producer/configureWriteFactory.ts +10 -8
- package/src/client/billing/renewalAttach/internal/producer/invocationProducer.ts +28 -1
- package/src/client/billing/renewalAttach/internal/producer/nodeAttachmentProfile.ts +108 -0
- package/src/client/billing/renewalAttach/liveAttachment.ts +43 -0
- package/src/client/billing/renewalAttach/nodeAttachment.ts +181 -0
- package/src/client/billing/renewalAttach/nodeConfiguration.ts +147 -0
- package/src/client/billing/renewalV2/configureInput.ts +2 -1
- package/src/client/billing/renewalV2/index.ts +7 -1
- package/src/client/index.ts +13 -15
- package/src/client/node.ts +8 -0
- package/src/client/renewal.ts +17 -0
- package/src/client/renewalAttachmentPreparation.ts +118 -0
- package/src/client/renewalAttachmentRuntime.ts +25 -0
- package/src/client/renewalAttachmentTypes.ts +51 -0
- package/src/client/renewalConfigurationPreparation.ts +92 -0
- package/src/client/renewalConfigurationRuntime.ts +24 -0
- package/src/client/renewalConfigurationTypes.ts +30 -0
- package/src/client/renewalContextClient.ts +22 -0
- package/src/client/types/documents.ts +2 -0
- package/src/client/webhooks/helpers.ts +1 -0
- package/src/client/webhooks/ledger.ts +48 -0
- package/src/client/webhooks/processors.ts +5 -0
- package/src/client/webhooks/subscriptionDeleted.ts +3 -2
- package/src/component/_generated/api.ts +2 -0
- package/src/component/_generated/component.ts +18 -1
- package/src/component/billing/mutations.ts +35 -2
- package/src/component/billing/validators.ts +12 -0
- package/src/component/core/mutations.ts +6 -0
- package/src/component/core/stripeMode.ts +30 -0
- package/src/component/webhooks/mutations.ts +66 -0
- package/src/component/webhooks/schema.ts +2 -1
- package/dist/client/billing/renewalAttach/internal/acquisition/array-order.test.d.ts +0 -2
- package/dist/client/billing/renewalAttach/internal/acquisition/array-order.test.d.ts.map +0 -1
- package/dist/client/billing/renewalAttach/internal/acquisition/array-order.test.js +0 -61
- package/dist/client/billing/renewalAttach/internal/acquisition/array-order.test.js.map +0 -1
- package/dist/client/billing/renewalAttach/internal/acquisition/coupon-stop-order.test.d.ts +0 -2
- package/dist/client/billing/renewalAttach/internal/acquisition/coupon-stop-order.test.d.ts.map +0 -1
- package/dist/client/billing/renewalAttach/internal/acquisition/coupon-stop-order.test.js +0 -18
- package/dist/client/billing/renewalAttach/internal/acquisition/coupon-stop-order.test.js.map +0 -1
- package/dist/client/billing/renewalAttach/internal/acquisition/fetch-metadata.test.d.ts +0 -2
- package/dist/client/billing/renewalAttach/internal/acquisition/fetch-metadata.test.d.ts.map +0 -1
- package/dist/client/billing/renewalAttach/internal/acquisition/fetch-metadata.test.js +0 -67
- package/dist/client/billing/renewalAttach/internal/acquisition/fetch-metadata.test.js.map +0 -1
- package/dist/client/billing/renewalAttach/internal/acquisition/raw-acquisition.test.d.ts +0 -2
- package/dist/client/billing/renewalAttach/internal/acquisition/raw-acquisition.test.d.ts.map +0 -1
- package/dist/client/billing/renewalAttach/internal/acquisition/raw-acquisition.test.js +0 -372
- package/dist/client/billing/renewalAttach/internal/acquisition/raw-acquisition.test.js.map +0 -1
- package/dist/client/billing/renewalAttach/internal/acquisition/sourceBinding.test.d.ts +0 -2
- package/dist/client/billing/renewalAttach/internal/acquisition/sourceBinding.test.d.ts.map +0 -1
- package/dist/client/billing/renewalAttach/internal/acquisition/sourceBinding.test.js +0 -126
- package/dist/client/billing/renewalAttach/internal/acquisition/sourceBinding.test.js.map +0 -1
- package/dist/client/billing/renewalAttach/internal/acquisition/test-fixtures/fixture.d.mts +0 -627
- package/dist/client/billing/renewalAttach/internal/acquisition/test-fixtures/fixture.d.mts.map +0 -1
- package/dist/client/billing/renewalAttach/internal/acquisition/test-fixtures/fixture.mjs +0 -488
- package/dist/client/billing/renewalAttach/internal/acquisition/test-fixtures/fixture.mjs.map +0 -1
- package/dist/client/billing/renewalAttach/internal/acquisition/test-fixtures/raw-retention-fixture.d.mts +0 -214
- package/dist/client/billing/renewalAttach/internal/acquisition/test-fixtures/raw-retention-fixture.d.mts.map +0 -1
- package/dist/client/billing/renewalAttach/internal/acquisition/test-fixtures/raw-retention-fixture.mjs +0 -63
- package/dist/client/billing/renewalAttach/internal/acquisition/test-fixtures/raw-retention-fixture.mjs.map +0 -1
- package/dist/client/billing/renewalAttach/internal/acquisition/test-fixtures/scenario.d.mts +0 -75
- package/dist/client/billing/renewalAttach/internal/acquisition/test-fixtures/scenario.d.mts.map +0 -1
- package/dist/client/billing/renewalAttach/internal/acquisition/test-fixtures/scenario.mjs +0 -145
- package/dist/client/billing/renewalAttach/internal/acquisition/test-fixtures/scenario.mjs.map +0 -1
- package/dist/client/billing/renewalAttach/internal/acquisition/test-fixtures/sourcePort.d.mts +0 -7
- package/dist/client/billing/renewalAttach/internal/acquisition/test-fixtures/sourcePort.d.mts.map +0 -1
- package/dist/client/billing/renewalAttach/internal/acquisition/test-fixtures/sourcePort.mjs +0 -26
- package/dist/client/billing/renewalAttach/internal/acquisition/test-fixtures/sourcePort.mjs.map +0 -1
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/compilerIndex.d.mts +0 -3
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/compilerIndex.d.mts.map +0 -1
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/compilerIndex.mjs +0 -4
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/compilerIndex.mjs.map +0 -1
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/fixture.d.mts +0 -26
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/fixture.d.mts.map +0 -1
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/fixture.mjs +0 -42
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/fixture.mjs.map +0 -1
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f00.d.mts +0 -7
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f00.d.mts.map +0 -1
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f00.mjs +0 -60
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f00.mjs.map +0 -1
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f01.d.mts +0 -335
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f01.d.mts.map +0 -1
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f01.mjs +0 -122
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f01.mjs.map +0 -1
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f02.d.mts +0 -46
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f02.d.mts.map +0 -1
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f02.mjs +0 -87
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f02.mjs.map +0 -1
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f03.d.mts +0 -35
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f03.d.mts.map +0 -1
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f03.mjs +0 -90
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f03.mjs.map +0 -1
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f04.d.mts +0 -132
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f04.d.mts.map +0 -1
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f04.mjs +0 -82
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f04.mjs.map +0 -1
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f05.d.mts +0 -4
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f05.d.mts.map +0 -1
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f05.mjs +0 -23
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f05.mjs.map +0 -1
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f06.d.mts +0 -16
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f06.d.mts.map +0 -1
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f06.mjs +0 -41
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f06.mjs.map +0 -1
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f07.d.mts +0 -43
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f07.d.mts.map +0 -1
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f07.mjs +0 -132
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f07.mjs.map +0 -1
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f08.d.mts +0 -200
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f08.d.mts.map +0 -1
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f08.mjs +0 -150
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f08.mjs.map +0 -1
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f09.d.mts +0 -124
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f09.d.mts.map +0 -1
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f09.mjs +0 -127
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f09.mjs.map +0 -1
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f10.d.mts +0 -3
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f10.d.mts.map +0 -1
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f10.mjs +0 -69
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f10.mjs.map +0 -1
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f11.d.mts +0 -2
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f11.d.mts.map +0 -1
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f11.mjs +0 -152
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f11.mjs.map +0 -1
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f12.d.mts +0 -2
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f12.d.mts.map +0 -1
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f12.mjs +0 -2
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f12.mjs.map +0 -1
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f13.d.mts +0 -5
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f13.d.mts.map +0 -1
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f13.mjs +0 -243
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f13.mjs.map +0 -1
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f14.d.mts +0 -17
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f14.d.mts.map +0 -1
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f14.mjs +0 -75
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f14.mjs.map +0 -1
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f15.d.mts +0 -2
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f15.d.mts.map +0 -1
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f15.mjs +0 -173
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f15.mjs.map +0 -1
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f16.d.mts +0 -4
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f16.d.mts.map +0 -1
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f16.mjs +0 -4
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f16.mjs.map +0 -1
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f17.d.mts +0 -7
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f17.d.mts.map +0 -1
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f17.mjs +0 -30
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f17.mjs.map +0 -1
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f18.d.mts +0 -29
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f18.d.mts.map +0 -1
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f18.mjs +0 -33
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f18.mjs.map +0 -1
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f19.json +0 -452
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f20.d.mts +0 -2
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f20.d.mts.map +0 -1
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f20.mjs +0 -173
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f20.mjs.map +0 -1
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f21.d.mts +0 -2
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f21.d.mts.map +0 -1
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f21.mjs +0 -449
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f21.mjs.map +0 -1
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f22.d.mts +0 -9
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f22.d.mts.map +0 -1
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f22.mjs +0 -27
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f22.mjs.map +0 -1
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f23.d.mts +0 -7
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f23.d.mts.map +0 -1
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f23.mjs +0 -150
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f23.mjs.map +0 -1
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f24.d.mts +0 -3
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f24.d.mts.map +0 -1
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f24.mjs +0 -503
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f24.mjs.map +0 -1
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f25.d.mts +0 -2
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f25.d.mts.map +0 -1
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f25.mjs +0 -91
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f25.mjs.map +0 -1
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f26.d.mts +0 -14
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f26.d.mts.map +0 -1
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f26.mjs +0 -41
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f26.mjs.map +0 -1
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f27.d.mts +0 -103
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f27.d.mts.map +0 -1
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f27.mjs +0 -46
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f27.mjs.map +0 -1
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f28.d.mts +0 -73
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f28.d.mts.map +0 -1
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f28.mjs +0 -294
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f28.mjs.map +0 -1
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f29.d.mts +0 -2
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f29.d.mts.map +0 -1
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f29.mjs +0 -60
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f29.mjs.map +0 -1
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/publishedRawkeyHelper.d.mts +0 -58
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/publishedRawkeyHelper.d.mts.map +0 -1
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/publishedRawkeyHelper.mjs +0 -96
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/publishedRawkeyHelper.mjs.map +0 -1
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/semanticSetup.d.ts +0 -2
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/semanticSetup.d.ts.map +0 -1
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/semanticSetup.js +0 -40
- package/dist/client/billing/renewalAttach/internal/c10/test-fixtures/semanticSetup.js.map +0 -1
- package/dist/client/connect/payoutAdoptionTestHelpers.d.ts +0 -10349
- package/dist/client/connect/payoutAdoptionTestHelpers.d.ts.map +0 -1
- package/dist/client/connect/payoutAdoptionTestHelpers.js +0 -242
- package/dist/client/connect/payoutAdoptionTestHelpers.js.map +0 -1
- package/dist/client/connect/payoutExecutionTestHelpers.d.ts +0 -5166
- package/dist/client/connect/payoutExecutionTestHelpers.d.ts.map +0 -1
- package/dist/client/connect/payoutExecutionTestHelpers.js +0 -208
- package/dist/client/connect/payoutExecutionTestHelpers.js.map +0 -1
- package/dist/client/connect/payoutLargeAdoptionTestHelpers.d.ts +0 -10341
- package/dist/client/connect/payoutLargeAdoptionTestHelpers.d.ts.map +0 -1
- package/dist/client/connect/payoutLargeAdoptionTestHelpers.js +0 -55
- package/dist/client/connect/payoutLargeAdoptionTestHelpers.js.map +0 -1
- package/dist/client/connect/payoutSyncTestHelpers.d.ts +0 -5098
- package/dist/client/connect/payoutSyncTestHelpers.d.ts.map +0 -1
- package/dist/client/connect/payoutSyncTestHelpers.js +0 -62
- package/dist/client/connect/payoutSyncTestHelpers.js.map +0 -1
- package/dist/client/paymentSource/resolver.fixtures.d.ts +0 -220
- package/dist/client/paymentSource/resolver.fixtures.d.ts.map +0 -1
- package/dist/client/paymentSource/resolver.fixtures.js +0 -189
- package/dist/client/paymentSource/resolver.fixtures.js.map +0 -1
- package/dist/client/recoveryWorkflow/provider.fixture.d.ts +0 -21
- package/dist/client/recoveryWorkflow/provider.fixture.d.ts.map +0 -1
- package/dist/client/recoveryWorkflow/provider.fixture.js +0 -125
- package/dist/client/recoveryWorkflow/provider.fixture.js.map +0 -1
- package/dist/client/settlement/authorization.fixture.d.ts +0 -148
- package/dist/client/settlement/authorization.fixture.d.ts.map +0 -1
- package/dist/client/settlement/authorization.fixture.js +0 -178
- package/dist/client/settlement/authorization.fixture.js.map +0 -1
- package/dist/client/setup.test.d.ts +0 -18
- package/dist/client/setup.test.d.ts.map +0 -1
- package/dist/client/setup.test.js +0 -33
- package/dist/client/setup.test.js.map +0 -1
- package/dist/client/usage/correctionTransport.fixtures.d.ts +0 -37
- package/dist/client/usage/correctionTransport.fixtures.d.ts.map +0 -1
- package/dist/client/usage/correctionTransport.fixtures.js +0 -322
- package/dist/client/usage/correctionTransport.fixtures.js.map +0 -1
- package/dist/client/usage/creditSettlement.fixtures.d.ts +0 -216
- package/dist/client/usage/creditSettlement.fixtures.d.ts.map +0 -1
- package/dist/client/usage/creditSettlement.fixtures.js +0 -59
- package/dist/client/usage/creditSettlement.fixtures.js.map +0 -1
- package/dist/client/usage/creditTransport.fixtures.d.ts +0 -108
- package/dist/client/usage/creditTransport.fixtures.d.ts.map +0 -1
- package/dist/client/usage/creditTransport.fixtures.js +0 -293
- package/dist/client/usage/creditTransport.fixtures.js.map +0 -1
- package/dist/client/usage/invoiceSale.fixtures.d.ts +0 -285
- package/dist/client/usage/invoiceSale.fixtures.d.ts.map +0 -1
- package/dist/client/usage/invoiceSale.fixtures.js +0 -104
- package/dist/client/usage/invoiceSale.fixtures.js.map +0 -1
- package/dist/client/usage/mixedInvoice.fixtures.d.ts +0 -315
- package/dist/client/usage/mixedInvoice.fixtures.d.ts.map +0 -1
- package/dist/client/usage/mixedInvoice.fixtures.js +0 -55
- package/dist/client/usage/mixedInvoice.fixtures.js.map +0 -1
- package/dist/client/usage/subscription.fixtures.d.ts +0 -118
- package/dist/client/usage/subscription.fixtures.d.ts.map +0 -1
- package/dist/client/usage/subscription.fixtures.js +0 -84
- package/dist/client/usage/subscription.fixtures.js.map +0 -1
- package/dist/client/usage/subscriptionTransport.fixtures.d.ts +0 -25
- package/dist/client/usage/subscriptionTransport.fixtures.d.ts.map +0 -1
- package/dist/client/usage/subscriptionTransport.fixtures.js +0 -206
- package/dist/client/usage/subscriptionTransport.fixtures.js.map +0 -1
- package/dist/client/webhooks/payoutReconciliationTestHelpers.d.ts +0 -117
- package/dist/client/webhooks/payoutReconciliationTestHelpers.d.ts.map +0 -1
- package/dist/client/webhooks/payoutReconciliationTestHelpers.js +0 -105
- package/dist/client/webhooks/payoutReconciliationTestHelpers.js.map +0 -1
- package/dist/component/usage/allowance.fixtures.d.ts +0 -5088
- package/dist/component/usage/allowance.fixtures.d.ts.map +0 -1
- package/dist/component/usage/allowance.fixtures.js +0 -67
- package/dist/component/usage/allowance.fixtures.js.map +0 -1
- package/dist/component/usageCredits/accounting.fixtures.d.ts +0 -5111
- package/dist/component/usageCredits/accounting.fixtures.d.ts.map +0 -1
- package/dist/component/usageCredits/accounting.fixtures.js +0 -89
- package/dist/component/usageCredits/accounting.fixtures.js.map +0 -1
- package/dist/react/workflows/Usage.fixtures.d.ts +0 -17
- package/dist/react/workflows/Usage.fixtures.d.ts.map +0 -1
- package/dist/react/workflows/Usage.fixtures.js +0 -79
- package/dist/react/workflows/Usage.fixtures.js.map +0 -1
- package/dist/test.d.ts +0 -6
- package/dist/test.d.ts.map +0 -1
- package/dist/test.js +0 -15
- package/dist/test.js.map +0 -1
- package/dist/testing/component-db.d.ts +0 -3
- package/dist/testing/component-db.d.ts.map +0 -1
- package/dist/testing/component-db.js +0 -26
- package/dist/testing/component-db.js.map +0 -1
- package/src/client/balanceFundingWorkflow/capture.test.ts +0 -144
- package/src/client/billing/balanceFunding.test.ts +0 -257
- package/src/client/billing/balanceFundingTransport.test.ts +0 -89
- package/src/client/billing/captured-checkout-payment.test.ts +0 -272
- package/src/client/billing/checkout-idempotency.test.ts +0 -82
- package/src/client/billing/checkout-ui-modes.test.ts +0 -49
- package/src/client/billing/checkout.test.ts +0 -1282
- package/src/client/billing/checkoutPages.test.ts +0 -270
- package/src/client/billing/historyPages.test.ts +0 -58
- package/src/client/billing/intents.test.ts +0 -216
- package/src/client/billing/intentsTransport.test.ts +0 -94
- package/src/client/billing/invoicePages.test.ts +0 -174
- package/src/client/billing/invoicePaymentPages.test.ts +0 -354
- package/src/client/billing/invoicePaymentRead.test.ts +0 -233
- package/src/client/billing/invoicePaymentReadTransport.test.ts +0 -101
- package/src/client/billing/invoicePreview.test.ts +0 -123
- package/src/client/billing/invoicePreviewTransport.test.ts +0 -70
- package/src/client/billing/invoices.test.ts +0 -243
- package/src/client/billing/prepared-checkout.test.ts +0 -430
- package/src/client/billing/providerReads.test.ts +0 -60
- package/src/client/billing/renewal-discount-projection.test.ts +0 -207
- package/src/client/billing/renewal-item-settings-projection.test.ts +0 -79
- package/src/client/billing/renewal-price-replacement.test.ts +0 -503
- package/src/client/billing/renewal-settings-projection.test.ts +0 -300
- package/src/client/billing/renewalAggregate/configure.test.ts +0 -372
- package/src/client/billing/renewalAggregate/preflight.test.ts +0 -233
- package/src/client/billing/renewalAggregate/sourceAndTaxRetention.test.ts +0 -247
- package/src/client/billing/renewalAttach/couponEvidence.test.ts +0 -103
- package/src/client/billing/renewalAttach/internal/acquisition/array-order.test.js +0 -70
- package/src/client/billing/renewalAttach/internal/acquisition/coupon-stop-order.test.js +0 -23
- package/src/client/billing/renewalAttach/internal/acquisition/fetch-metadata.test.js +0 -77
- package/src/client/billing/renewalAttach/internal/acquisition/raw-acquisition.test.js +0 -418
- package/src/client/billing/renewalAttach/internal/acquisition/sourceBinding.test.js +0 -138
- package/src/client/billing/renewalAttach/internal/acquisition/test-fixtures/fixture.mjs +0 -510
- package/src/client/billing/renewalAttach/internal/acquisition/test-fixtures/raw-retention-fixture.mjs +0 -64
- package/src/client/billing/renewalAttach/internal/acquisition/test-fixtures/scenario.mjs +0 -159
- package/src/client/billing/renewalAttach/internal/acquisition/test-fixtures/sourcePort.mjs +0 -25
- package/src/client/billing/renewalAttach/internal/c10/appendAck.first.test.ts +0 -86
- package/src/client/billing/renewalAttach/internal/c10/appendCodec.test.ts +0 -186
- package/src/client/billing/renewalAttach/internal/c10/arrayOrder.test.ts +0 -47
- package/src/client/billing/renewalAttach/internal/c10/compiler.test.ts +0 -443
- package/src/client/billing/renewalAttach/internal/c10/hardening.test.ts +0 -175
- package/src/client/billing/renewalAttach/internal/c10/historicalClassifier.test.ts +0 -114
- package/src/client/billing/renewalAttach/internal/c10/ownerContinuations.test.ts +0 -283
- package/src/client/billing/renewalAttach/internal/c10/reflectionPrivacy.test.ts +0 -87
- package/src/client/billing/renewalAttach/internal/c10/test-fixtures/compilerIndex.mjs +0 -3
- package/src/client/billing/renewalAttach/internal/c10/test-fixtures/fixture.mjs +0 -49
- package/src/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f00.mjs +0 -63
- package/src/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f01.mjs +0 -160
- package/src/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f02.mjs +0 -88
- package/src/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f03.mjs +0 -102
- package/src/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f04.mjs +0 -82
- package/src/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f05.mjs +0 -20
- package/src/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f06.mjs +0 -41
- package/src/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f07.mjs +0 -137
- package/src/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f08.mjs +0 -153
- package/src/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f09.mjs +0 -127
- package/src/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f10.mjs +0 -85
- package/src/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f11.mjs +0 -170
- package/src/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f12.mjs +0 -6
- package/src/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f13.mjs +0 -295
- package/src/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f14.mjs +0 -78
- package/src/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f15.mjs +0 -177
- package/src/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f16.mjs +0 -8
- package/src/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f17.mjs +0 -34
- package/src/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f18.mjs +0 -32
- package/src/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f19.json +0 -452
- package/src/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f20.mjs +0 -177
- package/src/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f21.mjs +0 -466
- package/src/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f22.mjs +0 -29
- package/src/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f23.mjs +0 -165
- package/src/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f24.mjs +0 -507
- package/src/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f25.mjs +0 -89
- package/src/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f26.mjs +0 -38
- package/src/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f27.mjs +0 -45
- package/src/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f28.mjs +0 -309
- package/src/client/billing/renewalAttach/internal/c10/test-fixtures/frozen/f29.mjs +0 -58
- package/src/client/billing/renewalAttach/internal/c10/test-fixtures/publishedRawkeyHelper.mjs +0 -104
- package/src/client/billing/renewalAttach/internal/c10/test-fixtures/semanticSetup.ts +0 -43
- package/src/client/billing/renewalAttach/internal/configure/dispatch.integration.test.ts +0 -32
- package/src/client/billing/renewalAttach/internal/configure/limits.test.ts +0 -510
- package/src/client/billing/renewalAttach/internal/configure/order.integration.test.ts +0 -207
- package/src/client/billing/renewalAttach/internal/configure/ownership.integration.test.ts +0 -148
- package/src/client/billing/renewalAttach/internal/configure/replay.integration.test.ts +0 -173
- package/src/client/billing/renewalAttach/internal/configure/transport.integration.test.ts +0 -507
- package/src/client/billing/renewalAttach/internal/material/classifiers.test.ts +0 -510
- package/src/client/billing/renewalAttach/internal/observation/freshActor.integration.test.ts +0 -360
- package/src/client/billing/renewalAttach/internal/observation/freshActorControls.integration.test.ts +0 -442
- package/src/client/billing/renewalAttach/internal/observation/history.integration.test.ts +0 -79
- package/src/client/billing/renewalAttach/internal/observation/historyControls.integration.test.ts +0 -238
- package/src/client/billing/renewalAttach/internal/observation/invoiceActor.integration.test.ts +0 -142
- package/src/client/billing/renewalAttach/internal/observation/invoiceActorControls.integration.test.ts +0 -495
- package/src/client/billing/renewalAttach/internal/observation/observation.integration.test.ts +0 -220
- package/src/client/billing/renewalAttach/internal/observation/observationConfigureACK.integration.test.ts +0 -36
- package/src/client/billing/renewalAttach/internal/observation/observationConfigureACKControls.integration.test.ts +0 -48
- package/src/client/billing/renewalAttach/internal/observation/observationConfigureACKLifecycle.integration.test.ts +0 -44
- package/src/client/billing/renewalAttach/internal/observation/observationConfiguredHistory.integration.test.ts +0 -34
- package/src/client/billing/renewalAttach/internal/observation/observationRetirement.integration.test.ts +0 -60
- package/src/client/billing/renewalAttach/internal/observation/reader.integration.test.ts +0 -93
- package/src/client/billing/renewalAttach/internal/observation/readerControls.integration.test.ts +0 -553
- package/src/client/billing/renewalAttach/internal/observation/witnessAcquisition.integration.test.ts +0 -348
- package/src/client/billing/renewalAttach/internal/observation/witnessActor.integration.test.ts +0 -204
- package/src/client/billing/renewalAttach/internal/observation/witnessCapabilities.integration.test.ts +0 -231
- package/src/client/billing/renewalAttach/internal/observation/witnessHistorical.integration.test.ts +0 -98
- package/src/client/billing/renewalAttach/internal/observation/witnessImmutable.integration.test.ts +0 -78
- package/src/client/billing/renewalAttach/internal/observation/witnessInvoice.integration.test.ts +0 -85
- package/src/client/billing/renewalAttach/internal/observation/witnessLifecycle.integration.test.ts +0 -264
- package/src/client/billing/renewalAttach/internal/observation/witnessProfile.integration.test.ts +0 -93
- package/src/client/billing/renewalAttach/internal/observation/witnessRPCControls.integration.test.ts +0 -256
- package/src/client/billing/renewalAttach/internal/operationJournal.acknowledgement.integration.test.ts +0 -500
- package/src/client/billing/renewalAttach/internal/operationJournal.c10.integration.test.ts +0 -560
- package/src/client/billing/renewalAttach/internal/operationJournal.controls.integration.test.ts +0 -356
- package/src/client/billing/renewalAttach/internal/operationJournal.integration.test.ts +0 -560
- package/src/client/billing/renewalAttach/internal/operationJournal.methods.integration.test.ts +0 -534
- package/src/client/billing/renewalAttach/internal/operations/defaultBindings.test.ts +0 -69
- package/src/client/billing/renewalAttach/internal/operations/initialAttach.integration.test.ts +0 -34
- package/src/client/billing/renewalAttach/internal/operations/providerFailure.integration.test.ts +0 -61
- package/src/client/billing/renewalAttach/internal/operations/transport.integration.test.ts +0 -116
- package/src/client/billing/renewalAttach/internal/originalOwner.test.ts +0 -258
- package/src/client/billing/renewalAttach/internal/preflight/configurePreflight.integration.test.ts +0 -285
- package/src/client/billing/renewalAttach/internal/preflight/configureReads.integration.test.ts +0 -139
- package/src/client/billing/renewalAttach/internal/preflight/owner.integration.test.ts +0 -82
- package/src/client/billing/renewalAttach/internal/preflight/preflight.integration.test.ts +0 -354
- package/src/client/billing/renewalAttach/internal/producer/producerAcknowledgement.integration.test.ts +0 -320
- package/src/client/billing/renewalAttach/internal/producer/producerAcknowledgementControls.integration.test.ts +0 -411
- package/src/client/billing/renewalAttach/internal/producer/producerAcquisition.integration.test.ts +0 -240
- package/src/client/billing/renewalAttach/internal/producer/producerActor.integration.test.ts +0 -526
- package/src/client/billing/renewalAttach/internal/producer/producerChannels.integration.test.ts +0 -350
- package/src/client/billing/renewalAttach/internal/producer/producerClock.integration.test.ts +0 -175
- package/src/client/billing/renewalAttach/internal/producer/producerConfigureAdmission.integration.test.ts +0 -203
- package/src/client/billing/renewalAttach/internal/producer/producerConfigureChannelControls.integration.test.ts +0 -542
- package/src/client/billing/renewalAttach/internal/producer/producerConfigureChannels.integration.test.ts +0 -321
- package/src/client/billing/renewalAttach/internal/producer/producerConfigureControls.integration.test.ts +0 -566
- package/src/client/billing/renewalAttach/internal/producer/producerConfigurePreflight.integration.test.ts +0 -67
- package/src/client/billing/renewalAttach/internal/producer/producerConfigurePreflightControls.integration.test.ts +0 -475
- package/src/client/billing/renewalAttach/internal/producer/producerConfigureRecovery.integration.test.ts +0 -99
- package/src/client/billing/renewalAttach/internal/producer/producerConfigureRecoveryControls.integration.test.ts +0 -420
- package/src/client/billing/renewalAttach/internal/producer/producerConfigureWrite.integration.test.ts +0 -158
- package/src/client/billing/renewalAttach/internal/producer/producerConfigureWriteControls.integration.test.ts +0 -549
- package/src/client/billing/renewalAttach/internal/producer/producerGuards.integration.test.ts +0 -323
- package/src/client/billing/renewalAttach/internal/producer/producerInitial.integration.test.ts +0 -301
- package/src/client/billing/renewalAttach/internal/producer/producerIsolation.integration.test.ts +0 -531
- package/src/client/billing/renewalAttach/internal/producer/producerMaterial.integration.test.ts +0 -251
- package/src/client/billing/renewalAttach/internal/producer/producerOwner.integration.test.ts +0 -449
- package/src/client/billing/renewalAttach/internal/producer/producerRecovery.integration.test.ts +0 -394
- package/src/client/billing/renewalAttach/internal/producer/producerRecoveryControls.integration.test.ts +0 -437
- package/src/client/billing/renewalAttach/internal/producer/producerRecoveryIsolation.integration.test.ts +0 -332
- package/src/client/billing/renewalAttach/internal/producer/producerTransport.integration.test.ts +0 -440
- package/src/client/billing/renewalAttach/internal/recovery/recovery.integration.test.ts +0 -463
- package/src/client/billing/renewalAttach/internal/sourceBindings.test.ts +0 -13
- package/src/client/billing/renewalAttach/internal/stockRawDelegate.test.ts +0 -156
- package/src/client/billing/renewalAttach/internal/test-fixtures/attachEntries.ts +0 -217
- package/src/client/billing/renewalAttach/internal/test-fixtures/attachObservations.ts +0 -226
- package/src/client/billing/renewalAttach/internal/test-fixtures/attachScenario.ts +0 -556
- package/src/client/billing/renewalAttach/internal/test-fixtures/attachScenarioAssertions.ts +0 -180
- package/src/client/billing/renewalAttach/internal/test-fixtures/attachScenarioBarriers.ts +0 -144
- package/src/client/billing/renewalAttach/internal/test-fixtures/configurePreflightAssertions.ts +0 -122
- package/src/client/billing/renewalAttach/internal/test-fixtures/configurePreflightBarriers.ts +0 -330
- package/src/client/billing/renewalAttach/internal/test-fixtures/configurePreflightControls.ts +0 -139
- package/src/client/billing/renewalAttach/internal/test-fixtures/configurePreflightOperation.ts +0 -513
- package/src/client/billing/renewalAttach/internal/test-fixtures/configureReadNativeBaseline.ts +0 -344
- package/src/client/billing/renewalAttach/internal/test-fixtures/configureReadOperation.ts +0 -278
- package/src/client/billing/renewalAttach/internal/test-fixtures/configureReadPort.ts +0 -17
- package/src/client/billing/renewalAttach/internal/test-fixtures/configureWriteAssertions.ts +0 -537
- package/src/client/billing/renewalAttach/internal/test-fixtures/configureWriteBarriers.ts +0 -125
- package/src/client/billing/renewalAttach/internal/test-fixtures/configureWriteDeclarations.ts +0 -325
- package/src/client/billing/renewalAttach/internal/test-fixtures/configureWriteDelegate.ts +0 -38
- package/src/client/billing/renewalAttach/internal/test-fixtures/configureWriteHistory.ts +0 -471
- package/src/client/billing/renewalAttach/internal/test-fixtures/configureWriteObservations.ts +0 -515
- package/src/client/billing/renewalAttach/internal/test-fixtures/configureWriteOperation.ts +0 -587
- package/src/client/billing/renewalAttach/internal/test-fixtures/freshObservation.ts +0 -94
- package/src/client/billing/renewalAttach/internal/test-fixtures/historySnapshot.ts +0 -51
- package/src/client/billing/renewalAttach/internal/test-fixtures/invoiceObservation.ts +0 -160
- package/src/client/billing/renewalAttach/internal/test-fixtures/observationAssertions.ts +0 -211
- package/src/client/billing/renewalAttach/internal/test-fixtures/observationConfigureACKAssertions.ts +0 -115
- package/src/client/billing/renewalAttach/internal/test-fixtures/observationConfigureACKDeclarations.ts +0 -141
- package/src/client/billing/renewalAttach/internal/test-fixtures/observationConfigureACKLifecycleAssertions.ts +0 -74
- package/src/client/billing/renewalAttach/internal/test-fixtures/observationConfigureACKLifecycleDeclarations.ts +0 -79
- package/src/client/billing/renewalAttach/internal/test-fixtures/observationConfigureACKLifecycleInstrumentation.ts +0 -207
- package/src/client/billing/renewalAttach/internal/test-fixtures/observationConfigureACKLifecycleOperation.ts +0 -494
- package/src/client/billing/renewalAttach/internal/test-fixtures/observationConfigureACKOperation.ts +0 -452
- package/src/client/billing/renewalAttach/internal/test-fixtures/observationConfiguredHistoryAssertions.ts +0 -88
- package/src/client/billing/renewalAttach/internal/test-fixtures/observationConfiguredHistoryDeclarations.ts +0 -170
- package/src/client/billing/renewalAttach/internal/test-fixtures/observationConfiguredHistoryNative.ts +0 -99
- package/src/client/billing/renewalAttach/internal/test-fixtures/observationConfiguredHistoryOperation.ts +0 -411
- package/src/client/billing/renewalAttach/internal/test-fixtures/observationDeclarations.ts +0 -192
- package/src/client/billing/renewalAttach/internal/test-fixtures/observationHTTP.ts +0 -197
- package/src/client/billing/renewalAttach/internal/test-fixtures/observationObservations.ts +0 -269
- package/src/client/billing/renewalAttach/internal/test-fixtures/observationOperation.ts +0 -262
- package/src/client/billing/renewalAttach/internal/test-fixtures/observationProbe.ts +0 -319
- package/src/client/billing/renewalAttach/internal/test-fixtures/observationReader.ts +0 -101
- package/src/client/billing/renewalAttach/internal/test-fixtures/ownedOperations.ts +0 -94
- package/src/client/billing/renewalAttach/internal/test-fixtures/producerConfigureAdmission.ts +0 -538
- package/src/client/billing/renewalAttach/internal/test-fixtures/producerInitialDeclarations.ts +0 -5
- package/src/client/billing/renewalAttach/internal/test-fixtures/producerInitialOperation.ts +0 -335
- package/src/client/billing/renewalAttach/internal/test-fixtures/sourceOperationPort.ts +0 -16
- package/src/client/billing/renewalAttach/internal/test-fixtures/stockHttp.ts +0 -21
- package/src/client/billing/renewalAttach/internal/test-fixtures/witnessHistory.ts +0 -70
- package/src/client/billing/renewalAttach/internal/test-fixtures/witnessObservation.ts +0 -353
- package/src/client/billing/renewalAttach/reader.test.ts +0 -409
- package/src/client/billing/renewalAttach/wireJson.test.ts +0 -265
- package/src/client/billing/renewalObservation/evidence-admission.test.ts +0 -219
- package/src/client/billing/renewalObservation/evidence-history.test.ts +0 -187
- package/src/client/billing/renewalObservation/evidence-invoice-controls.test.ts +0 -293
- package/src/client/billing/renewalObservation/evidence-invoice-identity.test.ts +0 -61
- package/src/client/billing/renewalObservation/evidence-invoice.test.ts +0 -177
- package/src/client/billing/renewalObservation/evidence-material.test.ts +0 -289
- package/src/client/billing/renewalObservation/evidence-v1.test.ts +0 -371
- package/src/client/billing/renewalV2/configure.test.ts +0 -362
- package/src/client/billing/renewalV2/configureReceipt.test.ts +0 -558
- package/src/client/billing/renewalV2/index.test.ts +0 -414
- package/src/client/billing/renewalV2/observation.boundary-review.test.ts +0 -49
- package/src/client/billing/renewalV2/observation.test.ts +0 -334
- package/src/client/billing/renewalV2/rawRetention.test.ts +0 -293
- package/src/client/billing/renewalV2/receipt.test.ts +0 -289
- package/src/client/billing/setup-intent-read.test.ts +0 -324
- package/src/client/billing/subscription-payment-method.test.ts +0 -460
- package/src/client/billing/subscriptionCancellation.test.ts +0 -68
- package/src/client/billing/subscriptions.test.ts +0 -1049
- package/src/client/charge-currency.test.ts +0 -113
- package/src/client/component-api-types.test.ts +0 -137
- package/src/client/connect/commissionReceipts.test.ts +0 -157
- package/src/client/connect/dispute-upload.test.ts +0 -208
- package/src/client/connect/disputes.test.ts +0 -502
- package/src/client/connect/paymentMethodUtils.test.ts +0 -83
- package/src/client/connect/paymentMethods.test.ts +0 -68
- package/src/client/connect/payoutAdoption.test.ts +0 -186
- package/src/client/connect/payoutAdoptionAge.test.ts +0 -89
- package/src/client/connect/payoutAdoptionAllocation.test.ts +0 -132
- package/src/client/connect/payoutAdoptionConcurrency.test.ts +0 -266
- package/src/client/connect/payoutAdoptionTestHelpers.ts +0 -269
- package/src/client/connect/payoutAllocation.test.ts +0 -325
- package/src/client/connect/payoutCacheIdentity.test.ts +0 -93
- package/src/client/connect/payoutCollection.test.ts +0 -74
- package/src/client/connect/payoutDeadline.test.ts +0 -238
- package/src/client/connect/payoutExecution.test.ts +0 -294
- package/src/client/connect/payoutExecutionTestHelpers.ts +0 -244
- package/src/client/connect/payoutHistory.test.ts +0 -145
- package/src/client/connect/payoutLargeAdoption.test.ts +0 -541
- package/src/client/connect/payoutLargeAdoptionTestHelpers.ts +0 -74
- package/src/client/connect/payoutLargeHistory.test.ts +0 -222
- package/src/client/connect/payoutLiabilityVersion.test.ts +0 -221
- package/src/client/connect/payoutOutcomeBatches.test.ts +0 -40
- package/src/client/connect/payoutPreview.test.ts +0 -414
- package/src/client/connect/payoutQualificationFreshness.test.ts +0 -192
- package/src/client/connect/payoutReceipt.test.ts +0 -312
- package/src/client/connect/payoutReconciliation.test.ts +0 -414
- package/src/client/connect/payoutReturnedAdoption.test.ts +0 -157
- package/src/client/connect/payoutSnapshot.test.ts +0 -118
- package/src/client/connect/payoutSync.test.ts +0 -313
- package/src/client/connect/payoutSyncTestHelpers.ts +0 -82
- package/src/client/connect/payoutWorker.test.ts +0 -201
- package/src/client/connect/payouts.test.ts +0 -132
- package/src/client/connect/refundActor.test.ts +0 -121
- package/src/client/connect/refundPrincipal.test.ts +0 -46
- package/src/client/connect/refundSync.test.ts +0 -239
- package/src/client/connect/refundSync.transport.test.ts +0 -396
- package/src/client/connect/refunds.test.ts +0 -438
- package/src/client/connect/transferReceipt.pagination.test.ts +0 -209
- package/src/client/connect/transferReceipt.test.ts +0 -520
- package/src/client/connect/transferReceiptBaseline.test.ts +0 -55
- package/src/client/connect/transfers.test.ts +0 -557
- package/src/client/core/account-close-guard.test.ts +0 -349
- package/src/client/core/account-close-orchestration.test.ts +0 -131
- package/src/client/core/account-closure-preview.test.ts +0 -219
- package/src/client/core/account-closure.test.ts +0 -317
- package/src/client/core/account-idempotency.test.ts +0 -78
- package/src/client/core/account-session-client.test.ts +0 -74
- package/src/client/core/accountConfigurations.test.ts +0 -183
- package/src/client/core/accountLinks.test.ts +0 -389
- package/src/client/core/accountStatus.test.ts +0 -169
- package/src/client/core/accounts.test.ts +0 -1385
- package/src/client/core/billingPortal.test.ts +0 -249
- package/src/client/core/billingPortalFlow.test.ts +0 -349
- package/src/client/core/billingPortalIdentity.test.ts +0 -418
- package/src/client/core/config.test.ts +0 -69
- package/src/client/core/descriptors.test.ts +0 -70
- package/src/client/core/fees.test.ts +0 -369
- package/src/client/core/idempotency.test.ts +0 -10
- package/src/client/core/personal-account-mapping.test.ts +0 -71
- package/src/client/costRecovery-import.test.ts +0 -174
- package/src/client/costRecovery-invoiceReceipt.test.ts +0 -140
- package/src/client/costRecovery-invoices.test.ts +0 -470
- package/src/client/costRecovery-invoices.transport.test.ts +0 -107
- package/src/client/costRecovery.test.ts +0 -110
- package/src/client/customer-preview-thin.test.ts +0 -41
- package/src/client/customer-preview-webhooks.test.ts +0 -150
- package/src/client/customer-preview.test.ts +0 -366
- package/src/client/errors.test.ts +0 -66
- package/src/client/financialObservations.test.ts +0 -109
- package/src/client/financialOutcomes/outcomes.test.ts +0 -254
- package/src/client/financialOwnership.test.ts +0 -80
- package/src/client/helpers.test.ts +0 -74
- package/src/client/index.test.ts +0 -1784
- package/src/client/operationEvidence.test.ts +0 -110
- package/src/client/originalIdReadOptions.test.ts +0 -63
- package/src/client/paymentSource/resolver.fixtures.ts +0 -216
- package/src/client/paymentSource/resolver.test.ts +0 -386
- package/src/client/payoutPolicy.test.ts +0 -579
- package/src/client/payoutRevisionMigration.test.ts +0 -40
- package/src/client/processingCostDeficit/calculator.test.ts +0 -176
- package/src/client/processingCostReconciliation/invoiceProvider.test.ts +0 -353
- package/src/client/processingCostReconciliation/provider.test.ts +0 -324
- package/src/client/products/catalog-idempotency.test.ts +0 -116
- package/src/client/products/catalog.test.ts +0 -389
- package/src/client/products/fixedPrice.test.ts +0 -57
- package/src/client/products/identity.test.ts +0 -91
- package/src/client/products/prices.test.ts +0 -375
- package/src/client/products/product-descriptor-inheritance.test.ts +0 -245
- package/src/client/products/product-descriptors.test.ts +0 -260
- package/src/client/products/product-set-idempotency.test.ts +0 -188
- package/src/client/products/products.test.ts +0 -517
- package/src/client/readPagination.test.ts +0 -83
- package/src/client/recoveryWorkflow/client.test.ts +0 -37
- package/src/client/recoveryWorkflow/provider.fixture.ts +0 -143
- package/src/client/recoveryWorkflow/provider.test.ts +0 -509
- package/src/client/refund-command-evidence.test.ts +0 -68
- package/src/client/refund-command-normalization.test.ts +0 -61
- package/src/client/refund-context-shapes.test.ts +0 -127
- package/src/client/refund-context.test.ts +0 -404
- package/src/client/refund-history.test.ts +0 -67
- package/src/client/reversalObservations.test.ts +0 -69
- package/src/client/settlement/allocation.test.ts +0 -98
- package/src/client/settlement/authorization.fixture.ts +0 -199
- package/src/client/settlement/authorization.test.ts +0 -160
- package/src/client/settlement/commissions.test.ts +0 -103
- package/src/client/settlement/execution.test.ts +0 -191
- package/src/client/settlement/policy-context.test.ts +0 -277
- package/src/client/settlement/processingCosts.test.ts +0 -349
- package/src/client/settlement/processingCostsTransport.test.ts +0 -135
- package/src/client/settlement/verifiedSale.test.ts +0 -139
- package/src/client/setup.test.ts +0 -47
- package/src/client/singleAttemptHttpClient.test.ts +0 -70
- package/src/client/strictStripeTransport.test.ts +0 -73
- package/src/client/stripe-version.test.ts +0 -53
- package/src/client/transferContinuation.test.ts +0 -90
- package/src/client/transferObservations.test.ts +0 -98
- package/src/client/usage/allowanceClient.test.ts +0 -93
- package/src/client/usage/allowanceTerms.test.ts +0 -131
- package/src/client/usage/boundaries.test.ts +0 -136
- package/src/client/usage/catalog.test.ts +0 -464
- package/src/client/usage/catalogMath.test.ts +0 -13
- package/src/client/usage/contracts.test.ts +0 -145
- package/src/client/usage/correctionClient.test.ts +0 -153
- package/src/client/usage/correctionCredits.test.ts +0 -156
- package/src/client/usage/correctionInvoice.test.ts +0 -127
- package/src/client/usage/correctionRecovery.test.ts +0 -113
- package/src/client/usage/correctionTransport.fixtures.ts +0 -372
- package/src/client/usage/creditBackingIsolation.test.ts +0 -110
- package/src/client/usage/creditCapacity.test.ts +0 -162
- package/src/client/usage/creditClient.test.ts +0 -221
- package/src/client/usage/creditInvoice.test.ts +0 -149
- package/src/client/usage/creditObservation.test.ts +0 -150
- package/src/client/usage/creditProofBounds.test.ts +0 -187
- package/src/client/usage/creditProvider.test.ts +0 -276
- package/src/client/usage/creditRevenue.test.ts +0 -105
- package/src/client/usage/creditSettlement.fixtures.ts +0 -70
- package/src/client/usage/creditSettlement.test.ts +0 -66
- package/src/client/usage/creditSettlementRecovery.test.ts +0 -173
- package/src/client/usage/creditTerms.test.ts +0 -48
- package/src/client/usage/creditTransport.fixtures.ts +0 -308
- package/src/client/usage/deliveryProvider.test.ts +0 -316
- package/src/client/usage/invoiceObservation.test.ts +0 -195
- package/src/client/usage/invoiceSale.fixtures.ts +0 -103
- package/src/client/usage/invoiceSale.test.ts +0 -252
- package/src/client/usage/ledger-client.test.ts +0 -74
- package/src/client/usage/mixedInvoice.fixtures.ts +0 -54
- package/src/client/usage/mixedInvoiceSale.test.ts +0 -92
- package/src/client/usage/mixedSettlement.test.ts +0 -187
- package/src/client/usage/providerObservation.test.ts +0 -207
- package/src/client/usage/reconciliation.test.ts +0 -117
- package/src/client/usage/record-composition.test.ts +0 -195
- package/src/client/usage/settlement.test.ts +0 -179
- package/src/client/usage/subscription.fixtures.ts +0 -84
- package/src/client/usage/subscriptionAbandonment.test.ts +0 -124
- package/src/client/usage/subscriptionCheckout.test.ts +0 -44
- package/src/client/usage/subscriptionClient.test.ts +0 -375
- package/src/client/usage/subscriptionProvider.test.ts +0 -48
- package/src/client/usage/subscriptionTerms.test.ts +0 -158
- package/src/client/usage/subscriptionTransport.fixtures.ts +0 -247
- package/src/client/usage/summary.test.ts +0 -222
- package/src/client/utils/data.test.ts +0 -61
- package/src/client/utils/owner.test.ts +0 -38
- package/src/client/utils/stripeDashboardUrl.test.ts +0 -71
- package/src/client/utils/webhookEndpoints.test.ts +0 -459
- package/src/client/webhook-handlers.test.ts +0 -569
- package/src/client/webhooks/handler.test.ts +0 -601
- package/src/client/webhooks/helpers.test.ts +0 -343
- package/src/client/webhooks/hooks.test.ts +0 -119
- package/src/client/webhooks/meterErrors.test.ts +0 -164
- package/src/client/webhooks/payout-canceled.integration.test.ts +0 -230
- package/src/client/webhooks/payout-reconciliation.integration.test.ts +0 -168
- package/src/client/webhooks/payoutReconciliationTestHelpers.ts +0 -135
- package/src/client/webhooks/processors.test.ts +0 -2553
- package/src/client/webhooks/refund-delivery.test.ts +0 -512
- package/src/client/webhooks/refund-reconciliation.test.ts +0 -320
- package/src/client/webhooks/retry.integration.test.ts +0 -196
- package/src/client/webhooks/subscription-deleted-dispatch.test.ts +0 -61
- package/src/client/webhooks/subscription-deleted.integration.test.ts +0 -313
- package/src/client/webhooks/usageSubscriptions.test.ts +0 -162
- package/src/client/webhooks/v2.test.ts +0 -432
- package/src/client/webhooks.test.ts +0 -1681
- package/src/component/accountClosure/blockers.test.ts +0 -114
- package/src/component/affiliatePayouts/affiliate-direct-payout.test.ts +0 -159
- package/src/component/affiliateRecovery/affiliate-component-pagination.test.ts +0 -56
- package/src/component/affiliateRecovery/affiliate-recovery-lifecycle.test.ts +0 -586
- package/src/component/balanceFunding/failure.test.ts +0 -116
- package/src/component/balanceFunding/import.test.ts +0 -221
- package/src/component/balanceFunding/lookup.test.ts +0 -113
- package/src/component/balanceFunding/preparation.test.ts +0 -146
- package/src/component/balanceFunding/requestLookup.test.ts +0 -160
- package/src/component/balanceFunding/scopeLookup.test.ts +0 -94
- package/src/component/balanceFunding/state.test.ts +0 -352
- package/src/component/balanceFunding/validation.test.ts +0 -100
- package/src/component/balanceFunding/workflow.fixtures.ts +0 -366
- package/src/component/balanceFunding/workflow.test.ts +0 -552
- package/src/component/billing/checkout.test.ts +0 -89
- package/src/component/billing/invoices.test.ts +0 -294
- package/src/component/billing/store-subscriptions.test.ts +0 -31
- package/src/component/billing/subscription-scoping.test.ts +0 -120
- package/src/component/billing/subscriptions.test.ts +0 -477
- package/src/component/billingHistory/guards.test.ts +0 -235
- package/src/component/billingHistory/options.test.ts +0 -35
- package/src/component/billingHistory/pages.test.ts +0 -74
- package/src/component/connect/connect.test.ts +0 -715
- package/src/component/connect/fee-routing.test.ts +0 -122
- package/src/component/connect/payment-unique.test.ts +0 -195
- package/src/component/connect/payments.test.ts +0 -88
- package/src/component/connect/payouts.test.ts +0 -173
- package/src/component/connect/reversal-races.test.ts +0 -958
- package/src/component/connect/seller-case-ownership.test.ts +0 -60
- package/src/component/connect/transfers.test.ts +0 -517
- package/src/component/core/accounts.test.ts +0 -266
- package/src/component/core/config-queries.test.ts +0 -49
- package/src/component/core/original-id-unique.test.ts +0 -209
- package/src/component/core/payout-reset-safety.test.ts +0 -175
- package/src/component/core/personal-account-mapping.test.ts +0 -173
- package/src/component/core/reset.test.ts +0 -131
- package/src/component/costRecovery/cost-recovery.test.ts +0 -343
- package/src/component/costRecovery/preparation.test.ts +0 -355
- package/src/component/durableExecution/composition.test.ts +0 -568
- package/src/component/durableExecution/crossDomain.test.ts +0 -241
- package/src/component/durableExecution/crossDomainBoundaries.test.ts +0 -233
- package/src/component/durableExecution/crossDomainDisputes.test.ts +0 -108
- package/src/component/durableExecution/crossDomainMigration.test.ts +0 -192
- package/src/component/durableExecution/crossDomainWebhooks.test.ts +0 -122
- package/src/component/earnings/currency-migration.test.ts +0 -118
- package/src/component/earnings/currency-totals.test.ts +0 -94
- package/src/component/earnings/earnings-totals.test.ts +0 -237
- package/src/component/earnings/paired-adjustment.test.ts +0 -258
- package/src/component/earnings/summary-arithmetic.test.ts +0 -250
- package/src/component/financialObservations/continuation.test.ts +0 -445
- package/src/component/financialObservations/observation-boundaries.test.ts +0 -466
- package/src/component/financialObservations/settlement-observations.test.ts +0 -86
- package/src/component/financialObservations/transfer-batches.test.ts +0 -61
- package/src/component/financialObservations/transfer-boundaries.test.ts +0 -116
- package/src/component/financialObservations/transfer-continuation-guards.test.ts +0 -428
- package/src/component/financialObservations/transfer-continuation.test.ts +0 -154
- package/src/component/financialObservations/transfer-observations.test.ts +0 -212
- package/src/component/financialObservations/transfer-overflow.test.ts +0 -181
- package/src/component/financialObservations/transfer-writers.test.ts +0 -162
- package/src/component/financialOwnership/financial-ownership.test.ts +0 -102
- package/src/component/financialOwnership/ownership-boundaries.test.ts +0 -308
- package/src/component/lib/idempotency.test.ts +0 -37
- package/src/component/operationEvidence/integrity.test.ts +0 -257
- package/src/component/operationEvidence/maintenance.test.ts +0 -152
- package/src/component/operationEvidence/reads.test.ts +0 -140
- package/src/component/payoutPolicy/payout-policy-adoption.test.ts +0 -130
- package/src/component/payoutPolicy/payout-policy.test.ts +0 -247
- package/src/component/payoutRelease/payout-adoption.test.ts +0 -268
- package/src/component/payoutRelease/payout-fees.test.ts +0 -223
- package/src/component/payoutRelease/payout-recovery-integration.test.ts +0 -171
- package/src/component/payoutRelease/payout-release-snapshot.test.ts +0 -56
- package/src/component/payoutRelease/payout-release.test.ts +0 -587
- package/src/component/payoutRelease/progress.test.ts +0 -63
- package/src/component/payoutSnapshots/legacy-revisions.test.ts +0 -246
- package/src/component/payoutSnapshots/payout-revisions.test.ts +0 -124
- package/src/component/payoutSnapshots/payout-snapshots.test.ts +0 -438
- package/src/component/payoutSnapshots/revision-journal-callbacks.test.ts +0 -160
- package/src/component/payoutSnapshots/revision-journal-held.test.ts +0 -94
- package/src/component/payoutSnapshots/revision-journal.test.ts +0 -310
- package/src/component/payoutSnapshots/revision-migration.test.ts +0 -128
- package/src/component/payoutSync/payout-sync.test.ts +0 -116
- package/src/component/payoutWorker/payout-component-pagination.test.ts +0 -211
- package/src/component/payoutWorker/payout-worker.test.ts +0 -164
- package/src/component/processingCostReconciliation/adoption.test.ts +0 -206
- package/src/component/processingCostReconciliation/invoice.test.ts +0 -152
- package/src/component/processingCostReconciliation/state.test.ts +0 -407
- package/src/component/processingCostReconciliation/workflow.test.ts +0 -329
- package/src/component/products/identity.test.ts +0 -217
- package/src/component/products/products.test.ts +0 -239
- package/src/component/products/provider-price-pagination.test.ts +0 -174
- package/src/component/products/read-pagination.test.ts +0 -192
- package/src/component/recoveryWorkflow/bridge.test.ts +0 -481
- package/src/component/recoveryWorkflow/journal.test.ts +0 -104
- package/src/component/recoveryWorkflow/state.test.ts +0 -191
- package/src/component/refundHistory/command-evidence.test.ts +0 -288
- package/src/component/refundHistory/command-normalization-resource.test.ts +0 -77
- package/src/component/refundHistory/command-normalization.test.ts +0 -229
- package/src/component/refundHistory/command-provenance.test.ts +0 -59
- package/src/component/refundHistory/original-seller-boundaries.test.ts +0 -138
- package/src/component/refundHistory/original-seller.test.ts +0 -175
- package/src/component/refundHistory/refund-history.test.ts +0 -197
- package/src/component/refundSync/refund-sync.test.ts +0 -255
- package/src/component/renewalOperations/acknowledgement.fixtures.ts +0 -552
- package/src/component/renewalOperations/acknowledgement.test.ts +0 -573
- package/src/component/renewalOperations/acknowledgementReads.test.ts +0 -442
- package/src/component/renewalOperations/acknowledgementV2.test.ts +0 -493
- package/src/component/renewalOperations/acknowledgementV2Publication.test.ts +0 -373
- package/src/component/renewalOperations/basisBinding.test.ts +0 -567
- package/src/component/renewalOperations/basisLifecycle.test.ts +0 -569
- package/src/component/renewalOperations/boundHistory.test.ts +0 -474
- package/src/component/renewalOperations/configureAcknowledgement.test.ts +0 -30
- package/src/component/renewalOperations/configureAcknowledgementControls.test.ts +0 -96
- package/src/component/renewalOperations/configureBasis.test.ts +0 -77
- package/src/component/renewalOperations/configureCreation.test.ts +0 -75
- package/src/component/renewalOperations/configureJournal.fixtures.ts +0 -407
- package/src/component/renewalOperations/configurePolicy.test.ts +0 -105
- package/src/component/renewalOperations/configurePublication.test.ts +0 -85
- package/src/component/renewalOperations/configureReceiptBounds.test.ts +0 -39
- package/src/component/renewalOperations/configureSourceControls.test.ts +0 -65
- package/src/component/renewalOperations/historyReads.test.ts +0 -595
- package/src/component/renewalOperations/initialBasis.test.ts +0 -578
- package/src/component/renewalOperations/journal.test.ts +0 -567
- package/src/component/renewalOperations/payload.test.ts +0 -589
- package/src/component/renewalOperations/payloadEncoding.test.ts +0 -592
- package/src/component/renewalOperations/timingPolicy.fixtures.ts +0 -193
- package/src/component/renewalOperations/timingPolicy.test.ts +0 -523
- package/src/component/renewalWitnesses/bounds.test.ts +0 -204
- package/src/component/renewalWitnesses/codec.test.ts +0 -84
- package/src/component/renewalWitnesses/controls.test.ts +0 -250
- package/src/component/renewalWitnesses/protocol.test.ts +0 -63
- package/src/component/renewalWitnesses/routes.test.ts +0 -154
- package/src/component/reversalObservations/boundaries.test.ts +0 -62
- package/src/component/reversalObservations/capture-integrity.test.ts +0 -119
- package/src/component/reversalObservations/continuation.test.ts +0 -131
- package/src/component/reversalObservations/lifecycle.test.ts +0 -81
- package/src/component/reversalObservations/provenance.test.ts +0 -167
- package/src/component/settlement/affiliate-clawbacks.test.ts +0 -369
- package/src/component/settlement/settlement-claims.test.ts +0 -130
- package/src/component/usage/allowance.fixtures.ts +0 -77
- package/src/component/usage/allowance.test.ts +0 -372
- package/src/component/usage/allowanceBounds.test.ts +0 -79
- package/src/component/usage/historyIsolation.test.ts +0 -124
- package/src/component/usage/ledger.test.ts +0 -303
- package/src/component/usageCorrections/corrections.test.ts +0 -389
- package/src/component/usageCredits/accounting.fixtures.ts +0 -96
- package/src/component/usageCredits/accounting.test.ts +0 -483
- package/src/component/usageCredits/freshness.test.ts +0 -33
- package/src/component/usageCredits/quotas.test.ts +0 -63
- package/src/component/usageDelivery/concurrency.test.ts +0 -62
- package/src/component/usageDelivery/workflow.test.ts +0 -402
- package/src/component/usageObservations/history.test.ts +0 -87
- package/src/component/usageObservations/queries.test.ts +0 -162
- package/src/component/usageSubscriptions/acceptance.test.ts +0 -122
- package/src/component/usageSubscriptions/history.test.ts +0 -126
- package/src/component/usageSubscriptions/mutations.test.ts +0 -205
- package/src/component/webhooks/events.test.ts +0 -121
- package/src/component/webhooks/triggers.test.ts +0 -360
- package/src/react/components/AccountOnboardingCard.test.ts +0 -27
- package/src/react/components/BuyerBillingView.render.test.tsx +0 -212
- package/src/react/components/ConnectProvider.live.test.tsx +0 -61
- package/src/react/components/DisputeDetail.render.test.tsx +0 -147
- package/src/react/components/DisputesList.render.test.tsx +0 -265
- package/src/react/components/EarningsSummary.render.test.tsx +0 -149
- package/src/react/components/EmbeddedCheckout.render.test.tsx +0 -57
- package/src/react/components/EmbeddedCheckout.test.ts +0 -25
- package/src/react/components/EmbeddedDisputes.render.test.tsx +0 -144
- package/src/react/components/EvidenceForm.render.test.tsx +0 -208
- package/src/react/components/PayoutSchedule.render.test.tsx +0 -193
- package/src/react/components/PriceBadge.render.test.tsx +0 -134
- package/src/react/components/PriceCard.render.test.tsx +0 -172
- package/src/react/components/SplitBreakdown.render.test.tsx +0 -191
- package/src/react/components/StripeProvider.test.ts +0 -45
- package/src/react/components/TrialAlert.render.test.tsx +0 -132
- package/src/react/hooks/skipSentinel.test.ts +0 -85
- package/src/react/hooks/useAccountOnboarding.test.ts +0 -75
- package/src/react/hooks/useCheckoutSession.promotions.test.tsx +0 -303
- package/src/react/hooks/useConfirmPayment.test.tsx +0 -47
- package/src/react/hooks/useCurrencyEarnings.test.ts +0 -59
- package/src/react/hooks/useDisputeWithCountdown.test.ts +0 -90
- package/src/react/hooks/useDisputes.test.ts +0 -75
- package/src/react/hooks/useEarnings.test.ts +0 -194
- package/src/react/hooks/useInvoices.test.ts +0 -79
- package/src/react/hooks/useProducts.test.ts +0 -75
- package/src/react/hooks/useSplitBreakdown.test.ts +0 -151
- package/src/react/hooks/useStripeMode.test.ts +0 -46
- package/src/react/hooks/useStripePublishableKey.test.ts +0 -35
- package/src/react/index.payment-element.test.ts +0 -26
- package/src/react/index.test.ts +0 -172
- package/src/react/lib/connect-requirement-keys.test.ts +0 -73
- package/src/react/lib/price-helpers.test.ts +0 -212
- package/src/react/lib/stripe-element-styles.test.ts +0 -94
- package/src/react/lib/subscription-helpers.test.ts +0 -127
- package/src/react/read-contracts.render.test.tsx +0 -20
- package/src/react/workflows/Account.test.tsx +0 -31
- package/src/react/workflows/AffiliatePayoutEditor.test.tsx +0 -90
- package/src/react/workflows/AffiliateRateEditor.test.tsx +0 -36
- package/src/react/workflows/AffiliateRecovery.test.tsx +0 -106
- package/src/react/workflows/Billing.test.tsx +0 -45
- package/src/react/workflows/BillingPlans.test.tsx +0 -31
- package/src/react/workflows/BillingPortal.test.tsx +0 -101
- package/src/react/workflows/Checkout.test.tsx +0 -148
- package/src/react/workflows/CheckoutChooser.test.tsx +0 -44
- package/src/react/workflows/CheckoutForm.test.tsx +0 -66
- package/src/react/workflows/CheckoutForms.test.tsx +0 -163
- package/src/react/workflows/ClipboardButton.test.tsx +0 -34
- package/src/react/workflows/Collections.test.tsx +0 -122
- package/src/react/workflows/Connect.test.tsx +0 -50
- package/src/react/workflows/Costs.test.tsx +0 -62
- package/src/react/workflows/Disputes.test.tsx +0 -64
- package/src/react/workflows/Earnings.test.ts +0 -19
- package/src/react/workflows/EvidenceUpload.test.tsx +0 -56
- package/src/react/workflows/Financials.test.tsx +0 -35
- package/src/react/workflows/IntegrationSwitch.test.tsx +0 -61
- package/src/react/workflows/Onboarding.test.tsx +0 -148
- package/src/react/workflows/Overview.test.tsx +0 -57
- package/src/react/workflows/Pagination.test.tsx +0 -53
- package/src/react/workflows/PaymentMethods.test.tsx +0 -60
- package/src/react/workflows/PaymentReceipt.test.tsx +0 -24
- package/src/react/workflows/PayoutProgress.test.tsx +0 -356
- package/src/react/workflows/PayoutSettings.test.tsx +0 -139
- package/src/react/workflows/Payouts.test.tsx +0 -145
- package/src/react/workflows/PlanPricingEditor.currency.test.tsx +0 -164
- package/src/react/workflows/PlanPricingEditor.test.tsx +0 -79
- package/src/react/workflows/PlanPricingEditor.zero.test.tsx +0 -100
- package/src/react/workflows/Products.test.tsx +0 -282
- package/src/react/workflows/ReferralLinks.test.tsx +0 -39
- package/src/react/workflows/Refunds.currency.test.tsx +0 -290
- package/src/react/workflows/Refunds.test.tsx +0 -75
- package/src/react/workflows/SaveCard.test.tsx +0 -127
- package/src/react/workflows/Setup.test.tsx +0 -25
- package/src/react/workflows/Storefront.test.tsx +0 -82
- package/src/react/workflows/SubscriptionOverview.test.tsx +0 -27
- package/src/react/workflows/Subscriptions.test.tsx +0 -61
- package/src/react/workflows/Tasks.test.tsx +0 -23
- package/src/react/workflows/Usage.fixtures.ts +0 -88
- package/src/react/workflows/Usage.test.tsx +0 -388
- package/src/react/workflows/UsageConfiguration.test.tsx +0 -393
- package/src/react/workflows/UsageHistory.test.tsx +0 -206
- package/src/react/workflows/UsagePriceRow.test.tsx +0 -140
- package/src/react/workflows/current-subscription.test.ts +0 -29
- package/src/react/workflows/filters.test.ts +0 -12
- package/src/react/workflows/native-interactions.test.tsx +0 -73
- package/src/react/workflows/public-workflows.test.tsx +0 -216
- package/src/react/workflows/refund-preview.test.ts +0 -65
- package/src/react/workflows/usage-configuration-validation.test.ts +0 -107
- package/src/react/workflows/useWorkflowAction.commit.test.tsx +0 -194
- package/src/react/workflows/useWorkflowAction.ssr.test.tsx +0 -20
- package/src/react/workflows/useWorkflowAction.test.tsx +0 -54
- package/src/react/workflows/useWorkflowResource.test.tsx +0 -41
- package/src/test.ts +0 -21
- package/src/testing/assert-test-env.test.ts +0 -33
- package/src/testing/component-db.ts +0 -24
- package/src/testing/crossDomain/fixture.ts +0 -96
- package/src/testing/crossDomain/host.ts +0 -288
- package/src/testing/crossDomain/transport.ts +0 -293
- package/src/testing/mock-webhooks.test.ts +0 -97
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
# Pull request standard
|
|
2
|
+
|
|
3
|
+
Every pull request, including bot and dependency PRs, must use this title structure:
|
|
4
|
+
|
|
5
|
+
```text
|
|
6
|
+
type(scope): TICKET-123 short description
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
Use a lowercase Conventional Commit type: `feat`, `fix`, `docs`, `style`,
|
|
10
|
+
`refactor`, `perf`, `test`, `build`, `ci`, `chore`, or `revert`. The scope is optional.
|
|
11
|
+
For a breaking change, put `!` before the colon. Put the uppercase Linear ticket ID
|
|
12
|
+
immediately after the colon and space, followed by a description. Examples:
|
|
13
|
+
|
|
14
|
+
```text
|
|
15
|
+
fix(auth): JIF-65 correct session expiry
|
|
16
|
+
chore: JIF-65 update dependencies
|
|
17
|
+
feat(api)!: JIF-65 require authenticated requests
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
Use the PR template and fill in these level-two headings exactly once, in order:
|
|
21
|
+
|
|
22
|
+
| Section | Required content |
|
|
23
|
+
| -------- | ---------------------------------------------------------------------- |
|
|
24
|
+
| Summary | Resulting behavior and a link to the ticket named in the title. |
|
|
25
|
+
| What | Concrete changes and scope. |
|
|
26
|
+
| Why | The problem, its impact, and the reason for this approach. |
|
|
27
|
+
| Evidence | Actual verification, results, what they prove, and limitations. |
|
|
28
|
+
| Agent | Agent name, actual session/thread ID, and session link when available. |
|
|
29
|
+
|
|
30
|
+
Keep the acceptance checklist after Agent. HTML comments, empty sections, and
|
|
31
|
+
placeholders such as `TBD`, `N/A`, and `Pending` do not satisfy the standard.
|
|
32
|
+
|
|
33
|
+
## Linear linkage
|
|
34
|
+
|
|
35
|
+
In Summary, include exactly one standalone linkage declaration for the ticket in
|
|
36
|
+
the title. Choose the declaration that matches the actual scope:
|
|
37
|
+
|
|
38
|
+
| Declaration | Use |
|
|
39
|
+
| -------------------- | ------------------------------------------------------------------------------------------------------------------------ |
|
|
40
|
+
| `Fixes JIF-123` | This PR completes the issue. Linear may apply its configured merged status. |
|
|
41
|
+
| `Refs JIF-123` | This PR is partial work. Other configured workflow automation can still run, but merge does not apply the merged status. |
|
|
42
|
+
| `Relates to JIF-123` | An informational relation with no status automation. |
|
|
43
|
+
|
|
44
|
+
The ID may be replaced by the raw full Linear issue URL, for example
|
|
45
|
+
`Refs <raw issue URL>`. The validator also
|
|
46
|
+
accepts Linear's other documented closing, non-closing, and relation keywords,
|
|
47
|
+
such as `Closes`, `Implements`, `References`, and `Related to`. Put the declaration
|
|
48
|
+
on its own visible line, outside comments or code examples. Keep extra informational
|
|
49
|
+
ticket links separate and use a closing word only for work actually completed.
|
|
50
|
+
Reviewers assess whether the selected intent matches the PR's scope.
|
|
51
|
+
|
|
52
|
+
An ordinary Markdown ticket link is useful context but does not declare this
|
|
53
|
+
intent. Magic words in PR comments do not create Linear associations. These rules
|
|
54
|
+
follow Linear's GitHub integration documentation.
|
|
55
|
+
|
|
56
|
+
Linear also supports IDs in branch names and PR titles. The explicit body statement
|
|
57
|
+
records intent; its absence is not proof that a missing native association was
|
|
58
|
+
caused by formatting. Native PR linking requires the correct Linear workspace's
|
|
59
|
+
GitHub integration with access to the organization/repository and working event
|
|
60
|
+
synchronization. Check those independently when a correctly identified PR does not
|
|
61
|
+
appear in Linear. GitHub autolink references, Markdown links, GitHub issue-sync
|
|
62
|
+
mappings, and Codex PR attachments are separate from Linear's native PR association.
|
|
63
|
+
|
|
64
|
+
Evidence must include a reviewer-accessible HTTPS link or fenced test, log, or API
|
|
65
|
+
output. Explain which checks passed and what the result demonstrates. A bare
|
|
66
|
+
"tests passed" statement, local filesystem path, or promise of future testing does
|
|
67
|
+
not count. Keep evidence current after material changes and remove private data.
|
|
68
|
+
The automated check validates structure and the presence of proof, not the truth
|
|
69
|
+
of a result, ticket existence, link permissions, or whether coverage is sufficient.
|
|
70
|
+
Reviewers assess those details.
|
|
71
|
+
|
|
72
|
+
In Evidence, explicitly declare `UI changes: Yes` or `UI changes: No`.
|
|
73
|
+
UI changes require screenshots and/or video of the affected flow, uploaded
|
|
74
|
+
through GitHub attachments. At least one is required; both are welcome when useful.
|
|
75
|
+
Embed screenshots inline and label the proof fields you include:
|
|
76
|
+
|
|
77
|
+
```markdown
|
|
78
|
+
UI changes: Yes
|
|
79
|
+
|
|
80
|
+
- Screenshot: 
|
|
81
|
+
- Video: https://github.com/user-attachments/assets/RECORDING_ID
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
The validator inspects changed frontend files, styles, markup, and image assets,
|
|
85
|
+
excluding tests and fixtures. Detected UI files require visual proof even
|
|
86
|
+
if the declaration says No. Declare Yes for UI changes in other file types too,
|
|
87
|
+
such as server-rendered templates in backend code. Use GitHub upload URLs.
|
|
88
|
+
Reviewers verify the media actually demonstrate
|
|
89
|
+
the affected flow; the validator checks references, not image or video contents.
|
|
90
|
+
Backend,
|
|
91
|
+
package, and CI changes can use test results, logs, or API output. Do not commit
|
|
92
|
+
evidence files to the repository or use them as developer documentation.
|
|
93
|
+
|
|
94
|
+
In Agent, use these fields:
|
|
95
|
+
|
|
96
|
+
```markdown
|
|
97
|
+
## Agent
|
|
98
|
+
|
|
99
|
+
- Agent: Codex
|
|
100
|
+
- Session/thread ID: actual-thread-id
|
|
101
|
+
- Session link: codex://threads/actual-thread-id
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
Agent and Session/thread ID are required, and placeholders fail validation.
|
|
105
|
+
Use the actual creating agent/session, not the session of an unrelated reviewer.
|
|
106
|
+
For automation, use the bot name, run ID, and workflow/run URL. For human-only
|
|
107
|
+
PRs, identify the author and use `human-authored` as the session/thread ID.
|
|
108
|
+
Include a session link when available; model/version, GitHub submitter, and a
|
|
109
|
+
parent/delegating thread ID are useful optional fields. Record only known values.
|
|
110
|
+
|
|
111
|
+
The `PR standard` workflow reads current PR metadata on opening, editing,
|
|
112
|
+
reopening, pushes, and readiness for review. Invalid PRs receive a failing
|
|
113
|
+
`PR standard` commit status and one bot comment listing corrections. Later runs
|
|
114
|
+
update that comment; correcting the metadata changes it to a passing message.
|
|
115
|
+
PRs remain open so authors can fix them. A main-branch ruleset requires this status
|
|
116
|
+
before merging, including for administrators. It does not replace code review or CI.
|
|
117
|
+
|
|
118
|
+
The workflow grants explicit contents-read, PR-write, issue-write, and status-write
|
|
119
|
+
permissions to fetch metadata/files, update feedback, and publish statuses.
|
|
120
|
+
It runs trusted base-branch scripts only, with no PR code execution or
|
|
121
|
+
dependency installation. It publishes the status on the PR head SHA explicitly,
|
|
122
|
+
so metadata edits can clear a failure without another commit. Operators can use
|
|
123
|
+
the workflow's manual PR-number input to revalidate existing PRs or retry an API
|
|
124
|
+
failure. Run `pnpm run test:pr-standard` to test the validator and bot behavior.
|
|
125
|
+
|
|
126
|
+
## CI compute
|
|
127
|
+
|
|
128
|
+
The metadata job uses `ubicloud-standard-2-ubuntu-2404`, the repository's default
|
|
129
|
+
Linux UbiCloud runner. Existing test and deployment jobs keep their configured
|
|
130
|
+
UbiCloud sizes. GitHub Actions schedules these workflows; repository Actions and
|
|
131
|
+
the UbiCloud integration's repository access must both remain enabled. A queued
|
|
132
|
+
job without a runner calls for checking integration access, not changing providers.
|
|
133
|
+
|
|
134
|
+
`pull_request_target` loads the workflow and trusted checkout from the PR's base
|
|
135
|
+
branch. A runner-label migration therefore takes effect for automatic metadata
|
|
136
|
+
checks after it reaches that base. Before merge, a maintainer can dispatch the
|
|
137
|
+
metadata workflow from the reviewed migration branch against an existing PR to
|
|
138
|
+
verify the new runner. After merge, dispatch from main to confirm the normal path.
|
|
139
|
+
Verify the actual job's labels, runner name/ID and terminal result through the
|
|
140
|
+
Actions jobs API before describing it as a successful UbiCloud run. Metadata
|
|
141
|
+
validation keeps its existing permissions, five-minute bound and trusted-code
|
|
142
|
+
checkout; it never runs a PR's untrusted head with write permissions.
|
|
@@ -38,8 +38,7 @@ uses render props or companion hooks to apply shadcn styling.
|
|
|
38
38
|
| Admin webhooks | `WebhookEvents`, `useWebhookFilters` |
|
|
39
39
|
| Admin setup | `useWebhookSetup`, `WebhookSetup`, `EnvironmentStatus`, `FixtureProgress`, `useTaskRunner`, `StripeSetup`, `ClipboardButton`, shared actions/resources |
|
|
40
40
|
| Admin sandbox testing | `useTaskRunner`, `SandboxTesting`, `WorkflowTasks` |
|
|
41
|
-
| Legacy
|
|
42
|
-
| Legacy destination-charge module | `Checkout`, `ChargeSummary`; the legacy public route currently resolves to the split demo |
|
|
41
|
+
| Legacy split and destination-charge demos | Page modules removed; `/marketplace/split` and `/demo/destination-charge` redirect to the storefront |
|
|
43
42
|
| Integration presentation switch | `IntegrationSwitch`; only the active view mounts |
|
|
44
43
|
| Connect alternatives | `Connect` with account management, onboarding, payments/refunds, disputes, balances, payouts and notifications |
|
|
45
44
|
| Styled shared tables | `Collection` and domain collections; `WorkflowTable` only maps their state/columns to shadcn |
|
package/docs/read-contracts.md
CHANGED
|
@@ -247,11 +247,12 @@ checkout workflow and Vite example can use these callbacks with application styl
|
|
|
247
247
|
|
|
248
248
|
## Publication and consumer acceptance
|
|
249
249
|
|
|
250
|
-
A source merge does not activate an API in a published package.
|
|
251
|
-
|
|
252
|
-
explicit consumer adoption, authorized adapters, translated UI, and
|
|
253
|
-
acceptance evidence. These package changes do not complete
|
|
254
|
-
a second
|
|
250
|
+
A source merge does not activate an API in a published package. Consumer work
|
|
251
|
+
that depends on these read contracts requires a verified published version and
|
|
252
|
+
explicit consumer adoption, authorized adapters, translated UI, and its own
|
|
253
|
+
acceptance evidence. These package changes do not complete that consumer work or
|
|
254
|
+
add a second consumer financial ledger, payout table, catalog store, or webhook
|
|
255
|
+
processor.
|
|
255
256
|
Use the repository release workflow; do not publish npm manually.
|
|
256
257
|
|
|
257
258
|
## Provider invoice pages
|
package/docs/releasing.md
CHANGED
|
@@ -51,6 +51,15 @@ extensions for reachable relative imports; do not hide failures behind a custom
|
|
|
51
51
|
resolver. A corrected local build is candidate evidence; verify the normal
|
|
52
52
|
published artifact before application adoption.
|
|
53
53
|
|
|
54
|
+
The same check fails the build when `dist` contains test or fixture outputs
|
|
55
|
+
(`scripts/check-dist-artifacts.mjs`). `tsconfig.build.json` excludes test-only
|
|
56
|
+
sources by pattern (`*.test.*`, `*.fixture(s).ts`, `*TestHelpers.ts` and
|
|
57
|
+
`test-fixtures/` directories), and `src/.npmignore` lists the
|
|
58
|
+
same patterns so the published `src` tree holds only the sources that the shipped
|
|
59
|
+
source and declaration maps point at. Name new test-only files to match one of
|
|
60
|
+
those patterns. `tsc` never deletes outputs, so a `dist` left by an earlier build
|
|
61
|
+
can fail this check; run `pnpm run build:clean`.
|
|
62
|
+
|
|
54
63
|
## Release workflow
|
|
55
64
|
|
|
56
65
|
Releases are automated with [Release Please](https://github.com/googleapis/release-please-action) and published to npmjs.com as `@fantastic.dev/better-stripe`. **Don't bump the version or edit `CHANGELOG.md` by hand.**
|
|
@@ -63,9 +72,28 @@ Releases are automated with [Release Please](https://github.com/googleapis/relea
|
|
|
63
72
|
|
|
64
73
|
Write the title for consumers of the package: it becomes the changelog entry. A title that isn't a Conventional Commit is left out.
|
|
65
74
|
|
|
66
|
-
2. **On merge to `main`**, the `Release` workflow opens or updates a release PR that bumps `package.json`, `CHANGELOG.md`, the README version line and `.release-please-manifest.json`. It
|
|
75
|
+
2. **On merge to `main`**, the `Release` workflow opens or updates a release PR that bumps `package.json`, `CHANGELOG.md`, the README version line and `.release-please-manifest.json`. It removes internal tracker IDs and links from the generated changelog (the prefixes in `scripts/internal-references.mjs`), formats it with the repository's pinned Prettier and commits any formatting changes through the release GitHub App, so CI validates the formatted branch. An already formatted changelog creates no extra commit. After formatting, the workflow enables squash auto-merge for the generated release PR using the release GitHub App.
|
|
76
|
+
|
|
77
|
+
Release PRs meet the [PR standard](pull-request-standard.md) like any other PR; the validator has no bot exemption. Release PR titles carry the configured release ticket (`pull-request-title-pattern` in `release-please-config.json`), which this repository's title rule requires. Release Please parses that title again after merge, so keep the pattern and the title in step. Before formatting, `scripts/release-pr-standard.mjs` appends the required sections after the generated body, leaving the generated description, its standalone `---` delimiters and the footer unchanged. The Summary declares the ticket with `Relates to`, and the workflow run serves as evidence and agent identity. The script then amends the release commit so its body ends with `No-ticket: automated release` (skipped when already present), keeping the author and subject, and force-pushes it with a lease using the App token so CI runs on the new head. The formatting commit carries the same footer.
|
|
78
|
+
|
|
67
79
|
3. **Auto-merge waits for green checks**. The active `main` ruleset requires `ci`, `Shadscan UI quality gate (100)` and `codegen`, with no bypass actors. Failed or pending required checks prevent merging. Once GitHub merges the generated release PR, the resulting `Release` workflow run tags the version, creates the GitHub release and publishes to npm through [trusted publishing](https://docs.npmjs.com/trusted-publishers) with provenance. There's no npm token.
|
|
68
80
|
|
|
69
|
-
Release policy lives in `release-please-config.json`. Keep the workflow file named `release.yml`, because the trusted publisher on npmjs.com is bound to that filename. A manually pushed `vX.Y.Z` tag also publishes, but only if it matches `package.json` and `CHANGELOG.md` has a section for it (`scripts/release-notes.mjs`).
|
|
81
|
+
Release policy lives in `release-please-config.json`. Keep the workflow file named `release.yml`, because the trusted publisher on npmjs.com is bound to that filename. A manually pushed `vX.Y.Z` tag also publishes, but only if it matches `package.json` and `CHANGELOG.md` has a section for it (`scripts/release-notes.mjs`). Verification runs on UbiCloud in four single-worker test shards, with build, typecheck,
|
|
82
|
+
lint and codegen checks retained. Publish waits for every shard to succeed and
|
|
83
|
+
rebuilds the same tag on GitHub-hosted `ubuntu-24.04`. npm rejects provenance from
|
|
84
|
+
self-hosted runners, including UbiCloud; keep OIDC and provenance enabled and the
|
|
85
|
+
workflow filename unchanged. Neither the test worker count nor the 20-minute
|
|
86
|
+
job timeout needs to increase.
|
|
87
|
+
|
|
88
|
+
If publishing fails after the GitHub release is created, check the exact npm version
|
|
89
|
+
first: a published version can't be overwritten. Use **Re-run failed jobs** for a
|
|
90
|
+
transient failure. If the workflow itself needed fixing, rerunning the old run
|
|
91
|
+
still uses its old workflow. Instead dispatch `Release` from the corrected `main`
|
|
92
|
+
with `release_tag` set to the existing tag, for example `v0.119.0`. This skips
|
|
93
|
+
Release Please, verifies the existing tag through every release check, then
|
|
94
|
+
publishes it without moving the tag or creating another GitHub release. Leave
|
|
95
|
+
`release_tag` empty for ordinary Release Please maintenance. After publication,
|
|
96
|
+
verify the exact version, tarball, provenance and intended dist-tag on npm;
|
|
97
|
+
a GitHub release or a green run with Publish skipped is insufficient.
|
|
70
98
|
|
|
71
99
|
The private `example` workspace isn't published.
|
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
# Attach a renewal schedule
|
|
2
|
+
|
|
3
|
+
Use `BetterStripe` from `@fantastic.dev/better-stripe/node` inside a Convex
|
|
4
|
+
`"use node"` action. The ordinary package entrypoint keeps Node-only internals
|
|
5
|
+
out of browser and default Convex bundles; attachment refuses there unless the
|
|
6
|
+
Node entrypoint has been imported in that same runtime.
|
|
7
|
+
|
|
8
|
+
Attachment creates a schedule from the current subscription. It does **not**
|
|
9
|
+
configure a replacement price, prove a future effective change, or change host
|
|
10
|
+
membership and entitlements. Use [public configuration](./renewal-configuration.md) to configure the exact
|
|
11
|
+
acknowledged attachment in the same action and original window. Provider-confirmed
|
|
12
|
+
observation is a separate capability.
|
|
13
|
+
|
|
14
|
+
## Supported profile
|
|
15
|
+
|
|
16
|
+
The initial profile supports platform-owned **test-mode** subscriptions using
|
|
17
|
+
Stripe API version `2026-09-30.endive`. A test or restricted-test secret key is
|
|
18
|
+
required. Live keys are refused before any provider request.
|
|
19
|
+
|
|
20
|
+
The subscription must be active, have exactly one licensed recurring item,
|
|
21
|
+
use classic billing with an ordinary anchor, and keep the same cadence. The
|
|
22
|
+
replacement price can belong to another product. Both discount lists must be
|
|
23
|
+
explicitly empty and the billing customer's discount must be explicitly null.
|
|
24
|
+
Flexible billing, calendar-edge anchors, changed cadence, discounts and other
|
|
25
|
+
states refused by the existing preparation/preservation validators are unsupported.
|
|
26
|
+
No unsupported setting is silently removed.
|
|
27
|
+
|
|
28
|
+
Endive's explicit `managed_payments: { enabled: false }` is supported alongside
|
|
29
|
+
null. Its exact default `trial_settings.end_behavior` with
|
|
30
|
+
`billing_cycle_anchor: "now"` and `missing_payment_method: "create_invoice"`
|
|
31
|
+
is supported only when both `trial_start` and `trial_end` are null. These inactive
|
|
32
|
+
defaults remain in the retained source and must match the fresh read; enabled
|
|
33
|
+
managed payments, trial history with nonnull settings, different trial settings
|
|
34
|
+
and additional fields are refused. Configuration uses its own explicit qualified profile; see its detailed limits.
|
|
35
|
+
|
|
36
|
+
The method reads the original subscription, target price and billing customer
|
|
37
|
+
again before dispatch. Changed paid terms, foreign identities and an existing
|
|
38
|
+
schedule are refused. Full captured provider material is compared; these reads
|
|
39
|
+
are a best-effort fence, not an atomic Stripe compare-and-swap. Another writer
|
|
40
|
+
can race the final read and POST. Coordinate subscription writers in the host.
|
|
41
|
+
|
|
42
|
+
## Prepare and retain the request
|
|
43
|
+
|
|
44
|
+
Authenticate the actor and obtain consent in your host application. Read the
|
|
45
|
+
exact selectors with `readRenewalPriceReplacementContext`; authorize those
|
|
46
|
+
selectors before doing so. Keep the logical identity, attach key and original
|
|
47
|
+
first-dispatch timestamp in durable host state. They must survive duplicate
|
|
48
|
+
requests without being regenerated.
|
|
49
|
+
|
|
50
|
+
```ts
|
|
51
|
+
import {
|
|
52
|
+
BetterStripe,
|
|
53
|
+
prepareRenewalAttachmentOperation,
|
|
54
|
+
} from "@fantastic.dev/better-stripe/node";
|
|
55
|
+
|
|
56
|
+
const context = await betterStripe.readRenewalPriceReplacementContext(ctx, {
|
|
57
|
+
expected, // Exact authorized subscription, item, products, prices and period.
|
|
58
|
+
});
|
|
59
|
+
const prepared = await prepareRenewalAttachmentOperation({
|
|
60
|
+
preparation: {
|
|
61
|
+
subscription: context.subscription,
|
|
62
|
+
targetPrice: context.targetPrice,
|
|
63
|
+
billingCustomer: context.billingCustomer,
|
|
64
|
+
expected,
|
|
65
|
+
key: logicalOperationId,
|
|
66
|
+
},
|
|
67
|
+
authorization: { scope: hostScope, id: consentId, revision: consentRevision },
|
|
68
|
+
logicalOperationId,
|
|
69
|
+
attachKey, // Explicit caller-retained idempotency key.
|
|
70
|
+
firstDispatchedAt, // Original Unix timestamp in seconds.
|
|
71
|
+
});
|
|
72
|
+
const operation = await ctx.runMutation(
|
|
73
|
+
components.betterStripe.renewalOperations.mutations.createAuthorizedOperation,
|
|
74
|
+
prepared.createArgs,
|
|
75
|
+
);
|
|
76
|
+
if (operation.status === "conflict") {
|
|
77
|
+
// Resolve the identity conflict. Do not mint a replacement key automatically.
|
|
78
|
+
return operation;
|
|
79
|
+
}
|
|
80
|
+
const result = await betterStripe.attachRenewalSchedule(ctx, {
|
|
81
|
+
operationId: operation.operationId,
|
|
82
|
+
requestBinding: prepared.requestBinding,
|
|
83
|
+
authorizationQuery: internal.renewalAuthorization.authorizeAttachment,
|
|
84
|
+
});
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
`prepareRenewalAttachmentOperation` performs no provider I/O. Store its exact
|
|
88
|
+
`createArgs` and `requestBinding` before invoking the method. Reconstructing it
|
|
89
|
+
with a fresh timestamp would be a different operation, not recovery. The
|
|
90
|
+
component rejects changed creation material under the original logical identity.
|
|
91
|
+
|
|
92
|
+
The helper fixes the work deadline at 30 seconds after the original
|
|
93
|
+
`firstDispatchedAt`, with a 35-second outer bound. The runtime uses the original
|
|
94
|
+
wall and monotonic clock basis, refuses elapsed/regressed clocks and never
|
|
95
|
+
refreshes the window. Prepare immediately before the initial attempt, after
|
|
96
|
+
consent and context acquisition. Expired or interrupted operations need explicit
|
|
97
|
+
host investigation; this API does not restart them.
|
|
98
|
+
|
|
99
|
+
## Host authorization
|
|
100
|
+
|
|
101
|
+
The host query returns exactly `true` to authorize attachment, and receives:
|
|
102
|
+
|
|
103
|
+
- `capability: "renewal_attachment_v1"` and the component `operationId`.
|
|
104
|
+
- `authorizationScope`, `authorizationId` and `authorizationRevision`.
|
|
105
|
+
- `logicalOperationId`, `requestBinding` and the complete `expected` selectors.
|
|
106
|
+
|
|
107
|
+
Check the authenticated identity, current consent and revision, exact original
|
|
108
|
+
subscription/item/period and chosen target. Reject foreign or revoked grants.
|
|
109
|
+
The query runs before the attempt is reserved and before provider reads. It is
|
|
110
|
+
not an atomic lock against concurrent host revocation. Keep the query reference
|
|
111
|
+
in trusted server code; never accept it as a client-controlled authorization policy.
|
|
112
|
+
The component's stored authorization descriptor alone does not authenticate a
|
|
113
|
+
caller. Apply host authorization to journal creation and every readback too.
|
|
114
|
+
|
|
115
|
+
## Outcomes and readback
|
|
116
|
+
|
|
117
|
+
| Status | Meaning |
|
|
118
|
+
| --------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
119
|
+
| `attached_incomplete` | The actual provider acknowledgement and receipt were retained. The schedule is attached but no replacement phase has been configured. |
|
|
120
|
+
| `not_dispatched` | The invocation refused before its provider write, such as denied authorization, expired timing, unsupported material or stale provider reads. |
|
|
121
|
+
| `conflict` | The request binding changed, the original attempt was already reserved, or the provider returned an idempotency conflict. |
|
|
122
|
+
| `timeout` | The original deadline elapsed. The outcome remains explicitly unknown because provider work can finish later. |
|
|
123
|
+
| `unknown` | A reserved invocation could not establish an acknowledged result. A provider write may have completed. |
|
|
124
|
+
|
|
125
|
+
The first successful reservation wins. Concurrent or duplicate invocations make
|
|
126
|
+
no additional provider write. The SDK never retries, rotates keys, falls back to
|
|
127
|
+
an unkeyed request, configures a schedule, or releases/cancels one as rollback.
|
|
128
|
+
A lost response or timeout remains unknown; an observed matching schedule does
|
|
129
|
+
not count as the missing creation acknowledgement. Provider work may complete
|
|
130
|
+
after a deadline. Do not issue a new operation or key just because this call
|
|
131
|
+
returned unknown.
|
|
132
|
+
|
|
133
|
+
After host authorization, use the existing component journal queries:
|
|
134
|
+
|
|
135
|
+
```ts
|
|
136
|
+
const operation = await ctx.runQuery(
|
|
137
|
+
components.betterStripe.renewalOperations.queries.loadAuthorizedOperation,
|
|
138
|
+
{ operationId },
|
|
139
|
+
);
|
|
140
|
+
const acknowledgement = await ctx.runQuery(
|
|
141
|
+
components.betterStripe.renewalOperations.queries.readProviderAcknowledgement,
|
|
142
|
+
{ operationId },
|
|
143
|
+
);
|
|
144
|
+
// If operation.activeAttempt exists, use its attemptId with readAttempt
|
|
145
|
+
// and readStageEvent to inspect the retained dispatch/response/receipt events.
|
|
146
|
+
```
|
|
147
|
+
|
|
148
|
+
Returned `attemptId` values identify the retained attempt for success, timeout and unknown
|
|
149
|
+
results. Journal DATA remains readable after process exit, but does not recreate
|
|
150
|
+
live invocation authority. Restart recovery and explicit replay are not exposed
|
|
151
|
+
by this API. Retain unknown/conflict evidence and coordinate reconciliation with
|
|
152
|
+
the other writers before taking another action.
|
|
153
|
+
|
|
154
|
+
This API adds no real-Stripe verification claim by itself. Use the PR's current
|
|
155
|
+
sandbox evidence to assess the tested runtime and provider conditions. The
|
|
156
|
+
example app's full renewal UI and production adoption remain separate work.
|
|
157
|
+
|
|
158
|
+
## Sandbox qualification probe
|
|
159
|
+
|
|
160
|
+
With a dedicated test key supplied securely as `BTS_RENEWAL_SANDBOX_KEY`, run:
|
|
161
|
+
|
|
162
|
+
```sh
|
|
163
|
+
pnpm exec vitest run --project scripts scripts/renewal-sandbox.test.mjs --maxWorkers=1 --silent=false
|
|
164
|
+
```
|
|
165
|
+
|
|
166
|
+
The opt-in probe creates two products/prices and one customer-account subscription,
|
|
167
|
+
marks its test invoice paid out of band, invokes the public attachment method,
|
|
168
|
+
and verifies one POST, duplicate refusal and journal acknowledgement readback.
|
|
169
|
+
It uses real Stripe with a Convex-test component journal in Node, not a serving
|
|
170
|
+
Convex backend. It reports that distinction and sanitized fixture IDs explicitly.
|
|
171
|
+
Without the key, the test is skipped and supplies no provider evidence.
|
|
172
|
+
|
|
173
|
+
Cleanup is separate from the operation: it releases only an acknowledged fixture
|
|
174
|
+
schedule, cancels the fixture subscription, archives the fixture catalog and
|
|
175
|
+
closes the test buyer. An unresolved schedule outcome is held for investigation;
|
|
176
|
+
cleanup failure fails the probe. The method itself never performs rollback writes.
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
# Configure an attached renewal schedule
|
|
2
|
+
|
|
3
|
+
Use `BetterStripe` from `@fantastic.dev/better-stripe/node` in a Convex Node
|
|
4
|
+
action. Call `configureRenewalSchedule` after a successful
|
|
5
|
+
`attachRenewalSchedule` on the **same SDK instance and action context**, within
|
|
6
|
+
the original attachment deadline. The method consumes private live attachment
|
|
7
|
+
authority once. Journal data cannot recreate it after a restart or another action.
|
|
8
|
+
|
|
9
|
+
The configured price starts at the provider-verified existing paid period end.
|
|
10
|
+
The current phase keeps its paid price, quantity, dates and supported settings.
|
|
11
|
+
The method makes at most one schedule-update POST and never attaches implicitly.
|
|
12
|
+
The result `configure_acknowledged` means the provider response and receipt were
|
|
13
|
+
retained. It does not claim a pending or effective replacement. Provider
|
|
14
|
+
observation, successor correlation, restart recovery and explicit replay are
|
|
15
|
+
separate capabilities. Dojo owns consent, membership, tier direction, access and
|
|
16
|
+
entitlements.
|
|
17
|
+
|
|
18
|
+
## Prepare and retain the configure identity
|
|
19
|
+
|
|
20
|
+
After authorizing journal reads, load the attachment operation and ACK. Pass the
|
|
21
|
+
original operation record, active attempt descriptors and exact receipt to the
|
|
22
|
+
pure helper. Keep the logical identity, configure key and first dispatch time in
|
|
23
|
+
durable host state before invoking configuration. Never regenerate them after an
|
|
24
|
+
unknown result.
|
|
25
|
+
|
|
26
|
+
```ts
|
|
27
|
+
import { prepareRenewalConfigurationOperation } from "@fantastic.dev/better-stripe/node";
|
|
28
|
+
|
|
29
|
+
const parent = await ctx.runQuery(refs.queries.loadAuthorizedOperation, {
|
|
30
|
+
operationId: attachmentOperationId,
|
|
31
|
+
});
|
|
32
|
+
const ack = await ctx.runQuery(refs.queries.readProviderAcknowledgement, {
|
|
33
|
+
operationId: attachmentOperationId,
|
|
34
|
+
});
|
|
35
|
+
if (!parent?.activeAttempt || !ack) throw new Error("Attachment ACK required");
|
|
36
|
+
const prepared = await prepareRenewalConfigurationOperation({
|
|
37
|
+
attachment: {
|
|
38
|
+
operationId: attachmentOperationId,
|
|
39
|
+
recordJSON: parent.recordJSON,
|
|
40
|
+
attemptId: parent.activeAttempt.attemptId,
|
|
41
|
+
sourcePayloadId: parent.activeAttempt.payloadId,
|
|
42
|
+
receiptJSON: ack.receiptJSON,
|
|
43
|
+
},
|
|
44
|
+
authorization: { scope: hostScope, id: consentId, revision: consentRevision },
|
|
45
|
+
logicalOperationId: configureOperationId,
|
|
46
|
+
configureKey, // Caller-retained, distinct from the attach key.
|
|
47
|
+
firstDispatchedAt, // Original Unix seconds for this configure identity.
|
|
48
|
+
});
|
|
49
|
+
const operation = await ctx.runMutation(
|
|
50
|
+
refs.mutations.createAuthorizedOperation,
|
|
51
|
+
prepared.createArgs,
|
|
52
|
+
);
|
|
53
|
+
if (operation.status === "conflict") return operation;
|
|
54
|
+
return betterStripe.configureRenewalSchedule(ctx, {
|
|
55
|
+
operationId: operation.operationId,
|
|
56
|
+
requestBinding: prepared.requestBinding,
|
|
57
|
+
authorizationQuery: internal.renewalAuthorization.authorizeConfiguration,
|
|
58
|
+
});
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
`refs` is `components.betterStripe.renewalOperations`. Authenticate creation and
|
|
62
|
+
readback in host code. The authorization query must return exactly `true`. It
|
|
63
|
+
receives `capability: "renewal_configuration_v1"`, the configure `operationId`,
|
|
64
|
+
`attachmentOperationId`, authorization scope/id/revision, logical operation ID,
|
|
65
|
+
request binding and all expected original/target/period selectors. Verify the
|
|
66
|
+
current actor and consent for those exact selectors. Keep the query reference in
|
|
67
|
+
trusted server code. Authorization precedes reservation and provider reads.
|
|
68
|
+
|
|
69
|
+
The helper retains a complete canonical payload and binds the configure record to
|
|
70
|
+
the attachment operation, attempt, source payload and receipt. The component
|
|
71
|
+
retains the configure attempt, dispatch/response/receipt events and ACK. Read
|
|
72
|
+
these through the same `loadAuthorizedOperation`, `readAttempt`, `readStageEvent`
|
|
73
|
+
and `readProviderAcknowledgement` queries using the configure operation ID.
|
|
74
|
+
|
|
75
|
+
## Supported profile and limits
|
|
76
|
+
|
|
77
|
+
The source-bound profile is `node-endive-configure-v1`, using
|
|
78
|
+
`2026-09-30.endive`, platform test mode, classic billing, an ordinary anchor and
|
|
79
|
+
the same recurring cadence and currency. Live credentials are refused. A target
|
|
80
|
+
price on another product is supported. Quantity must be a positive safe integer.
|
|
81
|
+
Both discount lists must be explicitly empty and the customer discount null.
|
|
82
|
+
|
|
83
|
+
The qualified path accepts null or exact inactive
|
|
84
|
+
`managed_payments: { enabled: false }`, and the exact inactive trial default
|
|
85
|
+
`trial_settings.end_behavior` with `billing_cycle_anchor: "now"` and
|
|
86
|
+
`missing_payment_method: "create_invoice"` only with null trial start/end. Full
|
|
87
|
+
raw source and defaults remain retained and compared. Legacy projection without
|
|
88
|
+
the explicit execution profile keeps its conservative guards. The qualified
|
|
89
|
+
configure profile also accepts an absent or null schedule
|
|
90
|
+
`default_settings.default_source`; non-null sources remain unsupported. This
|
|
91
|
+
inactive field stays in the retained raw defaults and fresh baseline comparison.
|
|
92
|
+
|
|
93
|
+
Unsupported material is refused before a provider write. This includes flexible
|
|
94
|
+
billing, calendar-edge anchors, changed cadence/currency, metered or multiple
|
|
95
|
+
items, discounts, active trials, scheduled cancellation, paused subscriptions,
|
|
96
|
+
billing thresholds, pending updates/setup/invoice items, enabled managed payments,
|
|
97
|
+
nondefault trial settings, non-null `application_fee_percent` including zero,
|
|
98
|
+
and unknown phase/default fields. Application fees must remain null. Supported
|
|
99
|
+
tax, collection/payment/invoice, routing, on-behalf-of, descriptions and metadata
|
|
100
|
+
must pass the lossless phase mappings and inheritance checks. Ambiguous null,
|
|
101
|
+
unset, inheritance or reference changes are refused rather than omitted.
|
|
102
|
+
|
|
103
|
+
The method rereads the exact subscription, target, customer and acknowledged
|
|
104
|
+
schedule before dispatch and checks their complete captured material. Existing
|
|
105
|
+
unrelated schedules, changed defaults and already-configured schedules fail the
|
|
106
|
+
baseline guard. These checks are best-effort fences, not an atomic provider
|
|
107
|
+
compare-and-swap. Hosts must coordinate concurrent writers.
|
|
108
|
+
|
|
109
|
+
Configuration shares the attachment's original 30-second work deadline and
|
|
110
|
+
35-second outer bound, including the original monotonic clock basis. It never
|
|
111
|
+
refreshes the window. A new SDK instance, action or process has no live authority.
|
|
112
|
+
|
|
113
|
+
`not_dispatched` reports refusal; `conflict` reports changed identity, a consumed
|
|
114
|
+
attempt or provider conflict. `unknown` and `timeout` leave the write outcome
|
|
115
|
+
uncertain. Duplicate calls make no additional POST. There is no automatic retry,
|
|
116
|
+
key rotation, unkeyed fallback, rollback, cancel/release or retained-key replay.
|
|
117
|
+
Preserve failed and unknown window identities for investigation. Do not mint a
|
|
118
|
+
new operation to bypass an unknown result.
|
|
119
|
+
|
|
120
|
+
## Sandbox probe
|
|
121
|
+
|
|
122
|
+
The opt-in probe documented in [renewal attachment](./renewal-attachment.md) now
|
|
123
|
+
also configures the acknowledged fixture, reads back both phase prices, quantity
|
|
124
|
+
and renewal boundary, checks duplicate refusal and retained ACK. It uses real
|
|
125
|
+
Stripe with a Convex-test journal in Node, not a serving deployed backend. A
|
|
126
|
+
skipped run supplies no provider evidence. The PR records the actual run and
|
|
127
|
+
cleanup. Unknown configure outcomes hold the schedule for investigation.
|
|
@@ -64,9 +64,10 @@ new transport pair. An observed Schedule remains unowned evidence; matching its
|
|
|
64
64
|
shape never substitutes for the acknowledged creation response. Complete
|
|
65
65
|
acknowledged results pass bounded JSON admission before the final owner check.
|
|
66
66
|
|
|
67
|
-
The compiled registries remain empty, and
|
|
68
|
-
bindings remain unbound.
|
|
69
|
-
|
|
67
|
+
The legacy compiled registries remain empty, and their original Source and stock
|
|
68
|
+
client bindings remain unbound. Their normal actor invocation refuses before
|
|
69
|
+
Source access. The separate [public Node attachment entry](renewal-attachment.md)
|
|
70
|
+
admits only its own original winning lineage into a fixed test-mode profile. These internal
|
|
70
71
|
Node-only mechanics establish no provider custody or native qualification and
|
|
71
72
|
expose no caller-supplied clock, client or qualification API. The public
|
|
72
73
|
preparation and receipt constructors are unchanged.
|
|
@@ -77,7 +78,8 @@ an operation ID to that SDK instance and its component. This binding supports
|
|
|
77
78
|
unsigned journal DATA: it does not select a Stripe client, create a clock or
|
|
78
79
|
Owner, or qualify provider execution. The separate operational entry continues
|
|
79
80
|
to refuse while execution profiles are unqualified. Normal construction and
|
|
80
|
-
context reads remain available
|
|
81
|
+
context reads remain available. The public Node entrypoint separately binds
|
|
82
|
+
initial attachment for its documented test-mode profile.
|
|
81
83
|
|
|
82
84
|
Only the class-bound journal facade can retain a process-local identity for its
|
|
83
85
|
original fulfilled `acquired` reservation call. Existing or conflicting replies,
|
|
@@ -706,7 +708,9 @@ binding, method/path, complete payload `{ from_subscription: subscriptionId }`,
|
|
|
706
708
|
key and original first-dispatch time. It generates no phase, metadata, arbitrary
|
|
707
709
|
create option, receipt or provider acknowledgement.
|
|
708
710
|
|
|
709
|
-
No attachment writer is exposed by these helpers.
|
|
711
|
+
No attachment writer is exposed by these pure helpers. The separate
|
|
712
|
+
[Node attachment method](renewal-attachment.md) covers only its documented
|
|
713
|
+
test-mode profile. There are currently no
|
|
710
714
|
accepted provider execution profiles. A positive structural preflight remains
|
|
711
715
|
insufficient to authorize a POST; callers cannot unlock one with a qualification
|
|
712
716
|
flag. Direct existing forever discount IDs are representable by the projection
|
package/docs/settlement.md
CHANGED
|
@@ -974,7 +974,8 @@ when the disposable cache has been removed.
|
|
|
974
974
|
|
|
975
975
|
### Development reset safeguards
|
|
976
976
|
|
|
977
|
-
`clearAllTables` is a development/test utility. It
|
|
977
|
+
`clearAllTables` is a development/test utility. It refuses to run unless the
|
|
978
|
+
component's `STRIPE_SECRET_KEY` is a test-mode key. It also rejects active or changing
|
|
978
979
|
payout schedules, unresolved reserved/submitted claims, financially bound
|
|
979
980
|
collections and known pending/in-transit provider payouts. The host must quiesce
|
|
980
981
|
provider writers and verify live provider state before invoking reset. Restore
|