autumn-js 1.2.54 → 1.2.55

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (63) hide show
  1. package/dist/backend/adapters/express.js +30 -26
  2. package/dist/backend/adapters/express.mjs +4 -4
  3. package/dist/backend/adapters/fetch.js +30 -26
  4. package/dist/backend/adapters/fetch.mjs +4 -4
  5. package/dist/backend/adapters/hono.js +30 -26
  6. package/dist/backend/adapters/hono.mjs +4 -4
  7. package/dist/backend/adapters/index.js +30 -26
  8. package/dist/backend/adapters/index.mjs +7 -7
  9. package/dist/backend/adapters/next.js +30 -26
  10. package/dist/backend/adapters/next.mjs +4 -4
  11. package/dist/backend/{chunk-S4KKO3MH.mjs → chunk-6O2BRQQG.mjs} +1 -1
  12. package/dist/backend/{chunk-EFTEE2VK.mjs → chunk-CTDUPQOB.mjs} +1 -1
  13. package/dist/backend/{chunk-XO4AWWEU.mjs → chunk-HBCBE5EZ.mjs} +1 -1
  14. package/dist/backend/{chunk-5R5JDXNQ.mjs → chunk-QP3VSL4U.mjs} +1 -1
  15. package/dist/backend/{chunk-WPFSB4GC.mjs → chunk-V6O5INQW.mjs} +1 -1
  16. package/dist/backend/{chunk-VUMAUMLJ.mjs → chunk-W4YHYDGM.mjs} +1 -1
  17. package/dist/backend/{chunk-BEXC5ZM2.mjs → chunk-Z3CFUICE.mjs} +30 -26
  18. package/dist/backend/core/handlers/coreHandler.d.mts +1 -1
  19. package/dist/backend/core/handlers/coreHandler.d.ts +1 -1
  20. package/dist/backend/core/handlers/coreHandler.js +30 -26
  21. package/dist/backend/core/handlers/coreHandler.mjs +2 -2
  22. package/dist/backend/core/handlers/executeRoute.d.mts +1 -1
  23. package/dist/backend/core/handlers/executeRoute.d.ts +1 -1
  24. package/dist/backend/core/handlers/handleRouteByName.js +30 -26
  25. package/dist/backend/core/handlers/handleRouteByName.mjs +2 -2
  26. package/dist/backend/core/handlers/index.d.mts +1 -1
  27. package/dist/backend/core/handlers/index.d.ts +1 -1
  28. package/dist/backend/core/handlers/index.js +30 -26
  29. package/dist/backend/core/handlers/index.mjs +3 -3
  30. package/dist/backend/core/index.d.mts +1 -1
  31. package/dist/backend/core/index.d.ts +1 -1
  32. package/dist/backend/core/index.js +30 -26
  33. package/dist/backend/core/index.mjs +3 -3
  34. package/dist/backend/core/routes/index.d.mts +1 -1
  35. package/dist/backend/core/routes/index.d.ts +1 -1
  36. package/dist/backend/core/routes/routeBuilder.d.mts +1 -1
  37. package/dist/backend/core/routes/routeBuilder.d.ts +1 -1
  38. package/dist/backend/core/routes/routeConfigs.d.mts +1 -1
  39. package/dist/backend/core/routes/routeConfigs.d.ts +1 -1
  40. package/dist/backend/core/types/handlerTypes.d.mts +1 -1
  41. package/dist/backend/core/types/handlerTypes.d.ts +1 -1
  42. package/dist/backend/core/types/index.d.mts +1 -1
  43. package/dist/backend/core/types/index.d.ts +1 -1
  44. package/dist/backend/core/types/routeTypes.d.mts +1 -1
  45. package/dist/backend/core/types/routeTypes.d.ts +1 -1
  46. package/dist/backend/index.d.mts +2 -2
  47. package/dist/backend/index.d.ts +2 -2
  48. package/dist/backend/index.js +30 -26
  49. package/dist/backend/index.mjs +3 -3
  50. package/dist/backend/{routeTypes-Ds9TlNC5.d.mts → routeTypes-BDnJulPJ.d.mts} +46 -42
  51. package/dist/backend/{routeTypes-9Ae0ZeQl.d.ts → routeTypes-Cx-p8x5O.d.ts} +46 -42
  52. package/dist/better-auth/{chunk-AGQWEBB4.mjs → chunk-JQU4W6BA.mjs} +30 -26
  53. package/dist/better-auth/index.js +30 -26
  54. package/dist/better-auth/index.mjs +1 -1
  55. package/dist/better-auth/utils/handleBetterAuthRoute.js +30 -26
  56. package/dist/better-auth/utils/handleBetterAuthRoute.mjs +1 -1
  57. package/dist/better-auth/utils/index.js +30 -26
  58. package/dist/better-auth/utils/index.mjs +1 -1
  59. package/dist/sdk/index.d.mts +58 -54
  60. package/dist/sdk/index.d.ts +58 -54
  61. package/dist/sdk/index.js +30 -26
  62. package/dist/sdk/index.mjs +30 -26
  63. package/package.json +1 -1
