autumn-js 1.5.49 → 1.5.51

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.
Files changed (100) hide show
  1. package/dist/backend/adapters/express.js +2 -2
  2. package/dist/backend/adapters/express.mjs +8 -8
  3. package/dist/backend/adapters/fetch.js +2 -2
  4. package/dist/backend/adapters/fetch.mjs +8 -8
  5. package/dist/backend/adapters/hono.js +2 -2
  6. package/dist/backend/adapters/hono.mjs +8 -8
  7. package/dist/backend/adapters/index.js +2 -2
  8. package/dist/backend/adapters/index.mjs +11 -11
  9. package/dist/backend/adapters/next.js +2 -2
  10. package/dist/backend/adapters/next.mjs +8 -8
  11. package/dist/backend/{chunk-UJS72PWL.mjs → chunk-BCZ2UC26.mjs} +1 -1
  12. package/dist/backend/{chunk-I5KYLHKQ.mjs → chunk-KKFHI5TH.mjs} +6 -6
  13. package/dist/backend/{chunk-2TKKTUVY.mjs → chunk-KRQVKZBM.mjs} +4 -4
  14. package/dist/backend/{chunk-OFDVZKAG.mjs → chunk-RKP7YVUW.mjs} +2 -2
  15. package/dist/backend/{chunk-HBQ3GM57.mjs → chunk-T4B4HJ7W.mjs} +1 -1
  16. package/dist/backend/{chunk-UQYEDQA7.mjs → chunk-X67VTGLR.mjs} +1 -1
  17. package/dist/backend/{chunk-5RCMB7TM.mjs → chunk-YDJI544U.mjs} +1 -1
  18. package/dist/backend/core/handlers/coreHandler.d.mts +1 -1
  19. package/dist/backend/core/handlers/coreHandler.d.ts +1 -1
  20. package/dist/backend/core/handlers/coreHandler.js +2 -2
  21. package/dist/backend/core/handlers/coreHandler.mjs +6 -6
  22. package/dist/backend/core/handlers/executeRoute.d.mts +1 -1
  23. package/dist/backend/core/handlers/executeRoute.d.ts +1 -1
  24. package/dist/backend/core/handlers/executeRoute.mjs +4 -4
  25. package/dist/backend/core/handlers/handleRouteByName.js +2 -2
  26. package/dist/backend/core/handlers/handleRouteByName.mjs +6 -6
  27. package/dist/backend/core/handlers/index.d.mts +1 -1
  28. package/dist/backend/core/handlers/index.d.ts +1 -1
  29. package/dist/backend/core/handlers/index.js +2 -2
  30. package/dist/backend/core/handlers/index.mjs +10 -10
  31. package/dist/backend/core/index.d.mts +1 -1
  32. package/dist/backend/core/index.d.ts +1 -1
  33. package/dist/backend/core/index.js +2 -2
  34. package/dist/backend/core/index.mjs +9 -9
  35. package/dist/backend/core/routes/index.d.mts +1 -1
  36. package/dist/backend/core/routes/index.d.ts +1 -1
  37. package/dist/backend/core/routes/index.mjs +1 -1
  38. package/dist/backend/core/routes/routeBuilder.d.mts +1 -1
  39. package/dist/backend/core/routes/routeBuilder.d.ts +1 -1
  40. package/dist/backend/core/routes/routeConfigs.d.mts +1 -1
  41. package/dist/backend/core/routes/routeConfigs.d.ts +1 -1
  42. package/dist/backend/core/routes/routeConfigs.mjs +1 -1
  43. package/dist/backend/core/types/handlerTypes.d.mts +1 -1
  44. package/dist/backend/core/types/handlerTypes.d.ts +1 -1
  45. package/dist/backend/core/types/index.d.mts +1 -1
  46. package/dist/backend/core/types/index.d.ts +1 -1
  47. package/dist/backend/core/types/routeTypes.d.mts +1 -1
  48. package/dist/backend/core/types/routeTypes.d.ts +1 -1
  49. package/dist/backend/core/utils/index.mjs +3 -3
  50. package/dist/backend/index.d.mts +2 -2
  51. package/dist/backend/index.d.ts +2 -2
  52. package/dist/backend/index.js +2 -2
  53. package/dist/backend/index.mjs +9 -9
  54. package/dist/backend/{routeTypes-D-Ci4ENS.d.mts → routeTypes-BoNrhwDM.d.mts} +33 -33
  55. package/dist/backend/{routeTypes-C6YLRNce.d.ts → routeTypes-Bobh42Qk.d.ts} +33 -33
  56. package/dist/better-auth/{chunk-ENPSYIEM.mjs → chunk-7HIRVLR2.mjs} +2 -2
  57. package/dist/better-auth/index.js +2 -2
  58. package/dist/better-auth/index.mjs +1 -1
  59. package/dist/better-auth/utils/handleBetterAuthRoute.js +2 -2
  60. package/dist/better-auth/utils/handleBetterAuthRoute.mjs +1 -1
  61. package/dist/better-auth/utils/index.js +2 -2
  62. package/dist/better-auth/utils/index.mjs +1 -1
  63. package/dist/react/AutumnContext.d.mts +1 -1
  64. package/dist/react/AutumnContext.d.ts +1 -1
  65. package/dist/react/client/AutumnClient.d.mts +1 -1
  66. package/dist/react/client/AutumnClient.d.ts +1 -1
  67. package/dist/react/client/IAutumnClient.d.mts +1 -1
  68. package/dist/react/client/IAutumnClient.d.ts +1 -1
  69. package/dist/react/client/index.d.mts +1 -1
  70. package/dist/react/client/index.d.ts +1 -1
  71. package/dist/react/hooks/index.d.mts +1 -1
  72. package/dist/react/hooks/index.d.ts +1 -1
  73. package/dist/react/hooks/index.mjs +5 -5
  74. package/dist/react/hooks/internal/getLocalCheckResponse.d.mts +1 -1
  75. package/dist/react/hooks/internal/getLocalCheckResponse.d.ts +1 -1
  76. package/dist/react/hooks/internal/useCustomerActions.d.mts +1 -1
  77. package/dist/react/hooks/internal/useCustomerActions.d.ts +1 -1
  78. package/dist/react/hooks/useAggregateEvents.d.mts +1 -1
  79. package/dist/react/hooks/useAggregateEvents.d.ts +1 -1
  80. package/dist/react/hooks/useCustomer.d.mts +1 -1
  81. package/dist/react/hooks/useCustomer.d.ts +1 -1
  82. package/dist/react/hooks/useEntity.d.mts +1 -1
  83. package/dist/react/hooks/useEntity.d.ts +1 -1
  84. package/dist/react/hooks/useListEvents.d.mts +1 -1
  85. package/dist/react/hooks/useListEvents.d.ts +1 -1
  86. package/dist/react/hooks/useListPlans.d.mts +1 -1
  87. package/dist/react/hooks/useListPlans.d.ts +1 -1
  88. package/dist/react/hooks/useReferrals.d.mts +1 -1
  89. package/dist/react/hooks/useReferrals.d.ts +1 -1
  90. package/dist/react/index.d.mts +1 -1
  91. package/dist/react/index.d.ts +1 -1
  92. package/dist/react/index.mjs +5 -5
  93. package/dist/react/{params-CWpGsqcE.d.ts → params-BFClrXjz.d.ts} +27 -27
  94. package/dist/react/{params-CSQsuIRD.d.mts → params-CgwwogoE.d.mts} +27 -27
  95. package/dist/sdk/index.d.mts +33 -33
  96. package/dist/sdk/index.d.ts +33 -33
  97. package/dist/sdk/index.js +2 -2
  98. package/dist/sdk/index.mjs +2 -2
  99. package/package.json +4 -3
  100. package/dist/backend/{chunk-IXUCY7AU.mjs → chunk-MOHYGUMA.mjs} +3 -3
