autumn-js 1.3.36 → 1.3.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 (63) hide show
  1. package/dist/backend/adapters/express.js +18 -2
  2. package/dist/backend/adapters/express.mjs +4 -4
  3. package/dist/backend/adapters/fetch.js +18 -2
  4. package/dist/backend/adapters/fetch.mjs +4 -4
  5. package/dist/backend/adapters/hono.js +18 -2
  6. package/dist/backend/adapters/hono.mjs +4 -4
  7. package/dist/backend/adapters/index.js +18 -2
  8. package/dist/backend/adapters/index.mjs +7 -7
  9. package/dist/backend/adapters/next.js +18 -2
  10. package/dist/backend/adapters/next.mjs +4 -4
  11. package/dist/backend/{chunk-V5XHIF3U.mjs → chunk-5O52SB6D.mjs} +1 -1
  12. package/dist/backend/{chunk-VD6R3EJF.mjs → chunk-FFYCTJNC.mjs} +1 -1
  13. package/dist/backend/{chunk-XYF4XA2S.mjs → chunk-FHTBT3PQ.mjs} +18 -2
  14. package/dist/backend/{chunk-JMH5BMF6.mjs → chunk-R3K32CGC.mjs} +1 -1
  15. package/dist/backend/{chunk-YIJUI4UU.mjs → chunk-U3ZGNGOC.mjs} +1 -1
  16. package/dist/backend/{chunk-OTKO27NT.mjs → chunk-UMFFNC2A.mjs} +1 -1
  17. package/dist/backend/{chunk-64OF5EVZ.mjs → chunk-WEQOYACF.mjs} +1 -1
  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 +18 -2
  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 +18 -2
  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 +18 -2
  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 +18 -2
  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 +18 -2
  49. package/dist/backend/index.mjs +3 -3
  50. package/dist/backend/{routeTypes-DBKyYIgR.d.mts → routeTypes-DCQKUwXj.d.mts} +32 -0
  51. package/dist/backend/{routeTypes-OBaKFzEA.d.ts → routeTypes-DZCHHDxf.d.ts} +32 -0
  52. package/dist/better-auth/{chunk-AWKYPF6T.mjs → chunk-45DYRSXB.mjs} +18 -2
  53. package/dist/better-auth/index.js +18 -2
  54. package/dist/better-auth/index.mjs +1 -1
  55. package/dist/better-auth/utils/handleBetterAuthRoute.js +18 -2
  56. package/dist/better-auth/utils/handleBetterAuthRoute.mjs +1 -1
  57. package/dist/better-auth/utils/index.js +18 -2
  58. package/dist/better-auth/utils/index.mjs +1 -1
  59. package/dist/sdk/index.d.mts +39 -1
  60. package/dist/sdk/index.d.ts +39 -1
  61. package/dist/sdk/index.js +22 -2
  62. package/dist/sdk/index.mjs +19 -3
  63. package/package.json +2 -2
@@ -13343,6 +13343,18 @@ type CreateInvoiceAttachDiscount = {
13343
13343
  */
13344
13344
  promotionCode?: string | undefined;
13345
13345
  };
13346
+ /**
13347
+ * draft leaves the invoice editable. finalize opens it without Stripe emailing, reminding or charging (auto_advance off). send opens it with auto_advance on. Defaults to send.
13348
+ */
13349
+ declare const CreateInvoiceIssueMethod: {
13350
+ readonly Draft: "draft";
13351
+ readonly Finalize: "finalize";
13352
+ readonly Send: "send";
13353
+ };
13354
+ /**
13355
+ * draft leaves the invoice editable. finalize opens it without Stripe emailing, reminding or charging (auto_advance off). send opens it with auto_advance on. Defaults to send.
13356
+ */
13357
+ type CreateInvoiceIssueMethod = ClosedEnum<typeof CreateInvoiceIssueMethod>;
13346
13358
  type CreateInvoiceParams = {
13347
13359
  /**
13348
13360
  * The customer to invoice.
@@ -13389,6 +13401,10 @@ type CreateInvoiceParams = {
13389
13401
  * If true, returns the calculated lines and totals without creating an invoice.
13390
13402
  */
13391
13403
  preview?: boolean | undefined;
13404
+ /**
13405
+ * draft leaves the invoice editable. finalize opens it without Stripe emailing, reminding or charging (auto_advance off). send opens it with auto_advance on. Defaults to send.
13406
+ */
13407
+ issueMethod?: CreateInvoiceIssueMethod | undefined;
13392
13408
  };
