autumn-js 1.5.35 → 1.5.37

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 (105) hide show
  1. package/dist/backend/adapters/express.js +52 -25
  2. package/dist/backend/adapters/express.mjs +9 -9
  3. package/dist/backend/adapters/fetch.js +52 -25
  4. package/dist/backend/adapters/fetch.mjs +9 -9
  5. package/dist/backend/adapters/hono.js +52 -25
  6. package/dist/backend/adapters/hono.mjs +9 -9
  7. package/dist/backend/adapters/index.js +52 -25
  8. package/dist/backend/adapters/index.mjs +12 -12
  9. package/dist/backend/adapters/next.js +52 -25
  10. package/dist/backend/adapters/next.mjs +9 -9
  11. package/dist/backend/{chunk-K7T7TDWR.mjs → chunk-3AIVYMKF.mjs} +1 -1
  12. package/dist/backend/{chunk-T34NW7SI.mjs → chunk-CVMN2IWC.mjs} +1 -1
  13. package/dist/backend/{chunk-3LPBX4F6.mjs → chunk-DDESPPGI.mjs} +5 -5
  14. package/dist/backend/{chunk-VPYAXAZA.mjs → chunk-GVRXOFQW.mjs} +1 -1
  15. package/dist/backend/{chunk-XKBXAO6P.mjs → chunk-LISSHZCF.mjs} +43 -19
  16. package/dist/backend/{chunk-6YB3KOFO.mjs → chunk-RJ7ZSJCO.mjs} +13 -10
  17. package/dist/backend/{chunk-JMK247SP.mjs → chunk-VGNYB3JL.mjs} +1 -1
  18. package/dist/backend/{chunk-JNYFW2R3.mjs → chunk-ZR4HHMP7.mjs} +7 -7
  19. package/dist/backend/core/handlers/coreHandler.d.mts +1 -1
  20. package/dist/backend/core/handlers/coreHandler.d.ts +1 -1
  21. package/dist/backend/core/handlers/coreHandler.js +52 -25
  22. package/dist/backend/core/handlers/coreHandler.mjs +7 -7
  23. package/dist/backend/core/handlers/executeRoute.d.mts +1 -1
  24. package/dist/backend/core/handlers/executeRoute.d.ts +1 -1
  25. package/dist/backend/core/handlers/executeRoute.mjs +2 -2
  26. package/dist/backend/core/handlers/handleRouteByName.js +52 -25
  27. package/dist/backend/core/handlers/handleRouteByName.mjs +5 -5
  28. package/dist/backend/core/handlers/index.d.mts +1 -1
  29. package/dist/backend/core/handlers/index.d.ts +1 -1
  30. package/dist/backend/core/handlers/index.js +52 -25
  31. package/dist/backend/core/handlers/index.mjs +8 -8
  32. package/dist/backend/core/index.d.mts +1 -1
  33. package/dist/backend/core/index.d.ts +1 -1
  34. package/dist/backend/core/index.js +52 -25
  35. package/dist/backend/core/index.mjs +10 -10
  36. package/dist/backend/core/routes/index.d.mts +1 -1
  37. package/dist/backend/core/routes/index.d.ts +1 -1
  38. package/dist/backend/core/routes/index.js +9 -6
  39. package/dist/backend/core/routes/index.mjs +2 -2
  40. package/dist/backend/core/routes/routeBuilder.d.mts +1 -1
  41. package/dist/backend/core/routes/routeBuilder.d.ts +1 -1
  42. package/dist/backend/core/routes/routeConfigs.d.mts +1 -1
  43. package/dist/backend/core/routes/routeConfigs.d.ts +1 -1
  44. package/dist/backend/core/routes/routeConfigs.js +9 -6
  45. package/dist/backend/core/routes/routeConfigs.mjs +2 -2
  46. package/dist/backend/core/types/handlerTypes.d.mts +1 -1
  47. package/dist/backend/core/types/handlerTypes.d.ts +1 -1
  48. package/dist/backend/core/types/index.d.mts +1 -1
  49. package/dist/backend/core/types/index.d.ts +1 -1
  50. package/dist/backend/core/types/routeTypes.d.mts +1 -1
  51. package/dist/backend/core/types/routeTypes.d.ts +1 -1
  52. package/dist/backend/core/utils/index.mjs +5 -5
  53. package/dist/backend/index.d.mts +2 -2
  54. package/dist/backend/index.d.ts +2 -2
  55. package/dist/backend/index.js +52 -25
  56. package/dist/backend/index.mjs +10 -10
  57. package/dist/backend/{routeTypes-CBh4agYT.d.mts → routeTypes-CyAG6ykl.d.mts} +64 -16
  58. package/dist/backend/{routeTypes-Bo_iEQ6p.d.ts → routeTypes-K6UFbMRh.d.ts} +64 -16
  59. package/dist/better-auth/{chunk-FJSZOC7D.mjs → chunk-QG6SUSBN.mjs} +44 -20
  60. package/dist/better-auth/{chunk-UAX73MLL.mjs → chunk-RHMGANQF.mjs} +9 -6
  61. package/dist/better-auth/{chunk-X4V2CJAP.mjs → chunk-TSPOLP26.mjs} +1 -1
  62. package/dist/better-auth/index.js +52 -25
  63. package/dist/better-auth/index.mjs +3 -3
  64. package/dist/better-auth/utils/createAutumnEndpoint.js +9 -6
  65. package/dist/better-auth/utils/createAutumnEndpoint.mjs +2 -2
  66. package/dist/better-auth/utils/handleBetterAuthRoute.js +52 -25
  67. package/dist/better-auth/utils/handleBetterAuthRoute.mjs +2 -2
  68. package/dist/better-auth/utils/index.js +52 -25
  69. package/dist/better-auth/utils/index.mjs +3 -3
  70. package/dist/react/AutumnContext.d.mts +1 -1
  71. package/dist/react/AutumnContext.d.ts +1 -1
  72. package/dist/react/client/AutumnClient.d.mts +1 -1
  73. package/dist/react/client/AutumnClient.d.ts +1 -1
  74. package/dist/react/client/IAutumnClient.d.mts +1 -1
  75. package/dist/react/client/IAutumnClient.d.ts +1 -1
  76. package/dist/react/client/index.d.mts +1 -1
  77. package/dist/react/client/index.d.ts +1 -1
  78. package/dist/react/hooks/index.d.mts +1 -1
  79. package/dist/react/hooks/index.d.ts +1 -1
  80. package/dist/react/hooks/internal/getLocalCheckResponse.d.mts +1 -1
  81. package/dist/react/hooks/internal/getLocalCheckResponse.d.ts +1 -1
  82. package/dist/react/hooks/internal/useCustomerActions.d.mts +1 -1
  83. package/dist/react/hooks/internal/useCustomerActions.d.ts +1 -1
  84. package/dist/react/hooks/useAggregateEvents.d.mts +1 -1
  85. package/dist/react/hooks/useAggregateEvents.d.ts +1 -1
  86. package/dist/react/hooks/useCustomer.d.mts +1 -1
  87. package/dist/react/hooks/useCustomer.d.ts +1 -1
  88. package/dist/react/hooks/useEntity.d.mts +1 -1
  89. package/dist/react/hooks/useEntity.d.ts +1 -1
  90. package/dist/react/hooks/useListEvents.d.mts +1 -1
  91. package/dist/react/hooks/useListEvents.d.ts +1 -1
  92. package/dist/react/hooks/useListPlans.d.mts +1 -1
  93. package/dist/react/hooks/useListPlans.d.ts +1 -1
  94. package/dist/react/hooks/useReferrals.d.mts +1 -1
  95. package/dist/react/hooks/useReferrals.d.ts +1 -1
  96. package/dist/react/index.d.mts +1 -1
  97. package/dist/react/index.d.ts +1 -1
  98. package/dist/react/{params-DZhxw-cv.d.mts → params-CkRfCFea.d.mts} +22 -10
  99. package/dist/react/{params-DhTLIE58.d.ts → params-Db6fMbKy.d.ts} +22 -10
  100. package/dist/sdk/index.d.mts +74 -22
  101. package/dist/sdk/index.d.ts +74 -22
  102. package/dist/sdk/index.js +57 -29
  103. package/dist/sdk/index.mjs +44 -20
  104. package/package.json +2 -2
  105. package/dist/backend/{chunk-OVAKKRI6.mjs → chunk-MOHYGUMA.mjs} +3 -3
