orb-billing 2.1.2 → 2.3.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 (93) hide show
  1. package/CHANGELOG.md +55 -0
  2. package/README.md +29 -0
  3. package/index.d.mts +16 -5
  4. package/index.d.ts +16 -5
  5. package/index.d.ts.map +1 -1
  6. package/index.js +7 -6
  7. package/index.js.map +1 -1
  8. package/index.mjs +7 -6
  9. package/index.mjs.map +1 -1
  10. package/package.json +2 -3
  11. package/resources/coupons/coupons.d.ts +3 -22
  12. package/resources/coupons/coupons.d.ts.map +1 -1
  13. package/resources/coupons/coupons.js.map +1 -1
  14. package/resources/coupons/coupons.mjs.map +1 -1
  15. package/resources/customers/costs.d.ts +4 -4
  16. package/resources/customers/costs.d.ts.map +1 -1
  17. package/resources/customers/costs.js.map +1 -1
  18. package/resources/customers/costs.mjs.map +1 -1
  19. package/resources/customers/credits/credits.d.ts +6 -4
  20. package/resources/customers/credits/credits.d.ts.map +1 -1
  21. package/resources/customers/credits/credits.js.map +1 -1
  22. package/resources/customers/credits/credits.mjs.map +1 -1
  23. package/resources/customers/credits/ledger.d.ts +20 -10
  24. package/resources/customers/credits/ledger.d.ts.map +1 -1
  25. package/resources/customers/credits/ledger.js.map +1 -1
  26. package/resources/customers/credits/ledger.mjs.map +1 -1
  27. package/resources/customers/credits/top-ups.d.ts +38 -8
  28. package/resources/customers/credits/top-ups.d.ts.map +1 -1
  29. package/resources/customers/credits/top-ups.js.map +1 -1
  30. package/resources/customers/credits/top-ups.mjs.map +1 -1
  31. package/resources/customers/usage.d.ts +2 -2
  32. package/resources/customers/usage.d.ts.map +1 -1
  33. package/resources/customers/usage.js.map +1 -1
  34. package/resources/customers/usage.mjs.map +1 -1
  35. package/resources/index.d.ts +3 -3
  36. package/resources/index.d.ts.map +1 -1
  37. package/resources/index.js +6 -6
  38. package/resources/index.js.map +1 -1
  39. package/resources/index.mjs +2 -2
  40. package/resources/index.mjs.map +1 -1
  41. package/resources/invoices.d.ts +2 -0
  42. package/resources/invoices.d.ts.map +1 -1
  43. package/resources/invoices.js.map +1 -1
  44. package/resources/invoices.mjs.map +1 -1
  45. package/resources/plans/plans.d.ts +65 -0
  46. package/resources/plans/plans.d.ts.map +1 -1
  47. package/resources/plans/plans.js.map +1 -1
  48. package/resources/plans/plans.mjs.map +1 -1
  49. package/resources/prices/index.d.ts +1 -1
  50. package/resources/prices/index.d.ts.map +1 -1
  51. package/resources/prices/index.js +3 -3
  52. package/resources/prices/index.js.map +1 -1
  53. package/resources/prices/index.mjs +1 -1
  54. package/resources/prices/index.mjs.map +1 -1
  55. package/resources/prices/prices.d.ts +301 -2
  56. package/resources/prices/prices.d.ts.map +1 -1
  57. package/resources/prices/prices.js +26 -0
  58. package/resources/prices/prices.js.map +1 -1
  59. package/resources/prices/prices.mjs +26 -0
  60. package/resources/prices/prices.mjs.map +1 -1
  61. package/resources/shared.d.ts +5 -0
  62. package/resources/shared.d.ts.map +1 -1
  63. package/resources/subscriptions.d.ts +91 -17
  64. package/resources/subscriptions.d.ts.map +1 -1
  65. package/resources/subscriptions.js +6 -0
  66. package/resources/subscriptions.js.map +1 -1
  67. package/resources/subscriptions.mjs +6 -0
  68. package/resources/subscriptions.mjs.map +1 -1
  69. package/resources/webhooks.d.ts +24 -0
  70. package/resources/webhooks.d.ts.map +1 -0
  71. package/resources/webhooks.js +110 -0
  72. package/resources/webhooks.js.map +1 -0
  73. package/resources/webhooks.mjs +106 -0
  74. package/resources/webhooks.mjs.map +1 -0
  75. package/src/index.ts +20 -7
  76. package/src/resources/coupons/coupons.ts +3 -26
  77. package/src/resources/customers/costs.ts +6 -6
  78. package/src/resources/customers/credits/credits.ts +10 -6
  79. package/src/resources/customers/credits/ledger.ts +24 -12
  80. package/src/resources/customers/credits/top-ups.ts +46 -10
  81. package/src/resources/customers/usage.ts +2 -2
  82. package/src/resources/index.ts +12 -2
  83. package/src/resources/invoices.ts +4 -0
  84. package/src/resources/plans/plans.ts +78 -0
  85. package/src/resources/prices/index.ts +10 -1
  86. package/src/resources/prices/prices.ts +428 -0
  87. package/src/resources/shared.ts +8 -0
  88. package/src/resources/subscriptions.ts +122 -20
  89. package/src/resources/webhooks.ts +142 -0
  90. package/src/version.ts +1 -1
  91. package/version.d.ts +1 -1
  92. package/version.js +1 -1
  93. package/version.mjs +1 -1