13393
13409
  /**
13394
13410
  * The billing processor that owns this invoice.
@@ -49243,6 +49259,18 @@ type RefreshKeyResponse = {
49243
49259
  refreshExpiresAt?: number | undefined;
49244
49260
  };
49245
49261
 
49262
+ /**
49263
+ * How far the replacement advances: draft, finalize (opened without emails, reminders or charges) or send. Defaults to send. The original is retired either way.
49264
+ */
49265
+ declare const ReissueInvoiceIssueMethod: {
49266
+ readonly Draft: "draft";
49267
+ readonly Finalize: "finalize";
49268
+ readonly Send: "send";
49269
+ };
49270
+ /**
49271
+ * How far the replacement advances: draft, finalize (opened without emails, reminders or charges) or send. Defaults to send. The original is retired either way.
49272
+ */
49273
+ type ReissueInvoiceIssueMethod = ClosedEnum<typeof ReissueInvoiceIssueMethod>;
49246
49274
  type CustomField = {
49247
49275
  name: string;
49248
49276
  value: string;
@@ -49953,6 +49981,10 @@ type ReissueInvoiceParams = {
49953
49981
  * If true, returns the replacement invoice's lines and totals without voiding anything or issuing it.
49954
49982
  */
49955
49983
  preview?: boolean | undefined;
49984
+ /**
49985
+ * How far the replacement advances: draft, finalize (opened without emails, reminders or charges) or send. Defaults to send. The original is retired either way.
49986
+ */
49987
+ issueMethod?: ReissueInvoiceIssueMethod | undefined;
49956
49988
  /**
49957
49989
  * Updates the customer's billing email before the replacement is issued, so Stripe sends the new invoice to this address.
49958
49990
  */
@@ -13343,6 +13343,18 @@ type CreateInvoiceAttachDiscount = {
13343
13343
  */
13344
13344
  promotionCode?: string | undefined;
13345
13345
  };
13346
+ /**
13347
+ * draft leaves the invoice editable. finalize opens it without Stripe emailing, reminding or charging (auto_advance off). send opens it with auto_advance on. Defaults to send.
13348
+ */
13349
+ declare const CreateInvoiceIssueMethod: {
13350
+ readonly Draft: "draft";
13351
+ readonly Finalize: "finalize";
13352
+ readonly Send: "send";
13353
+ };
13354
+ /**
13355
+ * draft leaves the invoice editable. finalize opens it without Stripe emailing, reminding or charging (auto_advance off). send opens it with auto_advance on. Defaults to send.
13356
+ */
13357
+ type CreateInvoiceIssueMethod = ClosedEnum<typeof CreateInvoiceIssueMethod>;
13346
13358
  type CreateInvoiceParams = {
13347
13359
  /**
13348
13360
  * The customer to invoice.
@@ -13389,6 +13401,10 @@ type CreateInvoiceParams = {
13389
13401
  * If true, returns the calculated lines and totals without creating an invoice.
13390
13402
  */
13391
13403
  preview?: boolean | undefined;
13404
+ /**
13405
+ * draft leaves the invoice editable. finalize opens it without Stripe emailing, reminding or charging (auto_advance off). send opens it with auto_advance on. Defaults to send.
13406
+ */
13407
+ issueMethod?: CreateInvoiceIssueMethod | undefined;
13392
13408
  };
13393
13409
  /**
13394
13410
  * The billing processor that owns this invoice.
@@ -49243,6 +49259,18 @@ type RefreshKeyResponse = {
49243
49259
  refreshExpiresAt?: number | undefined;
49244
49260
  };
49245
49261
 
49262
+ /**
49263
+ * How far the replacement advances: draft, finalize (opened without emails, reminders or charges) or send. Defaults to send. The original is retired either way.
49264
+ */
49265
+ declare const ReissueInvoiceIssueMethod: {
49266
+ readonly Draft: "draft";
49267
+ readonly Finalize: "finalize";
49268
+ readonly Send: "send";
49269
+ };
49270
+ /**
49271
+ * How far the replacement advances: draft, finalize (opened without emails, reminders or charges) or send. Defaults to send. The original is retired either way.
49272
+ */
49273
+ type ReissueInvoiceIssueMethod = ClosedEnum<typeof ReissueInvoiceIssueMethod>;
49246
49274
  type CustomField = {
49247
49275
  name: string;
49248
49276
  value: string;
@@ -49953,6 +49981,10 @@ type ReissueInvoiceParams = {
49953
49981
  * If true, returns the replacement invoice's lines and totals without voiding anything or issuing it.
49954
49982
  */
49955
49983
  preview?: boolean | undefined;
49984
+ /**
49985
+ * How far the replacement advances: draft, finalize (opened without emails, reminders or charges) or send. Defaults to send. The original is retired either way.
49986
+ */
49987
+ issueMethod?: ReissueInvoiceIssueMethod | undefined;
49956
49988
  /**
49957
49989
  * Updates the customer's billing email before the replacement is issued, so Stripe sends the new invoice to this address.
49958
49990
  */
@@ -11796,6 +11796,11 @@ var CreateInvoiceLicenseQuantityBillingBehavior = {
11796
11796
  Prepaid: "prepaid",
11797
11797
  UsageBased: "usage_based"
11798
11798
  };
11799
+ var CreateInvoiceIssueMethod = {
11800
+ Draft: "draft",
11801
+ Finalize: "finalize",
11802
+ Send: "send"
11803
+ };
11799
11804
  var CreateInvoiceProcessorType = {
11800
11805
  Stripe: "stripe",
11801
11806
  Revenuecat: "revenuecat"
@@ -12301,6 +12306,7 @@ var CreateInvoiceAttachDiscount$outboundSchema = z26.pipe(
12301
12306
  });
12302
12307
  })
12303
12308
  );
12309
+ var CreateInvoiceIssueMethod$outboundSchema = z26.enum(CreateInvoiceIssueMethod);
12304
12310
  var CreateInvoiceParams$outboundSchema = z26.pipe(
12305
12311
  z26.object({
12306
12312
  customerId: z26.string(),
@@ -12318,7 +12324,8 @@ var CreateInvoiceParams$outboundSchema = z26.pipe(
12318
12324
  taxRateId: z26.optional(z26.string()),
12319
12325
  periodStart: z26.optional(z26.int()),
12320
12326
  periodEnd: z26.optional(z26.int()),
12321
- preview: z26.optional(z26.boolean())
12327
+ preview: z26.optional(z26.boolean()),
12328
+ issueMethod: z26.optional(CreateInvoiceIssueMethod$outboundSchema)
12322
12329
  }),
12323
12330
  z26.transform((v) => {
12324
12331
  return remap(v, {
@@ -12330,7 +12337,8 @@ var CreateInvoiceParams$outboundSchema = z26.pipe(
12330
12337
  dueDate: "due_date",
12331
12338
  taxRateId: "tax_rate_id",
12332
12339
  periodStart: "period_start",
12333
- periodEnd: "period_end"
12340
+ periodEnd: "period_end",
12341
+ issueMethod: "issue_method"
12334
12342
  });
12335
12343
  })
12336
12344
  );
@@ -41998,6 +42006,11 @@ var RefreshKeyResponse$inboundSchema = z97.pipe(
41998
42006
 
41999
42007
  // ../sdk/src/models/reissue-invoice-op.ts
42000
42008
  import * as z98 from "zod/v4-mini";
42009
+ var ReissueInvoiceIssueMethod = {
42010
+ Draft: "draft",
42011
+ Finalize: "finalize",
42012
+ Send: "send"
42013
+ };
42001
42014
  var PaymentMethodType = {
42002
42015
  Card: "card",
42003
42016
  CustomerBalance: "customer_balance",
@@ -42064,6 +42077,7 @@ var ReissueInvoiceStatus = {
42064
42077
  Complete: "complete",
42065
42078
  Incomplete: "incomplete"
42066
42079
  };
42080
+ var ReissueInvoiceIssueMethod$outboundSchema = z98.enum(ReissueInvoiceIssueMethod);
42067
42081
  var CustomField$outboundSchema = z98.object({
42068
42082
  name: z98.string(),
42069
42083
  value: z98.string()
@@ -42655,6 +42669,7 @@ var ReissueInvoiceParams$outboundSchema = z98.pipe(
42655
42669
  invoiceTemplateId: z98.optional(z98.string()),
42656
42670
  netTermsDays: z98.optional(z98.int()),
42657
42671
  preview: z98.optional(z98.boolean()),
42672
+ issueMethod: z98.optional(ReissueInvoiceIssueMethod$outboundSchema),
42658
42673
  updateCustomerEmail: z98.optional(z98.string()),
42659
42674
  invoice: z98.optional(
42660
42675
  z98.lazy(() => ReissueInvoiceInvoiceRequestBody$outboundSchema)
@@ -42667,6 +42682,7 @@ var ReissueInvoiceParams$outboundSchema = z98.pipe(
42667
42682
  invoiceId: "invoice_id",
42668
42683
  invoiceTemplateId: "invoice_template_id",
42669
42684
  netTermsDays: "net_terms_days",
42685
+ issueMethod: "issue_method",
42670
42686
  updateCustomerEmail: "update_customer_email"
42671
42687
  });
42672
42688
  })
@@ -18644,6 +18644,11 @@ var CreateInvoiceLicenseQuantityBillingBehavior = {
18644
18644
  Prepaid: "prepaid",
18645
18645
  UsageBased: "usage_based"
18646
18646
  };
18647
+ var CreateInvoiceIssueMethod = {
18648
+ Draft: "draft",
18649
+ Finalize: "finalize",
18650
+ Send: "send"
18651
+ };
18647
18652
  var CreateInvoiceProcessorType = {
18648
18653
  Stripe: "stripe",
18649
18654
  Revenuecat: "revenuecat"
@@ -19149,6 +19154,7 @@ var CreateInvoiceAttachDiscount$outboundSchema = z45.pipe(
19149
19154
  });
19150
19155
  })
19151
19156
  );
19157
+ var CreateInvoiceIssueMethod$outboundSchema = z45.enum(CreateInvoiceIssueMethod);
19152
19158
  var CreateInvoiceParams$outboundSchema = z45.pipe(
19153
19159
  z45.object({
19154
19160
  customerId: z45.string(),
@@ -19166,7 +19172,8 @@ var CreateInvoiceParams$outboundSchema = z45.pipe(
19166
19172
  taxRateId: z45.optional(z45.string()),
19167
19173
  periodStart: z45.optional(z45.int()),
19168
19174
  periodEnd: z45.optional(z45.int()),
19169
- preview: z45.optional(z45.boolean())
19175
+ preview: z45.optional(z45.boolean()),
19176
+ issueMethod: z45.optional(CreateInvoiceIssueMethod$outboundSchema)
19170
19177
  }),
19171
19178
  z45.transform((v) => {
19172
19179
  return remap(v, {
@@ -19178,7 +19185,8 @@ var CreateInvoiceParams$outboundSchema = z45.pipe(
19178
19185
  dueDate: "due_date",
19179
19186
  taxRateId: "tax_rate_id",
19180
19187
  periodStart: "period_start",
19181
- periodEnd: "period_end"
19188
+ periodEnd: "period_end",
19189
+ issueMethod: "issue_method"
19182
19190
  });
19183
19191
  })
19184
19192
  );
@@ -48846,6 +48854,11 @@ var RefreshKeyResponse$inboundSchema = z116.pipe(
48846
48854
 
48847
48855
  // ../sdk/src/models/reissue-invoice-op.ts
48848
48856
  var z117 = __toESM(require("zod/v4-mini"), 1);
48857
+ var ReissueInvoiceIssueMethod = {
48858
+ Draft: "draft",
48859
+ Finalize: "finalize",
48860
+ Send: "send"
48861
+ };
48849
48862
  var PaymentMethodType = {
48850
48863
  Card: "card",
48851
48864
  CustomerBalance: "customer_balance",
@@ -48912,6 +48925,7 @@ var ReissueInvoiceStatus = {
48912
48925
  Complete: "complete",
48913
48926
  Incomplete: "incomplete"
48914
48927
  };
48928
+ var ReissueInvoiceIssueMethod$outboundSchema = z117.enum(ReissueInvoiceIssueMethod);
48915
48929
  var CustomField$outboundSchema = z117.object({
48916
48930
  name: z117.string(),
48917
48931
  value: z117.string()
@@ -49503,6 +49517,7 @@ var ReissueInvoiceParams$outboundSchema = z117.pipe(
49503
49517
  invoiceTemplateId: z117.optional(z117.string()),
49504
49518
  netTermsDays: z117.optional(z117.int()),
49505
49519
  preview: z117.optional(z117.boolean()),
49520
+ issueMethod: z117.optional(ReissueInvoiceIssueMethod$outboundSchema),
49506
49521
  updateCustomerEmail: z117.optional(z117.string()),
49507
49522
  invoice: z117.optional(
49508
49523
  z117.lazy(() => ReissueInvoiceInvoiceRequestBody$outboundSchema)
@@ -49515,6 +49530,7 @@ var ReissueInvoiceParams$outboundSchema = z117.pipe(
49515
49530
  invoiceId: "invoice_id",
49516
49531
  invoiceTemplateId: "invoice_template_id",
49517
49532
  netTermsDays: "net_terms_days",
49533
+ issueMethod: "issue_method",
49518
49534
  updateCustomerEmail: "update_customer_email"
49519
49535
  });
49520
49536
  })
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk-MODSHKUF.mjs";
5
5
  import {
6
6
  createHandleBetterAuthRoute
7
- } from "./chunk-AWKYPF6T.mjs";
7
+ } from "./chunk-45DYRSXB.mjs";
8
8
  import "./chunk-J2WYVGHS.mjs";
9
9
  import "./chunk-H6C42YK7.mjs";
10
10
  import "./chunk-BT3EAYVW.mjs";
@@ -11815,6 +11815,11 @@ var CreateInvoiceLicenseQuantityBillingBehavior = {
11815
11815
  Prepaid: "prepaid",
11816
11816
  UsageBased: "usage_based"
11817
11817
  };
11818
+ var CreateInvoiceIssueMethod = {
11819
+ Draft: "draft",
11820
+ Finalize: "finalize",
11821
+ Send: "send"
11822
+ };
11818
11823
  var CreateInvoiceProcessorType = {
11819
11824
  Stripe: "stripe",
11820
11825
  Revenuecat: "revenuecat"
@@ -12320,6 +12325,7 @@ var CreateInvoiceAttachDiscount$outboundSchema = z26.pipe(
12320
12325
  });
12321
12326
  })
12322
12327
  );
12328
+ var CreateInvoiceIssueMethod$outboundSchema = z26.enum(CreateInvoiceIssueMethod);
12323
12329
  var CreateInvoiceParams$outboundSchema = z26.pipe(
12324
12330
  z26.object({
12325
12331
  customerId: z26.string(),
@@ -12337,7 +12343,8 @@ var CreateInvoiceParams$outboundSchema = z26.pipe(
12337
12343
  taxRateId: z26.optional(z26.string()),
12338
12344
  periodStart: z26.optional(z26.int()),
12339
12345
  periodEnd: z26.optional(z26.int()),
12340
- preview: z26.optional(z26.boolean())
12346
+ preview: z26.optional(z26.boolean()),
12347
+ issueMethod: z26.optional(CreateInvoiceIssueMethod$outboundSchema)
12341
12348
  }),
12342
12349
  z26.transform((v) => {
12343
12350
  return remap(v, {
@@ -12349,7 +12356,8 @@ var CreateInvoiceParams$outboundSchema = z26.pipe(
12349
12356
  dueDate: "due_date",
12350
12357
  taxRateId: "tax_rate_id",
12351
12358
  periodStart: "period_start",
12352
- periodEnd: "period_end"
12359
+ periodEnd: "period_end",
12360
+ issueMethod: "issue_method"
12353
12361
  });
12354
12362
  })
12355
12363
  );
@@ -42017,6 +42025,11 @@ var RefreshKeyResponse$inboundSchema = z97.pipe(
42017
42025
 
42018
42026
  // ../sdk/src/models/reissue-invoice-op.ts
42019
42027
  var z98 = __toESM(require("zod/v4-mini"), 1);
42028
+ var ReissueInvoiceIssueMethod = {
42029
+ Draft: "draft",
42030
+ Finalize: "finalize",
42031
+ Send: "send"
42032
+ };
42020
42033
  var PaymentMethodType = {
42021
42034
  Card: "card",
42022
42035
  CustomerBalance: "customer_balance",
@@ -42083,6 +42096,7 @@ var ReissueInvoiceStatus = {
42083
42096
  Complete: "complete",
42084
42097
  Incomplete: "incomplete"
42085
42098
  };
42099
+ var ReissueInvoiceIssueMethod$outboundSchema = z98.enum(ReissueInvoiceIssueMethod);
42086
42100
  var CustomField$outboundSchema = z98.object({
42087
42101
  name: z98.string(),
42088
42102
  value: z98.string()
@@ -42674,6 +42688,7 @@ var ReissueInvoiceParams$outboundSchema = z98.pipe(
42674
42688
  invoiceTemplateId: z98.optional(z98.string()),
42675
42689
  netTermsDays: z98.optional(z98.int()),
42676
42690
  preview: z98.optional(z98.boolean()),
42691
+ issueMethod: z98.optional(ReissueInvoiceIssueMethod$outboundSchema),
42677
42692
  updateCustomerEmail: z98.optional(z98.string()),
42678
42693
  invoice: z98.optional(
42679
42694
  z98.lazy(() => ReissueInvoiceInvoiceRequestBody$outboundSchema)
@@ -42686,6 +42701,7 @@ var ReissueInvoiceParams$outboundSchema = z98.pipe(
42686
42701
  invoiceId: "invoice_id",
42687
42702
  invoiceTemplateId: "invoice_template_id",
42688
42703
  netTermsDays: "net_terms_days",
42704
+ issueMethod: "issue_method",
42689
42705
  updateCustomerEmail: "update_customer_email"
42690
42706
  });
42691
42707
  })
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  createHandleBetterAuthRoute
3
- } from "../chunk-AWKYPF6T.mjs";
3
+ } from "../chunk-45DYRSXB.mjs";
4
4
  import "../chunk-J2WYVGHS.mjs";
5
5
  import "../chunk-H6C42YK7.mjs";
6
6
  import "../chunk-BT3EAYVW.mjs";
@@ -18648,6 +18648,11 @@ var CreateInvoiceLicenseQuantityBillingBehavior = {
18648
18648
  Prepaid: "prepaid",
18649
18649
  UsageBased: "usage_based"
18650
18650
  };
18651
+ var CreateInvoiceIssueMethod = {
18652
+ Draft: "draft",
18653
+ Finalize: "finalize",
18654
+ Send: "send"
18655
+ };
18651
18656
  var CreateInvoiceProcessorType = {
18652
18657
  Stripe: "stripe",
18653
18658
  Revenuecat: "revenuecat"
@@ -19153,6 +19158,7 @@ var CreateInvoiceAttachDiscount$outboundSchema = z45.pipe(
19153
19158
  });
19154
19159
  })
19155
19160
  );
19161
+ var CreateInvoiceIssueMethod$outboundSchema = z45.enum(CreateInvoiceIssueMethod);
19156
19162
  var CreateInvoiceParams$outboundSchema = z45.pipe(
19157
19163
  z45.object({
19158
19164
  customerId: z45.string(),
@@ -19170,7 +19176,8 @@ var CreateInvoiceParams$outboundSchema = z45.pipe(
19170
19176
  taxRateId: z45.optional(z45.string()),
19171
19177
  periodStart: z45.optional(z45.int()),
19172
19178
  periodEnd: z45.optional(z45.int()),
19173
- preview: z45.optional(z45.boolean())
19179
+ preview: z45.optional(z45.boolean()),
19180
+ issueMethod: z45.optional(CreateInvoiceIssueMethod$outboundSchema)
19174
19181
  }),
19175
19182
  z45.transform((v) => {
19176
19183
  return remap(v, {
@@ -19182,7 +19189,8 @@ var CreateInvoiceParams$outboundSchema = z45.pipe(
19182
19189
  dueDate: "due_date",
19183
19190
  taxRateId: "tax_rate_id",
19184
19191
  periodStart: "period_start",
19185
- periodEnd: "period_end"
19192
+ periodEnd: "period_end",
19193
+ issueMethod: "issue_method"
19186
19194
  });
19187
19195
  })
19188
19196
  );
@@ -48850,6 +48858,11 @@ var RefreshKeyResponse$inboundSchema = z116.pipe(
48850
48858
 
48851
48859
  // ../sdk/src/models/reissue-invoice-op.ts
48852
48860
  var z117 = __toESM(require("zod/v4-mini"), 1);
48861
+ var ReissueInvoiceIssueMethod = {
48862
+ Draft: "draft",
48863
+ Finalize: "finalize",
48864
+ Send: "send"
48865
+ };
48853
48866
  var PaymentMethodType = {
48854
48867
  Card: "card",
48855
48868
  CustomerBalance: "customer_balance",
@@ -48916,6 +48929,7 @@ var ReissueInvoiceStatus = {
48916
48929
  Complete: "complete",
48917
48930
  Incomplete: "incomplete"
48918
48931
  };
48932
+ var ReissueInvoiceIssueMethod$outboundSchema = z117.enum(ReissueInvoiceIssueMethod);
48919
48933
  var CustomField$outboundSchema = z117.object({
48920
48934
  name: z117.string(),
48921
48935
  value: z117.string()
@@ -49507,6 +49521,7 @@ var ReissueInvoiceParams$outboundSchema = z117.pipe(
49507
49521
  invoiceTemplateId: z117.optional(z117.string()),
49508
49522
  netTermsDays: z117.optional(z117.int()),
49509
49523
  preview: z117.optional(z117.boolean()),
49524
+ issueMethod: z117.optional(ReissueInvoiceIssueMethod$outboundSchema),
49510
49525
  updateCustomerEmail: z117.optional(z117.string()),
49511
49526
  invoice: z117.optional(
49512
49527
  z117.lazy(() => ReissueInvoiceInvoiceRequestBody$outboundSchema)
@@ -49519,6 +49534,7 @@ var ReissueInvoiceParams$outboundSchema = z117.pipe(
49519
49534
  invoiceId: "invoice_id",
49520
49535
  invoiceTemplateId: "invoice_template_id",
49521
49536
  netTermsDays: "net_terms_days",
49537
+ issueMethod: "issue_method",
49522
49538
  updateCustomerEmail: "update_customer_email"
49523
49539
  });
49524
49540
  })
@@ -4,7 +4,7 @@ import {
4
4
  } from "../chunk-MODSHKUF.mjs";
5
5
  import {
6
6
  createHandleBetterAuthRoute
7
- } from "../chunk-AWKYPF6T.mjs";
7
+ } from "../chunk-45DYRSXB.mjs";
8
8
  import {
9
9
  resolveIdentityFromScope
10
10
  } from "../chunk-J2WYVGHS.mjs";