@openmeter/sdk 1.0.0-beta-2234b49dc147 → 1.0.0-beta-ef403716f3d7

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.
@@ -62,7 +62,7 @@ exports.listCustomerEntitlementGrantsV2QueryOrderDefault = exports.listCustomerE
62
62
  exports.OverrideCustomerEntitlementV2Body = exports.overrideCustomerEntitlementV2BodyThreeUsagePeriodOneIntervalOneOneRegExp = exports.overrideCustomerEntitlementV2BodyThreeFeatureIdRegExp = exports.overrideCustomerEntitlementV2BodyThreeFeatureKeyRegExp = exports.overrideCustomerEntitlementV2BodyThreeFeatureKeyMax = exports.overrideCustomerEntitlementV2BodyTwoUsagePeriodOneIntervalOneOneRegExp = exports.overrideCustomerEntitlementV2BodyTwoFeatureIdRegExp = exports.overrideCustomerEntitlementV2BodyTwoFeatureKeyRegExp = exports.overrideCustomerEntitlementV2BodyTwoFeatureKeyMax = exports.overrideCustomerEntitlementV2BodyOneGrantsItemExpirationOneCountMax = exports.overrideCustomerEntitlementV2BodyOneGrantsItemRecurrenceOneIntervalOneOneRegExp = exports.overrideCustomerEntitlementV2BodyOneGrantsItemMinRolloverAmountDefault = exports.overrideCustomerEntitlementV2BodyOneGrantsItemPriorityMax = exports.overrideCustomerEntitlementV2BodyOneGrantsItemAmountMin = exports.overrideCustomerEntitlementV2BodyOneIssueOnePriorityMax = exports.overrideCustomerEntitlementV2BodyOneIssueOnePriorityDefault = exports.overrideCustomerEntitlementV2BodyOneIssueOneAmountMin = exports.overrideCustomerEntitlementV2BodyOneIssueAfterResetPriorityMax = exports.overrideCustomerEntitlementV2BodyOneIssueAfterResetPriorityDefault = exports.overrideCustomerEntitlementV2BodyOneIssueAfterResetMin = exports.overrideCustomerEntitlementV2BodyOnePreserveOverageAtResetDefault = exports.overrideCustomerEntitlementV2BodyOneUsagePeriodOneIntervalOneOneRegExp = exports.overrideCustomerEntitlementV2BodyOneIsSoftLimitDefault = exports.overrideCustomerEntitlementV2BodyOneFeatureIdRegExp = exports.overrideCustomerEntitlementV2BodyOneFeatureKeyRegExp = exports.overrideCustomerEntitlementV2BodyOneFeatureKeyMax = exports.OverrideCustomerEntitlementV2Params = exports.overrideCustomerEntitlementV2PathEntitlementIdOrFeatureKeyTwoMax = exports.overrideCustomerEntitlementV2PathEntitlementIdOrFeatureKeyOneRegExp = exports.overrideCustomerEntitlementV2PathCustomerIdOrKeyTwoMax = exports.overrideCustomerEntitlementV2PathCustomerIdOrKeyOneRegExp = exports.GetCustomerEntitlementHistoryV2QueryParams = exports.getCustomerEntitlementHistoryV2QueryWindowTimeZoneDefault = exports.GetCustomerEntitlementHistoryV2Params = exports.getCustomerEntitlementHistoryV2PathEntitlementIdOrFeatureKeyRegExp = exports.getCustomerEntitlementHistoryV2PathEntitlementIdOrFeatureKeyMax = exports.getCustomerEntitlementHistoryV2PathCustomerIdOrKeyTwoMax = exports.getCustomerEntitlementHistoryV2PathCustomerIdOrKeyOneRegExp = exports.CreateCustomerEntitlementGrantV2Body = exports.createCustomerEntitlementGrantV2BodyExpirationOneCountMax = exports.createCustomerEntitlementGrantV2BodyRecurrenceOneIntervalOneOneRegExp = exports.createCustomerEntitlementGrantV2BodyMinRolloverAmountDefault = exports.createCustomerEntitlementGrantV2BodyPriorityMax = exports.createCustomerEntitlementGrantV2BodyAmountMin = exports.CreateCustomerEntitlementGrantV2Params = exports.createCustomerEntitlementGrantV2PathEntitlementIdOrFeatureKeyRegExp = exports.createCustomerEntitlementGrantV2PathEntitlementIdOrFeatureKeyMax = exports.createCustomerEntitlementGrantV2PathCustomerIdOrKeyTwoMax = exports.createCustomerEntitlementGrantV2PathCustomerIdOrKeyOneRegExp = exports.ListCustomerEntitlementGrantsV2QueryParams = void 0;
63
63
  exports.ListGrantsV2QueryParams = exports.listGrantsV2QueryOrderDefault = exports.listGrantsV2QueryLimitMax = exports.listGrantsV2QueryLimitDefault = exports.listGrantsV2QueryOffsetMin = exports.listGrantsV2QueryOffsetDefault = exports.listGrantsV2QueryPageSizeMax = exports.listGrantsV2QueryPageSizeDefault = exports.listGrantsV2QueryPageDefault = exports.listGrantsV2QueryIncludeDeletedDefault = exports.listGrantsV2QueryCustomerItemTwoMax = exports.listGrantsV2QueryCustomerItemOneRegExp = exports.ListEventsV2QueryParams = exports.listEventsV2QueryClientIdMax = exports.listEventsV2QueryLimitMax = exports.listEventsV2QueryLimitDefault = exports.GetEntitlementByIdV2Params = exports.getEntitlementByIdV2PathEntitlementIdRegExp = exports.ListEntitlementsV2QueryParams = exports.listEntitlementsV2QueryOrderDefault = exports.listEntitlementsV2QueryLimitMax = exports.listEntitlementsV2QueryLimitDefault = exports.listEntitlementsV2QueryOffsetMin = exports.listEntitlementsV2QueryOffsetDefault = exports.listEntitlementsV2QueryPageSizeMax = exports.listEntitlementsV2QueryPageSizeDefault = exports.listEntitlementsV2QueryPageDefault = exports.listEntitlementsV2QueryExcludeInactiveDefault = exports.GetCustomerEntitlementValueV2QueryParams = exports.GetCustomerEntitlementValueV2Params = exports.getCustomerEntitlementValueV2PathEntitlementIdOrFeatureKeyRegExp = exports.getCustomerEntitlementValueV2PathEntitlementIdOrFeatureKeyMax = exports.getCustomerEntitlementValueV2PathCustomerIdOrKeyTwoMax = exports.getCustomerEntitlementValueV2PathCustomerIdOrKeyOneRegExp = exports.ResetCustomerEntitlementUsageV2Body = exports.ResetCustomerEntitlementUsageV2Params = exports.resetCustomerEntitlementUsageV2PathEntitlementIdOrFeatureKeyRegExp = exports.resetCustomerEntitlementUsageV2PathEntitlementIdOrFeatureKeyMax = exports.resetCustomerEntitlementUsageV2PathCustomerIdOrKeyTwoMax = exports.resetCustomerEntitlementUsageV2PathCustomerIdOrKeyOneRegExp = void 0;