@@ -19262,6 +19262,10 @@ var MultiAttachResponse$inboundSchema = z56.pipe(
19262
19262
 
19263
19263
  // ../sdk/src/models/multi-update-op.ts
19264
19264
  var z57 = __toESM(require("zod/v4-mini"), 1);
19265
+ var MultiUpdateRefundLastPayment = {
19266
+ Prorated: "prorated",
19267
+ Full: "full"
19268
+ };
19265
19269
  var MultiUpdateCancelAction = {
19266
19270
  CancelImmediately: "cancel_immediately",
19267
19271
  CancelEndOfCycle: "cancel_end_of_cycle",
@@ -19271,28 +19275,22 @@ var MultiUpdateProrationBehavior = {
19271
19275
  ProrateImmediately: "prorate_immediately",
19272
19276
  None: "none"
19273
19277
  };
19274
- var MultiUpdateRefundLastPayment = {
19275
- Prorated: "prorated",
19276
- Full: "full"
19277
- };
19278
19278
  var MultiUpdateCode = {
19279
19279
  ThreedsRequired: "3ds_required",
19280
19280
  PaymentMethodRequired: "payment_method_required",
19281
19281
  PaymentFailed: "payment_failed",
19282
19282
  PaymentProcessing: "payment_processing"
19283
19283
  };
19284
+ var MultiUpdateRefundLastPayment$outboundSchema = z57.enum(MultiUpdateRefundLastPayment);
19284
19285
  var MultiUpdateCancelAction$outboundSchema = z57.enum(MultiUpdateCancelAction);
19285
19286
  var MultiUpdateProrationBehavior$outboundSchema = z57.enum(MultiUpdateProrationBehavior);
19286
- var MultiUpdateRefundLastPayment$outboundSchema = z57.enum(MultiUpdateRefundLastPayment);
19287
19287
  var MultiUpdateUpdate$outboundSchema = z57.pipe(
19288
19288
  z57.object({
19289
19289
  planId: z57.optional(z57.string()),
19290
19290
  subscriptionId: z57.optional(z57.string()),
19291
19291
  entityId: z57.optional(z57.string()),
19292
19292
  cancelAction: MultiUpdateCancelAction$outboundSchema,
19293
- prorationBehavior: z57.optional(MultiUpdateProrationBehavior$outboundSchema),
19294
- refundLastPayment: z57.optional(MultiUpdateRefundLastPayment$outboundSchema),
19295
- subscriptionParams: z57.optional(z57.record(z57.string(), z57.any()))
19293
+ prorationBehavior: z57.optional(MultiUpdateProrationBehavior$outboundSchema)
19296
19294
  }),
19297
19295
  z57.transform((v) => {
19298
19296
  return remap(v, {
@@ -19300,9 +19298,7 @@ var MultiUpdateUpdate$outboundSchema = z57.pipe(
19300
19298
  subscriptionId: "subscription_id",
19301
19299
  entityId: "entity_id",
19302
19300
  cancelAction: "cancel_action",
19303
- prorationBehavior: "proration_behavior",
19304
- refundLastPayment: "refund_last_payment",
19305
- subscriptionParams: "subscription_params"
19301
+ prorationBehavior: "proration_behavior"
19306
19302
  });
19307
19303
  })
19308
19304
  );
@@ -19310,12 +19306,16 @@ var MultiUpdateParams$outboundSchema = z57.pipe(
19310
19306
  z57.object({
19311
19307
  customerId: z57.string(),
19312
19308
  entityId: z57.optional(z57.string()),
19309
+ refundLastPayment: z57.optional(MultiUpdateRefundLastPayment$outboundSchema),
19310
+ subscriptionParams: z57.optional(z57.record(z57.string(), z57.any())),
19313
19311
  updates: z57.array(z57.lazy(() => MultiUpdateUpdate$outboundSchema))
19314
19312
  }),
19315
19313
  z57.transform((v) => {
19316
19314
  return remap(v, {
19317
19315
  customerId: "customer_id",
19318
- entityId: "entity_id"
19316
+ entityId: "entity_id",
19317
+ refundLastPayment: "refund_last_payment",
19318
+ subscriptionParams: "subscription_params"
19319
19319
  });
19320
19320
  })
19321
19321
  );
@@ -21557,6 +21557,10 @@ var PreviewMultiAttachResponse$inboundSchema = z60.pipe(
21557
21557
 
21558
21558
  // ../sdk/src/models/preview-multi-update-op.ts
21559
21559
  var z61 = __toESM(require("zod/v4-mini"), 1);
21560
+ var PreviewMultiUpdateRefundLastPayment = {
21561
+ Prorated: "prorated",
21562
+ Full: "full"
21563
+ };
21560
21564
  var PreviewMultiUpdateCancelAction = {
21561
21565
  CancelImmediately: "cancel_immediately",
21562
21566
  CancelEndOfCycle: "cancel_end_of_cycle",
@@ -21566,13 +21570,9 @@ var PreviewMultiUpdateProrationBehavior = {
21566
21570
  ProrateImmediately: "prorate_immediately",
21567
21571
  None: "none"
21568
21572
  };
21569
- var PreviewMultiUpdateRefundLastPayment = {
21570
- Prorated: "prorated",
21571
- Full: "full"
21572
- };
21573
+ var PreviewMultiUpdateRefundLastPayment$outboundSchema = z61.enum(PreviewMultiUpdateRefundLastPayment);
21573
21574
  var PreviewMultiUpdateCancelAction$outboundSchema = z61.enum(PreviewMultiUpdateCancelAction);
21574
21575
  var PreviewMultiUpdateProrationBehavior$outboundSchema = z61.enum(PreviewMultiUpdateProrationBehavior);
21575
- var PreviewMultiUpdateRefundLastPayment$outboundSchema = z61.enum(PreviewMultiUpdateRefundLastPayment);
21576
21576
  var PreviewMultiUpdateUpdate$outboundSchema = z61.pipe(
21577
21577
  z61.object({
21578
21578
  planId: z61.optional(z61.string()),
@@ -21581,11 +21581,7 @@ var PreviewMultiUpdateUpdate$outboundSchema = z61.pipe(
21581
21581
  cancelAction: PreviewMultiUpdateCancelAction$outboundSchema,
21582
21582
  prorationBehavior: z61.optional(
21583
21583
  PreviewMultiUpdateProrationBehavior$outboundSchema
21584
- ),
21585
- refundLastPayment: z61.optional(
21586
- PreviewMultiUpdateRefundLastPayment$outboundSchema
21587
- ),
21588
- subscriptionParams: z61.optional(z61.record(z61.string(), z61.any()))
21584
+ )
21589
21585
  }),
21590
21586
  z61.transform((v) => {
21591
21587
  return remap(v, {
@@ -21593,9 +21589,7 @@ var PreviewMultiUpdateUpdate$outboundSchema = z61.pipe(
21593
21589
  subscriptionId: "subscription_id",
21594
21590
  entityId: "entity_id",
21595
21591
  cancelAction: "cancel_action",
21596
- prorationBehavior: "proration_behavior",
21597
- refundLastPayment: "refund_last_payment",
21598
- subscriptionParams: "subscription_params"
21592
+ prorationBehavior: "proration_behavior"
21599
21593
  });
21600
21594
  })
21601
21595
  );
@@ -21603,12 +21597,18 @@ var PreviewMultiUpdateParams$outboundSchema = z61.pipe(
21603
21597
  z61.object({
21604
21598
  customerId: z61.string(),
21605
21599
  entityId: z61.optional(z61.string()),
21600
+ refundLastPayment: z61.optional(
21601
+ PreviewMultiUpdateRefundLastPayment$outboundSchema
21602
+ ),
21603
+ subscriptionParams: z61.optional(z61.record(z61.string(), z61.any())),
21606
21604
  updates: z61.array(z61.lazy(() => PreviewMultiUpdateUpdate$outboundSchema))
21607
21605
  }),
21608
21606
  z61.transform((v) => {
21609
21607
  return remap(v, {
21610
21608
  customerId: "customer_id",
21611
- entityId: "entity_id"
21609
+ entityId: "entity_id",
21610
+ refundLastPayment: "refund_last_payment",
21611
+ subscriptionParams: "subscription_params"
21612
21612
  });
21613
21613
  })
21614
21614
  );
@@ -32018,6 +32018,8 @@ var Billing = class extends ClientSDK {
32018
32018
  *
32019
32019
  * @param customerId - The ID of the customer to update plans for.
32020
32020
  * @param entityId - The ID of the entity to update plans for. Individual updates can override this with their own entity_id. (optional)
32021
+ * @param refundLastPayment - Controls how the last payment is refunded on immediate cancellation. 'prorated' refunds the unused portion, 'full' refunds the entire last payment. (optional)
32022
+ * @param subscriptionParams - Additional parameters to pass into the Stripe subscription update or cancel call. (optional)
32021
32023
  * @param updates - The list of plan updates to apply to the customer.
32022
32024
  *
32023
32025
  * @returns A billing response with the resulting invoice summary (one credit invoice per affected subscription for immediate cancels).
@@ -32042,6 +32044,8 @@ var Billing = class extends ClientSDK {
32042
32044
  *
32043
32045
  * @param customerId - The ID of the customer to update plans for.
32044
32046
  * @param entityId - The ID of the entity to update plans for. Individual updates can override this with their own entity_id. (optional)
32047
+ * @param refundLastPayment - Controls how the last payment is refunded on immediate cancellation. 'prorated' refunds the unused portion, 'full' refunds the entire last payment. (optional)
32048
+ * @param subscriptionParams - Additional parameters to pass into the Stripe subscription update or cancel call. (optional)
32045
32049
  * @param updates - The list of plan updates to apply to the customer.
32046
32050
  *
32047
32051
  * @returns A preview with the combined total plus one entry per subscription, each with its own line items, totals, and next-cycle preview.
@@ -1,20 +1,20 @@
1
1
  import {
2
2
  autumnHandler
3
- } from "../chunk-S4KKO3MH.mjs";
3
+ } from "../chunk-6O2BRQQG.mjs";
4
4
  import {
5
5
  autumnHandler as autumnHandler2
6
- } from "../chunk-WPFSB4GC.mjs";
6
+ } from "../chunk-V6O5INQW.mjs";
7
7
  import {
8
8
  autumnHandler as autumnHandler3
9
- } from "../chunk-VUMAUMLJ.mjs";
9
+ } from "../chunk-W4YHYDGM.mjs";
10
10
  import {
11
11
  autumnHandler as autumnHandler4
12
- } from "../chunk-5R5JDXNQ.mjs";
12
+ } from "../chunk-QP3VSL4U.mjs";
13
13
  import "../chunk-WYDGEDEU.mjs";
14
14
  import "../chunk-VXND2UDT.mjs";
15
- import "../chunk-XO4AWWEU.mjs";
16
- import "../chunk-EFTEE2VK.mjs";
17
- import "../chunk-BEXC5ZM2.mjs";
15
+ import "../chunk-HBCBE5EZ.mjs";
16
+ import "../chunk-CTDUPQOB.mjs";
17
+ import "../chunk-Z3CFUICE.mjs";
18
18
  import "../chunk-MOHYGUMA.mjs";
19
19
  import "../chunk-TBQ27LIK.mjs";
20
20
  import "../chunk-J44WR3QZ.mjs";
@@ -19260,6 +19260,10 @@ var MultiAttachResponse$inboundSchema = z56.pipe(
19260
19260
 
19261
19261
  // ../sdk/src/models/multi-update-op.ts
19262
19262
  var z57 = __toESM(require("zod/v4-mini"), 1);
19263
+ var MultiUpdateRefundLastPayment = {
19264
+ Prorated: "prorated",
19265
+ Full: "full"
19266
+ };
19263
19267
  var MultiUpdateCancelAction = {
19264
19268
  CancelImmediately: "cancel_immediately",
19265
19269
  CancelEndOfCycle: "cancel_end_of_cycle",
@@ -19269,28 +19273,22 @@ var MultiUpdateProrationBehavior = {
19269
19273
  ProrateImmediately: "prorate_immediately",
19270
19274
  None: "none"
19271
19275
  };
19272
- var MultiUpdateRefundLastPayment = {
19273
- Prorated: "prorated",
19274
- Full: "full"
19275
- };
19276
19276
  var MultiUpdateCode = {
19277
19277
  ThreedsRequired: "3ds_required",
19278
19278
  PaymentMethodRequired: "payment_method_required",
19279
19279
  PaymentFailed: "payment_failed",
19280
19280
  PaymentProcessing: "payment_processing"
19281
19281
  };
19282
+ var MultiUpdateRefundLastPayment$outboundSchema = z57.enum(MultiUpdateRefundLastPayment);
19282
19283
  var MultiUpdateCancelAction$outboundSchema = z57.enum(MultiUpdateCancelAction);
19283
19284
  var MultiUpdateProrationBehavior$outboundSchema = z57.enum(MultiUpdateProrationBehavior);
19284
- var MultiUpdateRefundLastPayment$outboundSchema = z57.enum(MultiUpdateRefundLastPayment);
19285
19285
  var MultiUpdateUpdate$outboundSchema = z57.pipe(
19286
19286
  z57.object({
19287
19287
  planId: z57.optional(z57.string()),
19288
19288
  subscriptionId: z57.optional(z57.string()),
19289
19289
  entityId: z57.optional(z57.string()),
19290
19290
  cancelAction: MultiUpdateCancelAction$outboundSchema,
19291
- prorationBehavior: z57.optional(MultiUpdateProrationBehavior$outboundSchema),
19292
- refundLastPayment: z57.optional(MultiUpdateRefundLastPayment$outboundSchema),
19293
- subscriptionParams: z57.optional(z57.record(z57.string(), z57.any()))
19291
+ prorationBehavior: z57.optional(MultiUpdateProrationBehavior$outboundSchema)
19294
19292
  }),
19295
19293
  z57.transform((v) => {
19296
19294
  return remap(v, {
@@ -19298,9 +19296,7 @@ var MultiUpdateUpdate$outboundSchema = z57.pipe(
19298
19296
  subscriptionId: "subscription_id",
19299
19297
  entityId: "entity_id",
19300
19298
  cancelAction: "cancel_action",
19301
- prorationBehavior: "proration_behavior",
19302
- refundLastPayment: "refund_last_payment",
19303
- subscriptionParams: "subscription_params"
19299
+ prorationBehavior: "proration_behavior"
19304
19300
  });
19305
19301
  })
19306
19302
  );
@@ -19308,12 +19304,16 @@ var MultiUpdateParams$outboundSchema = z57.pipe(
19308
19304
  z57.object({
19309
19305
  customerId: z57.string(),
19310
19306
  entityId: z57.optional(z57.string()),
19307
+ refundLastPayment: z57.optional(MultiUpdateRefundLastPayment$outboundSchema),
19308
+ subscriptionParams: z57.optional(z57.record(z57.string(), z57.any())),
19311
19309
  updates: z57.array(z57.lazy(() => MultiUpdateUpdate$outboundSchema))
19312
19310
  }),
19313
19311
  z57.transform((v) => {
19314
19312
  return remap(v, {
19315
19313
  customerId: "customer_id",
19316
- entityId: "entity_id"
19314
+ entityId: "entity_id",
19315
+ refundLastPayment: "refund_last_payment",
19316
+ subscriptionParams: "subscription_params"
19317
19317
  });
19318
19318
  })
19319
19319
  );
@@ -21555,6 +21555,10 @@ var PreviewMultiAttachResponse$inboundSchema = z60.pipe(
21555
21555
 
21556
21556
  // ../sdk/src/models/preview-multi-update-op.ts
21557
21557
  var z61 = __toESM(require("zod/v4-mini"), 1);
21558
+ var PreviewMultiUpdateRefundLastPayment = {
21559
+ Prorated: "prorated",
21560
+ Full: "full"
21561
+ };
21558
21562
  var PreviewMultiUpdateCancelAction = {
21559
21563
  CancelImmediately: "cancel_immediately",
21560
21564
  CancelEndOfCycle: "cancel_end_of_cycle",
@@ -21564,13 +21568,9 @@ var PreviewMultiUpdateProrationBehavior = {
21564
21568
  ProrateImmediately: "prorate_immediately",
21565
21569
  None: "none"
21566
21570
  };
21567
- var PreviewMultiUpdateRefundLastPayment = {
21568
- Prorated: "prorated",
21569
- Full: "full"
21570
- };
21571
+ var PreviewMultiUpdateRefundLastPayment$outboundSchema = z61.enum(PreviewMultiUpdateRefundLastPayment);
21571
21572
  var PreviewMultiUpdateCancelAction$outboundSchema = z61.enum(PreviewMultiUpdateCancelAction);
21572
21573
  var PreviewMultiUpdateProrationBehavior$outboundSchema = z61.enum(PreviewMultiUpdateProrationBehavior);
21573
- var PreviewMultiUpdateRefundLastPayment$outboundSchema = z61.enum(PreviewMultiUpdateRefundLastPayment);
21574
21574
  var PreviewMultiUpdateUpdate$outboundSchema = z61.pipe(
21575
21575
  z61.object({
21576
21576
  planId: z61.optional(z61.string()),
@@ -21579,11 +21579,7 @@ var PreviewMultiUpdateUpdate$outboundSchema = z61.pipe(
21579
21579
  cancelAction: PreviewMultiUpdateCancelAction$outboundSchema,
21580
21580
  prorationBehavior: z61.optional(
21581
21581
  PreviewMultiUpdateProrationBehavior$outboundSchema
21582
- ),
21583
- refundLastPayment: z61.optional(
21584
- PreviewMultiUpdateRefundLastPayment$outboundSchema
21585
- ),
21586
- subscriptionParams: z61.optional(z61.record(z61.string(), z61.any()))
21582
+ )
21587
21583
  }),
21588
21584
  z61.transform((v) => {
21589
21585
  return remap(v, {
@@ -21591,9 +21587,7 @@ var PreviewMultiUpdateUpdate$outboundSchema = z61.pipe(
21591
21587
  subscriptionId: "subscription_id",
21592
21588
  entityId: "entity_id",
21593
21589
  cancelAction: "cancel_action",
21594
- prorationBehavior: "proration_behavior",
21595
- refundLastPayment: "refund_last_payment",
21596
- subscriptionParams: "subscription_params"
21590
+ prorationBehavior: "proration_behavior"
21597
21591
  });
21598
21592
  })
21599
21593
  );
@@ -21601,12 +21595,18 @@ var PreviewMultiUpdateParams$outboundSchema = z61.pipe(
21601
21595
  z61.object({
21602
21596
  customerId: z61.string(),
21603
21597
  entityId: z61.optional(z61.string()),
21598
+ refundLastPayment: z61.optional(
21599
+ PreviewMultiUpdateRefundLastPayment$outboundSchema
21600
+ ),
21601
+ subscriptionParams: z61.optional(z61.record(z61.string(), z61.any())),
21604
21602
  updates: z61.array(z61.lazy(() => PreviewMultiUpdateUpdate$outboundSchema))
21605
21603
  }),
21606
21604
  z61.transform((v) => {
21607
21605
  return remap(v, {
21608
21606
  customerId: "customer_id",
21609
- entityId: "entity_id"
21607
+ entityId: "entity_id",
21608
+ refundLastPayment: "refund_last_payment",
21609
+ subscriptionParams: "subscription_params"
21610
21610
  });
21611
21611
  })
21612
21612
  );
@@ -32016,6 +32016,8 @@ var Billing = class extends ClientSDK {
32016
32016
  *
32017
32017
  * @param customerId - The ID of the customer to update plans for.
32018
32018
  * @param entityId - The ID of the entity to update plans for. Individual updates can override this with their own entity_id. (optional)
32019
+ * @param refundLastPayment - Controls how the last payment is refunded on immediate cancellation. 'prorated' refunds the unused portion, 'full' refunds the entire last payment. (optional)
32020
+ * @param subscriptionParams - Additional parameters to pass into the Stripe subscription update or cancel call. (optional)
32019
32021
  * @param updates - The list of plan updates to apply to the customer.
32020
32022
  *
32021
32023
  * @returns A billing response with the resulting invoice summary (one credit invoice per affected subscription for immediate cancels).
@@ -32040,6 +32042,8 @@ var Billing = class extends ClientSDK {
32040
32042
  *
32041
32043
  * @param customerId - The ID of the customer to update plans for.
32042
32044
  * @param entityId - The ID of the entity to update plans for. Individual updates can override this with their own entity_id. (optional)
32045
+ * @param refundLastPayment - Controls how the last payment is refunded on immediate cancellation. 'prorated' refunds the unused portion, 'full' refunds the entire last payment. (optional)
32046
+ * @param subscriptionParams - Additional parameters to pass into the Stripe subscription update or cancel call. (optional)
32043
32047
  * @param updates - The list of plan updates to apply to the customer.
32044
32048
  *
32045
32049
  * @returns A preview with the combined total plus one entry per subscription, each with its own line items, totals, and next-cycle preview.
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  autumnHandler
3
- } from "../chunk-5R5JDXNQ.mjs";
3
+ } from "../chunk-QP3VSL4U.mjs";
4
4
  import "../chunk-WYDGEDEU.mjs";
5
5
  import "../chunk-VXND2UDT.mjs";
6
- import "../chunk-XO4AWWEU.mjs";
7
- import "../chunk-EFTEE2VK.mjs";
8
- import "../chunk-BEXC5ZM2.mjs";
6
+ import "../chunk-HBCBE5EZ.mjs";
7
+ import "../chunk-CTDUPQOB.mjs";
8
+ import "../chunk-Z3CFUICE.mjs";
9
9
  import "../chunk-MOHYGUMA.mjs";
10
10
  import "../chunk-TBQ27LIK.mjs";
11
11
  import "../chunk-J44WR3QZ.mjs";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  createCoreHandler
3
- } from "./chunk-EFTEE2VK.mjs";
3
+ } from "./chunk-CTDUPQOB.mjs";
4
4
 
5
5
  // src/backend/adapters/express.ts
6
6
  function autumnHandler(options) {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Autumn
3
- } from "./chunk-BEXC5ZM2.mjs";
3
+ } from "./chunk-Z3CFUICE.mjs";
4
4
  import {
5
5
  executeRoute
6
6
  } from "./chunk-MOHYGUMA.mjs";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Autumn
3
- } from "./chunk-BEXC5ZM2.mjs";
3
+ } from "./chunk-Z3CFUICE.mjs";
4
4
  import {
5
5
  executeRoute
6
6
  } from "./chunk-MOHYGUMA.mjs";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  createCoreHandler
3
- } from "./chunk-EFTEE2VK.mjs";
3
+ } from "./chunk-CTDUPQOB.mjs";
4
4
 
5
5
  // src/backend/adapters/next.ts
6
6
  import { NextResponse } from "next/server";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  createCoreHandler
3
- } from "./chunk-EFTEE2VK.mjs";
3
+ } from "./chunk-CTDUPQOB.mjs";
4
4
 
5
5
  // src/backend/adapters/fetch.ts
6
6
  function autumnHandler(options) {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  createCoreHandler
3
- } from "./chunk-EFTEE2VK.mjs";
3
+ } from "./chunk-CTDUPQOB.mjs";
4
4
 
