orb-billing 5.44.0 → 5.45.0

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 (265) hide show
  1. package/CHANGELOG.md +39 -0
  2. package/core.d.ts +1 -1
  3. package/core.d.ts.map +1 -1
  4. package/core.js +8 -17
  5. package/core.js.map +1 -1
  6. package/core.mjs +8 -17
  7. package/core.mjs.map +1 -1
  8. package/index.d.mts +91 -5
  9. package/index.d.ts +91 -5
  10. package/index.d.ts.map +1 -1
  11. package/index.js +90 -2
  12. package/index.js.map +1 -1
  13. package/index.mjs +91 -3
  14. package/index.mjs.map +1 -1
  15. package/internal/utils/query.d.ts +2 -0
  16. package/internal/utils/query.d.ts.map +1 -0
  17. package/internal/utils/query.js +33 -0
  18. package/internal/utils/query.js.map +1 -0
  19. package/internal/utils/query.mjs +6 -0
  20. package/internal/utils/query.mjs.map +1 -0
  21. package/package.json +1 -1
  22. package/resources/alerts.d.ts +21 -0
  23. package/resources/alerts.d.ts.map +1 -1
  24. package/resources/alerts.js +6 -0
  25. package/resources/alerts.js.map +1 -1
  26. package/resources/alerts.mjs +6 -0
  27. package/resources/alerts.mjs.map +1 -1
  28. package/resources/beta/beta.d.ts +8293 -140
  29. package/resources/beta/beta.d.ts.map +1 -1
  30. package/resources/beta/beta.js +5 -0
  31. package/resources/beta/beta.js.map +1 -1
  32. package/resources/beta/beta.mjs +5 -0
  33. package/resources/beta/beta.mjs.map +1 -1
  34. package/resources/beta/external-plan-id.d.ts +8293 -140
  35. package/resources/beta/external-plan-id.d.ts.map +1 -1
  36. package/resources/beta/external-plan-id.js +5 -0
  37. package/resources/beta/external-plan-id.js.map +1 -1
  38. package/resources/beta/external-plan-id.mjs +5 -0
  39. package/resources/beta/external-plan-id.mjs.map +1 -1
  40. package/resources/coupons/coupons.d.ts +3 -0
  41. package/resources/coupons/coupons.d.ts.map +1 -1
  42. package/resources/coupons/coupons.js +3 -0
  43. package/resources/coupons/coupons.js.map +1 -1
  44. package/resources/coupons/coupons.mjs +3 -0
  45. package/resources/coupons/coupons.mjs.map +1 -1
  46. package/resources/coupons/subscriptions.d.ts +3 -0
  47. package/resources/coupons/subscriptions.d.ts.map +1 -1
  48. package/resources/coupons/subscriptions.js +3 -0
  49. package/resources/coupons/subscriptions.js.map +1 -1
  50. package/resources/coupons/subscriptions.mjs +3 -0
  51. package/resources/coupons/subscriptions.mjs.map +1 -1
  52. package/resources/credit-blocks.d.ts +85 -1
  53. package/resources/credit-blocks.d.ts.map +1 -1
  54. package/resources/credit-blocks.js +22 -0
  55. package/resources/credit-blocks.js.map +1 -1
  56. package/resources/credit-blocks.mjs +22 -0
  57. package/resources/credit-blocks.mjs.map +1 -1
  58. package/resources/credit-notes.d.ts +4 -0
  59. package/resources/credit-notes.d.ts.map +1 -1
  60. package/resources/credit-notes.js +4 -0
  61. package/resources/credit-notes.js.map +1 -1
  62. package/resources/credit-notes.mjs +4 -0
  63. package/resources/credit-notes.mjs.map +1 -1
  64. package/resources/customers/balance-transactions.d.ts +16 -0
  65. package/resources/customers/balance-transactions.d.ts.map +1 -1
  66. package/resources/customers/balance-transactions.js +16 -0
  67. package/resources/customers/balance-transactions.js.map +1 -1
  68. package/resources/customers/balance-transactions.mjs +16 -0
  69. package/resources/customers/balance-transactions.mjs.map +1 -1
  70. package/resources/customers/costs.d.ts +16 -0
  71. package/resources/customers/costs.d.ts.map +1 -1
  72. package/resources/customers/costs.js +16 -0
  73. package/resources/customers/costs.js.map +1 -1
  74. package/resources/customers/costs.mjs +16 -0
  75. package/resources/customers/costs.mjs.map +1 -1
  76. package/resources/customers/credits/credits.d.ts +39 -0
  77. package/resources/customers/credits/credits.d.ts.map +1 -1
  78. package/resources/customers/credits/credits.js +3 -0
  79. package/resources/customers/credits/credits.js.map +1 -1
  80. package/resources/customers/credits/credits.mjs +3 -0
  81. package/resources/customers/credits/credits.mjs.map +1 -1
  82. package/resources/customers/credits/ledger.d.ts +31 -4
  83. package/resources/customers/credits/ledger.d.ts.map +1 -1
  84. package/resources/customers/credits/ledger.js +19 -2
  85. package/resources/customers/credits/ledger.js.map +1 -1
  86. package/resources/customers/credits/ledger.mjs +19 -2
  87. package/resources/customers/credits/ledger.mjs.map +1 -1
  88. package/resources/customers/credits/top-ups.d.ts +3 -0
  89. package/resources/customers/credits/top-ups.d.ts.map +1 -1
  90. package/resources/customers/credits/top-ups.js +3 -0
  91. package/resources/customers/credits/top-ups.js.map +1 -1
  92. package/resources/customers/credits/top-ups.mjs +3 -0
  93. package/resources/customers/credits/top-ups.mjs.map +1 -1
  94. package/resources/customers/customers.d.ts +33 -12
  95. package/resources/customers/customers.d.ts.map +1 -1
  96. package/resources/customers/customers.js +20 -3
  97. package/resources/customers/customers.js.map +1 -1
  98. package/resources/customers/customers.mjs +20 -3
  99. package/resources/customers/customers.mjs.map +1 -1
  100. package/resources/dimensional-price-groups/external-dimensional-price-group-id.d.ts +1 -1
  101. package/resources/dimensional-price-groups/external-dimensional-price-group-id.d.ts.map +1 -1
  102. package/resources/events/backfills.d.ts +5 -0
  103. package/resources/events/backfills.d.ts.map +1 -1
  104. package/resources/events/backfills.js +5 -0
  105. package/resources/events/backfills.js.map +1 -1
  106. package/resources/events/backfills.mjs +5 -0
  107. package/resources/events/backfills.mjs.map +1 -1
  108. package/resources/events/events.d.ts +5 -0
  109. package/resources/events/events.d.ts.map +1 -1
  110. package/resources/events/events.js +5 -0
  111. package/resources/events/events.js.map +1 -1
  112. package/resources/events/events.mjs +5 -0
  113. package/resources/events/events.mjs.map +1 -1
  114. package/resources/events/volume.d.ts +5 -0
  115. package/resources/events/volume.d.ts.map +1 -1
  116. package/resources/events/volume.js +5 -0
  117. package/resources/events/volume.js.map +1 -1
  118. package/resources/events/volume.mjs +5 -0
  119. package/resources/events/volume.mjs.map +1 -1
  120. package/resources/index.d.ts +4 -2
  121. package/resources/index.d.ts.map +1 -1
  122. package/resources/index.js +7 -1
  123. package/resources/index.js.map +1 -1
  124. package/resources/index.mjs +3 -1
  125. package/resources/index.mjs.map +1 -1
  126. package/resources/invoice-line-items.d.ts +6 -0
  127. package/resources/invoice-line-items.d.ts.map +1 -1
  128. package/resources/invoice-line-items.js +6 -0
  129. package/resources/invoice-line-items.js.map +1 -1
  130. package/resources/invoice-line-items.mjs +6 -0
  131. package/resources/invoice-line-items.mjs.map +1 -1
  132. package/resources/invoices.d.ts +432 -7
  133. package/resources/invoices.d.ts.map +1 -1
  134. package/resources/invoices.js +18 -5
  135. package/resources/invoices.js.map +1 -1
  136. package/resources/invoices.mjs +18 -5
  137. package/resources/invoices.mjs.map +1 -1
  138. package/resources/items.d.ts +6 -2
  139. package/resources/items.d.ts.map +1 -1
  140. package/resources/items.js +4 -0
  141. package/resources/items.js.map +1 -1
  142. package/resources/items.mjs +4 -0
  143. package/resources/items.mjs.map +1 -1
  144. package/resources/license-types.d.ts +113 -0
  145. package/resources/license-types.d.ts.map +1 -0
  146. package/resources/license-types.js +44 -0
  147. package/resources/license-types.js.map +1 -0
  148. package/resources/license-types.mjs +39 -0
  149. package/resources/license-types.mjs.map +1 -0
  150. package/resources/licenses/external-licenses.d.ts +114 -0
  151. package/resources/licenses/external-licenses.d.ts.map +1 -0
  152. package/resources/licenses/external-licenses.js +18 -0
  153. package/resources/licenses/external-licenses.js.map +1 -0
  154. package/resources/licenses/external-licenses.mjs +14 -0
  155. package/resources/licenses/external-licenses.mjs.map +1 -0
  156. package/resources/licenses/index.d.ts +4 -0
  157. package/resources/licenses/index.d.ts.map +1 -0
  158. package/resources/licenses/index.js +12 -0
  159. package/resources/licenses/index.js.map +1 -0
  160. package/resources/licenses/index.mjs +5 -0
  161. package/resources/licenses/index.mjs.map +1 -0
  162. package/resources/licenses/licenses.d.ts +133 -0
  163. package/resources/licenses/licenses.d.ts.map +1 -0
  164. package/resources/licenses/licenses.js +86 -0
  165. package/resources/licenses/licenses.js.map +1 -0
  166. package/resources/licenses/licenses.mjs +58 -0
  167. package/resources/licenses/licenses.mjs.map +1 -0
  168. package/resources/licenses/usage.d.ts +211 -0
  169. package/resources/licenses/usage.d.ts.map +1 -0
  170. package/resources/licenses/usage.js +25 -0
  171. package/resources/licenses/usage.js.map +1 -0
  172. package/resources/licenses/usage.mjs +21 -0
  173. package/resources/licenses/usage.mjs.map +1 -0
  174. package/resources/licenses.d.ts +2 -0
  175. package/resources/licenses.d.ts.map +1 -0
  176. package/resources/licenses.js +19 -0
  177. package/resources/licenses.js.map +1 -0
  178. package/resources/licenses.mjs +3 -0
  179. package/resources/licenses.mjs.map +1 -0
  180. package/resources/metrics.d.ts +7 -0
  181. package/resources/metrics.d.ts.map +1 -1
  182. package/resources/metrics.js +4 -0
  183. package/resources/metrics.js.map +1 -1
  184. package/resources/metrics.mjs +4 -0
  185. package/resources/metrics.mjs.map +1 -1
  186. package/resources/plans/external-plan-id.d.ts +5 -0
  187. package/resources/plans/external-plan-id.d.ts.map +1 -1
  188. package/resources/plans/external-plan-id.js +5 -0
  189. package/resources/plans/external-plan-id.js.map +1 -1
  190. package/resources/plans/external-plan-id.mjs +5 -0
  191. package/resources/plans/external-plan-id.mjs.map +1 -1
  192. package/resources/plans/migrations.d.ts +5 -0
  193. package/resources/plans/migrations.d.ts.map +1 -1
  194. package/resources/plans/migrations.js +5 -0
  195. package/resources/plans/migrations.js.map +1 -1
  196. package/resources/plans/migrations.mjs +5 -0
  197. package/resources/plans/migrations.mjs.map +1 -1
  198. package/resources/plans/plans.d.ts +4200 -121
  199. package/resources/plans/plans.d.ts.map +1 -1
  200. package/resources/plans/plans.js +5 -0
  201. package/resources/plans/plans.js.map +1 -1
  202. package/resources/plans/plans.mjs +5 -0
  203. package/resources/plans/plans.mjs.map +1 -1
  204. package/resources/prices/external-price-id.d.ts +9 -0
  205. package/resources/prices/external-price-id.d.ts.map +1 -1
  206. package/resources/prices/external-price-id.js +9 -0
  207. package/resources/prices/external-price-id.js.map +1 -1
  208. package/resources/prices/external-price-id.mjs +9 -0
  209. package/resources/prices/external-price-id.mjs.map +1 -1
  210. package/resources/prices/prices.d.ts +198 -0
  211. package/resources/prices/prices.d.ts.map +1 -1
  212. package/resources/prices/prices.js +9 -0
  213. package/resources/prices/prices.js.map +1 -1
  214. package/resources/prices/prices.mjs +9 -0
  215. package/resources/prices/prices.mjs.map +1 -1
  216. package/resources/shared.d.ts +1040 -6
  217. package/resources/shared.d.ts.map +1 -1
  218. package/resources/shared.js.map +1 -1
  219. package/resources/shared.mjs.map +1 -1
  220. package/resources/subscriptions.d.ts +262 -0
  221. package/resources/subscriptions.d.ts.map +1 -1
  222. package/resources/subscriptions.js.map +1 -1
  223. package/resources/subscriptions.mjs.map +1 -1
  224. package/src/core.ts +10 -21
  225. package/src/index.ts +149 -5
  226. package/src/internal/utils/query.ts +7 -0
  227. package/src/resources/alerts.ts +24 -0
  228. package/src/resources/beta/beta.ts +9945 -194
  229. package/src/resources/beta/external-plan-id.ts +9945 -194
  230. package/src/resources/coupons/coupons.ts +3 -0
  231. package/src/resources/coupons/subscriptions.ts +3 -0
  232. package/src/resources/credit-blocks.ts +110 -1
  233. package/src/resources/credit-notes.ts +4 -0
  234. package/src/resources/customers/balance-transactions.ts +16 -0
  235. package/src/resources/customers/costs.ts +16 -0
  236. package/src/resources/customers/credits/credits.ts +45 -0
  237. package/src/resources/customers/credits/ledger.ts +33 -4
  238. package/src/resources/customers/credits/top-ups.ts +3 -0
  239. package/src/resources/customers/customers.ts +61 -12
  240. package/src/resources/dimensional-price-groups/external-dimensional-price-group-id.ts +1 -1
  241. package/src/resources/events/backfills.ts +5 -0
  242. package/src/resources/events/events.ts +5 -0
  243. package/src/resources/events/volume.ts +5 -0
  244. package/src/resources/index.ts +29 -1
  245. package/src/resources/invoice-line-items.ts +6 -0
  246. package/src/resources/invoices.ts +523 -6
  247. package/src/resources/items.ts +8 -2
  248. package/src/resources/license-types.ts +163 -0
  249. package/src/resources/licenses/external-licenses.ts +147 -0
  250. package/src/resources/licenses/index.ts +27 -0
  251. package/src/resources/licenses/licenses.ts +248 -0
  252. package/src/resources/licenses/usage.ts +280 -0
  253. package/src/resources/licenses.ts +3 -0
  254. package/src/resources/metrics.ts +6 -0
  255. package/src/resources/plans/external-plan-id.ts +5 -0
  256. package/src/resources/plans/migrations.ts +5 -0
  257. package/src/resources/plans/plans.ts +5004 -126
  258. package/src/resources/prices/external-price-id.ts +9 -0
  259. package/src/resources/prices/prices.ts +237 -0
  260. package/src/resources/shared.ts +1213 -0
  261. package/src/resources/subscriptions.ts +311 -0
  262. package/src/version.ts +1 -1
  263. package/version.d.ts +1 -1
  264. package/version.js +1 -1
  265. package/version.mjs +1 -1