@@ -130767,7 +130767,7 @@ var Billing = class extends ClientSDK {
130767
130767
  * @param newBillingSubscription - Only applicable when the customer has an existing Stripe subscription. If true, creates a new separate subscription instead of merging into the existing one. (optional)
130768
130768
  * @param billingCycleAnchor - Reset the billing cycle immediately with 'now', or schedule a reset at a future Unix timestamp in milliseconds. (optional)
130769
130769
  * @param planSchedule - When the plan change should take effect. 'immediate' applies now, 'end_of_cycle' schedules for the end of the current billing cycle. By default, upgrades are immediate and downgrades are scheduled. (optional)
130770
- * @param startsAt - Unix timestamp in milliseconds for when the attached plan should start. Future dates create a scheduled subscription. (optional)
130770
+ * @param startsAt - Unix timestamp in milliseconds for when the attached plan should start. Future dates create a scheduled subscription; with invoice_mode, its first invoice is sent on that date on invoice_mode.net_terms_days. (optional)
130771
130771
  * @param endsAt - Unix timestamp in milliseconds for when the attached plan should end. (optional)
130772
130772
  * @param checkoutSessionParams - Additional parameters to pass into the creation of the Stripe checkout session. (optional)
130773
130773
  * @param longLivedCheckout - If true, returns an Autumn-hosted checkout link that can create a fresh Stripe checkout session when opened. (optional)
@@ -130910,7 +130910,7 @@ var Billing = class extends ClientSDK {
130910
130910
  * @param newBillingSubscription - Only applicable when the customer has an existing Stripe subscription. If true, creates a new separate subscription instead of merging into the existing one. (optional)
130911
130911
  * @param billingCycleAnchor - Reset the billing cycle immediately with 'now', or schedule a reset at a future Unix timestamp in milliseconds. (optional)
130912
130912
  * @param planSchedule - When the plan change should take effect. 'immediate' applies now, 'end_of_cycle' schedules for the end of the current billing cycle. By default, upgrades are immediate and downgrades are scheduled. (optional)
130913
- * @param startsAt - Unix timestamp in milliseconds for when the attached plan should start. Future dates create a scheduled subscription. (optional)
130913
+ * @param startsAt - Unix timestamp in milliseconds for when the attached plan should start. Future dates create a scheduled subscription; with invoice_mode, its first invoice is sent on that date on invoice_mode.net_terms_days. (optional)
130914
130914
  * @param endsAt - Unix timestamp in milliseconds for when the attached plan should end. (optional)
130915
130915
  * @param checkoutSessionParams - Additional parameters to pass into the creation of the Stripe checkout session. (optional)
130916
130916
  * @param longLivedCheckout - If true, returns an Autumn-hosted checkout link that can create a fresh Stripe checkout session when opened. (optional)
@@ -2,28 +2,28 @@ import "../chunk-WYDGEDEU.mjs";
2
2
  import "../chunk-VXND2UDT.mjs";
3
3
  import {
4
4
  handleRouteByName
5
- } from "../chunk-2TKKTUVY.mjs";
5
+ } from "../chunk-KRQVKZBM.mjs";
6
6
  import {
7
7
  createCoreHandler
8
- } from "../chunk-I5KYLHKQ.mjs";
8
+ } from "../chunk-KKFHI5TH.mjs";
9
+ import "../chunk-RKP7YVUW.mjs";
10
+ import "../chunk-MOHYGUMA.mjs";
11
+ import "../chunk-TBQ27LIK.mjs";
12
+ import "../chunk-J44WR3QZ.mjs";
9
13
  import "../chunk-TSF4YCUO.mjs";
10
14
  import {
11
15
  buildRouter
12
16
  } from "../chunk-UAR3TMWI.mjs";
13
- import "../chunk-OFDVZKAG.mjs";
14
17
  import {
15
18
  routeConfigs
16
19
  } from "../chunk-V3XIDNBE.mjs";
17
- import "../chunk-IXUCY7AU.mjs";
18
20
  import "../chunk-OTXV5FY7.mjs";
19
- import {
20
- sanitizeBody
21
- } from "../chunk-I7CD6EB6.mjs";
22
21
  import {
23
22
  secretKeyCheck
24
23
  } from "../chunk-VZIMT7AO.mjs";