64
64
  /**
65
- * Generated by orval v8.2.0 🍺
65
+ * Generated by orval v8.5.3 🍺
66
66
  * Do not edit manually.
67
67
  * OpenMeter Cloud API
68
68
  * OpenMeter is a cloud native usage metering service.
@@ -212,6 +212,7 @@ exports.CreateAddonBody = zod
212
212
  .max(exports.createAddonBodyCurrencyOneMax)
213
213
  .regex(exports.createAddonBodyCurrencyOneRegExp)
214
214
  .describe('Three-letter [ISO4217](https://www.iso.org/iso-4217-currency-codes.html) currency code.\nCustom three-letter currency codes are also supported for convenience.')
215
+ .default(exports.createAddonBodyCurrencyDefault)
215
216
  .describe('The currency code of the add-on.'),
216
217
  description: zod.coerce
217
218
  .string()
@@ -376,7 +377,7 @@ exports.CreateAddonBody = zod
376
377
  .describe('The payment term of a flat price.\nOne of: in_advance or in_arrears.')
377
378
  .default(exports.createAddonBodyRateCardsItemOnePriceOnePaymentTermDefault)
378
379
  .describe('The payment term of the flat price.\nDefaults to in advance.'),
379
- type: zod.enum(['flat']),
380
+ type: zod.enum(['flat']).describe('The type of the price.'),
380
381
  })
381
382
  .describe('Flat price with payment term.')
382
383
  .nullable()
@@ -411,7 +412,9 @@ exports.CreateAddonBody = zod
411
412
  .describe('Set of provider specific tax configs.')
412
413
  .optional()
413
414
  .describe('The tax config of the rate card.\nWhen undefined, the tax config of the feature or the default tax config of the plan is used.'),
414
- type: zod.enum(['flat_fee']),
415
+ type: zod
416
+ .enum(['flat_fee'])
417
+ .describe('The type of the RateCard.'),
415
418
  })
416
419
  .describe('A flat fee rate card defines a one-time purchase or a recurring fee.'),
417
420
  zod
@@ -550,7 +553,9 @@ exports.CreateAddonBody = zod
550
553
  .describe('The payment term of a flat price.\nOne of: in_advance or in_arrears.')
551
554
  .default(exports.createAddonBodyRateCardsItemTwoPriceOneOnePaymentTermDefault)
552
555
  .describe('The payment term of the flat price.\nDefaults to in advance.'),
553
- type: zod.enum(['flat']),
556
+ type: zod
557
+ .enum(['flat'])
558
+ .describe('The type of the price.'),
554
559
  })
555
560
  .describe('Flat price with payment term.'),
556
561
  zod
@@ -572,7 +577,9 @@ exports.CreateAddonBody = zod
572
577
  .describe('Numeric represents an arbitrary precision number.')
573
578
  .optional()
574
579
  .describe('The customer is committed to spend at least the amount.'),
575
- type: zod.enum(['unit']),
580
+ type: zod
581
+ .enum(['unit'])
582
+ .describe('The type of the price.'),
576
583
  })
577
584
  .describe('Unit price with spend commitments.'),
578
585
  zod
@@ -634,7 +641,9 @@ exports.CreateAddonBody = zod
634
641
  .describe('A price tier.\nAt least one price component is required in each tier.'))
635
642
  .min(1)
636
643
  .describe('The tiers of the tiered price.\nAt least one price component is required in each tier.'),
637
- type: zod.enum(['tiered']),
644
+ type: zod
645
+ .enum(['tiered'])
646
+ .describe('The type of the price.\n\nOne of: flat, unit, or tiered.'),
638
647
  })
639
648
  .describe('Tiered price with spend commitments.'),
640
649
  zod
@@ -657,7 +666,9 @@ exports.CreateAddonBody = zod
657
666
  .describe('Numeric represents an arbitrary precision number.')
658
667
  .default(exports.createAddonBodyRateCardsItemTwoPriceOneFourMultiplierDefault)
659
668
  .describe('The multiplier to apply to the base price to get the dynamic price.\n\nExamples:\n- 0.0: the price is zero\n- 0.5: the price is 50% of the base price\n- 1.0: the price is the same as the base price\n- 1.5: the price is 150% of the base price'),
660
- type: zod.enum(['dynamic']),
669
+ type: zod
670
+ .enum(['dynamic'])
671
+ .describe('The type of the price.'),
661
672
  })
662
673
  .describe('Dynamic price with spend commitments.'),
663
674
  zod
@@ -684,7 +695,9 @@ exports.CreateAddonBody = zod
684
695
  .regex(exports.createAddonBodyRateCardsItemTwoPriceOneFiveQuantityPerPackageOneRegExp)
685
696
  .describe('Numeric represents an arbitrary precision number.')
686
697
  .describe('The quantity per package.'),
687
- type: zod.enum(['package']),
698
+ type: zod
699
+ .enum(['package'])
700
+ .describe('The type of the price.'),
688
701
  })
689
702
  .describe('Package price with spend commitments.'),
690
703
  ])
@@ -721,7 +734,9 @@ exports.CreateAddonBody = zod
721
734
  .describe('Set of provider specific tax configs.')
722
735
  .optional()
723
736
  .describe('The tax config of the rate card.\nWhen undefined, the tax config of the feature or the default tax config of the plan is used.'),
724
- type: zod.enum(['usage_based']),
737
+ type: zod
738
+ .enum(['usage_based'])
739
+ .describe('The type of the RateCard.'),
725
740
  })
726
741
  .describe('A usage-based rate card defines a price based on usage.'),
727
742
  ])
@@ -944,7 +959,7 @@ exports.UpdateAddonBody = zod
944
959
  .describe('The payment term of a flat price.\nOne of: in_advance or in_arrears.')
945
960
  .default(exports.updateAddonBodyRateCardsItemOnePriceOnePaymentTermDefault)
946
961
  .describe('The payment term of the flat price.\nDefaults to in advance.'),
947
- type: zod.enum(['flat']),
962
+ type: zod.enum(['flat']).describe('The type of the price.'),
948
963
  })
949
964
  .describe('Flat price with payment term.')
950
965
  .nullable()
@@ -979,7 +994,9 @@ exports.UpdateAddonBody = zod
979
994
  .describe('Set of provider specific tax configs.')
980
995
  .optional()
981
996
  .describe('The tax config of the rate card.\nWhen undefined, the tax config of the feature or the default tax config of the plan is used.'),
982
- type: zod.enum(['flat_fee']),
997
+ type: zod
998
+ .enum(['flat_fee'])
999
+ .describe('The type of the RateCard.'),
983
1000
  })
984
1001
  .describe('A flat fee rate card defines a one-time purchase or a recurring fee.'),
985
1002
  zod
@@ -1118,7 +1135,9 @@ exports.UpdateAddonBody = zod
1118
1135
  .describe('The payment term of a flat price.\nOne of: in_advance or in_arrears.')
1119
1136
  .default(exports.updateAddonBodyRateCardsItemTwoPriceOneOnePaymentTermDefault)
1120
1137
  .describe('The payment term of the flat price.\nDefaults to in advance.'),
1121
- type: zod.enum(['flat']),
1138
+ type: zod
1139
+ .enum(['flat'])
1140
+ .describe('The type of the price.'),
1122
1141
  })
1123
1142
  .describe('Flat price with payment term.'),
1124
1143
  zod
@@ -1140,7 +1159,9 @@ exports.UpdateAddonBody = zod
1140
1159
  .describe('Numeric represents an arbitrary precision number.')
1141
1160
  .optional()
1142
1161
  .describe('The customer is committed to spend at least the amount.'),
1143
- type: zod.enum(['unit']),
1162
+ type: zod
1163
+ .enum(['unit'])
1164
+ .describe('The type of the price.'),
1144
1165
  })
1145
1166
  .describe('Unit price with spend commitments.'),
1146
1167
  zod
@@ -1202,7 +1223,9 @@ exports.UpdateAddonBody = zod
1202
1223
  .describe('A price tier.\nAt least one price component is required in each tier.'))
1203
1224
  .min(1)
1204
1225
  .describe('The tiers of the tiered price.\nAt least one price component is required in each tier.'),
1205
- type: zod.enum(['tiered']),
1226
+ type: zod
1227
+ .enum(['tiered'])
1228
+ .describe('The type of the price.\n\nOne of: flat, unit, or tiered.'),
1206
1229
  })
1207
1230
  .describe('Tiered price with spend commitments.'),
1208
1231
  zod
@@ -1225,7 +1248,9 @@ exports.UpdateAddonBody = zod
1225
1248
  .describe('Numeric represents an arbitrary precision number.')
1226
1249
  .default(exports.updateAddonBodyRateCardsItemTwoPriceOneFourMultiplierDefault)
1227
1250
  .describe('The multiplier to apply to the base price to get the dynamic price.\n\nExamples:\n- 0.0: the price is zero\n- 0.5: the price is 50% of the base price\n- 1.0: the price is the same as the base price\n- 1.5: the price is 150% of the base price'),
1228
- type: zod.enum(['dynamic']),
1251
+ type: zod
1252
+ .enum(['dynamic'])
1253
+ .describe('The type of the price.'),
1229
1254
  })
1230
1255
  .describe('Dynamic price with spend commitments.'),
1231
1256
  zod
@@ -1252,7 +1277,9 @@ exports.UpdateAddonBody = zod
1252
1277
  .regex(exports.updateAddonBodyRateCardsItemTwoPriceOneFiveQuantityPerPackageOneRegExp)
1253
1278
  .describe('Numeric represents an arbitrary precision number.')
1254
1279
  .describe('The quantity per package.'),
1255
- type: zod.enum(['package']),
1280
+ type: zod
1281
+ .enum(['package'])
1282
+ .describe('The type of the price.'),
1256
1283
  })
1257
1284
  .describe('Package price with spend commitments.'),
1258
1285
  ])
@@ -1289,7 +1316,9 @@ exports.UpdateAddonBody = zod
1289
1316
  .describe('Set of provider specific tax configs.')
1290
1317
  .optional()
1291
1318
  .describe('The tax config of the rate card.\nWhen undefined, the tax config of the feature or the default tax config of the plan is used.'),
1292
- type: zod.enum(['usage_based']),
1319
+ type: zod
1320
+ .enum(['usage_based'])
1321
+ .describe('The type of the RateCard.'),
1293
1322
  })
1294
1323
  .describe('A usage-based rate card defines a price based on usage.'),
1295
1324
  ])
@@ -1534,7 +1563,7 @@ exports.UpdateAppBody = zod
1534
1563
  .string()
1535
1564
  .optional()
1536
1565
  .describe('The Stripe API key.'),
1537
- type: zod.enum(['stripe']),
1566
+ type: zod.enum(['stripe']).describe("The app's type is Stripe."),
1538
1567
  })
1539
1568
  .describe('Resource update operation model.'),
1540
1569
  zod
@@ -1554,7 +1583,7 @@ exports.UpdateAppBody = zod
1554
1583
  .min(1)
1555
1584
  .max(exports.updateAppBodyTwoNameMax)
1556
1585
  .describe('Human-readable name for the resource. Between 1 and 256 characters.'),
1557
- type: zod.enum(['sandbox']),
1586
+ type: zod.enum(['sandbox']).describe("The app's type is Sandbox."),
1558
1587
  })
1559
1588
  .describe('Resource update operation model.'),
1560
1589
  zod
@@ -1580,7 +1609,9 @@ exports.UpdateAppBody = zod
1580
1609
  .min(1)
1581
1610
  .max(exports.updateAppBodyThreeNameMax)
1582
1611
  .describe('Human-readable name for the resource. Between 1 and 256 characters.'),
1583
- type: zod.enum(['custom_invoicing']),
1612
+ type: zod
1613
+ .enum(['custom_invoicing'])
1614
+ .describe("The app's type is CustomInvoicing."),
1584
1615
  })
1585
1616
  .describe('Resource update operation model.'),
1586
1617
  ])
@@ -1899,7 +1930,7 @@ exports.CreatePendingInvoiceLineBody = zod
1899
1930
  .describe('The payment term of a flat price.\nOne of: in_advance or in_arrears.')
1900
1931
  .default(exports.createPendingInvoiceLineBodyLinesItemPriceOneOnePaymentTermDefault)
1901
1932
  .describe('The payment term of the flat price.\nDefaults to in advance.'),
1902
- type: zod.enum(['flat']),
1933
+ type: zod.enum(['flat']).describe('The type of the price.'),
1903
1934
  })
1904
1935
  .describe('Flat price with payment term.'),
1905
1936
  zod
@@ -1921,7 +1952,7 @@ exports.CreatePendingInvoiceLineBody = zod
1921
1952
  .describe('Numeric represents an arbitrary precision number.')
1922
1953
  .optional()
1923
1954
  .describe('The customer is committed to spend at least the amount.'),
1924
- type: zod.enum(['unit']),
1955
+ type: zod.enum(['unit']).describe('The type of the price.'),
1925
1956
  })
1926
1957
  .describe('Unit price with spend commitments.'),
1927
1958
  zod
@@ -1983,7 +2014,9 @@ exports.CreatePendingInvoiceLineBody = zod
1983
2014
  .describe('A price tier.\nAt least one price component is required in each tier.'))
1984
2015
  .min(1)
1985
2016
  .describe('The tiers of the tiered price.\nAt least one price component is required in each tier.'),
1986
- type: zod.enum(['tiered']),
2017
+ type: zod
2018
+ .enum(['tiered'])
2019
+ .describe('The type of the price.\n\nOne of: flat, unit, or tiered.'),
1987
2020
  })
1988
2021
  .describe('Tiered price with spend commitments.'),
1989
2022
  zod
@@ -2006,7 +2039,9 @@ exports.CreatePendingInvoiceLineBody = zod
2006
2039
  .describe('Numeric represents an arbitrary precision number.')
2007
2040
  .default(exports.createPendingInvoiceLineBodyLinesItemPriceOneFourMultiplierDefault)
2008
2041
  .describe('The multiplier to apply to the base price to get the dynamic price.\n\nExamples:\n- 0.0: the price is zero\n- 0.5: the price is 50% of the base price\n- 1.0: the price is the same as the base price\n- 1.5: the price is 150% of the base price'),
2009
- type: zod.enum(['dynamic']),
2042
+ type: zod
2043
+ .enum(['dynamic'])
2044
+ .describe('The type of the price.'),
2010
2045
  })
2011
2046
  .describe('Dynamic price with spend commitments.'),
2012
2047
  zod
@@ -2033,7 +2068,9 @@ exports.CreatePendingInvoiceLineBody = zod
2033
2068
  .regex(exports.createPendingInvoiceLineBodyLinesItemPriceOneFiveQuantityPerPackageOneRegExp)
2034
2069
  .describe('Numeric represents an arbitrary precision number.')
2035
2070
  .describe('The quantity per package.'),
2036
- type: zod.enum(['package']),
2071
+ type: zod
2072
+ .enum(['package'])
2073
+ .describe('The type of the price.'),
2037
2074
  })
2038
2075
  .describe('Package price with spend commitments.'),
2039
2076
  ])
@@ -2100,7 +2137,9 @@ exports.CreatePendingInvoiceLineBody = zod
2100
2137
  .describe('The payment term of a flat price.\nOne of: in_advance or in_arrears.')
2101
2138
  .default(exports.createPendingInvoiceLineBodyLinesItemRateCardOnePriceOneOnePaymentTermDefault)
2102
2139
  .describe('The payment term of the flat price.\nDefaults to in advance.'),
2103
- type: zod.enum(['flat']),
2140
+ type: zod
2141
+ .enum(['flat'])
2142
+ .describe('The type of the price.'),
2104
2143
  })
2105
2144
  .describe('Flat price with payment term.'),
2106
2145
  zod
@@ -2122,7 +2161,9 @@ exports.CreatePendingInvoiceLineBody = zod
2122
2161
  .describe('Numeric represents an arbitrary precision number.')
2123
2162
  .optional()
2124
2163
  .describe('The customer is committed to spend at least the amount.'),
2125
- type: zod.enum(['unit']),
2164
+ type: zod
2165
+ .enum(['unit'])
2166
+ .describe('The type of the price.'),
2126
2167
  })
2127
2168
  .describe('Unit price with spend commitments.'),
2128
2169
  zod
@@ -2184,7 +2225,9 @@ exports.CreatePendingInvoiceLineBody = zod
2184
2225
  .describe('A price tier.\nAt least one price component is required in each tier.'))
2185
2226
  .min(1)
2186
2227
  .describe('The tiers of the tiered price.\nAt least one price component is required in each tier.'),
2187
- type: zod.enum(['tiered']),
2228
+ type: zod
2229
+ .enum(['tiered'])
2230
+ .describe('The type of the price.\n\nOne of: flat, unit, or tiered.'),
2188
2231
  })
2189
2232
  .describe('Tiered price with spend commitments.'),
2190
2233
  zod
@@ -2207,7 +2250,9 @@ exports.CreatePendingInvoiceLineBody = zod
2207
2250
  .describe('Numeric represents an arbitrary precision number.')
2208
2251
  .default(exports.createPendingInvoiceLineBodyLinesItemRateCardOnePriceOneFourMultiplierDefault)
2209
2252
  .describe('The multiplier to apply to the base price to get the dynamic price.\n\nExamples:\n- 0.0: the price is zero\n- 0.5: the price is 50% of the base price\n- 1.0: the price is the same as the base price\n- 1.5: the price is 150% of the base price'),
2210
- type: zod.enum(['dynamic']),
2253
+ type: zod
2254
+ .enum(['dynamic'])
2255
+ .describe('The type of the price.'),
2211
2256
  })
2212
2257
  .describe('Dynamic price with spend commitments.'),
2213
2258
  zod
@@ -2234,7 +2279,9 @@ exports.CreatePendingInvoiceLineBody = zod
2234
2279
  .regex(exports.createPendingInvoiceLineBodyLinesItemRateCardOnePriceOneFiveQuantityPerPackageOneRegExp)
2235
2280
  .describe('Numeric represents an arbitrary precision number.')
2236
2281
  .describe('The quantity per package.'),
2237
- type: zod.enum(['package']),
2282
+ type: zod
2283
+ .enum(['package'])
2284
+ .describe('The type of the price.'),
2238
2285
  })
2239
2286
  .describe('Package price with spend commitments.'),
2240
2287
  ])
@@ -2446,7 +2493,7 @@ exports.SimulateInvoiceBody = zod
2446
2493
  .describe('The payment term of a flat price.\nOne of: in_advance or in_arrears.')
2447
2494
  .default(exports.simulateInvoiceBodyLinesItemPriceOneOnePaymentTermDefault)
2448
2495
  .describe('The payment term of the flat price.\nDefaults to in advance.'),
2449
- type: zod.enum(['flat']),
2496
+ type: zod.enum(['flat']).describe('The type of the price.'),
2450
2497
  })
2451
2498
  .describe('Flat price with payment term.'),
2452
2499
  zod
@@ -2468,7 +2515,7 @@ exports.SimulateInvoiceBody = zod
2468
2515
  .describe('Numeric represents an arbitrary precision number.')
2469
2516
  .optional()
2470
2517
  .describe('The customer is committed to spend at least the amount.'),
2471
- type: zod.enum(['unit']),
2518
+ type: zod.enum(['unit']).describe('The type of the price.'),
2472
2519
  })
2473
2520
  .describe('Unit price with spend commitments.'),
2474
2521
  zod
@@ -2530,7 +2577,9 @@ exports.SimulateInvoiceBody = zod
2530
2577
  .describe('A price tier.\nAt least one price component is required in each tier.'))
2531
2578
  .min(1)
2532
2579
  .describe('The tiers of the tiered price.\nAt least one price component is required in each tier.'),
2533
- type: zod.enum(['tiered']),
2580
+ type: zod
2581
+ .enum(['tiered'])
2582
+ .describe('The type of the price.\n\nOne of: flat, unit, or tiered.'),
2534
2583
  })
2535
2584
  .describe('Tiered price with spend commitments.'),
2536
2585
  zod
@@ -2553,7 +2602,9 @@ exports.SimulateInvoiceBody = zod
2553
2602
  .describe('Numeric represents an arbitrary precision number.')
2554
2603
  .default(exports.simulateInvoiceBodyLinesItemPriceOneFourMultiplierDefault)
2555
2604
  .describe('The multiplier to apply to the base price to get the dynamic price.\n\nExamples:\n- 0.0: the price is zero\n- 0.5: the price is 50% of the base price\n- 1.0: the price is the same as the base price\n- 1.5: the price is 150% of the base price'),
2556
- type: zod.enum(['dynamic']),
2605
+ type: zod
2606
+ .enum(['dynamic'])
2607
+ .describe('The type of the price.'),
2557
2608
  })
2558
2609
  .describe('Dynamic price with spend commitments.'),
2559
2610
  zod
@@ -2580,7 +2631,9 @@ exports.SimulateInvoiceBody = zod
2580
2631
  .regex(exports.simulateInvoiceBodyLinesItemPriceOneFiveQuantityPerPackageOneRegExp)
2581
2632
  .describe('Numeric represents an arbitrary precision number.')
2582
2633
  .describe('The quantity per package.'),
2583
- type: zod.enum(['package']),
2634
+ type: zod
2635
+ .enum(['package'])
2636
+ .describe('The type of the price.'),
2584
2637
  })
2585
2638
  .describe('Package price with spend commitments.'),
2586
2639
  ])
@@ -2652,7 +2705,9 @@ exports.SimulateInvoiceBody = zod
2652
2705
  .describe('The payment term of a flat price.\nOne of: in_advance or in_arrears.')
2653
2706
  .default(exports.simulateInvoiceBodyLinesItemRateCardOnePriceOneOnePaymentTermDefault)
2654
2707
  .describe('The payment term of the flat price.\nDefaults to in advance.'),
2655
- type: zod.enum(['flat']),
2708
+ type: zod
2709
+ .enum(['flat'])
2710
+ .describe('The type of the price.'),
2656
2711
  })
2657
2712
  .describe('Flat price with payment term.'),
2658
2713
  zod
@@ -2674,7 +2729,9 @@ exports.SimulateInvoiceBody = zod
2674
2729
  .describe('Numeric represents an arbitrary precision number.')
2675
2730
  .optional()
2676
2731
  .describe('The customer is committed to spend at least the amount.'),
2677
- type: zod.enum(['unit']),
2732
+ type: zod
2733
+ .enum(['unit'])
2734
+ .describe('The type of the price.'),
2678
2735
  })
2679
2736
  .describe('Unit price with spend commitments.'),
2680
2737
  zod
@@ -2736,7 +2793,9 @@ exports.SimulateInvoiceBody = zod
2736
2793
  .describe('A price tier.\nAt least one price component is required in each tier.'))
2737
2794
  .min(1)
2738
2795
  .describe('The tiers of the tiered price.\nAt least one price component is required in each tier.'),
2739
- type: zod.enum(['tiered']),
2796
+ type: zod
2797
+ .enum(['tiered'])
2798
+ .describe('The type of the price.\n\nOne of: flat, unit, or tiered.'),
2740
2799
  })
2741
2800
  .describe('Tiered price with spend commitments.'),
2742
2801
  zod
@@ -2759,7 +2818,9 @@ exports.SimulateInvoiceBody = zod
2759
2818
  .describe('Numeric represents an arbitrary precision number.')
2760
2819
  .default(exports.simulateInvoiceBodyLinesItemRateCardOnePriceOneFourMultiplierDefault)
2761
2820
  .describe('The multiplier to apply to the base price to get the dynamic price.\n\nExamples:\n- 0.0: the price is zero\n- 0.5: the price is 50% of the base price\n- 1.0: the price is the same as the base price\n- 1.5: the price is 150% of the base price'),
2762
- type: zod.enum(['dynamic']),
2821
+ type: zod
2822
+ .enum(['dynamic'])
2823
+ .describe('The type of the price.'),
2763
2824
  })
2764
2825
  .describe('Dynamic price with spend commitments.'),
2765
2826
  zod
@@ -2786,7 +2847,9 @@ exports.SimulateInvoiceBody = zod
2786
2847
  .regex(exports.simulateInvoiceBodyLinesItemRateCardOnePriceOneFiveQuantityPerPackageOneRegExp)
2787
2848
  .describe('Numeric represents an arbitrary precision number.')
2788
2849
  .describe('The quantity per package.'),
2789
- type: zod.enum(['package']),
2850
+ type: zod
2851
+ .enum(['package'])
2852
+ .describe('The type of the price.'),
2790
2853
  })
2791
2854
  .describe('Package price with spend commitments.'),
2792
2855
  ])
@@ -3251,7 +3314,7 @@ exports.UpdateInvoiceBody = zod
3251
3314
  .describe('The payment term of a flat price.\nOne of: in_advance or in_arrears.')
3252
3315
  .default(exports.updateInvoiceBodyLinesItemPriceOneOnePaymentTermDefault)
3253
3316
  .describe('The payment term of the flat price.\nDefaults to in advance.'),
3254
- type: zod.enum(['flat']),
3317
+ type: zod.enum(['flat']).describe('The type of the price.'),
3255
3318
  })
3256
3319
  .describe('Flat price with payment term.'),
3257
3320
  zod
@@ -3273,7 +3336,7 @@ exports.UpdateInvoiceBody = zod
3273
3336
  .describe('Numeric represents an arbitrary precision number.')
3274
3337
  .optional()
3275
3338
  .describe('The customer is committed to spend at least the amount.'),
3276
- type: zod.enum(['unit']),
3339
+ type: zod.enum(['unit']).describe('The type of the price.'),
3277
3340
  })
3278
3341
  .describe('Unit price with spend commitments.'),
3279
3342
  zod
@@ -3335,7 +3398,9 @@ exports.UpdateInvoiceBody = zod
3335
3398
  .describe('A price tier.\nAt least one price component is required in each tier.'))
3336
3399
  .min(1)
3337
3400
  .describe('The tiers of the tiered price.\nAt least one price component is required in each tier.'),
3338
- type: zod.enum(['tiered']),
3401
+ type: zod
3402
+ .enum(['tiered'])
3403
+ .describe('The type of the price.\n\nOne of: flat, unit, or tiered.'),
3339
3404
  })
3340
3405
  .describe('Tiered price with spend commitments.'),
3341
3406
  zod
@@ -3358,7 +3423,9 @@ exports.UpdateInvoiceBody = zod
3358
3423
  .describe('Numeric represents an arbitrary precision number.')
3359
3424
  .default(exports.updateInvoiceBodyLinesItemPriceOneFourMultiplierDefault)
3360
3425
  .describe('The multiplier to apply to the base price to get the dynamic price.\n\nExamples:\n- 0.0: the price is zero\n- 0.5: the price is 50% of the base price\n- 1.0: the price is the same as the base price\n- 1.5: the price is 150% of the base price'),
3361
- type: zod.enum(['dynamic']),
3426
+ type: zod
3427
+ .enum(['dynamic'])
3428
+ .describe('The type of the price.'),
3362
3429
  })
3363
3430
  .describe('Dynamic price with spend commitments.'),
3364
3431
  zod
@@ -3385,7 +3452,9 @@ exports.UpdateInvoiceBody = zod
3385
3452
  .regex(exports.updateInvoiceBodyLinesItemPriceOneFiveQuantityPerPackageOneRegExp)
3386
3453
  .describe('Numeric represents an arbitrary precision number.')
3387
3454
  .describe('The quantity per package.'),
3388
- type: zod.enum(['package']),
3455
+ type: zod
3456
+ .enum(['package'])
3457
+ .describe('The type of the price.'),
3389
3458
  })
3390
3459
  .describe('Package price with spend commitments.'),
3391
3460
  ])
@@ -3452,7 +3521,9 @@ exports.UpdateInvoiceBody = zod
3452
3521
  .describe('The payment term of a flat price.\nOne of: in_advance or in_arrears.')
3453
3522
  .default(exports.updateInvoiceBodyLinesItemRateCardOnePriceOneOnePaymentTermDefault)
3454
3523
  .describe('The payment term of the flat price.\nDefaults to in advance.'),
3455
- type: zod.enum(['flat']),
3524
+ type: zod
3525
+ .enum(['flat'])
3526
+ .describe('The type of the price.'),
3456
3527
  })
3457
3528
  .describe('Flat price with payment term.'),
3458
3529
  zod
@@ -3474,7 +3545,9 @@ exports.UpdateInvoiceBody = zod
3474
3545
  .describe('Numeric represents an arbitrary precision number.')
3475
3546
  .optional()
3476
3547
  .describe('The customer is committed to spend at least the amount.'),
3477
- type: zod.enum(['unit']),
3548
+ type: zod
3549
+ .enum(['unit'])
3550
+ .describe('The type of the price.'),
3478
3551
  })
3479
3552
  .describe('Unit price with spend commitments.'),
3480
3553
  zod
@@ -3536,7 +3609,9 @@ exports.UpdateInvoiceBody = zod
3536
3609
  .describe('A price tier.\nAt least one price component is required in each tier.'))
3537
3610
  .min(1)
3538
3611
  .describe('The tiers of the tiered price.\nAt least one price component is required in each tier.'),
3539
- type: zod.enum(['tiered']),
3612
+ type: zod
3613
+ .enum(['tiered'])
3614
+ .describe('The type of the price.\n\nOne of: flat, unit, or tiered.'),
3540
3615
  })
3541
3616
  .describe('Tiered price with spend commitments.'),
3542
3617
  zod
@@ -3559,7 +3634,9 @@ exports.UpdateInvoiceBody = zod
3559
3634
  .describe('Numeric represents an arbitrary precision number.')
3560
3635
  .default(exports.updateInvoiceBodyLinesItemRateCardOnePriceOneFourMultiplierDefault)
3561
3636
  .describe('The multiplier to apply to the base price to get the dynamic price.\n\nExamples:\n- 0.0: the price is zero\n- 0.5: the price is 50% of the base price\n- 1.0: the price is the same as the base price\n- 1.5: the price is 150% of the base price'),
3562
- type: zod.enum(['dynamic']),
3637
+ type: zod
3638
+ .enum(['dynamic'])
3639
+ .describe('The type of the price.'),
3563
3640
  })
3564
3641
  .describe('Dynamic price with spend commitments.'),
3565
3642
  zod
@@ -3586,7 +3663,9 @@ exports.UpdateInvoiceBody = zod
3586
3663
  .regex(exports.updateInvoiceBodyLinesItemRateCardOnePriceOneFiveQuantityPerPackageOneRegExp)
3587
3664
  .describe('Numeric represents an arbitrary precision number.')
3588
3665
  .describe('The quantity per package.'),
3589
- type: zod.enum(['package']),
3666
+ type: zod
3667
+ .enum(['package'])
3668
+ .describe('The type of the price.'),
3590
3669
  })
3591
3670
  .describe('Package price with spend commitments.'),
3592
3671
  ])
@@ -3883,7 +3962,9 @@ exports.VoidInvoiceActionBody = zod
3883
3962
  .union([
3884
3963
  zod
3885
3964
  .object({
3886
- type: zod.enum(['discard']),
3965
+ type: zod
3966
+ .enum(['discard'])
3967
+ .describe('The action to take on the line item.'),
3887
3968
  })
3888
3969
  .describe('VoidInvoiceLineDiscardAction describes how to handle the voidied line item in the invoice.'),
3889
3970
  zod
@@ -3892,7 +3973,9 @@ exports.VoidInvoiceActionBody = zod
3892
3973
  .date()
3893
3974
  .optional()
3894
3975
  .describe('The time at which the line item should be invoiced again.\n\nIf not provided, the line item will be re-invoiced now.'),
3895
- type: zod.enum(['pending']),
3976
+ type: zod
3977
+ .enum(['pending'])
3978
+ .describe('The action to take on the line item.'),
3896
3979
  })
3897
3980
  .describe('VoidInvoiceLinePendingAction describes how to handle the voidied line item in the invoice.'),
3898
3981
  ])
@@ -3914,7 +3997,9 @@ exports.VoidInvoiceActionBody = zod
3914
3997
  .union([
3915
3998
  zod
3916
3999
  .object({
3917
- type: zod.enum(['discard']),
4000
+ type: zod
4001
+ .enum(['discard'])
4002
+ .describe('The action to take on the line item.'),
3918
4003
  })
3919
4004
  .describe('VoidInvoiceLineDiscardAction describes how to handle the voidied line item in the invoice.'),
3920
4005
  zod
@@ -3923,7 +4008,9 @@ exports.VoidInvoiceActionBody = zod
3923
4008
  .date()
3924
4009
  .optional()
3925
4010
  .describe('The time at which the line item should be invoiced again.\n\nIf not provided, the line item will be re-invoiced now.'),
3926
- type: zod.enum(['pending']),
4011
+ type: zod
4012
+ .enum(['pending'])
4013
+ .describe('The action to take on the line item.'),
3927
4014
  })
3928
4015
  .describe('VoidInvoiceLinePendingAction describes how to handle the voidied line item in the invoice.'),
3929
4016
  ])
@@ -4131,7 +4218,9 @@ exports.CreateBillingProfileBody = zod
4131
4218
  .union([
4132
4219
  zod
4133
4220
  .object({
4134
- type: zod.enum(['subscription']),
4221
+ type: zod
4222
+ .enum(['subscription'])
4223
+ .describe('The type of alignment.'),
4135
4224
  })
4136
4225
  .describe('BillingWorkflowCollectionAlignmentSubscription specifies the alignment for collecting the pending line items\ninto an invoice.'),
4137
4226
  zod
@@ -4155,7 +4244,9 @@ exports.CreateBillingProfileBody = zod
4155
4244
  })
4156
4245
  .describe('Recurring period with an interval and an anchor.')
4157
4246
  .describe('The recurring period for the alignment.'),
4158
- type: zod.enum(['anchored']),
4247
+ type: zod
4248
+ .enum(['anchored'])
4249
+ .describe('The type of alignment.'),
4159
4250
  })
4160
4251
  .describe('BillingWorkflowCollectionAlignmentAnchored specifies the alignment for collecting the pending line items\ninto an invoice.'),
4161
4252
  ])
@@ -4409,7 +4500,9 @@ exports.UpdateBillingProfileBody = zod
4409
4500
  .union([
4410
4501
  zod
4411
4502
  .object({
4412
- type: zod.enum(['subscription']),
4503
+ type: zod
4504
+ .enum(['subscription'])
4505
+ .describe('The type of alignment.'),
4413
4506
  })
4414
4507
  .describe('BillingWorkflowCollectionAlignmentSubscription specifies the alignment for collecting the pending line items\ninto an invoice.'),
4415
4508
  zod
@@ -4433,7 +4526,9 @@ exports.UpdateBillingProfileBody = zod
4433
4526
  })
4434
4527
  .describe('Recurring period with an interval and an anchor.')
4435
4528
  .describe('The recurring period for the alignment.'),
4436
- type: zod.enum(['anchored']),
4529
+ type: zod
4530
+ .enum(['anchored'])
4531
+ .describe('The type of alignment.'),
4437
4532
  })
4438
4533
  .describe('BillingWorkflowCollectionAlignmentAnchored specifies the alignment for collecting the pending line items\ninto an invoice.'),
4439
4534
  ])
@@ -4938,7 +5033,7 @@ exports.UpsertCustomerAppDataBodyItem = zod
4938
5033
  .string()
4939
5034
  .optional()
4940
5035
  .describe('The Stripe default payment method ID.'),
4941
- type: zod.enum(['stripe']),
5036
+ type: zod.enum(['stripe']).describe('The app name.'),
4942
5037
  })
4943
5038
  .describe('Stripe Customer App Data.'),
4944
5039
  zod
@@ -5025,7 +5120,7 @@ exports.UpsertCustomerAppDataBodyItem = zod
5025
5120
  .enum(['ready', 'unauthorized'])
5026
5121
  .describe('App installed status.')
5027
5122
  .describe('Status of the app connection.'),
5028
- type: zod.enum(['sandbox']),
5123
+ type: zod.enum(['sandbox']).describe("The app's type is Sandbox."),
5029
5124
  updatedAt: zod.coerce
5030
5125
  .date()
5031
5126
  .describe('Timestamp of when the resource was last updated.'),
@@ -5038,7 +5133,7 @@ exports.UpsertCustomerAppDataBodyItem = zod
5038
5133
  .regex(exports.upsertCustomerAppDataBodyTwoIdRegExp)
5039
5134
  .optional()
5040
5135
  .describe('The app ID.\nIf not provided, it will use the global default for the app type.'),
5041
- type: zod.enum(['sandbox']),
5136
+ type: zod.enum(['sandbox']).describe('The app name.'),
5042
5137
  })
5043
5138
  .describe('Sandbox Customer App Data.'),
5044
5139
  zod
@@ -5131,7 +5226,9 @@ exports.UpsertCustomerAppDataBodyItem = zod
5131
5226
  .enum(['ready', 'unauthorized'])
5132
5227
  .describe('App installed status.')
5133
5228
  .describe('Status of the app connection.'),
5134
- type: zod.enum(['custom_invoicing']),
5229
+ type: zod
5230
+ .enum(['custom_invoicing'])
5231
+ .describe("The app's type is CustomInvoicing."),
5135
5232
  updatedAt: zod.coerce
5136
5233
  .date()
5137
5234
  .describe('Timestamp of when the resource was last updated.'),
@@ -5149,7 +5246,7 @@ exports.UpsertCustomerAppDataBodyItem = zod
5149
5246
  .describe('Set of key-value pairs.\nMetadata can be used to store additional information about a resource.')
5150
5247
  .optional()
5151
5248
  .describe('Metadata to be used by the custom invoicing provider.'),
5152
- type: zod.enum(['custom_invoicing']),
5249
+ type: zod.enum(['custom_invoicing']).describe('The app name.'),
5153
5250
  })
5154
5251
  .describe('Custom Invoicing Customer App Data.'),
5155
5252
  ])
@@ -5511,6 +5608,7 @@ exports.IngestEventsBody = zod
5511
5608
  specversion: zod.coerce
5512
5609
  .string()
5513
5610
  .min(1)
5611
+ .default(exports.ingestEventsBodyOneSpecversionDefault)
5514
5612
  .describe('The version of the CloudEvents specification which the event uses.'),
5515
5613
  subject: zod.coerce
5516
5614
  .string()
@@ -5549,6 +5647,7 @@ exports.IngestEventsBody = zod
5549
5647
  specversion: zod.coerce
5550
5648
  .string()
5551
5649
  .min(1)
5650
+ .default(exports.ingestEventsBodyTwoItemSpecversionDefault)
5552
5651
  .describe('The version of the CloudEvents specification which the event uses.'),
5553
5652
  subject: zod.coerce
5554
5653
  .string()
@@ -6775,7 +6874,9 @@ exports.CreateNotificationRuleBody = zod
6775
6874
  .min(1)
6776
6875
  .max(exports.createNotificationRuleBodyOneThresholdsMax)
6777
6876
  .describe('List of thresholds the rule suppose to be triggered.'),
6778
- type: zod.enum(['entitlements.balance.threshold']),
6877
+ type: zod
6878
+ .enum(['entitlements.balance.threshold'])
6879
+ .describe('Notification rule type.'),
6779
6880
  })
6780
6881
  .describe('Request with input parameters for creating new notification rule with entitlements.balance.threshold type.'),
6781
6882
  zod
@@ -6811,7 +6912,9 @@ exports.CreateNotificationRuleBody = zod
6811
6912
  .min(1)
6812
6913
  .max(exports.createNotificationRuleBodyTwoNameMax)
6813
6914
  .describe('The user friendly name of the notification rule.'),
6814
- type: zod.enum(['entitlements.reset']),
6915
+ type: zod
6916
+ .enum(['entitlements.reset'])
6917
+ .describe('Notification rule type.'),
6815
6918
  })
6816
6919
  .describe('Request with input parameters for creating new notification rule with entitlements.reset type.'),
6817
6920
  zod
@@ -6837,7 +6940,7 @@ exports.CreateNotificationRuleBody = zod
6837
6940
  .min(1)
6838
6941
  .max(exports.createNotificationRuleBodyThreeNameMax)
6839
6942
  .describe('The user friendly name of the notification rule.'),
6840
- type: zod.enum(['invoice.created']),
6943
+ type: zod.enum(['invoice.created']).describe('Notification rule type.'),
6841
6944
  })
6842
6945
  .describe('Request with input parameters for creating new notification rule with invoice.created type.'),
6843
6946
  zod
@@ -6863,7 +6966,7 @@ exports.CreateNotificationRuleBody = zod
6863
6966
  .min(1)
6864
6967
  .max(exports.createNotificationRuleBodyFourNameMax)
6865
6968
  .describe('The user friendly name of the notification rule.'),
6866
- type: zod.enum(['invoice.updated']),
6969
+ type: zod.enum(['invoice.updated']).describe('Notification rule type.'),
6867
6970
  })
6868
6971
  .describe('Request with input parameters for creating new notification rule with invoice.updated type.'),
6869
6972
  ])
@@ -6947,7 +7050,9 @@ exports.UpdateNotificationRuleBody = zod
6947
7050
  .min(1)
6948
7051
  .max(exports.updateNotificationRuleBodyOneThresholdsMax)
6949
7052
  .describe('List of thresholds the rule suppose to be triggered.'),
6950
- type: zod.enum(['entitlements.balance.threshold']),
7053
+ type: zod
7054
+ .enum(['entitlements.balance.threshold'])
7055
+ .describe('Notification rule type.'),
6951
7056
  })
6952
7057
  .describe('Request with input parameters for creating new notification rule with entitlements.balance.threshold type.'),
6953
7058
  zod
@@ -6983,7 +7088,9 @@ exports.UpdateNotificationRuleBody = zod
6983
7088
  .min(1)
6984
7089
  .max(exports.updateNotificationRuleBodyTwoNameMax)
6985
7090
  .describe('The user friendly name of the notification rule.'),
6986
- type: zod.enum(['entitlements.reset']),
7091
+ type: zod
7092
+ .enum(['entitlements.reset'])
7093
+ .describe('Notification rule type.'),
6987
7094
  })
6988
7095
  .describe('Request with input parameters for creating new notification rule with entitlements.reset type.'),
6989
7096
  zod
@@ -7009,7 +7116,7 @@ exports.UpdateNotificationRuleBody = zod
7009
7116
  .min(1)
7010
7117
  .max(exports.updateNotificationRuleBodyThreeNameMax)
7011
7118
  .describe('The user friendly name of the notification rule.'),
7012
- type: zod.enum(['invoice.created']),
7119
+ type: zod.enum(['invoice.created']).describe('Notification rule type.'),
7013
7120
  })
7014
7121
  .describe('Request with input parameters for creating new notification rule with invoice.created type.'),
7015
7122
  zod
@@ -7035,7 +7142,7 @@ exports.UpdateNotificationRuleBody = zod
7035
7142
  .min(1)
7036
7143
  .max(exports.updateNotificationRuleBodyFourNameMax)
7037
7144
  .describe('The user friendly name of the notification rule.'),
7038
- type: zod.enum(['invoice.updated']),
7145
+ type: zod.enum(['invoice.updated']).describe('Notification rule type.'),
7039
7146
  })
7040
7147
  .describe('Request with input parameters for creating new notification rule with invoice.updated type.'),
7041
7148
  ])
@@ -7231,6 +7338,7 @@ exports.CreatePlanBody = zod
7231
7338
  .max(exports.createPlanBodyCurrencyOneMax)
7232
7339
  .regex(exports.createPlanBodyCurrencyOneRegExp)
7233
7340
  .describe('Three-letter [ISO4217](https://www.iso.org/iso-4217-currency-codes.html) currency code.\nCustom three-letter currency codes are also supported for convenience.')
7341
+ .default(exports.createPlanBodyCurrencyDefault)
7234
7342
  .describe('The currency code of the plan.'),
7235
7343
  description: zod.coerce
7236
7344
  .string()
@@ -7419,7 +7527,9 @@ exports.CreatePlanBody = zod
7419
7527
  .describe('The payment term of a flat price.\nOne of: in_advance or in_arrears.')
7420
7528
  .default(exports.createPlanBodyPhasesItemRateCardsItemOnePriceOnePaymentTermDefault)
7421
7529
  .describe('The payment term of the flat price.\nDefaults to in advance.'),
7422
- type: zod.enum(['flat']),
7530
+ type: zod
7531
+ .enum(['flat'])
7532
+ .describe('The type of the price.'),
7423
7533
  })
7424
7534
  .describe('Flat price with payment term.')
7425
7535
  .nullable()
@@ -7454,7 +7564,9 @@ exports.CreatePlanBody = zod
7454
7564
  .describe('Set of provider specific tax configs.')
7455
7565
  .optional()
7456
7566
  .describe('The tax config of the rate card.\nWhen undefined, the tax config of the feature or the default tax config of the plan is used.'),
7457
- type: zod.enum(['flat_fee']),
7567
+ type: zod
7568
+ .enum(['flat_fee'])
7569
+ .describe('The type of the RateCard.'),
7458
7570
  })
7459
7571
  .describe('A flat fee rate card defines a one-time purchase or a recurring fee.'),
7460
7572
  zod
@@ -7593,7 +7705,9 @@ exports.CreatePlanBody = zod
7593
7705
  .describe('The payment term of a flat price.\nOne of: in_advance or in_arrears.')
7594
7706
  .default(exports.createPlanBodyPhasesItemRateCardsItemTwoPriceOneOnePaymentTermDefault)
7595
7707
  .describe('The payment term of the flat price.\nDefaults to in advance.'),
7596
- type: zod.enum(['flat']),
7708
+ type: zod
7709
+ .enum(['flat'])
7710
+ .describe('The type of the price.'),
7597
7711
  })
7598
7712
  .describe('Flat price with payment term.'),
7599
7713
  zod
@@ -7615,7 +7729,9 @@ exports.CreatePlanBody = zod
7615
7729
  .describe('Numeric represents an arbitrary precision number.')
7616
7730
  .optional()
7617
7731
  .describe('The customer is committed to spend at least the amount.'),
7618
- type: zod.enum(['unit']),
7732
+ type: zod
7733
+ .enum(['unit'])
7734
+ .describe('The type of the price.'),
7619
7735
  })
7620
7736
  .describe('Unit price with spend commitments.'),
7621
7737
  zod
@@ -7677,7 +7793,9 @@ exports.CreatePlanBody = zod
7677
7793
  .describe('A price tier.\nAt least one price component is required in each tier.'))
7678
7794
  .min(1)
7679
7795
  .describe('The tiers of the tiered price.\nAt least one price component is required in each tier.'),
7680
- type: zod.enum(['tiered']),
7796
+ type: zod
7797
+ .enum(['tiered'])
7798
+ .describe('The type of the price.\n\nOne of: flat, unit, or tiered.'),
7681
7799
  })
7682
7800
  .describe('Tiered price with spend commitments.'),
7683
7801
  zod
@@ -7700,7 +7818,9 @@ exports.CreatePlanBody = zod
7700
7818
  .describe('Numeric represents an arbitrary precision number.')
7701
7819
  .default(exports.createPlanBodyPhasesItemRateCardsItemTwoPriceOneFourMultiplierDefault)
7702
7820
  .describe('The multiplier to apply to the base price to get the dynamic price.\n\nExamples:\n- 0.0: the price is zero\n- 0.5: the price is 50% of the base price\n- 1.0: the price is the same as the base price\n- 1.5: the price is 150% of the base price'),
7703
- type: zod.enum(['dynamic']),
7821
+ type: zod
7822
+ .enum(['dynamic'])
7823
+ .describe('The type of the price.'),
7704
7824
  })
7705
7825
  .describe('Dynamic price with spend commitments.'),
7706
7826
  zod
@@ -7727,7 +7847,9 @@ exports.CreatePlanBody = zod
7727
7847
  .regex(exports.createPlanBodyPhasesItemRateCardsItemTwoPriceOneFiveQuantityPerPackageOneRegExp)
7728
7848
  .describe('Numeric represents an arbitrary precision number.')
7729
7849
  .describe('The quantity per package.'),
7730
- type: zod.enum(['package']),
7850
+ type: zod
7851
+ .enum(['package'])
7852
+ .describe('The type of the price.'),
7731
7853
  })
7732
7854
  .describe('Package price with spend commitments.'),
7733
7855
  ])
@@ -7764,7 +7886,9 @@ exports.CreatePlanBody = zod
7764
7886
  .describe('Set of provider specific tax configs.')
7765
7887
  .optional()
7766
7888
  .describe('The tax config of the rate card.\nWhen undefined, the tax config of the feature or the default tax config of the plan is used.'),
7767
- type: zod.enum(['usage_based']),
7889
+ type: zod
7890
+ .enum(['usage_based'])
7891
+ .describe('The type of the RateCard.'),
7768
7892
  })
7769
7893
  .describe('A usage-based rate card defines a price based on usage.'),
7770
7894
  ])
@@ -7778,10 +7902,12 @@ exports.CreatePlanBody = zod
7778
7902
  .object({
7779
7903
  enabled: zod.coerce
7780
7904
  .boolean()
7905
+ .default(exports.createPlanBodyProRatingConfigOneEnabledDefault)
7781
7906
  .describe('Whether pro-rating is enabled for this plan.'),
7782
7907
  mode: zod
7783
7908
  .enum(['prorate_prices'])
7784
7909
  .describe('Pro-rating mode options for handling billing period changes.')
7910
+ .default(exports.createPlanBodyProRatingConfigOneModeDefault)
7785
7911
  .describe('How to handle pro-rating for billing period changes.'),
7786
7912
  })
7787
7913
  .describe('Configuration for pro-rating behavior.')
@@ -8066,7 +8192,9 @@ exports.UpdatePlanBody = zod
8066
8192
  .describe('The payment term of a flat price.\nOne of: in_advance or in_arrears.')
8067
8193
  .default(exports.updatePlanBodyPhasesItemRateCardsItemOnePriceOnePaymentTermDefault)
8068
8194
  .describe('The payment term of the flat price.\nDefaults to in advance.'),
8069
- type: zod.enum(['flat']),
8195
+ type: zod
8196
+ .enum(['flat'])
8197
+ .describe('The type of the price.'),
8070
8198
  })
8071
8199
  .describe('Flat price with payment term.')
8072
8200
  .nullable()
@@ -8101,7 +8229,9 @@ exports.UpdatePlanBody = zod
8101
8229
  .describe('Set of provider specific tax configs.')
8102
8230
  .optional()
8103
8231
  .describe('The tax config of the rate card.\nWhen undefined, the tax config of the feature or the default tax config of the plan is used.'),
8104
- type: zod.enum(['flat_fee']),
8232
+ type: zod
8233
+ .enum(['flat_fee'])
8234
+ .describe('The type of the RateCard.'),
8105
8235
  })
8106
8236
  .describe('A flat fee rate card defines a one-time purchase or a recurring fee.'),
8107
8237
  zod
@@ -8240,7 +8370,9 @@ exports.UpdatePlanBody = zod
8240
8370
  .describe('The payment term of a flat price.\nOne of: in_advance or in_arrears.')
8241
8371
  .default(exports.updatePlanBodyPhasesItemRateCardsItemTwoPriceOneOnePaymentTermDefault)
8242
8372
  .describe('The payment term of the flat price.\nDefaults to in advance.'),
8243
- type: zod.enum(['flat']),
8373
+ type: zod
8374
+ .enum(['flat'])
8375
+ .describe('The type of the price.'),
8244
8376
  })
8245
8377
  .describe('Flat price with payment term.'),
8246
8378
  zod
@@ -8262,7 +8394,9 @@ exports.UpdatePlanBody = zod
8262
8394
  .describe('Numeric represents an arbitrary precision number.')
8263
8395
  .optional()
8264
8396
  .describe('The customer is committed to spend at least the amount.'),
8265
- type: zod.enum(['unit']),
8397
+ type: zod
8398
+ .enum(['unit'])
8399
+ .describe('The type of the price.'),
8266
8400
  })
8267
8401
  .describe('Unit price with spend commitments.'),
8268
8402
  zod
@@ -8324,7 +8458,9 @@ exports.UpdatePlanBody = zod
8324
8458
  .describe('A price tier.\nAt least one price component is required in each tier.'))
8325
8459
  .min(1)
8326
8460
  .describe('The tiers of the tiered price.\nAt least one price component is required in each tier.'),
8327
- type: zod.enum(['tiered']),
8461
+ type: zod
8462
+ .enum(['tiered'])
8463
+ .describe('The type of the price.\n\nOne of: flat, unit, or tiered.'),
8328
8464
  })
8329
8465
  .describe('Tiered price with spend commitments.'),
8330
8466
  zod
@@ -8347,7 +8483,9 @@ exports.UpdatePlanBody = zod
8347
8483
  .describe('Numeric represents an arbitrary precision number.')
8348
8484
  .default(exports.updatePlanBodyPhasesItemRateCardsItemTwoPriceOneFourMultiplierDefault)
8349
8485
  .describe('The multiplier to apply to the base price to get the dynamic price.\n\nExamples:\n- 0.0: the price is zero\n- 0.5: the price is 50% of the base price\n- 1.0: the price is the same as the base price\n- 1.5: the price is 150% of the base price'),
8350
- type: zod.enum(['dynamic']),
8486
+ type: zod
8487
+ .enum(['dynamic'])
8488
+ .describe('The type of the price.'),
8351
8489
  })
8352
8490
  .describe('Dynamic price with spend commitments.'),
8353
8491
  zod
@@ -8374,7 +8512,9 @@ exports.UpdatePlanBody = zod
8374
8512
  .regex(exports.updatePlanBodyPhasesItemRateCardsItemTwoPriceOneFiveQuantityPerPackageOneRegExp)
8375
8513
  .describe('Numeric represents an arbitrary precision number.')
8376
8514
  .describe('The quantity per package.'),
8377
- type: zod.enum(['package']),
8515
+ type: zod
8516
+ .enum(['package'])
8517
+ .describe('The type of the price.'),
8378
8518
  })
8379
8519
  .describe('Package price with spend commitments.'),
8380
8520
  ])
@@ -8411,7 +8551,9 @@ exports.UpdatePlanBody = zod
8411
8551
  .describe('Set of provider specific tax configs.')
8412
8552
  .optional()
8413
8553
  .describe('The tax config of the rate card.\nWhen undefined, the tax config of the feature or the default tax config of the plan is used.'),
8414
- type: zod.enum(['usage_based']),
8554
+ type: zod
8555
+ .enum(['usage_based'])
8556
+ .describe('The type of the RateCard.'),
8415
8557
  })
8416
8558
  .describe('A usage-based rate card defines a price based on usage.'),
8417
8559
  ])
@@ -8425,10 +8567,12 @@ exports.UpdatePlanBody = zod
8425
8567
  .object({
8426
8568
  enabled: zod.coerce
8427
8569
  .boolean()
8570
+ .default(exports.updatePlanBodyProRatingConfigOneEnabledDefault)
8428
8571
  .describe('Whether pro-rating is enabled for this plan.'),
8429
8572
  mode: zod
8430
8573
  .enum(['prorate_prices'])
8431
8574
  .describe('Pro-rating mode options for handling billing period changes.')
8575
+ .default(exports.updatePlanBodyProRatingConfigOneModeDefault)
8432
8576
  .describe('How to handle pro-rating for billing period changes.'),
8433
8577
  })
8434
8578
  .describe('Configuration for pro-rating behavior.')
@@ -9910,6 +10054,7 @@ exports.CreateSubscriptionBody = zod
9910
10054
  .max(exports.createSubscriptionBodyTwoCustomPlanOneOneCurrencyOneMax)
9911
10055
  .regex(exports.createSubscriptionBodyTwoCustomPlanOneOneCurrencyOneRegExp)
9912
10056
  .describe('Three-letter [ISO4217](https://www.iso.org/iso-4217-currency-codes.html) currency code.\nCustom three-letter currency codes are also supported for convenience.')
10057
+ .default(exports.createSubscriptionBodyTwoCustomPlanOneOneCurrencyDefault)
9913
10058
  .describe('The currency code of the plan.'),
9914
10059
  description: zod.coerce
9915
10060
  .string()
@@ -10092,7 +10237,9 @@ exports.CreateSubscriptionBody = zod
10092
10237
  .describe('The payment term of a flat price.\nOne of: in_advance or in_arrears.')
10093
10238
  .default(exports.createSubscriptionBodyTwoCustomPlanOneOnePhasesItemRateCardsItemOnePriceOnePaymentTermDefault)
10094
10239
  .describe('The payment term of the flat price.\nDefaults to in advance.'),
10095
- type: zod.enum(['flat']),
10240
+ type: zod
10241
+ .enum(['flat'])
10242
+ .describe('The type of the price.'),
10096
10243
  })
10097
10244
  .describe('Flat price with payment term.')
10098
10245
  .nullable()
@@ -10127,7 +10274,9 @@ exports.CreateSubscriptionBody = zod
10127
10274
  .describe('Set of provider specific tax configs.')
10128
10275
  .optional()
10129
10276
  .describe('The tax config of the rate card.\nWhen undefined, the tax config of the feature or the default tax config of the plan is used.'),
10130
- type: zod.enum(['flat_fee']),
10277
+ type: zod
10278
+ .enum(['flat_fee'])
10279
+ .describe('The type of the RateCard.'),
10131
10280
  })
10132
10281
  .describe('A flat fee rate card defines a one-time purchase or a recurring fee.'),
10133
10282
  zod
@@ -10266,7 +10415,9 @@ exports.CreateSubscriptionBody = zod
10266
10415
  .describe('The payment term of a flat price.\nOne of: in_advance or in_arrears.')
10267
10416
  .default(exports.createSubscriptionBodyTwoCustomPlanOneOnePhasesItemRateCardsItemTwoPriceOneOnePaymentTermDefault)
10268
10417
  .describe('The payment term of the flat price.\nDefaults to in advance.'),
10269
- type: zod.enum(['flat']),
10418
+ type: zod
10419
+ .enum(['flat'])
10420
+ .describe('The type of the price.'),
10270
10421
  })
10271
10422
  .describe('Flat price with payment term.'),
10272
10423
  zod
@@ -10288,7 +10439,9 @@ exports.CreateSubscriptionBody = zod
10288
10439
  .describe('Numeric represents an arbitrary precision number.')
10289
10440
  .optional()
10290
10441
  .describe('The customer is committed to spend at least the amount.'),
10291
- type: zod.enum(['unit']),
10442
+ type: zod
10443
+ .enum(['unit'])
10444
+ .describe('The type of the price.'),
10292
10445
  })
10293
10446
  .describe('Unit price with spend commitments.'),
10294
10447
  zod
@@ -10350,7 +10503,9 @@ exports.CreateSubscriptionBody = zod
10350
10503
  .describe('A price tier.\nAt least one price component is required in each tier.'))
10351
10504
  .min(1)
10352
10505
  .describe('The tiers of the tiered price.\nAt least one price component is required in each tier.'),
10353
- type: zod.enum(['tiered']),
10506
+ type: zod
10507
+ .enum(['tiered'])
10508
+ .describe('The type of the price.\n\nOne of: flat, unit, or tiered.'),
10354
10509
  })
10355
10510
  .describe('Tiered price with spend commitments.'),
10356
10511
  zod
@@ -10373,7 +10528,9 @@ exports.CreateSubscriptionBody = zod
10373
10528
  .describe('Numeric represents an arbitrary precision number.')
10374
10529
  .default(exports.createSubscriptionBodyTwoCustomPlanOneOnePhasesItemRateCardsItemTwoPriceOneFourMultiplierDefault)
10375
10530
  .describe('The multiplier to apply to the base price to get the dynamic price.\n\nExamples:\n- 0.0: the price is zero\n- 0.5: the price is 50% of the base price\n- 1.0: the price is the same as the base price\n- 1.5: the price is 150% of the base price'),
10376
- type: zod.enum(['dynamic']),
10531
+ type: zod
10532
+ .enum(['dynamic'])
10533
+ .describe('The type of the price.'),
10377
10534
  })
10378
10535
  .describe('Dynamic price with spend commitments.'),
10379
10536
  zod
@@ -10400,7 +10557,9 @@ exports.CreateSubscriptionBody = zod
10400
10557
  .regex(exports.createSubscriptionBodyTwoCustomPlanOneOnePhasesItemRateCardsItemTwoPriceOneFiveQuantityPerPackageOneRegExp)
10401
10558
  .describe('Numeric represents an arbitrary precision number.')
10402
10559
  .describe('The quantity per package.'),
10403
- type: zod.enum(['package']),
10560
+ type: zod
10561
+ .enum(['package'])
10562
+ .describe('The type of the price.'),
10404
10563
  })
10405
10564
  .describe('Package price with spend commitments.'),
10406
10565
  ])
@@ -10437,7 +10596,9 @@ exports.CreateSubscriptionBody = zod
10437
10596
  .describe('Set of provider specific tax configs.')
10438
10597
  .optional()
10439
10598
  .describe('The tax config of the rate card.\nWhen undefined, the tax config of the feature or the default tax config of the plan is used.'),
10440
- type: zod.enum(['usage_based']),
10599
+ type: zod
10600
+ .enum(['usage_based'])
10601
+ .describe('The type of the RateCard.'),
10441
10602
  })
10442
10603
  .describe('A usage-based rate card defines a price based on usage.'),
10443
10604
  ])
@@ -10451,10 +10612,12 @@ exports.CreateSubscriptionBody = zod
10451
10612
  .object({
10452
10613
  enabled: zod.coerce
10453
10614
  .boolean()
10615
+ .default(exports.createSubscriptionBodyTwoCustomPlanOneOneProRatingConfigOneEnabledDefault)
10454
10616
  .describe('Whether pro-rating is enabled for this plan.'),
10455
10617
  mode: zod
10456
10618
  .enum(['prorate_prices'])
10457
10619
  .describe('Pro-rating mode options for handling billing period changes.')
10620
+ .default(exports.createSubscriptionBodyTwoCustomPlanOneOneProRatingConfigOneModeDefault)
10458
10621
  .describe('How to handle pro-rating for billing period changes.'),
10459
10622
  })
10460
10623
  .describe('Configuration for pro-rating behavior.')
@@ -10702,7 +10865,9 @@ exports.EditSubscriptionBody = zod
10702
10865
  .describe('The payment term of a flat price.\nOne of: in_advance or in_arrears.')
10703
10866
  .default(exports.editSubscriptionBodyCustomizationsItemOneRateCardOnePriceOnePaymentTermDefault)
10704
10867
  .describe('The payment term of the flat price.\nDefaults to in advance.'),
10705
- type: zod.enum(['flat']),
10868
+ type: zod
10869
+ .enum(['flat'])
10870
+ .describe('The type of the price.'),
10706
10871
  })
10707
10872
  .describe('Flat price with payment term.')
10708
10873
  .nullable()
@@ -10737,7 +10902,9 @@ exports.EditSubscriptionBody = zod
10737
10902
  .describe('Set of provider specific tax configs.')
10738
10903
  .optional()
10739
10904
  .describe('The tax config of the rate card.\nWhen undefined, the tax config of the feature or the default tax config of the plan is used.'),
10740
- type: zod.enum(['flat_fee']),
10905
+ type: zod
10906
+ .enum(['flat_fee'])
10907
+ .describe('The type of the RateCard.'),
10741
10908
  })
10742
10909
  .describe('A flat fee rate card defines a one-time purchase or a recurring fee.'),
10743
10910
  zod
@@ -10876,7 +11043,9 @@ exports.EditSubscriptionBody = zod
10876
11043
  .describe('The payment term of a flat price.\nOne of: in_advance or in_arrears.')
10877
11044
  .default(exports.editSubscriptionBodyCustomizationsItemOneRateCardTwoPriceOneOnePaymentTermDefault)
10878
11045
  .describe('The payment term of the flat price.\nDefaults to in advance.'),
10879
- type: zod.enum(['flat']),
11046
+ type: zod
11047
+ .enum(['flat'])
11048
+ .describe('The type of the price.'),
10880
11049
  })
10881
11050
  .describe('Flat price with payment term.'),
10882
11051
  zod
@@ -10898,7 +11067,9 @@ exports.EditSubscriptionBody = zod
10898
11067
  .describe('Numeric represents an arbitrary precision number.')
10899
11068
  .optional()
10900
11069
  .describe('The customer is committed to spend at least the amount.'),
10901
- type: zod.enum(['unit']),
11070
+ type: zod
11071
+ .enum(['unit'])
11072
+ .describe('The type of the price.'),
10902
11073
  })
10903
11074
  .describe('Unit price with spend commitments.'),
10904
11075
  zod
@@ -10960,7 +11131,9 @@ exports.EditSubscriptionBody = zod
10960
11131
  .describe('A price tier.\nAt least one price component is required in each tier.'))
10961
11132
  .min(1)
10962
11133
  .describe('The tiers of the tiered price.\nAt least one price component is required in each tier.'),
10963
- type: zod.enum(['tiered']),
11134
+ type: zod
11135
+ .enum(['tiered'])
11136
+ .describe('The type of the price.\n\nOne of: flat, unit, or tiered.'),
10964
11137
  })
10965
11138
  .describe('Tiered price with spend commitments.'),
10966
11139
  zod
@@ -10983,7 +11156,9 @@ exports.EditSubscriptionBody = zod
10983
11156
  .describe('Numeric represents an arbitrary precision number.')
10984
11157
  .default(exports.editSubscriptionBodyCustomizationsItemOneRateCardTwoPriceOneFourMultiplierDefault)
10985
11158
  .describe('The multiplier to apply to the base price to get the dynamic price.\n\nExamples:\n- 0.0: the price is zero\n- 0.5: the price is 50% of the base price\n- 1.0: the price is the same as the base price\n- 1.5: the price is 150% of the base price'),
10986
- type: zod.enum(['dynamic']),
11159
+ type: zod
11160
+ .enum(['dynamic'])
11161
+ .describe('The type of the price.'),
10987
11162
  })
10988
11163
  .describe('Dynamic price with spend commitments.'),
10989
11164
  zod
@@ -11010,7 +11185,9 @@ exports.EditSubscriptionBody = zod
11010
11185
  .regex(exports.editSubscriptionBodyCustomizationsItemOneRateCardTwoPriceOneFiveQuantityPerPackageOneRegExp)
11011
11186
  .describe('Numeric represents an arbitrary precision number.')
11012
11187
  .describe('The quantity per package.'),
11013
- type: zod.enum(['package']),
11188
+ type: zod
11189
+ .enum(['package'])
11190
+ .describe('The type of the price.'),
11014
11191
  })
11015
11192
  .describe('Package price with spend commitments.'),
11016
11193
  ])
@@ -11047,7 +11224,9 @@ exports.EditSubscriptionBody = zod
11047
11224
  .describe('Set of provider specific tax configs.')
11048
11225
  .optional()
11049
11226
  .describe('The tax config of the rate card.\nWhen undefined, the tax config of the feature or the default tax config of the plan is used.'),
11050
- type: zod.enum(['usage_based']),
11227
+ type: zod
11228
+ .enum(['usage_based'])
11229
+ .describe('The type of the RateCard.'),
11051
11230
  })
11052
11231
  .describe('A usage-based rate card defines a price based on usage.'),
11053
11232
  ])
@@ -11492,6 +11671,7 @@ exports.ChangeSubscriptionBody = zod
11492
11671
  .max(exports.changeSubscriptionBodyTwoCustomPlanOneOneCurrencyOneMax)
11493
11672
  .regex(exports.changeSubscriptionBodyTwoCustomPlanOneOneCurrencyOneRegExp)
11494
11673
  .describe('Three-letter [ISO4217](https://www.iso.org/iso-4217-currency-codes.html) currency code.\nCustom three-letter currency codes are also supported for convenience.')
11674
+ .default(exports.changeSubscriptionBodyTwoCustomPlanOneOneCurrencyDefault)
11495
11675
  .describe('The currency code of the plan.'),
11496
11676
  description: zod.coerce
11497
11677
  .string()
@@ -11674,7 +11854,9 @@ exports.ChangeSubscriptionBody = zod
11674
11854
  .describe('The payment term of a flat price.\nOne of: in_advance or in_arrears.')
11675
11855
  .default(exports.changeSubscriptionBodyTwoCustomPlanOneOnePhasesItemRateCardsItemOnePriceOnePaymentTermDefault)
11676
11856
  .describe('The payment term of the flat price.\nDefaults to in advance.'),
11677
- type: zod.enum(['flat']),
11857
+ type: zod
11858
+ .enum(['flat'])
11859
+ .describe('The type of the price.'),
11678
11860
  })
11679
11861
  .describe('Flat price with payment term.')
11680
11862
  .nullable()
@@ -11709,7 +11891,9 @@ exports.ChangeSubscriptionBody = zod
11709
11891
  .describe('Set of provider specific tax configs.')
11710
11892
  .optional()
11711
11893
  .describe('The tax config of the rate card.\nWhen undefined, the tax config of the feature or the default tax config of the plan is used.'),
11712
- type: zod.enum(['flat_fee']),
11894
+ type: zod
11895
+ .enum(['flat_fee'])
11896
+ .describe('The type of the RateCard.'),
11713
11897
  })
11714
11898
  .describe('A flat fee rate card defines a one-time purchase or a recurring fee.'),
11715
11899
  zod
@@ -11848,7 +12032,9 @@ exports.ChangeSubscriptionBody = zod
11848
12032
  .describe('The payment term of a flat price.\nOne of: in_advance or in_arrears.')
11849
12033
  .default(exports.changeSubscriptionBodyTwoCustomPlanOneOnePhasesItemRateCardsItemTwoPriceOneOnePaymentTermDefault)
11850
12034
  .describe('The payment term of the flat price.\nDefaults to in advance.'),
11851
- type: zod.enum(['flat']),
12035
+ type: zod
12036
+ .enum(['flat'])
12037
+ .describe('The type of the price.'),
11852
12038
  })
11853
12039
  .describe('Flat price with payment term.'),
11854
12040
  zod
@@ -11870,7 +12056,9 @@ exports.ChangeSubscriptionBody = zod
11870
12056
  .describe('Numeric represents an arbitrary precision number.')
11871
12057
  .optional()
11872
12058
  .describe('The customer is committed to spend at least the amount.'),
11873
- type: zod.enum(['unit']),
12059
+ type: zod
12060
+ .enum(['unit'])
12061
+ .describe('The type of the price.'),
11874
12062
  })
11875
12063
  .describe('Unit price with spend commitments.'),
11876
12064
  zod
@@ -11932,7 +12120,9 @@ exports.ChangeSubscriptionBody = zod
11932
12120
  .describe('A price tier.\nAt least one price component is required in each tier.'))
11933
12121
  .min(1)
11934
12122
  .describe('The tiers of the tiered price.\nAt least one price component is required in each tier.'),
11935
- type: zod.enum(['tiered']),
12123
+ type: zod
12124
+ .enum(['tiered'])
12125
+ .describe('The type of the price.\n\nOne of: flat, unit, or tiered.'),
11936
12126
  })
11937
12127
  .describe('Tiered price with spend commitments.'),
11938
12128
  zod
@@ -11955,7 +12145,9 @@ exports.ChangeSubscriptionBody = zod
11955
12145
  .describe('Numeric represents an arbitrary precision number.')
11956
12146
  .default(exports.changeSubscriptionBodyTwoCustomPlanOneOnePhasesItemRateCardsItemTwoPriceOneFourMultiplierDefault)
11957
12147
  .describe('The multiplier to apply to the base price to get the dynamic price.\n\nExamples:\n- 0.0: the price is zero\n- 0.5: the price is 50% of the base price\n- 1.0: the price is the same as the base price\n- 1.5: the price is 150% of the base price'),
11958
- type: zod.enum(['dynamic']),
12148
+ type: zod
12149
+ .enum(['dynamic'])
12150
+ .describe('The type of the price.'),
11959
12151
  })
11960
12152
  .describe('Dynamic price with spend commitments.'),
11961
12153
  zod
@@ -11982,7 +12174,9 @@ exports.ChangeSubscriptionBody = zod
11982
12174
  .regex(exports.changeSubscriptionBodyTwoCustomPlanOneOnePhasesItemRateCardsItemTwoPriceOneFiveQuantityPerPackageOneRegExp)
11983
12175
  .describe('Numeric represents an arbitrary precision number.')
11984
12176
  .describe('The quantity per package.'),
11985
- type: zod.enum(['package']),
12177
+ type: zod
12178
+ .enum(['package'])
12179
+ .describe('The type of the price.'),
11986
12180
  })
11987
12181
  .describe('Package price with spend commitments.'),
11988
12182
  ])
@@ -12019,7 +12213,9 @@ exports.ChangeSubscriptionBody = zod
12019
12213
  .describe('Set of provider specific tax configs.')
12020
12214
  .optional()
12021
12215
  .describe('The tax config of the rate card.\nWhen undefined, the tax config of the feature or the default tax config of the plan is used.'),
12022
- type: zod.enum(['usage_based']),
12216
+ type: zod
12217
+ .enum(['usage_based'])
12218
+ .describe('The type of the RateCard.'),
12023
12219
  })
12024
12220
  .describe('A usage-based rate card defines a price based on usage.'),
12025
12221
  ])
@@ -12033,10 +12229,12 @@ exports.ChangeSubscriptionBody = zod
12033
12229
  .object({
12034
12230
  enabled: zod.coerce
12035
12231
  .boolean()
12232
+ .default(exports.changeSubscriptionBodyTwoCustomPlanOneOneProRatingConfigOneEnabledDefault)
12036
12233
  .describe('Whether pro-rating is enabled for this plan.'),
12037
12234
  mode: zod
12038
12235
  .enum(['prorate_prices'])
12039
12236
  .describe('Pro-rating mode options for handling billing period changes.')
12237
+ .default(exports.changeSubscriptionBodyTwoCustomPlanOneOneProRatingConfigOneModeDefault)
12040
12238
  .describe('How to handle pro-rating for billing period changes.'),
12041
12239
  })
12042
12240
  .describe('Configuration for pro-rating behavior.')