orb-billing 5.15.0 → 5.17.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.
- package/CHANGELOG.md +22 -0
- package/package.json +1 -1
- package/resources/beta/beta.d.ts +396 -2
- package/resources/beta/beta.d.ts.map +1 -1
- package/resources/beta/beta.js.map +1 -1
- package/resources/beta/beta.mjs.map +1 -1
- package/resources/beta/external-plan-id.d.ts +396 -2
- package/resources/beta/external-plan-id.d.ts.map +1 -1
- package/resources/invoice-line-items.d.ts +27 -5
- package/resources/invoice-line-items.d.ts.map +1 -1
- package/resources/invoice-line-items.js +11 -0
- package/resources/invoice-line-items.js.map +1 -1
- package/resources/invoice-line-items.mjs +11 -0
- package/resources/invoice-line-items.mjs.map +1 -1
- package/resources/items.d.ts +37 -0
- package/resources/items.d.ts.map +1 -1
- package/resources/items.js.map +1 -1
- package/resources/items.mjs.map +1 -1
- package/resources/plans/plans.d.ts +198 -1
- package/resources/plans/plans.d.ts.map +1 -1
- package/resources/plans/plans.js.map +1 -1
- package/resources/plans/plans.mjs.map +1 -1
- package/resources/prices/prices.d.ts +558 -3
- package/resources/prices/prices.d.ts.map +1 -1
- package/resources/prices/prices.js.map +1 -1
- package/resources/prices/prices.mjs.map +1 -1
- package/resources/shared.d.ts +280 -1
- package/resources/shared.d.ts.map +1 -1
- package/resources/shared.js.map +1 -1
- package/resources/shared.mjs.map +1 -1
- package/resources/subscriptions.d.ts +1104 -131
- package/resources/subscriptions.d.ts.map +1 -1
- package/resources/subscriptions.js.map +1 -1
- package/resources/subscriptions.mjs.map +1 -1
- package/src/resources/beta/beta.ts +468 -0
- package/src/resources/beta/external-plan-id.ts +468 -0
- package/src/resources/invoice-line-items.ts +29 -6
- package/src/resources/items.ts +38 -0
- package/src/resources/plans/plans.ts +234 -0
- package/src/resources/prices/prices.ts +688 -28
- package/src/resources/shared.ts +337 -1
- package/src/resources/subscriptions.ts +1250 -94
- package/src/version.ts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
package/src/resources/shared.ts
CHANGED
|
@@ -2097,9 +2097,19 @@ export interface InvoiceTiny {
|
|
|
2097
2097
|
id: string;
|
|
2098
2098
|
}
|
|
2099
2099
|
|
|
2100
|
+
/**
|
|
2101
|
+
* A minimal representation of an Item containing only the essential identifying
|
|
2102
|
+
* information.
|
|
2103
|
+
*/
|
|
2100
2104
|
export interface ItemSlim {
|
|
2105
|
+
/**
|
|
2106
|
+
* The Orb-assigned unique identifier for the item.
|
|
2107
|
+
*/
|
|
2101
2108
|
id: string;
|
|
2102
2109
|
|
|
2110
|
+
/**
|
|
2111
|
+
* The name of the item.
|
|
2112
|
+
*/
|
|
2103
2113
|
name: string;
|
|
2104
2114
|
}
|
|
2105
2115
|
|
|
@@ -9533,7 +9543,9 @@ export type Price =
|
|
|
9533
9543
|
| Price.ScalableMatrixWithUnitPricingPrice
|
|
9534
9544
|
| Price.ScalableMatrixWithTieredPricingPrice
|
|
9535
9545
|
| Price.CumulativeGroupedBulkPrice
|
|
9536
|
-
| Price.MinimumCompositePrice
|
|
9546
|
+
| Price.MinimumCompositePrice
|
|
9547
|
+
| Price.PercentCompositePrice
|
|
9548
|
+
| Price.EventOutputPrice;
|
|
9537
9549
|
|
|
9538
9550
|
export namespace Price {
|
|
9539
9551
|
export interface UnitPrice {
|
|
@@ -9570,6 +9582,10 @@ export namespace Price {
|
|
|
9570
9582
|
|
|
9571
9583
|
invoicing_cycle_configuration: Shared.BillingCycleConfiguration | null;
|
|
9572
9584
|
|
|
9585
|
+
/**
|
|
9586
|
+
* A minimal representation of an Item containing only the essential identifying
|
|
9587
|
+
* information.
|
|
9588
|
+
*/
|
|
9573
9589
|
item: Shared.ItemSlim;
|
|
9574
9590
|
|
|
9575
9591
|
/**
|
|
@@ -9659,6 +9675,10 @@ export namespace Price {
|
|
|
9659
9675
|
|
|
9660
9676
|
invoicing_cycle_configuration: Shared.BillingCycleConfiguration | null;
|
|
9661
9677
|
|
|
9678
|
+
/**
|
|
9679
|
+
* A minimal representation of an Item containing only the essential identifying
|
|
9680
|
+
* information.
|
|
9681
|
+
*/
|
|
9662
9682
|
item: Shared.ItemSlim;
|
|
9663
9683
|
|
|
9664
9684
|
/**
|
|
@@ -9753,6 +9773,10 @@ export namespace Price {
|
|
|
9753
9773
|
|
|
9754
9774
|
invoicing_cycle_configuration: Shared.BillingCycleConfiguration | null;
|
|
9755
9775
|
|
|
9776
|
+
/**
|
|
9777
|
+
* A minimal representation of an Item containing only the essential identifying
|
|
9778
|
+
* information.
|
|
9779
|
+
*/
|
|
9756
9780
|
item: Shared.ItemSlim;
|
|
9757
9781
|
|
|
9758
9782
|
/**
|
|
@@ -9837,6 +9861,10 @@ export namespace Price {
|
|
|
9837
9861
|
|
|
9838
9862
|
invoicing_cycle_configuration: Shared.BillingCycleConfiguration | null;
|
|
9839
9863
|
|
|
9864
|
+
/**
|
|
9865
|
+
* A minimal representation of an Item containing only the essential identifying
|
|
9866
|
+
* information.
|
|
9867
|
+
*/
|
|
9840
9868
|
item: Shared.ItemSlim;
|
|
9841
9869
|
|
|
9842
9870
|
/**
|
|
@@ -9926,6 +9954,10 @@ export namespace Price {
|
|
|
9926
9954
|
|
|
9927
9955
|
invoicing_cycle_configuration: Shared.BillingCycleConfiguration | null;
|
|
9928
9956
|
|
|
9957
|
+
/**
|
|
9958
|
+
* A minimal representation of an Item containing only the essential identifying
|
|
9959
|
+
* information.
|
|
9960
|
+
*/
|
|
9929
9961
|
item: Shared.ItemSlim;
|
|
9930
9962
|
|
|
9931
9963
|
/**
|
|
@@ -10015,6 +10047,10 @@ export namespace Price {
|
|
|
10015
10047
|
|
|
10016
10048
|
invoicing_cycle_configuration: Shared.BillingCycleConfiguration | null;
|
|
10017
10049
|
|
|
10050
|
+
/**
|
|
10051
|
+
* A minimal representation of an Item containing only the essential identifying
|
|
10052
|
+
* information.
|
|
10053
|
+
*/
|
|
10018
10054
|
item: Shared.ItemSlim;
|
|
10019
10055
|
|
|
10020
10056
|
/**
|
|
@@ -10139,6 +10175,10 @@ export namespace Price {
|
|
|
10139
10175
|
|
|
10140
10176
|
invoicing_cycle_configuration: Shared.BillingCycleConfiguration | null;
|
|
10141
10177
|
|
|
10178
|
+
/**
|
|
10179
|
+
* A minimal representation of an Item containing only the essential identifying
|
|
10180
|
+
* information.
|
|
10181
|
+
*/
|
|
10142
10182
|
item: Shared.ItemSlim;
|
|
10143
10183
|
|
|
10144
10184
|
/**
|
|
@@ -10265,6 +10305,10 @@ export namespace Price {
|
|
|
10265
10305
|
|
|
10266
10306
|
invoicing_cycle_configuration: Shared.BillingCycleConfiguration | null;
|
|
10267
10307
|
|
|
10308
|
+
/**
|
|
10309
|
+
* A minimal representation of an Item containing only the essential identifying
|
|
10310
|
+
* information.
|
|
10311
|
+
*/
|
|
10268
10312
|
item: Shared.ItemSlim;
|
|
10269
10313
|
|
|
10270
10314
|
/**
|
|
@@ -10404,6 +10448,10 @@ export namespace Price {
|
|
|
10404
10448
|
|
|
10405
10449
|
invoicing_cycle_configuration: Shared.BillingCycleConfiguration | null;
|
|
10406
10450
|
|
|
10451
|
+
/**
|
|
10452
|
+
* A minimal representation of an Item containing only the essential identifying
|
|
10453
|
+
* information.
|
|
10454
|
+
*/
|
|
10407
10455
|
item: Shared.ItemSlim;
|
|
10408
10456
|
|
|
10409
10457
|
/**
|
|
@@ -10523,6 +10571,10 @@ export namespace Price {
|
|
|
10523
10571
|
|
|
10524
10572
|
invoicing_cycle_configuration: Shared.BillingCycleConfiguration | null;
|
|
10525
10573
|
|
|
10574
|
+
/**
|
|
10575
|
+
* A minimal representation of an Item containing only the essential identifying
|
|
10576
|
+
* information.
|
|
10577
|
+
*/
|
|
10526
10578
|
item: Shared.ItemSlim;
|
|
10527
10579
|
|
|
10528
10580
|
/**
|
|
@@ -10652,6 +10704,10 @@ export namespace Price {
|
|
|
10652
10704
|
|
|
10653
10705
|
invoicing_cycle_configuration: Shared.BillingCycleConfiguration | null;
|
|
10654
10706
|
|
|
10707
|
+
/**
|
|
10708
|
+
* A minimal representation of an Item containing only the essential identifying
|
|
10709
|
+
* information.
|
|
10710
|
+
*/
|
|
10655
10711
|
item: Shared.ItemSlim;
|
|
10656
10712
|
|
|
10657
10713
|
/**
|
|
@@ -10763,6 +10819,10 @@ export namespace Price {
|
|
|
10763
10819
|
|
|
10764
10820
|
invoicing_cycle_configuration: Shared.BillingCycleConfiguration | null;
|
|
10765
10821
|
|
|
10822
|
+
/**
|
|
10823
|
+
* A minimal representation of an Item containing only the essential identifying
|
|
10824
|
+
* information.
|
|
10825
|
+
*/
|
|
10766
10826
|
item: Shared.ItemSlim;
|
|
10767
10827
|
|
|
10768
10828
|
/**
|
|
@@ -10869,6 +10929,10 @@ export namespace Price {
|
|
|
10869
10929
|
|
|
10870
10930
|
invoicing_cycle_configuration: Shared.BillingCycleConfiguration | null;
|
|
10871
10931
|
|
|
10932
|
+
/**
|
|
10933
|
+
* A minimal representation of an Item containing only the essential identifying
|
|
10934
|
+
* information.
|
|
10935
|
+
*/
|
|
10872
10936
|
item: Shared.ItemSlim;
|
|
10873
10937
|
|
|
10874
10938
|
/**
|
|
@@ -10958,6 +11022,10 @@ export namespace Price {
|
|
|
10958
11022
|
|
|
10959
11023
|
invoicing_cycle_configuration: Shared.BillingCycleConfiguration | null;
|
|
10960
11024
|
|
|
11025
|
+
/**
|
|
11026
|
+
* A minimal representation of an Item containing only the essential identifying
|
|
11027
|
+
* information.
|
|
11028
|
+
*/
|
|
10961
11029
|
item: Shared.ItemSlim;
|
|
10962
11030
|
|
|
10963
11031
|
/**
|
|
@@ -11077,6 +11145,10 @@ export namespace Price {
|
|
|
11077
11145
|
|
|
11078
11146
|
invoicing_cycle_configuration: Shared.BillingCycleConfiguration | null;
|
|
11079
11147
|
|
|
11148
|
+
/**
|
|
11149
|
+
* A minimal representation of an Item containing only the essential identifying
|
|
11150
|
+
* information.
|
|
11151
|
+
*/
|
|
11080
11152
|
item: Shared.ItemSlim;
|
|
11081
11153
|
|
|
11082
11154
|
/**
|
|
@@ -11183,6 +11255,10 @@ export namespace Price {
|
|
|
11183
11255
|
|
|
11184
11256
|
invoicing_cycle_configuration: Shared.BillingCycleConfiguration | null;
|
|
11185
11257
|
|
|
11258
|
+
/**
|
|
11259
|
+
* A minimal representation of an Item containing only the essential identifying
|
|
11260
|
+
* information.
|
|
11261
|
+
*/
|
|
11186
11262
|
item: Shared.ItemSlim;
|
|
11187
11263
|
|
|
11188
11264
|
/**
|
|
@@ -11294,6 +11370,10 @@ export namespace Price {
|
|
|
11294
11370
|
|
|
11295
11371
|
invoicing_cycle_configuration: Shared.BillingCycleConfiguration | null;
|
|
11296
11372
|
|
|
11373
|
+
/**
|
|
11374
|
+
* A minimal representation of an Item containing only the essential identifying
|
|
11375
|
+
* information.
|
|
11376
|
+
*/
|
|
11297
11377
|
item: Shared.ItemSlim;
|
|
11298
11378
|
|
|
11299
11379
|
/**
|
|
@@ -11412,6 +11492,10 @@ export namespace Price {
|
|
|
11412
11492
|
|
|
11413
11493
|
invoicing_cycle_configuration: Shared.BillingCycleConfiguration | null;
|
|
11414
11494
|
|
|
11495
|
+
/**
|
|
11496
|
+
* A minimal representation of an Item containing only the essential identifying
|
|
11497
|
+
* information.
|
|
11498
|
+
*/
|
|
11415
11499
|
item: Shared.ItemSlim;
|
|
11416
11500
|
|
|
11417
11501
|
/**
|
|
@@ -11523,6 +11607,10 @@ export namespace Price {
|
|
|
11523
11607
|
|
|
11524
11608
|
invoicing_cycle_configuration: Shared.BillingCycleConfiguration | null;
|
|
11525
11609
|
|
|
11610
|
+
/**
|
|
11611
|
+
* A minimal representation of an Item containing only the essential identifying
|
|
11612
|
+
* information.
|
|
11613
|
+
*/
|
|
11526
11614
|
item: Shared.ItemSlim;
|
|
11527
11615
|
|
|
11528
11616
|
/**
|
|
@@ -11683,6 +11771,10 @@ export namespace Price {
|
|
|
11683
11771
|
|
|
11684
11772
|
invoicing_cycle_configuration: Shared.BillingCycleConfiguration | null;
|
|
11685
11773
|
|
|
11774
|
+
/**
|
|
11775
|
+
* A minimal representation of an Item containing only the essential identifying
|
|
11776
|
+
* information.
|
|
11777
|
+
*/
|
|
11686
11778
|
item: Shared.ItemSlim;
|
|
11687
11779
|
|
|
11688
11780
|
/**
|
|
@@ -11794,6 +11886,10 @@ export namespace Price {
|
|
|
11794
11886
|
|
|
11795
11887
|
invoicing_cycle_configuration: Shared.BillingCycleConfiguration | null;
|
|
11796
11888
|
|
|
11889
|
+
/**
|
|
11890
|
+
* A minimal representation of an Item containing only the essential identifying
|
|
11891
|
+
* information.
|
|
11892
|
+
*/
|
|
11797
11893
|
item: Shared.ItemSlim;
|
|
11798
11894
|
|
|
11799
11895
|
/**
|
|
@@ -11927,6 +12023,10 @@ export namespace Price {
|
|
|
11927
12023
|
|
|
11928
12024
|
invoicing_cycle_configuration: Shared.BillingCycleConfiguration | null;
|
|
11929
12025
|
|
|
12026
|
+
/**
|
|
12027
|
+
* A minimal representation of an Item containing only the essential identifying
|
|
12028
|
+
* information.
|
|
12029
|
+
*/
|
|
11930
12030
|
item: Shared.ItemSlim;
|
|
11931
12031
|
|
|
11932
12032
|
/**
|
|
@@ -12051,6 +12151,10 @@ export namespace Price {
|
|
|
12051
12151
|
|
|
12052
12152
|
invoicing_cycle_configuration: Shared.BillingCycleConfiguration | null;
|
|
12053
12153
|
|
|
12154
|
+
/**
|
|
12155
|
+
* A minimal representation of an Item containing only the essential identifying
|
|
12156
|
+
* information.
|
|
12157
|
+
*/
|
|
12054
12158
|
item: Shared.ItemSlim;
|
|
12055
12159
|
|
|
12056
12160
|
/**
|
|
@@ -12179,6 +12283,10 @@ export namespace Price {
|
|
|
12179
12283
|
|
|
12180
12284
|
invoicing_cycle_configuration: Shared.BillingCycleConfiguration | null;
|
|
12181
12285
|
|
|
12286
|
+
/**
|
|
12287
|
+
* A minimal representation of an Item containing only the essential identifying
|
|
12288
|
+
* information.
|
|
12289
|
+
*/
|
|
12182
12290
|
item: Shared.ItemSlim;
|
|
12183
12291
|
|
|
12184
12292
|
/**
|
|
@@ -12322,6 +12430,10 @@ export namespace Price {
|
|
|
12322
12430
|
|
|
12323
12431
|
invoicing_cycle_configuration: Shared.BillingCycleConfiguration | null;
|
|
12324
12432
|
|
|
12433
|
+
/**
|
|
12434
|
+
* A minimal representation of an Item containing only the essential identifying
|
|
12435
|
+
* information.
|
|
12436
|
+
*/
|
|
12325
12437
|
item: Shared.ItemSlim;
|
|
12326
12438
|
|
|
12327
12439
|
/**
|
|
@@ -12480,6 +12592,10 @@ export namespace Price {
|
|
|
12480
12592
|
|
|
12481
12593
|
invoicing_cycle_configuration: Shared.BillingCycleConfiguration | null;
|
|
12482
12594
|
|
|
12595
|
+
/**
|
|
12596
|
+
* A minimal representation of an Item containing only the essential identifying
|
|
12597
|
+
* information.
|
|
12598
|
+
*/
|
|
12483
12599
|
item: Shared.ItemSlim;
|
|
12484
12600
|
|
|
12485
12601
|
/**
|
|
@@ -12603,6 +12719,10 @@ export namespace Price {
|
|
|
12603
12719
|
|
|
12604
12720
|
invoicing_cycle_configuration: Shared.BillingCycleConfiguration | null;
|
|
12605
12721
|
|
|
12722
|
+
/**
|
|
12723
|
+
* A minimal representation of an Item containing only the essential identifying
|
|
12724
|
+
* information.
|
|
12725
|
+
*/
|
|
12606
12726
|
item: Shared.ItemSlim;
|
|
12607
12727
|
|
|
12608
12728
|
/**
|
|
@@ -12674,6 +12794,222 @@ export namespace Price {
|
|
|
12674
12794
|
prorated?: boolean;
|
|
12675
12795
|
}
|
|
12676
12796
|
}
|
|
12797
|
+
|
|
12798
|
+
export interface PercentCompositePrice {
|
|
12799
|
+
id: string;
|
|
12800
|
+
|
|
12801
|
+
billable_metric: Shared.BillableMetricTiny | null;
|
|
12802
|
+
|
|
12803
|
+
billing_cycle_configuration: Shared.BillingCycleConfiguration;
|
|
12804
|
+
|
|
12805
|
+
billing_mode: 'in_advance' | 'in_arrear';
|
|
12806
|
+
|
|
12807
|
+
cadence: 'one_time' | 'monthly' | 'quarterly' | 'semi_annual' | 'annual' | 'custom';
|
|
12808
|
+
|
|
12809
|
+
composite_price_filters: Array<Shared.TransformPriceFilter> | null;
|
|
12810
|
+
|
|
12811
|
+
conversion_rate: number | null;
|
|
12812
|
+
|
|
12813
|
+
conversion_rate_config: Shared.UnitConversionRateConfig | Shared.TieredConversionRateConfig | null;
|
|
12814
|
+
|
|
12815
|
+
created_at: string;
|
|
12816
|
+
|
|
12817
|
+
credit_allocation: Shared.Allocation | null;
|
|
12818
|
+
|
|
12819
|
+
currency: string;
|
|
12820
|
+
|
|
12821
|
+
/**
|
|
12822
|
+
* @deprecated
|
|
12823
|
+
*/
|
|
12824
|
+
discount: Shared.Discount | null;
|
|
12825
|
+
|
|
12826
|
+
external_price_id: string | null;
|
|
12827
|
+
|
|
12828
|
+
fixed_price_quantity: number | null;
|
|
12829
|
+
|
|
12830
|
+
invoicing_cycle_configuration: Shared.BillingCycleConfiguration | null;
|
|
12831
|
+
|
|
12832
|
+
/**
|
|
12833
|
+
* A minimal representation of an Item containing only the essential identifying
|
|
12834
|
+
* information.
|
|
12835
|
+
*/
|
|
12836
|
+
item: Shared.ItemSlim;
|
|
12837
|
+
|
|
12838
|
+
/**
|
|
12839
|
+
* @deprecated
|
|
12840
|
+
*/
|
|
12841
|
+
maximum: Shared.Maximum | null;
|
|
12842
|
+
|
|
12843
|
+
/**
|
|
12844
|
+
* @deprecated
|
|
12845
|
+
*/
|
|
12846
|
+
maximum_amount: string | null;
|
|
12847
|
+
|
|
12848
|
+
/**
|
|
12849
|
+
* User specified key-value pairs for the resource. If not present, this defaults
|
|
12850
|
+
* to an empty dictionary. Individual keys can be removed by setting the value to
|
|
12851
|
+
* `null`, and the entire metadata mapping can be cleared by setting `metadata` to
|
|
12852
|
+
* `null`.
|
|
12853
|
+
*/
|
|
12854
|
+
metadata: { [key: string]: string };
|
|
12855
|
+
|
|
12856
|
+
/**
|
|
12857
|
+
* @deprecated
|
|
12858
|
+
*/
|
|
12859
|
+
minimum: Shared.Minimum | null;
|
|
12860
|
+
|
|
12861
|
+
/**
|
|
12862
|
+
* @deprecated
|
|
12863
|
+
*/
|
|
12864
|
+
minimum_amount: string | null;
|
|
12865
|
+
|
|
12866
|
+
/**
|
|
12867
|
+
* The pricing model type
|
|
12868
|
+
*/
|
|
12869
|
+
model_type: 'percent';
|
|
12870
|
+
|
|
12871
|
+
name: string;
|
|
12872
|
+
|
|
12873
|
+
/**
|
|
12874
|
+
* Configuration for percent pricing
|
|
12875
|
+
*/
|
|
12876
|
+
percent_config: PercentCompositePrice.PercentConfig;
|
|
12877
|
+
|
|
12878
|
+
plan_phase_order: number | null;
|
|
12879
|
+
|
|
12880
|
+
price_type: 'usage_price' | 'fixed_price' | 'composite_price';
|
|
12881
|
+
|
|
12882
|
+
/**
|
|
12883
|
+
* The price id this price replaces. This price will take the place of the replaced
|
|
12884
|
+
* price in plan version migrations.
|
|
12885
|
+
*/
|
|
12886
|
+
replaces_price_id: string | null;
|
|
12887
|
+
|
|
12888
|
+
dimensional_price_configuration?: Shared.DimensionalPriceConfiguration | null;
|
|
12889
|
+
}
|
|
12890
|
+
|
|
12891
|
+
export namespace PercentCompositePrice {
|
|
12892
|
+
/**
|
|
12893
|
+
* Configuration for percent pricing
|
|
12894
|
+
*/
|
|
12895
|
+
export interface PercentConfig {
|
|
12896
|
+
/**
|
|
12897
|
+
* What percent of the component subtotals to charge
|
|
12898
|
+
*/
|
|
12899
|
+
percent: number;
|
|
12900
|
+
}
|
|
12901
|
+
}
|
|
12902
|
+
|
|
12903
|
+
export interface EventOutputPrice {
|
|
12904
|
+
id: string;
|
|
12905
|
+
|
|
12906
|
+
billable_metric: Shared.BillableMetricTiny | null;
|
|
12907
|
+
|
|
12908
|
+
billing_cycle_configuration: Shared.BillingCycleConfiguration;
|
|
12909
|
+
|
|
12910
|
+
billing_mode: 'in_advance' | 'in_arrear';
|
|
12911
|
+
|
|
12912
|
+
cadence: 'one_time' | 'monthly' | 'quarterly' | 'semi_annual' | 'annual' | 'custom';
|
|
12913
|
+
|
|
12914
|
+
composite_price_filters: Array<Shared.TransformPriceFilter> | null;
|
|
12915
|
+
|
|
12916
|
+
conversion_rate: number | null;
|
|
12917
|
+
|
|
12918
|
+
conversion_rate_config: Shared.UnitConversionRateConfig | Shared.TieredConversionRateConfig | null;
|
|
12919
|
+
|
|
12920
|
+
created_at: string;
|
|
12921
|
+
|
|
12922
|
+
credit_allocation: Shared.Allocation | null;
|
|
12923
|
+
|
|
12924
|
+
currency: string;
|
|
12925
|
+
|
|
12926
|
+
/**
|
|
12927
|
+
* @deprecated
|
|
12928
|
+
*/
|
|
12929
|
+
discount: Shared.Discount | null;
|
|
12930
|
+
|
|
12931
|
+
/**
|
|
12932
|
+
* Configuration for event_output pricing
|
|
12933
|
+
*/
|
|
12934
|
+
event_output_config: EventOutputPrice.EventOutputConfig;
|
|
12935
|
+
|
|
12936
|
+
external_price_id: string | null;
|
|
12937
|
+
|
|
12938
|
+
fixed_price_quantity: number | null;
|
|
12939
|
+
|
|
12940
|
+
invoicing_cycle_configuration: Shared.BillingCycleConfiguration | null;
|
|
12941
|
+
|
|
12942
|
+
/**
|
|
12943
|
+
* A minimal representation of an Item containing only the essential identifying
|
|
12944
|
+
* information.
|
|
12945
|
+
*/
|
|
12946
|
+
item: Shared.ItemSlim;
|
|
12947
|
+
|
|
12948
|
+
/**
|
|
12949
|
+
* @deprecated
|
|
12950
|
+
*/
|
|
12951
|
+
maximum: Shared.Maximum | null;
|
|
12952
|
+
|
|
12953
|
+
/**
|
|
12954
|
+
* @deprecated
|
|
12955
|
+
*/
|
|
12956
|
+
maximum_amount: string | null;
|
|
12957
|
+
|
|
12958
|
+
/**
|
|
12959
|
+
* User specified key-value pairs for the resource. If not present, this defaults
|
|
12960
|
+
* to an empty dictionary. Individual keys can be removed by setting the value to
|
|
12961
|
+
* `null`, and the entire metadata mapping can be cleared by setting `metadata` to
|
|
12962
|
+
* `null`.
|
|
12963
|
+
*/
|
|
12964
|
+
metadata: { [key: string]: string };
|
|
12965
|
+
|
|
12966
|
+
/**
|
|
12967
|
+
* @deprecated
|
|
12968
|
+
*/
|
|
12969
|
+
minimum: Shared.Minimum | null;
|
|
12970
|
+
|
|
12971
|
+
/**
|
|
12972
|
+
* @deprecated
|
|
12973
|
+
*/
|
|
12974
|
+
minimum_amount: string | null;
|
|
12975
|
+
|
|
12976
|
+
/**
|
|
12977
|
+
* The pricing model type
|
|
12978
|
+
*/
|
|
12979
|
+
model_type: 'event_output';
|
|
12980
|
+
|
|
12981
|
+
name: string;
|
|
12982
|
+
|
|
12983
|
+
plan_phase_order: number | null;
|
|
12984
|
+
|
|
12985
|
+
price_type: 'usage_price' | 'fixed_price' | 'composite_price';
|
|
12986
|
+
|
|
12987
|
+
/**
|
|
12988
|
+
* The price id this price replaces. This price will take the place of the replaced
|
|
12989
|
+
* price in plan version migrations.
|
|
12990
|
+
*/
|
|
12991
|
+
replaces_price_id: string | null;
|
|
12992
|
+
|
|
12993
|
+
dimensional_price_configuration?: Shared.DimensionalPriceConfiguration | null;
|
|
12994
|
+
}
|
|
12995
|
+
|
|
12996
|
+
export namespace EventOutputPrice {
|
|
12997
|
+
/**
|
|
12998
|
+
* Configuration for event_output pricing
|
|
12999
|
+
*/
|
|
13000
|
+
export interface EventOutputConfig {
|
|
13001
|
+
/**
|
|
13002
|
+
* The key in the event data to extract the unit rate from.
|
|
13003
|
+
*/
|
|
13004
|
+
unit_rating_key: string;
|
|
13005
|
+
|
|
13006
|
+
/**
|
|
13007
|
+
* An optional key in the event data to group by (e.g., event ID). All events will
|
|
13008
|
+
* also be grouped by their unit rate.
|
|
13009
|
+
*/
|
|
13010
|
+
grouping_key?: string | null;
|
|
13011
|
+
}
|
|
13012
|
+
}
|
|
12677
13013
|
}
|
|
12678
13014
|
|
|
12679
13015
|
/**
|