@@ -4,6 +4,15 @@ import { APIResource } from '../../resource';
4
4
  import * as Core from '../../core';
5
5
  import * as Shared from '../shared';
6
6
 
7
+ /**
8
+ * The Price resource represents a price that can be billed on a subscription, resulting in a charge on an invoice in
9
+ * the form of an invoice line item. Prices take a quantity and determine an amount to bill.
10
+ *
11
+ * Orb supports a few different pricing models out of the box. Each of these models is serialized differently in a
12
+ * given Price object. The model_type field determines the key for the configuration object that is present.
13
+ *
14
+ * For more on the types of prices, see [the core concepts documentation](/core-concepts#plan-and-price)
15
+ */
7
16
  export class ExternalPriceID extends APIResource {
8
17
  /**
9
18
  * This endpoint allows you to update the `metadata` property on a price. If you
@@ -10,6 +10,15 @@ import * as ExternalPriceIDAPI from './external-price-id';
10
10
  import { ExternalPriceID, ExternalPriceIDUpdateParams } from './external-price-id';
11
11
  import { type PageParams } from '../../pagination';
12
12
 
13
+ /**
14
+ * The Price resource represents a price that can be billed on a subscription, resulting in a charge on an invoice in
15
+ * the form of an invoice line item. Prices take a quantity and determine an amount to bill.
16
+ *
17
+ * Orb supports a few different pricing models out of the box. Each of these models is serialized differently in a
18
+ * given Price object. The model_type field determines the key for the configuration object that is present.
19
+ *
20
+ * For more on the types of prices, see [the core concepts documentation](/core-concepts#plan-and-price)
21
+ */
13
22
  export class Prices extends APIResource {
14
23
  externalPriceId: ExternalPriceIDAPI.ExternalPriceID = new ExternalPriceIDAPI.ExternalPriceID(this._client);
15
24
 
@@ -373,6 +382,11 @@ export declare namespace PriceCreateParams {
373
382
  */
374
383
  invoicing_cycle_configuration?: Shared.NewBillingCycleConfiguration | null;
375
384
 
385
+ /**
386
+ * The ID of the license type to associate with this price.
387
+ */
388
+ license_type_id?: string | null;
389
+
376
390
  /**
377
391
  * User-specified key/value pairs for the resource. Individual keys can be removed
378
392
  * by setting the value to `null`, and the entire metadata mapping can be cleared
@@ -467,6 +481,11 @@ export declare namespace PriceCreateParams {
467
481
  */
468
482
  invoicing_cycle_configuration?: Shared.NewBillingCycleConfiguration | null;
469
483
 
484
+ /**
485
+ * The ID of the license type to associate with this price.
486
+ */
487
+ license_type_id?: string | null;
488
+
470
489
  /**
471
490
  * User-specified key/value pairs for the resource. Individual keys can be removed
472
491
  * by setting the value to `null`, and the entire metadata mapping can be cleared
@@ -561,6 +580,11 @@ export declare namespace PriceCreateParams {
561
580
  */
562
581
  invoicing_cycle_configuration?: Shared.NewBillingCycleConfiguration | null;
563
582
 
583
+ /**
584
+ * The ID of the license type to associate with this price.
585
+ */
586
+ license_type_id?: string | null;
587
+
564
588
  /**
565
589
  * User-specified key/value pairs for the resource. Individual keys can be removed
566
590
  * by setting the value to `null`, and the entire metadata mapping can be cleared
@@ -655,6 +679,11 @@ export declare namespace PriceCreateParams {
655
679
  */
656
680
  invoicing_cycle_configuration?: Shared.NewBillingCycleConfiguration | null;
657
681
 
682
+ /**
683
+ * The ID of the license type to associate with this price.
684
+ */
685
+ license_type_id?: string | null;
686
+
658
687
  /**
659
688
  * User-specified key/value pairs for the resource. Individual keys can be removed
660
689
  * by setting the value to `null`, and the entire metadata mapping can be cleared
@@ -798,6 +827,11 @@ export declare namespace PriceCreateParams {
798
827
  */
799
828
  invoicing_cycle_configuration?: Shared.NewBillingCycleConfiguration | null;
800
829
 
830
+ /**
831
+ * The ID of the license type to associate with this price.
832
+ */
833
+ license_type_id?: string | null;
834
+
801
835
  /**
802
836
  * User-specified key/value pairs for the resource. Individual keys can be removed
803
837
  * by setting the value to `null`, and the entire metadata mapping can be cleared
@@ -892,6 +926,11 @@ export declare namespace PriceCreateParams {
892
926
  */
893
927
  invoicing_cycle_configuration?: Shared.NewBillingCycleConfiguration | null;
894
928
 
929
+ /**
930
+ * The ID of the license type to associate with this price.
931
+ */
932
+ license_type_id?: string | null;
933
+
895
934
  /**
896
935
  * User-specified key/value pairs for the resource. Individual keys can be removed
897
936
  * by setting the value to `null`, and the entire metadata mapping can be cleared
@@ -986,6 +1025,11 @@ export declare namespace PriceCreateParams {
986
1025
  */
987
1026
  invoicing_cycle_configuration?: Shared.NewBillingCycleConfiguration | null;
988
1027
 
1028
+ /**
1029
+ * The ID of the license type to associate with this price.
1030
+ */
1031
+ license_type_id?: string | null;
1032
+
989
1033
  /**
990
1034
  * User-specified key/value pairs for the resource. Individual keys can be removed
991
1035
  * by setting the value to `null`, and the entire metadata mapping can be cleared
@@ -1112,6 +1156,11 @@ export declare namespace PriceCreateParams {
1112
1156
  */
1113
1157
  invoicing_cycle_configuration?: Shared.NewBillingCycleConfiguration | null;
1114
1158
 
1159
+ /**
1160
+ * The ID of the license type to associate with this price.
1161
+ */
1162
+ license_type_id?: string | null;
1163
+
1115
1164
  /**
1116
1165
  * User-specified key/value pairs for the resource. Individual keys can be removed
1117
1166
  * by setting the value to `null`, and the entire metadata mapping can be cleared
@@ -1237,6 +1286,11 @@ export declare namespace PriceCreateParams {
1237
1286
  */
1238
1287
  invoicing_cycle_configuration?: Shared.NewBillingCycleConfiguration | null;
1239
1288
 
1289
+ /**
1290
+ * The ID of the license type to associate with this price.
1291
+ */
1292
+ license_type_id?: string | null;
1293
+
1240
1294
  /**
1241
1295
  * User-specified key/value pairs for the resource. Individual keys can be removed
1242
1296
  * by setting the value to `null`, and the entire metadata mapping can be cleared
@@ -1370,6 +1424,11 @@ export declare namespace PriceCreateParams {
1370
1424
  */
1371
1425
  invoicing_cycle_configuration?: Shared.NewBillingCycleConfiguration | null;
1372
1426
 
1427
+ /**
1428
+ * The ID of the license type to associate with this price.
1429
+ */
1430
+ license_type_id?: string | null;
1431
+
1373
1432
  /**
1374
1433
  * User-specified key/value pairs for the resource. Individual keys can be removed
1375
1434
  * by setting the value to `null`, and the entire metadata mapping can be cleared
@@ -1496,6 +1555,11 @@ export declare namespace PriceCreateParams {
1496
1555
  */
1497
1556
  invoicing_cycle_configuration?: Shared.NewBillingCycleConfiguration | null;
1498
1557
 
1558
+ /**
1559
+ * The ID of the license type to associate with this price.
1560
+ */
1561
+ license_type_id?: string | null;
1562
+
1499
1563
  /**
1500
1564
  * User-specified key/value pairs for the resource. Individual keys can be removed
1501
1565
  * by setting the value to `null`, and the entire metadata mapping can be cleared
@@ -1618,6 +1682,11 @@ export declare namespace PriceCreateParams {
1618
1682
  */
1619
1683
  invoicing_cycle_configuration?: Shared.NewBillingCycleConfiguration | null;
1620
1684
 
1685
+ /**
1686
+ * The ID of the license type to associate with this price.
1687
+ */
1688
+ license_type_id?: string | null;
1689
+
1621
1690
  /**
1622
1691
  * User-specified key/value pairs for the resource. Individual keys can be removed
1623
1692
  * by setting the value to `null`, and the entire metadata mapping can be cleared
@@ -1725,6 +1794,11 @@ export declare namespace PriceCreateParams {
1725
1794
  */
1726
1795
  invoicing_cycle_configuration?: Shared.NewBillingCycleConfiguration | null;
1727
1796
 
1797
+ /**
1798
+ * The ID of the license type to associate with this price.
1799
+ */
1800
+ license_type_id?: string | null;
1801
+
1728
1802
  /**
1729
1803
  * User-specified key/value pairs for the resource. Individual keys can be removed
1730
1804
  * by setting the value to `null`, and the entire metadata mapping can be cleared
@@ -1836,6 +1910,11 @@ export declare namespace PriceCreateParams {
1836
1910
  */
1837
1911
  invoicing_cycle_configuration?: Shared.NewBillingCycleConfiguration | null;
1838
1912
 
1913
+ /**
1914
+ * The ID of the license type to associate with this price.
1915
+ */
1916
+ license_type_id?: string | null;
1917
+
1839
1918
  /**
1840
1919
  * User-specified key/value pairs for the resource. Individual keys can be removed
1841
1920
  * by setting the value to `null`, and the entire metadata mapping can be cleared
@@ -1930,6 +2009,11 @@ export declare namespace PriceCreateParams {
1930
2009
  */
1931
2010
  invoicing_cycle_configuration?: Shared.NewBillingCycleConfiguration | null;
1932
2011
 
2012
+ /**
2013
+ * The ID of the license type to associate with this price.
2014
+ */
2015
+ license_type_id?: string | null;
2016
+
1933
2017
  /**
1934
2018
  * User-specified key/value pairs for the resource. Individual keys can be removed
1935
2019
  * by setting the value to `null`, and the entire metadata mapping can be cleared
@@ -2054,6 +2138,11 @@ export declare namespace PriceCreateParams {
2054
2138
  */
2055
2139
  invoicing_cycle_configuration?: Shared.NewBillingCycleConfiguration | null;
2056
2140
 
2141
+ /**
2142
+ * The ID of the license type to associate with this price.
2143
+ */
2144
+ license_type_id?: string | null;
2145
+
2057
2146
  /**
2058
2147
  * User-specified key/value pairs for the resource. Individual keys can be removed
2059
2148
  * by setting the value to `null`, and the entire metadata mapping can be cleared
@@ -2160,6 +2249,11 @@ export declare namespace PriceCreateParams {
2160
2249
  */
2161
2250
  invoicing_cycle_configuration?: Shared.NewBillingCycleConfiguration | null;
2162
2251
 
2252
+ /**
2253
+ * The ID of the license type to associate with this price.
2254
+ */
2255
+ license_type_id?: string | null;
2256
+
2163
2257
  /**
2164
2258
  * User-specified key/value pairs for the resource. Individual keys can be removed
2165
2259
  * by setting the value to `null`, and the entire metadata mapping can be cleared
@@ -2276,6 +2370,11 @@ export declare namespace PriceCreateParams {
2276
2370
  */
2277
2371
  invoicing_cycle_configuration?: Shared.NewBillingCycleConfiguration | null;
2278
2372
 
2373
+ /**
2374
+ * The ID of the license type to associate with this price.
2375
+ */
2376
+ license_type_id?: string | null;
2377
+
2279
2378
  /**
2280
2379
  * User-specified key/value pairs for the resource. Individual keys can be removed
2281
2380
  * by setting the value to `null`, and the entire metadata mapping can be cleared
@@ -2399,6 +2498,11 @@ export declare namespace PriceCreateParams {
2399
2498
  */
2400
2499
  invoicing_cycle_configuration?: Shared.NewBillingCycleConfiguration | null;
2401
2500
 
2501
+ /**
2502
+ * The ID of the license type to associate with this price.
2503
+ */
2504
+ license_type_id?: string | null;
2505
+
2402
2506
  /**
2403
2507
  * User-specified key/value pairs for the resource. Individual keys can be removed
2404
2508
  * by setting the value to `null`, and the entire metadata mapping can be cleared
@@ -2515,6 +2619,11 @@ export declare namespace PriceCreateParams {
2515
2619
  */
2516
2620
  invoicing_cycle_configuration?: Shared.NewBillingCycleConfiguration | null;
2517
2621
 
2622
+ /**
2623
+ * The ID of the license type to associate with this price.
2624
+ */
2625
+ license_type_id?: string | null;
2626
+
2518
2627
  /**
2519
2628
  * User-specified key/value pairs for the resource. Individual keys can be removed
2520
2629
  * by setting the value to `null`, and the entire metadata mapping can be cleared
@@ -2671,6 +2780,11 @@ export declare namespace PriceCreateParams {
2671
2780
  */
2672
2781
  invoicing_cycle_configuration?: Shared.NewBillingCycleConfiguration | null;
2673
2782
 
2783
+ /**
2784
+ * The ID of the license type to associate with this price.
2785
+ */
2786
+ license_type_id?: string | null;
2787
+
2674
2788
  /**
2675
2789
  * User-specified key/value pairs for the resource. Individual keys can be removed
2676
2790
  * by setting the value to `null`, and the entire metadata mapping can be cleared
@@ -2792,6 +2906,11 @@ export declare namespace PriceCreateParams {
2792
2906
  */
2793
2907
  invoicing_cycle_configuration?: Shared.NewBillingCycleConfiguration | null;
2794
2908
 
2909
+ /**
2910
+ * The ID of the license type to associate with this price.
2911
+ */
2912
+ license_type_id?: string | null;
2913
+
2795
2914
  /**
2796
2915
  * User-specified key/value pairs for the resource. Individual keys can be removed
2797
2916
  * by setting the value to `null`, and the entire metadata mapping can be cleared
@@ -2925,6 +3044,11 @@ export declare namespace PriceCreateParams {
2925
3044
  */
2926
3045
  invoicing_cycle_configuration?: Shared.NewBillingCycleConfiguration | null;
2927
3046
 
3047
+ /**
3048
+ * The ID of the license type to associate with this price.
3049
+ */
3050
+ license_type_id?: string | null;
3051
+
2928
3052
  /**
2929
3053
  * User-specified key/value pairs for the resource. Individual keys can be removed
2930
3054
  * by setting the value to `null`, and the entire metadata mapping can be cleared
@@ -3053,6 +3177,11 @@ export declare namespace PriceCreateParams {
3053
3177
  */
3054
3178
  invoicing_cycle_configuration?: Shared.NewBillingCycleConfiguration | null;
3055
3179
 
3180
+ /**
3181
+ * The ID of the license type to associate with this price.
3182
+ */
3183
+ license_type_id?: string | null;
3184
+
3056
3185
  /**
3057
3186
  * User-specified key/value pairs for the resource. Individual keys can be removed
3058
3187
  * by setting the value to `null`, and the entire metadata mapping can be cleared
@@ -3180,6 +3309,11 @@ export declare namespace PriceCreateParams {
3180
3309
  */
3181
3310
  invoicing_cycle_configuration?: Shared.NewBillingCycleConfiguration | null;
3182
3311
 
3312
+ /**
3313
+ * The ID of the license type to associate with this price.
3314
+ */
3315
+ license_type_id?: string | null;
3316
+
3183
3317
  /**
3184
3318
  * User-specified key/value pairs for the resource. Individual keys can be removed
3185
3319
  * by setting the value to `null`, and the entire metadata mapping can be cleared
@@ -3208,6 +3342,11 @@ export declare namespace PriceCreateParams {
3208
3342
  */
3209
3343
  unit_price: string;
3210
3344
 
3345
+ /**
3346
+ * The property used to group this price
3347
+ */
3348
+ grouping_key?: string | null;
3349
+
3211
3350
  /**
3212
3351
  * If true, the unit price will be prorated to the billing period
3213
3352
  */
@@ -3319,6 +3458,11 @@ export declare namespace PriceCreateParams {
3319
3458
  */
3320
3459
  invoicing_cycle_configuration?: Shared.NewBillingCycleConfiguration | null;
3321
3460
 
3461
+ /**
3462
+ * The ID of the license type to associate with this price.
3463
+ */
3464
+ license_type_id?: string | null;
3465
+
3322
3466
  /**
3323
3467
  * User-specified key/value pairs for the resource. Individual keys can be removed
3324
3468
  * by setting the value to `null`, and the entire metadata mapping can be cleared
@@ -3459,6 +3603,11 @@ export declare namespace PriceCreateParams {
3459
3603
  */
3460
3604
  invoicing_cycle_configuration?: Shared.NewBillingCycleConfiguration | null;
3461
3605
 
3606
+ /**
3607
+ * The ID of the license type to associate with this price.
3608
+ */
3609
+ license_type_id?: string | null;
3610
+
3462
3611
  /**
3463
3612
  * User-specified key/value pairs for the resource. Individual keys can be removed
3464
3613
  * by setting the value to `null`, and the entire metadata mapping can be cleared
@@ -3589,6 +3738,11 @@ export declare namespace PriceCreateParams {
3589
3738
  */
3590
3739
  invoicing_cycle_configuration?: Shared.NewBillingCycleConfiguration | null;
3591
3740
 
3741
+ /**
3742
+ * The ID of the license type to associate with this price.
3743
+ */
3744
+ license_type_id?: string | null;
3745
+
3592
3746
  /**
3593
3747
  * User-specified key/value pairs for the resource. Individual keys can be removed
3594
3748
  * by setting the value to `null`, and the entire metadata mapping can be cleared
@@ -3710,6 +3864,11 @@ export declare namespace PriceCreateParams {
3710
3864
  */
3711
3865
  invoicing_cycle_configuration?: Shared.NewBillingCycleConfiguration | null;
3712
3866
 
3867
+ /**
3868
+ * The ID of the license type to associate with this price.
3869
+ */
3870
+ license_type_id?: string | null;
3871
+
3713
3872
  /**
3714
3873
  * User-specified key/value pairs for the resource. Individual keys can be removed
3715
3874
  * by setting the value to `null`, and the entire metadata mapping can be cleared
@@ -3821,6 +3980,11 @@ export declare namespace PriceCreateParams {
3821
3980
  */
3822
3981
  invoicing_cycle_configuration?: Shared.NewBillingCycleConfiguration | null;
3823
3982
 
3983
+ /**
3984
+ * The ID of the license type to associate with this price.
3985
+ */
3986
+ license_type_id?: string | null;
3987
+
3824
3988
  /**
3825
3989
  * User-specified key/value pairs for the resource. Individual keys can be removed
3826
3990
  * by setting the value to `null`, and the entire metadata mapping can be cleared
@@ -3927,6 +4091,11 @@ export declare namespace PriceCreateParams {
3927
4091
  */
3928
4092
  invoicing_cycle_configuration?: Shared.NewBillingCycleConfiguration | null;
3929
4093
 
4094
+ /**
4095
+ * The ID of the license type to associate with this price.
4096
+ */
4097
+ license_type_id?: string | null;
4098
+
3930
4099
  /**
3931
4100
  * User-specified key/value pairs for the resource. Individual keys can be removed
3932
4101
  * by setting the value to `null`, and the entire metadata mapping can be cleared
@@ -4006,6 +4175,12 @@ export interface PriceEvaluateParams {
4006
4175
  * to group the underlying billable metric
4007
4176
  */
4008
4177
  grouping_keys?: Array<string>;
4178
+
4179
+ /**
4180
+ * Optional overrides for parameterized billable metric parameters. If the metric
4181
+ * has parameter definitions and no overrides are provided, defaults will be used.
4182
+ */
4183
+ metric_parameter_overrides?: { [key: string]: unknown } | null;
4009
4184
  }
4010
4185
 
4011
4186
  export interface PriceEvaluateMultipleParams {
@@ -4056,6 +4231,12 @@ export namespace PriceEvaluateMultipleParams {
4056
4231
  */
4057
4232
  grouping_keys?: Array<string>;
4058
4233
 
4234
+ /**
4235
+ * Optional overrides for parameterized billable metric parameters. If the metric
4236
+ * has parameter definitions and no overrides are provided, defaults will be used.
4237
+ */
4238
+ metric_parameter_overrides?: { [key: string]: unknown } | null;
4239
+
4059
4240
  /**
4060
4241
  * New floating price request body params.
4061
4242
  */
@@ -4186,6 +4367,11 @@ export namespace PriceEvaluateMultipleParams {
4186
4367
  */
4187
4368
  invoicing_cycle_configuration?: Shared.NewBillingCycleConfiguration | null;
4188
4369
 
4370
+ /**
4371
+ * The ID of the license type to associate with this price.
4372
+ */
4373
+ license_type_id?: string | null;
4374
+
4189
4375
  /**
4190
4376
  * User-specified key/value pairs for the resource. Individual keys can be removed
4191
4377
  * by setting the value to `null`, and the entire metadata mapping can be cleared
@@ -4329,6 +4515,11 @@ export namespace PriceEvaluateMultipleParams {
4329
4515
  */
4330
4516
  invoicing_cycle_configuration?: Shared.NewBillingCycleConfiguration | null;
4331
4517
 
4518
+ /**
4519
+ * The ID of the license type to associate with this price.
4520
+ */
4521
+ license_type_id?: string | null;
4522
+
4332
4523
  /**
4333
4524
  * User-specified key/value pairs for the resource. Individual keys can be removed
4334
4525
  * by setting the value to `null`, and the entire metadata mapping can be cleared
@@ -4450,6 +4641,11 @@ export namespace PriceEvaluateMultipleParams {
4450
4641
  */
4451
4642
  invoicing_cycle_configuration?: Shared.NewBillingCycleConfiguration | null;
4452
4643
 
4644
+ /**
4645
+ * The ID of the license type to associate with this price.
4646
+ */
4647
+ license_type_id?: string | null;
4648
+
4453
4649
  /**
4454
4650
  * User-specified key/value pairs for the resource. Individual keys can be removed
4455
4651
  * by setting the value to `null`, and the entire metadata mapping can be cleared
@@ -4571,6 +4767,11 @@ export namespace PriceEvaluateMultipleParams {
4571
4767
  */
4572
4768
  invoicing_cycle_configuration?: Shared.NewBillingCycleConfiguration | null;
4573
4769
 
4770
+ /**
4771
+ * The ID of the license type to associate with this price.
4772
+ */
4773
+ license_type_id?: string | null;
4774
+
4574
4775
  /**
4575
4776
  * User-specified key/value pairs for the resource. Individual keys can be removed
4576
4777
  * by setting the value to `null`, and the entire metadata mapping can be cleared
@@ -4677,6 +4878,11 @@ export namespace PriceEvaluateMultipleParams {
4677
4878
  */
4678
4879
  invoicing_cycle_configuration?: Shared.NewBillingCycleConfiguration | null;
4679
4880
 
4881
+ /**
4882
+ * The ID of the license type to associate with this price.
4883
+ */
4884
+ license_type_id?: string | null;
4885
+
4680
4886
  /**
4681
4887
  * User-specified key/value pairs for the resource. Individual keys can be removed
4682
4888
  * by setting the value to `null`, and the entire metadata mapping can be cleared
@@ -4796,6 +5002,12 @@ export namespace PriceEvaluatePreviewEventsParams {
4796
5002
  */
4797
5003
  grouping_keys?: Array<string>;
4798
5004
 
5005
+ /**
5006
+ * Optional overrides for parameterized billable metric parameters. If the metric
5007
+ * has parameter definitions and no overrides are provided, defaults will be used.
5008
+ */
5009
+ metric_parameter_overrides?: { [key: string]: unknown } | null;
5010
+
4799
5011
  /**
4800
5012
  * New floating price request body params.
4801
5013
  */
@@ -4926,6 +5138,11 @@ export namespace PriceEvaluatePreviewEventsParams {
4926
5138
  */
4927
5139
  invoicing_cycle_configuration?: Shared.NewBillingCycleConfiguration | null;
4928
5140
 
5141
+ /**
5142
+ * The ID of the license type to associate with this price.
5143
+ */
5144
+ license_type_id?: string | null;
5145
+
4929
5146
  /**
4930
5147
  * User-specified key/value pairs for the resource. Individual keys can be removed
4931
5148
  * by setting the value to `null`, and the entire metadata mapping can be cleared
@@ -5069,6 +5286,11 @@ export namespace PriceEvaluatePreviewEventsParams {
5069
5286
  */
5070
5287
  invoicing_cycle_configuration?: Shared.NewBillingCycleConfiguration | null;
5071
5288
 
5289
+ /**
5290
+ * The ID of the license type to associate with this price.
5291
+ */
5292
+ license_type_id?: string | null;
5293
+
5072
5294
  /**
5073
5295
  * User-specified key/value pairs for the resource. Individual keys can be removed
5074
5296
  * by setting the value to `null`, and the entire metadata mapping can be cleared
@@ -5190,6 +5412,11 @@ export namespace PriceEvaluatePreviewEventsParams {
5190
5412
  */
5191
5413
  invoicing_cycle_configuration?: Shared.NewBillingCycleConfiguration | null;
5192
5414
 
5415
+ /**
5416
+ * The ID of the license type to associate with this price.
5417
+ */
5418
+ license_type_id?: string | null;
5419
+
5193
5420
  /**
5194
5421
  * User-specified key/value pairs for the resource. Individual keys can be removed
5195
5422
  * by setting the value to `null`, and the entire metadata mapping can be cleared
@@ -5311,6 +5538,11 @@ export namespace PriceEvaluatePreviewEventsParams {
5311
5538
  */
5312
5539
  invoicing_cycle_configuration?: Shared.NewBillingCycleConfiguration | null;
5313
5540
 
5541
+ /**
5542
+ * The ID of the license type to associate with this price.
5543
+ */
5544
+ license_type_id?: string | null;
5545
+
5314
5546
  /**
5315
5547
  * User-specified key/value pairs for the resource. Individual keys can be removed
5316
5548
  * by setting the value to `null`, and the entire metadata mapping can be cleared
@@ -5417,6 +5649,11 @@ export namespace PriceEvaluatePreviewEventsParams {
5417
5649
  */
5418
5650
  invoicing_cycle_configuration?: Shared.NewBillingCycleConfiguration | null;
5419
5651
 
5652
+ /**
5653
+ * The ID of the license type to associate with this price.
5654
+ */
5655
+ license_type_id?: string | null;
5656
+
5420
5657
  /**
5421
5658
  * User-specified key/value pairs for the resource. Individual keys can be removed
5422
5659
  * by setting the value to `null`, and the entire metadata mapping can be cleared