autumn-js 1.3.52 → 1.3.54
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/backend/adapters/express.js +2 -2
- package/dist/backend/adapters/express.mjs +8 -8
- package/dist/backend/adapters/fetch.js +2 -2
- package/dist/backend/adapters/fetch.mjs +8 -8
- package/dist/backend/adapters/hono.js +2 -2
- package/dist/backend/adapters/hono.mjs +8 -8
- package/dist/backend/adapters/index.js +2 -2
- package/dist/backend/adapters/index.mjs +11 -11
- package/dist/backend/adapters/next.js +2 -2
- package/dist/backend/adapters/next.mjs +8 -8
- package/dist/backend/{chunk-7D4Q6DD5.mjs → chunk-3RJ4UI53.mjs} +4 -4
- package/dist/backend/{chunk-MLNOZNXA.mjs → chunk-7HTOZMKW.mjs} +1 -1
- package/dist/backend/{chunk-DAFJNKRC.mjs → chunk-HI54YU3D.mjs} +1 -1
- package/dist/backend/{chunk-JANEVXQD.mjs → chunk-L6KEJB2P.mjs} +6 -6
- package/dist/backend/{chunk-HO6HXFXB.mjs → chunk-RAGDMUCF.mjs} +1 -1
- package/dist/backend/{chunk-4XONQCNS.mjs → chunk-SQKT6KS7.mjs} +1 -1
- package/dist/backend/{chunk-NTT3NWTL.mjs → chunk-ZMYAMYEL.mjs} +2 -2
- package/dist/backend/core/handlers/coreHandler.d.mts +1 -1
- package/dist/backend/core/handlers/coreHandler.d.ts +1 -1
- package/dist/backend/core/handlers/coreHandler.js +2 -2
- package/dist/backend/core/handlers/coreHandler.mjs +6 -6
- package/dist/backend/core/handlers/executeRoute.d.mts +1 -1
- package/dist/backend/core/handlers/executeRoute.d.ts +1 -1
- package/dist/backend/core/handlers/executeRoute.mjs +4 -4
- package/dist/backend/core/handlers/handleRouteByName.js +2 -2
- package/dist/backend/core/handlers/handleRouteByName.mjs +6 -6
- package/dist/backend/core/handlers/index.d.mts +1 -1
- package/dist/backend/core/handlers/index.d.ts +1 -1
- package/dist/backend/core/handlers/index.js +2 -2
- package/dist/backend/core/handlers/index.mjs +10 -10
- package/dist/backend/core/index.d.mts +1 -1
- package/dist/backend/core/index.d.ts +1 -1
- package/dist/backend/core/index.js +2 -2
- package/dist/backend/core/index.mjs +9 -9
- package/dist/backend/core/routes/index.d.mts +1 -1
- package/dist/backend/core/routes/index.d.ts +1 -1
- package/dist/backend/core/routes/index.mjs +1 -1
- package/dist/backend/core/routes/routeBuilder.d.mts +1 -1
- package/dist/backend/core/routes/routeBuilder.d.ts +1 -1
- package/dist/backend/core/routes/routeConfigs.d.mts +1 -1
- package/dist/backend/core/routes/routeConfigs.d.ts +1 -1
- package/dist/backend/core/routes/routeConfigs.mjs +1 -1
- package/dist/backend/core/types/handlerTypes.d.mts +1 -1
- package/dist/backend/core/types/handlerTypes.d.ts +1 -1
- package/dist/backend/core/types/index.d.mts +1 -1
- package/dist/backend/core/types/index.d.ts +1 -1
- package/dist/backend/core/types/routeTypes.d.mts +1 -1
- package/dist/backend/core/types/routeTypes.d.ts +1 -1
- package/dist/backend/core/utils/index.mjs +3 -3
- package/dist/backend/index.d.mts +2 -2
- package/dist/backend/index.d.ts +2 -2
- package/dist/backend/index.js +2 -2
- package/dist/backend/index.mjs +9 -9
- package/dist/backend/{routeTypes-Czot4Qi-.d.mts → routeTypes-BYO_tt3w.d.mts} +5 -5
- package/dist/backend/{routeTypes-D4pVj85I.d.ts → routeTypes-j2nKc0Ve.d.ts} +5 -5
- package/dist/better-auth/{chunk-54S4JXQI.mjs → chunk-QBGNMDVZ.mjs} +2 -2
- package/dist/better-auth/index.js +2 -2
- package/dist/better-auth/index.mjs +1 -1
- package/dist/better-auth/utils/handleBetterAuthRoute.js +2 -2
- package/dist/better-auth/utils/handleBetterAuthRoute.mjs +1 -1
- package/dist/better-auth/utils/index.js +2 -2
- package/dist/better-auth/utils/index.mjs +1 -1
- package/dist/react/AutumnContext.d.mts +1 -1
- package/dist/react/AutumnContext.d.ts +1 -1
- package/dist/react/client/AutumnClient.d.mts +1 -1
- package/dist/react/client/AutumnClient.d.ts +1 -1
- package/dist/react/client/IAutumnClient.d.mts +1 -1
- package/dist/react/client/IAutumnClient.d.ts +1 -1
- package/dist/react/client/index.d.mts +1 -1
- package/dist/react/client/index.d.ts +1 -1
- package/dist/react/hooks/index.d.mts +1 -1
- package/dist/react/hooks/index.d.ts +1 -1
- package/dist/react/hooks/internal/getLocalCheckResponse.d.mts +1 -1
- package/dist/react/hooks/internal/getLocalCheckResponse.d.ts +1 -1
- package/dist/react/hooks/internal/useCustomerActions.d.mts +1 -1
- package/dist/react/hooks/internal/useCustomerActions.d.ts +1 -1
- package/dist/react/hooks/useAggregateEvents.d.mts +1 -1
- package/dist/react/hooks/useAggregateEvents.d.ts +1 -1
- package/dist/react/hooks/useCustomer.d.mts +1 -1
- package/dist/react/hooks/useCustomer.d.ts +1 -1
- package/dist/react/hooks/useEntity.d.mts +1 -1
- package/dist/react/hooks/useEntity.d.ts +1 -1
- package/dist/react/hooks/useListEvents.d.mts +1 -1
- package/dist/react/hooks/useListEvents.d.ts +1 -1
- package/dist/react/hooks/useListPlans.d.mts +1 -1
- package/dist/react/hooks/useListPlans.d.ts +1 -1
- package/dist/react/hooks/useReferrals.d.mts +1 -1
- package/dist/react/hooks/useReferrals.d.ts +1 -1
- package/dist/react/index.d.mts +1 -1
- package/dist/react/index.d.ts +1 -1
- package/dist/react/{params-BGpmxI8B.d.mts → params-B2XEzt8i.d.mts} +3 -3
- package/dist/react/{params-C7_vr_BA.d.ts → params-CnjoLoXH.d.ts} +3 -3
- package/dist/sdk/index.d.mts +5 -5
- package/dist/sdk/index.d.ts +5 -5
- package/dist/sdk/index.js +2 -2
- package/dist/sdk/index.mjs +2 -2
- package/package.json +2 -2
- package/dist/backend/{chunk-IXUCY7AU.mjs → chunk-MOHYGUMA.mjs} +3 -3
|
@@ -2,7 +2,7 @@ export { createCoreHandler } from './handlers/coreHandler.mjs';
|
|
|
2
2
|
export { A as AuthResult, C as CustomerData, a as CustomerId, R as ResolvedIdentity } from '../authTypes-TPWTIfcM.mjs';
|
|
3
3
|
export { CoreHandlerOptions, UnifiedRequest, UnifiedResponse } from './types/handlerTypes.mjs';
|
|
4
4
|
export { BackendErrorBody, BackendResult } from './types/responseTypes.mjs';
|
|
5
|
-
export { C as CustomHandlerArgs, a as CustomHandlerFn, R as RouteDefinition } from '../routeTypes-
|
|
5
|
+
export { C as CustomHandlerArgs, a as CustomHandlerFn, R as RouteDefinition } from '../routeTypes-BYO_tt3w.mjs';
|
|
6
6
|
export { HandleRouteByNameOptions, HandleRouteByNameResult, handleRouteByName } from './handlers/handleRouteByName.mjs';
|
|
7
7
|
export { buildRouter } from './routes/routeBuilder.mjs';
|
|
8
8
|
export { routeConfigs } from './routes/routeConfigs.mjs';
|
|
@@ -2,7 +2,7 @@ export { createCoreHandler } from './handlers/coreHandler.js';
|
|
|
2
2
|
export { A as AuthResult, C as CustomerData, a as CustomerId, R as ResolvedIdentity } from '../authTypes-TPWTIfcM.js';
|
|
3
3
|
export { CoreHandlerOptions, UnifiedRequest, UnifiedResponse } from './types/handlerTypes.js';
|
|
4
4
|
export { BackendErrorBody, BackendResult } from './types/responseTypes.js';
|
|
5
|
-
export { C as CustomHandlerArgs, a as CustomHandlerFn, R as RouteDefinition } from '../routeTypes-
|
|
5
|
+
export { C as CustomHandlerArgs, a as CustomHandlerFn, R as RouteDefinition } from '../routeTypes-j2nKc0Ve.js';
|
|
6
6
|
export { HandleRouteByNameOptions, HandleRouteByNameResult, handleRouteByName } from './handlers/handleRouteByName.js';
|
|
7
7
|
export { buildRouter } from './routes/routeBuilder.js';
|
|
8
8
|
export { routeConfigs } from './routes/routeConfigs.js';
|
|
@@ -58933,7 +58933,7 @@ var Billing = class extends ClientSDK {
|
|
|
58933
58933
|
* @param enablePlanImmediately - If true, the customer's plan is activated immediately even when payment is deferred (invoice mode) or pending (Stripe checkout). For Stripe checkout, the customer_product is inserted before the customer completes the hosted form. Set it here rather than on `invoice_mode`, which only covers the invoice-unpaid case. (optional)
|
|
58934
58934
|
* @param taxRateId - Stripe tax rate ID (txr_...) to apply as the default tax rate on the created subscription, invoice, or checkout session line items. (optional)
|
|
58935
58935
|
* @param currency - Currency to bill this attach in (e.g. usd, eur). Must match the customer's currency if they are already locked to one, and the plan must offer a paid price in it. Defaults to the customer's currency, then the org default. (optional)
|
|
58936
|
-
* @param removePlanIds - Plan IDs to expire on the customer as part of this attach. Each must be an active plan
|
|
58936
|
+
* @param removePlanIds - Plan IDs to expire on the customer as part of this attach. Each must be an active plan. When no plan in the same group is being replaced, the attach takes over the subscription of the first paid plan listed here, unless `new_billing_subscription` is true (paid plans cannot be removed in that case). Any other paid plan must be billed on that same subscription (free plans can always be removed). Only allowed when the new plan starts immediately (not with `plan_schedule: end_of_cycle`, or a future `starts_at` without `enable_plan_immediately`). (optional)
|
|
58937
58937
|
* @param removeDiscounts - Discounts to remove from the subscription, by reward ID. Discounts not listed are left unchanged. (optional)
|
|
58938
58938
|
*
|
|
58939
58939
|
* @returns A billing response with customer ID, invoice details, and payment URL (if checkout required).
|
|
@@ -59071,7 +59071,7 @@ var Billing = class extends ClientSDK {
|
|
|
59071
59071
|
* @param enablePlanImmediately - If true, the customer's plan is activated immediately even when payment is deferred (invoice mode) or pending (Stripe checkout). For Stripe checkout, the customer_product is inserted before the customer completes the hosted form. Set it here rather than on `invoice_mode`, which only covers the invoice-unpaid case. (optional)
|
|
59072
59072
|
* @param taxRateId - Stripe tax rate ID (txr_...) to apply as the default tax rate on the created subscription, invoice, or checkout session line items. (optional)
|
|
59073
59073
|
* @param currency - Currency to bill this attach in (e.g. usd, eur). Must match the customer's currency if they are already locked to one, and the plan must offer a paid price in it. Defaults to the customer's currency, then the org default. (optional)
|
|
59074
|
-
* @param removePlanIds - Plan IDs to expire on the customer as part of this attach. Each must be an active plan
|
|
59074
|
+
* @param removePlanIds - Plan IDs to expire on the customer as part of this attach. Each must be an active plan. When no plan in the same group is being replaced, the attach takes over the subscription of the first paid plan listed here, unless `new_billing_subscription` is true (paid plans cannot be removed in that case). Any other paid plan must be billed on that same subscription (free plans can always be removed). Only allowed when the new plan starts immediately (not with `plan_schedule: end_of_cycle`, or a future `starts_at` without `enable_plan_immediately`). (optional)
|
|
59075
59075
|
* @param removeDiscounts - Discounts to remove from the subscription, by reward ID. Discounts not listed are left unchanged. (optional)
|
|
59076
59076
|
*
|
|
59077
59077
|
* @returns A preview response with line items, totals, and effective dates for the proposed changes.
|
|
@@ -2,28 +2,28 @@ import "../chunk-WYDGEDEU.mjs";
|
|
|
2
2
|
import "../chunk-VXND2UDT.mjs";
|
|
3
3
|
import {
|
|
4
4
|
handleRouteByName
|
|
5
|
-
} from "../chunk-
|
|
5
|
+
} from "../chunk-3RJ4UI53.mjs";
|
|
6
6
|
import {
|
|
7
7
|
createCoreHandler
|
|
8
|
-
} from "../chunk-
|
|
8
|
+
} from "../chunk-L6KEJB2P.mjs";
|
|
9
|
+
import "../chunk-ZMYAMYEL.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-NTT3NWTL.mjs";
|
|
14
17
|
import {
|
|
15
18
|
routeConfigs
|
|
16
19
|
} from "../chunk-IQQQ5P6R.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
|
|
26
|
-
|
|
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-
|
|
4
|
+
import '../../routeTypes-BYO_tt3w.mjs';
|
|
5
5
|
import '../../authTypes-TPWTIfcM.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-
|
|
4
|
+
import '../../routeTypes-j2nKc0Ve.js';
|
|
5
5
|
import '../../authTypes-TPWTIfcM.js';
|
|
6
6
|
import 'zod/v4';
|
|
7
7
|
import '../utils/sanitizeBody.js';
|
|
@@ -6,8 +6,8 @@ import {
|
|
|
6
6
|
routeConfigs
|
|
7
7
|
} from "../../chunk-IQQQ5P6R.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-
|
|
2
|
+
import { R as RouteDefinition } from '../../routeTypes-BYO_tt3w.mjs';
|
|
3
3
|
import '../../authTypes-TPWTIfcM.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-
|
|
2
|
+
import { R as RouteDefinition } from '../../routeTypes-j2nKc0Ve.js';
|
|
3
3
|
import '../../authTypes-TPWTIfcM.js';
|
|
4
4
|
import 'zod/v4';
|
|
5
5
|
import '../utils/sanitizeBody.js';
|
|
@@ -2,8 +2,8 @@ import {
|
|
|
2
2
|
routeConfigs
|
|
3
3
|
} from "../../chunk-IQQQ5P6R.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-TPWTIfcM.mjs';
|
|
2
|
-
import { R as RouteDefinition } from '../../routeTypes-
|
|
2
|
+
import { R as RouteDefinition } from '../../routeTypes-BYO_tt3w.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-TPWTIfcM.js';
|
|
2
|
-
import { R as RouteDefinition } from '../../routeTypes-
|
|
2
|
+
import { R as RouteDefinition } from '../../routeTypes-j2nKc0Ve.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-TPWTIfcM.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-
|
|
4
|
+
export { C as CustomHandlerArgs, a as CustomHandlerFn, c as ROUTE_NAMES, R as RouteDefinition, b as RouteName } from '../../routeTypes-BYO_tt3w.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-TPWTIfcM.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-
|
|
4
|
+
export { C as CustomHandlerArgs, a as CustomHandlerFn, c as ROUTE_NAMES, R as RouteDefinition, b as RouteName } from '../../routeTypes-j2nKc0Ve.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-
|
|
1
|
+
export { C as CustomHandlerArgs, a as CustomHandlerFn, c as ROUTE_NAMES, R as RouteDefinition, b as RouteName } from '../../routeTypes-BYO_tt3w.mjs';
|
|
2
2
|
import 'zod/v4';
|
|
3
3
|
import '../utils/sanitizeBody.mjs';
|
|
4
4
|
import '../../authTypes-TPWTIfcM.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-
|
|
1
|
+
export { C as CustomHandlerArgs, a as CustomHandlerFn, c as ROUTE_NAMES, R as RouteDefinition, b as RouteName } from '../../routeTypes-j2nKc0Ve.js';
|
|
2
2
|
import 'zod/v4';
|
|
3
3
|
import '../utils/sanitizeBody.js';
|
|
4
4
|
import '../../authTypes-TPWTIfcM.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,
|
package/dist/backend/index.d.mts
CHANGED
|
@@ -3,8 +3,8 @@ import { C as CustomerData } from './authTypes-TPWTIfcM.mjs';
|
|
|
3
3
|
export { A as AuthResult, a as CustomerId, R as ResolvedIdentity } from './authTypes-TPWTIfcM.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-
|
|
7
|
-
export { C as CustomHandlerArgs, a as CustomHandlerFn } from './routeTypes-
|
|
6
|
+
import { R as RouteDefinition } from './routeTypes-BYO_tt3w.mjs';
|
|
7
|
+
export { C as CustomHandlerArgs, a as CustomHandlerFn } from './routeTypes-BYO_tt3w.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';
|
package/dist/backend/index.d.ts
CHANGED
|
@@ -3,8 +3,8 @@ import { C as CustomerData } from './authTypes-TPWTIfcM.js';
|
|
|
3
3
|
export { A as AuthResult, a as CustomerId, R as ResolvedIdentity } from './authTypes-TPWTIfcM.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-
|
|
7
|
-
export { C as CustomHandlerArgs, a as CustomHandlerFn } from './routeTypes-
|
|
6
|
+
import { R as RouteDefinition } from './routeTypes-j2nKc0Ve.js';
|
|
7
|
+
export { C as CustomHandlerArgs, a as CustomHandlerFn } from './routeTypes-j2nKc0Ve.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';
|
package/dist/backend/index.js
CHANGED
|
@@ -58933,7 +58933,7 @@ var Billing = class extends ClientSDK {
|
|
|
58933
58933
|
* @param enablePlanImmediately - If true, the customer's plan is activated immediately even when payment is deferred (invoice mode) or pending (Stripe checkout). For Stripe checkout, the customer_product is inserted before the customer completes the hosted form. Set it here rather than on `invoice_mode`, which only covers the invoice-unpaid case. (optional)
|
|
58934
58934
|
* @param taxRateId - Stripe tax rate ID (txr_...) to apply as the default tax rate on the created subscription, invoice, or checkout session line items. (optional)
|
|
58935
58935
|
* @param currency - Currency to bill this attach in (e.g. usd, eur). Must match the customer's currency if they are already locked to one, and the plan must offer a paid price in it. Defaults to the customer's currency, then the org default. (optional)
|
|
58936
|
-
* @param removePlanIds - Plan IDs to expire on the customer as part of this attach. Each must be an active plan
|
|
58936
|
+
* @param removePlanIds - Plan IDs to expire on the customer as part of this attach. Each must be an active plan. When no plan in the same group is being replaced, the attach takes over the subscription of the first paid plan listed here, unless `new_billing_subscription` is true (paid plans cannot be removed in that case). Any other paid plan must be billed on that same subscription (free plans can always be removed). Only allowed when the new plan starts immediately (not with `plan_schedule: end_of_cycle`, or a future `starts_at` without `enable_plan_immediately`). (optional)
|
|
58937
58937
|
* @param removeDiscounts - Discounts to remove from the subscription, by reward ID. Discounts not listed are left unchanged. (optional)
|
|
58938
58938
|
*
|
|
58939
58939
|
* @returns A billing response with customer ID, invoice details, and payment URL (if checkout required).
|
|
@@ -59071,7 +59071,7 @@ var Billing = class extends ClientSDK {
|
|
|
59071
59071
|
* @param enablePlanImmediately - If true, the customer's plan is activated immediately even when payment is deferred (invoice mode) or pending (Stripe checkout). For Stripe checkout, the customer_product is inserted before the customer completes the hosted form. Set it here rather than on `invoice_mode`, which only covers the invoice-unpaid case. (optional)
|
|
59072
59072
|
* @param taxRateId - Stripe tax rate ID (txr_...) to apply as the default tax rate on the created subscription, invoice, or checkout session line items. (optional)
|
|
59073
59073
|
* @param currency - Currency to bill this attach in (e.g. usd, eur). Must match the customer's currency if they are already locked to one, and the plan must offer a paid price in it. Defaults to the customer's currency, then the org default. (optional)
|
|
59074
|
-
* @param removePlanIds - Plan IDs to expire on the customer as part of this attach. Each must be an active plan
|
|
59074
|
+
* @param removePlanIds - Plan IDs to expire on the customer as part of this attach. Each must be an active plan. When no plan in the same group is being replaced, the attach takes over the subscription of the first paid plan listed here, unless `new_billing_subscription` is true (paid plans cannot be removed in that case). Any other paid plan must be billed on that same subscription (free plans can always be removed). Only allowed when the new plan starts immediately (not with `plan_schedule: end_of_cycle`, or a future `starts_at` without `enable_plan_immediately`). (optional)
|
|
59075
59075
|
* @param removeDiscounts - Discounts to remove from the subscription, by reward ID. Discounts not listed are left unchanged. (optional)
|
|
59076
59076
|
*
|
|
59077
59077
|
* @returns A preview response with line items, totals, and effective dates for the proposed changes.
|
package/dist/backend/index.mjs
CHANGED
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
import "./chunk-WYDGEDEU.mjs";
|
|
2
2
|
import "./chunk-VXND2UDT.mjs";
|
|
3
|
-
import "./chunk-
|
|
3
|
+
import "./chunk-3RJ4UI53.mjs";
|
|
4
4
|
import {
|
|
5
5
|
createCoreHandler
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-L6KEJB2P.mjs";
|
|
7
|
+
import "./chunk-ZMYAMYEL.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-NTT3NWTL.mjs";
|
|
12
15
|
import {
|
|
13
16
|
routeConfigs
|
|
14
17
|
} from "./chunk-IQQQ5P6R.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
|
|
24
|
-
|
|
22
|
+
import {
|
|
23
|
+
sanitizeBody
|
|
24
|
+
} from "./chunk-I7CD6EB6.mjs";
|
|
25
25
|
import {
|
|
26
26
|
backendError,
|
|
27
27
|
backendSuccess,
|
|
@@ -2756,7 +2756,7 @@ type AttachParams = {
|
|
|
2756
2756
|
*/
|
|
2757
2757
|
currency?: string | undefined;
|
|
2758
2758
|
/**
|
|
2759
|
-
* Plan IDs to expire on the customer as part of this attach. Each must be an active plan
|
|
2759
|
+
* Plan IDs to expire on the customer as part of this attach. Each must be an active plan. When no plan in the same group is being replaced, the attach takes over the subscription of the first paid plan listed here, unless `new_billing_subscription` is true (paid plans cannot be removed in that case). Any other paid plan must be billed on that same subscription (free plans can always be removed). Only allowed when the new plan starts immediately (not with `plan_schedule: end_of_cycle`, or a future `starts_at` without `enable_plan_immediately`).
|
|
2760
2760
|
*/
|
|
2761
2761
|
removePlanIds?: Array<string> | undefined;
|
|
2762
2762
|
/**
|
|
@@ -45574,7 +45574,7 @@ type PreviewAttachParams = {
|
|
|
45574
45574
|
*/
|
|
45575
45575
|
currency?: string | undefined;
|
|
45576
45576
|
/**
|
|
45577
|
-
* Plan IDs to expire on the customer as part of this attach. Each must be an active plan
|
|
45577
|
+
* Plan IDs to expire on the customer as part of this attach. Each must be an active plan. When no plan in the same group is being replaced, the attach takes over the subscription of the first paid plan listed here, unless `new_billing_subscription` is true (paid plans cannot be removed in that case). Any other paid plan must be billed on that same subscription (free plans can always be removed). Only allowed when the new plan starts immediately (not with `plan_schedule: end_of_cycle`, or a future `starts_at` without `enable_plan_immediately`).
|
|
45578
45578
|
*/
|
|
45579
45579
|
removePlanIds?: Array<string> | undefined;
|
|
45580
45580
|
/**
|
|
@@ -54170,7 +54170,7 @@ type SetupPaymentParams = {
|
|
|
54170
54170
|
*/
|
|
54171
54171
|
currency?: string | undefined;
|
|
54172
54172
|
/**
|
|
54173
|
-
* Plan IDs to expire on the customer as part of this attach. Each must be an active plan
|
|
54173
|
+
* Plan IDs to expire on the customer as part of this attach. Each must be an active plan. When no plan in the same group is being replaced, the attach takes over the subscription of the first paid plan listed here, unless `new_billing_subscription` is true (paid plans cannot be removed in that case). Any other paid plan must be billed on that same subscription (free plans can always be removed). Only allowed when the new plan starts immediately (not with `plan_schedule: end_of_cycle`, or a future `starts_at` without `enable_plan_immediately`).
|
|
54174
54174
|
*/
|
|
54175
54175
|
removePlanIds?: Array<string> | undefined;
|
|
54176
54176
|
/**
|
|
@@ -66248,7 +66248,7 @@ declare class Billing extends ClientSDK {
|
|
|
66248
66248
|
* @param enablePlanImmediately - If true, the customer's plan is activated immediately even when payment is deferred (invoice mode) or pending (Stripe checkout). For Stripe checkout, the customer_product is inserted before the customer completes the hosted form. Set it here rather than on `invoice_mode`, which only covers the invoice-unpaid case. (optional)
|
|
66249
66249
|
* @param taxRateId - Stripe tax rate ID (txr_...) to apply as the default tax rate on the created subscription, invoice, or checkout session line items. (optional)
|
|
66250
66250
|
* @param currency - Currency to bill this attach in (e.g. usd, eur). Must match the customer's currency if they are already locked to one, and the plan must offer a paid price in it. Defaults to the customer's currency, then the org default. (optional)
|
|
66251
|
-
* @param removePlanIds - Plan IDs to expire on the customer as part of this attach. Each must be an active plan
|
|
66251
|
+
* @param removePlanIds - Plan IDs to expire on the customer as part of this attach. Each must be an active plan. When no plan in the same group is being replaced, the attach takes over the subscription of the first paid plan listed here, unless `new_billing_subscription` is true (paid plans cannot be removed in that case). Any other paid plan must be billed on that same subscription (free plans can always be removed). Only allowed when the new plan starts immediately (not with `plan_schedule: end_of_cycle`, or a future `starts_at` without `enable_plan_immediately`). (optional)
|
|
66252
66252
|
* @param removeDiscounts - Discounts to remove from the subscription, by reward ID. Discounts not listed are left unchanged. (optional)
|
|
66253
66253
|
*
|
|
66254
66254
|
* @returns A billing response with customer ID, invoice details, and payment URL (if checkout required).
|
|
@@ -66368,7 +66368,7 @@ declare class Billing extends ClientSDK {
|
|
|
66368
66368
|
* @param enablePlanImmediately - If true, the customer's plan is activated immediately even when payment is deferred (invoice mode) or pending (Stripe checkout). For Stripe checkout, the customer_product is inserted before the customer completes the hosted form. Set it here rather than on `invoice_mode`, which only covers the invoice-unpaid case. (optional)
|
|
66369
66369
|
* @param taxRateId - Stripe tax rate ID (txr_...) to apply as the default tax rate on the created subscription, invoice, or checkout session line items. (optional)
|
|
66370
66370
|
* @param currency - Currency to bill this attach in (e.g. usd, eur). Must match the customer's currency if they are already locked to one, and the plan must offer a paid price in it. Defaults to the customer's currency, then the org default. (optional)
|
|
66371
|
-
* @param removePlanIds - Plan IDs to expire on the customer as part of this attach. Each must be an active plan
|
|
66371
|
+
* @param removePlanIds - Plan IDs to expire on the customer as part of this attach. Each must be an active plan. When no plan in the same group is being replaced, the attach takes over the subscription of the first paid plan listed here, unless `new_billing_subscription` is true (paid plans cannot be removed in that case). Any other paid plan must be billed on that same subscription (free plans can always be removed). Only allowed when the new plan starts immediately (not with `plan_schedule: end_of_cycle`, or a future `starts_at` without `enable_plan_immediately`). (optional)
|
|
66372
66372
|
* @param removeDiscounts - Discounts to remove from the subscription, by reward ID. Discounts not listed are left unchanged. (optional)
|
|
66373
66373
|
*
|
|
66374
66374
|
* @returns A preview response with line items, totals, and effective dates for the proposed changes.
|
|
@@ -2756,7 +2756,7 @@ type AttachParams = {
|
|
|
2756
2756
|
*/
|
|
2757
2757
|
currency?: string | undefined;
|
|
2758
2758
|
/**
|
|
2759
|
-
* Plan IDs to expire on the customer as part of this attach. Each must be an active plan
|
|
2759
|
+
* Plan IDs to expire on the customer as part of this attach. Each must be an active plan. When no plan in the same group is being replaced, the attach takes over the subscription of the first paid plan listed here, unless `new_billing_subscription` is true (paid plans cannot be removed in that case). Any other paid plan must be billed on that same subscription (free plans can always be removed). Only allowed when the new plan starts immediately (not with `plan_schedule: end_of_cycle`, or a future `starts_at` without `enable_plan_immediately`).
|
|
2760
2760
|
*/
|
|
2761
2761
|
removePlanIds?: Array<string> | undefined;
|
|
2762
2762
|
/**
|
|
@@ -45574,7 +45574,7 @@ type PreviewAttachParams = {
|
|
|
45574
45574
|
*/
|
|
45575
45575
|
currency?: string | undefined;
|
|
45576
45576
|
/**
|
|
45577
|
-
* Plan IDs to expire on the customer as part of this attach. Each must be an active plan
|
|
45577
|
+
* Plan IDs to expire on the customer as part of this attach. Each must be an active plan. When no plan in the same group is being replaced, the attach takes over the subscription of the first paid plan listed here, unless `new_billing_subscription` is true (paid plans cannot be removed in that case). Any other paid plan must be billed on that same subscription (free plans can always be removed). Only allowed when the new plan starts immediately (not with `plan_schedule: end_of_cycle`, or a future `starts_at` without `enable_plan_immediately`).
|
|
45578
45578
|
*/
|
|
45579
45579
|
removePlanIds?: Array<string> | undefined;
|
|
45580
45580
|
/**
|
|
@@ -54170,7 +54170,7 @@ type SetupPaymentParams = {
|
|
|
54170
54170
|
*/
|
|
54171
54171
|
currency?: string | undefined;
|
|
54172
54172
|
/**
|
|
54173
|
-
* Plan IDs to expire on the customer as part of this attach. Each must be an active plan
|
|
54173
|
+
* Plan IDs to expire on the customer as part of this attach. Each must be an active plan. When no plan in the same group is being replaced, the attach takes over the subscription of the first paid plan listed here, unless `new_billing_subscription` is true (paid plans cannot be removed in that case). Any other paid plan must be billed on that same subscription (free plans can always be removed). Only allowed when the new plan starts immediately (not with `plan_schedule: end_of_cycle`, or a future `starts_at` without `enable_plan_immediately`).
|
|
54174
54174
|
*/
|
|
54175
54175
|
removePlanIds?: Array<string> | undefined;
|
|
54176
54176
|
/**
|
|
@@ -66248,7 +66248,7 @@ declare class Billing extends ClientSDK {
|
|
|
66248
66248
|
* @param enablePlanImmediately - If true, the customer's plan is activated immediately even when payment is deferred (invoice mode) or pending (Stripe checkout). For Stripe checkout, the customer_product is inserted before the customer completes the hosted form. Set it here rather than on `invoice_mode`, which only covers the invoice-unpaid case. (optional)
|
|
66249
66249
|
* @param taxRateId - Stripe tax rate ID (txr_...) to apply as the default tax rate on the created subscription, invoice, or checkout session line items. (optional)
|
|
66250
66250
|
* @param currency - Currency to bill this attach in (e.g. usd, eur). Must match the customer's currency if they are already locked to one, and the plan must offer a paid price in it. Defaults to the customer's currency, then the org default. (optional)
|
|
66251
|
-
* @param removePlanIds - Plan IDs to expire on the customer as part of this attach. Each must be an active plan
|
|
66251
|
+
* @param removePlanIds - Plan IDs to expire on the customer as part of this attach. Each must be an active plan. When no plan in the same group is being replaced, the attach takes over the subscription of the first paid plan listed here, unless `new_billing_subscription` is true (paid plans cannot be removed in that case). Any other paid plan must be billed on that same subscription (free plans can always be removed). Only allowed when the new plan starts immediately (not with `plan_schedule: end_of_cycle`, or a future `starts_at` without `enable_plan_immediately`). (optional)
|
|
66252
66252
|
* @param removeDiscounts - Discounts to remove from the subscription, by reward ID. Discounts not listed are left unchanged. (optional)
|
|
66253
66253
|
*
|
|
66254
66254
|
* @returns A billing response with customer ID, invoice details, and payment URL (if checkout required).
|
|
@@ -66368,7 +66368,7 @@ declare class Billing extends ClientSDK {
|
|
|
66368
66368
|
* @param enablePlanImmediately - If true, the customer's plan is activated immediately even when payment is deferred (invoice mode) or pending (Stripe checkout). For Stripe checkout, the customer_product is inserted before the customer completes the hosted form. Set it here rather than on `invoice_mode`, which only covers the invoice-unpaid case. (optional)
|
|
66369
66369
|
* @param taxRateId - Stripe tax rate ID (txr_...) to apply as the default tax rate on the created subscription, invoice, or checkout session line items. (optional)
|
|
66370
66370
|
* @param currency - Currency to bill this attach in (e.g. usd, eur). Must match the customer's currency if they are already locked to one, and the plan must offer a paid price in it. Defaults to the customer's currency, then the org default. (optional)
|
|
66371
|
-
* @param removePlanIds - Plan IDs to expire on the customer as part of this attach. Each must be an active plan
|
|
66371
|
+
* @param removePlanIds - Plan IDs to expire on the customer as part of this attach. Each must be an active plan. When no plan in the same group is being replaced, the attach takes over the subscription of the first paid plan listed here, unless `new_billing_subscription` is true (paid plans cannot be removed in that case). Any other paid plan must be billed on that same subscription (free plans can always be removed). Only allowed when the new plan starts immediately (not with `plan_schedule: end_of_cycle`, or a future `starts_at` without `enable_plan_immediately`). (optional)
|
|
66372
66372
|
* @param removeDiscounts - Discounts to remove from the subscription, by reward ID. Discounts not listed are left unchanged. (optional)
|
|
66373
66373
|
*
|
|
66374
66374
|
* @returns A preview response with line items, totals, and effective dates for the proposed changes.
|
|
@@ -58907,7 +58907,7 @@ var Billing = class extends ClientSDK {
|
|
|
58907
58907
|
* @param enablePlanImmediately - If true, the customer's plan is activated immediately even when payment is deferred (invoice mode) or pending (Stripe checkout). For Stripe checkout, the customer_product is inserted before the customer completes the hosted form. Set it here rather than on `invoice_mode`, which only covers the invoice-unpaid case. (optional)
|
|
58908
58908
|
* @param taxRateId - Stripe tax rate ID (txr_...) to apply as the default tax rate on the created subscription, invoice, or checkout session line items. (optional)
|
|
58909
58909
|
* @param currency - Currency to bill this attach in (e.g. usd, eur). Must match the customer's currency if they are already locked to one, and the plan must offer a paid price in it. Defaults to the customer's currency, then the org default. (optional)
|
|
58910
|
-
* @param removePlanIds - Plan IDs to expire on the customer as part of this attach. Each must be an active plan
|
|
58910
|
+
* @param removePlanIds - Plan IDs to expire on the customer as part of this attach. Each must be an active plan. When no plan in the same group is being replaced, the attach takes over the subscription of the first paid plan listed here, unless `new_billing_subscription` is true (paid plans cannot be removed in that case). Any other paid plan must be billed on that same subscription (free plans can always be removed). Only allowed when the new plan starts immediately (not with `plan_schedule: end_of_cycle`, or a future `starts_at` without `enable_plan_immediately`). (optional)
|
|
58911
58911
|
* @param removeDiscounts - Discounts to remove from the subscription, by reward ID. Discounts not listed are left unchanged. (optional)
|
|
58912
58912
|
*
|
|
58913
58913
|
* @returns A billing response with customer ID, invoice details, and payment URL (if checkout required).
|
|
@@ -59045,7 +59045,7 @@ var Billing = class extends ClientSDK {
|
|
|
59045
59045
|
* @param enablePlanImmediately - If true, the customer's plan is activated immediately even when payment is deferred (invoice mode) or pending (Stripe checkout). For Stripe checkout, the customer_product is inserted before the customer completes the hosted form. Set it here rather than on `invoice_mode`, which only covers the invoice-unpaid case. (optional)
|
|
59046
59046
|
* @param taxRateId - Stripe tax rate ID (txr_...) to apply as the default tax rate on the created subscription, invoice, or checkout session line items. (optional)
|
|
59047
59047
|
* @param currency - Currency to bill this attach in (e.g. usd, eur). Must match the customer's currency if they are already locked to one, and the plan must offer a paid price in it. Defaults to the customer's currency, then the org default. (optional)
|
|
59048
|
-
* @param removePlanIds - Plan IDs to expire on the customer as part of this attach. Each must be an active plan
|
|
59048
|
+
* @param removePlanIds - Plan IDs to expire on the customer as part of this attach. Each must be an active plan. When no plan in the same group is being replaced, the attach takes over the subscription of the first paid plan listed here, unless `new_billing_subscription` is true (paid plans cannot be removed in that case). Any other paid plan must be billed on that same subscription (free plans can always be removed). Only allowed when the new plan starts immediately (not with `plan_schedule: end_of_cycle`, or a future `starts_at` without `enable_plan_immediately`). (optional)
|
|
59049
59049
|
* @param removeDiscounts - Discounts to remove from the subscription, by reward ID. Discounts not listed are left unchanged. (optional)
|
|
59050
59050
|
*
|
|
59051
59051
|
* @returns A preview response with line items, totals, and effective dates for the proposed changes.
|
|
@@ -65755,7 +65755,7 @@ var Billing = class extends ClientSDK {
|
|
|
65755
65755
|
* @param enablePlanImmediately - If true, the customer's plan is activated immediately even when payment is deferred (invoice mode) or pending (Stripe checkout). For Stripe checkout, the customer_product is inserted before the customer completes the hosted form. Set it here rather than on `invoice_mode`, which only covers the invoice-unpaid case. (optional)
|
|
65756
65756
|
* @param taxRateId - Stripe tax rate ID (txr_...) to apply as the default tax rate on the created subscription, invoice, or checkout session line items. (optional)
|
|
65757
65757
|
* @param currency - Currency to bill this attach in (e.g. usd, eur). Must match the customer's currency if they are already locked to one, and the plan must offer a paid price in it. Defaults to the customer's currency, then the org default. (optional)
|
|
65758
|
-
* @param removePlanIds - Plan IDs to expire on the customer as part of this attach. Each must be an active plan
|
|
65758
|
+
* @param removePlanIds - Plan IDs to expire on the customer as part of this attach. Each must be an active plan. When no plan in the same group is being replaced, the attach takes over the subscription of the first paid plan listed here, unless `new_billing_subscription` is true (paid plans cannot be removed in that case). Any other paid plan must be billed on that same subscription (free plans can always be removed). Only allowed when the new plan starts immediately (not with `plan_schedule: end_of_cycle`, or a future `starts_at` without `enable_plan_immediately`). (optional)
|
|
65759
65759
|
* @param removeDiscounts - Discounts to remove from the subscription, by reward ID. Discounts not listed are left unchanged. (optional)
|
|
65760
65760
|
*
|
|
65761
65761
|
* @returns A billing response with customer ID, invoice details, and payment URL (if checkout required).
|
|
@@ -65893,7 +65893,7 @@ var Billing = class extends ClientSDK {
|
|
|
65893
65893
|
* @param enablePlanImmediately - If true, the customer's plan is activated immediately even when payment is deferred (invoice mode) or pending (Stripe checkout). For Stripe checkout, the customer_product is inserted before the customer completes the hosted form. Set it here rather than on `invoice_mode`, which only covers the invoice-unpaid case. (optional)
|
|
65894
65894
|
* @param taxRateId - Stripe tax rate ID (txr_...) to apply as the default tax rate on the created subscription, invoice, or checkout session line items. (optional)
|
|
65895
65895
|
* @param currency - Currency to bill this attach in (e.g. usd, eur). Must match the customer's currency if they are already locked to one, and the plan must offer a paid price in it. Defaults to the customer's currency, then the org default. (optional)
|
|
65896
|
-
* @param removePlanIds - Plan IDs to expire on the customer as part of this attach. Each must be an active plan
|
|
65896
|
+
* @param removePlanIds - Plan IDs to expire on the customer as part of this attach. Each must be an active plan. When no plan in the same group is being replaced, the attach takes over the subscription of the first paid plan listed here, unless `new_billing_subscription` is true (paid plans cannot be removed in that case). Any other paid plan must be billed on that same subscription (free plans can always be removed). Only allowed when the new plan starts immediately (not with `plan_schedule: end_of_cycle`, or a future `starts_at` without `enable_plan_immediately`). (optional)
|
|
65897
65897
|
* @param removeDiscounts - Discounts to remove from the subscription, by reward ID. Discounts not listed are left unchanged. (optional)
|
|
65898
65898
|
*
|
|
65899
65899
|
* @returns A preview response with line items, totals, and effective dates for the proposed changes.
|
|
@@ -58926,7 +58926,7 @@ var Billing = class extends ClientSDK {
|
|
|
58926
58926
|
* @param enablePlanImmediately - If true, the customer's plan is activated immediately even when payment is deferred (invoice mode) or pending (Stripe checkout). For Stripe checkout, the customer_product is inserted before the customer completes the hosted form. Set it here rather than on `invoice_mode`, which only covers the invoice-unpaid case. (optional)
|
|
58927
58927
|
* @param taxRateId - Stripe tax rate ID (txr_...) to apply as the default tax rate on the created subscription, invoice, or checkout session line items. (optional)
|
|
58928
58928
|
* @param currency - Currency to bill this attach in (e.g. usd, eur). Must match the customer's currency if they are already locked to one, and the plan must offer a paid price in it. Defaults to the customer's currency, then the org default. (optional)
|
|
58929
|
-
* @param removePlanIds - Plan IDs to expire on the customer as part of this attach. Each must be an active plan
|
|
58929
|
+
* @param removePlanIds - Plan IDs to expire on the customer as part of this attach. Each must be an active plan. When no plan in the same group is being replaced, the attach takes over the subscription of the first paid plan listed here, unless `new_billing_subscription` is true (paid plans cannot be removed in that case). Any other paid plan must be billed on that same subscription (free plans can always be removed). Only allowed when the new plan starts immediately (not with `plan_schedule: end_of_cycle`, or a future `starts_at` without `enable_plan_immediately`). (optional)
|
|
58930
58930
|
* @param removeDiscounts - Discounts to remove from the subscription, by reward ID. Discounts not listed are left unchanged. (optional)
|
|
58931
58931
|
*
|
|
58932
58932
|
* @returns A billing response with customer ID, invoice details, and payment URL (if checkout required).
|
|
@@ -59064,7 +59064,7 @@ var Billing = class extends ClientSDK {
|
|
|
59064
59064
|
* @param enablePlanImmediately - If true, the customer's plan is activated immediately even when payment is deferred (invoice mode) or pending (Stripe checkout). For Stripe checkout, the customer_product is inserted before the customer completes the hosted form. Set it here rather than on `invoice_mode`, which only covers the invoice-unpaid case. (optional)
|
|
59065
59065
|
* @param taxRateId - Stripe tax rate ID (txr_...) to apply as the default tax rate on the created subscription, invoice, or checkout session line items. (optional)
|
|
59066
59066
|
* @param currency - Currency to bill this attach in (e.g. usd, eur). Must match the customer's currency if they are already locked to one, and the plan must offer a paid price in it. Defaults to the customer's currency, then the org default. (optional)
|
|
59067
|
-
* @param removePlanIds - Plan IDs to expire on the customer as part of this attach. Each must be an active plan
|
|
59067
|
+
* @param removePlanIds - Plan IDs to expire on the customer as part of this attach. Each must be an active plan. When no plan in the same group is being replaced, the attach takes over the subscription of the first paid plan listed here, unless `new_billing_subscription` is true (paid plans cannot be removed in that case). Any other paid plan must be billed on that same subscription (free plans can always be removed). Only allowed when the new plan starts immediately (not with `plan_schedule: end_of_cycle`, or a future `starts_at` without `enable_plan_immediately`). (optional)
|
|
59068
59068
|
* @param removeDiscounts - Discounts to remove from the subscription, by reward ID. Discounts not listed are left unchanged. (optional)
|
|
59069
59069
|
*
|
|
59070
59070
|
* @returns A preview response with line items, totals, and effective dates for the proposed changes.
|
|
@@ -65759,7 +65759,7 @@ var Billing = class extends ClientSDK {
|
|
|
65759
65759
|
* @param enablePlanImmediately - If true, the customer's plan is activated immediately even when payment is deferred (invoice mode) or pending (Stripe checkout). For Stripe checkout, the customer_product is inserted before the customer completes the hosted form. Set it here rather than on `invoice_mode`, which only covers the invoice-unpaid case. (optional)
|
|
65760
65760
|
* @param taxRateId - Stripe tax rate ID (txr_...) to apply as the default tax rate on the created subscription, invoice, or checkout session line items. (optional)
|
|
65761
65761
|
* @param currency - Currency to bill this attach in (e.g. usd, eur). Must match the customer's currency if they are already locked to one, and the plan must offer a paid price in it. Defaults to the customer's currency, then the org default. (optional)
|
|
65762
|
-
* @param removePlanIds - Plan IDs to expire on the customer as part of this attach. Each must be an active plan
|
|
65762
|
+
* @param removePlanIds - Plan IDs to expire on the customer as part of this attach. Each must be an active plan. When no plan in the same group is being replaced, the attach takes over the subscription of the first paid plan listed here, unless `new_billing_subscription` is true (paid plans cannot be removed in that case). Any other paid plan must be billed on that same subscription (free plans can always be removed). Only allowed when the new plan starts immediately (not with `plan_schedule: end_of_cycle`, or a future `starts_at` without `enable_plan_immediately`). (optional)
|
|
65763
65763
|
* @param removeDiscounts - Discounts to remove from the subscription, by reward ID. Discounts not listed are left unchanged. (optional)
|
|
65764
65764
|
*
|
|
65765
65765
|
* @returns A billing response with customer ID, invoice details, and payment URL (if checkout required).
|
|
@@ -65897,7 +65897,7 @@ var Billing = class extends ClientSDK {
|
|
|
65897
65897
|
* @param enablePlanImmediately - If true, the customer's plan is activated immediately even when payment is deferred (invoice mode) or pending (Stripe checkout). For Stripe checkout, the customer_product is inserted before the customer completes the hosted form. Set it here rather than on `invoice_mode`, which only covers the invoice-unpaid case. (optional)
|
|
65898
65898
|
* @param taxRateId - Stripe tax rate ID (txr_...) to apply as the default tax rate on the created subscription, invoice, or checkout session line items. (optional)
|
|
65899
65899
|
* @param currency - Currency to bill this attach in (e.g. usd, eur). Must match the customer's currency if they are already locked to one, and the plan must offer a paid price in it. Defaults to the customer's currency, then the org default. (optional)
|
|
65900
|
-
* @param removePlanIds - Plan IDs to expire on the customer as part of this attach. Each must be an active plan
|
|
65900
|
+
* @param removePlanIds - Plan IDs to expire on the customer as part of this attach. Each must be an active plan. When no plan in the same group is being replaced, the attach takes over the subscription of the first paid plan listed here, unless `new_billing_subscription` is true (paid plans cannot be removed in that case). Any other paid plan must be billed on that same subscription (free plans can always be removed). Only allowed when the new plan starts immediately (not with `plan_schedule: end_of_cycle`, or a future `starts_at` without `enable_plan_immediately`). (optional)
|
|
65901
65901
|
* @param removeDiscounts - Discounts to remove from the subscription, by reward ID. Discounts not listed are left unchanged. (optional)
|
|
65902
65902
|
*
|
|
65903
65903
|
* @returns A preview response with line items, totals, and effective dates for the proposed changes.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import { IAutumnClient } from './client/IAutumnClient.mjs';
|
|
3
|
-
import './params-
|
|
3
|
+
import './params-B2XEzt8i.mjs';
|
|
4
4
|
import './plan-CvxFKlF7.mjs';
|
|
5
5
|
import './customer-CZn6Nd7a.mjs';
|
|
6
6
|
import './list-plans-response-ibIt0k4N.mjs';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import { IAutumnClient } from './client/IAutumnClient.js';
|
|
3
|
-
import './params-
|
|
3
|
+
import './params-CnjoLoXH.js';
|
|
4
4
|
import './plan-CvxFKlF7.js';
|
|
5
5
|
import './customer-Dt0OdihJ.js';
|
|
6
6
|
import './list-plans-response-Bx4e7rvw.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as ClientGetOrCreateCustomerParams, a as ClientAttachParams, A as AttachResponse, h as ClientPreviewAttachParams, p as PreviewAttachResponse, m as ClientUpdateSubscriptionParams, B as BillingUpdateResponse, j as ClientPreviewUpdateSubscriptionParams, q as PreviewUpdateResponse, f as ClientMultiAttachParams, M as MultiAttachResponse, i as ClientPreviewMultiAttachParams, r as PreviewMultiAttachResponse, l as ClientSetupPaymentParams, S as SetupPaymentResponse, g as ClientOpenCustomerPortalParams, O as OpenCustomerPortalResponse, b as ClientCreateReferralCodeParams, s as CreateReferralCodeResponse, k as ClientRedeemReferralCodeParams, R as RedeemReferralCodeResponse, t as ClientListPlansParams, e as ClientListEventsParams, L as ListEventsResponse, C as ClientAggregateEventsParams, u as AggregateEventsResponse, c as ClientGetEntityParams, G as GetEntityResponse } from '../params-
|
|
1
|
+
import { d as ClientGetOrCreateCustomerParams, a as ClientAttachParams, A as AttachResponse, h as ClientPreviewAttachParams, p as PreviewAttachResponse, m as ClientUpdateSubscriptionParams, B as BillingUpdateResponse, j as ClientPreviewUpdateSubscriptionParams, q as PreviewUpdateResponse, f as ClientMultiAttachParams, M as MultiAttachResponse, i as ClientPreviewMultiAttachParams, r as PreviewMultiAttachResponse, l as ClientSetupPaymentParams, S as SetupPaymentResponse, g as ClientOpenCustomerPortalParams, O as OpenCustomerPortalResponse, b as ClientCreateReferralCodeParams, s as CreateReferralCodeResponse, k as ClientRedeemReferralCodeParams, R as RedeemReferralCodeResponse, t as ClientListPlansParams, e as ClientListEventsParams, L as ListEventsResponse, C as ClientAggregateEventsParams, u as AggregateEventsResponse, c as ClientGetEntityParams, G as GetEntityResponse } from '../params-B2XEzt8i.mjs';
|
|
2
2
|
import { C as Customer } from '../customer-CZn6Nd7a.mjs';
|
|
3
3
|
import { L as ListPlansResponse } from '../list-plans-response-ibIt0k4N.mjs';
|
|
4
4
|
import '../plan-CvxFKlF7.mjs';
|