@commet/node 9.3.0 → 9.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +366 -17
- package/dist/index.d.ts +366 -17
- package/dist/index.js +31 -7
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +31 -7
- package/dist/index.mjs.map +1 -1
- package/docs/ai-onboarding/ai-onboarding.md +2 -3
- package/docs/ai-onboarding/billing-best-practices-skill.md +2 -3
- package/docs/ai-onboarding/commet-skill.md +4 -5
- package/docs/ai-onboarding/mcp-server.md +8 -9
- package/docs/ai-onboarding/pricing-models-skill.md +2 -3
- package/docs/ai-onboarding/subscription-patterns-skill.md +2 -3
- package/docs/api-reference/addons.md +1 -1
- package/docs/api-reference/api-keys.md +3 -2
- package/docs/api-reference/credit-packs.md +1 -1
- package/docs/api-reference/customers.md +1 -1
- package/docs/api-reference/feature-access.md +1 -1
- package/docs/api-reference/features.md +1 -1
- package/docs/api-reference/generated-webhooks.md +3 -3
- package/docs/api-reference/index.md +2 -2
- package/docs/api-reference/invoices.md +1 -1
- package/docs/api-reference/markets.md +1 -1
- package/docs/api-reference/offers.md +1 -1
- package/docs/api-reference/payments.md +1 -1
- package/docs/api-reference/payouts.md +1 -1
- package/docs/api-reference/plan-groups.md +1 -1
- package/docs/api-reference/plans.md +1 -1
- package/docs/api-reference/portal.md +1 -1
- package/docs/api-reference/promo-codes.md +2 -2
- package/docs/api-reference/provisioning.md +1 -1
- package/docs/api-reference/quota.md +1 -1
- package/docs/api-reference/seats.md +1 -1
- package/docs/api-reference/subscriptions.md +81 -2
- package/docs/api-reference/test-clock.md +1 -1
- package/docs/api-reference/transactions.md +1 -1
- package/docs/api-reference/usage.md +1 -1
- package/docs/documentation/api-versioning.md +1 -2
- package/docs/documentation/better-auth.md +0 -1
- package/docs/documentation/choose-a-billing-model.md +54 -26
- package/docs/documentation/cli.md +1 -2
- package/docs/documentation/create-api-key.md +100 -25
- package/docs/documentation/customers/customer-credits.md +0 -1
- package/docs/documentation/customers/customer-portal.md +14 -2
- package/docs/documentation/customers/manage-customers.md +1 -2
- package/docs/documentation/error-handling.md +1 -2
- package/docs/documentation/examples.md +0 -1
- package/docs/documentation/finance/acceptable-use.md +0 -1
- package/docs/documentation/finance/finance-overview.md +0 -1
- package/docs/documentation/finance/local-currency-taxes.md +0 -1
- package/docs/documentation/finance/merchant-of-record.md +0 -1
- package/docs/documentation/finance/payouts-verification.md +6 -3
- package/docs/documentation/finance/payouts.md +0 -1
- package/docs/documentation/finance/supported-countries.md +0 -1
- package/docs/documentation/go/integrate-with-encore.md +7 -8
- package/docs/documentation/go/integrate-with-go.md +8 -9
- package/docs/documentation/introduction.md +62 -41
- package/docs/documentation/invoicing/handle-failed-payments.md +9 -4
- package/docs/documentation/invoicing/invoices-and-billing-cycles.md +0 -1
- package/docs/documentation/invoicing/manage-invoices.md +0 -1
- package/docs/documentation/java/integrate-with-java.md +6 -7
- package/docs/documentation/nodejs/integrate-with-astro.md +6 -7
- package/docs/documentation/nodejs/integrate-with-bun.md +6 -7
- package/docs/documentation/nodejs/integrate-with-express.md +7 -8
- package/docs/documentation/nodejs/integrate-with-hono.md +7 -8
- package/docs/documentation/nodejs/integrate-with-nextjs.md +6 -7
- package/docs/documentation/nodejs/integrate-with-nuxt.md +6 -7
- package/docs/documentation/nodejs/integrate-with-remix.md +6 -7
- package/docs/documentation/nodejs/integrate-with-sveltekit.md +6 -7
- package/docs/documentation/payments/accept-one-time-payments.md +0 -1
- package/docs/documentation/payments/payment-orchestration.md +0 -1
- package/docs/documentation/payments/payment-providers.md +0 -1
- package/docs/documentation/payments/transactions-refunds-and-retries.md +8 -1
- package/docs/documentation/php/integrate-with-laravel.md +8 -9
- package/docs/documentation/php/integrate-with-php.md +6 -7
- package/docs/documentation/php/integrate-with-symfony.md +7 -8
- package/docs/documentation/plans/add-ons.md +0 -1
- package/docs/documentation/plans/balance-and-top-ups.md +0 -1
- package/docs/documentation/plans/configure-features.md +0 -1
- package/docs/documentation/plans/consumption-models.md +0 -1
- package/docs/documentation/plans/create-plans.md +0 -1
- package/docs/documentation/plans/credit-packs.md +0 -1
- package/docs/documentation/plans/one-time-payments.md +0 -1
- package/docs/documentation/plans/plan-groups.md +0 -1
- package/docs/documentation/platform/custom-domains.md +0 -1
- package/docs/documentation/platform/dashboard-metrics-and-events.md +0 -1
- package/docs/documentation/platform/members-and-permissions.md +0 -1
- package/docs/documentation/platform/organization-settings.md +0 -1
- package/docs/documentation/python/integrate-with-django.md +8 -9
- package/docs/documentation/python/integrate-with-fastapi.md +8 -9
- package/docs/documentation/python/integrate-with-flask.md +8 -9
- package/docs/documentation/python/integrate-with-python.md +6 -7
- package/docs/documentation/sales/card-promotions.md +0 -1
- package/docs/documentation/sales/introductory-offers.md +0 -1
- package/docs/documentation/sales/offers.md +0 -1
- package/docs/documentation/sales/promo-codes.md +19 -5
- package/docs/documentation/sales/promotional-offers.md +1 -2
- package/docs/documentation/sales/regional-prices.md +0 -1
- package/docs/documentation/sales/trial-periods.md +8 -8
- package/docs/documentation/sdk-reference.md +9 -10
- package/docs/documentation/subscriptions/manage-subscriptions.md +114 -12
- package/docs/documentation/subscriptions/plan-grants.md +0 -1
- package/docs/documentation/subscriptions/upgrade-and-downgrade-plans.md +0 -1
- package/docs/documentation/testing-sandbox.md +0 -1
- package/docs/documentation/usage/ai-token-billing.md +0 -1
- package/docs/documentation/usage/quota-management.md +0 -1
- package/docs/documentation/usage/seat-management.md +0 -1
- package/docs/documentation/usage/track-usage.md +0 -1
- package/docs/errors/addon_already_active.md +1 -1
- package/docs/errors/addon_has_activations.md +1 -1
- package/docs/errors/addon_not_active.md +1 -1
- package/docs/errors/addon_not_found.md +1 -1
- package/docs/errors/already_has_active_subscription.md +1 -1
- package/docs/errors/already_scheduled.md +1 -1
- package/docs/errors/api_key_not_found.md +1 -1
- package/docs/errors/card_promotions_not_available.md +1 -1
- package/docs/errors/charge_failed.md +1 -1
- package/docs/errors/charge_in_progress.md +1 -1
- package/docs/errors/claim_not_pending.md +1 -1
- package/docs/errors/credit_pack_not_found.md +1 -1
- package/docs/errors/customer_not_found.md +1 -1
- package/docs/errors/duplicate.md +1 -1
- package/docs/errors/endpoint_deprecated.md +1 -1
- package/docs/errors/endpoint_not_available.md +1 -1
- package/docs/errors/feature_already_exists.md +1 -1
- package/docs/errors/feature_disabled.md +1 -1
- package/docs/errors/feature_in_use.md +1 -1
- package/docs/errors/feature_not_found.md +1 -1
- package/docs/errors/feature_not_in_plan.md +1 -1
- package/docs/errors/forbidden.md +1 -1
- package/docs/errors/free_plan_change_not_supported.md +1 -1
- package/docs/errors/idempotency_in_progress.md +1 -1
- package/docs/errors/idempotency_key_mismatch.md +1 -1
- package/docs/errors/idempotency_unavailable.md +1 -1
- package/docs/errors/included_limit_reached.md +1 -1
- package/docs/errors/index.md +1 -1
- package/docs/errors/insufficient_balance.md +1 -1
- package/docs/errors/insufficient_credits.md +1 -1
- package/docs/errors/insufficient_seats.md +1 -1
- package/docs/errors/internal_error.md +1 -1
- package/docs/errors/invalid_json.md +1 -1
- package/docs/errors/invalid_subscription_status.md +1 -1
- package/docs/errors/invoice_not_found.md +1 -1
- package/docs/errors/market_group_in_use.md +1 -1
- package/docs/errors/market_group_not_found.md +1 -1
- package/docs/errors/market_in_use.md +1 -1
- package/docs/errors/market_not_found.md +1 -1
- package/docs/errors/missing_regional_price.md +1 -1
- package/docs/errors/model_not_found.md +1 -1
- package/docs/errors/no_active_subscription.md +1 -1
- package/docs/errors/no_change_requested.md +1 -1
- package/docs/errors/no_outstanding_invoice.md +1 -1
- package/docs/errors/no_payment_method.md +1 -1
- package/docs/errors/no_prices_configured.md +1 -1
- package/docs/errors/not_found.md +1 -1
- package/docs/errors/not_scheduled_for_cancellation.md +1 -1
- package/docs/errors/offer_not_applicable.md +1 -1
- package/docs/errors/offer_not_found.md +1 -1
- package/docs/errors/one_time_subscription_not_cancelable.md +1 -1
- package/docs/errors/organization_already_claimed.md +1 -1
- package/docs/errors/payment_failed.md +1 -1
- package/docs/errors/payment_method_not_found.md +1 -1
- package/docs/errors/payment_not_cancelable.md +1 -1
- package/docs/errors/payment_not_found.md +1 -1
- package/docs/errors/payouts_not_available_in_sandbox.md +1 -1
- package/docs/errors/plan_change_scheduled.md +1 -1
- package/docs/errors/plan_group_not_found.md +1 -1
- package/docs/errors/plan_not_found.md +1 -1
- package/docs/errors/plan_unavailable.md +1 -1
- package/docs/errors/plans_not_in_same_group.md +1 -1
- package/docs/errors/price_in_use.md +1 -1
- package/docs/errors/price_not_found.md +1 -1
- package/docs/errors/pricing_mode_mismatch.md +1 -1
- package/docs/errors/promo_code_expired.md +1 -1
- package/docs/errors/promo_code_not_found.md +1 -1
- package/docs/errors/provider_unsupported.md +1 -1
- package/docs/errors/rate_limited.md +1 -1
- package/docs/errors/sandbox_only.md +1 -1
- package/docs/errors/seat_limit_exceeded.md +1 -1
- package/docs/errors/subscription_activation_failed.md +1 -1
- package/docs/errors/subscription_already_canceled.md +1 -1
- package/docs/errors/subscription_cancel_failed.md +1 -1
- package/docs/errors/subscription_creation_failed.md +1 -1
- package/docs/errors/subscription_has_open_dispute.md +1 -1
- package/docs/errors/subscription_not_active.md +1 -1
- package/docs/errors/subscription_not_found.md +1 -1
- package/docs/errors/subscription_required.md +1 -1
- package/docs/errors/subscription_uncancel_failed.md +1 -1
- package/docs/errors/transaction_not_found.md +1 -1
- package/docs/errors/unauthorized.md +1 -1
- package/docs/errors/validation_error.md +1 -1
- package/docs/errors/webhook_not_found.md +1 -1
- package/docs/knowledge-base/how-do-balance-and-top-ups-work.md +0 -1
- package/docs/knowledge-base/how-do-credits-credit-packs-and-customer-credits-differ.md +0 -1
- package/docs/knowledge-base/how-do-discounts-work.md +0 -1
- package/docs/knowledge-base/how-do-free-plans-work-without-payment.md +0 -1
- package/docs/knowledge-base/how-do-monthly-quarterly-and-yearly-billing-work.md +0 -1
- package/docs/knowledge-base/how-do-offers-promo-codes-and-card-promotions-work-together.md +0 -1
- package/docs/knowledge-base/how-do-trial-periods-work.md +0 -1
- package/docs/knowledge-base/how-does-billing-work.md +0 -1
- package/docs/knowledge-base/how-does-payment-routing-work.md +0 -1
- package/docs/knowledge-base/how-does-quota-based-billing-work.md +0 -1
- package/docs/knowledge-base/how-does-seat-based-billing-work.md +0 -1
- package/docs/knowledge-base/how-is-proration-calculated-when-changing-plans.md +0 -1
- package/docs/knowledge-base/what-happens-when-a-customer-changes-plans.md +0 -1
- package/docs/knowledge-base/what-happens-when-a-payment-fails.md +0 -1
- package/docs/knowledge-base/what-happens-when-you-change-your-prices.md +0 -1
- package/docs/knowledge-base/what-happens-when-you-refund-or-retry-a-transaction.md +1 -2
- package/docs/knowledge-base/what-invoices-do-customers-receive-and-when.md +0 -1
- package/docs/manifest.json +186 -235
- package/docs/platform-documentation.md +69 -149
- package/docs/schemas.md +35 -1
- package/docs/webhooks/introduction.md +0 -1
- package/docs/webhooks.md +98 -7
- package/docs/webhooks.openapi.json +11058 -0
- package/package.json +1 -1
- package/docs/ai-onboarding/meta.json +0 -17
- package/docs/api-reference/meta.json +0 -7
- package/docs/documentation/customers/meta.json +0 -5
- package/docs/documentation/finance/meta.json +0 -13
- package/docs/documentation/go/meta.json +0 -5
- package/docs/documentation/invoicing/meta.json +0 -9
- package/docs/documentation/java/meta.json +0 -5
- package/docs/documentation/meta.json +0 -36
- package/docs/documentation/nodejs/meta.json +0 -14
- package/docs/documentation/payments/meta.json +0 -10
- package/docs/documentation/php/meta.json +0 -9
- package/docs/documentation/plans/meta.json +0 -14
- package/docs/documentation/platform/meta.json +0 -10
- package/docs/documentation/python/meta.json +0 -10
- package/docs/documentation/sales/meta.json +0 -13
- package/docs/documentation/subscriptions/meta.json +0 -9
- package/docs/documentation/usage/meta.json +0 -10
- package/docs/knowledge-base/meta.json +0 -29
- package/docs/meta.json +0 -11
- package/docs/webhooks/addon-activated.md +0 -44
- package/docs/webhooks/addon-deactivated.md +0 -40
- package/docs/webhooks/balance-depleted.md +0 -37
- package/docs/webhooks/balance-low.md +0 -39
- package/docs/webhooks/balance-topped-up.md +0 -41
- package/docs/webhooks/checkout-ready.md +0 -43
- package/docs/webhooks/credits-depleted.md +0 -35
- package/docs/webhooks/credits-expired.md +0 -35
- package/docs/webhooks/credits-granted.md +0 -37
- package/docs/webhooks/credits-low.md +0 -39
- package/docs/webhooks/credits-purchased.md +0 -41
- package/docs/webhooks/customer-created.md +0 -49
- package/docs/webhooks/customer-state-changed.md +0 -134
- package/docs/webhooks/customer-updated.md +0 -49
- package/docs/webhooks/invoice-created.md +0 -45
- package/docs/webhooks/invoice-overdue.md +0 -53
- package/docs/webhooks/invoice-upcoming.md +0 -43
- package/docs/webhooks/invoice-voided.md +0 -53
- package/docs/webhooks/meta.json +0 -83
- package/docs/webhooks/payment-dispute-resolved.md +0 -52
- package/docs/webhooks/payment-disputed.md +0 -49
- package/docs/webhooks/payment-failed.md +0 -37
- package/docs/webhooks/payment-link-canceled.md +0 -41
- package/docs/webhooks/payment-link-completed.md +0 -47
- package/docs/webhooks/payment-link-created.md +0 -41
- package/docs/webhooks/payment-link-failed.md +0 -45
- package/docs/webhooks/payment-method-attached.md +0 -40
- package/docs/webhooks/payment-method-updated.md +0 -38
- package/docs/webhooks/payment-received.md +0 -45
- package/docs/webhooks/payment-recovered.md +0 -39
- package/docs/webhooks/payment-refunded.md +0 -47
- package/docs/webhooks/payment-retry-failed.md +0 -39
- package/docs/webhooks/payout-available.md +0 -33
- package/docs/webhooks/payout-created.md +0 -48
- package/docs/webhooks/payout-failed.md +0 -52
- package/docs/webhooks/payout-paid.md +0 -48
- package/docs/webhooks/plan-grant-created.md +0 -74
- package/docs/webhooks/plan-grant-expired.md +0 -86
- package/docs/webhooks/plan-grant-revoked.md +0 -86
- package/docs/webhooks/plan-grant-updated.md +0 -86
- package/docs/webhooks/quota-exceeded.md +0 -44
- package/docs/webhooks/quota-threshold-reached.md +0 -41
- package/docs/webhooks/seats-limit-reached.md +0 -39
- package/docs/webhooks/seats-updated.md +0 -39
- package/docs/webhooks/subscription-activated.md +0 -43
- package/docs/webhooks/subscription-canceled.md +0 -57
- package/docs/webhooks/subscription-cancellation-revoked.md +0 -37
- package/docs/webhooks/subscription-cancellation-scheduled.md +0 -45
- package/docs/webhooks/subscription-created.md +0 -35
- package/docs/webhooks/subscription-past-due.md +0 -43
- package/docs/webhooks/subscription-plan-change-revoked.md +0 -50
- package/docs/webhooks/subscription-plan-change-scheduled.md +0 -55
- package/docs/webhooks/subscription-plan-changed.md +0 -43
- package/docs/webhooks/subscription-reactivated.md +0 -53
- package/docs/webhooks/subscription-updated.md +0 -39
- package/docs/webhooks/trial-checkout-ready.md +0 -39
- package/docs/webhooks/trial-converted.md +0 -39
- package/docs/webhooks/trial-expired.md +0 -39
- package/docs/webhooks/trial-started.md +0 -46
- package/docs/webhooks/trial-will-end.md +0 -41
- package/docs/webhooks/usage-recorded.md +0 -41
package/dist/index.d.mts
CHANGED
|
@@ -126,9 +126,11 @@ type ResolvedPlanCode<TConfig> = [InferPlanCodes<TConfig>] extends [
|
|
|
126
126
|
type BillingInterval = "weekly" | "monthly" | "quarterly" | "yearly" | "one_time";
|
|
127
127
|
type ConsumptionModel = "metered" | "credits" | "balance";
|
|
128
128
|
type FeatureType = "boolean" | "usage" | "seats" | "quota";
|
|
129
|
-
type InvoiceType = "recurring" | "overage" | "plan_change" | "adjustment" | "credit_purchase" | "balance_topup" | "addon_activation" | "one_time_payment" | "reactivation";
|
|
129
|
+
type InvoiceType = "recurring" | "overage" | "plan_change" | "adjustment" | "credit_purchase" | "balance_topup" | "addon_activation" | "one_time_payment" | "reactivation" | "resume";
|
|
130
|
+
type PaymentMethod = "card" | "oxxo" | "mercado_pago";
|
|
130
131
|
type PaymentProvider = "stripe" | "commet" | "dlocal";
|
|
131
|
-
type
|
|
132
|
+
type SubPaymentMethod = "credit_card" | "debit_card" | "prepaid_card" | "bank_transfer" | "account_money";
|
|
133
|
+
type SubscriptionStatus = "draft" | "pending_payment" | "trialing" | "active" | "past_due" | "paused" | "canceled";
|
|
132
134
|
type Timezone = "UTC" | "America/New_York" | "America/Chicago" | "America/Denver" | "America/Los_Angeles" | "America/Sao_Paulo" | "America/Mexico_City" | "America/Buenos_Aires" | "America/Santiago" | "America/Bogota" | "America/Lima" | "America/Asuncion" | "Europe/London" | "Europe/Paris" | "Europe/Berlin" | "Europe/Madrid" | "Asia/Tokyo" | "Asia/Shanghai" | "Asia/Singapore" | "Asia/Dubai" | "Australia/Sydney";
|
|
133
135
|
type TransactionStatus = "pending" | "succeeded" | "failed" | "refunded" | "disputed";
|
|
134
136
|
|
|
@@ -257,6 +259,23 @@ interface CreatedSubscription {
|
|
|
257
259
|
/** @format date-time */
|
|
258
260
|
updatedAt: string;
|
|
259
261
|
offerApplications: Array<SubscriptionOfferApplication>;
|
|
262
|
+
pause: {
|
|
263
|
+
status: "scheduled";
|
|
264
|
+
mode: "period_end";
|
|
265
|
+
/** @format date-time */
|
|
266
|
+
requestedAt: string;
|
|
267
|
+
/** @format date-time */
|
|
268
|
+
effectiveAt: string;
|
|
269
|
+
resumeAt: string | null;
|
|
270
|
+
} | {
|
|
271
|
+
status: "active";
|
|
272
|
+
mode: "immediate" | "period_end";
|
|
273
|
+
/** @format date-time */
|
|
274
|
+
requestedAt: string;
|
|
275
|
+
/** @format date-time */
|
|
276
|
+
effectiveAt: string;
|
|
277
|
+
resumeAt: string | null;
|
|
278
|
+
} | null;
|
|
260
279
|
/** Payment provider resolved for this checkout when the subscription response was created. This is an informational snapshot and may differ when the checkout is loaded if its country or the organization's routing changes. */
|
|
261
280
|
checkoutProvider: PaymentProvider | null;
|
|
262
281
|
priceId: string | null;
|
|
@@ -800,6 +819,22 @@ interface Offer {
|
|
|
800
819
|
livemode: boolean;
|
|
801
820
|
}
|
|
802
821
|
interface Payment {
|
|
822
|
+
/** Charge context captured for new payments. Null for historical payments with no captured context. */
|
|
823
|
+
paymentContext: {
|
|
824
|
+
/** The original reason for the charge. Recovery never replaces this reason. */
|
|
825
|
+
reason: "first_subscription_payment" | "trial_conversion" | "recurring_billing" | "plan_change" | "reactivation" | "subscription_resume" | "one_time_payment" | "overage" | "adjustment";
|
|
826
|
+
/** The public payment link ID, independently of the reason, or null when no payment link originated the charge. */
|
|
827
|
+
paymentLinkId: string | null;
|
|
828
|
+
recovery: {
|
|
829
|
+
type: "payment_recovery";
|
|
830
|
+
} | {
|
|
831
|
+
type: "dunning_retry";
|
|
832
|
+
/** Current retry, starting at 1. The original decline is not a retry. */
|
|
833
|
+
attempt: number;
|
|
834
|
+
/** Total retries applicable to this charge's dunning schedule. */
|
|
835
|
+
maxAttempts: number;
|
|
836
|
+
} | null;
|
|
837
|
+
} | null;
|
|
803
838
|
id: string;
|
|
804
839
|
customerId: string | null;
|
|
805
840
|
kind: "link" | "charge";
|
|
@@ -1485,6 +1520,23 @@ interface Subscription {
|
|
|
1485
1520
|
/** @format date-time */
|
|
1486
1521
|
updatedAt: string;
|
|
1487
1522
|
offerApplications: Array<SubscriptionOfferApplication>;
|
|
1523
|
+
pause: {
|
|
1524
|
+
status: "scheduled";
|
|
1525
|
+
mode: "period_end";
|
|
1526
|
+
/** @format date-time */
|
|
1527
|
+
requestedAt: string;
|
|
1528
|
+
/** @format date-time */
|
|
1529
|
+
effectiveAt: string;
|
|
1530
|
+
resumeAt: string | null;
|
|
1531
|
+
} | {
|
|
1532
|
+
status: "active";
|
|
1533
|
+
mode: "immediate" | "period_end";
|
|
1534
|
+
/** @format date-time */
|
|
1535
|
+
requestedAt: string;
|
|
1536
|
+
/** @format date-time */
|
|
1537
|
+
effectiveAt: string;
|
|
1538
|
+
resumeAt: string | null;
|
|
1539
|
+
} | null;
|
|
1488
1540
|
planGrant?: {
|
|
1489
1541
|
/** The active Plan Grant ID. */
|
|
1490
1542
|
id: string;
|
|
@@ -1626,6 +1678,13 @@ type SubscriptionOfferApplicationPhase = {
|
|
|
1626
1678
|
startsAt: string | null;
|
|
1627
1679
|
endsAt: string | null;
|
|
1628
1680
|
};
|
|
1681
|
+
interface SubscriptionResume {
|
|
1682
|
+
subscriptionId: string;
|
|
1683
|
+
invoiceId: string | null;
|
|
1684
|
+
status: "processing" | "succeeded";
|
|
1685
|
+
object: "subscription_resume";
|
|
1686
|
+
livemode: boolean;
|
|
1687
|
+
}
|
|
1629
1688
|
interface SubscriptionSummary {
|
|
1630
1689
|
id: string;
|
|
1631
1690
|
customerId: string;
|
|
@@ -1672,6 +1731,23 @@ interface SubscriptionSummary {
|
|
|
1672
1731
|
/** @format date-time */
|
|
1673
1732
|
updatedAt: string;
|
|
1674
1733
|
offerApplications: Array<SubscriptionOfferApplication>;
|
|
1734
|
+
pause: {
|
|
1735
|
+
status: "scheduled";
|
|
1736
|
+
mode: "period_end";
|
|
1737
|
+
/** @format date-time */
|
|
1738
|
+
requestedAt: string;
|
|
1739
|
+
/** @format date-time */
|
|
1740
|
+
effectiveAt: string;
|
|
1741
|
+
resumeAt: string | null;
|
|
1742
|
+
} | {
|
|
1743
|
+
status: "active";
|
|
1744
|
+
mode: "immediate" | "period_end";
|
|
1745
|
+
/** @format date-time */
|
|
1746
|
+
requestedAt: string;
|
|
1747
|
+
/** @format date-time */
|
|
1748
|
+
effectiveAt: string;
|
|
1749
|
+
resumeAt: string | null;
|
|
1750
|
+
} | null;
|
|
1675
1751
|
priceId: string | null;
|
|
1676
1752
|
object: "subscription";
|
|
1677
1753
|
livemode: boolean;
|
|
@@ -1737,6 +1813,22 @@ interface TestClockRun {
|
|
|
1737
1813
|
livemode: boolean;
|
|
1738
1814
|
}
|
|
1739
1815
|
interface Transaction {
|
|
1816
|
+
/** Charge context captured for new payments. Null for historical payments with no captured context. */
|
|
1817
|
+
paymentContext: {
|
|
1818
|
+
/** The original reason for the charge. Recovery never replaces this reason. */
|
|
1819
|
+
reason: "first_subscription_payment" | "trial_conversion" | "recurring_billing" | "plan_change" | "reactivation" | "subscription_resume" | "one_time_payment" | "overage" | "adjustment";
|
|
1820
|
+
/** The public payment link ID, independently of the reason, or null when no payment link originated the charge. */
|
|
1821
|
+
paymentLinkId: string | null;
|
|
1822
|
+
recovery: {
|
|
1823
|
+
type: "payment_recovery";
|
|
1824
|
+
} | {
|
|
1825
|
+
type: "dunning_retry";
|
|
1826
|
+
/** Current retry, starting at 1. The original decline is not a retry. */
|
|
1827
|
+
attempt: number;
|
|
1828
|
+
/** Total retries applicable to this charge's dunning schedule. */
|
|
1829
|
+
maxAttempts: number;
|
|
1830
|
+
} | null;
|
|
1831
|
+
} | null;
|
|
1740
1832
|
id: string;
|
|
1741
1833
|
invoiceId: string | null;
|
|
1742
1834
|
/** Gross amount in USD cents. Null when the provider has not reported an honest USD figure; see presentmentAmount. */
|
|
@@ -1749,6 +1841,10 @@ interface Transaction {
|
|
|
1749
1841
|
currency: string;
|
|
1750
1842
|
/** The payment provider the charge was routed to: stripe, commet, or dlocal. */
|
|
1751
1843
|
provider: PaymentProvider;
|
|
1844
|
+
/** The method used for this charge: card, oxxo, or mercado_pago. Null when unknown. */
|
|
1845
|
+
paymentMethod: PaymentMethod | null;
|
|
1846
|
+
/** The source of funds for this charge, when reported by the provider. Null when unavailable or unknown. */
|
|
1847
|
+
subPaymentMethod: SubPaymentMethod | null;
|
|
1752
1848
|
status: TransactionStatus;
|
|
1753
1849
|
customerEmail: string | null;
|
|
1754
1850
|
customerName: string | null;
|
|
@@ -1762,6 +1858,22 @@ interface Transaction {
|
|
|
1762
1858
|
livemode: boolean;
|
|
1763
1859
|
}
|
|
1764
1860
|
interface TransactionListItem {
|
|
1861
|
+
/** Charge context captured for new payments. Null for historical payments with no captured context. */
|
|
1862
|
+
paymentContext: {
|
|
1863
|
+
/** The original reason for the charge. Recovery never replaces this reason. */
|
|
1864
|
+
reason: "first_subscription_payment" | "trial_conversion" | "recurring_billing" | "plan_change" | "reactivation" | "subscription_resume" | "one_time_payment" | "overage" | "adjustment";
|
|
1865
|
+
/** The public payment link ID, independently of the reason, or null when no payment link originated the charge. */
|
|
1866
|
+
paymentLinkId: string | null;
|
|
1867
|
+
recovery: {
|
|
1868
|
+
type: "payment_recovery";
|
|
1869
|
+
} | {
|
|
1870
|
+
type: "dunning_retry";
|
|
1871
|
+
/** Current retry, starting at 1. The original decline is not a retry. */
|
|
1872
|
+
attempt: number;
|
|
1873
|
+
/** Total retries applicable to this charge's dunning schedule. */
|
|
1874
|
+
maxAttempts: number;
|
|
1875
|
+
} | null;
|
|
1876
|
+
} | null;
|
|
1765
1877
|
id: string;
|
|
1766
1878
|
invoiceId: string | null;
|
|
1767
1879
|
/** Gross amount in USD cents. Null when the provider has not reported an honest USD figure; see presentmentAmount. */
|
|
@@ -1774,6 +1886,10 @@ interface TransactionListItem {
|
|
|
1774
1886
|
currency: string;
|
|
1775
1887
|
/** The payment provider the charge was routed to: stripe, commet, or dlocal. */
|
|
1776
1888
|
provider: PaymentProvider;
|
|
1889
|
+
/** The method used for this charge: card, oxxo, or mercado_pago. Null when unknown. */
|
|
1890
|
+
paymentMethod: PaymentMethod | null;
|
|
1891
|
+
/** The source of funds for this charge, when reported by the provider. Null when unavailable or unknown. */
|
|
1892
|
+
subPaymentMethod: SubPaymentMethod | null;
|
|
1777
1893
|
status: TransactionStatus;
|
|
1778
1894
|
customerEmail: string | null;
|
|
1779
1895
|
customerName: string | null;
|
|
@@ -2099,6 +2215,27 @@ interface ListApiKeysParams {
|
|
|
2099
2215
|
interface CreateApiKeyParams {
|
|
2100
2216
|
name: string;
|
|
2101
2217
|
expiresInDays?: number;
|
|
2218
|
+
permissions?: {
|
|
2219
|
+
customer?: Array<"read"> | ["read", "write"] | ["write", "read"];
|
|
2220
|
+
subscription?: Array<"read"> | ["read", "write"] | ["write", "read"];
|
|
2221
|
+
invoice?: Array<"read"> | ["read", "write"] | ["write", "read"];
|
|
2222
|
+
usage?: Array<"read"> | ["read", "write"] | ["write", "read"];
|
|
2223
|
+
seat?: Array<"read"> | ["read", "write"] | ["write", "read"];
|
|
2224
|
+
plan?: Array<"read"> | ["read", "write"] | ["write", "read"];
|
|
2225
|
+
plan_group?: Array<"read"> | ["read", "write"] | ["write", "read"];
|
|
2226
|
+
feature?: Array<"read"> | ["read", "write"] | ["write", "read"];
|
|
2227
|
+
addon?: Array<"read"> | ["read", "write"] | ["write", "read"];
|
|
2228
|
+
credit_pack?: Array<"read"> | ["read", "write"] | ["write", "read"];
|
|
2229
|
+
offer?: Array<"read"> | ["read", "write"] | ["write", "read"];
|
|
2230
|
+
promo_code?: Array<"read"> | ["read", "write"] | ["write", "read"];
|
|
2231
|
+
market_group?: Array<"read"> | ["read", "write"] | ["write", "read"];
|
|
2232
|
+
payment?: Array<"read"> | ["read", "write"] | ["write", "read"];
|
|
2233
|
+
transaction?: Array<"read"> | ["read", "write"] | ["write", "read"];
|
|
2234
|
+
payout?: Array<"read"> | ["read", "write"] | ["write", "read"];
|
|
2235
|
+
test_clock?: Array<"read"> | ["read", "write"] | ["write", "read"];
|
|
2236
|
+
organization?: Array<"read"> | ["read", "write"] | ["write", "read"];
|
|
2237
|
+
api_key?: Array<"read"> | ["read", "write"] | ["write", "read"];
|
|
2238
|
+
};
|
|
2102
2239
|
}
|
|
2103
2240
|
declare class ApiKeysResource {
|
|
2104
2241
|
private httpClient;
|
|
@@ -2112,7 +2249,7 @@ declare class ApiKeysResource {
|
|
|
2112
2249
|
hasMore: boolean;
|
|
2113
2250
|
nextCursor?: string;
|
|
2114
2251
|
}>;
|
|
2115
|
-
/** Create a
|
|
2252
|
+
/** Create a full-access or restricted API key. Provide permissions to restrict access; the full key is returned only once. A restricted key with api_key: write may only create restricted keys with the same or fewer permissions, and they expire no later than the key that creates them. */
|
|
2116
2253
|
create(params: CreateApiKeyParams, options?: RequestOptions): Promise<CreatedApiKey>;
|
|
2117
2254
|
}
|
|
2118
2255
|
|
|
@@ -2946,7 +3083,7 @@ declare class PromoCodesResource {
|
|
|
2946
3083
|
hasMore: boolean;
|
|
2947
3084
|
nextCursor?: string;
|
|
2948
3085
|
}>;
|
|
2949
|
-
/** Create a distribution code for an existing Offer
|
|
3086
|
+
/** Create a distribution code for an existing Offer with one or more sequential discount phases and an optional leading trial. The code owns redemption restrictions. */
|
|
2950
3087
|
create(params: CreatePromoCodeParams, options?: RequestOptions): Promise<PromoCode>;
|
|
2951
3088
|
}
|
|
2952
3089
|
|
|
@@ -3102,6 +3239,18 @@ interface ApplySubscriptionOfferParams {
|
|
|
3102
3239
|
interface RemoveSubscriptionOfferParams {
|
|
3103
3240
|
id: string;
|
|
3104
3241
|
}
|
|
3242
|
+
interface PauseSubscriptionParams {
|
|
3243
|
+
id: string;
|
|
3244
|
+
mode: "immediate" | "period_end";
|
|
3245
|
+
durationDays: number | null;
|
|
3246
|
+
}
|
|
3247
|
+
interface UpdateSubscriptionPauseParams {
|
|
3248
|
+
id: string;
|
|
3249
|
+
durationDays: number | null;
|
|
3250
|
+
}
|
|
3251
|
+
interface RevokeSubscriptionPauseParams {
|
|
3252
|
+
id: string;
|
|
3253
|
+
}
|
|
3105
3254
|
interface UpdatePaymentMethodParams {
|
|
3106
3255
|
id: string;
|
|
3107
3256
|
successUrl?: string;
|
|
@@ -3119,6 +3268,9 @@ interface ReactivateSubscriptionParams {
|
|
|
3119
3268
|
interface CreateSubscriptionRecoveryLinkParams {
|
|
3120
3269
|
id: string;
|
|
3121
3270
|
}
|
|
3271
|
+
interface ResumeSubscriptionParams {
|
|
3272
|
+
id: string;
|
|
3273
|
+
}
|
|
3122
3274
|
interface GetSubscriptionParams {
|
|
3123
3275
|
id: string;
|
|
3124
3276
|
}
|
|
@@ -3260,6 +3412,12 @@ declare class SubscriptionsResource {
|
|
|
3260
3412
|
applyOffer(params: ApplySubscriptionOfferParams, options?: RequestOptions): Promise<Subscription>;
|
|
3261
3413
|
/** Remove the quoted direct Offer from a subscription's pending payment checkout. The existing checkout URL remains unchanged and returns to its undiscounted price. */
|
|
3262
3414
|
removeOffer(params: RemoveSubscriptionOfferParams, options?: RequestOptions): Promise<Subscription>;
|
|
3415
|
+
/** Pause immediately or schedule a pause for the end of the current billing or trial period. Set durationDays to null for an indefinite pause. */
|
|
3416
|
+
pause(params: PauseSubscriptionParams, options?: RequestOptions): Promise<Subscription>;
|
|
3417
|
+
/** Change the duration of a scheduled or active pause. Set durationDays to null to make it indefinite. */
|
|
3418
|
+
updatePause(params: UpdateSubscriptionPauseParams, options?: RequestOptions): Promise<Subscription>;
|
|
3419
|
+
/** Revoke a pause before it becomes effective. Active pauses must be resumed instead. */
|
|
3420
|
+
revokePause(params: RevokeSubscriptionPauseParams, options?: RequestOptions): Promise<Subscription>;
|
|
3263
3421
|
/** Creates a hosted checkout session for the customer to update the subscription's default payment method. */
|
|
3264
3422
|
updatePaymentMethod(params: UpdatePaymentMethodParams, options?: RequestOptions): Promise<PaymentMethodUpdateCheckout>;
|
|
3265
3423
|
/** Preview proration details for an immediate plan change without applying it. Free-to-paid changes are never scheduled and the change-plan endpoint always returns hosted checkout for them. For paid plans, interval direction takes precedence: a longer interval is immediate and a shorter interval is scheduled. When the interval is unchanged, a higher-sort-order plan is immediate and a lower-sort-order plan is scheduled. A paid-to-free change is always scheduled. Returns credit, charge, and net amount. The target plan must belong to the same plan group as the current plan, otherwise a 400 with code `plans_not_in_same_group` is returned. A change between two free plans has nothing to prorate and returns a zero-amount estimate. Scheduled changes return a 400 with code `plan_change_scheduled`; apply those via the change-plan endpoint. Pass offerId to quote the destination plan with an Offer. */
|
|
@@ -3268,6 +3426,8 @@ declare class SubscriptionsResource {
|
|
|
3268
3426
|
reactivate(params: ReactivateSubscriptionParams, options?: RequestOptions): Promise<ReactivatedSubscription>;
|
|
3269
3427
|
/** Generates a hosted, signed recovery link that lets the customer pay the outstanding renewal charge for a past_due subscription. Unlike reactivate, which charges server-to-server, this returns a link the merchant can deliver through their own email, SMS, or dashboard. The link carries a self-contained signed token and stays valid until the charge is paid or the subscription is no longer past due. */
|
|
3270
3428
|
createRecoveryLink(params: CreateSubscriptionRecoveryLinkParams, options?: RequestOptions): Promise<RecoveryLink>;
|
|
3429
|
+
/** Resume a paused subscription. Immediate pauses continue the preserved period without a charge. Period-end pauses charge a new period before access is restored. */
|
|
3430
|
+
resume(params: ResumeSubscriptionParams, options?: RequestOptions): Promise<SubscriptionResume>;
|
|
3271
3431
|
/** Get a subscription by its public ID, regardless of status (including pending_payment and past_due). */
|
|
3272
3432
|
get(params: GetSubscriptionParams, options?: RequestOptions): Promise<Subscription>;
|
|
3273
3433
|
/** Revert a scheduled cancellation and return the updated subscription. Only works before cancellation takes effect. */
|
|
@@ -3281,7 +3441,7 @@ declare class SubscriptionsResource {
|
|
|
3281
3441
|
hasMore: boolean;
|
|
3282
3442
|
nextCursor?: string;
|
|
3283
3443
|
}>;
|
|
3284
|
-
/** Create a subscription for a customer. Commet selects the default price when priceId is omitted
|
|
3444
|
+
/** Create a subscription for a customer. Commet selects the default price when priceId is omitted. The subscription starts at the base USD price; market and currency are resolved from the buyer's request country when the checkout opens. Without an offer override, Commet applies the price's automatic introductory Offer. Pass offerId to apply an active compatible Offer directly, or cardPromotionId to preselect a card-eligible Promotional Offer for the initial checkout when card promotions are enabled for the organization. For the initial checkout, provider accepts either a processor name or an exact payment connection ID. */
|
|
3285
3445
|
create(params: CreateSubscriptionParams, options?: RequestOptions): Promise<CreatedSubscription>;
|
|
3286
3446
|
}
|
|
3287
3447
|
|
|
@@ -3419,7 +3579,7 @@ declare class GeneratedResources {
|
|
|
3419
3579
|
protected initResources(http: CommetHTTPClient): void;
|
|
3420
3580
|
}
|
|
3421
3581
|
|
|
3422
|
-
type WebhookEvent = "subscription.created" | "subscription.activated" | "subscription.reactivated" | "subscription.canceled" | "subscription.updated" | "subscription.plan_changed" | "subscription.cancellation_scheduled" | "subscription.cancellation_revoked" | "subscription.plan_change_scheduled" | "subscription.plan_change_revoked" | "subscription.past_due" | "trial.started" | "trial.converted" | "trial.expired" | "trial.will_end" | "trial.checkout_ready" | "checkout.ready" | "payment.received" | "payment.failed" | "payment.recovered" | "payment.retry_failed" | "payment.refunded" | "payment.disputed" | "payment.dispute_resolved" | "payment_link.created" | "payment_link.completed" | "payment_link.failed" | "payment_link.canceled" | "invoice.created" | "invoice.voided" | "invoice.overdue" | "invoice.upcoming" | "payment_method.attached" | "payment_method.updated" | "customer.created" | "customer.updated" | "customer.state_changed" | "plan_grant.created" | "plan_grant.updated" | "plan_grant.expired" | "plan_grant.revoked" | "credits.granted" | "credits.purchased" | "credits.low" | "credits.depleted" | "credits.expired" | "balance.topped_up" | "balance.low" | "balance.depleted" | "quota.threshold_reached" | "quota.exceeded" | "seats.updated" | "seats.limit_reached" | "addon.activated" | "addon.deactivated" | "usage.recorded" | "payout.available" | "payout.created" | "payout.paid" | "payout.failed";
|
|
3582
|
+
type WebhookEvent = "subscription.created" | "subscription.activated" | "subscription.reactivated" | "subscription.pause_scheduled" | "subscription.pause_updated" | "subscription.pause_revoked" | "subscription.paused" | "subscription.resumed" | "subscription.resume_failed" | "subscription.canceled" | "subscription.updated" | "subscription.plan_changed" | "subscription.cancellation_scheduled" | "subscription.cancellation_revoked" | "subscription.plan_change_scheduled" | "subscription.plan_change_revoked" | "subscription.past_due" | "trial.started" | "trial.converted" | "trial.expired" | "trial.will_end" | "trial.checkout_ready" | "checkout.ready" | "payment.received" | "payment.failed" | "payment.recovered" | "payment.retry_failed" | "payment.refunded" | "payment.disputed" | "payment.dispute_resolved" | "payment_link.created" | "payment_link.completed" | "payment_link.failed" | "payment_link.canceled" | "invoice.created" | "invoice.voided" | "invoice.overdue" | "invoice.upcoming" | "payment_method.attached" | "payment_method.updated" | "customer.created" | "customer.updated" | "customer.state_changed" | "plan_grant.created" | "plan_grant.updated" | "plan_grant.expired" | "plan_grant.revoked" | "credits.granted" | "credits.purchased" | "credits.low" | "credits.depleted" | "credits.expired" | "balance.topped_up" | "balance.low" | "balance.depleted" | "quota.threshold_reached" | "quota.exceeded" | "seats.updated" | "seats.limit_reached" | "addon.activated" | "addon.deactivated" | "usage.recorded" | "payout.available" | "payout.created" | "payout.paid" | "payout.failed";
|
|
3423
3583
|
/** Fired when a subscription record is created with status pending_payment. The first charge has not been confirmed yet — do NOT grant access here. Wait for subscription.activated. */
|
|
3424
3584
|
interface SubscriptionCreatedData {
|
|
3425
3585
|
/** The subscription ID. */
|
|
@@ -3487,7 +3647,102 @@ interface SubscriptionReactivatedData {
|
|
|
3487
3647
|
/** The payment provider that processed the reactivation charge: stripe, commet, or dlocal. */
|
|
3488
3648
|
provider: "stripe" | "commet" | "dlocal";
|
|
3489
3649
|
}
|
|
3490
|
-
/** Fired when a
|
|
3650
|
+
/** Fired when a period-end pause is scheduled. Access and billing continue until effectiveAt. */
|
|
3651
|
+
interface SubscriptionPauseScheduledData {
|
|
3652
|
+
/** The paused subscription ID. */
|
|
3653
|
+
subscriptionId: string;
|
|
3654
|
+
/** The customer ID for the paused subscription. */
|
|
3655
|
+
customerId: string;
|
|
3656
|
+
/** Current subscription status. */
|
|
3657
|
+
status: "active" | "trialing";
|
|
3658
|
+
/** The scheduled pause mode. */
|
|
3659
|
+
mode: "period_end";
|
|
3660
|
+
/**
|
|
3661
|
+
* When the pause becomes or became effective.
|
|
3662
|
+
* @format date-time
|
|
3663
|
+
*/
|
|
3664
|
+
effectiveAt: string;
|
|
3665
|
+
/** When automatic resume is scheduled, or null when indefinite. */
|
|
3666
|
+
resumeAt: string | null;
|
|
3667
|
+
}
|
|
3668
|
+
/** Fired when the finite or indefinite pause duration changes. */
|
|
3669
|
+
interface SubscriptionPauseUpdatedData {
|
|
3670
|
+
/** The paused subscription ID. */
|
|
3671
|
+
subscriptionId: string;
|
|
3672
|
+
/** The customer ID for the paused subscription. */
|
|
3673
|
+
customerId: string;
|
|
3674
|
+
/** Current subscription status. */
|
|
3675
|
+
status: "active" | "trialing" | "paused";
|
|
3676
|
+
/**
|
|
3677
|
+
* When the pause becomes or became effective.
|
|
3678
|
+
* @format date-time
|
|
3679
|
+
*/
|
|
3680
|
+
effectiveAt: string;
|
|
3681
|
+
/** When automatic resume is scheduled, or null when indefinite. */
|
|
3682
|
+
resumeAt: string | null;
|
|
3683
|
+
}
|
|
3684
|
+
/** Fired when a scheduled pause is revoked before it becomes effective. */
|
|
3685
|
+
interface SubscriptionPauseRevokedData {
|
|
3686
|
+
/** The paused subscription ID. */
|
|
3687
|
+
subscriptionId: string;
|
|
3688
|
+
/** The customer ID for the paused subscription. */
|
|
3689
|
+
customerId: string;
|
|
3690
|
+
/** Current subscription status. */
|
|
3691
|
+
status: "active" | "trialing";
|
|
3692
|
+
}
|
|
3693
|
+
/** Fired when a pause becomes effective and access is revoked. */
|
|
3694
|
+
interface SubscriptionPausedData {
|
|
3695
|
+
/** The paused subscription ID. */
|
|
3696
|
+
subscriptionId: string;
|
|
3697
|
+
/** The customer ID for the paused subscription. */
|
|
3698
|
+
customerId: string;
|
|
3699
|
+
/** The subscription status after pausing. */
|
|
3700
|
+
status: "paused";
|
|
3701
|
+
/** How the pause became effective. */
|
|
3702
|
+
mode: "immediate" | "period_end";
|
|
3703
|
+
/**
|
|
3704
|
+
* When the pause becomes or became effective.
|
|
3705
|
+
* @format date-time
|
|
3706
|
+
*/
|
|
3707
|
+
effectiveAt: string;
|
|
3708
|
+
/** When automatic resume is scheduled, or null when indefinite. */
|
|
3709
|
+
resumeAt: string | null;
|
|
3710
|
+
}
|
|
3711
|
+
/** Fired after a paused subscription restores access. */
|
|
3712
|
+
interface SubscriptionResumedData {
|
|
3713
|
+
/** The paused subscription ID. */
|
|
3714
|
+
subscriptionId: string;
|
|
3715
|
+
/** The customer ID for the paused subscription. */
|
|
3716
|
+
customerId: string;
|
|
3717
|
+
/** The restored subscription status. */
|
|
3718
|
+
status: "active" | "trialing";
|
|
3719
|
+
/** The completed pause mode. */
|
|
3720
|
+
mode: "immediate" | "period_end";
|
|
3721
|
+
/**
|
|
3722
|
+
* When access was restored.
|
|
3723
|
+
* @format date-time
|
|
3724
|
+
*/
|
|
3725
|
+
resumedAt: string;
|
|
3726
|
+
/** The resume invoice ID, or null when no charge was required. */
|
|
3727
|
+
invoiceId: string | null;
|
|
3728
|
+
}
|
|
3729
|
+
/** Fired when a period-end resume charge fails. The subscription remains paused. */
|
|
3730
|
+
interface SubscriptionResumeFailedData {
|
|
3731
|
+
/** The paused subscription ID. */
|
|
3732
|
+
subscriptionId: string;
|
|
3733
|
+
/** The customer ID for the paused subscription. */
|
|
3734
|
+
customerId: string;
|
|
3735
|
+
/** The unchanged subscription status. */
|
|
3736
|
+
status: "paused";
|
|
3737
|
+
/** The outstanding resume invoice ID. */
|
|
3738
|
+
invoiceId: string;
|
|
3739
|
+
/**
|
|
3740
|
+
* When the resume charge failed.
|
|
3741
|
+
* @format date-time
|
|
3742
|
+
*/
|
|
3743
|
+
failedAt: string;
|
|
3744
|
+
}
|
|
3745
|
+
/** Fired when a subscription is actually terminated. A scheduled cancellation fires it at the end of the billing period; immediate cancellations and exhausted dunning retries (cancelReason dunning_exhausted) fire it right away. Refunds do not terminate subscriptions. The status is now canceled and access should be revoked. This event is NOT fired when cancellation is scheduled — that triggers subscription.updated instead. See the cancellation lifecycle below. */
|
|
3491
3746
|
interface SubscriptionCanceledData {
|
|
3492
3747
|
/** The subscription ID. */
|
|
3493
3748
|
subscriptionId: string;
|
|
@@ -3497,7 +3752,7 @@ interface SubscriptionCanceledData {
|
|
|
3497
3752
|
status: string;
|
|
3498
3753
|
/** ISO 8601 datetime when the cancellation was requested or triggered. */
|
|
3499
3754
|
canceledAt?: string;
|
|
3500
|
-
/** The reason for cancellation, if provided. Set
|
|
3755
|
+
/** The reason for cancellation, if provided. Set to "dunning_exhausted" when all payment retries fail. Historical refund-triggered cancellations may have "refund". */
|
|
3501
3756
|
cancelReason: string | null;
|
|
3502
3757
|
/** ISO 8601 datetime when the subscription ended. Matches the billing period end for scheduled cancellations; for immediate terminations it is the moment of termination. */
|
|
3503
3758
|
endDate?: string;
|
|
@@ -3701,6 +3956,22 @@ interface CheckoutReadyData {
|
|
|
3701
3956
|
}
|
|
3702
3957
|
/** Fired every time a payment settles successfully — the first payment and every renewal alike. subscription.activated fires alongside it only on the first one. */
|
|
3703
3958
|
interface PaymentReceivedData {
|
|
3959
|
+
/** Charge context captured for new payments. Null for historical payments with no captured context. */
|
|
3960
|
+
paymentContext: {
|
|
3961
|
+
/** The original reason for the charge. Recovery never replaces this reason. */
|
|
3962
|
+
reason: "first_subscription_payment" | "trial_conversion" | "recurring_billing" | "plan_change" | "reactivation" | "subscription_resume" | "one_time_payment" | "overage" | "adjustment";
|
|
3963
|
+
/** The public payment link ID, independently of the reason, or null when no payment link originated the charge. */
|
|
3964
|
+
paymentLinkId: string | null;
|
|
3965
|
+
recovery: {
|
|
3966
|
+
type: "payment_recovery";
|
|
3967
|
+
} | {
|
|
3968
|
+
type: "dunning_retry";
|
|
3969
|
+
/** Current retry, starting at 1. The original decline is not a retry. */
|
|
3970
|
+
attempt: number;
|
|
3971
|
+
/** Total retries applicable to this charge's dunning schedule. */
|
|
3972
|
+
maxAttempts: number;
|
|
3973
|
+
} | null;
|
|
3974
|
+
} | null;
|
|
3704
3975
|
/** The invoice ID. */
|
|
3705
3976
|
invoiceId: string;
|
|
3706
3977
|
/** The human-readable invoice number. */
|
|
@@ -3715,6 +3986,10 @@ interface PaymentReceivedData {
|
|
|
3715
3986
|
paymentTransactionId: string | null;
|
|
3716
3987
|
/** The payment provider the charge was routed to: stripe, commet, or dlocal. Null for billing-only charges with no Commet ledger row. */
|
|
3717
3988
|
provider: "stripe" | "commet" | "dlocal" | null;
|
|
3989
|
+
/** The payment method: card, oxxo, or mercado_pago. Null when unknown. */
|
|
3990
|
+
paymentMethod: PaymentMethod | null;
|
|
3991
|
+
/** The source of funds for this charge, when reported by the provider. Null when unavailable or unknown. */
|
|
3992
|
+
subPaymentMethod: SubPaymentMethod | null;
|
|
3718
3993
|
/** Gross amount in cents before fees. */
|
|
3719
3994
|
grossAmount: number | null;
|
|
3720
3995
|
/** The payment currency code. */
|
|
@@ -3726,8 +4001,24 @@ interface PaymentReceivedData {
|
|
|
3726
4001
|
/** ISO 8601 datetime when the payment was received. */
|
|
3727
4002
|
paidAt?: string;
|
|
3728
4003
|
}
|
|
3729
|
-
/** Fired when
|
|
4004
|
+
/** Fired when an invoice-linked subscription charge fails. */
|
|
3730
4005
|
interface PaymentFailedData {
|
|
4006
|
+
/** Charge context captured for new payments. Null for historical payments with no captured context. */
|
|
4007
|
+
paymentContext: {
|
|
4008
|
+
/** The original reason for the charge. Recovery never replaces this reason. */
|
|
4009
|
+
reason: "first_subscription_payment" | "trial_conversion" | "recurring_billing" | "plan_change" | "reactivation" | "subscription_resume" | "one_time_payment" | "overage" | "adjustment";
|
|
4010
|
+
/** The public payment link ID, independently of the reason, or null when no payment link originated the charge. */
|
|
4011
|
+
paymentLinkId: string | null;
|
|
4012
|
+
recovery: {
|
|
4013
|
+
type: "payment_recovery";
|
|
4014
|
+
} | {
|
|
4015
|
+
type: "dunning_retry";
|
|
4016
|
+
/** Current retry, starting at 1. The original decline is not a retry. */
|
|
4017
|
+
attempt: number;
|
|
4018
|
+
/** Total retries applicable to this charge's dunning schedule. */
|
|
4019
|
+
maxAttempts: number;
|
|
4020
|
+
} | null;
|
|
4021
|
+
} | null;
|
|
3731
4022
|
/** The invoice ID, if available. */
|
|
3732
4023
|
invoiceId: string;
|
|
3733
4024
|
/** The human-readable invoice number, if available. */
|
|
@@ -3738,6 +4029,10 @@ interface PaymentFailedData {
|
|
|
3738
4029
|
subscriptionId: string | null;
|
|
3739
4030
|
/** The payment provider the charge was routed to: stripe, commet, or dlocal. */
|
|
3740
4031
|
provider: "stripe" | "commet" | "dlocal";
|
|
4032
|
+
/** The payment method: card, oxxo, or mercado_pago. Null when unknown. */
|
|
4033
|
+
paymentMethod: PaymentMethod | null;
|
|
4034
|
+
/** The source of funds for this charge, when reported by the provider. Null when unavailable or unknown. */
|
|
4035
|
+
subPaymentMethod: SubPaymentMethod | null;
|
|
3741
4036
|
/** The failure code from the payment processor. */
|
|
3742
4037
|
failureCode: string;
|
|
3743
4038
|
/** A human-readable failure message. */
|
|
@@ -3759,6 +4054,10 @@ interface PaymentRecoveredData {
|
|
|
3759
4054
|
subscriptionId: string | null;
|
|
3760
4055
|
/** The payment provider that recovered the payment, or null when the invoice was recovered without a processor charge. */
|
|
3761
4056
|
provider: "stripe" | "commet" | "dlocal" | null;
|
|
4057
|
+
/** The payment method: card, oxxo, or mercado_pago. Null when unknown. */
|
|
4058
|
+
paymentMethod: PaymentMethod | null;
|
|
4059
|
+
/** The source of funds for this charge, when reported by the provider. Null when unavailable or unknown. */
|
|
4060
|
+
subPaymentMethod: SubPaymentMethod | null;
|
|
3762
4061
|
}
|
|
3763
4062
|
/** Fired when all dunning retries are exhausted and the subscription is canceled. This is the terminal event of the dunning flow — payment.recovered will not follow. Revoke access when you receive this. */
|
|
3764
4063
|
interface PaymentRetryFailedData {
|
|
@@ -3775,7 +4074,7 @@ interface PaymentRetryFailedData {
|
|
|
3775
4074
|
/** Terminal dunning reason, usually the last processor decline code or "dunning_exhausted". */
|
|
3776
4075
|
reason: string;
|
|
3777
4076
|
}
|
|
3778
|
-
/** Fired when a payment is refunded, fully or partially. A
|
|
4077
|
+
/** Fired when a payment is refunded, fully or partially. A refund does not change the subscription. Cancel it separately if it should end. */
|
|
3779
4078
|
interface PaymentRefundedData {
|
|
3780
4079
|
/** The refunded payment transaction ID. */
|
|
3781
4080
|
paymentTransactionId: string;
|
|
@@ -3861,6 +4160,22 @@ interface PaymentLinkCreatedData {
|
|
|
3861
4160
|
}
|
|
3862
4161
|
/** Fired when a payment link is paid. The charge settled and a one-time invoice was generated. Fulfill the purchase on this event. */
|
|
3863
4162
|
interface PaymentLinkCompletedData {
|
|
4163
|
+
/** Charge context captured for new payments. Null for historical payments with no captured context. */
|
|
4164
|
+
paymentContext: {
|
|
4165
|
+
/** The original reason for the charge. Recovery never replaces this reason. */
|
|
4166
|
+
reason: "first_subscription_payment" | "trial_conversion" | "recurring_billing" | "plan_change" | "reactivation" | "subscription_resume" | "one_time_payment" | "overage" | "adjustment";
|
|
4167
|
+
/** The public payment link ID, independently of the reason, or null when no payment link originated the charge. */
|
|
4168
|
+
paymentLinkId: string | null;
|
|
4169
|
+
recovery: {
|
|
4170
|
+
type: "payment_recovery";
|
|
4171
|
+
} | {
|
|
4172
|
+
type: "dunning_retry";
|
|
4173
|
+
/** Current retry, starting at 1. The original decline is not a retry. */
|
|
4174
|
+
attempt: number;
|
|
4175
|
+
/** Total retries applicable to this charge's dunning schedule. */
|
|
4176
|
+
maxAttempts: number;
|
|
4177
|
+
} | null;
|
|
4178
|
+
} | null;
|
|
3864
4179
|
/** The payment link ID. */
|
|
3865
4180
|
paymentId: string;
|
|
3866
4181
|
/** The link status. Always "succeeded" for this event. */
|
|
@@ -3879,9 +4194,29 @@ interface PaymentLinkCompletedData {
|
|
|
3879
4194
|
invoiceNumber: string;
|
|
3880
4195
|
/** The payment transaction ID for the settled charge. */
|
|
3881
4196
|
paymentTransactionId: string | null;
|
|
4197
|
+
/** The payment method: card, oxxo, or mercado_pago. Null when unknown. */
|
|
4198
|
+
paymentMethod: PaymentMethod | null;
|
|
4199
|
+
/** The source of funds for this charge, when reported by the provider. Null when unavailable or unknown. */
|
|
4200
|
+
subPaymentMethod: SubPaymentMethod | null;
|
|
3882
4201
|
}
|
|
3883
4202
|
/** Fired when a payment link charge attempt is declined. The link stays open and can be paid again — a failed link is retryable. */
|
|
3884
4203
|
interface PaymentLinkFailedData {
|
|
4204
|
+
/** Charge context captured for new payments. Null for historical payments with no captured context. */
|
|
4205
|
+
paymentContext: {
|
|
4206
|
+
/** The original reason for the charge. Recovery never replaces this reason. */
|
|
4207
|
+
reason: "first_subscription_payment" | "trial_conversion" | "recurring_billing" | "plan_change" | "reactivation" | "subscription_resume" | "one_time_payment" | "overage" | "adjustment";
|
|
4208
|
+
/** The public payment link ID, independently of the reason, or null when no payment link originated the charge. */
|
|
4209
|
+
paymentLinkId: string | null;
|
|
4210
|
+
recovery: {
|
|
4211
|
+
type: "payment_recovery";
|
|
4212
|
+
} | {
|
|
4213
|
+
type: "dunning_retry";
|
|
4214
|
+
/** Current retry, starting at 1. The original decline is not a retry. */
|
|
4215
|
+
attempt: number;
|
|
4216
|
+
/** Total retries applicable to this charge's dunning schedule. */
|
|
4217
|
+
maxAttempts: number;
|
|
4218
|
+
} | null;
|
|
4219
|
+
} | null;
|
|
3885
4220
|
/** The payment link ID. */
|
|
3886
4221
|
paymentId: string;
|
|
3887
4222
|
/** The link status. Always "failed" for this event. */
|
|
@@ -3898,6 +4233,10 @@ interface PaymentLinkFailedData {
|
|
|
3898
4233
|
failureCode: string;
|
|
3899
4234
|
/** A human-readable failure message. */
|
|
3900
4235
|
failureMessage: string;
|
|
4236
|
+
/** The payment method: card, oxxo, or mercado_pago. Null when unknown. */
|
|
4237
|
+
paymentMethod: PaymentMethod | null;
|
|
4238
|
+
/** The source of funds for this charge, when reported by the provider. Null when unavailable or unknown. */
|
|
4239
|
+
subPaymentMethod: SubPaymentMethod | null;
|
|
3901
4240
|
}
|
|
3902
4241
|
/** Fired when a pending payment link is canceled before being paid. A canceled link can no longer be paid. */
|
|
3903
4242
|
interface PaymentLinkCanceledData {
|
|
@@ -4018,6 +4357,8 @@ interface PaymentMethodAttachedData {
|
|
|
4018
4357
|
subscriptionId: string;
|
|
4019
4358
|
/** The customer ID. Returns your externalId if you provided one when creating the customer, otherwise returns the Commet publicId. */
|
|
4020
4359
|
customerId: string;
|
|
4360
|
+
/** The payment method: card, oxxo, or mercado_pago. Null when unknown. */
|
|
4361
|
+
paymentMethod: PaymentMethod | null;
|
|
4021
4362
|
/** Card display metadata: brand, last4, expMonth, expYear. Null when the method is not a card or its details cannot be retrieved. */
|
|
4022
4363
|
card: WebhookCardInfo | null;
|
|
4023
4364
|
}
|
|
@@ -4025,6 +4366,8 @@ interface PaymentMethodAttachedData {
|
|
|
4025
4366
|
interface PaymentMethodUpdatedData {
|
|
4026
4367
|
/** The customer ID. Returns your externalId if you provided one when creating the customer, otherwise returns the Commet publicId. */
|
|
4027
4368
|
customerId: string;
|
|
4369
|
+
/** The payment method: card, oxxo, or mercado_pago. Null when unknown. */
|
|
4370
|
+
paymentMethod: PaymentMethod | null;
|
|
4028
4371
|
/** Card display metadata for the new method: brand, last4, expMonth, expYear. Null when the method is not a card or its details cannot be retrieved. */
|
|
4029
4372
|
card: WebhookCardInfo | null;
|
|
4030
4373
|
}
|
|
@@ -4074,11 +4417,11 @@ interface CustomerUpdatedData {
|
|
|
4074
4417
|
/** ISO 8601 datetime of this update. */
|
|
4075
4418
|
updatedAt: string;
|
|
4076
4419
|
}
|
|
4077
|
-
/** Aggregate entitlement event answering one question: what can this customer access right now? Fired on every entitlement transition (subscription lifecycle, plan changes, trials, past due, scheduled cancellations) with the customer's CURRENT subscription, plan, features, seats, and credits or balance. Handle this single event to keep access in sync instead of wiring every lifecycle event. */
|
|
4420
|
+
/** Aggregate entitlement event answering one question: what can this customer access right now? Fired on every entitlement transition (subscription lifecycle, pauses, plan changes, trials, past due, scheduled cancellations) with the customer's CURRENT subscription, plan, features, seats, and credits or balance. Handle this single event to keep access in sync instead of wiring every lifecycle event. */
|
|
4078
4421
|
interface CustomerStateChangedData {
|
|
4079
4422
|
/** The customer ID. Returns your externalId if you provided one when creating the customer, otherwise returns the Commet publicId. */
|
|
4080
4423
|
customerId: string;
|
|
4081
|
-
/** What caused the transition. One of: subscription_created, subscription_activated, subscription_canceled, plan_change, past_due, trial_started, trial_converted, trial_expired, cancellation_scheduled, cancellation_revoked, seats_updated, addon_activated, addon_deactivated, credits_depleted, balance_depleted, quota_exceeded, plan_access_granted, plan_access_ended. */
|
|
4424
|
+
/** What caused the transition. One of: subscription_created, subscription_activated, subscription_canceled, subscription_paused, subscription_resumed, plan_change, past_due, trial_started, trial_converted, trial_expired, cancellation_scheduled, cancellation_revoked, seats_updated, addon_activated, addon_deactivated, credits_depleted, balance_depleted, quota_exceeded, plan_access_granted, plan_access_ended. */
|
|
4082
4425
|
trigger: string;
|
|
4083
4426
|
/** The customer's current subscription status, or "none" when no live subscription exists. Access is granted while trialing, active, or past_due — past_due is a permissive grace window during dunning. */
|
|
4084
4427
|
status: string;
|
|
@@ -4775,11 +5118,17 @@ interface WebhookEventEnvelope<E extends WebhookEvent, D> {
|
|
|
4775
5118
|
apiVersion: string;
|
|
4776
5119
|
data: D;
|
|
4777
5120
|
}
|
|
4778
|
-
type WebhookEventPayload = WebhookEventEnvelope<"subscription.created", SubscriptionCreatedData> | WebhookEventEnvelope<"subscription.activated", SubscriptionActivatedData> | WebhookEventEnvelope<"subscription.reactivated", SubscriptionReactivatedData> | WebhookEventEnvelope<"subscription.canceled", SubscriptionCanceledData> | WebhookEventEnvelope<"subscription.updated", SubscriptionUpdatedData> | WebhookEventEnvelope<"subscription.plan_changed", SubscriptionPlanChangedData> | WebhookEventEnvelope<"subscription.cancellation_scheduled", SubscriptionCancellationScheduledData> | WebhookEventEnvelope<"subscription.cancellation_revoked", SubscriptionCancellationRevokedData> | WebhookEventEnvelope<"subscription.plan_change_scheduled", SubscriptionPlanChangeScheduledData> | WebhookEventEnvelope<"subscription.plan_change_revoked", SubscriptionPlanChangeRevokedData> | WebhookEventEnvelope<"subscription.past_due", SubscriptionPastDueData> | WebhookEventEnvelope<"trial.started", TrialStartedData> | WebhookEventEnvelope<"trial.converted", TrialConvertedData> | WebhookEventEnvelope<"trial.expired", TrialExpiredData> | WebhookEventEnvelope<"trial.will_end", TrialWillEndData> | WebhookEventEnvelope<"trial.checkout_ready", TrialCheckoutReadyData> | WebhookEventEnvelope<"checkout.ready", CheckoutReadyData> | WebhookEventEnvelope<"payment.received", PaymentReceivedData> | WebhookEventEnvelope<"payment.failed", PaymentFailedData> | WebhookEventEnvelope<"payment.recovered", PaymentRecoveredData> | WebhookEventEnvelope<"payment.retry_failed", PaymentRetryFailedData> | WebhookEventEnvelope<"payment.refunded", PaymentRefundedData> | WebhookEventEnvelope<"payment.disputed", PaymentDisputedData> | WebhookEventEnvelope<"payment.dispute_resolved", PaymentDisputeResolvedData> | WebhookEventEnvelope<"payment_link.created", PaymentLinkCreatedData> | WebhookEventEnvelope<"payment_link.completed", PaymentLinkCompletedData> | WebhookEventEnvelope<"payment_link.failed", PaymentLinkFailedData> | WebhookEventEnvelope<"payment_link.canceled", PaymentLinkCanceledData> | WebhookEventEnvelope<"invoice.created", InvoiceCreatedData> | WebhookEventEnvelope<"invoice.voided", InvoiceVoidedData> | WebhookEventEnvelope<"invoice.overdue", InvoiceOverdueData> | WebhookEventEnvelope<"invoice.upcoming", InvoiceUpcomingData> | WebhookEventEnvelope<"payment_method.attached", PaymentMethodAttachedData> | WebhookEventEnvelope<"payment_method.updated", PaymentMethodUpdatedData> | WebhookEventEnvelope<"customer.created", CustomerCreatedData> | WebhookEventEnvelope<"customer.updated", CustomerUpdatedData> | WebhookEventEnvelope<"customer.state_changed", CustomerStateChangedData> | WebhookEventEnvelope<"plan_grant.created", PlanGrantCreatedData> | WebhookEventEnvelope<"plan_grant.updated", PlanGrantUpdatedData> | WebhookEventEnvelope<"plan_grant.expired", PlanGrantExpiredData> | WebhookEventEnvelope<"plan_grant.revoked", PlanGrantRevokedData> | WebhookEventEnvelope<"credits.granted", CreditsGrantedData> | WebhookEventEnvelope<"credits.purchased", CreditsPurchasedData> | WebhookEventEnvelope<"credits.low", CreditsLowData> | WebhookEventEnvelope<"credits.depleted", CreditsDepletedData> | WebhookEventEnvelope<"credits.expired", CreditsExpiredData> | WebhookEventEnvelope<"balance.topped_up", BalanceToppedUpData> | WebhookEventEnvelope<"balance.low", BalanceLowData> | WebhookEventEnvelope<"balance.depleted", BalanceDepletedData> | WebhookEventEnvelope<"quota.threshold_reached", QuotaThresholdReachedData> | WebhookEventEnvelope<"quota.exceeded", QuotaExceededData> | WebhookEventEnvelope<"seats.updated", SeatsUpdatedData> | WebhookEventEnvelope<"seats.limit_reached", SeatsLimitReachedData> | WebhookEventEnvelope<"addon.activated", AddonActivatedData> | WebhookEventEnvelope<"addon.deactivated", AddonDeactivatedData> | WebhookEventEnvelope<"usage.recorded", UsageRecordedData> | WebhookEventEnvelope<"payout.available", PayoutAvailableData> | WebhookEventEnvelope<"payout.created", PayoutCreatedData> | WebhookEventEnvelope<"payout.paid", PayoutPaidData> | WebhookEventEnvelope<"payout.failed", PayoutFailedData>;
|
|
5121
|
+
type WebhookEventPayload = WebhookEventEnvelope<"subscription.created", SubscriptionCreatedData> | WebhookEventEnvelope<"subscription.activated", SubscriptionActivatedData> | WebhookEventEnvelope<"subscription.reactivated", SubscriptionReactivatedData> | WebhookEventEnvelope<"subscription.pause_scheduled", SubscriptionPauseScheduledData> | WebhookEventEnvelope<"subscription.pause_updated", SubscriptionPauseUpdatedData> | WebhookEventEnvelope<"subscription.pause_revoked", SubscriptionPauseRevokedData> | WebhookEventEnvelope<"subscription.paused", SubscriptionPausedData> | WebhookEventEnvelope<"subscription.resumed", SubscriptionResumedData> | WebhookEventEnvelope<"subscription.resume_failed", SubscriptionResumeFailedData> | WebhookEventEnvelope<"subscription.canceled", SubscriptionCanceledData> | WebhookEventEnvelope<"subscription.updated", SubscriptionUpdatedData> | WebhookEventEnvelope<"subscription.plan_changed", SubscriptionPlanChangedData> | WebhookEventEnvelope<"subscription.cancellation_scheduled", SubscriptionCancellationScheduledData> | WebhookEventEnvelope<"subscription.cancellation_revoked", SubscriptionCancellationRevokedData> | WebhookEventEnvelope<"subscription.plan_change_scheduled", SubscriptionPlanChangeScheduledData> | WebhookEventEnvelope<"subscription.plan_change_revoked", SubscriptionPlanChangeRevokedData> | WebhookEventEnvelope<"subscription.past_due", SubscriptionPastDueData> | WebhookEventEnvelope<"trial.started", TrialStartedData> | WebhookEventEnvelope<"trial.converted", TrialConvertedData> | WebhookEventEnvelope<"trial.expired", TrialExpiredData> | WebhookEventEnvelope<"trial.will_end", TrialWillEndData> | WebhookEventEnvelope<"trial.checkout_ready", TrialCheckoutReadyData> | WebhookEventEnvelope<"checkout.ready", CheckoutReadyData> | WebhookEventEnvelope<"payment.received", PaymentReceivedData> | WebhookEventEnvelope<"payment.failed", PaymentFailedData> | WebhookEventEnvelope<"payment.recovered", PaymentRecoveredData> | WebhookEventEnvelope<"payment.retry_failed", PaymentRetryFailedData> | WebhookEventEnvelope<"payment.refunded", PaymentRefundedData> | WebhookEventEnvelope<"payment.disputed", PaymentDisputedData> | WebhookEventEnvelope<"payment.dispute_resolved", PaymentDisputeResolvedData> | WebhookEventEnvelope<"payment_link.created", PaymentLinkCreatedData> | WebhookEventEnvelope<"payment_link.completed", PaymentLinkCompletedData> | WebhookEventEnvelope<"payment_link.failed", PaymentLinkFailedData> | WebhookEventEnvelope<"payment_link.canceled", PaymentLinkCanceledData> | WebhookEventEnvelope<"invoice.created", InvoiceCreatedData> | WebhookEventEnvelope<"invoice.voided", InvoiceVoidedData> | WebhookEventEnvelope<"invoice.overdue", InvoiceOverdueData> | WebhookEventEnvelope<"invoice.upcoming", InvoiceUpcomingData> | WebhookEventEnvelope<"payment_method.attached", PaymentMethodAttachedData> | WebhookEventEnvelope<"payment_method.updated", PaymentMethodUpdatedData> | WebhookEventEnvelope<"customer.created", CustomerCreatedData> | WebhookEventEnvelope<"customer.updated", CustomerUpdatedData> | WebhookEventEnvelope<"customer.state_changed", CustomerStateChangedData> | WebhookEventEnvelope<"plan_grant.created", PlanGrantCreatedData> | WebhookEventEnvelope<"plan_grant.updated", PlanGrantUpdatedData> | WebhookEventEnvelope<"plan_grant.expired", PlanGrantExpiredData> | WebhookEventEnvelope<"plan_grant.revoked", PlanGrantRevokedData> | WebhookEventEnvelope<"credits.granted", CreditsGrantedData> | WebhookEventEnvelope<"credits.purchased", CreditsPurchasedData> | WebhookEventEnvelope<"credits.low", CreditsLowData> | WebhookEventEnvelope<"credits.depleted", CreditsDepletedData> | WebhookEventEnvelope<"credits.expired", CreditsExpiredData> | WebhookEventEnvelope<"balance.topped_up", BalanceToppedUpData> | WebhookEventEnvelope<"balance.low", BalanceLowData> | WebhookEventEnvelope<"balance.depleted", BalanceDepletedData> | WebhookEventEnvelope<"quota.threshold_reached", QuotaThresholdReachedData> | WebhookEventEnvelope<"quota.exceeded", QuotaExceededData> | WebhookEventEnvelope<"seats.updated", SeatsUpdatedData> | WebhookEventEnvelope<"seats.limit_reached", SeatsLimitReachedData> | WebhookEventEnvelope<"addon.activated", AddonActivatedData> | WebhookEventEnvelope<"addon.deactivated", AddonDeactivatedData> | WebhookEventEnvelope<"usage.recorded", UsageRecordedData> | WebhookEventEnvelope<"payout.available", PayoutAvailableData> | WebhookEventEnvelope<"payout.created", PayoutCreatedData> | WebhookEventEnvelope<"payout.paid", PayoutPaidData> | WebhookEventEnvelope<"payout.failed", PayoutFailedData>;
|
|
4779
5122
|
interface WebhookEventDataMap {
|
|
4780
5123
|
"subscription.created": SubscriptionCreatedData;
|
|
4781
5124
|
"subscription.activated": SubscriptionActivatedData;
|
|
4782
5125
|
"subscription.reactivated": SubscriptionReactivatedData;
|
|
5126
|
+
"subscription.pause_scheduled": SubscriptionPauseScheduledData;
|
|
5127
|
+
"subscription.pause_updated": SubscriptionPauseUpdatedData;
|
|
5128
|
+
"subscription.pause_revoked": SubscriptionPauseRevokedData;
|
|
5129
|
+
"subscription.paused": SubscriptionPausedData;
|
|
5130
|
+
"subscription.resumed": SubscriptionResumedData;
|
|
5131
|
+
"subscription.resume_failed": SubscriptionResumeFailedData;
|
|
4783
5132
|
"subscription.canceled": SubscriptionCanceledData;
|
|
4784
5133
|
"subscription.updated": SubscriptionUpdatedData;
|
|
4785
5134
|
"subscription.plan_changed": SubscriptionPlanChangedData;
|
|
@@ -4869,7 +5218,7 @@ interface GetWebhookEndpointParams {
|
|
|
4869
5218
|
interface UpdateWebhookEndpointParams {
|
|
4870
5219
|
id: string;
|
|
4871
5220
|
url?: string;
|
|
4872
|
-
events?: Array<"subscription.created" | "subscription.activated" | "subscription.reactivated" | "subscription.canceled" | "subscription.updated" | "subscription.plan_changed" | "subscription.cancellation_scheduled" | "subscription.cancellation_revoked" | "subscription.plan_change_scheduled" | "subscription.plan_change_revoked" | "subscription.past_due" | "trial.started" | "trial.converted" | "trial.expired" | "trial.will_end" | "trial.checkout_ready" | "checkout.ready" | "payment.received" | "payment.failed" | "payment.recovered" | "payment.retry_failed" | "payment.refunded" | "payment.disputed" | "payment.dispute_resolved" | "payment_link.created" | "payment_link.completed" | "payment_link.failed" | "payment_link.canceled" | "invoice.created" | "invoice.voided" | "invoice.overdue" | "invoice.upcoming" | "payment_method.attached" | "payment_method.updated" | "customer.created" | "customer.updated" | "customer.state_changed" | "plan_grant.created" | "plan_grant.updated" | "plan_grant.expired" | "plan_grant.revoked" | "credits.granted" | "credits.purchased" | "credits.low" | "credits.depleted" | "credits.expired" | "balance.topped_up" | "balance.low" | "balance.depleted" | "quota.threshold_reached" | "quota.exceeded" | "seats.updated" | "seats.limit_reached" | "addon.activated" | "addon.deactivated" | "usage.recorded" | "payout.available" | "payout.created" | "payout.paid" | "payout.failed">;
|
|
5221
|
+
events?: Array<"subscription.created" | "subscription.activated" | "subscription.reactivated" | "subscription.pause_scheduled" | "subscription.pause_updated" | "subscription.pause_revoked" | "subscription.paused" | "subscription.resumed" | "subscription.resume_failed" | "subscription.canceled" | "subscription.updated" | "subscription.plan_changed" | "subscription.cancellation_scheduled" | "subscription.cancellation_revoked" | "subscription.plan_change_scheduled" | "subscription.plan_change_revoked" | "subscription.past_due" | "trial.started" | "trial.converted" | "trial.expired" | "trial.will_end" | "trial.checkout_ready" | "checkout.ready" | "payment.received" | "payment.failed" | "payment.recovered" | "payment.retry_failed" | "payment.refunded" | "payment.disputed" | "payment.dispute_resolved" | "payment_link.created" | "payment_link.completed" | "payment_link.failed" | "payment_link.canceled" | "invoice.created" | "invoice.voided" | "invoice.overdue" | "invoice.upcoming" | "payment_method.attached" | "payment_method.updated" | "customer.created" | "customer.updated" | "customer.state_changed" | "plan_grant.created" | "plan_grant.updated" | "plan_grant.expired" | "plan_grant.revoked" | "credits.granted" | "credits.purchased" | "credits.low" | "credits.depleted" | "credits.expired" | "balance.topped_up" | "balance.low" | "balance.depleted" | "quota.threshold_reached" | "quota.exceeded" | "seats.updated" | "seats.limit_reached" | "addon.activated" | "addon.deactivated" | "usage.recorded" | "payout.available" | "payout.created" | "payout.paid" | "payout.failed">;
|
|
4873
5222
|
description?: string | null;
|
|
4874
5223
|
isActive?: boolean;
|
|
4875
5224
|
apiVersion?: string;
|
|
@@ -4886,7 +5235,7 @@ interface ListWebhookEndpointsParams {
|
|
|
4886
5235
|
}
|
|
4887
5236
|
interface CreateWebhookEndpointParams {
|
|
4888
5237
|
url: string;
|
|
4889
|
-
events: Array<"subscription.created" | "subscription.activated" | "subscription.reactivated" | "subscription.canceled" | "subscription.updated" | "subscription.plan_changed" | "subscription.cancellation_scheduled" | "subscription.cancellation_revoked" | "subscription.plan_change_scheduled" | "subscription.plan_change_revoked" | "subscription.past_due" | "trial.started" | "trial.converted" | "trial.expired" | "trial.will_end" | "trial.checkout_ready" | "checkout.ready" | "payment.received" | "payment.failed" | "payment.recovered" | "payment.retry_failed" | "payment.refunded" | "payment.disputed" | "payment.dispute_resolved" | "payment_link.created" | "payment_link.completed" | "payment_link.failed" | "payment_link.canceled" | "invoice.created" | "invoice.voided" | "invoice.overdue" | "invoice.upcoming" | "payment_method.attached" | "payment_method.updated" | "customer.created" | "customer.updated" | "customer.state_changed" | "plan_grant.created" | "plan_grant.updated" | "plan_grant.expired" | "plan_grant.revoked" | "credits.granted" | "credits.purchased" | "credits.low" | "credits.depleted" | "credits.expired" | "balance.topped_up" | "balance.low" | "balance.depleted" | "quota.threshold_reached" | "quota.exceeded" | "seats.updated" | "seats.limit_reached" | "addon.activated" | "addon.deactivated" | "usage.recorded" | "payout.available" | "payout.created" | "payout.paid" | "payout.failed">;
|
|
5238
|
+
events: Array<"subscription.created" | "subscription.activated" | "subscription.reactivated" | "subscription.pause_scheduled" | "subscription.pause_updated" | "subscription.pause_revoked" | "subscription.paused" | "subscription.resumed" | "subscription.resume_failed" | "subscription.canceled" | "subscription.updated" | "subscription.plan_changed" | "subscription.cancellation_scheduled" | "subscription.cancellation_revoked" | "subscription.plan_change_scheduled" | "subscription.plan_change_revoked" | "subscription.past_due" | "trial.started" | "trial.converted" | "trial.expired" | "trial.will_end" | "trial.checkout_ready" | "checkout.ready" | "payment.received" | "payment.failed" | "payment.recovered" | "payment.retry_failed" | "payment.refunded" | "payment.disputed" | "payment.dispute_resolved" | "payment_link.created" | "payment_link.completed" | "payment_link.failed" | "payment_link.canceled" | "invoice.created" | "invoice.voided" | "invoice.overdue" | "invoice.upcoming" | "payment_method.attached" | "payment_method.updated" | "customer.created" | "customer.updated" | "customer.state_changed" | "plan_grant.created" | "plan_grant.updated" | "plan_grant.expired" | "plan_grant.revoked" | "credits.granted" | "credits.purchased" | "credits.low" | "credits.depleted" | "credits.expired" | "balance.topped_up" | "balance.low" | "balance.depleted" | "quota.threshold_reached" | "quota.exceeded" | "seats.updated" | "seats.limit_reached" | "addon.activated" | "addon.deactivated" | "usage.recorded" | "payout.available" | "payout.created" | "payout.paid" | "payout.failed">;
|
|
4890
5239
|
description?: string;
|
|
4891
5240
|
apiVersion?: string;
|
|
4892
5241
|
}
|
|
@@ -4921,7 +5270,7 @@ declare function createCommet<const TConfig extends BillingConfig>(_billingConfi
|
|
|
4921
5270
|
|
|
4922
5271
|
declare function registerIntegration(name: string, version: string): void;
|
|
4923
5272
|
|
|
4924
|
-
declare const API_VERSION = "2026-
|
|
5273
|
+
declare const API_VERSION = "2026-08-27";
|
|
4925
5274
|
declare const SDK_VERSION: string;
|
|
4926
5275
|
|
|
4927
|
-
export { API_VERSION, type ActivateAddonParams, type ActiveAddon, type AddPayoutBankAccountParams, type AddPlanFeatureParams, type AddPlanPriceParams, type AddPlanToGroupParams, type AddQuotaParams, type AddSeatsParams, type AddedPlanToGroup, type Addon, type AddonActivatedData, type AddonDeactivatedData, type AdjustBalanceParams, type AdvanceTestClockParams, type ApiErrorDetail, type ApiKey, type ApplySubscriptionOfferParams, type BalanceAdjustment, type BalanceDepletedData, type BalanceLowData, type BalanceToppedUpData, type BalanceTopup, type BatchCreateCustomersParams, type BillingConfig, type BillingInterval, type BulkSetSeatsParams, type CancelPaymentParams, type CancelSubscriptionParams, type ChangePlanParams, type ChargePaymentParams, type CheckUsageAvailabilityParams, type CheckoutReadyData, type ClaimLink, Commet, CommetAPIError, type CommetClientOptions, CommetError, type CommetErrorContext, CommetValidationError, type ConsumptionModel, type CreateAddonParams, type CreateAdjustmentInvoiceParams, type CreateApiKeyParams, type CreateCreditPackParams, type CreateCustomerCreditParams, type CreateCustomerParams, type CreateFeatureParams, type CreateMarketParams, type CreateOfferParams, type CreatePaymentParams, type CreatePlanGrantParams, type CreatePlanGroupParams, type CreatePlanParams, type CreatePromoCodeParams, type CreateSubscriptionParams, type CreateSubscriptionRecoveryLinkParams, type CreateWebhookEndpointParams, type CreatedApiKey, type CreatedSubscription, type CreatedWebhook, type CreditGrant, type CreditPack, type CreditPackListItem, type CreditsDepletedData, type CreditsExpiredData, type CreditsGrantedData, type CreditsLowData, type CreditsPurchasedData, type Customer, type CustomerBatch, type CustomerCreatedData, type CustomerCredit, type CustomerCreditRevocation, type CustomerStateChangedData, type CustomerUpdatedData, type DeactivateAddonParams, type DeleteAddonParams, type DeleteApiKeyParams, type DeleteCreditPackParams, type DeleteFeatureParams, type DeleteMarketParams, type DeleteOfferParams, type DeletePlanGroupParams, type DeletePlanParams, type DeletePlanPriceParams, type DeleteRegionalPricesParams, type DeleteWebhookEndpointParams, type DeletedObject, type DeletedOffer, type DeletedPlanRegionalPricing, type DeletedSubscriptionAddon, type DownloadInvoiceParams, type Feature, type FeatureAccess, type FeatureDef, type FeatureType, type GetActiveSubscriptionParams, type GetAddonParams, type GetAllQuotaAllowancesParams, type GetAllSeatBalancesParams, type GetCustomerParams, type GetFeatureAccessParams, type GetFeatureParams, type GetInvoiceParams, type GetMarketParams, type GetOfferParams, type GetPaymentParams, type GetPlanGroupParams, type GetPlanParams, type GetPromoCodeParams, type GetQuotaAllowanceParams, type GetSeatBalanceParams, type GetSubscriptionParams, type GetTransactionParams, type GetWebhookEndpointParams, type InferFeatureCodes, type InferPlanCodes, type InferSeatCodes, type InferUsageCodes, type Invoice, type InvoiceCreatedData, type InvoiceDownload, type InvoiceListItem, type InvoiceOverdueData, type InvoiceType, type InvoiceUpcomingData, type InvoiceVoidedData, type ListActiveAddonsParams, type ListAddonsParams, type ListApiKeysParams, type ListCustomerCreditsParams, type ListCustomersParams, type ListFeatureAccessParams, type ListInvoicesParams, type ListOffersParams, type ListPaymentsParams, type ListPlanGrantsParams, type ListPlanGroupsParams, type ListPlansParams, type ListPromoCodesParams, type ListSubscriptionsParams, type ListTransactionsParams, type ListWebhookEndpointsParams, type Market, type Offer, type Payment, type PaymentDisputeResolvedData, type PaymentDisputedData, type PaymentFailedData, type PaymentLinkCanceledData, type PaymentLinkCompletedData, type PaymentLinkCreatedData, type PaymentLinkFailedData, type PaymentMethodAttachedData, type PaymentMethodUpdateCheckout, type PaymentMethodUpdatedData, type PaymentProvider, type PaymentReceivedData, type PaymentRecoveredData, type PaymentRefundedData, type PaymentRetryFailedData, type Payout, type PayoutAvailableData, type PayoutBankAccount, type PayoutCreatedData, type PayoutFailedData, type PayoutPaidData, type Plan, type PlanChange, type PlanDef, type PlanFeature, type PlanFeatureValue, type PlanGrant, type PlanGrantCreatedData, type PlanGrantExpiredData, type PlanGrantRevokedData, type PlanGrantUpdatedData, type PlanGroup, type PlanGroupDetail, type PlanPrice, type PlanRegionalPricing, type PlanRegionalPricingResult, type PortalAccess, type PreviewChange, type PreviewChangePlanParams, type PriceDef, type PromoCode, type PurchaseCreditsParams, type QuotaExceededData, type QuotaThresholdReachedData, type ReactivateSubscriptionParams, type ReactivatedSubscription, type RecoveryLink, type Refund, type RefundTransactionParams, type RemovePlanFeatureParams, type RemovePlanFromGroupParams, type RemoveQuotaParams, type RemoveSeatsParams, type RemoveSubscriptionOfferParams, type RemovedPlanFeature, type RemovedPlanFromGroup, type ReorderPlansInGroupParams, type ReorderedPlans, type RequestOptions, type RequestPayoutParams, type RequestPortalAccessParams, type ResolvedFeatureCode, type ResolvedPlanCode, type ResolvedSeatCode, type ResolvedUsageCode, type RetryTransactionParams, type RevokeCustomerCreditParams, type RevokePlanGrantParams, SDK_VERSION, type SeatBalance, type SeatBalanceCollection, type SeatEvent, type SeatsLimitReachedData, type SeatsUpdatedData, type SendInvoiceParams, type SentInvoice, type SetDefaultPlanPriceParams, type SetPlanRegionalPricingParams, type SetPlanVisibilityParams, type SetQuotaParams, type SetSeatsParams, type SetUsageParams, type Subscription, type SubscriptionActivatedData, type SubscriptionAddon, type SubscriptionCanceledData, type SubscriptionCancellationRevokedData, type SubscriptionCancellationScheduledData, type SubscriptionCreatedData, type SubscriptionOfferApplication, type SubscriptionOfferApplicationPhase, type SubscriptionPastDueData, type SubscriptionPlanChangeRevokedData, type SubscriptionPlanChangeScheduledData, type SubscriptionPlanChangedData, type SubscriptionReactivatedData, type SubscriptionStatus, type SubscriptionSummary, type SubscriptionUpdatedData, type TestClock, type TestClockRun, type TestWebhookEndpointParams, type Timezone, type TopupBalanceParams, type TrackUsageParams, type Transaction, type TransactionListItem, type TransactionRetry, type TransactionStatus, type TrialCheckoutReadyData, type TrialConvertedData, type TrialExpiredData, type TrialStartedData, type TrialWillEndData, type UncancelSubscriptionParams, type UpdateAddonParams, type UpdateCreditPackParams, type UpdateCustomerParams, type UpdateFeatureParams, type UpdateInvoiceStatusParams, type UpdateMarketParams, type UpdateOfferParams, type UpdatePaymentMethodParams, type UpdatePlanFeatureParams, type UpdatePlanGrantParams, type UpdatePlanGroupParams, type UpdatePlanParams, type UpdatePlanPriceParams, type UpdatePromoCodeParams, type UpdateWebhookEndpointParams, type UpsertRegionalPricesParams, type UsageAdjustment, type UsageCheck, type UsageEvent, type UsageQuota, type UsageQuotaEvent, type UsageRecordedData, type Webhook, type WebhookAddonRef, type WebhookBalance, type WebhookBankRef, type WebhookCardInfo, type WebhookCreditsBalance, type WebhookData, type WebhookEvent, type WebhookEventDataMap, type WebhookEventEnvelope, type WebhookEventHandler, type WebhookEventPayload, type WebhookPayload, type WebhookPlanGrantTimelineEvent, type WebhookPlanRef, type WebhookSeatSummary, type WebhookTest, Webhooks, createCommet, Commet as default, defineConfig, registerIntegration };
|
|
5276
|
+
export { API_VERSION, type ActivateAddonParams, type ActiveAddon, type AddPayoutBankAccountParams, type AddPlanFeatureParams, type AddPlanPriceParams, type AddPlanToGroupParams, type AddQuotaParams, type AddSeatsParams, type AddedPlanToGroup, type Addon, type AddonActivatedData, type AddonDeactivatedData, type AdjustBalanceParams, type AdvanceTestClockParams, type ApiErrorDetail, type ApiKey, type ApplySubscriptionOfferParams, type BalanceAdjustment, type BalanceDepletedData, type BalanceLowData, type BalanceToppedUpData, type BalanceTopup, type BatchCreateCustomersParams, type BillingConfig, type BillingInterval, type BulkSetSeatsParams, type CancelPaymentParams, type CancelSubscriptionParams, type ChangePlanParams, type ChargePaymentParams, type CheckUsageAvailabilityParams, type CheckoutReadyData, type ClaimLink, Commet, CommetAPIError, type CommetClientOptions, CommetError, type CommetErrorContext, CommetValidationError, type ConsumptionModel, type CreateAddonParams, type CreateAdjustmentInvoiceParams, type CreateApiKeyParams, type CreateCreditPackParams, type CreateCustomerCreditParams, type CreateCustomerParams, type CreateFeatureParams, type CreateMarketParams, type CreateOfferParams, type CreatePaymentParams, type CreatePlanGrantParams, type CreatePlanGroupParams, type CreatePlanParams, type CreatePromoCodeParams, type CreateSubscriptionParams, type CreateSubscriptionRecoveryLinkParams, type CreateWebhookEndpointParams, type CreatedApiKey, type CreatedSubscription, type CreatedWebhook, type CreditGrant, type CreditPack, type CreditPackListItem, type CreditsDepletedData, type CreditsExpiredData, type CreditsGrantedData, type CreditsLowData, type CreditsPurchasedData, type Customer, type CustomerBatch, type CustomerCreatedData, type CustomerCredit, type CustomerCreditRevocation, type CustomerStateChangedData, type CustomerUpdatedData, type DeactivateAddonParams, type DeleteAddonParams, type DeleteApiKeyParams, type DeleteCreditPackParams, type DeleteFeatureParams, type DeleteMarketParams, type DeleteOfferParams, type DeletePlanGroupParams, type DeletePlanParams, type DeletePlanPriceParams, type DeleteRegionalPricesParams, type DeleteWebhookEndpointParams, type DeletedObject, type DeletedOffer, type DeletedPlanRegionalPricing, type DeletedSubscriptionAddon, type DownloadInvoiceParams, type Feature, type FeatureAccess, type FeatureDef, type FeatureType, type GetActiveSubscriptionParams, type GetAddonParams, type GetAllQuotaAllowancesParams, type GetAllSeatBalancesParams, type GetCustomerParams, type GetFeatureAccessParams, type GetFeatureParams, type GetInvoiceParams, type GetMarketParams, type GetOfferParams, type GetPaymentParams, type GetPlanGroupParams, type GetPlanParams, type GetPromoCodeParams, type GetQuotaAllowanceParams, type GetSeatBalanceParams, type GetSubscriptionParams, type GetTransactionParams, type GetWebhookEndpointParams, type InferFeatureCodes, type InferPlanCodes, type InferSeatCodes, type InferUsageCodes, type Invoice, type InvoiceCreatedData, type InvoiceDownload, type InvoiceListItem, type InvoiceOverdueData, type InvoiceType, type InvoiceUpcomingData, type InvoiceVoidedData, type ListActiveAddonsParams, type ListAddonsParams, type ListApiKeysParams, type ListCustomerCreditsParams, type ListCustomersParams, type ListFeatureAccessParams, type ListInvoicesParams, type ListOffersParams, type ListPaymentsParams, type ListPlanGrantsParams, type ListPlanGroupsParams, type ListPlansParams, type ListPromoCodesParams, type ListSubscriptionsParams, type ListTransactionsParams, type ListWebhookEndpointsParams, type Market, type Offer, type PauseSubscriptionParams, type Payment, type PaymentDisputeResolvedData, type PaymentDisputedData, type PaymentFailedData, type PaymentLinkCanceledData, type PaymentLinkCompletedData, type PaymentLinkCreatedData, type PaymentLinkFailedData, type PaymentMethod, type PaymentMethodAttachedData, type PaymentMethodUpdateCheckout, type PaymentMethodUpdatedData, type PaymentProvider, type PaymentReceivedData, type PaymentRecoveredData, type PaymentRefundedData, type PaymentRetryFailedData, type Payout, type PayoutAvailableData, type PayoutBankAccount, type PayoutCreatedData, type PayoutFailedData, type PayoutPaidData, type Plan, type PlanChange, type PlanDef, type PlanFeature, type PlanFeatureValue, type PlanGrant, type PlanGrantCreatedData, type PlanGrantExpiredData, type PlanGrantRevokedData, type PlanGrantUpdatedData, type PlanGroup, type PlanGroupDetail, type PlanPrice, type PlanRegionalPricing, type PlanRegionalPricingResult, type PortalAccess, type PreviewChange, type PreviewChangePlanParams, type PriceDef, type PromoCode, type PurchaseCreditsParams, type QuotaExceededData, type QuotaThresholdReachedData, type ReactivateSubscriptionParams, type ReactivatedSubscription, type RecoveryLink, type Refund, type RefundTransactionParams, type RemovePlanFeatureParams, type RemovePlanFromGroupParams, type RemoveQuotaParams, type RemoveSeatsParams, type RemoveSubscriptionOfferParams, type RemovedPlanFeature, type RemovedPlanFromGroup, type ReorderPlansInGroupParams, type ReorderedPlans, type RequestOptions, type RequestPayoutParams, type RequestPortalAccessParams, type ResolvedFeatureCode, type ResolvedPlanCode, type ResolvedSeatCode, type ResolvedUsageCode, type ResumeSubscriptionParams, type RetryTransactionParams, type RevokeCustomerCreditParams, type RevokePlanGrantParams, type RevokeSubscriptionPauseParams, SDK_VERSION, type SeatBalance, type SeatBalanceCollection, type SeatEvent, type SeatsLimitReachedData, type SeatsUpdatedData, type SendInvoiceParams, type SentInvoice, type SetDefaultPlanPriceParams, type SetPlanRegionalPricingParams, type SetPlanVisibilityParams, type SetQuotaParams, type SetSeatsParams, type SetUsageParams, type SubPaymentMethod, type Subscription, type SubscriptionActivatedData, type SubscriptionAddon, type SubscriptionCanceledData, type SubscriptionCancellationRevokedData, type SubscriptionCancellationScheduledData, type SubscriptionCreatedData, type SubscriptionOfferApplication, type SubscriptionOfferApplicationPhase, type SubscriptionPastDueData, type SubscriptionPauseRevokedData, type SubscriptionPauseScheduledData, type SubscriptionPauseUpdatedData, type SubscriptionPausedData, type SubscriptionPlanChangeRevokedData, type SubscriptionPlanChangeScheduledData, type SubscriptionPlanChangedData, type SubscriptionReactivatedData, type SubscriptionResume, type SubscriptionResumeFailedData, type SubscriptionResumedData, type SubscriptionStatus, type SubscriptionSummary, type SubscriptionUpdatedData, type TestClock, type TestClockRun, type TestWebhookEndpointParams, type Timezone, type TopupBalanceParams, type TrackUsageParams, type Transaction, type TransactionListItem, type TransactionRetry, type TransactionStatus, type TrialCheckoutReadyData, type TrialConvertedData, type TrialExpiredData, type TrialStartedData, type TrialWillEndData, type UncancelSubscriptionParams, type UpdateAddonParams, type UpdateCreditPackParams, type UpdateCustomerParams, type UpdateFeatureParams, type UpdateInvoiceStatusParams, type UpdateMarketParams, type UpdateOfferParams, type UpdatePaymentMethodParams, type UpdatePlanFeatureParams, type UpdatePlanGrantParams, type UpdatePlanGroupParams, type UpdatePlanParams, type UpdatePlanPriceParams, type UpdatePromoCodeParams, type UpdateSubscriptionPauseParams, type UpdateWebhookEndpointParams, type UpsertRegionalPricesParams, type UsageAdjustment, type UsageCheck, type UsageEvent, type UsageQuota, type UsageQuotaEvent, type UsageRecordedData, type Webhook, type WebhookAddonRef, type WebhookBalance, type WebhookBankRef, type WebhookCardInfo, type WebhookCreditsBalance, type WebhookData, type WebhookEvent, type WebhookEventDataMap, type WebhookEventEnvelope, type WebhookEventHandler, type WebhookEventPayload, type WebhookPayload, type WebhookPlanGrantTimelineEvent, type WebhookPlanRef, type WebhookSeatSummary, type WebhookTest, Webhooks, createCommet, Commet as default, defineConfig, registerIntegration };
|