5
5
  // src/backend/adapters/hono.ts
6
6
  function autumnHandler(options) {
@@ -19176,6 +19176,10 @@ var MultiAttachResponse$inboundSchema = z56.pipe(
19176
19176
 
19177
19177
  // ../sdk/src/models/multi-update-op.ts
19178
19178
  import * as z57 from "zod/v4-mini";
19179
+ var MultiUpdateRefundLastPayment = {
19180
+ Prorated: "prorated",
19181
+ Full: "full"
19182
+ };
19179
19183
  var MultiUpdateCancelAction = {
19180
19184
  CancelImmediately: "cancel_immediately",
19181
19185
  CancelEndOfCycle: "cancel_end_of_cycle",
@@ -19185,28 +19189,22 @@ var MultiUpdateProrationBehavior = {
19185
19189
  ProrateImmediately: "prorate_immediately",
19186
19190
  None: "none"
19187
19191
  };
19188
- var MultiUpdateRefundLastPayment = {
19189
- Prorated: "prorated",
19190
- Full: "full"
19191
- };
19192
19192
  var MultiUpdateCode = {
19193
19193
  ThreedsRequired: "3ds_required",
19194
19194
  PaymentMethodRequired: "payment_method_required",
19195
19195
  PaymentFailed: "payment_failed",
19196
19196
  PaymentProcessing: "payment_processing"
19197
19197
  };
19198
+ var MultiUpdateRefundLastPayment$outboundSchema = z57.enum(MultiUpdateRefundLastPayment);
19198
19199
  var MultiUpdateCancelAction$outboundSchema = z57.enum(MultiUpdateCancelAction);
19199
19200
  var MultiUpdateProrationBehavior$outboundSchema = z57.enum(MultiUpdateProrationBehavior);
19200
- var MultiUpdateRefundLastPayment$outboundSchema = z57.enum(MultiUpdateRefundLastPayment);
19201
19201
  var MultiUpdateUpdate$outboundSchema = z57.pipe(
19202
19202
  z57.object({
19203
19203
  planId: z57.optional(z57.string()),
19204
19204
  subscriptionId: z57.optional(z57.string()),
19205
19205
  entityId: z57.optional(z57.string()),
19206
19206
  cancelAction: MultiUpdateCancelAction$outboundSchema,
19207
- prorationBehavior: z57.optional(MultiUpdateProrationBehavior$outboundSchema),
19208
- refundLastPayment: z57.optional(MultiUpdateRefundLastPayment$outboundSchema),
19209
- subscriptionParams: z57.optional(z57.record(z57.string(), z57.any()))
19207
+ prorationBehavior: z57.optional(MultiUpdateProrationBehavior$outboundSchema)
19210
19208
  }),
19211
19209
  z57.transform((v) => {
19212
19210
  return remap(v, {
@@ -19214,9 +19212,7 @@ var MultiUpdateUpdate$outboundSchema = z57.pipe(
19214
19212
  subscriptionId: "subscription_id",
19215
19213
  entityId: "entity_id",
19216
19214
  cancelAction: "cancel_action",
19217
- prorationBehavior: "proration_behavior",
19218
- refundLastPayment: "refund_last_payment",
19219
- subscriptionParams: "subscription_params"
19215
+ prorationBehavior: "proration_behavior"
19220
19216
  });
19221
19217
  })
19222
19218
  );
@@ -19224,12 +19220,16 @@ var MultiUpdateParams$outboundSchema = z57.pipe(
19224
19220
  z57.object({
19225
19221
  customerId: z57.string(),
19226
19222
  entityId: z57.optional(z57.string()),
19223
+ refundLastPayment: z57.optional(MultiUpdateRefundLastPayment$outboundSchema),
19224
+ subscriptionParams: z57.optional(z57.record(z57.string(), z57.any())),
19227
19225
  updates: z57.array(z57.lazy(() => MultiUpdateUpdate$outboundSchema))
19228
19226
  }),
19229
19227
  z57.transform((v) => {
19230
19228
  return remap(v, {
19231
19229
  customerId: "customer_id",
19232
- entityId: "entity_id"
19230
+ entityId: "entity_id",
19231
+ refundLastPayment: "refund_last_payment",
19232
+ subscriptionParams: "subscription_params"
19233
19233
  });
19234
19234
  })
19235
19235
  );
@@ -21471,6 +21471,10 @@ var PreviewMultiAttachResponse$inboundSchema = z60.pipe(
21471
21471
 
21472
21472
  // ../sdk/src/models/preview-multi-update-op.ts
21473
21473
  import * as z61 from "zod/v4-mini";
21474
+ var PreviewMultiUpdateRefundLastPayment = {
21475
+ Prorated: "prorated",
21476
+ Full: "full"
21477
+ };
21474
21478
  var PreviewMultiUpdateCancelAction = {
21475
21479
  CancelImmediately: "cancel_immediately",
21476
21480
  CancelEndOfCycle: "cancel_end_of_cycle",
@@ -21480,13 +21484,9 @@ var PreviewMultiUpdateProrationBehavior = {
21480
21484
  ProrateImmediately: "prorate_immediately",
21481
21485
  None: "none"
21482
21486
  };
21483
- var PreviewMultiUpdateRefundLastPayment = {
21484
- Prorated: "prorated",
21485
- Full: "full"
21486
- };
21487
+ var PreviewMultiUpdateRefundLastPayment$outboundSchema = z61.enum(PreviewMultiUpdateRefundLastPayment);
21487
21488
  var PreviewMultiUpdateCancelAction$outboundSchema = z61.enum(PreviewMultiUpdateCancelAction);
21488
21489
  var PreviewMultiUpdateProrationBehavior$outboundSchema = z61.enum(PreviewMultiUpdateProrationBehavior);
21489
- var PreviewMultiUpdateRefundLastPayment$outboundSchema = z61.enum(PreviewMultiUpdateRefundLastPayment);
21490
21490
  var PreviewMultiUpdateUpdate$outboundSchema = z61.pipe(
21491
21491
  z61.object({
21492
21492
  planId: z61.optional(z61.string()),
@@ -21495,11 +21495,7 @@ var PreviewMultiUpdateUpdate$outboundSchema = z61.pipe(
21495
21495
  cancelAction: PreviewMultiUpdateCancelAction$outboundSchema,
21496
21496
  prorationBehavior: z61.optional(
21497
21497
  PreviewMultiUpdateProrationBehavior$outboundSchema
21498
- ),
21499
- refundLastPayment: z61.optional(
21500
- PreviewMultiUpdateRefundLastPayment$outboundSchema
21501
- ),
21502
- subscriptionParams: z61.optional(z61.record(z61.string(), z61.any()))
21498
+ )
21503
21499
  }),
21504
21500
  z61.transform((v) => {
21505
21501
  return remap(v, {
@@ -21507,9 +21503,7 @@ var PreviewMultiUpdateUpdate$outboundSchema = z61.pipe(
21507
21503
  subscriptionId: "subscription_id",
21508
21504
  entityId: "entity_id",
21509
21505
  cancelAction: "cancel_action",
21510
- prorationBehavior: "proration_behavior",
21511
- refundLastPayment: "refund_last_payment",
21512
- subscriptionParams: "subscription_params"
21506
+ prorationBehavior: "proration_behavior"
21513
21507
  });
21514
21508
  })
21515
21509
  );
@@ -21517,12 +21511,18 @@ var PreviewMultiUpdateParams$outboundSchema = z61.pipe(
21517
21511
  z61.object({
21518
21512
  customerId: z61.string(),
21519
21513
  entityId: z61.optional(z61.string()),
21514
+ refundLastPayment: z61.optional(
21515
+ PreviewMultiUpdateRefundLastPayment$outboundSchema
21516
+ ),
21517
+ subscriptionParams: z61.optional(z61.record(z61.string(), z61.any())),
21520
21518
  updates: z61.array(z61.lazy(() => PreviewMultiUpdateUpdate$outboundSchema))
21521
21519
  }),
21522
21520
  z61.transform((v) => {
21523
21521
  return remap(v, {
21524
21522
  customerId: "customer_id",
21525
- entityId: "entity_id"
21523
+ entityId: "entity_id",
21524
+ refundLastPayment: "refund_last_payment",
21525
+ subscriptionParams: "subscription_params"
21526
21526
  });
21527
21527
  })
21528
21528
  );
@@ -31960,6 +31960,8 @@ var Billing = class extends ClientSDK {
31960
31960
  *
31961
31961
  * @param customerId - The ID of the customer to update plans for.
31962
31962
  * @param entityId - The ID of the entity to update plans for. Individual updates can override this with their own entity_id. (optional)
31963
+ * @param refundLastPayment - Controls how the last payment is refunded on immediate cancellation. 'prorated' refunds the unused portion, 'full' refunds the entire last payment. (optional)
31964
+ * @param subscriptionParams - Additional parameters to pass into the Stripe subscription update or cancel call. (optional)
31963
31965
  * @param updates - The list of plan updates to apply to the customer.
31964
31966
  *
31965
31967
  * @returns A billing response with the resulting invoice summary (one credit invoice per affected subscription for immediate cancels).
@@ -31984,6 +31986,8 @@ var Billing = class extends ClientSDK {
31984
31986
  *
31985
31987
  * @param customerId - The ID of the customer to update plans for.
31986
31988
  * @param entityId - The ID of the entity to update plans for. Individual updates can override this with their own entity_id. (optional)
31989
+ * @param refundLastPayment - Controls how the last payment is refunded on immediate cancellation. 'prorated' refunds the unused portion, 'full' refunds the entire last payment. (optional)
31990
+ * @param subscriptionParams - Additional parameters to pass into the Stripe subscription update or cancel call. (optional)
31987
31991
  * @param updates - The list of plan updates to apply to the customer.
31988
31992
  *
31989
31993
  * @returns A preview with the combined total plus one entry per subscription, each with its own line items, totals, and next-cycle preview.
@@ -1,6 +1,6 @@
1
1
  import { CoreHandlerOptions, UnifiedRequest, UnifiedResponse } from '../types/handlerTypes.mjs';
2
2
  import '../../authTypes-DiM2aken.mjs';
3
- import '../../routeTypes-Ds9TlNC5.mjs';
3
+ import '../../routeTypes-BDnJulPJ.mjs';
4
4
  import 'zod/v4';
5
5
  import '../utils/sanitizeBody.mjs';
6
6
  import '../types/responseTypes.mjs';
@@ -1,6 +1,6 @@
1
1
  import { CoreHandlerOptions, UnifiedRequest, UnifiedResponse } from '../types/handlerTypes.js';
2
2
  import '../../authTypes-DiM2aken.js';
3
- import '../../routeTypes-9Ae0ZeQl.js';
3
+ import '../../routeTypes-Cx-p8x5O.js';
4
4
  import 'zod/v4';
5
5
  import '../utils/sanitizeBody.js';
6
6
  import '../types/responseTypes.js';