autumn-js 1.2.11 → 1.2.12
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 +52 -0
- package/dist/backend/adapters/express.mjs +9 -9
- package/dist/backend/adapters/fetch.js +52 -0
- package/dist/backend/adapters/fetch.mjs +9 -9
- package/dist/backend/adapters/hono.js +52 -0
- package/dist/backend/adapters/hono.mjs +9 -9
- package/dist/backend/adapters/index.js +52 -0
- package/dist/backend/adapters/index.mjs +12 -12
- package/dist/backend/adapters/next.js +52 -0
- package/dist/backend/adapters/next.mjs +9 -9
- package/dist/backend/{chunk-JEVAYQ65.mjs → chunk-4Q54RXI2.mjs} +1 -1
- package/dist/backend/{chunk-4RBWBJIF.mjs → chunk-7Q77N2K2.mjs} +1 -1
- package/dist/backend/{chunk-JMDETKOQ.mjs → chunk-ITXMMCSD.mjs} +7 -7
- package/dist/backend/{chunk-WMGBAAJK.mjs → chunk-JQX5WYYY.mjs} +1 -1
- package/dist/backend/{chunk-SKWVW2EN.mjs → chunk-N53PKNZ6.mjs} +5 -5
- package/dist/backend/{chunk-MBL56SEJ.mjs → chunk-SE5CK5NY.mjs} +1 -1
- package/dist/backend/{chunk-AY6OV7CM.mjs → chunk-UEYDU64U.mjs} +32 -0
- package/dist/backend/{chunk-FPZHAFCV.mjs → chunk-X4LPDDOP.mjs} +20 -0
- 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 +52 -0
- 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 +52 -0
- 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 +52 -0
- 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 +52 -0
- 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 +20 -0
- 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 +20 -0
- 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 +52 -0
- package/dist/backend/index.mjs +10 -10
- package/dist/backend/{routeTypes-CQWFgZk4.d.mts → routeTypes-Cu-XQy7A.d.mts} +36 -0
- package/dist/backend/{routeTypes-D7ANq7kY.d.ts → routeTypes-D0ag5-Tb.d.ts} +36 -0
- package/dist/better-auth/{chunk-WEDJRTA3.mjs → chunk-GKUK5UGW.mjs} +20 -0
- package/dist/better-auth/{chunk-3GVPOBXE.mjs → chunk-TEP6CVHR.mjs} +1 -1
- package/dist/better-auth/{chunk-XH3WDFWS.mjs → chunk-XFATOIZD.mjs} +33 -1
- package/dist/better-auth/index.js +52 -0
- package/dist/better-auth/index.mjs +3 -3
- package/dist/better-auth/utils/createAutumnEndpoint.js +20 -0
- package/dist/better-auth/utils/createAutumnEndpoint.mjs +2 -2
- package/dist/better-auth/utils/handleBetterAuthRoute.js +52 -0
- package/dist/better-auth/utils/handleBetterAuthRoute.mjs +2 -2
- package/dist/better-auth/utils/index.js +52 -0
- 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/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-g4jEwMY7.d.ts → params-By0MIRsJ.d.ts} +34 -0
- package/dist/react/{params-5jUgYeHh.d.mts → params-CUb0ZlUG.d.mts} +34 -0
- package/dist/sdk/index.d.mts +55 -1
- package/dist/sdk/index.d.ts +55 -1
- package/dist/sdk/index.js +50 -0
- package/dist/sdk/index.mjs +47 -1
- package/package.json +1 -1
- package/dist/backend/{chunk-55C2WWXQ.mjs → chunk-S5HPMJ4U.mjs} +3 -3
|
@@ -2176,6 +2176,18 @@ var BillingUpdateInvoiceMode$outboundSchema = z12.pipe(
|
|
|
2176
2176
|
);
|
|
2177
2177
|
var BillingUpdateProrationBehavior$outboundSchema = z12.enum(BillingUpdateProrationBehavior);
|
|
2178
2178
|
var BillingUpdateRedirectMode$outboundSchema = z12.enum(BillingUpdateRedirectMode);
|
|
2179
|
+
var BillingUpdateAttachDiscount$outboundSchema = z12.pipe(
|
|
2180
|
+
z12.object({
|
|
2181
|
+
rewardId: z12.optional(z12.string()),
|
|
2182
|
+
promotionCode: z12.optional(z12.string())
|
|
2183
|
+
}),
|
|
2184
|
+
z12.transform((v) => {
|
|
2185
|
+
return remap(v, {
|
|
2186
|
+
rewardId: "reward_id",
|
|
2187
|
+
promotionCode: "promotion_code"
|
|
2188
|
+
});
|
|
2189
|
+
})
|
|
2190
|
+
);
|
|
2179
2191
|
var BillingUpdateCancelAction$outboundSchema = z12.enum(BillingUpdateCancelAction);
|
|
2180
2192
|
var BillingUpdateRecalculateBalances$outboundSchema = z12.object({
|
|
2181
2193
|
enabled: z12.boolean()
|
|
@@ -2201,6 +2213,9 @@ var UpdateSubscriptionParams$outboundSchema = z12.pipe(
|
|
|
2201
2213
|
"if_required"
|
|
2202
2214
|
),
|
|
2203
2215
|
subscriptionId: z12.optional(z12.string()),
|
|
2216
|
+
discounts: z12.optional(
|
|
2217
|
+
z12.array(z12.lazy(() => BillingUpdateAttachDiscount$outboundSchema))
|
|
2218
|
+
),
|
|
2204
2219
|
cancelAction: z12.optional(BillingUpdateCancelAction$outboundSchema),
|
|
2205
2220
|
billingCycleAnchor: z12.optional(z12.literal("now")),
|
|
2206
2221
|
noBillingChanges: z12.optional(z12.boolean()),
|
|
@@ -7912,6 +7927,18 @@ var PreviewUpdateInvoiceMode$outboundSchema = z40.pipe(
|
|
|
7912
7927
|
);
|
|
7913
7928
|
var PreviewUpdateProrationBehavior$outboundSchema = z40.enum(PreviewUpdateProrationBehavior);
|
|
7914
7929
|
var PreviewUpdateRedirectMode$outboundSchema = z40.enum(PreviewUpdateRedirectMode);
|
|
7930
|
+
var PreviewUpdateAttachDiscount$outboundSchema = z40.pipe(
|
|
7931
|
+
z40.object({
|
|
7932
|
+
rewardId: z40.optional(z40.string()),
|
|
7933
|
+
promotionCode: z40.optional(z40.string())
|
|
7934
|
+
}),
|
|
7935
|
+
z40.transform((v) => {
|
|
7936
|
+
return remap(v, {
|
|
7937
|
+
rewardId: "reward_id",
|
|
7938
|
+
promotionCode: "promotion_code"
|
|
7939
|
+
});
|
|
7940
|
+
})
|
|
7941
|
+
);
|
|
7915
7942
|
var PreviewUpdateCancelAction$outboundSchema = z40.enum(PreviewUpdateCancelAction);
|
|
7916
7943
|
var PreviewUpdateRecalculateBalances$outboundSchema = z40.object({
|
|
7917
7944
|
enabled: z40.boolean()
|
|
@@ -7937,6 +7964,9 @@ var PreviewUpdateParams$outboundSchema = z40.pipe(
|
|
|
7937
7964
|
"if_required"
|
|
7938
7965
|
),
|
|
7939
7966
|
subscriptionId: z40.optional(z40.string()),
|
|
7967
|
+
discounts: z40.optional(
|
|
7968
|
+
z40.array(z40.lazy(() => PreviewUpdateAttachDiscount$outboundSchema))
|
|
7969
|
+
),
|
|
7940
7970
|
cancelAction: z40.optional(PreviewUpdateCancelAction$outboundSchema),
|
|
7941
7971
|
billingCycleAnchor: z40.optional(z40.literal("now")),
|
|
7942
7972
|
noBillingChanges: z40.optional(z40.boolean()),
|
|
@@ -11913,6 +11943,7 @@ var Billing = class extends ClientSDK {
|
|
|
11913
11943
|
* @param prorationBehavior - How to handle proration when updating an existing subscription. 'prorate_immediately' charges/credits prorated amounts now, 'none' skips creating any charges. (optional)
|
|
11914
11944
|
* @param redirectMode - Controls when to return a checkout URL. 'always' returns a URL even if payment succeeds, 'if_required' only when payment action is needed, 'never' disables redirects. (optional)
|
|
11915
11945
|
* @param subscriptionId - A unique ID to identify this subscription. Can be used to target specific subscriptions in update operations when a customer has multiple products with the same plan. (optional)
|
|
11946
|
+
* @param discounts - List of discounts to apply. Each discount can be an Autumn reward ID, Stripe coupon ID, or Stripe promotion code. (optional)
|
|
11916
11947
|
* @param cancelAction - Action to perform for cancellation. 'cancel_immediately' cancels now with prorated refund, 'cancel_end_of_cycle' cancels at period end, 'uncancel' reverses a pending cancellation. (optional)
|
|
11917
11948
|
* @param billingCycleAnchor - Reset the billing cycle anchor immediately with 'now' (optional)
|
|
11918
11949
|
* @param noBillingChanges - If true, the subscription is updated internally without applying billing changes in Stripe. (optional)
|
|
@@ -11948,6 +11979,7 @@ var Billing = class extends ClientSDK {
|
|
|
11948
11979
|
* @param prorationBehavior - How to handle proration when updating an existing subscription. 'prorate_immediately' charges/credits prorated amounts now, 'none' skips creating any charges. (optional)
|
|
11949
11980
|
* @param redirectMode - Controls when to return a checkout URL. 'always' returns a URL even if payment succeeds, 'if_required' only when payment action is needed, 'never' disables redirects. (optional)
|
|
11950
11981
|
* @param subscriptionId - A unique ID to identify this subscription. Can be used to target specific subscriptions in update operations when a customer has multiple products with the same plan. (optional)
|
|
11982
|
+
* @param discounts - List of discounts to apply. Each discount can be an Autumn reward ID, Stripe coupon ID, or Stripe promotion code. (optional)
|
|
11951
11983
|
* @param cancelAction - Action to perform for cancellation. 'cancel_immediately' cancels now with prorated refund, 'cancel_end_of_cycle' cancels at period end, 'uncancel' reverses a pending cancellation. (optional)
|
|
11952
11984
|
* @param billingCycleAnchor - Reset the billing cycle anchor immediately with 'now' (optional)
|
|
11953
11985
|
* @param noBillingChanges - If true, the subscription is updated internally without applying billing changes in Stripe. (optional)
|
|
@@ -16033,6 +16065,10 @@ var previewUpdateInvoiceModeSchema = import_v411.z.object({
|
|
|
16033
16065
|
enablePlanImmediately: import_v411.z.union([import_v411.z.boolean(), import_v411.z.undefined()]).optional(),
|
|
16034
16066
|
finalize: import_v411.z.union([import_v411.z.boolean(), import_v411.z.undefined()]).optional()
|
|
16035
16067
|
});
|
|
16068
|
+
var previewUpdateAttachDiscountSchema = import_v411.z.object({
|
|
16069
|
+
rewardId: import_v411.z.union([import_v411.z.string(), import_v411.z.undefined()]).optional(),
|
|
16070
|
+
promotionCode: import_v411.z.union([import_v411.z.string(), import_v411.z.undefined()]).optional()
|
|
16071
|
+
});
|
|
16036
16072
|
var previewUpdateRecalculateBalancesSchema = import_v411.z.object({
|
|
16037
16073
|
enabled: import_v411.z.boolean()
|
|
16038
16074
|
});
|
|
@@ -16167,6 +16203,10 @@ var previewUpdateInvoiceModeOutboundSchema = import_v411.z.object({
|
|
|
16167
16203
|
enable_plan_immediately: import_v411.z.boolean(),
|
|
16168
16204
|
finalize: import_v411.z.boolean()
|
|
16169
16205
|
});
|
|
16206
|
+
var previewUpdateAttachDiscountOutboundSchema = import_v411.z.object({
|
|
16207
|
+
reward_id: import_v411.z.union([import_v411.z.string(), import_v411.z.undefined()]).optional(),
|
|
16208
|
+
promotion_code: import_v411.z.union([import_v411.z.string(), import_v411.z.undefined()]).optional()
|
|
16209
|
+
});
|
|
16170
16210
|
var previewUpdateRecalculateBalancesOutboundSchema = import_v411.z.object({
|
|
16171
16211
|
enabled: import_v411.z.boolean()
|
|
16172
16212
|
});
|
|
@@ -16184,6 +16224,7 @@ var previewUpdateParamsOutboundSchema = import_v411.z.object({
|
|
|
16184
16224
|
proration_behavior: import_v411.z.union([import_v411.z.string(), import_v411.z.undefined()]).optional(),
|
|
16185
16225
|
redirect_mode: import_v411.z.string(),
|
|
16186
16226
|
subscription_id: import_v411.z.union([import_v411.z.string(), import_v411.z.undefined()]).optional(),
|
|
16227
|
+
discounts: import_v411.z.union([import_v411.z.array(previewUpdateAttachDiscountOutboundSchema), import_v411.z.undefined()]).optional(),
|
|
16187
16228
|
cancel_action: import_v411.z.union([import_v411.z.string(), import_v411.z.undefined()]).optional(),
|
|
16188
16229
|
billing_cycle_anchor: import_v411.z.union([import_v411.z.literal("now"), import_v411.z.undefined()]).optional(),
|
|
16189
16230
|
no_billing_changes: import_v411.z.union([import_v411.z.boolean(), import_v411.z.undefined()]).optional(),
|
|
@@ -16263,6 +16304,7 @@ var previewUpdateParamsSchema = import_v411.z.object({
|
|
|
16263
16304
|
prorationBehavior: import_v411.z.union([previewUpdateProrationBehaviorSchema, import_v411.z.undefined()]).optional(),
|
|
16264
16305
|
redirectMode: import_v411.z.union([previewUpdateRedirectModeSchema, import_v411.z.undefined()]).optional(),
|
|
16265
16306
|
subscriptionId: import_v411.z.union([import_v411.z.string(), import_v411.z.undefined()]).optional(),
|
|
16307
|
+
discounts: import_v411.z.union([import_v411.z.array(previewUpdateAttachDiscountSchema), import_v411.z.undefined()]).optional(),
|
|
16266
16308
|
cancelAction: import_v411.z.union([previewUpdateCancelActionSchema, import_v411.z.undefined()]).optional(),
|
|
16267
16309
|
billingCycleAnchor: import_v411.z.union([import_v411.z.literal("now"), import_v411.z.undefined()]).optional(),
|
|
16268
16310
|
noBillingChanges: import_v411.z.union([import_v411.z.boolean(), import_v411.z.undefined()]).optional(),
|
|
@@ -16550,6 +16592,10 @@ var billingUpdateInvoiceModeSchema = import_v414.z.object({
|
|
|
16550
16592
|
enablePlanImmediately: import_v414.z.union([import_v414.z.boolean(), import_v414.z.undefined()]).optional(),
|
|
16551
16593
|
finalize: import_v414.z.union([import_v414.z.boolean(), import_v414.z.undefined()]).optional()
|
|
16552
16594
|
});
|
|
16595
|
+
var billingUpdateAttachDiscountSchema = import_v414.z.object({
|
|
16596
|
+
rewardId: import_v414.z.union([import_v414.z.string(), import_v414.z.undefined()]).optional(),
|
|
16597
|
+
promotionCode: import_v414.z.union([import_v414.z.string(), import_v414.z.undefined()]).optional()
|
|
16598
|
+
});
|
|
16553
16599
|
var billingUpdateRecalculateBalancesSchema = import_v414.z.object({
|
|
16554
16600
|
enabled: import_v414.z.boolean()
|
|
16555
16601
|
});
|
|
@@ -16624,6 +16670,10 @@ var billingUpdateInvoiceModeOutboundSchema = import_v414.z.object({
|
|
|
16624
16670
|
enable_plan_immediately: import_v414.z.boolean(),
|
|
16625
16671
|
finalize: import_v414.z.boolean()
|
|
16626
16672
|
});
|
|
16673
|
+
var billingUpdateAttachDiscountOutboundSchema = import_v414.z.object({
|
|
16674
|
+
reward_id: import_v414.z.union([import_v414.z.string(), import_v414.z.undefined()]).optional(),
|
|
16675
|
+
promotion_code: import_v414.z.union([import_v414.z.string(), import_v414.z.undefined()]).optional()
|
|
16676
|
+
});
|
|
16627
16677
|
var billingUpdateRecalculateBalancesOutboundSchema = import_v414.z.object({
|
|
16628
16678
|
enabled: import_v414.z.boolean()
|
|
16629
16679
|
});
|
|
@@ -16638,6 +16688,7 @@ var updateSubscriptionParamsOutboundSchema = import_v414.z.object({
|
|
|
16638
16688
|
proration_behavior: import_v414.z.union([import_v414.z.string(), import_v414.z.undefined()]).optional(),
|
|
16639
16689
|
redirect_mode: import_v414.z.string(),
|
|
16640
16690
|
subscription_id: import_v414.z.union([import_v414.z.string(), import_v414.z.undefined()]).optional(),
|
|
16691
|
+
discounts: import_v414.z.union([import_v414.z.array(billingUpdateAttachDiscountOutboundSchema), import_v414.z.undefined()]).optional(),
|
|
16641
16692
|
cancel_action: import_v414.z.union([import_v414.z.string(), import_v414.z.undefined()]).optional(),
|
|
16642
16693
|
billing_cycle_anchor: import_v414.z.union([import_v414.z.literal("now"), import_v414.z.undefined()]).optional(),
|
|
16643
16694
|
no_billing_changes: import_v414.z.union([import_v414.z.boolean(), import_v414.z.undefined()]).optional(),
|
|
@@ -16716,6 +16767,7 @@ var updateSubscriptionParamsSchema = import_v414.z.object({
|
|
|
16716
16767
|
prorationBehavior: import_v414.z.union([billingUpdateProrationBehaviorSchema, import_v414.z.undefined()]).optional(),
|
|
16717
16768
|
redirectMode: import_v414.z.union([billingUpdateRedirectModeSchema, import_v414.z.undefined()]).optional(),
|
|
16718
16769
|
subscriptionId: import_v414.z.union([import_v414.z.string(), import_v414.z.undefined()]).optional(),
|
|
16770
|
+
discounts: import_v414.z.union([import_v414.z.array(billingUpdateAttachDiscountSchema), import_v414.z.undefined()]).optional(),
|
|
16719
16771
|
cancelAction: import_v414.z.union([billingUpdateCancelActionSchema, import_v414.z.undefined()]).optional(),
|
|
16720
16772
|
billingCycleAnchor: import_v414.z.union([import_v414.z.literal("now"), import_v414.z.undefined()]).optional(),
|
|
16721
16773
|
noBillingChanges: import_v414.z.union([import_v414.z.boolean(), import_v414.z.undefined()]).optional(),
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import {
|
|
2
2
|
autumnHandler
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-JQX5WYYY.mjs";
|
|
4
4
|
import "../chunk-WYDGEDEU.mjs";
|
|
5
5
|
import "../chunk-VXND2UDT.mjs";
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-
|
|
8
|
-
import "../chunk-AY6OV7CM.mjs";
|
|
9
|
-
import "../chunk-55C2WWXQ.mjs";
|
|
10
|
-
import "../chunk-TBQ27LIK.mjs";
|
|
11
|
-
import "../chunk-J44WR3QZ.mjs";
|
|
6
|
+
import "../chunk-N53PKNZ6.mjs";
|
|
7
|
+
import "../chunk-ITXMMCSD.mjs";
|
|
12
8
|
import "../chunk-TSF4YCUO.mjs";
|
|
13
9
|
import "../chunk-UAR3TMWI.mjs";
|
|
14
|
-
import "../chunk-
|
|
10
|
+
import "../chunk-UEYDU64U.mjs";
|
|
11
|
+
import "../chunk-X4LPDDOP.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
|
|
@@ -2176,6 +2176,18 @@ var BillingUpdateInvoiceMode$outboundSchema = z12.pipe(
|
|
|
2176
2176
|
);
|
|
2177
2177
|
var BillingUpdateProrationBehavior$outboundSchema = z12.enum(BillingUpdateProrationBehavior);
|
|
2178
2178
|
var BillingUpdateRedirectMode$outboundSchema = z12.enum(BillingUpdateRedirectMode);
|
|
2179
|
+
var BillingUpdateAttachDiscount$outboundSchema = z12.pipe(
|
|
2180
|
+
z12.object({
|
|
2181
|
+
rewardId: z12.optional(z12.string()),
|
|
2182
|
+
promotionCode: z12.optional(z12.string())
|
|
2183
|
+
}),
|
|
2184
|
+
z12.transform((v) => {
|
|
2185
|
+
return remap(v, {
|
|
2186
|
+
rewardId: "reward_id",
|
|
2187
|
+
promotionCode: "promotion_code"
|
|
2188
|
+
});
|
|
2189
|
+
})
|
|
2190
|
+
);
|
|
2179
2191
|
var BillingUpdateCancelAction$outboundSchema = z12.enum(BillingUpdateCancelAction);
|
|
2180
2192
|
var BillingUpdateRecalculateBalances$outboundSchema = z12.object({
|
|
2181
2193
|
enabled: z12.boolean()
|
|
@@ -2201,6 +2213,9 @@ var UpdateSubscriptionParams$outboundSchema = z12.pipe(
|
|
|
2201
2213
|
"if_required"
|
|
2202
2214
|
),
|
|
2203
2215
|
subscriptionId: z12.optional(z12.string()),
|
|
2216
|
+
discounts: z12.optional(
|
|
2217
|
+
z12.array(z12.lazy(() => BillingUpdateAttachDiscount$outboundSchema))
|
|
2218
|
+
),
|
|
2204
2219
|
cancelAction: z12.optional(BillingUpdateCancelAction$outboundSchema),
|
|
2205
2220
|
billingCycleAnchor: z12.optional(z12.literal("now")),
|
|
2206
2221
|
noBillingChanges: z12.optional(z12.boolean()),
|
|
@@ -7912,6 +7927,18 @@ var PreviewUpdateInvoiceMode$outboundSchema = z40.pipe(
|
|
|
7912
7927
|
);
|
|
7913
7928
|
var PreviewUpdateProrationBehavior$outboundSchema = z40.enum(PreviewUpdateProrationBehavior);
|
|
7914
7929
|
var PreviewUpdateRedirectMode$outboundSchema = z40.enum(PreviewUpdateRedirectMode);
|
|
7930
|
+
var PreviewUpdateAttachDiscount$outboundSchema = z40.pipe(
|
|
7931
|
+
z40.object({
|
|
7932
|
+
rewardId: z40.optional(z40.string()),
|
|
7933
|
+
promotionCode: z40.optional(z40.string())
|
|
7934
|
+
}),
|
|
7935
|
+
z40.transform((v) => {
|
|
7936
|
+
return remap(v, {
|
|
7937
|
+
rewardId: "reward_id",
|
|
7938
|
+
promotionCode: "promotion_code"
|
|
7939
|
+
});
|
|
7940
|
+
})
|
|
7941
|
+
);
|
|
7915
7942
|
var PreviewUpdateCancelAction$outboundSchema = z40.enum(PreviewUpdateCancelAction);
|
|
7916
7943
|
var PreviewUpdateRecalculateBalances$outboundSchema = z40.object({
|
|
7917
7944
|
enabled: z40.boolean()
|
|
@@ -7937,6 +7964,9 @@ var PreviewUpdateParams$outboundSchema = z40.pipe(
|
|
|
7937
7964
|
"if_required"
|
|
7938
7965
|
),
|
|
7939
7966
|
subscriptionId: z40.optional(z40.string()),
|
|
7967
|
+
discounts: z40.optional(
|
|
7968
|
+
z40.array(z40.lazy(() => PreviewUpdateAttachDiscount$outboundSchema))
|
|
7969
|
+
),
|
|
7940
7970
|
cancelAction: z40.optional(PreviewUpdateCancelAction$outboundSchema),
|
|
7941
7971
|
billingCycleAnchor: z40.optional(z40.literal("now")),
|
|
7942
7972
|
noBillingChanges: z40.optional(z40.boolean()),
|
|
@@ -11913,6 +11943,7 @@ var Billing = class extends ClientSDK {
|
|
|
11913
11943
|
* @param prorationBehavior - How to handle proration when updating an existing subscription. 'prorate_immediately' charges/credits prorated amounts now, 'none' skips creating any charges. (optional)
|
|
11914
11944
|
* @param redirectMode - Controls when to return a checkout URL. 'always' returns a URL even if payment succeeds, 'if_required' only when payment action is needed, 'never' disables redirects. (optional)
|
|
11915
11945
|
* @param subscriptionId - A unique ID to identify this subscription. Can be used to target specific subscriptions in update operations when a customer has multiple products with the same plan. (optional)
|
|
11946
|
+
* @param discounts - List of discounts to apply. Each discount can be an Autumn reward ID, Stripe coupon ID, or Stripe promotion code. (optional)
|
|
11916
11947
|
* @param cancelAction - Action to perform for cancellation. 'cancel_immediately' cancels now with prorated refund, 'cancel_end_of_cycle' cancels at period end, 'uncancel' reverses a pending cancellation. (optional)
|
|
11917
11948
|
* @param billingCycleAnchor - Reset the billing cycle anchor immediately with 'now' (optional)
|
|
11918
11949
|
* @param noBillingChanges - If true, the subscription is updated internally without applying billing changes in Stripe. (optional)
|
|
@@ -11948,6 +11979,7 @@ var Billing = class extends ClientSDK {
|
|
|
11948
11979
|
* @param prorationBehavior - How to handle proration when updating an existing subscription. 'prorate_immediately' charges/credits prorated amounts now, 'none' skips creating any charges. (optional)
|
|
11949
11980
|
* @param redirectMode - Controls when to return a checkout URL. 'always' returns a URL even if payment succeeds, 'if_required' only when payment action is needed, 'never' disables redirects. (optional)
|
|
11950
11981
|
* @param subscriptionId - A unique ID to identify this subscription. Can be used to target specific subscriptions in update operations when a customer has multiple products with the same plan. (optional)
|
|
11982
|
+
* @param discounts - List of discounts to apply. Each discount can be an Autumn reward ID, Stripe coupon ID, or Stripe promotion code. (optional)
|
|
11951
11983
|
* @param cancelAction - Action to perform for cancellation. 'cancel_immediately' cancels now with prorated refund, 'cancel_end_of_cycle' cancels at period end, 'uncancel' reverses a pending cancellation. (optional)
|
|
11952
11984
|
* @param billingCycleAnchor - Reset the billing cycle anchor immediately with 'now' (optional)
|
|
11953
11985
|
* @param noBillingChanges - If true, the subscription is updated internally without applying billing changes in Stripe. (optional)
|
|
@@ -16033,6 +16065,10 @@ var previewUpdateInvoiceModeSchema = import_v411.z.object({
|
|
|
16033
16065
|
enablePlanImmediately: import_v411.z.union([import_v411.z.boolean(), import_v411.z.undefined()]).optional(),
|
|
16034
16066
|
finalize: import_v411.z.union([import_v411.z.boolean(), import_v411.z.undefined()]).optional()
|
|
16035
16067
|
});
|
|
16068
|
+
var previewUpdateAttachDiscountSchema = import_v411.z.object({
|
|
16069
|
+
rewardId: import_v411.z.union([import_v411.z.string(), import_v411.z.undefined()]).optional(),
|
|
16070
|
+
promotionCode: import_v411.z.union([import_v411.z.string(), import_v411.z.undefined()]).optional()
|
|
16071
|
+
});
|
|
16036
16072
|
var previewUpdateRecalculateBalancesSchema = import_v411.z.object({
|
|
16037
16073
|
enabled: import_v411.z.boolean()
|
|
16038
16074
|
});
|
|
@@ -16167,6 +16203,10 @@ var previewUpdateInvoiceModeOutboundSchema = import_v411.z.object({
|
|
|
16167
16203
|
enable_plan_immediately: import_v411.z.boolean(),
|
|
16168
16204
|
finalize: import_v411.z.boolean()
|
|
16169
16205
|
});
|
|
16206
|
+
var previewUpdateAttachDiscountOutboundSchema = import_v411.z.object({
|
|
16207
|
+
reward_id: import_v411.z.union([import_v411.z.string(), import_v411.z.undefined()]).optional(),
|
|
16208
|
+
promotion_code: import_v411.z.union([import_v411.z.string(), import_v411.z.undefined()]).optional()
|
|
16209
|
+
});
|
|
16170
16210
|
var previewUpdateRecalculateBalancesOutboundSchema = import_v411.z.object({
|
|
16171
16211
|
enabled: import_v411.z.boolean()
|
|
16172
16212
|
});
|
|
@@ -16184,6 +16224,7 @@ var previewUpdateParamsOutboundSchema = import_v411.z.object({
|
|
|
16184
16224
|
proration_behavior: import_v411.z.union([import_v411.z.string(), import_v411.z.undefined()]).optional(),
|
|
16185
16225
|
redirect_mode: import_v411.z.string(),
|
|
16186
16226
|
subscription_id: import_v411.z.union([import_v411.z.string(), import_v411.z.undefined()]).optional(),
|
|
16227
|
+
discounts: import_v411.z.union([import_v411.z.array(previewUpdateAttachDiscountOutboundSchema), import_v411.z.undefined()]).optional(),
|
|
16187
16228
|
cancel_action: import_v411.z.union([import_v411.z.string(), import_v411.z.undefined()]).optional(),
|
|
16188
16229
|
billing_cycle_anchor: import_v411.z.union([import_v411.z.literal("now"), import_v411.z.undefined()]).optional(),
|
|
16189
16230
|
no_billing_changes: import_v411.z.union([import_v411.z.boolean(), import_v411.z.undefined()]).optional(),
|
|
@@ -16263,6 +16304,7 @@ var previewUpdateParamsSchema = import_v411.z.object({
|
|
|
16263
16304
|
prorationBehavior: import_v411.z.union([previewUpdateProrationBehaviorSchema, import_v411.z.undefined()]).optional(),
|
|
16264
16305
|
redirectMode: import_v411.z.union([previewUpdateRedirectModeSchema, import_v411.z.undefined()]).optional(),
|
|
16265
16306
|
subscriptionId: import_v411.z.union([import_v411.z.string(), import_v411.z.undefined()]).optional(),
|
|
16307
|
+
discounts: import_v411.z.union([import_v411.z.array(previewUpdateAttachDiscountSchema), import_v411.z.undefined()]).optional(),
|
|
16266
16308
|
cancelAction: import_v411.z.union([previewUpdateCancelActionSchema, import_v411.z.undefined()]).optional(),
|
|
16267
16309
|
billingCycleAnchor: import_v411.z.union([import_v411.z.literal("now"), import_v411.z.undefined()]).optional(),
|
|
16268
16310
|
noBillingChanges: import_v411.z.union([import_v411.z.boolean(), import_v411.z.undefined()]).optional(),
|
|
@@ -16550,6 +16592,10 @@ var billingUpdateInvoiceModeSchema = import_v414.z.object({
|
|
|
16550
16592
|
enablePlanImmediately: import_v414.z.union([import_v414.z.boolean(), import_v414.z.undefined()]).optional(),
|
|
16551
16593
|
finalize: import_v414.z.union([import_v414.z.boolean(), import_v414.z.undefined()]).optional()
|
|
16552
16594
|
});
|
|
16595
|
+
var billingUpdateAttachDiscountSchema = import_v414.z.object({
|
|
16596
|
+
rewardId: import_v414.z.union([import_v414.z.string(), import_v414.z.undefined()]).optional(),
|
|
16597
|
+
promotionCode: import_v414.z.union([import_v414.z.string(), import_v414.z.undefined()]).optional()
|
|
16598
|
+
});
|
|
16553
16599
|
var billingUpdateRecalculateBalancesSchema = import_v414.z.object({
|
|
16554
16600
|
enabled: import_v414.z.boolean()
|
|
16555
16601
|
});
|
|
@@ -16624,6 +16670,10 @@ var billingUpdateInvoiceModeOutboundSchema = import_v414.z.object({
|
|
|
16624
16670
|
enable_plan_immediately: import_v414.z.boolean(),
|
|
16625
16671
|
finalize: import_v414.z.boolean()
|
|
16626
16672
|
});
|
|
16673
|
+
var billingUpdateAttachDiscountOutboundSchema = import_v414.z.object({
|
|
16674
|
+
reward_id: import_v414.z.union([import_v414.z.string(), import_v414.z.undefined()]).optional(),
|
|
16675
|
+
promotion_code: import_v414.z.union([import_v414.z.string(), import_v414.z.undefined()]).optional()
|
|
16676
|
+
});
|
|
16627
16677
|
var billingUpdateRecalculateBalancesOutboundSchema = import_v414.z.object({
|
|
16628
16678
|
enabled: import_v414.z.boolean()
|
|
16629
16679
|
});
|
|
@@ -16638,6 +16688,7 @@ var updateSubscriptionParamsOutboundSchema = import_v414.z.object({
|
|
|
16638
16688
|
proration_behavior: import_v414.z.union([import_v414.z.string(), import_v414.z.undefined()]).optional(),
|
|
16639
16689
|
redirect_mode: import_v414.z.string(),
|
|
16640
16690
|
subscription_id: import_v414.z.union([import_v414.z.string(), import_v414.z.undefined()]).optional(),
|
|
16691
|
+
discounts: import_v414.z.union([import_v414.z.array(billingUpdateAttachDiscountOutboundSchema), import_v414.z.undefined()]).optional(),
|
|
16641
16692
|
cancel_action: import_v414.z.union([import_v414.z.string(), import_v414.z.undefined()]).optional(),
|
|
16642
16693
|
billing_cycle_anchor: import_v414.z.union([import_v414.z.literal("now"), import_v414.z.undefined()]).optional(),
|
|
16643
16694
|
no_billing_changes: import_v414.z.union([import_v414.z.boolean(), import_v414.z.undefined()]).optional(),
|
|
@@ -16716,6 +16767,7 @@ var updateSubscriptionParamsSchema = import_v414.z.object({
|
|
|
16716
16767
|
prorationBehavior: import_v414.z.union([billingUpdateProrationBehaviorSchema, import_v414.z.undefined()]).optional(),
|
|
16717
16768
|
redirectMode: import_v414.z.union([billingUpdateRedirectModeSchema, import_v414.z.undefined()]).optional(),
|
|
16718
16769
|
subscriptionId: import_v414.z.union([import_v414.z.string(), import_v414.z.undefined()]).optional(),
|
|
16770
|
+
discounts: import_v414.z.union([import_v414.z.array(billingUpdateAttachDiscountSchema), import_v414.z.undefined()]).optional(),
|
|
16719
16771
|
cancelAction: import_v414.z.union([billingUpdateCancelActionSchema, import_v414.z.undefined()]).optional(),
|
|
16720
16772
|
billingCycleAnchor: import_v414.z.union([import_v414.z.literal("now"), import_v414.z.undefined()]).optional(),
|
|
16721
16773
|
noBillingChanges: import_v414.z.union([import_v414.z.boolean(), import_v414.z.undefined()]).optional(),
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import {
|
|
2
2
|
autumnHandler
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-SE5CK5NY.mjs";
|
|
4
4
|
import "../chunk-WYDGEDEU.mjs";
|
|
5
5
|
import "../chunk-VXND2UDT.mjs";
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-
|
|
8
|
-
import "../chunk-AY6OV7CM.mjs";
|
|
9
|
-
import "../chunk-55C2WWXQ.mjs";
|
|
10
|
-
import "../chunk-TBQ27LIK.mjs";
|
|
11
|
-
import "../chunk-J44WR3QZ.mjs";
|
|
6
|
+
import "../chunk-N53PKNZ6.mjs";
|
|
7
|
+
import "../chunk-ITXMMCSD.mjs";
|
|
12
8
|
import "../chunk-TSF4YCUO.mjs";
|
|
13
9
|
import "../chunk-UAR3TMWI.mjs";
|
|
14
|
-
import "../chunk-
|
|
10
|
+
import "../chunk-UEYDU64U.mjs";
|
|
11
|
+
import "../chunk-X4LPDDOP.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
|
|
@@ -2176,6 +2176,18 @@ var BillingUpdateInvoiceMode$outboundSchema = z12.pipe(
|
|
|
2176
2176
|
);
|
|
2177
2177
|
var BillingUpdateProrationBehavior$outboundSchema = z12.enum(BillingUpdateProrationBehavior);
|
|
2178
2178
|
var BillingUpdateRedirectMode$outboundSchema = z12.enum(BillingUpdateRedirectMode);
|
|
2179
|
+
var BillingUpdateAttachDiscount$outboundSchema = z12.pipe(
|
|
2180
|
+
z12.object({
|
|
2181
|
+
rewardId: z12.optional(z12.string()),
|
|
2182
|
+
promotionCode: z12.optional(z12.string())
|
|
2183
|
+
}),
|
|
2184
|
+
z12.transform((v) => {
|
|
2185
|
+
return remap(v, {
|
|
2186
|
+
rewardId: "reward_id",
|
|
2187
|
+
promotionCode: "promotion_code"
|
|
2188
|
+
});
|
|
2189
|
+
})
|
|
2190
|
+
);
|
|
2179
2191
|
var BillingUpdateCancelAction$outboundSchema = z12.enum(BillingUpdateCancelAction);
|
|
2180
2192
|
var BillingUpdateRecalculateBalances$outboundSchema = z12.object({
|
|
2181
2193
|
enabled: z12.boolean()
|
|
@@ -2201,6 +2213,9 @@ var UpdateSubscriptionParams$outboundSchema = z12.pipe(
|
|
|
2201
2213
|
"if_required"
|
|
2202
2214
|
),
|
|
2203
2215
|
subscriptionId: z12.optional(z12.string()),
|
|
2216
|
+
discounts: z12.optional(
|
|
2217
|
+
z12.array(z12.lazy(() => BillingUpdateAttachDiscount$outboundSchema))
|
|
2218
|
+
),
|
|
2204
2219
|
cancelAction: z12.optional(BillingUpdateCancelAction$outboundSchema),
|
|
2205
2220
|
billingCycleAnchor: z12.optional(z12.literal("now")),
|
|
2206
2221
|
noBillingChanges: z12.optional(z12.boolean()),
|
|
@@ -7912,6 +7927,18 @@ var PreviewUpdateInvoiceMode$outboundSchema = z40.pipe(
|
|
|
7912
7927
|
);
|
|
7913
7928
|
var PreviewUpdateProrationBehavior$outboundSchema = z40.enum(PreviewUpdateProrationBehavior);
|
|
7914
7929
|
var PreviewUpdateRedirectMode$outboundSchema = z40.enum(PreviewUpdateRedirectMode);
|
|
7930
|
+
var PreviewUpdateAttachDiscount$outboundSchema = z40.pipe(
|
|
7931
|
+
z40.object({
|
|
7932
|
+
rewardId: z40.optional(z40.string()),
|
|
7933
|
+
promotionCode: z40.optional(z40.string())
|
|
7934
|
+
}),
|
|
7935
|
+
z40.transform((v) => {
|
|
7936
|
+
return remap(v, {
|
|
7937
|
+
rewardId: "reward_id",
|
|
7938
|
+
promotionCode: "promotion_code"
|
|
7939
|
+
});
|
|
7940
|
+
})
|
|
7941
|
+
);
|
|
7915
7942
|
var PreviewUpdateCancelAction$outboundSchema = z40.enum(PreviewUpdateCancelAction);
|
|
7916
7943
|
var PreviewUpdateRecalculateBalances$outboundSchema = z40.object({
|
|
7917
7944
|
enabled: z40.boolean()
|
|
@@ -7937,6 +7964,9 @@ var PreviewUpdateParams$outboundSchema = z40.pipe(
|
|
|
7937
7964
|
"if_required"
|
|
7938
7965
|
),
|
|
7939
7966
|
subscriptionId: z40.optional(z40.string()),
|
|
7967
|
+
discounts: z40.optional(
|
|
7968
|
+
z40.array(z40.lazy(() => PreviewUpdateAttachDiscount$outboundSchema))
|
|
7969
|
+
),
|
|
7940
7970
|
cancelAction: z40.optional(PreviewUpdateCancelAction$outboundSchema),
|
|
7941
7971
|
billingCycleAnchor: z40.optional(z40.literal("now")),
|
|
7942
7972
|
noBillingChanges: z40.optional(z40.boolean()),
|
|
@@ -11913,6 +11943,7 @@ var Billing = class extends ClientSDK {
|
|
|
11913
11943
|
* @param prorationBehavior - How to handle proration when updating an existing subscription. 'prorate_immediately' charges/credits prorated amounts now, 'none' skips creating any charges. (optional)
|
|
11914
11944
|
* @param redirectMode - Controls when to return a checkout URL. 'always' returns a URL even if payment succeeds, 'if_required' only when payment action is needed, 'never' disables redirects. (optional)
|
|
11915
11945
|
* @param subscriptionId - A unique ID to identify this subscription. Can be used to target specific subscriptions in update operations when a customer has multiple products with the same plan. (optional)
|
|
11946
|
+
* @param discounts - List of discounts to apply. Each discount can be an Autumn reward ID, Stripe coupon ID, or Stripe promotion code. (optional)
|
|
11916
11947
|
* @param cancelAction - Action to perform for cancellation. 'cancel_immediately' cancels now with prorated refund, 'cancel_end_of_cycle' cancels at period end, 'uncancel' reverses a pending cancellation. (optional)
|
|
11917
11948
|
* @param billingCycleAnchor - Reset the billing cycle anchor immediately with 'now' (optional)
|
|
11918
11949
|
* @param noBillingChanges - If true, the subscription is updated internally without applying billing changes in Stripe. (optional)
|
|
@@ -11948,6 +11979,7 @@ var Billing = class extends ClientSDK {
|
|
|
11948
11979
|
* @param prorationBehavior - How to handle proration when updating an existing subscription. 'prorate_immediately' charges/credits prorated amounts now, 'none' skips creating any charges. (optional)
|
|
11949
11980
|
* @param redirectMode - Controls when to return a checkout URL. 'always' returns a URL even if payment succeeds, 'if_required' only when payment action is needed, 'never' disables redirects. (optional)
|
|
11950
11981
|
* @param subscriptionId - A unique ID to identify this subscription. Can be used to target specific subscriptions in update operations when a customer has multiple products with the same plan. (optional)
|
|
11982
|
+
* @param discounts - List of discounts to apply. Each discount can be an Autumn reward ID, Stripe coupon ID, or Stripe promotion code. (optional)
|
|
11951
11983
|
* @param cancelAction - Action to perform for cancellation. 'cancel_immediately' cancels now with prorated refund, 'cancel_end_of_cycle' cancels at period end, 'uncancel' reverses a pending cancellation. (optional)
|
|
11952
11984
|
* @param billingCycleAnchor - Reset the billing cycle anchor immediately with 'now' (optional)
|
|
11953
11985
|
* @param noBillingChanges - If true, the subscription is updated internally without applying billing changes in Stripe. (optional)
|
|
@@ -16033,6 +16065,10 @@ var previewUpdateInvoiceModeSchema = import_v411.z.object({
|
|
|
16033
16065
|
enablePlanImmediately: import_v411.z.union([import_v411.z.boolean(), import_v411.z.undefined()]).optional(),
|
|
16034
16066
|
finalize: import_v411.z.union([import_v411.z.boolean(), import_v411.z.undefined()]).optional()
|
|
16035
16067
|
});
|
|
16068
|
+
var previewUpdateAttachDiscountSchema = import_v411.z.object({
|
|
16069
|
+
rewardId: import_v411.z.union([import_v411.z.string(), import_v411.z.undefined()]).optional(),
|
|
16070
|
+
promotionCode: import_v411.z.union([import_v411.z.string(), import_v411.z.undefined()]).optional()
|
|
16071
|
+
});
|
|
16036
16072
|
var previewUpdateRecalculateBalancesSchema = import_v411.z.object({
|
|
16037
16073
|
enabled: import_v411.z.boolean()
|
|
16038
16074
|
});
|
|
@@ -16167,6 +16203,10 @@ var previewUpdateInvoiceModeOutboundSchema = import_v411.z.object({
|
|
|
16167
16203
|
enable_plan_immediately: import_v411.z.boolean(),
|
|
16168
16204
|
finalize: import_v411.z.boolean()
|
|
16169
16205
|
});
|
|
16206
|
+
var previewUpdateAttachDiscountOutboundSchema = import_v411.z.object({
|
|
16207
|
+
reward_id: import_v411.z.union([import_v411.z.string(), import_v411.z.undefined()]).optional(),
|
|
16208
|
+
promotion_code: import_v411.z.union([import_v411.z.string(), import_v411.z.undefined()]).optional()
|
|
16209
|
+
});
|
|
16170
16210
|
var previewUpdateRecalculateBalancesOutboundSchema = import_v411.z.object({
|
|
16171
16211
|
enabled: import_v411.z.boolean()
|
|
16172
16212
|
});
|
|
@@ -16184,6 +16224,7 @@ var previewUpdateParamsOutboundSchema = import_v411.z.object({
|
|
|
16184
16224
|
proration_behavior: import_v411.z.union([import_v411.z.string(), import_v411.z.undefined()]).optional(),
|
|
16185
16225
|
redirect_mode: import_v411.z.string(),
|
|
16186
16226
|
subscription_id: import_v411.z.union([import_v411.z.string(), import_v411.z.undefined()]).optional(),
|
|
16227
|
+
discounts: import_v411.z.union([import_v411.z.array(previewUpdateAttachDiscountOutboundSchema), import_v411.z.undefined()]).optional(),
|
|
16187
16228
|
cancel_action: import_v411.z.union([import_v411.z.string(), import_v411.z.undefined()]).optional(),
|
|
16188
16229
|
billing_cycle_anchor: import_v411.z.union([import_v411.z.literal("now"), import_v411.z.undefined()]).optional(),
|
|
16189
16230
|
no_billing_changes: import_v411.z.union([import_v411.z.boolean(), import_v411.z.undefined()]).optional(),
|
|
@@ -16263,6 +16304,7 @@ var previewUpdateParamsSchema = import_v411.z.object({
|
|
|
16263
16304
|
prorationBehavior: import_v411.z.union([previewUpdateProrationBehaviorSchema, import_v411.z.undefined()]).optional(),
|
|
16264
16305
|
redirectMode: import_v411.z.union([previewUpdateRedirectModeSchema, import_v411.z.undefined()]).optional(),
|
|
16265
16306
|
subscriptionId: import_v411.z.union([import_v411.z.string(), import_v411.z.undefined()]).optional(),
|
|
16307
|
+
discounts: import_v411.z.union([import_v411.z.array(previewUpdateAttachDiscountSchema), import_v411.z.undefined()]).optional(),
|
|
16266
16308
|
cancelAction: import_v411.z.union([previewUpdateCancelActionSchema, import_v411.z.undefined()]).optional(),
|
|
16267
16309
|
billingCycleAnchor: import_v411.z.union([import_v411.z.literal("now"), import_v411.z.undefined()]).optional(),
|
|
16268
16310
|
noBillingChanges: import_v411.z.union([import_v411.z.boolean(), import_v411.z.undefined()]).optional(),
|
|
@@ -16550,6 +16592,10 @@ var billingUpdateInvoiceModeSchema = import_v414.z.object({
|
|
|
16550
16592
|
enablePlanImmediately: import_v414.z.union([import_v414.z.boolean(), import_v414.z.undefined()]).optional(),
|
|
16551
16593
|
finalize: import_v414.z.union([import_v414.z.boolean(), import_v414.z.undefined()]).optional()
|
|
16552
16594
|
});
|
|
16595
|
+
var billingUpdateAttachDiscountSchema = import_v414.z.object({
|
|
16596
|
+
rewardId: import_v414.z.union([import_v414.z.string(), import_v414.z.undefined()]).optional(),
|
|
16597
|
+
promotionCode: import_v414.z.union([import_v414.z.string(), import_v414.z.undefined()]).optional()
|
|
16598
|
+
});
|
|
16553
16599
|
var billingUpdateRecalculateBalancesSchema = import_v414.z.object({
|
|
16554
16600
|
enabled: import_v414.z.boolean()
|
|
16555
16601
|
});
|
|
@@ -16624,6 +16670,10 @@ var billingUpdateInvoiceModeOutboundSchema = import_v414.z.object({
|
|
|
16624
16670
|
enable_plan_immediately: import_v414.z.boolean(),
|
|
16625
16671
|
finalize: import_v414.z.boolean()
|
|
16626
16672
|
});
|
|
16673
|
+
var billingUpdateAttachDiscountOutboundSchema = import_v414.z.object({
|
|
16674
|
+
reward_id: import_v414.z.union([import_v414.z.string(), import_v414.z.undefined()]).optional(),
|
|
16675
|
+
promotion_code: import_v414.z.union([import_v414.z.string(), import_v414.z.undefined()]).optional()
|
|
16676
|
+
});
|
|
16627
16677
|
var billingUpdateRecalculateBalancesOutboundSchema = import_v414.z.object({
|
|
16628
16678
|
enabled: import_v414.z.boolean()
|
|
16629
16679
|
});
|
|
@@ -16638,6 +16688,7 @@ var updateSubscriptionParamsOutboundSchema = import_v414.z.object({
|
|
|
16638
16688
|
proration_behavior: import_v414.z.union([import_v414.z.string(), import_v414.z.undefined()]).optional(),
|
|
16639
16689
|
redirect_mode: import_v414.z.string(),
|
|
16640
16690
|
subscription_id: import_v414.z.union([import_v414.z.string(), import_v414.z.undefined()]).optional(),
|
|
16691
|
+
discounts: import_v414.z.union([import_v414.z.array(billingUpdateAttachDiscountOutboundSchema), import_v414.z.undefined()]).optional(),
|
|
16641
16692
|
cancel_action: import_v414.z.union([import_v414.z.string(), import_v414.z.undefined()]).optional(),
|
|
16642
16693
|
billing_cycle_anchor: import_v414.z.union([import_v414.z.literal("now"), import_v414.z.undefined()]).optional(),
|
|
16643
16694
|
no_billing_changes: import_v414.z.union([import_v414.z.boolean(), import_v414.z.undefined()]).optional(),
|
|
@@ -16716,6 +16767,7 @@ var updateSubscriptionParamsSchema = import_v414.z.object({
|
|
|
16716
16767
|
prorationBehavior: import_v414.z.union([billingUpdateProrationBehaviorSchema, import_v414.z.undefined()]).optional(),
|
|
16717
16768
|
redirectMode: import_v414.z.union([billingUpdateRedirectModeSchema, import_v414.z.undefined()]).optional(),
|
|
16718
16769
|
subscriptionId: import_v414.z.union([import_v414.z.string(), import_v414.z.undefined()]).optional(),
|
|
16770
|
+
discounts: import_v414.z.union([import_v414.z.array(billingUpdateAttachDiscountSchema), import_v414.z.undefined()]).optional(),
|
|
16719
16771
|
cancelAction: import_v414.z.union([billingUpdateCancelActionSchema, import_v414.z.undefined()]).optional(),
|
|
16720
16772
|
billingCycleAnchor: import_v414.z.union([import_v414.z.literal("now"), import_v414.z.undefined()]).optional(),
|
|
16721
16773
|
noBillingChanges: import_v414.z.union([import_v414.z.boolean(), import_v414.z.undefined()]).optional(),
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import {
|
|
2
2
|
autumnHandler
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-7Q77N2K2.mjs";
|
|
4
4
|
import "../chunk-WYDGEDEU.mjs";
|
|
5
5
|
import "../chunk-VXND2UDT.mjs";
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-
|
|
8
|
-
import "../chunk-AY6OV7CM.mjs";
|
|
9
|
-
import "../chunk-55C2WWXQ.mjs";
|
|
10
|
-
import "../chunk-TBQ27LIK.mjs";
|
|
11
|
-
import "../chunk-J44WR3QZ.mjs";
|
|
6
|
+
import "../chunk-N53PKNZ6.mjs";
|
|
7
|
+
import "../chunk-ITXMMCSD.mjs";
|
|
12
8
|
import "../chunk-TSF4YCUO.mjs";
|
|
13
9
|
import "../chunk-UAR3TMWI.mjs";
|
|
14
|
-
import "../chunk-
|
|
10
|
+
import "../chunk-UEYDU64U.mjs";
|
|
11
|
+
import "../chunk-X4LPDDOP.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
|