25
- import "../chunk-TBQ27LIK.mjs";
26
- import "../chunk-J44WR3QZ.mjs";
24
+ import {
25
+ sanitizeBody
26
+ } from "../chunk-I7CD6EB6.mjs";
27
27
  import {
28
28
  backendError,
29
29
  backendSuccess,
@@ -1,7 +1,7 @@
1
1
  export { RouteMatch, buildRouter } from './routeBuilder.mjs';
2
2
  export { routeConfigs } from './routeConfigs.mjs';
3
3
  import 'rou3';
4
- import '../../routeTypes-D-Ci4ENS.mjs';
4
+ import '../../routeTypes-BoNrhwDM.mjs';
5
5
  import '../../authTypes-dTAu1NT5.mjs';
6
6
  import 'zod/v4';
7
7
  import '../utils/sanitizeBody.mjs';
@@ -1,7 +1,7 @@
1
1
  export { RouteMatch, buildRouter } from './routeBuilder.js';
2
2
  export { routeConfigs } from './routeConfigs.js';
3
3
  import 'rou3';
4
- import '../../routeTypes-C6YLRNce.js';
4
+ import '../../routeTypes-Bobh42Qk.js';
5
5
  import '../../authTypes-dTAu1NT5.js';
6
6
  import 'zod/v4';
7
7
  import '../utils/sanitizeBody.js';
@@ -6,8 +6,8 @@ import {
6
6
  routeConfigs
7
7
  } from "../../chunk-V3XIDNBE.mjs";
8
8
  import "../../chunk-OTXV5FY7.mjs";
9
- import "../../chunk-I7CD6EB6.mjs";
10
9
  import "../../chunk-VZIMT7AO.mjs";
10
+ import "../../chunk-I7CD6EB6.mjs";
11
11
  import "../../chunk-N7NFYY54.mjs";
12
12
  export {
13
13
  buildRouter,
@@ -1,5 +1,5 @@
1
1
  import { RouterContext } from 'rou3';
2
- import { R as RouteDefinition } from '../../routeTypes-D-Ci4ENS.mjs';
2
+ import { R as RouteDefinition } from '../../routeTypes-BoNrhwDM.mjs';
3
3
  import '../../authTypes-dTAu1NT5.mjs';
4
4
  import 'zod/v4';
5
5
  import '../utils/sanitizeBody.mjs';
@@ -1,5 +1,5 @@
1
1
  import { RouterContext } from 'rou3';
2
- import { R as RouteDefinition } from '../../routeTypes-C6YLRNce.js';
2
+ import { R as RouteDefinition } from '../../routeTypes-Bobh42Qk.js';
3
3
  import '../../authTypes-dTAu1NT5.js';
4
4
  import 'zod/v4';
5
5
  import '../utils/sanitizeBody.js';
@@ -1,4 +1,4 @@
1
- import { R as RouteDefinition, b as RouteName } from '../../routeTypes-D-Ci4ENS.mjs';
1
+ import { R as RouteDefinition, b as RouteName } from '../../routeTypes-BoNrhwDM.mjs';
2
2
  import '../../authTypes-dTAu1NT5.mjs';
3
3
  import 'zod/v4';
4
4
  import '../utils/sanitizeBody.mjs';
@@ -1,4 +1,4 @@
1
- import { R as RouteDefinition, b as RouteName } from '../../routeTypes-C6YLRNce.js';
1
+ import { R as RouteDefinition, b as RouteName } from '../../routeTypes-Bobh42Qk.js';
2
2
  import '../../authTypes-dTAu1NT5.js';
3
3
  import 'zod/v4';
4
4
  import '../utils/sanitizeBody.js';
@@ -2,8 +2,8 @@ import {
2
2
  routeConfigs
3
3
  } from "../../chunk-V3XIDNBE.mjs";
4
4
  import "../../chunk-OTXV5FY7.mjs";
5
- import "../../chunk-I7CD6EB6.mjs";
6
5
  import "../../chunk-VZIMT7AO.mjs";
6
+ import "../../chunk-I7CD6EB6.mjs";
7
7
  import "../../chunk-N7NFYY54.mjs";
8
8
  export {
9
9
  routeConfigs
@@ -1,5 +1,5 @@
1
1
  import { A as AuthResult } from '../../authTypes-dTAu1NT5.mjs';
2
- import { R as RouteDefinition } from '../../routeTypes-D-Ci4ENS.mjs';
2
+ import { R as RouteDefinition } from '../../routeTypes-BoNrhwDM.mjs';
3
3
  import './responseTypes.mjs';
4
4
  import 'zod/v4';
5
5
  import '../utils/sanitizeBody.mjs';
@@ -1,5 +1,5 @@
1
1
  import { A as AuthResult } from '../../authTypes-dTAu1NT5.js';
2
- import { R as RouteDefinition } from '../../routeTypes-C6YLRNce.js';
2
+ import { R as RouteDefinition } from '../../routeTypes-Bobh42Qk.js';
3
3
  import './responseTypes.js';
4
4
  import 'zod/v4';
5
5
  import '../utils/sanitizeBody.js';
@@ -1,6 +1,6 @@
1
1
  export { A as AuthResult, C as CustomerData, a as CustomerId, R as ResolvedIdentity } from '../../authTypes-dTAu1NT5.mjs';
2
2
  export { CoreHandlerOptions, UnifiedRequest, UnifiedResponse } from './handlerTypes.mjs';
3
3
  export { BackendErrorBody, BackendResult } from './responseTypes.mjs';
4
- export { C as CustomHandlerArgs, a as CustomHandlerFn, c as ROUTE_NAMES, R as RouteDefinition, b as RouteName } from '../../routeTypes-D-Ci4ENS.mjs';
4
+ export { C as CustomHandlerArgs, a as CustomHandlerFn, c as ROUTE_NAMES, R as RouteDefinition, b as RouteName } from '../../routeTypes-BoNrhwDM.mjs';
5
5
  import 'zod/v4';
6
6
  import '../utils/sanitizeBody.mjs';
@@ -1,6 +1,6 @@
1
1
  export { A as AuthResult, C as CustomerData, a as CustomerId, R as ResolvedIdentity } from '../../authTypes-dTAu1NT5.js';
2
2
  export { CoreHandlerOptions, UnifiedRequest, UnifiedResponse } from './handlerTypes.js';
3
3
  export { BackendErrorBody, BackendResult } from './responseTypes.js';
4
- export { C as CustomHandlerArgs, a as CustomHandlerFn, c as ROUTE_NAMES, R as RouteDefinition, b as RouteName } from '../../routeTypes-C6YLRNce.js';
4
+ export { C as CustomHandlerArgs, a as CustomHandlerFn, c as ROUTE_NAMES, R as RouteDefinition, b as RouteName } from '../../routeTypes-Bobh42Qk.js';
5
5
  import 'zod/v4';
6
6
  import '../utils/sanitizeBody.js';
@@ -1,4 +1,4 @@
1
- export { C as CustomHandlerArgs, a as CustomHandlerFn, c as ROUTE_NAMES, R as RouteDefinition, b as RouteName } from '../../routeTypes-D-Ci4ENS.mjs';
1
+ export { C as CustomHandlerArgs, a as CustomHandlerFn, c as ROUTE_NAMES, R as RouteDefinition, b as RouteName } from '../../routeTypes-BoNrhwDM.mjs';
2
2
  import 'zod/v4';
3
3
  import '../utils/sanitizeBody.mjs';
4
4
  import '../../authTypes-dTAu1NT5.mjs';
@@ -1,4 +1,4 @@
1
- export { C as CustomHandlerArgs, a as CustomHandlerFn, c as ROUTE_NAMES, R as RouteDefinition, b as RouteName } from '../../routeTypes-C6YLRNce.js';
1
+ export { C as CustomHandlerArgs, a as CustomHandlerFn, c as ROUTE_NAMES, R as RouteDefinition, b as RouteName } from '../../routeTypes-Bobh42Qk.js';
2
2
  import 'zod/v4';
3
3
  import '../utils/sanitizeBody.js';
4
4
  import '../../authTypes-dTAu1NT5.js';
@@ -1,12 +1,12 @@
1
1
  import "../../chunk-OTXV5FY7.mjs";
2
+ import {
3
+ secretKeyCheck
4
+ } from "../../chunk-VZIMT7AO.mjs";
2
5
  import {
3
6
  CUSTOMER_PROTECTED_BODY_FIELDS,
4
7
  DEFAULT_PROTECTED_BODY_FIELDS,
5
8
  sanitizeBody
6
9
  } from "../../chunk-I7CD6EB6.mjs";
7
- import {
8
- secretKeyCheck
9
- } from "../../chunk-VZIMT7AO.mjs";
10
10
  import {
11
11
  backendError,
12
12
  backendSuccess,
@@ -3,8 +3,8 @@ import { C as CustomerData } from './authTypes-dTAu1NT5.mjs';
3
3
  export { A as AuthResult, a as CustomerId, R as ResolvedIdentity } from './authTypes-dTAu1NT5.mjs';
4
4
  export { CoreHandlerOptions, UnifiedRequest, UnifiedResponse } from './core/types/handlerTypes.mjs';
5
5
  export { BackendErrorBody, BackendResult } from './core/types/responseTypes.mjs';
6
- import { R as RouteDefinition } from './routeTypes-D-Ci4ENS.mjs';
7
- export { C as CustomHandlerArgs, a as CustomHandlerFn } from './routeTypes-D-Ci4ENS.mjs';
6
+ import { R as RouteDefinition } from './routeTypes-BoNrhwDM.mjs';
7
+ export { C as CustomHandlerArgs, a as CustomHandlerFn } from './routeTypes-BoNrhwDM.mjs';
8
8
  export { buildRouter } from './core/routes/routeBuilder.mjs';
9
9
  export { routeConfigs } from './core/routes/routeConfigs.mjs';
10
10
  export { secretKeyCheck } from './core/utils/secretKeyCheck.mjs';
@@ -3,8 +3,8 @@ import { C as CustomerData } from './authTypes-dTAu1NT5.js';
3
3
  export { A as AuthResult, a as CustomerId, R as ResolvedIdentity } from './authTypes-dTAu1NT5.js';
4
4
  export { CoreHandlerOptions, UnifiedRequest, UnifiedResponse } from './core/types/handlerTypes.js';
5
5
  export { BackendErrorBody, BackendResult } from './core/types/responseTypes.js';
6
- import { R as RouteDefinition } from './routeTypes-C6YLRNce.js';
7
- export { C as CustomHandlerArgs, a as CustomHandlerFn } from './routeTypes-C6YLRNce.js';
6
+ import { R as RouteDefinition } from './routeTypes-Bobh42Qk.js';
7
+ export { C as CustomHandlerArgs, a as CustomHandlerFn } from './routeTypes-Bobh42Qk.js';
8
8
  export { buildRouter } from './core/routes/routeBuilder.js';
9
9
  export { routeConfigs } from './core/routes/routeConfigs.js';
10
10
  export { secretKeyCheck } from './core/utils/secretKeyCheck.js';
@@ -130767,7 +130767,7 @@ var Billing = class extends ClientSDK {
130767
130767
  * @param newBillingSubscription - Only applicable when the customer has an existing Stripe subscription. If true, creates a new separate subscription instead of merging into the existing one. (optional)
130768
130768
  * @param billingCycleAnchor - Reset the billing cycle immediately with 'now', or schedule a reset at a future Unix timestamp in milliseconds. (optional)
130769
130769
  * @param planSchedule - When the plan change should take effect. 'immediate' applies now, 'end_of_cycle' schedules for the end of the current billing cycle. By default, upgrades are immediate and downgrades are scheduled. (optional)
130770
- * @param startsAt - Unix timestamp in milliseconds for when the attached plan should start. Future dates create a scheduled subscription. (optional)
130770
+ * @param startsAt - Unix timestamp in milliseconds for when the attached plan should start. Future dates create a scheduled subscription; with invoice_mode, its first invoice is sent on that date on invoice_mode.net_terms_days. (optional)
130771
130771
  * @param endsAt - Unix timestamp in milliseconds for when the attached plan should end. (optional)
130772
130772
  * @param checkoutSessionParams - Additional parameters to pass into the creation of the Stripe checkout session. (optional)
130773
130773
  * @param longLivedCheckout - If true, returns an Autumn-hosted checkout link that can create a fresh Stripe checkout session when opened. (optional)
@@ -130910,7 +130910,7 @@ var Billing = class extends ClientSDK {
130910
130910
  * @param newBillingSubscription - Only applicable when the customer has an existing Stripe subscription. If true, creates a new separate subscription instead of merging into the existing one. (optional)
130911
130911
  * @param billingCycleAnchor - Reset the billing cycle immediately with 'now', or schedule a reset at a future Unix timestamp in milliseconds. (optional)
130912
130912
  * @param planSchedule - When the plan change should take effect. 'immediate' applies now, 'end_of_cycle' schedules for the end of the current billing cycle. By default, upgrades are immediate and downgrades are scheduled. (optional)
130913
- * @param startsAt - Unix timestamp in milliseconds for when the attached plan should start. Future dates create a scheduled subscription. (optional)
130913
+ * @param startsAt - Unix timestamp in milliseconds for when the attached plan should start. Future dates create a scheduled subscription; with invoice_mode, its first invoice is sent on that date on invoice_mode.net_terms_days. (optional)
130914
130914
  * @param endsAt - Unix timestamp in milliseconds for when the attached plan should end. (optional)
130915
130915
  * @param checkoutSessionParams - Additional parameters to pass into the creation of the Stripe checkout session. (optional)
130916
130916
  * @param longLivedCheckout - If true, returns an Autumn-hosted checkout link that can create a fresh Stripe checkout session when opened. (optional)
@@ -1,27 +1,27 @@
1
1
  import "./chunk-WYDGEDEU.mjs";
2
2
  import "./chunk-VXND2UDT.mjs";
3
- import "./chunk-2TKKTUVY.mjs";
3
+ import "./chunk-KRQVKZBM.mjs";
4
4
  import {
5
5
  createCoreHandler
6
- } from "./chunk-I5KYLHKQ.mjs";
6
+ } from "./chunk-KKFHI5TH.mjs";
7
+ import "./chunk-RKP7YVUW.mjs";
8
+ import "./chunk-MOHYGUMA.mjs";
9
+ import "./chunk-TBQ27LIK.mjs";
10
+ import "./chunk-J44WR3QZ.mjs";
7
11
  import "./chunk-TSF4YCUO.mjs";
8
12
  import {
9
13
  buildRouter
10
14
  } from "./chunk-UAR3TMWI.mjs";
11
- import "./chunk-OFDVZKAG.mjs";
12
15
  import {
13
16
  routeConfigs
14
17
  } from "./chunk-V3XIDNBE.mjs";
15
- import "./chunk-IXUCY7AU.mjs";
16
18
  import "./chunk-OTXV5FY7.mjs";
17
- import {
18
- sanitizeBody
19
- } from "./chunk-I7CD6EB6.mjs";
20
19
  import {
21
20
  secretKeyCheck
22
21
  } from "./chunk-VZIMT7AO.mjs";
23
- import "./chunk-TBQ27LIK.mjs";
24
- import "./chunk-J44WR3QZ.mjs";
22
+ import {
23
+ sanitizeBody
24
+ } from "./chunk-I7CD6EB6.mjs";
25
25
  import {
26
26
  backendError,
27
27
  backendSuccess,
@@ -29059,7 +29059,7 @@ type AttachCustomize = {
29059
29059
  removeLicenses?: Array<AttachRemoveLicense> | undefined;
29060
29060
  };
29061
29061
  /**
29062
- * How far the invoice created now advances. draft leaves it editable for manual review. finalize opens it without Stripe emailing, reminding or charging (auto_advance off), for invoices collected outside Stripe. send opens it and lets Stripe email it. Defaults to send. Requires enabled: true. Renewal invoices follow the customer's config.renewal_issue_method.
29062
+ * How far the invoice created now advances. draft leaves it editable for manual review. finalize opens it without Stripe emailing, reminding or charging (auto_advance off), for invoices collected outside Stripe. send opens it and lets Stripe email it. Defaults to send. Requires enabled: true. With a future starts_at only send applies: the invoice is created and sent when the plan starts. Renewal invoices follow the customer's config.renewal_issue_method.
29063
29063
  */
29064
29064
  declare const AttachIssueMethod: {
29065
29065
  readonly Draft: "draft";
@@ -29067,7 +29067,7 @@ declare const AttachIssueMethod: {
29067
29067
  readonly Send: "send";
29068
29068
  };
29069
29069
  /**
29070
- * How far the invoice created now advances. draft leaves it editable for manual review. finalize opens it without Stripe emailing, reminding or charging (auto_advance off), for invoices collected outside Stripe. send opens it and lets Stripe email it. Defaults to send. Requires enabled: true. Renewal invoices follow the customer's config.renewal_issue_method.
29070
+ * How far the invoice created now advances. draft leaves it editable for manual review. finalize opens it without Stripe emailing, reminding or charging (auto_advance off), for invoices collected outside Stripe. send opens it and lets Stripe email it. Defaults to send. Requires enabled: true. With a future starts_at only send applies: the invoice is created and sent when the plan starts. Renewal invoices follow the customer's config.renewal_issue_method.
29071
29071
  */
29072
29072
  type AttachIssueMethod = ClosedEnum<typeof AttachIssueMethod>;
29073
29073
  declare const AttachPaymentMethodType: {
@@ -29089,7 +29089,7 @@ type AttachInvoiceMode = {
29089
29089
  */
29090
29090
  enabled: boolean;
29091
29091
  /**
29092
- * If true, enables the plan immediately even though the invoice is not paid yet.
29092
+ * If true, enables the plan immediately even though the invoice is not paid yet, or before a future starts_at.
29093
29093
  */
29094
29094
  enablePlanImmediately?: boolean | undefined;
29095
29095
  /**
@@ -29097,7 +29097,7 @@ type AttachInvoiceMode = {
29097
29097
  */
29098
29098
  finalize?: boolean | undefined;
29099
29099
  /**
29100
- * How far the invoice created now advances. draft leaves it editable for manual review. finalize opens it without Stripe emailing, reminding or charging (auto_advance off), for invoices collected outside Stripe. send opens it and lets Stripe email it. Defaults to send. Requires enabled: true. Renewal invoices follow the customer's config.renewal_issue_method.
29100
+ * How far the invoice created now advances. draft leaves it editable for manual review. finalize opens it without Stripe emailing, reminding or charging (auto_advance off), for invoices collected outside Stripe. send opens it and lets Stripe email it. Defaults to send. Requires enabled: true. With a future starts_at only send applies: the invoice is created and sent when the plan starts. Renewal invoices follow the customer's config.renewal_issue_method.
29101
29101
  */
29102
29102
  issueMethod?: AttachIssueMethod | undefined;
29103
29103
  /**
@@ -29565,7 +29565,7 @@ type AttachParams = {
29565
29565
  */
29566
29566
  planSchedule?: AttachPlanSchedule | undefined;
29567
29567
  /**
29568
- * Unix timestamp in milliseconds for when the attached plan should start. Future dates create a scheduled subscription.
29568
+ * Unix timestamp in milliseconds for when the attached plan should start. Future dates create a scheduled subscription; with invoice_mode, its first invoice is sent on that date on invoice_mode.net_terms_days.
29569
29569
  */
29570
29570
  startsAt?: number | undefined;
29571
29571
  /**
@@ -32333,7 +32333,7 @@ type BillingUpdateCustomize = {
32333
32333
  removeLicenses?: Array<BillingUpdateRemoveLicense> | undefined;
32334
32334
  };
32335
32335
  /**
32336
- * How far the invoice created now advances. draft leaves it editable for manual review. finalize opens it without Stripe emailing, reminding or charging (auto_advance off), for invoices collected outside Stripe. send opens it and lets Stripe email it. Defaults to send. Requires enabled: true. Renewal invoices follow the customer's config.renewal_issue_method.
32336
+ * How far the invoice created now advances. draft leaves it editable for manual review. finalize opens it without Stripe emailing, reminding or charging (auto_advance off), for invoices collected outside Stripe. send opens it and lets Stripe email it. Defaults to send. Requires enabled: true. With a future starts_at only send applies: the invoice is created and sent when the plan starts. Renewal invoices follow the customer's config.renewal_issue_method.
32337
32337
  */
32338
32338
  declare const BillingUpdateIssueMethod: {
32339
32339
  readonly Draft: "draft";
@@ -32341,7 +32341,7 @@ declare const BillingUpdateIssueMethod: {
32341
32341
  readonly Send: "send";
32342
32342
  };
32343
32343
  /**
32344
- * How far the invoice created now advances. draft leaves it editable for manual review. finalize opens it without Stripe emailing, reminding or charging (auto_advance off), for invoices collected outside Stripe. send opens it and lets Stripe email it. Defaults to send. Requires enabled: true. Renewal invoices follow the customer's config.renewal_issue_method.
32344
+ * How far the invoice created now advances. draft leaves it editable for manual review. finalize opens it without Stripe emailing, reminding or charging (auto_advance off), for invoices collected outside Stripe. send opens it and lets Stripe email it. Defaults to send. Requires enabled: true. With a future starts_at only send applies: the invoice is created and sent when the plan starts. Renewal invoices follow the customer's config.renewal_issue_method.
32345
32345
  */
32346
32346
  type BillingUpdateIssueMethod = ClosedEnum<typeof BillingUpdateIssueMethod>;
32347
32347
  declare const BillingUpdatePaymentMethodType: {
@@ -32363,7 +32363,7 @@ type BillingUpdateInvoiceMode = {
32363
32363
  */
32364
32364
  enabled: boolean;
32365
32365
  /**
32366
- * If true, enables the plan immediately even though the invoice is not paid yet.
32366
+ * If true, enables the plan immediately even though the invoice is not paid yet, or before a future starts_at.
32367
32367
  */
32368
32368
  enablePlanImmediately?: boolean | undefined;
32369
32369
  /**
@@ -32371,7 +32371,7 @@ type BillingUpdateInvoiceMode = {
32371
32371
  */
32372
32372
  finalize?: boolean | undefined;
32373
32373
  /**
32374
- * How far the invoice created now advances. draft leaves it editable for manual review. finalize opens it without Stripe emailing, reminding or charging (auto_advance off), for invoices collected outside Stripe. send opens it and lets Stripe email it. Defaults to send. Requires enabled: true. Renewal invoices follow the customer's config.renewal_issue_method.
32374
+ * How far the invoice created now advances. draft leaves it editable for manual review. finalize opens it without Stripe emailing, reminding or charging (auto_advance off), for invoices collected outside Stripe. send opens it and lets Stripe email it. Defaults to send. Requires enabled: true. With a future starts_at only send applies: the invoice is created and sent when the plan starts. Renewal invoices follow the customer's config.renewal_issue_method.
32375
32375
  */
32376
32376
  issueMethod?: BillingUpdateIssueMethod | undefined;
32377
32377
  /**
@@ -45188,7 +45188,7 @@ type CreateScheduleFreeTrialParams = {
45188
45188
  onEnd?: CreateScheduleOnEnd | undefined;
45189
45189
  };
45190
45190
  /**
45191
- * How far the invoice created now advances. draft leaves it editable for manual review. finalize opens it without Stripe emailing, reminding or charging (auto_advance off), for invoices collected outside Stripe. send opens it and lets Stripe email it. Defaults to send. Requires enabled: true. Renewal invoices follow the customer's config.renewal_issue_method.
45191
+ * How far the invoice created now advances. draft leaves it editable for manual review. finalize opens it without Stripe emailing, reminding or charging (auto_advance off), for invoices collected outside Stripe. send opens it and lets Stripe email it. Defaults to send. Requires enabled: true. With a future starts_at only send applies: the invoice is created and sent when the plan starts. Renewal invoices follow the customer's config.renewal_issue_method.
45192
45192
  */
45193
45193
  declare const CreateScheduleIssueMethod: {
45194
45194
  readonly Draft: "draft";
@@ -45196,7 +45196,7 @@ declare const CreateScheduleIssueMethod: {
45196
45196
  readonly Send: "send";
45197
45197
  };
45198
45198
  /**
45199
- * How far the invoice created now advances. draft leaves it editable for manual review. finalize opens it without Stripe emailing, reminding or charging (auto_advance off), for invoices collected outside Stripe. send opens it and lets Stripe email it. Defaults to send. Requires enabled: true. Renewal invoices follow the customer's config.renewal_issue_method.
45199
+ * How far the invoice created now advances. draft leaves it editable for manual review. finalize opens it without Stripe emailing, reminding or charging (auto_advance off), for invoices collected outside Stripe. send opens it and lets Stripe email it. Defaults to send. Requires enabled: true. With a future starts_at only send applies: the invoice is created and sent when the plan starts. Renewal invoices follow the customer's config.renewal_issue_method.
45200
45200
  */
45201
45201
  type CreateScheduleIssueMethod = ClosedEnum<typeof CreateScheduleIssueMethod>;
45202
45202
  declare const CreateSchedulePaymentMethodType: {
@@ -45218,7 +45218,7 @@ type CreateScheduleInvoiceMode = {
45218
45218
  */
45219
45219
  enabled: boolean;
45220
45220
  /**
45221
- * If true, enables the plan immediately even though the invoice is not paid yet.
45221
+ * If true, enables the plan immediately even though the invoice is not paid yet, or before a future starts_at.
45222
45222
  */
45223
45223
  enablePlanImmediately?: boolean | undefined;
45224
45224
  /**
@@ -45226,7 +45226,7 @@ type CreateScheduleInvoiceMode = {
45226
45226
  */
45227
45227
  finalize?: boolean | undefined;
45228
45228
  /**
45229
- * How far the invoice created now advances. draft leaves it editable for manual review. finalize opens it without Stripe emailing, reminding or charging (auto_advance off), for invoices collected outside Stripe. send opens it and lets Stripe email it. Defaults to send. Requires enabled: true. Renewal invoices follow the customer's config.renewal_issue_method.
45229
+ * How far the invoice created now advances. draft leaves it editable for manual review. finalize opens it without Stripe emailing, reminding or charging (auto_advance off), for invoices collected outside Stripe. send opens it and lets Stripe email it. Defaults to send. Requires enabled: true. With a future starts_at only send applies: the invoice is created and sent when the plan starts. Renewal invoices follow the customer's config.renewal_issue_method.
45230
45230
  */
45231
45231
  issueMethod?: CreateScheduleIssueMethod | undefined;
45232
45232
  /**
@@ -68132,7 +68132,7 @@ type MultiAttachFreeTrialParams = {
68132
68132
  onEnd?: MultiAttachOnEnd | undefined;
68133
68133
  };
68134
68134
  /**
68135
- * How far the invoice created now advances. draft leaves it editable for manual review. finalize opens it without Stripe emailing, reminding or charging (auto_advance off), for invoices collected outside Stripe. send opens it and lets Stripe email it. Defaults to send. Requires enabled: true. Renewal invoices follow the customer's config.renewal_issue_method.
68135
+ * How far the invoice created now advances. draft leaves it editable for manual review. finalize opens it without Stripe emailing, reminding or charging (auto_advance off), for invoices collected outside Stripe. send opens it and lets Stripe email it. Defaults to send. Requires enabled: true. With a future starts_at only send applies: the invoice is created and sent when the plan starts. Renewal invoices follow the customer's config.renewal_issue_method.
68136
68136
  */
68137
68137
  declare const MultiAttachIssueMethod: {
68138
68138
  readonly Draft: "draft";
@@ -68140,7 +68140,7 @@ declare const MultiAttachIssueMethod: {
68140
68140
  readonly Send: "send";
68141
68141
  };
68142
68142
  /**
68143
- * How far the invoice created now advances. draft leaves it editable for manual review. finalize opens it without Stripe emailing, reminding or charging (auto_advance off), for invoices collected outside Stripe. send opens it and lets Stripe email it. Defaults to send. Requires enabled: true. Renewal invoices follow the customer's config.renewal_issue_method.
68143
+ * How far the invoice created now advances. draft leaves it editable for manual review. finalize opens it without Stripe emailing, reminding or charging (auto_advance off), for invoices collected outside Stripe. send opens it and lets Stripe email it. Defaults to send. Requires enabled: true. With a future starts_at only send applies: the invoice is created and sent when the plan starts. Renewal invoices follow the customer's config.renewal_issue_method.
68144
68144
  */
68145
68145
  type MultiAttachIssueMethod = ClosedEnum<typeof MultiAttachIssueMethod>;
68146
68146
  declare const MultiAttachPaymentMethodType: {
@@ -68162,7 +68162,7 @@ type MultiAttachInvoiceMode = {
68162
68162
  */
68163
68163
  enabled: boolean;
68164
68164
  /**
68165
- * If true, enables the plan immediately even though the invoice is not paid yet.
68165
+ * If true, enables the plan immediately even though the invoice is not paid yet, or before a future starts_at.
68166
68166
  */
68167
68167
  enablePlanImmediately?: boolean | undefined;
68168
68168
  /**
@@ -68170,7 +68170,7 @@ type MultiAttachInvoiceMode = {
68170
68170
  */
68171
68171
  finalize?: boolean | undefined;
68172
68172
  /**
68173
- * How far the invoice created now advances. draft leaves it editable for manual review. finalize opens it without Stripe emailing, reminding or charging (auto_advance off), for invoices collected outside Stripe. send opens it and lets Stripe email it. Defaults to send. Requires enabled: true. Renewal invoices follow the customer's config.renewal_issue_method.
68173
+ * How far the invoice created now advances. draft leaves it editable for manual review. finalize opens it without Stripe emailing, reminding or charging (auto_advance off), for invoices collected outside Stripe. send opens it and lets Stripe email it. Defaults to send. Requires enabled: true. With a future starts_at only send applies: the invoice is created and sent when the plan starts. Renewal invoices follow the customer's config.renewal_issue_method.
68174
68174
  */
68175
68175
  issueMethod?: MultiAttachIssueMethod | undefined;
68176
68176
  /**
@@ -70835,7 +70835,7 @@ type PreviewAttachCustomize = {
70835
70835
  };
70836
70836
 
70837
70837
  /**
70838
- * How far the invoice created now advances. draft leaves it editable for manual review. finalize opens it without Stripe emailing, reminding or charging (auto_advance off), for invoices collected outside Stripe. send opens it and lets Stripe email it. Defaults to send. Requires enabled: true. Renewal invoices follow the customer's config.renewal_issue_method.
70838
+ * How far the invoice created now advances. draft leaves it editable for manual review. finalize opens it without Stripe emailing, reminding or charging (auto_advance off), for invoices collected outside Stripe. send opens it and lets Stripe email it. Defaults to send. Requires enabled: true. With a future starts_at only send applies: the invoice is created and sent when the plan starts. Renewal invoices follow the customer's config.renewal_issue_method.
70839
70839
  */
70840
70840
  declare const PreviewAttachInvoiceModeIssueMethod: {
70841
70841
  readonly Draft: "draft";
@@ -70843,7 +70843,7 @@ declare const PreviewAttachInvoiceModeIssueMethod: {
70843
70843
  readonly Send: "send";
70844
70844
  };
70845
70845
  /**
70846
- * How far the invoice created now advances. draft leaves it editable for manual review. finalize opens it without Stripe emailing, reminding or charging (auto_advance off), for invoices collected outside Stripe. send opens it and lets Stripe email it. Defaults to send. Requires enabled: true. Renewal invoices follow the customer's config.renewal_issue_method.
70846
+ * How far the invoice created now advances. draft leaves it editable for manual review. finalize opens it without Stripe emailing, reminding or charging (auto_advance off), for invoices collected outside Stripe. send opens it and lets Stripe email it. Defaults to send. Requires enabled: true. With a future starts_at only send applies: the invoice is created and sent when the plan starts. Renewal invoices follow the customer's config.renewal_issue_method.
70847
70847
  */
70848
70848
  type PreviewAttachInvoiceModeIssueMethod = ClosedEnum<typeof PreviewAttachInvoiceModeIssueMethod>;
70849
70849
  declare const PreviewAttachPaymentMethodType: {
@@ -70865,7 +70865,7 @@ type PreviewAttachInvoiceMode = {
70865
70865
  */
70866
70866
  enabled: boolean;
70867
70867
  /**
70868
- * If true, enables the plan immediately even though the invoice is not paid yet.
70868
+ * If true, enables the plan immediately even though the invoice is not paid yet, or before a future starts_at.
70869
70869
  */
70870
70870
  enablePlanImmediately?: boolean | undefined;
70871
70871
  /**
@@ -70873,7 +70873,7 @@ type PreviewAttachInvoiceMode = {
70873
70873
  */
70874
70874
  finalize?: boolean | undefined;
70875
70875
  /**
70876
- * How far the invoice created now advances. draft leaves it editable for manual review. finalize opens it without Stripe emailing, reminding or charging (auto_advance off), for invoices collected outside Stripe. send opens it and lets Stripe email it. Defaults to send. Requires enabled: true. Renewal invoices follow the customer's config.renewal_issue_method.
70876
+ * How far the invoice created now advances. draft leaves it editable for manual review. finalize opens it without Stripe emailing, reminding or charging (auto_advance off), for invoices collected outside Stripe. send opens it and lets Stripe email it. Defaults to send. Requires enabled: true. With a future starts_at only send applies: the invoice is created and sent when the plan starts. Renewal invoices follow the customer's config.renewal_issue_method.
70877
70877
  */
70878
70878
  issueMethod?: PreviewAttachInvoiceModeIssueMethod | undefined;
70879
70879
  /**
@@ -71341,7 +71341,7 @@ type PreviewAttachParams = {
71341
71341
  */
71342
71342
  planSchedule?: PreviewAttachPlanSchedule | undefined;
71343
71343
  /**
71344
- * Unix timestamp in milliseconds for when the attached plan should start. Future dates create a scheduled subscription.
71344
+ * Unix timestamp in milliseconds for when the attached plan should start. Future dates create a scheduled subscription; with invoice_mode, its first invoice is sent on that date on invoice_mode.net_terms_days.
71345
71345
  */
71346
71346
  startsAt?: number | undefined;
71347
71347
  /**
@@ -72389,7 +72389,7 @@ type PreviewMultiAttachFreeTrialParams = {
72389
72389
  onEnd?: PreviewMultiAttachOnEnd | undefined;
72390
72390
  };
72391
72391
  /**
72392
- * How far the invoice created now advances. draft leaves it editable for manual review. finalize opens it without Stripe emailing, reminding or charging (auto_advance off), for invoices collected outside Stripe. send opens it and lets Stripe email it. Defaults to send. Requires enabled: true. Renewal invoices follow the customer's config.renewal_issue_method.
72392
+ * How far the invoice created now advances. draft leaves it editable for manual review. finalize opens it without Stripe emailing, reminding or charging (auto_advance off), for invoices collected outside Stripe. send opens it and lets Stripe email it. Defaults to send. Requires enabled: true. With a future starts_at only send applies: the invoice is created and sent when the plan starts. Renewal invoices follow the customer's config.renewal_issue_method.
72393
72393
  */
72394
72394
  declare const PreviewMultiAttachInvoiceModeIssueMethod: {
72395
72395
  readonly Draft: "draft";
@@ -72397,7 +72397,7 @@ declare const PreviewMultiAttachInvoiceModeIssueMethod: {
72397
72397
  readonly Send: "send";
72398
72398
  };
72399
72399
  /**
72400
- * How far the invoice created now advances. draft leaves it editable for manual review. finalize opens it without Stripe emailing, reminding or charging (auto_advance off), for invoices collected outside Stripe. send opens it and lets Stripe email it. Defaults to send. Requires enabled: true. Renewal invoices follow the customer's config.renewal_issue_method.
72400
+ * How far the invoice created now advances. draft leaves it editable for manual review. finalize opens it without Stripe emailing, reminding or charging (auto_advance off), for invoices collected outside Stripe. send opens it and lets Stripe email it. Defaults to send. Requires enabled: true. With a future starts_at only send applies: the invoice is created and sent when the plan starts. Renewal invoices follow the customer's config.renewal_issue_method.
72401
72401
  */
72402
72402
  type PreviewMultiAttachInvoiceModeIssueMethod = ClosedEnum<typeof PreviewMultiAttachInvoiceModeIssueMethod>;
72403
72403
  declare const PreviewMultiAttachPaymentMethodType: {
@@ -72419,7 +72419,7 @@ type PreviewMultiAttachInvoiceMode = {
72419
72419
  */
72420
72420
  enabled: boolean;
72421
72421
  /**
72422
- * If true, enables the plan immediately even though the invoice is not paid yet.
72422
+ * If true, enables the plan immediately even though the invoice is not paid yet, or before a future starts_at.
72423
72423
  */
72424
72424
  enablePlanImmediately?: boolean | undefined;
72425
72425
  /**
@@ -72427,7 +72427,7 @@ type PreviewMultiAttachInvoiceMode = {
72427
72427
  */
72428
72428
  finalize?: boolean | undefined;
72429
72429
  /**
72430
- * How far the invoice created now advances. draft leaves it editable for manual review. finalize opens it without Stripe emailing, reminding or charging (auto_advance off), for invoices collected outside Stripe. send opens it and lets Stripe email it. Defaults to send. Requires enabled: true. Renewal invoices follow the customer's config.renewal_issue_method.
72430
+ * How far the invoice created now advances. draft leaves it editable for manual review. finalize opens it without Stripe emailing, reminding or charging (auto_advance off), for invoices collected outside Stripe. send opens it and lets Stripe email it. Defaults to send. Requires enabled: true. With a future starts_at only send applies: the invoice is created and sent when the plan starts. Renewal invoices follow the customer's config.renewal_issue_method.
72431
72431
  */
72432
72432
  issueMethod?: PreviewMultiAttachInvoiceModeIssueMethod | undefined;
72433
72433
  /**
@@ -75814,7 +75814,7 @@ type PreviewUpdateCustomize = {
75814
75814
  };
75815
75815
 
75816
75816
  /**
75817
- * How far the invoice created now advances. draft leaves it editable for manual review. finalize opens it without Stripe emailing, reminding or charging (auto_advance off), for invoices collected outside Stripe. send opens it and lets Stripe email it. Defaults to send. Requires enabled: true. Renewal invoices follow the customer's config.renewal_issue_method.
75817
+ * How far the invoice created now advances. draft leaves it editable for manual review. finalize opens it without Stripe emailing, reminding or charging (auto_advance off), for invoices collected outside Stripe. send opens it and lets Stripe email it. Defaults to send. Requires enabled: true. With a future starts_at only send applies: the invoice is created and sent when the plan starts. Renewal invoices follow the customer's config.renewal_issue_method.
75818
75818
  */
75819
75819
  declare const PreviewUpdateInvoiceModeIssueMethod: {
75820
75820
  readonly Draft: "draft";
@@ -75822,7 +75822,7 @@ declare const PreviewUpdateInvoiceModeIssueMethod: {
75822
75822
  readonly Send: "send";
75823
75823
  };
75824
75824
  /**
75825
- * How far the invoice created now advances. draft leaves it editable for manual review. finalize opens it without Stripe emailing, reminding or charging (auto_advance off), for invoices collected outside Stripe. send opens it and lets Stripe email it. Defaults to send. Requires enabled: true. Renewal invoices follow the customer's config.renewal_issue_method.
75825
+ * How far the invoice created now advances. draft leaves it editable for manual review. finalize opens it without Stripe emailing, reminding or charging (auto_advance off), for invoices collected outside Stripe. send opens it and lets Stripe email it. Defaults to send. Requires enabled: true. With a future starts_at only send applies: the invoice is created and sent when the plan starts. Renewal invoices follow the customer's config.renewal_issue_method.
75826
75826
  */
75827
75827
  type PreviewUpdateInvoiceModeIssueMethod = ClosedEnum<typeof PreviewUpdateInvoiceModeIssueMethod>;
75828
75828
  declare const PreviewUpdatePaymentMethodType: {
@@ -75844,7 +75844,7 @@ type PreviewUpdateInvoiceMode = {
75844
75844
  */
75845
75845
  enabled: boolean;
75846
75846
  /**
75847
- * If true, enables the plan immediately even though the invoice is not paid yet.
75847
+ * If true, enables the plan immediately even though the invoice is not paid yet, or before a future starts_at.
75848
75848
  */
75849
75849
  enablePlanImmediately?: boolean | undefined;
75850
75850
  /**
@@ -75852,7 +75852,7 @@ type PreviewUpdateInvoiceMode = {
75852
75852
  */
75853
75853
  finalize?: boolean | undefined;
75854
75854
  /**
75855
- * How far the invoice created now advances. draft leaves it editable for manual review. finalize opens it without Stripe emailing, reminding or charging (auto_advance off), for invoices collected outside Stripe. send opens it and lets Stripe email it. Defaults to send. Requires enabled: true. Renewal invoices follow the customer's config.renewal_issue_method.
75855
+ * How far the invoice created now advances. draft leaves it editable for manual review. finalize opens it without Stripe emailing, reminding or charging (auto_advance off), for invoices collected outside Stripe. send opens it and lets Stripe email it. Defaults to send. Requires enabled: true. With a future starts_at only send applies: the invoice is created and sent when the plan starts. Renewal invoices follow the customer's config.renewal_issue_method.
75856
75856
  */
75857
75857
  issueMethod?: PreviewUpdateInvoiceModeIssueMethod | undefined;
75858
75858
  /**
@@ -80473,7 +80473,7 @@ type SetupPaymentParams = {
80473
80473
  */
80474
80474
  billingCycleAnchor?: string | number | undefined;
80475
80475
  /**
80476
- * Unix timestamp in milliseconds for when the attached plan should start. Future dates create a scheduled subscription.
80476
+ * Unix timestamp in milliseconds for when the attached plan should start. Future dates create a scheduled subscription; with invoice_mode, its first invoice is sent on that date on invoice_mode.net_terms_days.
80477
80477
  */
80478
80478
  startsAt?: number | undefined;
80479
80479
  /**
@@ -92154,7 +92154,7 @@ declare class Billing extends ClientSDK {
92154
92154
  * @param newBillingSubscription - Only applicable when the customer has an existing Stripe subscription. If true, creates a new separate subscription instead of merging into the existing one. (optional)
92155
92155
  * @param billingCycleAnchor - Reset the billing cycle immediately with 'now', or schedule a reset at a future Unix timestamp in milliseconds. (optional)
92156
92156
  * @param planSchedule - When the plan change should take effect. 'immediate' applies now, 'end_of_cycle' schedules for the end of the current billing cycle. By default, upgrades are immediate and downgrades are scheduled. (optional)
92157
- * @param startsAt - Unix timestamp in milliseconds for when the attached plan should start. Future dates create a scheduled subscription. (optional)
92157
+ * @param startsAt - Unix timestamp in milliseconds for when the attached plan should start. Future dates create a scheduled subscription; with invoice_mode, its first invoice is sent on that date on invoice_mode.net_terms_days. (optional)
92158
92158
  * @param endsAt - Unix timestamp in milliseconds for when the attached plan should end. (optional)
92159
92159
  * @param checkoutSessionParams - Additional parameters to pass into the creation of the Stripe checkout session. (optional)
92160
92160
  * @param longLivedCheckout - If true, returns an Autumn-hosted checkout link that can create a fresh Stripe checkout session when opened. (optional)
@@ -92279,7 +92279,7 @@ declare class Billing extends ClientSDK {
92279
92279
  * @param newBillingSubscription - Only applicable when the customer has an existing Stripe subscription. If true, creates a new separate subscription instead of merging into the existing one. (optional)
92280
92280
  * @param billingCycleAnchor - Reset the billing cycle immediately with 'now', or schedule a reset at a future Unix timestamp in milliseconds. (optional)
92281
92281
  * @param planSchedule - When the plan change should take effect. 'immediate' applies now, 'end_of_cycle' schedules for the end of the current billing cycle. By default, upgrades are immediate and downgrades are scheduled. (optional)
92282
- * @param startsAt - Unix timestamp in milliseconds for when the attached plan should start. Future dates create a scheduled subscription. (optional)
92282
+ * @param startsAt - Unix timestamp in milliseconds for when the attached plan should start. Future dates create a scheduled subscription; with invoice_mode, its first invoice is sent on that date on invoice_mode.net_terms_days. (optional)
92283
92283
  * @param endsAt - Unix timestamp in milliseconds for when the attached plan should end. (optional)
92284
92284
  * @param checkoutSessionParams - Additional parameters to pass into the creation of the Stripe checkout session. (optional)
92285
92285
  * @param longLivedCheckout - If true, returns an Autumn-hosted checkout link that can create a fresh Stripe checkout session when opened. (optional)