@@ -85469,7 +85469,7 @@ var CreateInvoicePaymentMethodType = {
85469
85469
  AcssDebit: "acss_debit",
85470
85470
  Link: "link"
85471
85471
  };
85472
- var CreateInvoiceIssueMethod = {
85472
+ var CreateInvoiceIssueMethodRequest = {
85473
85473
  Draft: "draft",
85474
85474
  Finalize: "finalize",
85475
85475
  Send: "send"
@@ -85483,6 +85483,11 @@ var CreateInvoiceStatus = {
85483
85483
  Incomplete: "incomplete",
85484
85484
  RequiresLocation: "requires_location"
85485
85485
  };
85486
+ var CreateInvoicePreviewIssueMethod = {
85487
+ Draft: "draft",
85488
+ Finalize: "finalize",
85489
+ Send: "send"
85490
+ };
85486
85491
  var CreateInvoiceInterval$outboundSchema = z63.enum(CreateInvoiceInterval);
85487
85492
  var CreateInvoiceStripe$outboundSchema = z63.pipe(
85488
85493
  z63.object({
@@ -86103,7 +86108,7 @@ var CreateInvoiceAttachDiscount$outboundSchema = z63.pipe(
86103
86108
  })
86104
86109
  );
86105
86110
  var CreateInvoicePaymentMethodType$outboundSchema = z63.enum(CreateInvoicePaymentMethodType);
86106
- var CreateInvoiceIssueMethod$outboundSchema = z63.enum(CreateInvoiceIssueMethod);
86111
+ var CreateInvoiceIssueMethodRequest$outboundSchema = z63.enum(CreateInvoiceIssueMethodRequest);
86107
86112
  var CreateInvoiceParams$outboundSchema = z63.pipe(
86108
86113
  z63.object({
86109
86114
  customerId: z63.string(),
@@ -86126,7 +86131,7 @@ var CreateInvoiceParams$outboundSchema = z63.pipe(
86126
86131
  periodStart: z63.optional(z63.int()),
86127
86132
  periodEnd: z63.optional(z63.int()),
86128
86133
  preview: z63.optional(z63.boolean()),
86129
- issueMethod: z63.optional(CreateInvoiceIssueMethod$outboundSchema)
86134
+ issueMethod: z63.optional(CreateInvoiceIssueMethodRequest$outboundSchema)
86130
86135
  }),
86131
86136
  z63.transform((v) => {
86132
86137
  return remap(v, {
@@ -86261,6 +86266,7 @@ var CreateInvoiceInvoiceCredits$inboundSchema = z63.object({
86261
86266
  applied: optional3(number2()),
86262
86267
  currency: string5()
86263
86268
  });
86269
+ var CreateInvoicePreviewIssueMethod$inboundSchema = inboundSchema(CreateInvoicePreviewIssueMethod);
86264
86270
  var CreateInvoicePreview$inboundSchema = z63.pipe(
86265
86271
  z63.object({
86266
86272
  currency: string5(),
@@ -86274,7 +86280,8 @@ var CreateInvoicePreview$inboundSchema = z63.pipe(
86274
86280
  ),
86275
86281
  amount_due: number2(),
86276
86282
  issue_date: number2(),
86277
- due_date: nullable(number2())
86283
+ due_date: nullable(number2()),
86284
+ issue_method: CreateInvoicePreviewIssueMethod$inboundSchema
86278
86285
  }),
86279
86286
  z63.transform((v) => {
86280
86287
  return remap(v, {
@@ -86282,7 +86289,8 @@ var CreateInvoicePreview$inboundSchema = z63.pipe(
86282
86289
  "invoice_credits": "invoiceCredits",
86283
86290
  "amount_due": "amountDue",
86284
86291
  "issue_date": "issueDate",
86285
- "due_date": "dueDate"
86292
+ "due_date": "dueDate",
86293
+ "issue_method": "issueMethod"
86286
86294
  });
86287
86295
  })
86288
86296
  );
@@ -109632,7 +109640,7 @@ var PreviewAttachType = {
109632
109640
  Charge: "charge",
109633
109641
  Credit: "credit"
109634
109642
  };
109635
- var PreviewAttachIssueMethodResponse = {
109643
+ var PreviewAttachImmediateInvoiceIssueMethod = {
109636
109644
  Draft: "draft",
109637
109645
  Finalize: "finalize",
109638
109646
  Send: "send",
@@ -110068,12 +110076,12 @@ var PreviewAttachLineItem$inboundSchema = z131.pipe(
110068
110076
  })
110069
110077
  );
110070
110078
  var PreviewAttachType$inboundSchema = inboundSchema(PreviewAttachType);
110071
- var PreviewAttachIssueMethodResponse$inboundSchema = inboundSchema(PreviewAttachIssueMethodResponse);
110079
+ var PreviewAttachImmediateInvoiceIssueMethod$inboundSchema = inboundSchema(PreviewAttachImmediateInvoiceIssueMethod);
110072
110080
  var PreviewAttachPreviewImmediateInvoice$inboundSchema = z131.pipe(
110073
110081
  z131.object({
110074
110082
  type: PreviewAttachType$inboundSchema,
110075
110083
  issue_method: nullable(
110076
- PreviewAttachIssueMethodResponse$inboundSchema
110084
+ PreviewAttachImmediateInvoiceIssueMethod$inboundSchema
110077
110085
  )
110078
110086
  }),
110079
110087
  z131.transform((v) => {
@@ -110267,6 +110275,7 @@ var PreviewAttachResponse$inboundSchema = z131.pipe(
110267
110275
  next_cycle: optional3(
110268
110276
  z131.lazy(() => PreviewAttachNextCycle$inboundSchema)
110269
110277
  ),
110278
+ requires_payment_method: optional3(boolean2()),
110270
110279
  expand: optional3(z131.array(string5())),
110271
110280
  incoming: z131.array(z131.lazy(() => PreviewAttachIncoming$inboundSchema)),
110272
110281
  outgoing: z131.array(z131.lazy(() => PreviewAttachOutgoing$inboundSchema)),
@@ -110284,6 +110293,7 @@ var PreviewAttachResponse$inboundSchema = z131.pipe(
110284
110293
  "immediate_invoice": "immediateInvoice",
110285
110294
  "resets_usage": "resetsUsage",
110286
110295
  "next_cycle": "nextCycle",
110296
+ "requires_payment_method": "requiresPaymentMethod",
110287
110297
  "redirect_to_checkout": "redirectToCheckout",
110288
110298
  "checkout_type": "checkoutType",
110289
110299
  "invoice_credits": "invoiceCredits"
@@ -110419,7 +110429,7 @@ var PreviewMultiAttachType = {
110419
110429
  Charge: "charge",
110420
110430
  Credit: "credit"
110421
110431
  };
110422
- var PreviewMultiAttachIssueMethodResponse = {
110432
+ var PreviewMultiAttachImmediateInvoiceIssueMethod = {
110423
110433
  Draft: "draft",
110424
110434
  Finalize: "finalize",
110425
110435
  Send: "send",
@@ -111077,12 +111087,12 @@ var PreviewMultiAttachLineItem$inboundSchema = z132.pipe(
111077
111087
  })
111078
111088
  );
111079
111089
  var PreviewMultiAttachType$inboundSchema = inboundSchema(PreviewMultiAttachType);
111080
- var PreviewMultiAttachIssueMethodResponse$inboundSchema = inboundSchema(PreviewMultiAttachIssueMethodResponse);
111090
+ var PreviewMultiAttachImmediateInvoiceIssueMethod$inboundSchema = inboundSchema(PreviewMultiAttachImmediateInvoiceIssueMethod);
111081
111091
  var PreviewMultiAttachPreviewImmediateInvoice$inboundSchema = z132.pipe(
111082
111092
  z132.object({
111083
111093
  type: PreviewMultiAttachType$inboundSchema,
111084
111094
  issue_method: nullable(
111085
- PreviewMultiAttachIssueMethodResponse$inboundSchema
111095
+ PreviewMultiAttachImmediateInvoiceIssueMethod$inboundSchema
111086
111096
  )
111087
111097
  }),
111088
111098
  z132.transform((v) => {
@@ -111276,6 +111286,7 @@ var PreviewMultiAttachResponse$inboundSchema = z132.pipe(
111276
111286
  next_cycle: optional3(
111277
111287
  z132.lazy(() => PreviewMultiAttachNextCycle$inboundSchema)
111278
111288
  ),
111289
+ requires_payment_method: optional3(boolean2()),
111279
111290
  expand: optional3(z132.array(string5())),
111280
111291
  incoming: z132.array(z132.lazy(() => PreviewMultiAttachIncoming$inboundSchema)),
111281
111292
  outgoing: z132.array(z132.lazy(() => PreviewMultiAttachOutgoing$inboundSchema)),
@@ -111293,6 +111304,7 @@ var PreviewMultiAttachResponse$inboundSchema = z132.pipe(
111293
111304
  "immediate_invoice": "immediateInvoice",
111294
111305
  "resets_usage": "resetsUsage",
111295
111306
  "next_cycle": "nextCycle",
111307
+ "requires_payment_method": "requiresPaymentMethod",
111296
111308
  "redirect_to_checkout": "redirectToCheckout",
111297
111309
  "checkout_type": "checkoutType",
111298
111310
  "invoice_credits": "invoiceCredits"
@@ -111590,6 +111602,7 @@ var PreviewMultiUpdateSubscription$inboundSchema = z133.pipe(
111590
111602
  next_cycle: optional3(
111591
111603
  z133.lazy(() => PreviewMultiUpdateNextCycle$inboundSchema)
111592
111604
  ),
111605
+ requires_payment_method: optional3(boolean2()),
111593
111606
  expand: optional3(z133.array(string5())),
111594
111607
  incoming: z133.array(z133.lazy(() => PreviewMultiUpdateIncoming$inboundSchema)),
111595
111608
  outgoing: z133.array(z133.lazy(() => PreviewMultiUpdateOutgoing$inboundSchema)),
@@ -111602,6 +111615,7 @@ var PreviewMultiUpdateSubscription$inboundSchema = z133.pipe(
111602
111615
  "immediate_invoice": "immediateInvoice",
111603
111616
  "resets_usage": "resetsUsage",
111604
111617
  "next_cycle": "nextCycle",
111618
+ "requires_payment_method": "requiresPaymentMethod",
111605
111619
  "plan_ids": "planIds"
111606
111620
  });
111607
111621
  })
@@ -113507,7 +113521,7 @@ var PreviewUpdateType = {
113507
113521
  Charge: "charge",
113508
113522
  Credit: "credit"
113509
113523
  };
113510
- var PreviewUpdateIssueMethodResponse = {
113524
+ var PreviewUpdateImmediateInvoiceIssueMethod = {
113511
113525
  Draft: "draft",
113512
113526
  Finalize: "finalize",
113513
113527
  Send: "send",
@@ -113867,12 +113881,12 @@ var PreviewUpdateLineItem$inboundSchema = z136.pipe(
113867
113881
  })
113868
113882
  );
113869
113883
  var PreviewUpdateType$inboundSchema = inboundSchema(PreviewUpdateType);
113870
- var PreviewUpdateIssueMethodResponse$inboundSchema = inboundSchema(PreviewUpdateIssueMethodResponse);
113884
+ var PreviewUpdateImmediateInvoiceIssueMethod$inboundSchema = inboundSchema(PreviewUpdateImmediateInvoiceIssueMethod);
113871
113885
  var PreviewUpdatePreviewImmediateInvoice$inboundSchema = z136.pipe(
113872
113886
  z136.object({
113873
113887
  type: PreviewUpdateType$inboundSchema,
113874
113888
  issue_method: nullable(
113875
- PreviewUpdateIssueMethodResponse$inboundSchema
113889
+ PreviewUpdateImmediateInvoiceIssueMethod$inboundSchema
113876
113890
  )
113877
113891
  }),
113878
113892
  z136.transform((v) => {
@@ -114066,6 +114080,7 @@ var PreviewUpdateResponse$inboundSchema = z136.pipe(
114066
114080
  next_cycle: optional3(
114067
114081
  z136.lazy(() => PreviewUpdateNextCycle$inboundSchema)
114068
114082
  ),
114083
+ requires_payment_method: optional3(boolean2()),
114069
114084
  expand: optional3(z136.array(string5())),
114070
114085
  incoming: z136.array(z136.lazy(() => PreviewUpdateIncoming$inboundSchema)),
114071
114086
  outgoing: z136.array(z136.lazy(() => PreviewUpdateOutgoing$inboundSchema)),
@@ -114082,6 +114097,7 @@ var PreviewUpdateResponse$inboundSchema = z136.pipe(
114082
114097
  "immediate_invoice": "immediateInvoice",
114083
114098
  "resets_usage": "resetsUsage",
114084
114099
  "next_cycle": "nextCycle",
114100
+ "requires_payment_method": "requiresPaymentMethod",
114085
114101
  "invoice_credits": "invoiceCredits"
114086
114102
  });
114087
114103
  })
@@ -114175,7 +114191,7 @@ var RefreshKeyResponse$inboundSchema = z139.pipe(
114175
114191
 
114176
114192
  // ../sdk/src/models/reissue-invoice-op.ts
114177
114193
  var z140 = __toESM(require("zod/v4-mini"), 1);
114178
- var ReissueInvoiceIssueMethod = {
114194
+ var ReissueInvoiceIssueMethodRequest = {
114179
114195
  Draft: "draft",
114180
114196
  Finalize: "finalize",
114181
114197
  Send: "send"
@@ -114260,7 +114276,12 @@ var ReissueInvoiceStatus = {
114260
114276
  Incomplete: "incomplete",
114261
114277
  RequiresLocation: "requires_location"
114262
114278
  };
114263
- var ReissueInvoiceIssueMethod$outboundSchema = z140.enum(ReissueInvoiceIssueMethod);
114279
+ var ReissueInvoicePreviewIssueMethod = {
114280
+ Draft: "draft",
114281
+ Finalize: "finalize",
114282
+ Send: "send"
114283
+ };
114284
+ var ReissueInvoiceIssueMethodRequest$outboundSchema = z140.enum(ReissueInvoiceIssueMethodRequest);
114264
114285
  var CustomField$outboundSchema = z140.object({
114265
114286
  name: z140.string(),
114266
114287
  value: z140.string()
@@ -114960,7 +114981,7 @@ var ReissueInvoiceParams$outboundSchema = z140.pipe(
114960
114981
  invoiceTemplateId: z140.optional(z140.string()),
114961
114982
  netTermsDays: z140.optional(z140.int()),
114962
114983
  preview: z140.optional(z140.boolean()),
114963
- issueMethod: z140.optional(ReissueInvoiceIssueMethod$outboundSchema),
114984
+ issueMethod: z140.optional(ReissueInvoiceIssueMethodRequest$outboundSchema),
114964
114985
  updateCustomerEmail: z140.optional(z140.string()),
114965
114986
  invoice: z140.optional(
114966
114987
  z140.lazy(() => ReissueInvoiceInvoiceRequestBody$outboundSchema)
@@ -115094,6 +115115,7 @@ var ReissueInvoiceInvoiceCredits$inboundSchema = z140.object({
115094
115115
  applied: optional3(number2()),
115095
115116
  currency: string5()
115096
115117
  });
115118
+ var ReissueInvoicePreviewIssueMethod$inboundSchema = inboundSchema(ReissueInvoicePreviewIssueMethod);
115097
115119
  var ReissueInvoicePreview$inboundSchema = z140.pipe(
115098
115120
  z140.object({
115099
115121
  currency: string5(),
@@ -115107,7 +115129,8 @@ var ReissueInvoicePreview$inboundSchema = z140.pipe(
115107
115129
  ),
115108
115130
  amount_due: number2(),
115109
115131
  issue_date: number2(),
115110
- due_date: nullable(number2())
115132
+ due_date: nullable(number2()),
115133
+ issue_method: ReissueInvoicePreviewIssueMethod$inboundSchema
115111
115134
  }),
115112
115135
  z140.transform((v) => {
115113
115136
  return remap(v, {
@@ -115115,7 +115138,8 @@ var ReissueInvoicePreview$inboundSchema = z140.pipe(
115115
115138
  "invoice_credits": "invoiceCredits",
115116
115139
  "amount_due": "amountDue",
115117
115140
  "issue_date": "issueDate",
115118
- "due_date": "dueDate"
115141
+ "due_date": "dueDate",
115142
+ "issue_method": "issueMethod"
115119
115143
  });
115120
115144
  })
115121
115145
  );
@@ -141470,10 +141494,10 @@ var previewAttachParamsSchema = import_v412.z.object({
141470
141494
  removeDiscounts: import_v412.z.union([import_v412.z.array(previewAttachRemoveDiscountSchema), import_v412.z.undefined()]).optional()
141471
141495
  });
141472
141496
  var previewAttachTypeSchema = openEnumSchema9;
141473
- var previewAttachIssueMethodResponseSchema = openEnumSchema9;
141497
+ var previewAttachImmediateInvoiceIssueMethodSchema = openEnumSchema9;
141474
141498
  var previewAttachPreviewImmediateInvoiceSchema = import_v412.z.object({
141475
141499
  type: previewAttachTypeSchema,
141476
- issueMethod: previewAttachIssueMethodResponseSchema.nullable()
141500
+ issueMethod: previewAttachImmediateInvoiceIssueMethodSchema.nullable()
141477
141501
  });
141478
141502
  var previewAttachIncomingSchema = import_v412.z.object({
141479
141503
  planId: import_v412.z.string(),
@@ -141509,6 +141533,7 @@ var previewAttachResponseSchema = import_v412.z.object({
141509
141533
  immediateInvoice: previewAttachPreviewImmediateInvoiceSchema,
141510
141534
  resetsUsage: import_v412.z.union([import_v412.z.boolean(), import_v412.z.undefined()]).optional(),
141511
141535
  nextCycle: import_v412.z.union([previewAttachNextCycleSchema, import_v412.z.undefined()]).optional(),
141536
+ requiresPaymentMethod: import_v412.z.union([import_v412.z.boolean(), import_v412.z.undefined()]).optional(),
141512
141537
  expand: import_v412.z.union([import_v412.z.array(import_v412.z.string()), import_v412.z.undefined()]).optional(),
141513
141538
  incoming: import_v412.z.array(previewAttachIncomingSchema),
141514
141539
  outgoing: import_v412.z.array(previewAttachOutgoingSchema),
@@ -142170,10 +142195,10 @@ var previewMultiAttachParamsSchema = import_v413.z.object({
142170
142195
  entityData: import_v413.z.union([previewMultiAttachEntityDataSchema, import_v413.z.undefined()]).optional()
142171
142196
  });
142172
142197
  var previewMultiAttachTypeSchema = openEnumSchema10;
142173
- var previewMultiAttachIssueMethodResponseSchema = openEnumSchema10;
142198
+ var previewMultiAttachImmediateInvoiceIssueMethodSchema = openEnumSchema10;
142174
142199
  var previewMultiAttachPreviewImmediateInvoiceSchema = import_v413.z.object({
142175
142200
  type: previewMultiAttachTypeSchema,
142176
- issueMethod: previewMultiAttachIssueMethodResponseSchema.nullable()
142201
+ issueMethod: previewMultiAttachImmediateInvoiceIssueMethodSchema.nullable()
142177
142202
  });
142178
142203
  var previewMultiAttachIncomingSchema = import_v413.z.object({
142179
142204
  planId: import_v413.z.string(),
@@ -142209,6 +142234,7 @@ var previewMultiAttachResponseSchema = import_v413.z.object({
142209
142234
  immediateInvoice: previewMultiAttachPreviewImmediateInvoiceSchema,
142210
142235
  resetsUsage: import_v413.z.union([import_v413.z.boolean(), import_v413.z.undefined()]).optional(),
142211
142236
  nextCycle: import_v413.z.union([previewMultiAttachNextCycleSchema, import_v413.z.undefined()]).optional(),
142237
+ requiresPaymentMethod: import_v413.z.union([import_v413.z.boolean(), import_v413.z.undefined()]).optional(),
142212
142238
  expand: import_v413.z.union([import_v413.z.array(import_v413.z.string()), import_v413.z.undefined()]).optional(),
142213
142239
  incoming: import_v413.z.array(previewMultiAttachIncomingSchema),
142214
142240
  outgoing: import_v413.z.array(previewMultiAttachOutgoingSchema),
@@ -142639,10 +142665,10 @@ var previewUpdateParamsSchema = import_v414.z.object({
142639
142665
  licenseQuantities: import_v414.z.union([import_v414.z.array(previewUpdateLicenseQuantitySchema), import_v414.z.undefined()]).optional()
142640
142666
  });
142641
142667
  var previewUpdateTypeSchema = openEnumSchema11;
142642
- var previewUpdateIssueMethodResponseSchema = openEnumSchema11;
142668
+ var previewUpdateImmediateInvoiceIssueMethodSchema = openEnumSchema11;
142643
142669
  var previewUpdatePreviewImmediateInvoiceSchema = import_v414.z.object({
142644
142670
  type: previewUpdateTypeSchema,
142645
- issueMethod: previewUpdateIssueMethodResponseSchema.nullable()
142671
+ issueMethod: previewUpdateImmediateInvoiceIssueMethodSchema.nullable()
142646
142672
  });
142647
142673
  var previewUpdateIncomingSchema = import_v414.z.object({
142648
142674
  planId: import_v414.z.string(),
@@ -142678,6 +142704,7 @@ var previewUpdateResponseSchema = import_v414.z.object({
142678
142704
  immediateInvoice: previewUpdatePreviewImmediateInvoiceSchema,
142679
142705
  resetsUsage: import_v414.z.union([import_v414.z.boolean(), import_v414.z.undefined()]).optional(),
142680
142706
  nextCycle: import_v414.z.union([previewUpdateNextCycleSchema, import_v414.z.undefined()]).optional(),
142707
+ requiresPaymentMethod: import_v414.z.union([import_v414.z.boolean(), import_v414.z.undefined()]).optional(),
142681
142708
  expand: import_v414.z.union([import_v414.z.array(import_v414.z.string()), import_v414.z.undefined()]).optional(),
142682
142709
  incoming: import_v414.z.array(previewUpdateIncomingSchema),
142683
142710
  outgoing: import_v414.z.array(previewUpdateOutgoingSchema),
@@ -1,21 +1,21 @@
1
1
  import {
2
2
  autumnHandler
3
- } from "../chunk-VPYAXAZA.mjs";
3
+ } from "../chunk-GVRXOFQW.mjs";
4
4
  import "../chunk-WYDGEDEU.mjs";
5
5
  import "../chunk-VXND2UDT.mjs";
6
- import "../chunk-3LPBX4F6.mjs";
7
- import "../chunk-JNYFW2R3.mjs";
8
- import "../chunk-TSF4YCUO.mjs";
9
- import "../chunk-UAR3TMWI.mjs";
10
- import "../chunk-XKBXAO6P.mjs";
11
- import "../chunk-6YB3KOFO.mjs";
12
- import "../chunk-OVAKKRI6.mjs";
6
+ import "../chunk-DDESPPGI.mjs";
7
+ import "../chunk-ZR4HHMP7.mjs";
8
+ import "../chunk-LISSHZCF.mjs";
9
+ import "../chunk-MOHYGUMA.mjs";
13
10
  import "../chunk-TBQ27LIK.mjs";
14
11
  import "../chunk-J44WR3QZ.mjs";
12
+ import "../chunk-TSF4YCUO.mjs";
13
+ import "../chunk-UAR3TMWI.mjs";
14
+ import "../chunk-RJ7ZSJCO.mjs";
15
15
  import "../chunk-OTXV5FY7.mjs";
16
16
  import "../chunk-VZIMT7AO.mjs";
17
- import "../chunk-N7NFYY54.mjs";
18
17
  import "../chunk-I7CD6EB6.mjs";
18
+ import "../chunk-N7NFYY54.mjs";
19
19
  export {
20
20
  autumnHandler
21
21
  };
@@ -85469,7 +85469,7 @@ var CreateInvoicePaymentMethodType = {
85469
85469
  AcssDebit: "acss_debit",
85470
85470
  Link: "link"
85471
85471
  };
85472
- var CreateInvoiceIssueMethod = {
85472
+ var CreateInvoiceIssueMethodRequest = {
85473
85473
  Draft: "draft",
85474
85474
  Finalize: "finalize",
85475
85475
  Send: "send"
@@ -85483,6 +85483,11 @@ var CreateInvoiceStatus = {
85483
85483
  Incomplete: "incomplete",
85484
85484
  RequiresLocation: "requires_location"
85485
85485
  };
85486
+ var CreateInvoicePreviewIssueMethod = {
85487
+ Draft: "draft",
85488
+ Finalize: "finalize",
85489
+ Send: "send"
85490
+ };
85486
85491
  var CreateInvoiceInterval$outboundSchema = z63.enum(CreateInvoiceInterval);
85487
85492
  var CreateInvoiceStripe$outboundSchema = z63.pipe(
85488
85493
  z63.object({
@@ -86103,7 +86108,7 @@ var CreateInvoiceAttachDiscount$outboundSchema = z63.pipe(
86103
86108
  })
86104
86109
  );
86105
86110
  var CreateInvoicePaymentMethodType$outboundSchema = z63.enum(CreateInvoicePaymentMethodType);
86106
- var CreateInvoiceIssueMethod$outboundSchema = z63.enum(CreateInvoiceIssueMethod);
86111
+ var CreateInvoiceIssueMethodRequest$outboundSchema = z63.enum(CreateInvoiceIssueMethodRequest);
86107
86112
  var CreateInvoiceParams$outboundSchema = z63.pipe(
86108
86113
  z63.object({
86109
86114
  customerId: z63.string(),
@@ -86126,7 +86131,7 @@ var CreateInvoiceParams$outboundSchema = z63.pipe(
86126
86131
  periodStart: z63.optional(z63.int()),
86127
86132
  periodEnd: z63.optional(z63.int()),
86128
86133
  preview: z63.optional(z63.boolean()),
86129
- issueMethod: z63.optional(CreateInvoiceIssueMethod$outboundSchema)
86134
+ issueMethod: z63.optional(CreateInvoiceIssueMethodRequest$outboundSchema)
86130
86135
  }),
86131
86136
  z63.transform((v) => {
86132
86137
  return remap(v, {
@@ -86261,6 +86266,7 @@ var CreateInvoiceInvoiceCredits$inboundSchema = z63.object({
86261
86266
  applied: optional3(number2()),
86262
86267
  currency: string5()
86263
86268
  });
86269
+ var CreateInvoicePreviewIssueMethod$inboundSchema = inboundSchema(CreateInvoicePreviewIssueMethod);
86264
86270
  var CreateInvoicePreview$inboundSchema = z63.pipe(
86265
86271
  z63.object({
86266
86272
  currency: string5(),
@@ -86274,7 +86280,8 @@ var CreateInvoicePreview$inboundSchema = z63.pipe(
86274
86280
  ),
86275
86281
  amount_due: number2(),
86276
86282
  issue_date: number2(),
86277
- due_date: nullable(number2())
86283
+ due_date: nullable(number2()),
86284
+ issue_method: CreateInvoicePreviewIssueMethod$inboundSchema
86278
86285
  }),
86279
86286
  z63.transform((v) => {
86280
86287
  return remap(v, {
@@ -86282,7 +86289,8 @@ var CreateInvoicePreview$inboundSchema = z63.pipe(
86282
86289
  "invoice_credits": "invoiceCredits",
86283
86290
  "amount_due": "amountDue",
86284
86291
  "issue_date": "issueDate",
86285
- "due_date": "dueDate"
86292
+ "due_date": "dueDate",
86293
+ "issue_method": "issueMethod"
86286
86294
  });
86287
86295
  })
86288
86296
  );
@@ -109632,7 +109640,7 @@ var PreviewAttachType = {
109632
109640
  Charge: "charge",
109633
109641
  Credit: "credit"
109634
109642
  };
109635
- var PreviewAttachIssueMethodResponse = {
109643
+ var PreviewAttachImmediateInvoiceIssueMethod = {
109636
109644
  Draft: "draft",
109637
109645
  Finalize: "finalize",
109638
109646
  Send: "send",
@@ -110068,12 +110076,12 @@ var PreviewAttachLineItem$inboundSchema = z131.pipe(
110068
110076
  })
110069
110077
  );
110070
110078
  var PreviewAttachType$inboundSchema = inboundSchema(PreviewAttachType);
110071
- var PreviewAttachIssueMethodResponse$inboundSchema = inboundSchema(PreviewAttachIssueMethodResponse);
110079
+ var PreviewAttachImmediateInvoiceIssueMethod$inboundSchema = inboundSchema(PreviewAttachImmediateInvoiceIssueMethod);
110072
110080
  var PreviewAttachPreviewImmediateInvoice$inboundSchema = z131.pipe(
110073
110081
  z131.object({
110074
110082
  type: PreviewAttachType$inboundSchema,
110075
110083
  issue_method: nullable(
110076
- PreviewAttachIssueMethodResponse$inboundSchema
110084
+ PreviewAttachImmediateInvoiceIssueMethod$inboundSchema
110077
110085
  )
110078
110086
  }),
110079
110087
  z131.transform((v) => {
@@ -110267,6 +110275,7 @@ var PreviewAttachResponse$inboundSchema = z131.pipe(
110267
110275
  next_cycle: optional3(
110268
110276
  z131.lazy(() => PreviewAttachNextCycle$inboundSchema)
110269
110277
  ),
110278
+ requires_payment_method: optional3(boolean2()),
110270
110279
  expand: optional3(z131.array(string5())),
110271
110280
  incoming: z131.array(z131.lazy(() => PreviewAttachIncoming$inboundSchema)),
110272
110281
  outgoing: z131.array(z131.lazy(() => PreviewAttachOutgoing$inboundSchema)),
@@ -110284,6 +110293,7 @@ var PreviewAttachResponse$inboundSchema = z131.pipe(
110284
110293
  "immediate_invoice": "immediateInvoice",
110285
110294
  "resets_usage": "resetsUsage",
110286
110295
  "next_cycle": "nextCycle",
110296
+ "requires_payment_method": "requiresPaymentMethod",
110287
110297
  "redirect_to_checkout": "redirectToCheckout",
110288
110298
  "checkout_type": "checkoutType",
110289
110299
  "invoice_credits": "invoiceCredits"
@@ -110419,7 +110429,7 @@ var PreviewMultiAttachType = {
110419
110429
  Charge: "charge",
110420
110430
  Credit: "credit"
110421
110431
  };
110422
- var PreviewMultiAttachIssueMethodResponse = {
110432
+ var PreviewMultiAttachImmediateInvoiceIssueMethod = {
110423
110433
  Draft: "draft",
110424
110434
  Finalize: "finalize",
110425
110435
  Send: "send",
@@ -111077,12 +111087,12 @@ var PreviewMultiAttachLineItem$inboundSchema = z132.pipe(
111077
111087
  })
111078
111088
  );
111079
111089
  var PreviewMultiAttachType$inboundSchema = inboundSchema(PreviewMultiAttachType);
111080
- var PreviewMultiAttachIssueMethodResponse$inboundSchema = inboundSchema(PreviewMultiAttachIssueMethodResponse);
111090
+ var PreviewMultiAttachImmediateInvoiceIssueMethod$inboundSchema = inboundSchema(PreviewMultiAttachImmediateInvoiceIssueMethod);
111081
111091
  var PreviewMultiAttachPreviewImmediateInvoice$inboundSchema = z132.pipe(
111082
111092
  z132.object({
111083
111093
  type: PreviewMultiAttachType$inboundSchema,
111084
111094
  issue_method: nullable(
111085
- PreviewMultiAttachIssueMethodResponse$inboundSchema
111095
+ PreviewMultiAttachImmediateInvoiceIssueMethod$inboundSchema
111086
111096
  )
111087
111097
  }),
111088
111098
  z132.transform((v) => {
@@ -111276,6 +111286,7 @@ var PreviewMultiAttachResponse$inboundSchema = z132.pipe(
111276
111286
  next_cycle: optional3(
111277
111287
  z132.lazy(() => PreviewMultiAttachNextCycle$inboundSchema)
111278
111288
  ),
111289
+ requires_payment_method: optional3(boolean2()),
111279
111290
  expand: optional3(z132.array(string5())),
111280
111291
  incoming: z132.array(z132.lazy(() => PreviewMultiAttachIncoming$inboundSchema)),
111281
111292
  outgoing: z132.array(z132.lazy(() => PreviewMultiAttachOutgoing$inboundSchema)),
@@ -111293,6 +111304,7 @@ var PreviewMultiAttachResponse$inboundSchema = z132.pipe(
111293
111304
  "immediate_invoice": "immediateInvoice",
111294
111305
  "resets_usage": "resetsUsage",
111295
111306
  "next_cycle": "nextCycle",
111307
+ "requires_payment_method": "requiresPaymentMethod",
111296
111308
  "redirect_to_checkout": "redirectToCheckout",
111297
111309
  "checkout_type": "checkoutType",
111298
111310
  "invoice_credits": "invoiceCredits"
@@ -111590,6 +111602,7 @@ var PreviewMultiUpdateSubscription$inboundSchema = z133.pipe(
111590
111602
  next_cycle: optional3(
111591
111603
  z133.lazy(() => PreviewMultiUpdateNextCycle$inboundSchema)
111592
111604
  ),
111605
+ requires_payment_method: optional3(boolean2()),
111593
111606
  expand: optional3(z133.array(string5())),
111594
111607
  incoming: z133.array(z133.lazy(() => PreviewMultiUpdateIncoming$inboundSchema)),
111595
111608
  outgoing: z133.array(z133.lazy(() => PreviewMultiUpdateOutgoing$inboundSchema)),
@@ -111602,6 +111615,7 @@ var PreviewMultiUpdateSubscription$inboundSchema = z133.pipe(
111602
111615
  "immediate_invoice": "immediateInvoice",
111603
111616
  "resets_usage": "resetsUsage",
111604
111617
  "next_cycle": "nextCycle",
111618
+ "requires_payment_method": "requiresPaymentMethod",
111605
111619
  "plan_ids": "planIds"
111606
111620
  });
111607
111621
  })
@@ -113507,7 +113521,7 @@ var PreviewUpdateType = {
113507
113521
  Charge: "charge",
113508
113522
  Credit: "credit"
113509
113523
  };
113510
- var PreviewUpdateIssueMethodResponse = {
113524
+ var PreviewUpdateImmediateInvoiceIssueMethod = {
113511
113525
  Draft: "draft",
113512
113526
  Finalize: "finalize",
113513
113527
  Send: "send",
@@ -113867,12 +113881,12 @@ var PreviewUpdateLineItem$inboundSchema = z136.pipe(
113867
113881
  })
113868
113882
  );
113869
113883
  var PreviewUpdateType$inboundSchema = inboundSchema(PreviewUpdateType);
113870
- var PreviewUpdateIssueMethodResponse$inboundSchema = inboundSchema(PreviewUpdateIssueMethodResponse);
113884
+ var PreviewUpdateImmediateInvoiceIssueMethod$inboundSchema = inboundSchema(PreviewUpdateImmediateInvoiceIssueMethod);
113871
113885
  var PreviewUpdatePreviewImmediateInvoice$inboundSchema = z136.pipe(
113872
113886
  z136.object({
113873
113887
  type: PreviewUpdateType$inboundSchema,
113874
113888
  issue_method: nullable(
113875
- PreviewUpdateIssueMethodResponse$inboundSchema
113889
+ PreviewUpdateImmediateInvoiceIssueMethod$inboundSchema
113876
113890
  )
113877
113891
  }),
113878
113892
  z136.transform((v) => {
@@ -114066,6 +114080,7 @@ var PreviewUpdateResponse$inboundSchema = z136.pipe(
114066
114080
  next_cycle: optional3(
114067
114081
  z136.lazy(() => PreviewUpdateNextCycle$inboundSchema)
114068
114082
  ),
114083
+ requires_payment_method: optional3(boolean2()),
114069
114084
  expand: optional3(z136.array(string5())),
114070
114085
  incoming: z136.array(z136.lazy(() => PreviewUpdateIncoming$inboundSchema)),
114071
114086
  outgoing: z136.array(z136.lazy(() => PreviewUpdateOutgoing$inboundSchema)),
@@ -114082,6 +114097,7 @@ var PreviewUpdateResponse$inboundSchema = z136.pipe(
114082
114097
  "immediate_invoice": "immediateInvoice",
114083
114098
  "resets_usage": "resetsUsage",
114084
114099
  "next_cycle": "nextCycle",
114100
+ "requires_payment_method": "requiresPaymentMethod",
114085
114101
  "invoice_credits": "invoiceCredits"
114086
114102
  });
114087
114103
  })
@@ -114175,7 +114191,7 @@ var RefreshKeyResponse$inboundSchema = z139.pipe(
114175
114191
 
114176
114192
  // ../sdk/src/models/reissue-invoice-op.ts
114177
114193
  var z140 = __toESM(require("zod/v4-mini"), 1);
114178
- var ReissueInvoiceIssueMethod = {
114194
+ var ReissueInvoiceIssueMethodRequest = {
114179
114195
  Draft: "draft",
114180
114196
  Finalize: "finalize",
114181
114197
  Send: "send"
@@ -114260,7 +114276,12 @@ var ReissueInvoiceStatus = {
114260
114276
  Incomplete: "incomplete",
114261
114277
  RequiresLocation: "requires_location"
114262
114278
  };
114263
- var ReissueInvoiceIssueMethod$outboundSchema = z140.enum(ReissueInvoiceIssueMethod);
114279
+ var ReissueInvoicePreviewIssueMethod = {
114280
+ Draft: "draft",
114281
+ Finalize: "finalize",
114282
+ Send: "send"
114283
+ };
114284
+ var ReissueInvoiceIssueMethodRequest$outboundSchema = z140.enum(ReissueInvoiceIssueMethodRequest);
114264
114285
  var CustomField$outboundSchema = z140.object({
114265
114286
  name: z140.string(),
114266
114287
  value: z140.string()
@@ -114960,7 +114981,7 @@ var ReissueInvoiceParams$outboundSchema = z140.pipe(
114960
114981
  invoiceTemplateId: z140.optional(z140.string()),
114961
114982
  netTermsDays: z140.optional(z140.int()),
114962
114983
  preview: z140.optional(z140.boolean()),
114963
- issueMethod: z140.optional(ReissueInvoiceIssueMethod$outboundSchema),
114984
+ issueMethod: z140.optional(ReissueInvoiceIssueMethodRequest$outboundSchema),
114964
114985
  updateCustomerEmail: z140.optional(z140.string()),
114965
114986
  invoice: z140.optional(
114966
114987
  z140.lazy(() => ReissueInvoiceInvoiceRequestBody$outboundSchema)
@@ -115094,6 +115115,7 @@ var ReissueInvoiceInvoiceCredits$inboundSchema = z140.object({
115094
115115
  applied: optional3(number2()),
115095
115116
  currency: string5()
115096
115117
  });
115118
+ var ReissueInvoicePreviewIssueMethod$inboundSchema = inboundSchema(ReissueInvoicePreviewIssueMethod);
115097
115119
  var ReissueInvoicePreview$inboundSchema = z140.pipe(
115098
115120
  z140.object({
115099
115121
  currency: string5(),
@@ -115107,7 +115129,8 @@ var ReissueInvoicePreview$inboundSchema = z140.pipe(
115107
115129
  ),
115108
115130
  amount_due: number2(),
115109
115131
  issue_date: number2(),
115110
- due_date: nullable(number2())
115132
+ due_date: nullable(number2()),
115133
+ issue_method: ReissueInvoicePreviewIssueMethod$inboundSchema
115111
115134
  }),
115112
115135
  z140.transform((v) => {
115113
115136
  return remap(v, {
@@ -115115,7 +115138,8 @@ var ReissueInvoicePreview$inboundSchema = z140.pipe(
115115
115138
  "invoice_credits": "invoiceCredits",
115116
115139
  "amount_due": "amountDue",
115117
115140
  "issue_date": "issueDate",
115118
- "due_date": "dueDate"
115141
+ "due_date": "dueDate",
115142
+ "issue_method": "issueMethod"
115119
115143
  });
115120
115144
  })
115121
115145
  );
@@ -141470,10 +141494,10 @@ var previewAttachParamsSchema = import_v412.z.object({
141470
141494
  removeDiscounts: import_v412.z.union([import_v412.z.array(previewAttachRemoveDiscountSchema), import_v412.z.undefined()]).optional()
141471
141495
  });
141472
141496
  var previewAttachTypeSchema = openEnumSchema9;
141473
- var previewAttachIssueMethodResponseSchema = openEnumSchema9;
141497
+ var previewAttachImmediateInvoiceIssueMethodSchema = openEnumSchema9;
141474
141498
  var previewAttachPreviewImmediateInvoiceSchema = import_v412.z.object({
141475
141499
  type: previewAttachTypeSchema,
141476
- issueMethod: previewAttachIssueMethodResponseSchema.nullable()
141500
+ issueMethod: previewAttachImmediateInvoiceIssueMethodSchema.nullable()
141477
141501
  });
141478
141502
  var previewAttachIncomingSchema = import_v412.z.object({
141479
141503
  planId: import_v412.z.string(),
@@ -141509,6 +141533,7 @@ var previewAttachResponseSchema = import_v412.z.object({
141509
141533
  immediateInvoice: previewAttachPreviewImmediateInvoiceSchema,
141510
141534
  resetsUsage: import_v412.z.union([import_v412.z.boolean(), import_v412.z.undefined()]).optional(),
141511
141535
  nextCycle: import_v412.z.union([previewAttachNextCycleSchema, import_v412.z.undefined()]).optional(),
141536
+ requiresPaymentMethod: import_v412.z.union([import_v412.z.boolean(), import_v412.z.undefined()]).optional(),
141512
141537
  expand: import_v412.z.union([import_v412.z.array(import_v412.z.string()), import_v412.z.undefined()]).optional(),
141513
141538
  incoming: import_v412.z.array(previewAttachIncomingSchema),
141514
141539
  outgoing: import_v412.z.array(previewAttachOutgoingSchema),
@@ -142170,10 +142195,10 @@ var previewMultiAttachParamsSchema = import_v413.z.object({
142170
142195
  entityData: import_v413.z.union([previewMultiAttachEntityDataSchema, import_v413.z.undefined()]).optional()
142171
142196
  });
142172
142197
  var previewMultiAttachTypeSchema = openEnumSchema10;
142173
- var previewMultiAttachIssueMethodResponseSchema = openEnumSchema10;
142198
+ var previewMultiAttachImmediateInvoiceIssueMethodSchema = openEnumSchema10;
142174
142199
  var previewMultiAttachPreviewImmediateInvoiceSchema = import_v413.z.object({
142175
142200
  type: previewMultiAttachTypeSchema,
142176
- issueMethod: previewMultiAttachIssueMethodResponseSchema.nullable()
142201
+ issueMethod: previewMultiAttachImmediateInvoiceIssueMethodSchema.nullable()
142177
142202
  });
142178
142203
  var previewMultiAttachIncomingSchema = import_v413.z.object({
142179
142204
  planId: import_v413.z.string(),
@@ -142209,6 +142234,7 @@ var previewMultiAttachResponseSchema = import_v413.z.object({
142209
142234
  immediateInvoice: previewMultiAttachPreviewImmediateInvoiceSchema,
142210
142235
  resetsUsage: import_v413.z.union([import_v413.z.boolean(), import_v413.z.undefined()]).optional(),
142211
142236
  nextCycle: import_v413.z.union([previewMultiAttachNextCycleSchema, import_v413.z.undefined()]).optional(),
142237
+ requiresPaymentMethod: import_v413.z.union([import_v413.z.boolean(), import_v413.z.undefined()]).optional(),
142212
142238
  expand: import_v413.z.union([import_v413.z.array(import_v413.z.string()), import_v413.z.undefined()]).optional(),
142213
142239
  incoming: import_v413.z.array(previewMultiAttachIncomingSchema),
142214
142240
  outgoing: import_v413.z.array(previewMultiAttachOutgoingSchema),
@@ -142639,10 +142665,10 @@ var previewUpdateParamsSchema = import_v414.z.object({
142639
142665
  licenseQuantities: import_v414.z.union([import_v414.z.array(previewUpdateLicenseQuantitySchema), import_v414.z.undefined()]).optional()
142640
142666
  });
142641
142667
  var previewUpdateTypeSchema = openEnumSchema11;
142642
- var previewUpdateIssueMethodResponseSchema = openEnumSchema11;
142668
+ var previewUpdateImmediateInvoiceIssueMethodSchema = openEnumSchema11;
142643
142669
  var previewUpdatePreviewImmediateInvoiceSchema = import_v414.z.object({
142644
142670
  type: previewUpdateTypeSchema,
142645
- issueMethod: previewUpdateIssueMethodResponseSchema.nullable()
142671
+ issueMethod: previewUpdateImmediateInvoiceIssueMethodSchema.nullable()
142646
142672
  });
142647
142673
  var previewUpdateIncomingSchema = import_v414.z.object({
142648
142674
  planId: import_v414.z.string(),
@@ -142678,6 +142704,7 @@ var previewUpdateResponseSchema = import_v414.z.object({
142678
142704
  immediateInvoice: previewUpdatePreviewImmediateInvoiceSchema,
142679
142705
  resetsUsage: import_v414.z.union([import_v414.z.boolean(), import_v414.z.undefined()]).optional(),
142680
142706
  nextCycle: import_v414.z.union([previewUpdateNextCycleSchema, import_v414.z.undefined()]).optional(),
142707
+ requiresPaymentMethod: import_v414.z.union([import_v414.z.boolean(), import_v414.z.undefined()]).optional(),
142681
142708
  expand: import_v414.z.union([import_v414.z.array(import_v414.z.string()), import_v414.z.undefined()]).optional(),
142682
142709
  incoming: import_v414.z.array(previewUpdateIncomingSchema),
142683
142710
  outgoing: import_v414.z.array(previewUpdateOutgoingSchema),