autumn-js 1.2.24 → 1.2.25
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 +30 -18
- package/dist/backend/adapters/express.mjs +9 -9
- package/dist/backend/adapters/fetch.js +30 -18
- package/dist/backend/adapters/fetch.mjs +9 -9
- package/dist/backend/adapters/hono.js +30 -18
- package/dist/backend/adapters/hono.mjs +9 -9
- package/dist/backend/adapters/index.js +30 -18
- package/dist/backend/adapters/index.mjs +12 -12
- package/dist/backend/adapters/next.js +30 -18
- package/dist/backend/adapters/next.mjs +9 -9
- package/dist/backend/{chunk-5CLWD4RW.mjs → chunk-5LKGVXKH.mjs} +1 -1
- package/dist/backend/{chunk-UDOV52FM.mjs → chunk-6FBGYP7X.mjs} +1 -1
- package/dist/backend/{chunk-R6WNMKJW.mjs → chunk-6VSWVXTK.mjs} +1 -1
- package/dist/backend/{chunk-FBSZ5VUZ.mjs → chunk-ACRLMGFI.mjs} +1 -1
- package/dist/backend/{chunk-3XVW22NT.mjs → chunk-H427PQAN.mjs} +18 -12
- package/dist/backend/{chunk-GGQPGZC7.mjs → chunk-MAU6WWTL.mjs} +12 -6
- package/dist/backend/{chunk-TOCINHF4.mjs → chunk-TFYNLI5B.mjs} +7 -7
- package/dist/backend/{chunk-DICOXILS.mjs → chunk-VJT3K6DB.mjs} +5 -5
- 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 +30 -18
- package/dist/backend/core/handlers/coreHandler.mjs +7 -7
- 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 +30 -18
- package/dist/backend/core/handlers/handleRouteByName.mjs +7 -7
- 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 +30 -18
- 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 +30 -18
- package/dist/backend/core/index.mjs +10 -10
- 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.js +12 -6
- package/dist/backend/core/routes/index.mjs +2 -2
- 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.js +12 -6
- package/dist/backend/core/routes/routeConfigs.mjs +2 -2
- 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 +30 -18
- package/dist/backend/index.mjs +10 -10
- package/dist/backend/{routeTypes-y1qRo08h.d.ts → routeTypes-CEB4GveH.d.ts} +18 -4
- package/dist/backend/{routeTypes-DYlzt6nc.d.mts → routeTypes-CxdEyS6R.d.mts} +18 -4
- package/dist/better-auth/{chunk-IMYTX3U6.mjs → chunk-3TLQJLI4.mjs} +1 -1
- package/dist/better-auth/{chunk-FNNGRSHA.mjs → chunk-3WGAWLHM.mjs} +19 -13
- package/dist/better-auth/{chunk-RIVG4JZM.mjs → chunk-RHJSAAZY.mjs} +12 -6
- package/dist/better-auth/index.js +30 -18
- package/dist/better-auth/index.mjs +3 -3
- package/dist/better-auth/utils/createAutumnEndpoint.js +12 -6
- package/dist/better-auth/utils/createAutumnEndpoint.mjs +2 -2
- package/dist/better-auth/utils/handleBetterAuthRoute.js +30 -18
- package/dist/better-auth/utils/handleBetterAuthRoute.mjs +2 -2
- package/dist/better-auth/utils/index.js +30 -18
- package/dist/better-auth/utils/index.mjs +3 -3
- package/dist/react/AutumnContext.d.mts +1 -1
- package/dist/react/AutumnContext.d.ts +1 -1
- package/dist/react/AutumnProvider.js +15 -15
- package/dist/react/AutumnProvider.mjs +2 -2
- package/dist/react/{chunk-26CKSAPZ.mjs → chunk-7IDH4OMG.mjs} +1 -1
- package/dist/react/{chunk-HSQUB3BZ.mjs → chunk-BDG6JHEW.mjs} +1 -1
- package/dist/react/{chunk-KB72KQKN.mjs → chunk-DEZBJQEG.mjs} +1 -1
- package/dist/react/{chunk-XJZH5NMZ.mjs → chunk-E5ZHOMZ4.mjs} +23 -23
- package/dist/react/{chunk-OXQG65ZT.mjs → chunk-FWWIAOPU.mjs} +1 -1
- package/dist/react/{chunk-P23DM4IS.mjs → chunk-HRPQYDEN.mjs} +1 -1
- package/dist/react/{chunk-ZGPE4R6H.mjs → chunk-HVBDZARN.mjs} +2 -2
- package/dist/react/{chunk-CHU7CIWP.mjs → chunk-NSFHAUTD.mjs} +1 -1
- package/dist/react/{chunk-G7FTQLT7.mjs → chunk-YQFYWH7J.mjs} +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/index.js +16 -16
- package/dist/react/hooks/index.mjs +13 -13
- 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/internal/useCustomerActions.js +1 -1
- package/dist/react/hooks/internal/useCustomerActions.mjs +2 -2
- package/dist/react/hooks/useAggregateEvents.d.mts +1 -1
- package/dist/react/hooks/useAggregateEvents.d.ts +1 -1
- package/dist/react/hooks/useAggregateEvents.js +16 -16
- package/dist/react/hooks/useAggregateEvents.mjs +2 -2
- package/dist/react/hooks/useCustomer.d.mts +1 -1
- package/dist/react/hooks/useCustomer.d.ts +1 -1
- package/dist/react/hooks/useCustomer.js +16 -16
- package/dist/react/hooks/useCustomer.mjs +3 -3
- package/dist/react/hooks/useEntity.d.mts +1 -1
- package/dist/react/hooks/useEntity.d.ts +1 -1
- package/dist/react/hooks/useEntity.js +16 -16
- package/dist/react/hooks/useEntity.mjs +2 -2
- package/dist/react/hooks/useListEvents.d.mts +1 -1
- package/dist/react/hooks/useListEvents.d.ts +1 -1
- package/dist/react/hooks/useListEvents.js +16 -16
- package/dist/react/hooks/useListEvents.mjs +2 -2
- package/dist/react/hooks/useListPlans.d.mts +1 -1
- package/dist/react/hooks/useListPlans.d.ts +1 -1
- package/dist/react/hooks/useListPlans.js +16 -16
- package/dist/react/hooks/useListPlans.mjs +2 -2
- package/dist/react/hooks/useReferrals.d.mts +1 -1
- package/dist/react/hooks/useReferrals.d.ts +1 -1
- package/dist/react/hooks/useReferrals.js +16 -16
- package/dist/react/hooks/useReferrals.mjs +2 -2
- package/dist/react/index.d.mts +1 -1
- package/dist/react/index.d.ts +1 -1
- package/dist/react/index.js +22 -22
- package/dist/react/index.mjs +14 -14
- package/dist/react/{params-BOhsjvhF.d.ts → params-DWJn7Y2f.d.ts} +12 -0
- package/dist/react/{params-Bl3fAEku.d.mts → params-DpI-uEQy.d.mts} +12 -0
- package/dist/sdk/index.d.mts +23 -6
- package/dist/sdk/index.d.ts +23 -6
- package/dist/sdk/index.js +20 -14
- package/dist/sdk/index.mjs +19 -13
- package/package.json +1 -1
- package/dist/backend/{chunk-55C2WWXQ.mjs → chunk-S5HPMJ4U.mjs} +3 -3
|
@@ -1892,7 +1892,8 @@ var AttachParams$outboundSchema = z10.pipe(
|
|
|
1892
1892
|
),
|
|
1893
1893
|
metadata: z10.optional(z10.record(z10.string(), z10.string())),
|
|
1894
1894
|
noBillingChanges: z10.optional(z10.boolean()),
|
|
1895
|
-
enablePlanImmediately: z10.optional(z10.boolean())
|
|
1895
|
+
enablePlanImmediately: z10.optional(z10.boolean()),
|
|
1896
|
+
taxRateId: z10.optional(z10.string())
|
|
1896
1897
|
}),
|
|
1897
1898
|
z10.transform((v) => {
|
|
1898
1899
|
return remap(v, {
|
|
@@ -1916,7 +1917,8 @@ var AttachParams$outboundSchema = z10.pipe(
|
|
|
1916
1917
|
carryOverBalances: "carry_over_balances",
|
|
1917
1918
|
carryOverUsages: "carry_over_usages",
|
|
1918
1919
|
noBillingChanges: "no_billing_changes",
|
|
1919
|
-
enablePlanImmediately: "enable_plan_immediately"
|
|
1920
|
+
enablePlanImmediately: "enable_plan_immediately",
|
|
1921
|
+
taxRateId: "tax_rate_id"
|
|
1920
1922
|
});
|
|
1921
1923
|
})
|
|
1922
1924
|
);
|
|
@@ -5756,17 +5758,15 @@ var DeletePlanResponse$inboundSchema = z28.object({
|
|
|
5756
5758
|
|
|
5757
5759
|
// ../sdk/src/models/finalize-lock-op.ts
|
|
5758
5760
|
var z29 = __toESM(require("zod/v4-mini"), 1);
|
|
5759
|
-
var
|
|
5761
|
+
var FinalizeLockAction = {
|
|
5760
5762
|
Confirm: "confirm",
|
|
5761
5763
|
Release: "release"
|
|
5762
5764
|
};
|
|
5763
|
-
var
|
|
5764
|
-
Action
|
|
5765
|
-
);
|
|
5765
|
+
var FinalizeLockAction$outboundSchema = z29.enum(FinalizeLockAction);
|
|
5766
5766
|
var FinalizeBalanceParams$outboundSchema = z29.pipe(
|
|
5767
5767
|
z29.object({
|
|
5768
5768
|
lockId: z29.string(),
|
|
5769
|
-
action:
|
|
5769
|
+
action: FinalizeLockAction$outboundSchema,
|
|
5770
5770
|
overrideValue: z29.optional(z29.number()),
|
|
5771
5771
|
properties: z29.optional(z29.record(z29.string(), z29.any()))
|
|
5772
5772
|
}),
|
|
@@ -9140,7 +9140,8 @@ var PreviewAttachParams$outboundSchema = z42.pipe(
|
|
|
9140
9140
|
),
|
|
9141
9141
|
metadata: z42.optional(z42.record(z42.string(), z42.string())),
|
|
9142
9142
|
noBillingChanges: z42.optional(z42.boolean()),
|
|
9143
|
-
enablePlanImmediately: z42.optional(z42.boolean())
|
|
9143
|
+
enablePlanImmediately: z42.optional(z42.boolean()),
|
|
9144
|
+
taxRateId: z42.optional(z42.string())
|
|
9144
9145
|
}),
|
|
9145
9146
|
z42.transform((v) => {
|
|
9146
9147
|
return remap(v, {
|
|
@@ -9164,7 +9165,8 @@ var PreviewAttachParams$outboundSchema = z42.pipe(
|
|
|
9164
9165
|
carryOverBalances: "carry_over_balances",
|
|
9165
9166
|
carryOverUsages: "carry_over_usages",
|
|
9166
9167
|
noBillingChanges: "no_billing_changes",
|
|
9167
|
-
enablePlanImmediately: "enable_plan_immediately"
|
|
9168
|
+
enablePlanImmediately: "enable_plan_immediately",
|
|
9169
|
+
taxRateId: "tax_rate_id"
|
|
9168
9170
|
});
|
|
9169
9171
|
})
|
|
9170
9172
|
);
|
|
@@ -11329,7 +11331,8 @@ var SetupPaymentParams$outboundSchema = z46.pipe(
|
|
|
11329
11331
|
),
|
|
11330
11332
|
metadata: z46.optional(z46.record(z46.string(), z46.string())),
|
|
11331
11333
|
noBillingChanges: z46.optional(z46.boolean()),
|
|
11332
|
-
enablePlanImmediately: z46.optional(z46.boolean())
|
|
11334
|
+
enablePlanImmediately: z46.optional(z46.boolean()),
|
|
11335
|
+
taxRateId: z46.optional(z46.string())
|
|
11333
11336
|
}),
|
|
11334
11337
|
z46.transform((v) => {
|
|
11335
11338
|
return remap(v, {
|
|
@@ -11349,7 +11352,8 @@ var SetupPaymentParams$outboundSchema = z46.pipe(
|
|
|
11349
11352
|
carryOverBalances: "carry_over_balances",
|
|
11350
11353
|
carryOverUsages: "carry_over_usages",
|
|
11351
11354
|
noBillingChanges: "no_billing_changes",
|
|
11352
|
-
enablePlanImmediately: "enable_plan_immediately"
|
|
11355
|
+
enablePlanImmediately: "enable_plan_immediately",
|
|
11356
|
+
taxRateId: "tax_rate_id"
|
|
11353
11357
|
});
|
|
11354
11358
|
})
|
|
11355
11359
|
);
|
|
@@ -14897,6 +14901,7 @@ var Billing = class extends ClientSDK {
|
|
|
14897
14901
|
* @param metadata - Key-value metadata to attach to the Stripe subscription, invoice, and checkout session created during this attach flow. Keys prefixed with 'autumn_' are reserved and will be stripped. (optional)
|
|
14898
14902
|
* @param noBillingChanges - If true, skips any billing changes for the attach operation. (optional)
|
|
14899
14903
|
* @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. (optional)
|
|
14904
|
+
* @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)
|
|
14900
14905
|
*
|
|
14901
14906
|
* @returns A billing response with customer ID, invoice details, and payment URL (if checkout required).
|
|
14902
14907
|
*/
|
|
@@ -14915,7 +14920,7 @@ var Billing = class extends ClientSDK {
|
|
|
14915
14920
|
* @example
|
|
14916
14921
|
* ```typescript
|
|
14917
14922
|
* // Schedule a transition from a trial plan to a paid plan
|
|
14918
|
-
* const response = await client.billing.createSchedule({ customerId: "cus_123", phases: [{"startsAt":
|
|
14923
|
+
* const response = await client.billing.createSchedule({ customerId: "cus_123", phases: [{"startsAt":1779301422227,"plans":[{"planId":"trial_plan"}]},{"startsAt":1780511022227,"plans":[{"planId":"pro_plan"}]}] });
|
|
14919
14924
|
* ```
|
|
14920
14925
|
*
|
|
14921
14926
|
* @param customerId - The ID of the customer to create the schedule for.
|
|
@@ -15018,6 +15023,7 @@ var Billing = class extends ClientSDK {
|
|
|
15018
15023
|
* @param metadata - Key-value metadata to attach to the Stripe subscription, invoice, and checkout session created during this attach flow. Keys prefixed with 'autumn_' are reserved and will be stripped. (optional)
|
|
15019
15024
|
* @param noBillingChanges - If true, skips any billing changes for the attach operation. (optional)
|
|
15020
15025
|
* @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. (optional)
|
|
15026
|
+
* @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)
|
|
15021
15027
|
*
|
|
15022
15028
|
* @returns A preview response with line items, totals, and effective dates for the proposed changes.
|
|
15023
15029
|
*/
|
|
@@ -18074,7 +18080,8 @@ var attachParamsOutboundSchema = import_v42.z.object({
|
|
|
18074
18080
|
carry_over_usages: import_v42.z.union([attachCarryOverUsagesOutboundSchema, import_v42.z.undefined()]).optional(),
|
|
18075
18081
|
metadata: import_v42.z.union([import_v42.z.record(import_v42.z.string(), import_v42.z.string()), import_v42.z.undefined()]).optional(),
|
|
18076
18082
|
no_billing_changes: import_v42.z.union([import_v42.z.boolean(), import_v42.z.undefined()]).optional(),
|
|
18077
|
-
enable_plan_immediately: import_v42.z.union([import_v42.z.boolean(), import_v42.z.undefined()]).optional()
|
|
18083
|
+
enable_plan_immediately: import_v42.z.union([import_v42.z.boolean(), import_v42.z.undefined()]).optional(),
|
|
18084
|
+
tax_rate_id: import_v42.z.union([import_v42.z.string(), import_v42.z.undefined()]).optional()
|
|
18078
18085
|
});
|
|
18079
18086
|
var closedEnumSchema2 = import_v42.z.any();
|
|
18080
18087
|
var openEnumSchema = import_v42.z.any();
|
|
@@ -18214,7 +18221,8 @@ var attachParamsSchema = import_v42.z.object({
|
|
|
18214
18221
|
carryOverUsages: import_v42.z.union([attachCarryOverUsagesSchema, import_v42.z.undefined()]).optional(),
|
|
18215
18222
|
metadata: import_v42.z.union([import_v42.z.record(import_v42.z.string(), import_v42.z.string()), import_v42.z.undefined()]).optional(),
|
|
18216
18223
|
noBillingChanges: import_v42.z.union([import_v42.z.boolean(), import_v42.z.undefined()]).optional(),
|
|
18217
|
-
enablePlanImmediately: import_v42.z.union([import_v42.z.boolean(), import_v42.z.undefined()]).optional()
|
|
18224
|
+
enablePlanImmediately: import_v42.z.union([import_v42.z.boolean(), import_v42.z.undefined()]).optional(),
|
|
18225
|
+
taxRateId: import_v42.z.union([import_v42.z.string(), import_v42.z.undefined()]).optional()
|
|
18218
18226
|
});
|
|
18219
18227
|
var attachCodeSchema = openEnumSchema;
|
|
18220
18228
|
var attachRequiredActionSchema = import_v42.z.object({
|
|
@@ -19134,7 +19142,8 @@ var previewAttachParamsOutboundSchema = import_v49.z.object({
|
|
|
19134
19142
|
carry_over_usages: import_v49.z.union([previewAttachCarryOverUsagesOutboundSchema, import_v49.z.undefined()]).optional(),
|
|
19135
19143
|
metadata: import_v49.z.union([import_v49.z.record(import_v49.z.string(), import_v49.z.string()), import_v49.z.undefined()]).optional(),
|
|
19136
19144
|
no_billing_changes: import_v49.z.union([import_v49.z.boolean(), import_v49.z.undefined()]).optional(),
|
|
19137
|
-
enable_plan_immediately: import_v49.z.union([import_v49.z.boolean(), import_v49.z.undefined()]).optional()
|
|
19145
|
+
enable_plan_immediately: import_v49.z.union([import_v49.z.boolean(), import_v49.z.undefined()]).optional(),
|
|
19146
|
+
tax_rate_id: import_v49.z.union([import_v49.z.string(), import_v49.z.undefined()]).optional()
|
|
19138
19147
|
});
|
|
19139
19148
|
var closedEnumSchema5 = import_v49.z.any();
|
|
19140
19149
|
var planSchema = import_v49.z.any();
|
|
@@ -19275,7 +19284,8 @@ var previewAttachParamsSchema = import_v49.z.object({
|
|
|
19275
19284
|
carryOverUsages: import_v49.z.union([previewAttachCarryOverUsagesSchema, import_v49.z.undefined()]).optional(),
|
|
19276
19285
|
metadata: import_v49.z.union([import_v49.z.record(import_v49.z.string(), import_v49.z.string()), import_v49.z.undefined()]).optional(),
|
|
19277
19286
|
noBillingChanges: import_v49.z.union([import_v49.z.boolean(), import_v49.z.undefined()]).optional(),
|
|
19278
|
-
enablePlanImmediately: import_v49.z.union([import_v49.z.boolean(), import_v49.z.undefined()]).optional()
|
|
19287
|
+
enablePlanImmediately: import_v49.z.union([import_v49.z.boolean(), import_v49.z.undefined()]).optional(),
|
|
19288
|
+
taxRateId: import_v49.z.union([import_v49.z.string(), import_v49.z.undefined()]).optional()
|
|
19279
19289
|
});
|
|
19280
19290
|
var previewAttachIncomingSchema = import_v49.z.object({
|
|
19281
19291
|
planId: import_v49.z.string(),
|
|
@@ -20330,7 +20340,8 @@ var setupPaymentParamsOutboundSchema = import_v413.z.object({
|
|
|
20330
20340
|
carry_over_usages: import_v413.z.union([setupPaymentCarryOverUsagesOutboundSchema, import_v413.z.undefined()]).optional(),
|
|
20331
20341
|
metadata: import_v413.z.union([import_v413.z.record(import_v413.z.string(), import_v413.z.string()), import_v413.z.undefined()]).optional(),
|
|
20332
20342
|
no_billing_changes: import_v413.z.union([import_v413.z.boolean(), import_v413.z.undefined()]).optional(),
|
|
20333
|
-
enable_plan_immediately: import_v413.z.union([import_v413.z.boolean(), import_v413.z.undefined()]).optional()
|
|
20343
|
+
enable_plan_immediately: import_v413.z.union([import_v413.z.boolean(), import_v413.z.undefined()]).optional(),
|
|
20344
|
+
tax_rate_id: import_v413.z.union([import_v413.z.string(), import_v413.z.undefined()]).optional()
|
|
20334
20345
|
});
|
|
20335
20346
|
var closedEnumSchema8 = import_v413.z.any();
|
|
20336
20347
|
var setupPaymentPriceIntervalSchema = closedEnumSchema8;
|
|
@@ -20463,7 +20474,8 @@ var setupPaymentParamsSchema = import_v413.z.object({
|
|
|
20463
20474
|
carryOverUsages: import_v413.z.union([setupPaymentCarryOverUsagesSchema, import_v413.z.undefined()]).optional(),
|
|
20464
20475
|
metadata: import_v413.z.union([import_v413.z.record(import_v413.z.string(), import_v413.z.string()), import_v413.z.undefined()]).optional(),
|
|
20465
20476
|
noBillingChanges: import_v413.z.union([import_v413.z.boolean(), import_v413.z.undefined()]).optional(),
|
|
20466
|
-
enablePlanImmediately: import_v413.z.union([import_v413.z.boolean(), import_v413.z.undefined()]).optional()
|
|
20477
|
+
enablePlanImmediately: import_v413.z.union([import_v413.z.boolean(), import_v413.z.undefined()]).optional(),
|
|
20478
|
+
taxRateId: import_v413.z.union([import_v413.z.string(), import_v413.z.undefined()]).optional()
|
|
20467
20479
|
});
|
|
20468
20480
|
|
|
20469
20481
|
// src/generated/updateSubscriptionSchemas.ts
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import {
|
|
2
2
|
autumnHandler
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-5LKGVXKH.mjs";
|
|
4
4
|
import "../chunk-WYDGEDEU.mjs";
|
|
5
5
|
import "../chunk-VXND2UDT.mjs";
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-
|
|
8
|
-
import "../chunk-3XVW22NT.mjs";
|
|
9
|
-
import "../chunk-55C2WWXQ.mjs";
|
|
10
|
-
import "../chunk-TBQ27LIK.mjs";
|
|
11
|
-
import "../chunk-J44WR3QZ.mjs";
|
|
6
|
+
import "../chunk-VJT3K6DB.mjs";
|
|
7
|
+
import "../chunk-TFYNLI5B.mjs";
|
|
12
8
|
import "../chunk-TSF4YCUO.mjs";
|
|
13
9
|
import "../chunk-UAR3TMWI.mjs";
|
|
14
|
-
import "../chunk-
|
|
10
|
+
import "../chunk-H427PQAN.mjs";
|
|
11
|
+
import "../chunk-MAU6WWTL.mjs";
|
|
12
|
+
import "../chunk-S5HPMJ4U.mjs";
|
|
15
13
|
import "../chunk-OTXV5FY7.mjs";
|
|
16
|
-
import "../chunk-VZIMT7AO.mjs";
|
|
17
14
|
import "../chunk-Z6QP3YEA.mjs";
|
|
15
|
+
import "../chunk-VZIMT7AO.mjs";
|
|
16
|
+
import "../chunk-TBQ27LIK.mjs";
|
|
17
|
+
import "../chunk-J44WR3QZ.mjs";
|
|
18
18
|
import "../chunk-N7NFYY54.mjs";
|
|
19
19
|
export {
|
|
20
20
|
autumnHandler
|
|
@@ -1892,7 +1892,8 @@ var AttachParams$outboundSchema = z10.pipe(
|
|
|
1892
1892
|
),
|
|
1893
1893
|
metadata: z10.optional(z10.record(z10.string(), z10.string())),
|
|
1894
1894
|
noBillingChanges: z10.optional(z10.boolean()),
|
|
1895
|
-
enablePlanImmediately: z10.optional(z10.boolean())
|
|
1895
|
+
enablePlanImmediately: z10.optional(z10.boolean()),
|
|
1896
|
+
taxRateId: z10.optional(z10.string())
|
|
1896
1897
|
}),
|
|
1897
1898
|
z10.transform((v) => {
|
|
1898
1899
|
return remap(v, {
|
|
@@ -1916,7 +1917,8 @@ var AttachParams$outboundSchema = z10.pipe(
|
|
|
1916
1917
|
carryOverBalances: "carry_over_balances",
|
|
1917
1918
|
carryOverUsages: "carry_over_usages",
|
|
1918
1919
|
noBillingChanges: "no_billing_changes",
|
|
1919
|
-
enablePlanImmediately: "enable_plan_immediately"
|
|
1920
|
+
enablePlanImmediately: "enable_plan_immediately",
|
|
1921
|
+
taxRateId: "tax_rate_id"
|
|
1920
1922
|
});
|
|
1921
1923
|
})
|
|
1922
1924
|
);
|
|
@@ -5756,17 +5758,15 @@ var DeletePlanResponse$inboundSchema = z28.object({
|
|
|
5756
5758
|
|
|
5757
5759
|
// ../sdk/src/models/finalize-lock-op.ts
|
|
5758
5760
|
var z29 = __toESM(require("zod/v4-mini"), 1);
|
|
5759
|
-
var
|
|
5761
|
+
var FinalizeLockAction = {
|
|
5760
5762
|
Confirm: "confirm",
|
|
5761
5763
|
Release: "release"
|
|
5762
5764
|
};
|
|
5763
|
-
var
|
|
5764
|
-
Action
|
|
5765
|
-
);
|
|
5765
|
+
var FinalizeLockAction$outboundSchema = z29.enum(FinalizeLockAction);
|
|
5766
5766
|
var FinalizeBalanceParams$outboundSchema = z29.pipe(
|
|
5767
5767
|
z29.object({
|
|
5768
5768
|
lockId: z29.string(),
|
|
5769
|
-
action:
|
|
5769
|
+
action: FinalizeLockAction$outboundSchema,
|
|
5770
5770
|
overrideValue: z29.optional(z29.number()),
|
|
5771
5771
|
properties: z29.optional(z29.record(z29.string(), z29.any()))
|
|
5772
5772
|
}),
|
|
@@ -9140,7 +9140,8 @@ var PreviewAttachParams$outboundSchema = z42.pipe(
|
|
|
9140
9140
|
),
|
|
9141
9141
|
metadata: z42.optional(z42.record(z42.string(), z42.string())),
|
|
9142
9142
|
noBillingChanges: z42.optional(z42.boolean()),
|
|
9143
|
-
enablePlanImmediately: z42.optional(z42.boolean())
|
|
9143
|
+
enablePlanImmediately: z42.optional(z42.boolean()),
|
|
9144
|
+
taxRateId: z42.optional(z42.string())
|
|
9144
9145
|
}),
|
|
9145
9146
|
z42.transform((v) => {
|
|
9146
9147
|
return remap(v, {
|
|
@@ -9164,7 +9165,8 @@ var PreviewAttachParams$outboundSchema = z42.pipe(
|
|
|
9164
9165
|
carryOverBalances: "carry_over_balances",
|
|
9165
9166
|
carryOverUsages: "carry_over_usages",
|
|
9166
9167
|
noBillingChanges: "no_billing_changes",
|
|
9167
|
-
enablePlanImmediately: "enable_plan_immediately"
|
|
9168
|
+
enablePlanImmediately: "enable_plan_immediately",
|
|
9169
|
+
taxRateId: "tax_rate_id"
|
|
9168
9170
|
});
|
|
9169
9171
|
})
|
|
9170
9172
|
);
|
|
@@ -11329,7 +11331,8 @@ var SetupPaymentParams$outboundSchema = z46.pipe(
|
|
|
11329
11331
|
),
|
|
11330
11332
|
metadata: z46.optional(z46.record(z46.string(), z46.string())),
|
|
11331
11333
|
noBillingChanges: z46.optional(z46.boolean()),
|
|
11332
|
-
enablePlanImmediately: z46.optional(z46.boolean())
|
|
11334
|
+
enablePlanImmediately: z46.optional(z46.boolean()),
|
|
11335
|
+
taxRateId: z46.optional(z46.string())
|
|
11333
11336
|
}),
|
|
11334
11337
|
z46.transform((v) => {
|
|
11335
11338
|
return remap(v, {
|
|
@@ -11349,7 +11352,8 @@ var SetupPaymentParams$outboundSchema = z46.pipe(
|
|
|
11349
11352
|
carryOverBalances: "carry_over_balances",
|
|
11350
11353
|
carryOverUsages: "carry_over_usages",
|
|
11351
11354
|
noBillingChanges: "no_billing_changes",
|
|
11352
|
-
enablePlanImmediately: "enable_plan_immediately"
|
|
11355
|
+
enablePlanImmediately: "enable_plan_immediately",
|
|
11356
|
+
taxRateId: "tax_rate_id"
|
|
11353
11357
|
});
|
|
11354
11358
|
})
|
|
11355
11359
|
);
|
|
@@ -14897,6 +14901,7 @@ var Billing = class extends ClientSDK {
|
|
|
14897
14901
|
* @param metadata - Key-value metadata to attach to the Stripe subscription, invoice, and checkout session created during this attach flow. Keys prefixed with 'autumn_' are reserved and will be stripped. (optional)
|
|
14898
14902
|
* @param noBillingChanges - If true, skips any billing changes for the attach operation. (optional)
|
|
14899
14903
|
* @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. (optional)
|
|
14904
|
+
* @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)
|
|
14900
14905
|
*
|
|
14901
14906
|
* @returns A billing response with customer ID, invoice details, and payment URL (if checkout required).
|
|
14902
14907
|
*/
|
|
@@ -14915,7 +14920,7 @@ var Billing = class extends ClientSDK {
|
|
|
14915
14920
|
* @example
|
|
14916
14921
|
* ```typescript
|
|
14917
14922
|
* // Schedule a transition from a trial plan to a paid plan
|
|
14918
|
-
* const response = await client.billing.createSchedule({ customerId: "cus_123", phases: [{"startsAt":
|
|
14923
|
+
* const response = await client.billing.createSchedule({ customerId: "cus_123", phases: [{"startsAt":1779301422227,"plans":[{"planId":"trial_plan"}]},{"startsAt":1780511022227,"plans":[{"planId":"pro_plan"}]}] });
|
|
14919
14924
|
* ```
|
|
14920
14925
|
*
|
|
14921
14926
|
* @param customerId - The ID of the customer to create the schedule for.
|
|
@@ -15018,6 +15023,7 @@ var Billing = class extends ClientSDK {
|
|
|
15018
15023
|
* @param metadata - Key-value metadata to attach to the Stripe subscription, invoice, and checkout session created during this attach flow. Keys prefixed with 'autumn_' are reserved and will be stripped. (optional)
|
|
15019
15024
|
* @param noBillingChanges - If true, skips any billing changes for the attach operation. (optional)
|
|
15020
15025
|
* @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. (optional)
|
|
15026
|
+
* @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)
|
|
15021
15027
|
*
|
|
15022
15028
|
* @returns A preview response with line items, totals, and effective dates for the proposed changes.
|
|
15023
15029
|
*/
|
|
@@ -18074,7 +18080,8 @@ var attachParamsOutboundSchema = import_v42.z.object({
|
|
|
18074
18080
|
carry_over_usages: import_v42.z.union([attachCarryOverUsagesOutboundSchema, import_v42.z.undefined()]).optional(),
|
|
18075
18081
|
metadata: import_v42.z.union([import_v42.z.record(import_v42.z.string(), import_v42.z.string()), import_v42.z.undefined()]).optional(),
|
|
18076
18082
|
no_billing_changes: import_v42.z.union([import_v42.z.boolean(), import_v42.z.undefined()]).optional(),
|
|
18077
|
-
enable_plan_immediately: import_v42.z.union([import_v42.z.boolean(), import_v42.z.undefined()]).optional()
|
|
18083
|
+
enable_plan_immediately: import_v42.z.union([import_v42.z.boolean(), import_v42.z.undefined()]).optional(),
|
|
18084
|
+
tax_rate_id: import_v42.z.union([import_v42.z.string(), import_v42.z.undefined()]).optional()
|
|
18078
18085
|
});
|
|
18079
18086
|
var closedEnumSchema2 = import_v42.z.any();
|
|
18080
18087
|
var openEnumSchema = import_v42.z.any();
|
|
@@ -18214,7 +18221,8 @@ var attachParamsSchema = import_v42.z.object({
|
|
|
18214
18221
|
carryOverUsages: import_v42.z.union([attachCarryOverUsagesSchema, import_v42.z.undefined()]).optional(),
|
|
18215
18222
|
metadata: import_v42.z.union([import_v42.z.record(import_v42.z.string(), import_v42.z.string()), import_v42.z.undefined()]).optional(),
|
|
18216
18223
|
noBillingChanges: import_v42.z.union([import_v42.z.boolean(), import_v42.z.undefined()]).optional(),
|
|
18217
|
-
enablePlanImmediately: import_v42.z.union([import_v42.z.boolean(), import_v42.z.undefined()]).optional()
|
|
18224
|
+
enablePlanImmediately: import_v42.z.union([import_v42.z.boolean(), import_v42.z.undefined()]).optional(),
|
|
18225
|
+
taxRateId: import_v42.z.union([import_v42.z.string(), import_v42.z.undefined()]).optional()
|
|
18218
18226
|
});
|
|
18219
18227
|
var attachCodeSchema = openEnumSchema;
|
|
18220
18228
|
var attachRequiredActionSchema = import_v42.z.object({
|
|
@@ -19134,7 +19142,8 @@ var previewAttachParamsOutboundSchema = import_v49.z.object({
|
|
|
19134
19142
|
carry_over_usages: import_v49.z.union([previewAttachCarryOverUsagesOutboundSchema, import_v49.z.undefined()]).optional(),
|
|
19135
19143
|
metadata: import_v49.z.union([import_v49.z.record(import_v49.z.string(), import_v49.z.string()), import_v49.z.undefined()]).optional(),
|
|
19136
19144
|
no_billing_changes: import_v49.z.union([import_v49.z.boolean(), import_v49.z.undefined()]).optional(),
|
|
19137
|
-
enable_plan_immediately: import_v49.z.union([import_v49.z.boolean(), import_v49.z.undefined()]).optional()
|
|
19145
|
+
enable_plan_immediately: import_v49.z.union([import_v49.z.boolean(), import_v49.z.undefined()]).optional(),
|
|
19146
|
+
tax_rate_id: import_v49.z.union([import_v49.z.string(), import_v49.z.undefined()]).optional()
|
|
19138
19147
|
});
|
|
19139
19148
|
var closedEnumSchema5 = import_v49.z.any();
|
|
19140
19149
|
var planSchema = import_v49.z.any();
|
|
@@ -19275,7 +19284,8 @@ var previewAttachParamsSchema = import_v49.z.object({
|
|
|
19275
19284
|
carryOverUsages: import_v49.z.union([previewAttachCarryOverUsagesSchema, import_v49.z.undefined()]).optional(),
|
|
19276
19285
|
metadata: import_v49.z.union([import_v49.z.record(import_v49.z.string(), import_v49.z.string()), import_v49.z.undefined()]).optional(),
|
|
19277
19286
|
noBillingChanges: import_v49.z.union([import_v49.z.boolean(), import_v49.z.undefined()]).optional(),
|
|
19278
|
-
enablePlanImmediately: import_v49.z.union([import_v49.z.boolean(), import_v49.z.undefined()]).optional()
|
|
19287
|
+
enablePlanImmediately: import_v49.z.union([import_v49.z.boolean(), import_v49.z.undefined()]).optional(),
|
|
19288
|
+
taxRateId: import_v49.z.union([import_v49.z.string(), import_v49.z.undefined()]).optional()
|
|
19279
19289
|
});
|
|
19280
19290
|
var previewAttachIncomingSchema = import_v49.z.object({
|
|
19281
19291
|
planId: import_v49.z.string(),
|
|
@@ -20330,7 +20340,8 @@ var setupPaymentParamsOutboundSchema = import_v413.z.object({
|
|
|
20330
20340
|
carry_over_usages: import_v413.z.union([setupPaymentCarryOverUsagesOutboundSchema, import_v413.z.undefined()]).optional(),
|
|
20331
20341
|
metadata: import_v413.z.union([import_v413.z.record(import_v413.z.string(), import_v413.z.string()), import_v413.z.undefined()]).optional(),
|
|
20332
20342
|
no_billing_changes: import_v413.z.union([import_v413.z.boolean(), import_v413.z.undefined()]).optional(),
|
|
20333
|
-
enable_plan_immediately: import_v413.z.union([import_v413.z.boolean(), import_v413.z.undefined()]).optional()
|
|
20343
|
+
enable_plan_immediately: import_v413.z.union([import_v413.z.boolean(), import_v413.z.undefined()]).optional(),
|
|
20344
|
+
tax_rate_id: import_v413.z.union([import_v413.z.string(), import_v413.z.undefined()]).optional()
|
|
20334
20345
|
});
|
|
20335
20346
|
var closedEnumSchema8 = import_v413.z.any();
|
|
20336
20347
|
var setupPaymentPriceIntervalSchema = closedEnumSchema8;
|
|
@@ -20463,7 +20474,8 @@ var setupPaymentParamsSchema = import_v413.z.object({
|
|
|
20463
20474
|
carryOverUsages: import_v413.z.union([setupPaymentCarryOverUsagesSchema, import_v413.z.undefined()]).optional(),
|
|
20464
20475
|
metadata: import_v413.z.union([import_v413.z.record(import_v413.z.string(), import_v413.z.string()), import_v413.z.undefined()]).optional(),
|
|
20465
20476
|
noBillingChanges: import_v413.z.union([import_v413.z.boolean(), import_v413.z.undefined()]).optional(),
|
|
20466
|
-
enablePlanImmediately: import_v413.z.union([import_v413.z.boolean(), import_v413.z.undefined()]).optional()
|
|
20477
|
+
enablePlanImmediately: import_v413.z.union([import_v413.z.boolean(), import_v413.z.undefined()]).optional(),
|
|
20478
|
+
taxRateId: import_v413.z.union([import_v413.z.string(), import_v413.z.undefined()]).optional()
|
|
20467
20479
|
});
|
|
20468
20480
|
|
|
20469
20481
|
// src/generated/updateSubscriptionSchemas.ts
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import {
|
|
2
2
|
autumnHandler
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-6VSWVXTK.mjs";
|
|
4
4
|
import "../chunk-WYDGEDEU.mjs";
|
|
5
5
|
import "../chunk-VXND2UDT.mjs";
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-
|
|
8
|
-
import "../chunk-3XVW22NT.mjs";
|
|
9
|
-
import "../chunk-55C2WWXQ.mjs";
|
|
10
|
-
import "../chunk-TBQ27LIK.mjs";
|
|
11
|
-
import "../chunk-J44WR3QZ.mjs";
|
|
6
|
+
import "../chunk-VJT3K6DB.mjs";
|
|
7
|
+
import "../chunk-TFYNLI5B.mjs";
|
|
12
8
|
import "../chunk-TSF4YCUO.mjs";
|
|
13
9
|
import "../chunk-UAR3TMWI.mjs";
|
|
14
|
-
import "../chunk-
|
|
10
|
+
import "../chunk-H427PQAN.mjs";
|
|
11
|
+
import "../chunk-MAU6WWTL.mjs";
|
|
12
|
+
import "../chunk-S5HPMJ4U.mjs";
|
|
15
13
|
import "../chunk-OTXV5FY7.mjs";
|
|
16
|
-
import "../chunk-VZIMT7AO.mjs";
|
|
17
14
|
import "../chunk-Z6QP3YEA.mjs";
|
|
15
|
+
import "../chunk-VZIMT7AO.mjs";
|
|
16
|
+
import "../chunk-TBQ27LIK.mjs";
|
|
17
|
+
import "../chunk-J44WR3QZ.mjs";
|
|
18
18
|
import "../chunk-N7NFYY54.mjs";
|
|
19
19
|
export {
|
|
20
20
|
autumnHandler
|
|
@@ -1892,7 +1892,8 @@ var AttachParams$outboundSchema = z10.pipe(
|
|
|
1892
1892
|
),
|
|
1893
1893
|
metadata: z10.optional(z10.record(z10.string(), z10.string())),
|
|
1894
1894
|
noBillingChanges: z10.optional(z10.boolean()),
|
|
1895
|
-
enablePlanImmediately: z10.optional(z10.boolean())
|
|
1895
|
+
enablePlanImmediately: z10.optional(z10.boolean()),
|
|
1896
|
+
taxRateId: z10.optional(z10.string())
|
|
1896
1897
|
}),
|
|
1897
1898
|
z10.transform((v) => {
|
|
1898
1899
|
return remap(v, {
|
|
@@ -1916,7 +1917,8 @@ var AttachParams$outboundSchema = z10.pipe(
|
|
|
1916
1917
|
carryOverBalances: "carry_over_balances",
|
|
1917
1918
|
carryOverUsages: "carry_over_usages",
|
|
1918
1919
|
noBillingChanges: "no_billing_changes",
|
|
1919
|
-
enablePlanImmediately: "enable_plan_immediately"
|
|
1920
|
+
enablePlanImmediately: "enable_plan_immediately",
|
|
1921
|
+
taxRateId: "tax_rate_id"
|
|
1920
1922
|
});
|
|
1921
1923
|
})
|
|
1922
1924
|
);
|
|
@@ -5756,17 +5758,15 @@ var DeletePlanResponse$inboundSchema = z28.object({
|
|
|
5756
5758
|
|
|
5757
5759
|
// ../sdk/src/models/finalize-lock-op.ts
|
|
5758
5760
|
var z29 = __toESM(require("zod/v4-mini"), 1);
|
|
5759
|
-
var
|
|
5761
|
+
var FinalizeLockAction = {
|
|
5760
5762
|
Confirm: "confirm",
|
|
5761
5763
|
Release: "release"
|
|
5762
5764
|
};
|
|
5763
|
-
var
|
|
5764
|
-
Action
|
|
5765
|
-
);
|
|
5765
|
+
var FinalizeLockAction$outboundSchema = z29.enum(FinalizeLockAction);
|
|
5766
5766
|
var FinalizeBalanceParams$outboundSchema = z29.pipe(
|
|
5767
5767
|
z29.object({
|
|
5768
5768
|
lockId: z29.string(),
|
|
5769
|
-
action:
|
|
5769
|
+
action: FinalizeLockAction$outboundSchema,
|
|
5770
5770
|
overrideValue: z29.optional(z29.number()),
|
|
5771
5771
|
properties: z29.optional(z29.record(z29.string(), z29.any()))
|
|
5772
5772
|
}),
|
|
@@ -9140,7 +9140,8 @@ var PreviewAttachParams$outboundSchema = z42.pipe(
|
|
|
9140
9140
|
),
|
|
9141
9141
|
metadata: z42.optional(z42.record(z42.string(), z42.string())),
|
|
9142
9142
|
noBillingChanges: z42.optional(z42.boolean()),
|
|
9143
|
-
enablePlanImmediately: z42.optional(z42.boolean())
|
|
9143
|
+
enablePlanImmediately: z42.optional(z42.boolean()),
|
|
9144
|
+
taxRateId: z42.optional(z42.string())
|
|
9144
9145
|
}),
|
|
9145
9146
|
z42.transform((v) => {
|
|
9146
9147
|
return remap(v, {
|
|
@@ -9164,7 +9165,8 @@ var PreviewAttachParams$outboundSchema = z42.pipe(
|
|
|
9164
9165
|
carryOverBalances: "carry_over_balances",
|
|
9165
9166
|
carryOverUsages: "carry_over_usages",
|
|
9166
9167
|
noBillingChanges: "no_billing_changes",
|
|
9167
|
-
enablePlanImmediately: "enable_plan_immediately"
|
|
9168
|
+
enablePlanImmediately: "enable_plan_immediately",
|
|
9169
|
+
taxRateId: "tax_rate_id"
|
|
9168
9170
|
});
|
|
9169
9171
|
})
|
|
9170
9172
|
);
|
|
@@ -11329,7 +11331,8 @@ var SetupPaymentParams$outboundSchema = z46.pipe(
|
|
|
11329
11331
|
),
|
|
11330
11332
|
metadata: z46.optional(z46.record(z46.string(), z46.string())),
|
|
11331
11333
|
noBillingChanges: z46.optional(z46.boolean()),
|
|
11332
|
-
enablePlanImmediately: z46.optional(z46.boolean())
|
|
11334
|
+
enablePlanImmediately: z46.optional(z46.boolean()),
|
|
11335
|
+
taxRateId: z46.optional(z46.string())
|
|
11333
11336
|
}),
|
|
11334
11337
|
z46.transform((v) => {
|
|
11335
11338
|
return remap(v, {
|
|
@@ -11349,7 +11352,8 @@ var SetupPaymentParams$outboundSchema = z46.pipe(
|
|
|
11349
11352
|
carryOverBalances: "carry_over_balances",
|
|
11350
11353
|
carryOverUsages: "carry_over_usages",
|
|
11351
11354
|
noBillingChanges: "no_billing_changes",
|
|
11352
|
-
enablePlanImmediately: "enable_plan_immediately"
|
|
11355
|
+
enablePlanImmediately: "enable_plan_immediately",
|
|
11356
|
+
taxRateId: "tax_rate_id"
|
|
11353
11357
|
});
|
|
11354
11358
|
})
|
|
11355
11359
|
);
|
|
@@ -14897,6 +14901,7 @@ var Billing = class extends ClientSDK {
|
|
|
14897
14901
|
* @param metadata - Key-value metadata to attach to the Stripe subscription, invoice, and checkout session created during this attach flow. Keys prefixed with 'autumn_' are reserved and will be stripped. (optional)
|
|
14898
14902
|
* @param noBillingChanges - If true, skips any billing changes for the attach operation. (optional)
|
|
14899
14903
|
* @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. (optional)
|
|
14904
|
+
* @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)
|
|
14900
14905
|
*
|
|
14901
14906
|
* @returns A billing response with customer ID, invoice details, and payment URL (if checkout required).
|
|
14902
14907
|
*/
|
|
@@ -14915,7 +14920,7 @@ var Billing = class extends ClientSDK {
|
|
|
14915
14920
|
* @example
|
|
14916
14921
|
* ```typescript
|
|
14917
14922
|
* // Schedule a transition from a trial plan to a paid plan
|
|
14918
|
-
* const response = await client.billing.createSchedule({ customerId: "cus_123", phases: [{"startsAt":
|
|
14923
|
+
* const response = await client.billing.createSchedule({ customerId: "cus_123", phases: [{"startsAt":1779301422227,"plans":[{"planId":"trial_plan"}]},{"startsAt":1780511022227,"plans":[{"planId":"pro_plan"}]}] });
|
|
14919
14924
|
* ```
|
|
14920
14925
|
*
|
|
14921
14926
|
* @param customerId - The ID of the customer to create the schedule for.
|
|
@@ -15018,6 +15023,7 @@ var Billing = class extends ClientSDK {
|
|
|
15018
15023
|
* @param metadata - Key-value metadata to attach to the Stripe subscription, invoice, and checkout session created during this attach flow. Keys prefixed with 'autumn_' are reserved and will be stripped. (optional)
|
|
15019
15024
|
* @param noBillingChanges - If true, skips any billing changes for the attach operation. (optional)
|
|
15020
15025
|
* @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. (optional)
|
|
15026
|
+
* @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)
|
|
15021
15027
|
*
|
|
15022
15028
|
* @returns A preview response with line items, totals, and effective dates for the proposed changes.
|
|
15023
15029
|
*/
|
|
@@ -18074,7 +18080,8 @@ var attachParamsOutboundSchema = import_v42.z.object({
|
|
|
18074
18080
|
carry_over_usages: import_v42.z.union([attachCarryOverUsagesOutboundSchema, import_v42.z.undefined()]).optional(),
|
|
18075
18081
|
metadata: import_v42.z.union([import_v42.z.record(import_v42.z.string(), import_v42.z.string()), import_v42.z.undefined()]).optional(),
|
|
18076
18082
|
no_billing_changes: import_v42.z.union([import_v42.z.boolean(), import_v42.z.undefined()]).optional(),
|
|
18077
|
-
enable_plan_immediately: import_v42.z.union([import_v42.z.boolean(), import_v42.z.undefined()]).optional()
|
|
18083
|
+
enable_plan_immediately: import_v42.z.union([import_v42.z.boolean(), import_v42.z.undefined()]).optional(),
|
|
18084
|
+
tax_rate_id: import_v42.z.union([import_v42.z.string(), import_v42.z.undefined()]).optional()
|
|
18078
18085
|
});
|
|
18079
18086
|
var closedEnumSchema2 = import_v42.z.any();
|
|
18080
18087
|
var openEnumSchema = import_v42.z.any();
|
|
@@ -18214,7 +18221,8 @@ var attachParamsSchema = import_v42.z.object({
|
|
|
18214
18221
|
carryOverUsages: import_v42.z.union([attachCarryOverUsagesSchema, import_v42.z.undefined()]).optional(),
|
|
18215
18222
|
metadata: import_v42.z.union([import_v42.z.record(import_v42.z.string(), import_v42.z.string()), import_v42.z.undefined()]).optional(),
|
|
18216
18223
|
noBillingChanges: import_v42.z.union([import_v42.z.boolean(), import_v42.z.undefined()]).optional(),
|
|
18217
|
-
enablePlanImmediately: import_v42.z.union([import_v42.z.boolean(), import_v42.z.undefined()]).optional()
|
|
18224
|
+
enablePlanImmediately: import_v42.z.union([import_v42.z.boolean(), import_v42.z.undefined()]).optional(),
|
|
18225
|
+
taxRateId: import_v42.z.union([import_v42.z.string(), import_v42.z.undefined()]).optional()
|
|
18218
18226
|
});
|
|
18219
18227
|
var attachCodeSchema = openEnumSchema;
|
|
18220
18228
|
var attachRequiredActionSchema = import_v42.z.object({
|
|
@@ -19134,7 +19142,8 @@ var previewAttachParamsOutboundSchema = import_v49.z.object({
|
|
|
19134
19142
|
carry_over_usages: import_v49.z.union([previewAttachCarryOverUsagesOutboundSchema, import_v49.z.undefined()]).optional(),
|
|
19135
19143
|
metadata: import_v49.z.union([import_v49.z.record(import_v49.z.string(), import_v49.z.string()), import_v49.z.undefined()]).optional(),
|
|
19136
19144
|
no_billing_changes: import_v49.z.union([import_v49.z.boolean(), import_v49.z.undefined()]).optional(),
|
|
19137
|
-
enable_plan_immediately: import_v49.z.union([import_v49.z.boolean(), import_v49.z.undefined()]).optional()
|
|
19145
|
+
enable_plan_immediately: import_v49.z.union([import_v49.z.boolean(), import_v49.z.undefined()]).optional(),
|
|
19146
|
+
tax_rate_id: import_v49.z.union([import_v49.z.string(), import_v49.z.undefined()]).optional()
|
|
19138
19147
|
});
|
|
19139
19148
|
var closedEnumSchema5 = import_v49.z.any();
|
|
19140
19149
|
var planSchema = import_v49.z.any();
|
|
@@ -19275,7 +19284,8 @@ var previewAttachParamsSchema = import_v49.z.object({
|
|
|
19275
19284
|
carryOverUsages: import_v49.z.union([previewAttachCarryOverUsagesSchema, import_v49.z.undefined()]).optional(),
|
|
19276
19285
|
metadata: import_v49.z.union([import_v49.z.record(import_v49.z.string(), import_v49.z.string()), import_v49.z.undefined()]).optional(),
|
|
19277
19286
|
noBillingChanges: import_v49.z.union([import_v49.z.boolean(), import_v49.z.undefined()]).optional(),
|
|
19278
|
-
enablePlanImmediately: import_v49.z.union([import_v49.z.boolean(), import_v49.z.undefined()]).optional()
|
|
19287
|
+
enablePlanImmediately: import_v49.z.union([import_v49.z.boolean(), import_v49.z.undefined()]).optional(),
|
|
19288
|
+
taxRateId: import_v49.z.union([import_v49.z.string(), import_v49.z.undefined()]).optional()
|
|
19279
19289
|
});
|
|
19280
19290
|
var previewAttachIncomingSchema = import_v49.z.object({
|
|
19281
19291
|
planId: import_v49.z.string(),
|
|
@@ -20330,7 +20340,8 @@ var setupPaymentParamsOutboundSchema = import_v413.z.object({
|
|
|
20330
20340
|
carry_over_usages: import_v413.z.union([setupPaymentCarryOverUsagesOutboundSchema, import_v413.z.undefined()]).optional(),
|
|
20331
20341
|
metadata: import_v413.z.union([import_v413.z.record(import_v413.z.string(), import_v413.z.string()), import_v413.z.undefined()]).optional(),
|
|
20332
20342
|
no_billing_changes: import_v413.z.union([import_v413.z.boolean(), import_v413.z.undefined()]).optional(),
|
|
20333
|
-
enable_plan_immediately: import_v413.z.union([import_v413.z.boolean(), import_v413.z.undefined()]).optional()
|
|
20343
|
+
enable_plan_immediately: import_v413.z.union([import_v413.z.boolean(), import_v413.z.undefined()]).optional(),
|
|
20344
|
+
tax_rate_id: import_v413.z.union([import_v413.z.string(), import_v413.z.undefined()]).optional()
|
|
20334
20345
|
});
|
|
20335
20346
|
var closedEnumSchema8 = import_v413.z.any();
|
|
20336
20347
|
var setupPaymentPriceIntervalSchema = closedEnumSchema8;
|
|
@@ -20463,7 +20474,8 @@ var setupPaymentParamsSchema = import_v413.z.object({
|
|
|
20463
20474
|
carryOverUsages: import_v413.z.union([setupPaymentCarryOverUsagesSchema, import_v413.z.undefined()]).optional(),
|
|
20464
20475
|
metadata: import_v413.z.union([import_v413.z.record(import_v413.z.string(), import_v413.z.string()), import_v413.z.undefined()]).optional(),
|
|
20465
20476
|
noBillingChanges: import_v413.z.union([import_v413.z.boolean(), import_v413.z.undefined()]).optional(),
|
|
20466
|
-
enablePlanImmediately: import_v413.z.union([import_v413.z.boolean(), import_v413.z.undefined()]).optional()
|
|
20477
|
+
enablePlanImmediately: import_v413.z.union([import_v413.z.boolean(), import_v413.z.undefined()]).optional(),
|
|
20478
|
+
taxRateId: import_v413.z.union([import_v413.z.string(), import_v413.z.undefined()]).optional()
|
|
20467
20479
|
});
|
|
20468
20480
|
|
|
20469
20481
|
// src/generated/updateSubscriptionSchemas.ts
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import {
|
|
2
2
|
autumnHandler
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-ACRLMGFI.mjs";
|
|
4
4
|
import "../chunk-WYDGEDEU.mjs";
|
|
5
5
|
import "../chunk-VXND2UDT.mjs";
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-
|
|
8
|
-
import "../chunk-3XVW22NT.mjs";
|
|
9
|
-
import "../chunk-55C2WWXQ.mjs";
|
|
10
|
-
import "../chunk-TBQ27LIK.mjs";
|
|
11
|
-
import "../chunk-J44WR3QZ.mjs";
|
|
6
|
+
import "../chunk-VJT3K6DB.mjs";
|
|
7
|
+
import "../chunk-TFYNLI5B.mjs";
|
|
12
8
|
import "../chunk-TSF4YCUO.mjs";
|
|
13
9
|
import "../chunk-UAR3TMWI.mjs";
|
|
14
|
-
import "../chunk-
|
|
10
|
+
import "../chunk-H427PQAN.mjs";
|
|
11
|
+
import "../chunk-MAU6WWTL.mjs";
|
|
12
|
+
import "../chunk-S5HPMJ4U.mjs";
|
|
15
13
|
import "../chunk-OTXV5FY7.mjs";
|
|
16
|
-
import "../chunk-VZIMT7AO.mjs";
|
|
17
14
|
import "../chunk-Z6QP3YEA.mjs";
|
|
15
|
+
import "../chunk-VZIMT7AO.mjs";
|
|
16
|
+
import "../chunk-TBQ27LIK.mjs";
|
|
17
|
+
import "../chunk-J44WR3QZ.mjs";
|
|
18
18
|
import "../chunk-N7NFYY54.mjs";
|
|
19
19
|
export {
|
|
20
20
|
autumnHandler
|