@@ -373,6 +373,12 @@ export namespace PlanCreateParams {
373
373
  */
374
374
  billed_in_advance?: boolean | null;
375
375
 
376
+ /**
377
+ * An ISO 4217 currency string, or custom pricing unit identifier, in which this
378
+ * price is billed.
379
+ */
380
+ currency?: string | null;
381
+
376
382
  /**
377
383
  * An alias for the price.
378
384
  */
@@ -431,6 +437,12 @@ export namespace PlanCreateParams {
431
437
  */
432
438
  billed_in_advance?: boolean | null;
433
439
 
440
+ /**
441
+ * An ISO 4217 currency string, or custom pricing unit identifier, in which this
442
+ * price is billed.
443
+ */
444
+ currency?: string | null;
445
+
434
446
  /**
435
447
  * An alias for the price.
436
448
  */
@@ -495,6 +507,12 @@ export namespace PlanCreateParams {
495
507
  */
496
508
  billed_in_advance?: boolean | null;
497
509
 
510
+ /**
511
+ * An ISO 4217 currency string, or custom pricing unit identifier, in which this
512
+ * price is billed.
513
+ */
514
+ currency?: string | null;
515
+
498
516
  /**
499
517
  * An alias for the price.
500
518
  */
@@ -579,6 +597,12 @@ export namespace PlanCreateParams {
579
597
  */
580
598
  billed_in_advance?: boolean | null;
581
599
 
600
+ /**
601
+ * An ISO 4217 currency string, or custom pricing unit identifier, in which this
602
+ * price is billed.
603
+ */
604
+ currency?: string | null;
605
+
582
606
  /**
583
607
  * An alias for the price.
584
608
  */
@@ -656,6 +680,12 @@ export namespace PlanCreateParams {
656
680
  */
657
681
  billed_in_advance?: boolean | null;
658
682
 
683
+ /**
684
+ * An ISO 4217 currency string, or custom pricing unit identifier, in which this
685
+ * price is billed.
686
+ */
687
+ currency?: string | null;
688
+
659
689
  /**
660
690
  * An alias for the price.
661
691
  */
@@ -739,6 +769,12 @@ export namespace PlanCreateParams {
739
769
  */
740
770
  billed_in_advance?: boolean | null;
741
771
 
772
+ /**
773
+ * An ISO 4217 currency string, or custom pricing unit identifier, in which this
774
+ * price is billed.
775
+ */
776
+ currency?: string | null;
777
+
742
778
  /**
743
779
  * An alias for the price.
744
780
  */
@@ -802,6 +838,12 @@ export namespace PlanCreateParams {
802
838
  */
803
839
  billed_in_advance?: boolean | null;
804
840
 
841
+ /**
842
+ * An ISO 4217 currency string, or custom pricing unit identifier, in which this
843
+ * price is billed.
844
+ */
845
+ currency?: string | null;
846
+
805
847
  /**
806
848
  * An alias for the price.
807
849
  */
@@ -880,6 +922,12 @@ export namespace PlanCreateParams {
880
922
  */
881
923
  billed_in_advance?: boolean | null;
882
924
 
925
+ /**
926
+ * An ISO 4217 currency string, or custom pricing unit identifier, in which this
927
+ * price is billed.
928
+ */
929
+ currency?: string | null;
930
+
883
931
  /**
884
932
  * An alias for the price.
885
933
  */
@@ -952,6 +1000,12 @@ export namespace PlanCreateParams {
952
1000
  */
953
1001
  billed_in_advance?: boolean | null;
954
1002
 
1003
+ /**
1004
+ * An ISO 4217 currency string, or custom pricing unit identifier, in which this
1005
+ * price is billed.
1006
+ */
1007
+ currency?: string | null;
1008
+
955
1009
  /**
956
1010
  * An alias for the price.
957
1011
  */
@@ -1001,6 +1055,12 @@ export namespace PlanCreateParams {
1001
1055
  */
1002
1056
  billed_in_advance?: boolean | null;
1003
1057
 
1058
+ /**
1059
+ * An ISO 4217 currency string, or custom pricing unit identifier, in which this
1060
+ * price is billed.
1061
+ */
1062
+ currency?: string | null;
1063
+
1004
1064
  /**
1005
1065
  * An alias for the price.
1006
1066
  */
@@ -1050,6 +1110,12 @@ export namespace PlanCreateParams {
1050
1110
  */
1051
1111
  billed_in_advance?: boolean | null;
1052
1112
 
1113
+ /**
1114
+ * An ISO 4217 currency string, or custom pricing unit identifier, in which this
1115
+ * price is billed.
1116
+ */
1117
+ currency?: string | null;
1118
+
1053
1119
  /**
1054
1120
  * An alias for the price.
1055
1121
  */
@@ -1099,6 +1165,12 @@ export namespace PlanCreateParams {
1099
1165
  */
1100
1166
  billed_in_advance?: boolean | null;
1101
1167
 
1168
+ /**
1169
+ * An ISO 4217 currency string, or custom pricing unit identifier, in which this
1170
+ * price is billed.
1171
+ */
1172
+ currency?: string | null;
1173
+
1102
1174
  /**
1103
1175
  * An alias for the price.
1104
1176
  */
@@ -1148,6 +1220,12 @@ export namespace PlanCreateParams {
1148
1220
  */
1149
1221
  billed_in_advance?: boolean | null;
1150
1222
 
1223
+ /**
1224
+ * An ISO 4217 currency string, or custom pricing unit identifier, in which this
1225
+ * price is billed.
1226
+ */
1227
+ currency?: string | null;
1228
+
1151
1229
  /**
1152
1230
  * An alias for the price.
1153
1231
  */
@@ -1,4 +1,13 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
+ export {
4
+ EvaluatePriceGroup,
5
+ Price,
6
+ PriceEvaluateResponse,
7
+ PriceCreateParams,
8
+ PriceListParams,
9
+ PriceEvaluateParams,
10
+ PricesPage,
11
+ Prices,
12
+ } from './prices';
3
13
  export { ExternalPriceID } from './external-price-id';
4
- export { Price, PriceCreateParams, PriceListParams, PricesPage, Prices } from './prices';