@pithy-sh/payments 0.1.1 → 0.1.3
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/dist/admin/coverage.d.ts +35 -0
- package/dist/admin/coverage.d.ts.map +1 -0
- package/dist/admin/coverage.js +56 -0
- package/dist/admin/read.d.ts +222 -0
- package/dist/admin/read.d.ts.map +1 -0
- package/dist/admin/read.js +159 -0
- package/dist/audit/actions.d.ts +211 -0
- package/dist/audit/actions.d.ts.map +1 -0
- package/dist/audit/actions.js +211 -0
- package/dist/capability.d.ts +72 -0
- package/dist/capability.d.ts.map +1 -0
- package/dist/capability.js +228 -0
- package/dist/client/api.d.ts +435 -0
- package/dist/client/api.d.ts.map +1 -0
- package/dist/client/api.js +415 -0
- package/dist/client/checkout.d.ts +144 -0
- package/dist/client/checkout.d.ts.map +1 -0
- package/dist/client/checkout.js +173 -0
- package/dist/client/fixtures/price-preview-de.js +89 -0
- package/dist/client/fixtures/price-preview-gb.js +89 -0
- package/dist/client/fixtures/price-preview-jp-yen.js +89 -0
- package/dist/client/fixtures/price-preview-us-country-only.js +89 -0
- package/dist/client/fixtures/price-preview-us-new-york.js +89 -0
- package/dist/client/fixtures/pricePreview.d.ts +54 -0
- package/dist/client/fixtures/pricePreview.d.ts.map +1 -0
- package/dist/client/fixtures/pricePreview.js +61 -0
- package/dist/client/hooks.d.ts +235 -0
- package/dist/client/hooks.d.ts.map +1 -0
- package/dist/client/hooks.js +428 -0
- package/dist/client/paddle.d.ts +433 -0
- package/dist/client/paddle.d.ts.map +1 -0
- package/dist/client/paddle.js +391 -0
- package/dist/client/paddleCache.d.ts +123 -0
- package/dist/client/paddleCache.d.ts.map +1 -0
- package/dist/client/paddleCache.js +159 -0
- package/dist/client/paddlePrices.d.ts +94 -0
- package/dist/client/paddlePrices.d.ts.map +1 -0
- package/dist/client/paddlePrices.js +55 -0
- package/dist/client/paddlePricesTag.d.ts +127 -0
- package/dist/client/paddlePricesTag.d.ts.map +1 -0
- package/dist/client/paddlePricesTag.js +207 -0
- package/dist/client/projection.d.ts +128 -0
- package/dist/client/projection.d.ts.map +1 -0
- package/dist/client/projection.js +0 -0
- package/dist/client/test-utils/cacheStore.d.ts +18 -0
- package/dist/client/test-utils/cacheStore.d.ts.map +1 -0
- package/dist/client/test-utils/cacheStore.js +42 -0
- package/dist/client/wholeUnits.d.ts +18 -0
- package/dist/client/wholeUnits.d.ts.map +1 -0
- package/dist/client/wholeUnits.js +120 -0
- package/dist/config/config.d.ts +238 -0
- package/dist/config/config.d.ts.map +1 -0
- package/dist/config/config.js +249 -0
- package/dist/data/discount.d.ts +127 -0
- package/dist/data/discount.d.ts.map +1 -0
- package/dist/data/discount.js +91 -0
- package/dist/data/entitlement.d.ts +43 -0
- package/dist/data/entitlement.d.ts.map +1 -0
- package/dist/data/entitlement.js +43 -0
- package/dist/data/money.d.ts +15 -0
- package/dist/data/money.d.ts.map +1 -0
- package/dist/data/money.js +76 -0
- package/dist/data/pause.d.ts +133 -0
- package/dist/data/pause.d.ts.map +1 -0
- package/dist/data/pause.js +63 -0
- package/dist/data/providerAccount.d.ts +40 -0
- package/dist/data/providerAccount.d.ts.map +1 -0
- package/dist/data/providerAccount.js +34 -0
- package/dist/data/purchase.d.ts +107 -0
- package/dist/data/purchase.d.ts.map +1 -0
- package/dist/data/purchase.js +77 -0
- package/dist/data/rail.d.ts +74 -0
- package/dist/data/rail.d.ts.map +1 -0
- package/dist/data/rail.js +74 -0
- package/dist/data/reconcileRun.d.ts +120 -0
- package/dist/data/reconcileRun.d.ts.map +1 -0
- package/dist/data/reconcileRun.js +120 -0
- package/dist/data/renderMoney.d.ts +85 -0
- package/dist/data/renderMoney.d.ts.map +1 -0
- package/dist/data/renderMoney.js +146 -0
- package/dist/data/status.d.ts +58 -0
- package/dist/data/status.d.ts.map +1 -0
- package/dist/data/status.js +68 -0
- package/dist/data/subject.d.ts +111 -0
- package/dist/data/subject.d.ts.map +1 -0
- package/dist/data/subject.js +125 -0
- package/dist/data/subscription.d.ts +624 -0
- package/dist/data/subscription.d.ts.map +1 -0
- package/dist/data/subscription.js +497 -0
- package/dist/data/syncCursor.d.ts +33 -0
- package/dist/data/syncCursor.d.ts.map +1 -0
- package/dist/data/syncCursor.js +29 -0
- package/dist/data/tables.d.ts +37 -0
- package/dist/data/tables.d.ts.map +1 -0
- package/dist/data/tables.js +44 -0
- package/dist/data/webhookEvent.d.ts +134 -0
- package/dist/data/webhookEvent.d.ts.map +1 -0
- package/dist/data/webhookEvent.js +128 -0
- package/dist/entitlement/manual.d.ts +101 -0
- package/dist/entitlement/manual.d.ts.map +1 -0
- package/dist/entitlement/manual.js +84 -0
- package/dist/entitlement/resolver.d.ts +60 -0
- package/dist/entitlement/resolver.d.ts.map +1 -0
- package/dist/entitlement/resolver.js +101 -0
- package/dist/entitlement/subjectSeam.d.ts +102 -0
- package/dist/entitlement/subjectSeam.d.ts.map +1 -0
- package/dist/entitlement/subjectSeam.js +85 -0
- package/dist/error/errors.d.ts +247 -0
- package/dist/error/errors.d.ts.map +1 -0
- package/dist/error/errors.js +326 -0
- package/dist/grants/apply.d.ts +74 -0
- package/dist/grants/apply.d.ts.map +1 -0
- package/dist/grants/apply.js +148 -0
- package/dist/grants/clawback.d.ts +43 -0
- package/dist/grants/clawback.d.ts.map +1 -0
- package/dist/grants/clawback.js +71 -0
- package/dist/grants/ledgerSeam.d.ts +89 -0
- package/dist/grants/ledgerSeam.d.ts.map +1 -0
- package/dist/grants/ledgerSeam.js +66 -0
- package/dist/http/dispatch.d.ts +35 -0
- package/dist/http/dispatch.d.ts.map +1 -0
- package/dist/http/dispatch.js +40 -0
- package/dist/http/guards.d.ts +43 -0
- package/dist/http/guards.d.ts.map +1 -0
- package/dist/http/guards.js +52 -0
- package/dist/http/manifestConfig.d.ts +38 -0
- package/dist/http/manifestConfig.d.ts.map +1 -0
- package/dist/http/manifestConfig.js +49 -0
- package/dist/http/responses.d.ts +1455 -0
- package/dist/http/responses.d.ts.map +1 -0
- package/dist/http/responses.js +728 -0
- package/dist/http/routes.d.ts +315 -0
- package/dist/http/routes.d.ts.map +1 -0
- package/dist/http/routes.js +1966 -0
- package/dist/http/schemas.d.ts +404 -0
- package/dist/http/schemas.d.ts.map +1 -0
- package/dist/http/schemas.js +359 -0
- package/dist/http/scopes.d.ts +160 -0
- package/dist/http/scopes.d.ts.map +1 -0
- package/dist/http/scopes.js +240 -0
- package/dist/http/view.d.ts +96 -0
- package/dist/http/view.d.ts.map +1 -0
- package/dist/http/view.js +170 -0
- package/dist/http/webhookGuard.d.ts +109 -0
- package/dist/http/webhookGuard.d.ts.map +1 -0
- package/dist/http/webhookGuard.js +206 -0
- package/dist/index.d.ts +64 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +43 -0
- package/dist/migrations/0001_purchases.d.ts +35 -0
- package/dist/migrations/0001_purchases.d.ts.map +1 -0
- package/dist/migrations/0001_purchases.js +80 -0
- package/dist/pricing/location.d.ts +138 -0
- package/dist/pricing/location.d.ts.map +1 -0
- package/dist/pricing/location.js +81 -0
- package/dist/pricing/visitor.d.ts +56 -0
- package/dist/pricing/visitor.d.ts.map +1 -0
- package/dist/pricing/visitor.js +35 -0
- package/dist/projection/event.d.ts +66 -0
- package/dist/projection/event.d.ts.map +1 -0
- package/dist/projection/event.js +45 -0
- package/dist/projection/orphans.d.ts +114 -0
- package/dist/projection/orphans.d.ts.map +1 -0
- package/dist/projection/orphans.js +162 -0
- package/dist/projection/owner.d.ts +121 -0
- package/dist/projection/owner.d.ts.map +1 -0
- package/dist/projection/owner.js +114 -0
- package/dist/projection/resolve.d.ts +30 -0
- package/dist/projection/resolve.d.ts.map +1 -0
- package/dist/projection/resolve.js +42 -0
- package/dist/projection/writer.d.ts +103 -0
- package/dist/projection/writer.d.ts.map +1 -0
- package/dist/projection/writer.js +280 -0
- package/dist/provision/resolvePaymentsConfig.d.ts +48 -0
- package/dist/provision/resolvePaymentsConfig.d.ts.map +1 -0
- package/dist/provision/resolvePaymentsConfig.js +41 -0
- package/dist/rails/apple/certs.d.ts +7 -0
- package/dist/rails/apple/certs.d.ts.map +1 -0
- package/dist/rails/apple/certs.js +8 -0
- package/dist/rails/apple/der.d.ts +107 -0
- package/dist/rails/apple/der.d.ts.map +1 -0
- package/dist/rails/apple/der.js +217 -0
- package/dist/rails/apple/fixtures/chain.d.ts +117 -0
- package/dist/rails/apple/fixtures/chain.d.ts.map +1 -0
- package/dist/rails/apple/fixtures/chain.js +289 -0
- package/dist/rails/apple/http.d.ts +74 -0
- package/dist/rails/apple/http.d.ts.map +1 -0
- package/dist/rails/apple/http.js +32 -0
- package/dist/rails/apple/jws.d.ts +17 -0
- package/dist/rails/apple/jws.d.ts.map +1 -0
- package/dist/rails/apple/jws.js +75 -0
- package/dist/rails/apple/notification.d.ts +116 -0
- package/dist/rails/apple/notification.d.ts.map +1 -0
- package/dist/rails/apple/notification.js +199 -0
- package/dist/rails/apple/rail.d.ts +25 -0
- package/dist/rails/apple/rail.d.ts.map +1 -0
- package/dist/rails/apple/rail.js +68 -0
- package/dist/rails/apple/serverApi.d.ts +120 -0
- package/dist/rails/apple/serverApi.d.ts.map +1 -0
- package/dist/rails/apple/serverApi.js +244 -0
- package/dist/rails/apple/verify.d.ts +36 -0
- package/dist/rails/apple/verify.d.ts.map +1 -0
- package/dist/rails/apple/verify.js +46 -0
- package/dist/rails/apple/x509.d.ts +85 -0
- package/dist/rails/apple/x509.d.ts.map +1 -0
- package/dist/rails/apple/x509.js +273 -0
- package/dist/rails/contract.d.ts +871 -0
- package/dist/rails/contract.d.ts.map +1 -0
- package/dist/rails/contract.js +60 -0
- package/dist/rails/google/fixtures/push.d.ts +71 -0
- package/dist/rails/google/fixtures/push.d.ts.map +1 -0
- package/dist/rails/google/fixtures/push.js +107 -0
- package/dist/rails/google/http.d.ts +77 -0
- package/dist/rails/google/http.d.ts.map +1 -0
- package/dist/rails/google/http.js +39 -0
- package/dist/rails/google/jwt.d.ts +53 -0
- package/dist/rails/google/jwt.d.ts.map +1 -0
- package/dist/rails/google/jwt.js +94 -0
- package/dist/rails/google/oidc.d.ts +112 -0
- package/dist/rails/google/oidc.d.ts.map +1 -0
- package/dist/rails/google/oidc.js +179 -0
- package/dist/rails/google/playApi.d.ts +188 -0
- package/dist/rails/google/playApi.d.ts.map +1 -0
- package/dist/rails/google/playApi.js +350 -0
- package/dist/rails/google/rail.d.ts +57 -0
- package/dist/rails/google/rail.d.ts.map +1 -0
- package/dist/rails/google/rail.js +70 -0
- package/dist/rails/google/rtdn.d.ts +105 -0
- package/dist/rails/google/rtdn.d.ts.map +1 -0
- package/dist/rails/google/rtdn.js +179 -0
- package/dist/rails/google/verify.d.ts +20 -0
- package/dist/rails/google/verify.d.ts.map +1 -0
- package/dist/rails/google/verify.js +76 -0
- package/dist/rails/lemonSqueezy/api.d.ts +92 -0
- package/dist/rails/lemonSqueezy/api.d.ts.map +1 -0
- package/dist/rails/lemonSqueezy/api.js +121 -0
- package/dist/rails/lemonSqueezy/checkout.d.ts +52 -0
- package/dist/rails/lemonSqueezy/checkout.d.ts.map +1 -0
- package/dist/rails/lemonSqueezy/checkout.js +84 -0
- package/dist/rails/lemonSqueezy/discounts.d.ts +50 -0
- package/dist/rails/lemonSqueezy/discounts.d.ts.map +1 -0
- package/dist/rails/lemonSqueezy/discounts.js +75 -0
- package/dist/rails/lemonSqueezy/fixtures/events.d.ts +56 -0
- package/dist/rails/lemonSqueezy/fixtures/events.d.ts.map +1 -0
- package/dist/rails/lemonSqueezy/fixtures/events.js +144 -0
- package/dist/rails/lemonSqueezy/objects.d.ts +229 -0
- package/dist/rails/lemonSqueezy/objects.d.ts.map +1 -0
- package/dist/rails/lemonSqueezy/objects.js +379 -0
- package/dist/rails/lemonSqueezy/portal.d.ts +35 -0
- package/dist/rails/lemonSqueezy/portal.d.ts.map +1 -0
- package/dist/rails/lemonSqueezy/portal.js +18 -0
- package/dist/rails/lemonSqueezy/pricing.d.ts +25 -0
- package/dist/rails/lemonSqueezy/pricing.d.ts.map +1 -0
- package/dist/rails/lemonSqueezy/pricing.js +54 -0
- package/dist/rails/lemonSqueezy/rail.d.ts +41 -0
- package/dist/rails/lemonSqueezy/rail.d.ts.map +1 -0
- package/dist/rails/lemonSqueezy/rail.js +67 -0
- package/dist/rails/lemonSqueezy/read.d.ts +28 -0
- package/dist/rails/lemonSqueezy/read.d.ts.map +1 -0
- package/dist/rails/lemonSqueezy/read.js +37 -0
- package/dist/rails/lemonSqueezy/refresh.d.ts +42 -0
- package/dist/rails/lemonSqueezy/refresh.d.ts.map +1 -0
- package/dist/rails/lemonSqueezy/refresh.js +40 -0
- package/dist/rails/lemonSqueezy/signature.d.ts +56 -0
- package/dist/rails/lemonSqueezy/signature.d.ts.map +1 -0
- package/dist/rails/lemonSqueezy/signature.js +92 -0
- package/dist/rails/lemonSqueezy/verify.d.ts +33 -0
- package/dist/rails/lemonSqueezy/verify.d.ts.map +1 -0
- package/dist/rails/lemonSqueezy/verify.js +41 -0
- package/dist/rails/lemonSqueezy/webhook.d.ts +53 -0
- package/dist/rails/lemonSqueezy/webhook.d.ts.map +1 -0
- package/dist/rails/lemonSqueezy/webhook.js +179 -0
- package/dist/rails/paddle/adjustments.d.ts +60 -0
- package/dist/rails/paddle/adjustments.d.ts.map +1 -0
- package/dist/rails/paddle/adjustments.js +66 -0
- package/dist/rails/paddle/api.d.ts +138 -0
- package/dist/rails/paddle/api.d.ts.map +1 -0
- package/dist/rails/paddle/api.js +152 -0
- package/dist/rails/paddle/checkout.d.ts +69 -0
- package/dist/rails/paddle/checkout.d.ts.map +1 -0
- package/dist/rails/paddle/checkout.js +100 -0
- package/dist/rails/paddle/discounts.d.ts +67 -0
- package/dist/rails/paddle/discounts.d.ts.map +1 -0
- package/dist/rails/paddle/discounts.js +73 -0
- package/dist/rails/paddle/events.d.ts +140 -0
- package/dist/rails/paddle/events.d.ts.map +1 -0
- package/dist/rails/paddle/events.js +183 -0
- package/dist/rails/paddle/fixtures/browserForged.d.ts +42 -0
- package/dist/rails/paddle/fixtures/browserForged.d.ts.map +1 -0
- package/dist/rails/paddle/fixtures/browserForged.js +52 -0
- package/dist/rails/paddle/fixtures/pausedSubscription.d.ts +78 -0
- package/dist/rails/paddle/fixtures/pausedSubscription.d.ts.map +1 -0
- package/dist/rails/paddle/fixtures/pausedSubscription.js +76 -0
- package/dist/rails/paddle/objects.d.ts +519 -0
- package/dist/rails/paddle/objects.d.ts.map +1 -0
- package/dist/rails/paddle/objects.js +588 -0
- package/dist/rails/paddle/portal.d.ts +45 -0
- package/dist/rails/paddle/portal.d.ts.map +1 -0
- package/dist/rails/paddle/portal.js +42 -0
- package/dist/rails/paddle/rail.d.ts +55 -0
- package/dist/rails/paddle/rail.d.ts.map +1 -0
- package/dist/rails/paddle/rail.js +117 -0
- package/dist/rails/paddle/read.d.ts +53 -0
- package/dist/rails/paddle/read.d.ts.map +1 -0
- package/dist/rails/paddle/read.js +66 -0
- package/dist/rails/paddle/recorded.d.ts +49 -0
- package/dist/rails/paddle/recorded.d.ts.map +1 -0
- package/dist/rails/paddle/recorded.js +79 -0
- package/dist/rails/paddle/refresh.d.ts +54 -0
- package/dist/rails/paddle/refresh.d.ts.map +1 -0
- package/dist/rails/paddle/refresh.js +94 -0
- package/dist/rails/paddle/refund.d.ts +82 -0
- package/dist/rails/paddle/refund.d.ts.map +1 -0
- package/dist/rails/paddle/refund.js +175 -0
- package/dist/rails/paddle/signature.d.ts +83 -0
- package/dist/rails/paddle/signature.d.ts.map +1 -0
- package/dist/rails/paddle/signature.js +163 -0
- package/dist/rails/paddle/subscription.d.ts +137 -0
- package/dist/rails/paddle/subscription.d.ts.map +1 -0
- package/dist/rails/paddle/subscription.js +538 -0
- package/dist/rails/paddle/verify.d.ts +46 -0
- package/dist/rails/paddle/verify.d.ts.map +1 -0
- package/dist/rails/paddle/verify.js +43 -0
- package/dist/rails/paddle/webhook.d.ts +98 -0
- package/dist/rails/paddle/webhook.d.ts.map +1 -0
- package/dist/rails/paddle/webhook.js +181 -0
- package/dist/rails/providers.d.ts +73 -0
- package/dist/rails/providers.d.ts.map +1 -0
- package/dist/rails/providers.js +62 -0
- package/dist/rails/stripe/api.d.ts +118 -0
- package/dist/rails/stripe/api.d.ts.map +1 -0
- package/dist/rails/stripe/api.js +153 -0
- package/dist/rails/stripe/checkout.d.ts +60 -0
- package/dist/rails/stripe/checkout.d.ts.map +1 -0
- package/dist/rails/stripe/checkout.js +86 -0
- package/dist/rails/stripe/discounts.d.ts +50 -0
- package/dist/rails/stripe/discounts.d.ts.map +1 -0
- package/dist/rails/stripe/discounts.js +87 -0
- package/dist/rails/stripe/fixtures/events.d.ts +64 -0
- package/dist/rails/stripe/fixtures/events.d.ts.map +1 -0
- package/dist/rails/stripe/fixtures/events.js +67 -0
- package/dist/rails/stripe/objects.d.ts +237 -0
- package/dist/rails/stripe/objects.d.ts.map +1 -0
- package/dist/rails/stripe/objects.js +389 -0
- package/dist/rails/stripe/portal.d.ts +29 -0
- package/dist/rails/stripe/portal.d.ts.map +1 -0
- package/dist/rails/stripe/portal.js +41 -0
- package/dist/rails/stripe/pricing.d.ts +25 -0
- package/dist/rails/stripe/pricing.d.ts.map +1 -0
- package/dist/rails/stripe/pricing.js +68 -0
- package/dist/rails/stripe/rail.d.ts +28 -0
- package/dist/rails/stripe/rail.d.ts.map +1 -0
- package/dist/rails/stripe/rail.js +81 -0
- package/dist/rails/stripe/refresh.d.ts +33 -0
- package/dist/rails/stripe/refresh.d.ts.map +1 -0
- package/dist/rails/stripe/refresh.js +21 -0
- package/dist/rails/stripe/signature.d.ts +71 -0
- package/dist/rails/stripe/signature.d.ts.map +1 -0
- package/dist/rails/stripe/signature.js +92 -0
- package/dist/rails/stripe/verify.d.ts +15 -0
- package/dist/rails/stripe/verify.d.ts.map +1 -0
- package/dist/rails/stripe/verify.js +63 -0
- package/dist/rails/stripe/webhook.d.ts +26 -0
- package/dist/rails/stripe/webhook.d.ts.map +1 -0
- package/dist/rails/stripe/webhook.js +31 -0
- package/dist/secret/registry.d.ts +192 -0
- package/dist/secret/registry.d.ts.map +1 -0
- package/dist/secret/registry.js +154 -0
- package/dist/seeds/example.d.ts +3 -0
- package/dist/seeds/example.d.ts.map +1 -0
- package/dist/seeds/example.js +171 -0
- package/dist/version.generated.d.ts +5 -0
- package/dist/version.generated.d.ts.map +1 -0
- package/dist/version.generated.js +7 -0
- package/dist/workflows/paddleSweep.d.ts +175 -0
- package/dist/workflows/paddleSweep.d.ts.map +1 -0
- package/dist/workflows/paddleSweep.js +433 -0
- package/dist/workflows/railAccess.d.ts +48 -0
- package/dist/workflows/railAccess.d.ts.map +1 -0
- package/dist/workflows/railAccess.js +36 -0
- package/dist/workflows/reconcile.d.ts +161 -0
- package/dist/workflows/reconcile.d.ts.map +1 -0
- package/dist/workflows/reconcile.js +352 -0
- package/dist/workflows/report.d.ts +28 -0
- package/dist/workflows/report.d.ts.map +1 -0
- package/dist/workflows/report.js +54 -0
- package/dist/workflows/retryPolicy.d.ts +29 -0
- package/dist/workflows/retryPolicy.d.ts.map +1 -0
- package/dist/workflows/retryPolicy.js +37 -0
- package/dist/workflows/specs.d.ts +102 -0
- package/dist/workflows/specs.d.ts.map +1 -0
- package/dist/workflows/specs.js +84 -0
- package/dist/workflows/worker.d.ts +62 -0
- package/dist/workflows/worker.d.ts.map +1 -0
- package/dist/workflows/worker.js +92 -0
- package/dist/workflows/workerConfig.d.ts +46 -0
- package/dist/workflows/workerConfig.d.ts.map +1 -0
- package/dist/workflows/workerConfig.js +38 -0
- package/package.json +22 -13
- package/pithy.manifest.json +19 -13
- package/src/version.generated.ts +1 -1
- package/src/client/paddlePrices.iife.ts +0 -43
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pausedSubscription.d.ts","sourceRoot":"","sources":["../../../../src/rails/paddle/fixtures/pausedSubscription.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,oGAAoG;AACpG,eAAO,MAAM,sBAAsB,yBAAyB,CAAC;AAE7D;;;;;GAKG;AACH,eAAO,MAAM,8BAA8B;;;;;;;;;;;;QAMf,SAAS;QAAiC,OAAO;;;;;YAExD,EAAE;;;;;CAEtB,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,0BAA0B;;;;;;;QAMX,SAAS;QAA8B,OAAO;;;;;YAErD,EAAE;;;;;CAEtB,CAAC"}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
//#region src/rails/paddle/fixtures/pausedSubscription.ts
|
|
2
|
+
/**
|
|
3
|
+
* What Paddle actually stores on a paused subscription, recorded from the live sandbox on 2026-08-15.
|
|
4
|
+
*
|
|
5
|
+
* Not invented. `sub_01kzybh940drg5p1dagqv4xj37` was paused through the API twice — once with a resume
|
|
6
|
+
* date, once without — and read back with `GET /subscriptions/{id}` each time. Every value below is from
|
|
7
|
+
* those responses: the pause fields from the paused reads, which were narrowed to exactly these, and the
|
|
8
|
+
* identity fields (`id`, `customer_id`, `created_at`, the item's price) from the same subscription, which
|
|
9
|
+
* was resumed afterwards and is active again. Nothing is here that was not read back.
|
|
10
|
+
*
|
|
11
|
+
* **The recording refutes the obvious fix.** #369 describes the Paddle half as "`scheduled_change.resume_at`
|
|
12
|
+
* is the same story", and a change keyed on that field would have shipped null for every paused Paddle
|
|
13
|
+
* subscription while reading as if it worked: pausing with `resume_at: "2026-10-01T00:00:00Z"` moves the
|
|
14
|
+
* date onto a **`resume` scheduled change's `effective_at`** and leaves `resume_at` **null**. That field
|
|
15
|
+
* carries a date only while a `pause` is scheduled and the subscription is still `active`, which is not a
|
|
16
|
+
* paused subscription at all.
|
|
17
|
+
*
|
|
18
|
+
* The pair also pins the other half of the design: an open-ended pause is `scheduled_change: null`, so a
|
|
19
|
+
* null resume date on a paused Paddle row is Paddle saying "indefinitely" rather than this rail declining
|
|
20
|
+
* to look.
|
|
21
|
+
*/
|
|
22
|
+
/** The date the pause was asked to end at, verbatim as it was sent and as Paddle echoed it back. */
|
|
23
|
+
const PADDLE_PAUSE_RESUME_AT = "2026-10-01T00:00:00Z";
|
|
24
|
+
/**
|
|
25
|
+
* A subscription paused **with** a resume date — `pause({ effective_from: "immediately", resume_at })`.
|
|
26
|
+
*
|
|
27
|
+
* Note `resume_at: null` beside an `effective_at` carrying the date. That inversion is the whole reason
|
|
28
|
+
* `subscriptionResumesAt` reads the action rather than the field named after the answer.
|
|
29
|
+
*/
|
|
30
|
+
const PADDLE_PAUSED_WITH_RESUME_DATE = {
|
|
31
|
+
id: "sub_01kzybh940drg5p1dagqv4xj37",
|
|
32
|
+
status: "paused",
|
|
33
|
+
customer_id: "ctm_01kzybg67tdbn7emh9c2n3zs17",
|
|
34
|
+
paused_at: "2026-08-15T13:43:55.956Z",
|
|
35
|
+
scheduled_change: {
|
|
36
|
+
action: "resume",
|
|
37
|
+
effective_at: PADDLE_PAUSE_RESUME_AT,
|
|
38
|
+
resume_at: null,
|
|
39
|
+
items: null
|
|
40
|
+
},
|
|
41
|
+
current_billing_period: {
|
|
42
|
+
starts_at: "2026-08-13T20:03:06.313818Z",
|
|
43
|
+
ends_at: "2026-09-13T20:03:06.313818Z"
|
|
44
|
+
},
|
|
45
|
+
next_billed_at: PADDLE_PAUSE_RESUME_AT,
|
|
46
|
+
items: [{
|
|
47
|
+
price: { id: "pri_01kzvyz9e21z9vbhd7xqq3csyh" },
|
|
48
|
+
status: "inactive"
|
|
49
|
+
}],
|
|
50
|
+
created_at: "2026-08-13T20:03:07.008Z"
|
|
51
|
+
};
|
|
52
|
+
/**
|
|
53
|
+
* The same subscription paused **without** one — `pause({ effective_from: "immediately" })`.
|
|
54
|
+
*
|
|
55
|
+
* `scheduled_change` is null and so is `next_billed_at`: Paddle has nothing to say about when this comes
|
|
56
|
+
* back, because nothing decided it. That is the indefinite pause, and it is a real state rather than a gap.
|
|
57
|
+
*/
|
|
58
|
+
const PADDLE_PAUSED_INDEFINITELY = {
|
|
59
|
+
id: "sub_01kzybh940drg5p1dagqv4xj37",
|
|
60
|
+
status: "paused",
|
|
61
|
+
customer_id: "ctm_01kzybg67tdbn7emh9c2n3zs17",
|
|
62
|
+
paused_at: "2026-08-15T13:44:10.712Z",
|
|
63
|
+
scheduled_change: null,
|
|
64
|
+
current_billing_period: {
|
|
65
|
+
starts_at: "2026-08-15T13:44:09.279Z",
|
|
66
|
+
ends_at: "2026-09-15T13:44:09.279Z"
|
|
67
|
+
},
|
|
68
|
+
next_billed_at: null,
|
|
69
|
+
items: [{
|
|
70
|
+
price: { id: "pri_01kzvyz9e21z9vbhd7xqq3csyh" },
|
|
71
|
+
status: "inactive"
|
|
72
|
+
}],
|
|
73
|
+
created_at: "2026-08-13T20:03:07.008Z"
|
|
74
|
+
};
|
|
75
|
+
//#endregion
|
|
76
|
+
export { PADDLE_PAUSED_INDEFINITELY, PADDLE_PAUSED_WITH_RESUME_DATE, PADDLE_PAUSE_RESUME_AT };
|
|
@@ -0,0 +1,519 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import type { PurchaseEnvironment } from "../../data/purchase";
|
|
3
|
+
import type { PurchaseStatus } from "../../data/status";
|
|
4
|
+
import type { UnboundProviderEvent } from "../contract";
|
|
5
|
+
/**
|
|
6
|
+
* Paddle's objects, and the mapping from what its events say to what this package stores.
|
|
7
|
+
*
|
|
8
|
+
* ## Two rows per subscription, exactly as Lemon Squeezy has
|
|
9
|
+
*
|
|
10
|
+
* Paddle splits money from state at the source. A `transaction.*` event carries a **transaction**: one
|
|
11
|
+
* billing period's charge, its totals, its status. A `subscription.*` event carries a **subscription**: a
|
|
12
|
+
* status, a billing period, a scheduled change, and no money. So there is a **state row** keyed on
|
|
13
|
+
* `sub_…` and a **money row** per `txn_…`, distinguished by `PurchaseRole`, and each is monotonic on
|
|
14
|
+
* exactly one provider clock.
|
|
15
|
+
*
|
|
16
|
+
* Paddle's ids are globally prefixed and distinct — `txn_`, `sub_`, `adj_`, `ctm_` — so unlike Lemon
|
|
17
|
+
* Squeezy nothing needs namespacing before it can be a row's identity.
|
|
18
|
+
*
|
|
19
|
+
* **A subscription transaction is born `expired`, not `active`, and this is a departure from the issue's
|
|
20
|
+
* event table stated out loud.** The issue maps `transaction.completed` to `active`. On a one-off that is
|
|
21
|
+
* right and this module does it. On a subscription it would be a row with no expiry saying "paid and
|
|
22
|
+
* current" forever — and a never-expiring `active` row outranks the subscription's own state row, so a
|
|
23
|
+
* canceled subscriber would keep their entitlement for good. The paid period is real and it has closed:
|
|
24
|
+
* `expired` grants nothing and still credits a `grants` clause, which is what makes two renewals credit
|
|
25
|
+
* twice. This is the trap `lemonSqueezy/objects.ts` documents at length; Paddle has it identically.
|
|
26
|
+
*
|
|
27
|
+
* ## The environment is the account, not a field on the payload
|
|
28
|
+
*
|
|
29
|
+
* The issue says `data.mode` is `sandbox` or `live`. It is not. Verified against a live sandbox: `mode`
|
|
30
|
+
* appears on a **discount**, where its values are `standard` and `custom`, and it is absent from customers
|
|
31
|
+
* and transactions entirely. Paddle Billing partitions sandbox from live by *account* — a separate host,
|
|
32
|
+
* a separate API key, a separate set of notification destinations — so the environment a purchase belongs
|
|
33
|
+
* to is the environment this deployment's credentials point at, and nothing in a payload can contradict
|
|
34
|
+
* it. That is the same arrangement Stripe has, and the opposite of Lemon Squeezy's single namespace.
|
|
35
|
+
*
|
|
36
|
+
* ## The environment fence, and why `custom_data` alone cannot be one
|
|
37
|
+
*
|
|
38
|
+
* `dev` is not publicly routable, so a dev checkout's webhooks land at `staging` — both point at one
|
|
39
|
+
* Paddle sandbox, and a sandbox has one set of notification destinations. So a delivery stamped for
|
|
40
|
+
* another environment is the normal case here, not an anomaly, and it projects nothing and returns 200.
|
|
41
|
+
*
|
|
42
|
+
* The issue argues the stamp needs no proof, because "`Paddle.Checkout.open` refuses `customData`
|
|
43
|
+
* alongside `transactionId`, and the server always creates the transaction." **That constraint does not
|
|
44
|
+
* exist.** Two things were measured against the live sandbox on 2026-08-13, both from a page holding
|
|
45
|
+
* nothing but the publishable client token this rail ships to every browser that loads a paywall:
|
|
46
|
+
*
|
|
47
|
+
* - `Paddle.Checkout.open({ items: [{ priceId, quantity }], customData: {…} })` opens and completes with
|
|
48
|
+
* no server involved at all, and Paddle stores the page's `custom_data` verbatim.
|
|
49
|
+
* - `Paddle.Checkout.open({ transactionId, customData: {…} })` does not throw, is not refused, and
|
|
50
|
+
* **replaces** the `custom_data` the server wrote when the transaction was created. Same transaction id,
|
|
51
|
+
* `origin` still `"api"`, owner now whoever the page said.
|
|
52
|
+
*
|
|
53
|
+
* Both recordings are in `fixtures/browserForged.ts` and `objects.test.ts` gates on them. So
|
|
54
|
+
* `custom_data.pithy_user` is a string a browser can write on either form of the call, and binding
|
|
55
|
+
* ownership on it would let anyone attach a purchase to any account, permanently, because
|
|
56
|
+
* `linkProviderAccount` never rebinds and the first pairing wins.
|
|
57
|
+
*
|
|
58
|
+
* The Lemon Squeezy rail met the same problem and answered it with a MAC. So does this one: see
|
|
59
|
+
* {@link accountReferenceProof}. Without the proof the two stamped values are worth nothing, and with it
|
|
60
|
+
* they are worth exactly what a value only this deployment's server could have produced is worth.
|
|
61
|
+
*/
|
|
62
|
+
/**
|
|
63
|
+
* The `custom_data` key carrying the subject reference. Literal snake_case, as the issue specifies.
|
|
64
|
+
*
|
|
65
|
+
* **The name says `user` and the value no longer has to be one, and that mismatch is deliberate.** What
|
|
66
|
+
* travels here is now `encodeSubjectReference`'s output — `user:ada`, `organization:acme` — because a
|
|
67
|
+
* purchase can be held by an organization. The obvious tidy-up is to rename the key to match. It is the one
|
|
68
|
+
* thing that must not happen: this string is a wire contract with Paddle, not an identifier of ours. A
|
|
69
|
+
* checkout stamped `pithy_user` today is a transaction sitting open in somebody's browser, a subscription
|
|
70
|
+
* renewing next month, and a `custom_data` object Paddle stores verbatim for the life of the customer. A
|
|
71
|
+
* renamed key reads nothing on any of them — every in-flight purchase comes back naming nobody, permanently,
|
|
72
|
+
* with a `linkProviderAccount` that never rebinds behind it. The name is frozen; the meaning moved.
|
|
73
|
+
*/
|
|
74
|
+
export declare const PADDLE_CUSTOM_ACCOUNT = "pithy_user";
|
|
75
|
+
/** The `custom_data` key carrying this deployment's environment — the shared-sandbox fence. */
|
|
76
|
+
export declare const PADDLE_CUSTOM_ENV = "pithy_env";
|
|
77
|
+
/**
|
|
78
|
+
* The `custom_data` key carrying the proof that **this deployment's server** wrote the two above.
|
|
79
|
+
*
|
|
80
|
+
* Without it the other two prove nothing: `Paddle.Checkout.open` accepts `customData` with only the
|
|
81
|
+
* publishable client token — beside an `items[]` array *and* beside a `transactionId`, where it overwrites
|
|
82
|
+
* what the server wrote — both key names are exported constants in an open-source package, and the
|
|
83
|
+
* environment value is one of three. Requiring them asks an attacker to guess nothing.
|
|
84
|
+
*
|
|
85
|
+
* A MAC is the only part a stranger cannot produce.
|
|
86
|
+
*/
|
|
87
|
+
export declare const PADDLE_CUSTOM_PROOF = "pithy_ref_proof";
|
|
88
|
+
/** The envelope every webhook delivery and every swept event arrives in. */
|
|
89
|
+
export declare const PaddleEvent: z.ZodObject<{
|
|
90
|
+
event_id: z.ZodString;
|
|
91
|
+
event_type: z.ZodString;
|
|
92
|
+
occurred_at: z.ZodString;
|
|
93
|
+
data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
94
|
+
}, z.core.$loose>;
|
|
95
|
+
export type PaddleEvent = z.infer<typeof PaddleEvent>;
|
|
96
|
+
/** An adjustment's fields — a refund, a credit, or a chargeback, which on this rail can arrive unsolicited. */
|
|
97
|
+
export declare const PaddleAdjustment: z.ZodObject<{
|
|
98
|
+
id: z.ZodString;
|
|
99
|
+
action: z.ZodString;
|
|
100
|
+
status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
101
|
+
transaction_id: z.ZodString;
|
|
102
|
+
subscription_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
103
|
+
customer_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
104
|
+
currency_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
105
|
+
totals: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
106
|
+
total: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
107
|
+
}, z.core.$loose>>>;
|
|
108
|
+
created_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
109
|
+
updated_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
110
|
+
}, z.core.$loose>;
|
|
111
|
+
export type PaddleAdjustment = z.infer<typeof PaddleAdjustment>;
|
|
112
|
+
/** A transaction's fields, as an event and the API both present them. */
|
|
113
|
+
export declare const PaddleTransaction: z.ZodObject<{
|
|
114
|
+
id: z.ZodString;
|
|
115
|
+
status: z.ZodString;
|
|
116
|
+
customer_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
117
|
+
subscription_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
118
|
+
discount_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
119
|
+
origin: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
120
|
+
items: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
121
|
+
price: z.ZodOptional<z.ZodObject<{
|
|
122
|
+
id: z.ZodOptional<z.ZodString>;
|
|
123
|
+
}, z.core.$loose>>;
|
|
124
|
+
price_id: z.ZodOptional<z.ZodString>;
|
|
125
|
+
}, z.core.$loose>>>;
|
|
126
|
+
details: z.ZodOptional<z.ZodObject<{
|
|
127
|
+
totals: z.ZodOptional<z.ZodObject<{
|
|
128
|
+
grand_total: z.ZodOptional<z.ZodString>;
|
|
129
|
+
currency_code: z.ZodOptional<z.ZodString>;
|
|
130
|
+
}, z.core.$loose>>;
|
|
131
|
+
}, z.core.$loose>>;
|
|
132
|
+
billing_period: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
133
|
+
starts_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
134
|
+
ends_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
135
|
+
}, z.core.$loose>>>;
|
|
136
|
+
currency_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
137
|
+
custom_data: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
138
|
+
checkout: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
139
|
+
url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
140
|
+
}, z.core.$loose>>>;
|
|
141
|
+
adjustments: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
142
|
+
id: z.ZodString;
|
|
143
|
+
action: z.ZodString;
|
|
144
|
+
status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
145
|
+
transaction_id: z.ZodString;
|
|
146
|
+
subscription_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
147
|
+
customer_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
148
|
+
currency_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
149
|
+
totals: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
150
|
+
total: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
151
|
+
}, z.core.$loose>>>;
|
|
152
|
+
created_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
153
|
+
updated_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
154
|
+
}, z.core.$loose>>>;
|
|
155
|
+
created_at: z.ZodString;
|
|
156
|
+
updated_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
157
|
+
}, z.core.$loose>;
|
|
158
|
+
export type PaddleTransaction = z.infer<typeof PaddleTransaction>;
|
|
159
|
+
/**
|
|
160
|
+
* A change Paddle will apply later, exactly as it sits on a subscription.
|
|
161
|
+
*
|
|
162
|
+
* Lifted out of {@link PaddleSubscription}, where it was inline, because two readers now ask it questions
|
|
163
|
+
* and a second inline copy is how the two field lists drift apart: {@link subscriptionResumesAt} asks when
|
|
164
|
+
* a paused subscription comes back, and {@link subscriptionPendingChange} asks what is pending at all. One
|
|
165
|
+
* declaration, one parse, both readers.
|
|
166
|
+
*
|
|
167
|
+
* **`items` is declared because Paddle sends it.** It arrived `null` on every change recorded so far —
|
|
168
|
+
* the pause and resume of 2026-08-15, the cancel of 2026-08-28 — and nothing reads it. Declaring a field
|
|
169
|
+
* the payload carries costs a line; discovering it later inside a `.loose()` passthrough that nobody wrote
|
|
170
|
+
* down costs an afternoon.
|
|
171
|
+
*/
|
|
172
|
+
export declare const PaddleScheduledChange: z.ZodObject<{
|
|
173
|
+
action: z.ZodOptional<z.ZodString>;
|
|
174
|
+
effective_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
175
|
+
resume_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
176
|
+
items: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodUnknown>>>;
|
|
177
|
+
}, z.core.$loose>;
|
|
178
|
+
export type PaddleScheduledChange = z.infer<typeof PaddleScheduledChange>;
|
|
179
|
+
/** A subscription's fields, as an event and the API both present them. */
|
|
180
|
+
export declare const PaddleSubscription: z.ZodObject<{
|
|
181
|
+
id: z.ZodString;
|
|
182
|
+
status: z.ZodString;
|
|
183
|
+
customer_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
184
|
+
items: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
185
|
+
price: z.ZodOptional<z.ZodObject<{
|
|
186
|
+
id: z.ZodOptional<z.ZodString>;
|
|
187
|
+
}, z.core.$loose>>;
|
|
188
|
+
status: z.ZodOptional<z.ZodString>;
|
|
189
|
+
}, z.core.$loose>>>;
|
|
190
|
+
current_billing_period: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
191
|
+
starts_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
192
|
+
ends_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
193
|
+
}, z.core.$loose>>>;
|
|
194
|
+
scheduled_change: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
195
|
+
action: z.ZodOptional<z.ZodString>;
|
|
196
|
+
effective_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
197
|
+
resume_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
198
|
+
items: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodUnknown>>>;
|
|
199
|
+
}, z.core.$loose>>>;
|
|
200
|
+
trial_dates: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
201
|
+
starts_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
202
|
+
ends_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
203
|
+
}, z.core.$loose>>>;
|
|
204
|
+
next_billed_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
205
|
+
canceled_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
206
|
+
paused_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
207
|
+
discount: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
208
|
+
id: z.ZodOptional<z.ZodString>;
|
|
209
|
+
starts_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
210
|
+
ends_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
211
|
+
}, z.core.$loose>>>;
|
|
212
|
+
custom_data: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
213
|
+
created_at: z.ZodString;
|
|
214
|
+
updated_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
215
|
+
}, z.core.$loose>;
|
|
216
|
+
export type PaddleSubscription = z.infer<typeof PaddleSubscription>;
|
|
217
|
+
/**
|
|
218
|
+
* One block of Paddle's computed totals, on a preview.
|
|
219
|
+
*
|
|
220
|
+
* **`grand_total` is not the headline, and on a downgrade it is actively misleading.** Recorded 2026-08-28:
|
|
221
|
+
* previewing Team → Solo answers `grand_total: "0"` while the customer is owed 6581, which is sitting in
|
|
222
|
+
* `credit_to_balance`. A screen wired to the totals says "You will be charged $0.00" — true, and it never
|
|
223
|
+
* mentions the money. What renders is `update_summary.result`; see {@link PaddleUpdateSummary}.
|
|
224
|
+
*
|
|
225
|
+
* Every field is optional because Paddle's blocks differ by mode and by direction, and every one may be
|
|
226
|
+
* negative because a downgrade's are: `subtotal: "-6045"`, `tax: "-536"`, `total: "-6581"`. `fee` and
|
|
227
|
+
* `earnings` arrive **null** on a preview — the money has not moved, so there is nothing to have earned —
|
|
228
|
+
* and they are declared rather than left to `.loose()` so a later reader finds null in the type instead of
|
|
229
|
+
* inferring absence.
|
|
230
|
+
*
|
|
231
|
+
* **Deliberately not shared with {@link PaddleTransaction}'s own `details.totals`.** Unifying them would
|
|
232
|
+
* widen that shape's public type — `string | undefined` becomes `string | null | undefined` on fields four
|
|
233
|
+
* modules already read — in the same commit that adds a preview, which is precisely the regression
|
|
234
|
+
* `objects.test.ts` guards against. The *treatment* is identical and that is what matters here: strings,
|
|
235
|
+
* unscaled, `.loose()`, no constraint on sign. One type in both places is the job of the step that needs
|
|
236
|
+
* one type in both places.
|
|
237
|
+
*/
|
|
238
|
+
export declare const PaddleTotals: z.ZodObject<{
|
|
239
|
+
subtotal: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
240
|
+
tax: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
241
|
+
discount: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
242
|
+
total: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
243
|
+
grand_total: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
244
|
+
grand_total_tax: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
245
|
+
credit: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
246
|
+
credit_to_balance: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
247
|
+
balance: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
248
|
+
fee: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
249
|
+
earnings: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
250
|
+
currency_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
251
|
+
exchange_rate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
252
|
+
}, z.core.$loose>;
|
|
253
|
+
export type PaddleTotals = z.infer<typeof PaddleTotals>;
|
|
254
|
+
/**
|
|
255
|
+
* What the change comes to, and **the only part of a preview a screen should quote**.
|
|
256
|
+
*
|
|
257
|
+
* `credit` is the unused remainder of the old plan and arrives negative; `charge` is what the new plan costs
|
|
258
|
+
* for the rest of the period; `result` is Paddle's own reconciliation of the two, and it carries the word as
|
|
259
|
+
* well as the number — `{ action: "charge", amount: "6582" }` on the recorded upgrade,
|
|
260
|
+
* `{ action: "credit", amount: "6581" }` on the recorded downgrade.
|
|
261
|
+
*
|
|
262
|
+
* The alternative — reading `immediate_transaction.details.totals.grand_total` — is right on an upgrade and
|
|
263
|
+
* silently wrong on a downgrade, where it is `"0"`. That is why `result` is required here while the two
|
|
264
|
+
* halves it reconciles are not: a summary with no result is a summary nothing can be said from.
|
|
265
|
+
*
|
|
266
|
+
* `action` stays a plain string rather than an enum for the reason `status` does: an unknown value is
|
|
267
|
+
* refused by the reader that has to act on it, with a message naming what arrived, rather than by a parse
|
|
268
|
+
* failure that discards the rest of a valid response.
|
|
269
|
+
*/
|
|
270
|
+
export declare const PaddleUpdateSummary: z.ZodObject<{
|
|
271
|
+
credit: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
272
|
+
amount: z.ZodString;
|
|
273
|
+
currency_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
274
|
+
}, z.core.$loose>>>;
|
|
275
|
+
charge: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
276
|
+
amount: z.ZodString;
|
|
277
|
+
currency_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
278
|
+
}, z.core.$loose>>>;
|
|
279
|
+
result: z.ZodObject<{
|
|
280
|
+
amount: z.ZodString;
|
|
281
|
+
currency_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
282
|
+
action: z.ZodString;
|
|
283
|
+
}, z.core.$loose>;
|
|
284
|
+
}, z.core.$loose>;
|
|
285
|
+
export type PaddleUpdateSummary = z.infer<typeof PaddleUpdateSummary>;
|
|
286
|
+
/**
|
|
287
|
+
* A preview of a subscription change — what Paddle answers before anything is committed.
|
|
288
|
+
*
|
|
289
|
+
* **`immediate_transaction` is nullable, and the adopter's own downgrade policy is the case that makes it
|
|
290
|
+
* null.** Under `proration_billing_mode: "prorated_next_billing_period"` nothing settles today, so there is
|
|
291
|
+
* no transaction to describe and Paddle sends none; the whole answer is `update_summary` plus the recurring
|
|
292
|
+
* block. A shape requiring it would fail on every downgrade this package is designed to perform.
|
|
293
|
+
*
|
|
294
|
+
* **Only the preview's own keys are declared.** The response is a subscription entity *with* these three
|
|
295
|
+
* fields on it — the recordings are excerpts of exactly those fields, and this shape claims no more than was
|
|
296
|
+
* measured. `.loose()` carries the rest through, and a caller wanting the entity parses the same body a
|
|
297
|
+
* second time through {@link PaddleSubscription}, which is the shape that knows what an entity requires.
|
|
298
|
+
*/
|
|
299
|
+
export declare const PaddleSubscriptionPreview: z.ZodObject<{
|
|
300
|
+
update_summary: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
301
|
+
credit: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
302
|
+
amount: z.ZodString;
|
|
303
|
+
currency_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
304
|
+
}, z.core.$loose>>>;
|
|
305
|
+
charge: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
306
|
+
amount: z.ZodString;
|
|
307
|
+
currency_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
308
|
+
}, z.core.$loose>>>;
|
|
309
|
+
result: z.ZodObject<{
|
|
310
|
+
amount: z.ZodString;
|
|
311
|
+
currency_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
312
|
+
action: z.ZodString;
|
|
313
|
+
}, z.core.$loose>;
|
|
314
|
+
}, z.core.$loose>>>;
|
|
315
|
+
immediate_transaction: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
316
|
+
details: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
317
|
+
totals: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
318
|
+
subtotal: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
319
|
+
tax: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
320
|
+
discount: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
321
|
+
total: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
322
|
+
grand_total: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
323
|
+
grand_total_tax: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
324
|
+
credit: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
325
|
+
credit_to_balance: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
326
|
+
balance: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
327
|
+
fee: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
328
|
+
earnings: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
329
|
+
currency_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
330
|
+
exchange_rate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
331
|
+
}, z.core.$loose>>>;
|
|
332
|
+
}, z.core.$loose>>>;
|
|
333
|
+
billing_period: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
334
|
+
starts_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
335
|
+
ends_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
336
|
+
}, z.core.$loose>>>;
|
|
337
|
+
}, z.core.$loose>>>;
|
|
338
|
+
recurring_transaction_details: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
339
|
+
totals: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
340
|
+
subtotal: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
341
|
+
tax: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
342
|
+
discount: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
343
|
+
total: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
344
|
+
grand_total: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
345
|
+
grand_total_tax: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
346
|
+
credit: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
347
|
+
credit_to_balance: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
348
|
+
balance: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
349
|
+
fee: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
350
|
+
earnings: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
351
|
+
currency_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
352
|
+
exchange_rate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
353
|
+
}, z.core.$loose>>>;
|
|
354
|
+
}, z.core.$loose>>>;
|
|
355
|
+
}, z.core.$loose>;
|
|
356
|
+
export type PaddleSubscriptionPreview = z.infer<typeof PaddleSubscriptionPreview>;
|
|
357
|
+
/** A Paddle timestamp, or a refusal. Its API emits RFC-3339 throughout. */
|
|
358
|
+
export declare function at(value: string, what: string): Date;
|
|
359
|
+
/**
|
|
360
|
+
* A subscription's status, normalized.
|
|
361
|
+
*
|
|
362
|
+
* `trialing` grants, with `expiresAt` at the trial's end. That hands an entitlement to somebody who has
|
|
363
|
+
* paid nothing, which is what a trial *is* — and it is bounded, because the trial's end date is on the
|
|
364
|
+
* row. The issue asked for this to be an explicit decision rather than a table row, so: it is deliberate,
|
|
365
|
+
* and the bound is what makes it safe.
|
|
366
|
+
*
|
|
367
|
+
* An unknown status refuses rather than guessing, which is every other rail's rule too: a status this
|
|
368
|
+
* package has never seen is a shape change worth failing loudly on.
|
|
369
|
+
*/
|
|
370
|
+
export declare function subscriptionStatus(status: string): PurchaseStatus;
|
|
371
|
+
/**
|
|
372
|
+
* A transaction's status, normalized — and it depends on whether the transaction bills a subscription.
|
|
373
|
+
*
|
|
374
|
+
* **A one-off is money and state at once**, so a completed one is `active` with no expiry: that is a
|
|
375
|
+
* non-consumable bought and owned.
|
|
376
|
+
*
|
|
377
|
+
* **A subscription transaction is one closed billing period**, so a completed one is `expired`. It
|
|
378
|
+
* credits a `grants` clause — which is what makes N renewals credit exactly N times — and grants no
|
|
379
|
+
* access, because access is the state row's job. See the module doc for why `active` here would outlive
|
|
380
|
+
* a cancellation.
|
|
381
|
+
*/
|
|
382
|
+
export declare function transactionStatus(status: string, subscription: boolean): PurchaseStatus;
|
|
383
|
+
/** The price id a transaction sold. Paddle carries it under `items[].price.id`; some shapes flatten it. */
|
|
384
|
+
export declare function transactionPriceId(transaction: PaddleTransaction): string;
|
|
385
|
+
/** The price id a subscription is for. */
|
|
386
|
+
export declare function subscriptionPriceId(subscription: PaddleSubscription): string;
|
|
387
|
+
/**
|
|
388
|
+
* An amount Paddle reported, as an integer in the currency's lowest denomination.
|
|
389
|
+
*
|
|
390
|
+
* Paddle sends amounts as **strings** and always in the lowest denomination, including for the
|
|
391
|
+
* zero-decimal currencies — ¥725 arrives as `"725"`, not `"72500"`, confirmed live. So this parses and
|
|
392
|
+
* never scales: a multiplication here would be this package computing money, which it does not do.
|
|
393
|
+
*
|
|
394
|
+
* Anything that is not a plain integer string is `null` rather than a guess. `Number.parseInt` on
|
|
395
|
+
* `"0.105"` answers `0`, which is a wrong amount rather than a missing one.
|
|
396
|
+
*/
|
|
397
|
+
export declare function minorAmount(value: string | null | undefined): number | null;
|
|
398
|
+
/** A currency as this package stores it. Paddle sends uppercase; every other rail here is lowercase. */
|
|
399
|
+
export declare function currencyOf(value: string | null | undefined): string | null;
|
|
400
|
+
/**
|
|
401
|
+
* The money row a transaction implies.
|
|
402
|
+
*
|
|
403
|
+
* `providerEventAt` comes from the caller — the **envelope's** `occurred_at`, never `updated_at` — for
|
|
404
|
+
* the reason the envelope schema states at the field.
|
|
405
|
+
*/
|
|
406
|
+
export declare function transactionEvent(transaction: PaddleTransaction, occurredAt: Date, environment: PurchaseEnvironment): UnboundProviderEvent;
|
|
407
|
+
/**
|
|
408
|
+
* What Paddle says a paused subscription resumes at, verbatim — or nothing, for an open-ended pause.
|
|
409
|
+
*
|
|
410
|
+
* **The date is not in the field named after it**, which is the trap this function exists to hold. Recorded
|
|
411
|
+
* against a live sandbox on 2026-08-15: pausing immediately with `resume_at: "2026-10-01T00:00:00Z"` leaves
|
|
412
|
+
* `scheduled_change: { action: "resume", effective_at: "2026-10-01T00:00:00Z", resume_at: null }`. Paddle
|
|
413
|
+
* turns the request's `resume_at` into a scheduled *resume* whose `effective_at` is the date, and blanks
|
|
414
|
+
* `resume_at` — that field is populated only while a `pause` is scheduled and the subscription is still
|
|
415
|
+
* `active`, which is not a paused subscription. Pausing with no resume date leaves `scheduled_change: null`.
|
|
416
|
+
*
|
|
417
|
+
* So both spellings are read and the one that means resumption wins. `effective_at` is taken only from a
|
|
418
|
+
* `resume` action: on a `cancel` it is when access ends, and on a `pause` it is when the pause begins —
|
|
419
|
+
* writing either into a resume date would be a wrong date in front of a paying customer.
|
|
420
|
+
*/
|
|
421
|
+
export declare function subscriptionResumesAt(subscription: PaddleSubscription): string | null;
|
|
422
|
+
/** What Paddle is going to do to a subscription later, normalized — the three actions and their dates. */
|
|
423
|
+
export interface PaddlePendingChange {
|
|
424
|
+
/** Which of Paddle's three scheduled actions is pending. Narrowed here, so a reader switches exhaustively. */
|
|
425
|
+
action: "cancel" | "pause" | "resume";
|
|
426
|
+
/** When it happens, verbatim as Paddle sent it. A string, converted at the site that needs a `Date`. */
|
|
427
|
+
effectiveAt: string | null;
|
|
428
|
+
/** When a scheduled pause is due to end, on the one action that carries it. Null everywhere else. */
|
|
429
|
+
resumeAt: string | null;
|
|
430
|
+
}
|
|
431
|
+
/**
|
|
432
|
+
* What is pending on a subscription, or nothing.
|
|
433
|
+
*
|
|
434
|
+
* **The field a screen reaches for first is empty exactly when this one fills.** Recorded against the
|
|
435
|
+
* sandbox on 2026-08-28: `cancel({ effective_from: "next_billing_period" })` leaves `status: "active"`,
|
|
436
|
+
* `canceled_at: null` and — the part that surprises — **`next_billed_at: null`**, with the date living only
|
|
437
|
+
* on `scheduled_change.effective_at`. So "Renews on {next_billed_at}" goes blank on precisely the
|
|
438
|
+
* subscription whose end date the customer most needs to see, while the row still says `active`.
|
|
439
|
+
* `update(subscription, { scheduled_change: null })` withdraws the cancellation and puts the date back.
|
|
440
|
+
*
|
|
441
|
+
* An action this build does not map refuses rather than being read as one of the three. That is
|
|
442
|
+
* {@link subscriptionStatus}'s rule and it is the same argument: a new Paddle action quietly normalized into
|
|
443
|
+
* `cancel` is a wrong date, or a wrong sentence, in front of a paying customer — and a `scheduled_change`
|
|
444
|
+
* with no action at all is a shape change, not an absence, because Paddle sends the object or sends null.
|
|
445
|
+
*
|
|
446
|
+
* **This deliberately does not change what {@link subscriptionResumesAt} answers.** That function reads
|
|
447
|
+
* `effective_at` only on a `resume`, which is why a scheduled *cancel* is invisible to the projection today.
|
|
448
|
+
* The two now parse one declared shape — {@link PaddleScheduledChange} — so whichever step decides what the
|
|
449
|
+
* projection should carry about a pending cancellation reconciles them in one place, with both readings in
|
|
450
|
+
* front of it.
|
|
451
|
+
*/
|
|
452
|
+
export declare function subscriptionPendingChange(subscription: PaddleSubscription): PaddlePendingChange | null;
|
|
453
|
+
/**
|
|
454
|
+
* The state row a subscription implies. Carries no amount — a subscription is not a charge.
|
|
455
|
+
*
|
|
456
|
+
* `expiresAt` is the end of what has been paid for, and which field that is depends on the standing: a
|
|
457
|
+
* trial ends at its own date, everything else at the current billing period's end. A cancellation keeps
|
|
458
|
+
* the period already bought rather than taking it away, which is what `canceled` means in this package's
|
|
459
|
+
* status set.
|
|
460
|
+
*/
|
|
461
|
+
export declare function subscriptionEvent(subscription: PaddleSubscription, occurredAt: Date, environment: PurchaseEnvironment): UnboundProviderEvent;
|
|
462
|
+
/**
|
|
463
|
+
* Whether this delivery belongs to another deployment sharing the same Paddle sandbox.
|
|
464
|
+
*
|
|
465
|
+
* True only when both sides named an environment and they differ. An unstamped delivery is not fenced —
|
|
466
|
+
* a transaction created in the Paddle dashboard carries no `custom_data`, and fencing on absence would
|
|
467
|
+
* silently drop real sales — and a deployment that does not know its own `ENVIRONMENT` fences nothing,
|
|
468
|
+
* which is precisely how the other rails behave.
|
|
469
|
+
*
|
|
470
|
+
* **This is a fence, not an authorization.** It is read off unauthenticated `custom_data` on purpose: its
|
|
471
|
+
* job is to stop this deployment acting on another deployment's traffic, and the direction it can be
|
|
472
|
+
* abused in is a forger declining to be projected — which they achieve by not sending anything. Deciding
|
|
473
|
+
* *who owns* a purchase is {@link accountReferenceOf}'s job, and that one demands a MAC.
|
|
474
|
+
*/
|
|
475
|
+
export declare function fencedOut(custom: Record<string, unknown> | null | undefined, deployment: string | undefined): boolean;
|
|
476
|
+
/**
|
|
477
|
+
* The account reference this deployment stamped into the checkout, or null.
|
|
478
|
+
*
|
|
479
|
+
* **Honored only when a MAC this deployment could have produced is beside it**, and that condition is the
|
|
480
|
+
* whole security of the field. `accountReference`'s contract says it is "a value this deployment's own
|
|
481
|
+
* server wrote and the store returned unchanged" — the route writes the provider-account link from it, and
|
|
482
|
+
* `linkProviderAccount` never rebinds, so the first pairing is permanent.
|
|
483
|
+
*
|
|
484
|
+
* `Paddle.Checkout.open` accepts `customData` with nothing but the publishable client token, and it does
|
|
485
|
+
* so on both forms of the call — beside an `items[]` array of price ids, and beside a `transactionId`,
|
|
486
|
+
* where the page's object replaces the one the server wrote. So `custom_data` on its own is **not**
|
|
487
|
+
* evidence our server wrote anything, and it is not evidence even when our server did: a stranger can put
|
|
488
|
+
* any string in it and permanently bind their Paddle customer to an account they chose. The env stamp does
|
|
489
|
+
* not save it either — the key names are exported constants in an open-source package and the value is one
|
|
490
|
+
* of three.
|
|
491
|
+
*
|
|
492
|
+
* A deployment that does not know its own `ENVIRONMENT` trusts no reference at all. That is the safe
|
|
493
|
+
* direction: the cost is a purchase that lands unbound and is repairable from the trail, where the other
|
|
494
|
+
* way round is an unauthenticated write into the account map that nothing ever undoes.
|
|
495
|
+
*
|
|
496
|
+
* **And the value must be the subject encoding, which the MAC alone does not make it.** A stamp can be
|
|
497
|
+
* authentic and still name nobody: a bare id is what this rail wrote before subjects existed, and reading
|
|
498
|
+
* one as a user would hand a purchase to whoever else holds that id. So the reference is put through
|
|
499
|
+
* `decodeSubjectReference` — the one decoder, never a split written here — and anything that is not exactly
|
|
500
|
+
* the encoding is refused in the same direction as everything else above. The string is returned rather than
|
|
501
|
+
* the pair because a rail reports `accountReference` as a string; the route decodes it again through the same
|
|
502
|
+
* function, and gets the same answer.
|
|
503
|
+
*/
|
|
504
|
+
export declare function accountReferenceOf(custom: Record<string, unknown> | null | undefined, deployment: string | undefined, secret: string): Promise<string | null>;
|
|
505
|
+
/**
|
|
506
|
+
* The proof this deployment stamps beside an account reference, and the only reason the reference is
|
|
507
|
+
* worth anything.
|
|
508
|
+
*
|
|
509
|
+
* An HMAC over the environment and the user id, keyed with a secret a stranger does not have. The message
|
|
510
|
+
* is domain-separated by a fixed prefix so this MAC can never be confused with the webhook-body signature
|
|
511
|
+
* that shares its key: the two answer different questions, and a value satisfying both would be a
|
|
512
|
+
* cross-protocol attack waiting to be found.
|
|
513
|
+
*
|
|
514
|
+
* The key is the notification destination's signing secret because it is already per-environment, already
|
|
515
|
+
* rotated with the rail, and already known only to this deployment and to Paddle — and Paddle is not the
|
|
516
|
+
* attacker here. The attacker is anyone who can load the paywall, which is everyone.
|
|
517
|
+
*/
|
|
518
|
+
export declare function accountReferenceProof(reference: string, deployment: string, secret: string): Promise<string>;
|
|
519
|
+
//# sourceMappingURL=objects.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"objects.d.ts","sourceRoot":"","sources":["../../../src/rails/paddle/objects.ts"],"names":[],"mappings":"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"}
|