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
@@ -19259,6 +19259,10 @@ var MultiAttachResponse$inboundSchema = z56.pipe(
19259
19259
 
19260
19260
  // ../sdk/src/models/multi-update-op.ts
19261
19261
  var z57 = __toESM(require("zod/v4-mini"), 1);
19262
+ var MultiUpdateRefundLastPayment = {
19263
+ Prorated: "prorated",
19264
+ Full: "full"
19265
+ };
19262
19266
  var MultiUpdateCancelAction = {
19263
19267
  CancelImmediately: "cancel_immediately",
19264
19268
  CancelEndOfCycle: "cancel_end_of_cycle",
@@ -19268,28 +19272,22 @@ var MultiUpdateProrationBehavior = {
19268
19272
  ProrateImmediately: "prorate_immediately",
19269
19273
  None: "none"
19270
19274
  };
19271
- var MultiUpdateRefundLastPayment = {
19272
- Prorated: "prorated",
19273
- Full: "full"
19274
- };
19275
19275
  var MultiUpdateCode = {
19276
19276
  ThreedsRequired: "3ds_required",
19277
19277
  PaymentMethodRequired: "payment_method_required",
19278
19278
  PaymentFailed: "payment_failed",
19279
19279
  PaymentProcessing: "payment_processing"
19280
19280
  };
19281
+ var MultiUpdateRefundLastPayment$outboundSchema = z57.enum(MultiUpdateRefundLastPayment);
19281
19282
  var MultiUpdateCancelAction$outboundSchema = z57.enum(MultiUpdateCancelAction);
19282
19283
  var MultiUpdateProrationBehavior$outboundSchema = z57.enum(MultiUpdateProrationBehavior);
19283
- var MultiUpdateRefundLastPayment$outboundSchema = z57.enum(MultiUpdateRefundLastPayment);
19284
19284
  var MultiUpdateUpdate$outboundSchema = z57.pipe(
19285
19285
  z57.object({
19286
19286
  planId: z57.optional(z57.string()),
19287
19287
  subscriptionId: z57.optional(z57.string()),
19288
19288
  entityId: z57.optional(z57.string()),
19289
19289
  cancelAction: MultiUpdateCancelAction$outboundSchema,
19290
- prorationBehavior: z57.optional(MultiUpdateProrationBehavior$outboundSchema),
19291
- refundLastPayment: z57.optional(MultiUpdateRefundLastPayment$outboundSchema),
19292
- subscriptionParams: z57.optional(z57.record(z57.string(), z57.any()))
19290
+ prorationBehavior: z57.optional(MultiUpdateProrationBehavior$outboundSchema)
19293
19291
  }),
19294
19292
  z57.transform((v) => {
19295
19293
  return remap(v, {
@@ -19297,9 +19295,7 @@ var MultiUpdateUpdate$outboundSchema = z57.pipe(
19297
19295
  subscriptionId: "subscription_id",
19298
19296
  entityId: "entity_id",
19299
19297
  cancelAction: "cancel_action",
19300
- prorationBehavior: "proration_behavior",
19301
- refundLastPayment: "refund_last_payment",
19302
- subscriptionParams: "subscription_params"
19298
+ prorationBehavior: "proration_behavior"
19303
19299
  });
19304
19300
  })
19305
19301
  );
@@ -19307,12 +19303,16 @@ var MultiUpdateParams$outboundSchema = z57.pipe(
19307
19303
  z57.object({
19308
19304
  customerId: z57.string(),
19309
19305
  entityId: z57.optional(z57.string()),
19306
+ refundLastPayment: z57.optional(MultiUpdateRefundLastPayment$outboundSchema),
19307
+ subscriptionParams: z57.optional(z57.record(z57.string(), z57.any())),
19310
19308
  updates: z57.array(z57.lazy(() => MultiUpdateUpdate$outboundSchema))
19311
19309
  }),
19312
19310
  z57.transform((v) => {
19313
19311
  return remap(v, {
19314
19312
  customerId: "customer_id",
19315
- entityId: "entity_id"
19313
+ entityId: "entity_id",
19314
+ refundLastPayment: "refund_last_payment",
19315
+ subscriptionParams: "subscription_params"
19316
19316
  });
19317
19317
  })
19318
19318
  );
@@ -21554,6 +21554,10 @@ var PreviewMultiAttachResponse$inboundSchema = z60.pipe(
21554
21554
 
21555
21555
  // ../sdk/src/models/preview-multi-update-op.ts
21556
21556
  var z61 = __toESM(require("zod/v4-mini"), 1);
21557
+ var PreviewMultiUpdateRefundLastPayment = {
21558
+ Prorated: "prorated",
21559
+ Full: "full"
21560
+ };
21557
21561
  var PreviewMultiUpdateCancelAction = {
21558
21562
  CancelImmediately: "cancel_immediately",
21559
21563
  CancelEndOfCycle: "cancel_end_of_cycle",
@@ -21563,13 +21567,9 @@ var PreviewMultiUpdateProrationBehavior = {
21563
21567
  ProrateImmediately: "prorate_immediately",
21564
21568
  None: "none"
21565
21569
  };
21566
- var PreviewMultiUpdateRefundLastPayment = {
21567
- Prorated: "prorated",
21568
- Full: "full"
21569
- };
21570
+ var PreviewMultiUpdateRefundLastPayment$outboundSchema = z61.enum(PreviewMultiUpdateRefundLastPayment);
21570
21571
  var PreviewMultiUpdateCancelAction$outboundSchema = z61.enum(PreviewMultiUpdateCancelAction);
21571
21572
  var PreviewMultiUpdateProrationBehavior$outboundSchema = z61.enum(PreviewMultiUpdateProrationBehavior);
21572
- var PreviewMultiUpdateRefundLastPayment$outboundSchema = z61.enum(PreviewMultiUpdateRefundLastPayment);
21573
21573
  var PreviewMultiUpdateUpdate$outboundSchema = z61.pipe(
21574
21574
  z61.object({
21575
21575
  planId: z61.optional(z61.string()),
@@ -21578,11 +21578,7 @@ var PreviewMultiUpdateUpdate$outboundSchema = z61.pipe(
21578
21578
  cancelAction: PreviewMultiUpdateCancelAction$outboundSchema,
21579
21579
  prorationBehavior: z61.optional(
21580
21580
  PreviewMultiUpdateProrationBehavior$outboundSchema
21581
- ),
21582
- refundLastPayment: z61.optional(
21583
- PreviewMultiUpdateRefundLastPayment$outboundSchema
21584
- ),
21585
- subscriptionParams: z61.optional(z61.record(z61.string(), z61.any()))
21581
+ )
21586
21582
  }),
21587
21583
  z61.transform((v) => {
21588
21584
  return remap(v, {
@@ -21590,9 +21586,7 @@ var PreviewMultiUpdateUpdate$outboundSchema = z61.pipe(
21590
21586
  subscriptionId: "subscription_id",
21591
21587
  entityId: "entity_id",
21592
21588
  cancelAction: "cancel_action",
21593
- prorationBehavior: "proration_behavior",
21594
- refundLastPayment: "refund_last_payment",
21595
- subscriptionParams: "subscription_params"
21589
+ prorationBehavior: "proration_behavior"
21596
21590
  });
21597
21591
  })
21598
21592
  );
@@ -21600,12 +21594,18 @@ var PreviewMultiUpdateParams$outboundSchema = z61.pipe(
21600
21594
  z61.object({
21601
21595
  customerId: z61.string(),
21602
21596
  entityId: z61.optional(z61.string()),
21597
+ refundLastPayment: z61.optional(
21598
+ PreviewMultiUpdateRefundLastPayment$outboundSchema
21599
+ ),
21600
+ subscriptionParams: z61.optional(z61.record(z61.string(), z61.any())),
21603
21601
  updates: z61.array(z61.lazy(() => PreviewMultiUpdateUpdate$outboundSchema))
21604
21602
  }),
21605
21603
  z61.transform((v) => {
21606
21604
  return remap(v, {
21607
21605
  customerId: "customer_id",
21608
- entityId: "entity_id"
21606
+ entityId: "entity_id",
21607
+ refundLastPayment: "refund_last_payment",
21608
+ subscriptionParams: "subscription_params"
21609
21609
  });
21610
21610
  })
21611
21611
  );
@@ -32015,6 +32015,8 @@ var Billing = class extends ClientSDK {
32015
32015
  *
32016
32016
  * @param customerId - The ID of the customer to update plans for.
32017
32017
  * @param entityId - The ID of the entity to update plans for. Individual updates can override this with their own entity_id. (optional)
32018
+ * @param refundLastPayment - Controls how the last payment is refunded on immediate cancellation. 'prorated' refunds the unused portion, 'full' refunds the entire last payment. (optional)
32019
+ * @param subscriptionParams - Additional parameters to pass into the Stripe subscription update or cancel call. (optional)
32018
32020
  * @param updates - The list of plan updates to apply to the customer.
32019
32021
  *
32020
32022
  * @returns A billing response with the resulting invoice summary (one credit invoice per affected subscription for immediate cancels).
@@ -32039,6 +32041,8 @@ var Billing = class extends ClientSDK {
32039
32041
  *
32040
32042
  * @param customerId - The ID of the customer to update plans for.
32041
32043
  * @param entityId - The ID of the entity to update plans for. Individual updates can override this with their own entity_id. (optional)
32044
+ * @param refundLastPayment - Controls how the last payment is refunded on immediate cancellation. 'prorated' refunds the unused portion, 'full' refunds the entire last payment. (optional)
32045
+ * @param subscriptionParams - Additional parameters to pass into the Stripe subscription update or cancel call. (optional)
32042
32046
  * @param updates - The list of plan updates to apply to the customer.
32043
32047
  *
32044
32048
  * @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-S4KKO3MH.mjs";
3
+ } from "../chunk-6O2BRQQG.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";
@@ -19259,6 +19259,10 @@ var MultiAttachResponse$inboundSchema = z56.pipe(
19259
19259
 
19260
19260
  // ../sdk/src/models/multi-update-op.ts
19261
19261
  var z57 = __toESM(require("zod/v4-mini"), 1);
19262
+ var MultiUpdateRefundLastPayment = {
19263
+ Prorated: "prorated",
19264
+ Full: "full"
19265
+ };
19262
19266
  var MultiUpdateCancelAction = {
19263
19267
  CancelImmediately: "cancel_immediately",
19264
19268
  CancelEndOfCycle: "cancel_end_of_cycle",
@@ -19268,28 +19272,22 @@ var MultiUpdateProrationBehavior = {
19268
19272
  ProrateImmediately: "prorate_immediately",
19269
19273
  None: "none"
19270
19274
  };
19271
- var MultiUpdateRefundLastPayment = {
19272
- Prorated: "prorated",
19273
- Full: "full"
19274
- };
19275
19275
  var MultiUpdateCode = {
19276
19276
  ThreedsRequired: "3ds_required",
19277
19277
  PaymentMethodRequired: "payment_method_required",
19278
19278
  PaymentFailed: "payment_failed",
19279
19279
  PaymentProcessing: "payment_processing"
19280
19280
  };
19281
+ var MultiUpdateRefundLastPayment$outboundSchema = z57.enum(MultiUpdateRefundLastPayment);
19281
19282
  var MultiUpdateCancelAction$outboundSchema = z57.enum(MultiUpdateCancelAction);
19282
19283
  var MultiUpdateProrationBehavior$outboundSchema = z57.enum(MultiUpdateProrationBehavior);
19283
- var MultiUpdateRefundLastPayment$outboundSchema = z57.enum(MultiUpdateRefundLastPayment);
19284
19284
  var MultiUpdateUpdate$outboundSchema = z57.pipe(
19285
19285
  z57.object({
19286
19286
  planId: z57.optional(z57.string()),
19287
19287
  subscriptionId: z57.optional(z57.string()),
19288
19288
  entityId: z57.optional(z57.string()),
19289
19289
  cancelAction: MultiUpdateCancelAction$outboundSchema,
19290
- prorationBehavior: z57.optional(MultiUpdateProrationBehavior$outboundSchema),
19291
- refundLastPayment: z57.optional(MultiUpdateRefundLastPayment$outboundSchema),
19292
- subscriptionParams: z57.optional(z57.record(z57.string(), z57.any()))
19290
+ prorationBehavior: z57.optional(MultiUpdateProrationBehavior$outboundSchema)
19293
19291
  }),
19294
19292
  z57.transform((v) => {
19295
19293
  return remap(v, {
@@ -19297,9 +19295,7 @@ var MultiUpdateUpdate$outboundSchema = z57.pipe(
19297
19295
  subscriptionId: "subscription_id",
19298
19296
  entityId: "entity_id",
19299
19297
  cancelAction: "cancel_action",
19300
- prorationBehavior: "proration_behavior",
19301
- refundLastPayment: "refund_last_payment",
19302
- subscriptionParams: "subscription_params"
19298
+ prorationBehavior: "proration_behavior"
19303
19299
  });
19304
19300
  })
19305
19301
  );
@@ -19307,12 +19303,16 @@ var MultiUpdateParams$outboundSchema = z57.pipe(
19307
19303
  z57.object({
19308
19304
  customerId: z57.string(),
19309
19305
  entityId: z57.optional(z57.string()),
19306
+ refundLastPayment: z57.optional(MultiUpdateRefundLastPayment$outboundSchema),
19307
+ subscriptionParams: z57.optional(z57.record(z57.string(), z57.any())),
19310
19308
  updates: z57.array(z57.lazy(() => MultiUpdateUpdate$outboundSchema))
19311
19309
  }),
19312
19310
  z57.transform((v) => {
19313
19311
  return remap(v, {
19314
19312
  customerId: "customer_id",
19315
- entityId: "entity_id"
19313
+ entityId: "entity_id",
19314
+ refundLastPayment: "refund_last_payment",
19315
+ subscriptionParams: "subscription_params"
19316
19316
  });
19317
19317
  })
19318
19318
  );
@@ -21554,6 +21554,10 @@ var PreviewMultiAttachResponse$inboundSchema = z60.pipe(
21554
21554
 
21555
21555
  // ../sdk/src/models/preview-multi-update-op.ts
21556
21556
  var z61 = __toESM(require("zod/v4-mini"), 1);
21557
+ var PreviewMultiUpdateRefundLastPayment = {
21558
+ Prorated: "prorated",
21559
+ Full: "full"
21560
+ };
21557
21561
  var PreviewMultiUpdateCancelAction = {
21558
21562
  CancelImmediately: "cancel_immediately",
21559
21563
  CancelEndOfCycle: "cancel_end_of_cycle",
@@ -21563,13 +21567,9 @@ var PreviewMultiUpdateProrationBehavior = {
21563
21567
  ProrateImmediately: "prorate_immediately",
21564
21568
  None: "none"
21565
21569
  };
21566
- var PreviewMultiUpdateRefundLastPayment = {
21567
- Prorated: "prorated",
21568
- Full: "full"
21569
- };
21570
+ var PreviewMultiUpdateRefundLastPayment$outboundSchema = z61.enum(PreviewMultiUpdateRefundLastPayment);
21570
21571
  var PreviewMultiUpdateCancelAction$outboundSchema = z61.enum(PreviewMultiUpdateCancelAction);
21571
21572
  var PreviewMultiUpdateProrationBehavior$outboundSchema = z61.enum(PreviewMultiUpdateProrationBehavior);
21572
- var PreviewMultiUpdateRefundLastPayment$outboundSchema = z61.enum(PreviewMultiUpdateRefundLastPayment);
21573
21573
  var PreviewMultiUpdateUpdate$outboundSchema = z61.pipe(
21574
21574
  z61.object({
21575
21575
  planId: z61.optional(z61.string()),
@@ -21578,11 +21578,7 @@ var PreviewMultiUpdateUpdate$outboundSchema = z61.pipe(
21578
21578
  cancelAction: PreviewMultiUpdateCancelAction$outboundSchema,
21579
21579
  prorationBehavior: z61.optional(
21580
21580
  PreviewMultiUpdateProrationBehavior$outboundSchema
21581
- ),
21582
- refundLastPayment: z61.optional(
21583
- PreviewMultiUpdateRefundLastPayment$outboundSchema
21584
- ),
21585
- subscriptionParams: z61.optional(z61.record(z61.string(), z61.any()))
21581
+ )
21586
21582
  }),
21587
21583
  z61.transform((v) => {
21588
21584
  return remap(v, {
@@ -21590,9 +21586,7 @@ var PreviewMultiUpdateUpdate$outboundSchema = z61.pipe(
21590
21586
  subscriptionId: "subscription_id",
21591
21587
  entityId: "entity_id",
21592
21588
  cancelAction: "cancel_action",
21593
- prorationBehavior: "proration_behavior",
21594
- refundLastPayment: "refund_last_payment",
21595
- subscriptionParams: "subscription_params"
21589
+ prorationBehavior: "proration_behavior"
21596
21590
  });
21597
21591
  })
21598
21592
  );
@@ -21600,12 +21594,18 @@ var PreviewMultiUpdateParams$outboundSchema = z61.pipe(
21600
21594
  z61.object({
21601
21595
  customerId: z61.string(),
21602
21596
  entityId: z61.optional(z61.string()),
21597
+ refundLastPayment: z61.optional(
21598
+ PreviewMultiUpdateRefundLastPayment$outboundSchema
21599
+ ),
21600
+ subscriptionParams: z61.optional(z61.record(z61.string(), z61.any())),
21603
21601
  updates: z61.array(z61.lazy(() => PreviewMultiUpdateUpdate$outboundSchema))
21604
21602
  }),
21605
21603
  z61.transform((v) => {
21606
21604
  return remap(v, {
21607
21605
  customerId: "customer_id",
21608
- entityId: "entity_id"
21606
+ entityId: "entity_id",
21607
+ refundLastPayment: "refund_last_payment",
21608
+ subscriptionParams: "subscription_params"
21609
21609
  });
21610
21610
  })
21611
21611
  );
@@ -32015,6 +32015,8 @@ var Billing = class extends ClientSDK {
32015
32015
  *
32016
32016
  * @param customerId - The ID of the customer to update plans for.
32017
32017
  * @param entityId - The ID of the entity to update plans for. Individual updates can override this with their own entity_id. (optional)
32018
+ * @param refundLastPayment - Controls how the last payment is refunded on immediate cancellation. 'prorated' refunds the unused portion, 'full' refunds the entire last payment. (optional)
32019
+ * @param subscriptionParams - Additional parameters to pass into the Stripe subscription update or cancel call. (optional)
32018
32020
  * @param updates - The list of plan updates to apply to the customer.
32019
32021
  *
32020
32022
  * @returns A billing response with the resulting invoice summary (one credit invoice per affected subscription for immediate cancels).
@@ -32039,6 +32041,8 @@ var Billing = class extends ClientSDK {
32039
32041
  *
32040
32042
  * @param customerId - The ID of the customer to update plans for.
32041
32043
  * @param entityId - The ID of the entity to update plans for. Individual updates can override this with their own entity_id. (optional)
32044
+ * @param refundLastPayment - Controls how the last payment is refunded on immediate cancellation. 'prorated' refunds the unused portion, 'full' refunds the entire last payment. (optional)
32045
+ * @param subscriptionParams - Additional parameters to pass into the Stripe subscription update or cancel call. (optional)
32042
32046
  * @param updates - The list of plan updates to apply to the customer.
32043
32047
  *
32044
32048
  * @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-WPFSB4GC.mjs";
3
+ } from "../chunk-V6O5INQW.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";
@@ -19259,6 +19259,10 @@ var MultiAttachResponse$inboundSchema = z56.pipe(
19259
19259
 
19260
19260
  // ../sdk/src/models/multi-update-op.ts
19261
19261
  var z57 = __toESM(require("zod/v4-mini"), 1);
19262
+ var MultiUpdateRefundLastPayment = {
19263
+ Prorated: "prorated",
19264
+ Full: "full"
19265
+ };
19262
19266
  var MultiUpdateCancelAction = {
19263
19267
  CancelImmediately: "cancel_immediately",
19264
19268
  CancelEndOfCycle: "cancel_end_of_cycle",
@@ -19268,28 +19272,22 @@ var MultiUpdateProrationBehavior = {
19268
19272
  ProrateImmediately: "prorate_immediately",
19269
19273
  None: "none"
19270
19274
  };
19271
- var MultiUpdateRefundLastPayment = {
19272
- Prorated: "prorated",
19273
- Full: "full"
19274
- };
19275
19275
  var MultiUpdateCode = {
19276
19276
  ThreedsRequired: "3ds_required",
19277
19277
  PaymentMethodRequired: "payment_method_required",
19278
19278
  PaymentFailed: "payment_failed",
19279
19279
  PaymentProcessing: "payment_processing"
19280
19280
  };
19281
+ var MultiUpdateRefundLastPayment$outboundSchema = z57.enum(MultiUpdateRefundLastPayment);
19281
19282
  var MultiUpdateCancelAction$outboundSchema = z57.enum(MultiUpdateCancelAction);
19282
19283
  var MultiUpdateProrationBehavior$outboundSchema = z57.enum(MultiUpdateProrationBehavior);
19283
- var MultiUpdateRefundLastPayment$outboundSchema = z57.enum(MultiUpdateRefundLastPayment);
19284
19284
  var MultiUpdateUpdate$outboundSchema = z57.pipe(
19285
19285
  z57.object({
19286
19286
  planId: z57.optional(z57.string()),
19287
19287
  subscriptionId: z57.optional(z57.string()),
19288
19288
  entityId: z57.optional(z57.string()),
19289
19289
  cancelAction: MultiUpdateCancelAction$outboundSchema,
19290
- prorationBehavior: z57.optional(MultiUpdateProrationBehavior$outboundSchema),
19291
- refundLastPayment: z57.optional(MultiUpdateRefundLastPayment$outboundSchema),
19292
- subscriptionParams: z57.optional(z57.record(z57.string(), z57.any()))
19290
+ prorationBehavior: z57.optional(MultiUpdateProrationBehavior$outboundSchema)
19293
19291
  }),
19294
19292
  z57.transform((v) => {
19295
19293
  return remap(v, {
@@ -19297,9 +19295,7 @@ var MultiUpdateUpdate$outboundSchema = z57.pipe(
19297
19295
  subscriptionId: "subscription_id",
19298
19296
  entityId: "entity_id",
19299
19297
  cancelAction: "cancel_action",
19300
- prorationBehavior: "proration_behavior",
19301
- refundLastPayment: "refund_last_payment",
19302
- subscriptionParams: "subscription_params"
19298
+ prorationBehavior: "proration_behavior"
19303
19299
  });
19304
19300
  })
19305
19301
  );
@@ -19307,12 +19303,16 @@ var MultiUpdateParams$outboundSchema = z57.pipe(
19307
19303
  z57.object({
19308
19304
  customerId: z57.string(),
19309
19305
  entityId: z57.optional(z57.string()),
19306
+ refundLastPayment: z57.optional(MultiUpdateRefundLastPayment$outboundSchema),
19307
+ subscriptionParams: z57.optional(z57.record(z57.string(), z57.any())),
19310
19308
  updates: z57.array(z57.lazy(() => MultiUpdateUpdate$outboundSchema))
19311
19309
  }),
19312
19310
  z57.transform((v) => {
19313
19311
  return remap(v, {
19314
19312
  customerId: "customer_id",
19315
- entityId: "entity_id"
19313
+ entityId: "entity_id",
19314
+ refundLastPayment: "refund_last_payment",
19315
+ subscriptionParams: "subscription_params"
19316
19316
  });
19317
19317
  })
19318
19318
  );
@@ -21554,6 +21554,10 @@ var PreviewMultiAttachResponse$inboundSchema = z60.pipe(
21554
21554
 
21555
21555
  // ../sdk/src/models/preview-multi-update-op.ts
21556
21556
  var z61 = __toESM(require("zod/v4-mini"), 1);
21557
+ var PreviewMultiUpdateRefundLastPayment = {
21558
+ Prorated: "prorated",
21559
+ Full: "full"
21560
+ };
21557
21561
  var PreviewMultiUpdateCancelAction = {
21558
21562
  CancelImmediately: "cancel_immediately",
21559
21563
  CancelEndOfCycle: "cancel_end_of_cycle",
@@ -21563,13 +21567,9 @@ var PreviewMultiUpdateProrationBehavior = {
21563
21567
  ProrateImmediately: "prorate_immediately",
21564
21568
  None: "none"
21565
21569
  };
21566
- var PreviewMultiUpdateRefundLastPayment = {
21567
- Prorated: "prorated",
21568
- Full: "full"
21569
- };
21570
+ var PreviewMultiUpdateRefundLastPayment$outboundSchema = z61.enum(PreviewMultiUpdateRefundLastPayment);
21570
21571
  var PreviewMultiUpdateCancelAction$outboundSchema = z61.enum(PreviewMultiUpdateCancelAction);
21571
21572
  var PreviewMultiUpdateProrationBehavior$outboundSchema = z61.enum(PreviewMultiUpdateProrationBehavior);
21572
- var PreviewMultiUpdateRefundLastPayment$outboundSchema = z61.enum(PreviewMultiUpdateRefundLastPayment);
21573
21573
  var PreviewMultiUpdateUpdate$outboundSchema = z61.pipe(
21574
21574
  z61.object({
21575
21575
  planId: z61.optional(z61.string()),
@@ -21578,11 +21578,7 @@ var PreviewMultiUpdateUpdate$outboundSchema = z61.pipe(
21578
21578
  cancelAction: PreviewMultiUpdateCancelAction$outboundSchema,
21579
21579
  prorationBehavior: z61.optional(
21580
21580
  PreviewMultiUpdateProrationBehavior$outboundSchema
21581
- ),
21582
- refundLastPayment: z61.optional(
21583
- PreviewMultiUpdateRefundLastPayment$outboundSchema
21584
- ),
21585
- subscriptionParams: z61.optional(z61.record(z61.string(), z61.any()))
21581
+ )
21586
21582
  }),
21587
21583
  z61.transform((v) => {
21588
21584
  return remap(v, {
@@ -21590,9 +21586,7 @@ var PreviewMultiUpdateUpdate$outboundSchema = z61.pipe(
21590
21586
  subscriptionId: "subscription_id",
21591
21587
  entityId: "entity_id",
21592
21588
  cancelAction: "cancel_action",
21593
- prorationBehavior: "proration_behavior",
21594
- refundLastPayment: "refund_last_payment",
21595
- subscriptionParams: "subscription_params"
21589
+ prorationBehavior: "proration_behavior"
21596
21590
  });
21597
21591
  })
21598
21592
  );
@@ -21600,12 +21594,18 @@ var PreviewMultiUpdateParams$outboundSchema = z61.pipe(
21600
21594
  z61.object({
21601
21595
  customerId: z61.string(),
21602
21596
  entityId: z61.optional(z61.string()),
21597
+ refundLastPayment: z61.optional(
21598
+ PreviewMultiUpdateRefundLastPayment$outboundSchema
21599
+ ),
21600
+ subscriptionParams: z61.optional(z61.record(z61.string(), z61.any())),
21603
21601
  updates: z61.array(z61.lazy(() => PreviewMultiUpdateUpdate$outboundSchema))
21604
21602
  }),
21605
21603
  z61.transform((v) => {
21606
21604
  return remap(v, {
21607
21605
  customerId: "customer_id",
21608
- entityId: "entity_id"
21606
+ entityId: "entity_id",
21607
+ refundLastPayment: "refund_last_payment",
21608
+ subscriptionParams: "subscription_params"
21609
21609
  });
21610
21610
  })
21611
21611
  );
@@ -32015,6 +32015,8 @@ var Billing = class extends ClientSDK {
32015
32015
  *
32016
32016
  * @param customerId - The ID of the customer to update plans for.
32017
32017
  * @param entityId - The ID of the entity to update plans for. Individual updates can override this with their own entity_id. (optional)
32018
+ * @param refundLastPayment - Controls how the last payment is refunded on immediate cancellation. 'prorated' refunds the unused portion, 'full' refunds the entire last payment. (optional)
32019
+ * @param subscriptionParams - Additional parameters to pass into the Stripe subscription update or cancel call. (optional)
32018
32020
  * @param updates - The list of plan updates to apply to the customer.
32019
32021
  *
32020
32022
  * @returns A billing response with the resulting invoice summary (one credit invoice per affected subscription for immediate cancels).
@@ -32039,6 +32041,8 @@ var Billing = class extends ClientSDK {
32039
32041
  *
32040
32042
  * @param customerId - The ID of the customer to update plans for.
32041
32043
  * @param entityId - The ID of the entity to update plans for. Individual updates can override this with their own entity_id. (optional)
32044
+ * @param refundLastPayment - Controls how the last payment is refunded on immediate cancellation. 'prorated' refunds the unused portion, 'full' refunds the entire last payment. (optional)
32045
+ * @param subscriptionParams - Additional parameters to pass into the Stripe subscription update or cancel call. (optional)
32042
32046
  * @param updates - The list of plan updates to apply to the customer.
32043
32047
  *
32044
32048
  * @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-VUMAUMLJ.mjs";
3
+ } from "../chunk-W4YHYDGM.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";