orb-billing 5.14.0 → 5.16.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/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 +284 -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/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 +342 -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
|
|
|
@@ -2138,6 +2148,11 @@ export interface MatrixSubLineItem {
|
|
|
2138
2148
|
quantity: number;
|
|
2139
2149
|
|
|
2140
2150
|
type: 'matrix';
|
|
2151
|
+
|
|
2152
|
+
/**
|
|
2153
|
+
* The scaled quantity for this line item for specific pricing structures
|
|
2154
|
+
*/
|
|
2155
|
+
scaled_quantity?: number | null;
|
|
2141
2156
|
}
|
|
2142
2157
|
|
|
2143
2158
|
/**
|
|
@@ -9528,7 +9543,9 @@ export type Price =
|
|
|
9528
9543
|
| Price.ScalableMatrixWithUnitPricingPrice
|
|
9529
9544
|
| Price.ScalableMatrixWithTieredPricingPrice
|
|
9530
9545
|
| Price.CumulativeGroupedBulkPrice
|
|
9531
|
-
| Price.MinimumCompositePrice
|
|
9546
|
+
| Price.MinimumCompositePrice
|
|
9547
|
+
| Price.PercentCompositePrice
|
|
9548
|
+
| Price.EventOutputPrice;
|
|
9532
9549
|
|
|
9533
9550
|
export namespace Price {
|
|
9534
9551
|
export interface UnitPrice {
|
|
@@ -9565,6 +9582,10 @@ export namespace Price {
|
|
|
9565
9582
|
|
|
9566
9583
|
invoicing_cycle_configuration: Shared.BillingCycleConfiguration | null;
|
|
9567
9584
|
|
|
9585
|
+
/**
|
|
9586
|
+
* A minimal representation of an Item containing only the essential identifying
|
|
9587
|
+
* information.
|
|
9588
|
+
*/
|
|
9568
9589
|
item: Shared.ItemSlim;
|
|
9569
9590
|
|
|
9570
9591
|
/**
|
|
@@ -9654,6 +9675,10 @@ export namespace Price {
|
|
|
9654
9675
|
|
|
9655
9676
|
invoicing_cycle_configuration: Shared.BillingCycleConfiguration | null;
|
|
9656
9677
|
|
|
9678
|
+
/**
|
|
9679
|
+
* A minimal representation of an Item containing only the essential identifying
|
|
9680
|
+
* information.
|
|
9681
|
+
*/
|
|
9657
9682
|
item: Shared.ItemSlim;
|
|
9658
9683
|
|
|
9659
9684
|
/**
|
|
@@ -9748,6 +9773,10 @@ export namespace Price {
|
|
|
9748
9773
|
|
|
9749
9774
|
invoicing_cycle_configuration: Shared.BillingCycleConfiguration | null;
|
|
9750
9775
|
|
|
9776
|
+
/**
|
|
9777
|
+
* A minimal representation of an Item containing only the essential identifying
|
|
9778
|
+
* information.
|
|
9779
|
+
*/
|
|
9751
9780
|
item: Shared.ItemSlim;
|
|
9752
9781
|
|
|
9753
9782
|
/**
|
|
@@ -9832,6 +9861,10 @@ export namespace Price {
|
|
|
9832
9861
|
|
|
9833
9862
|
invoicing_cycle_configuration: Shared.BillingCycleConfiguration | null;
|
|
9834
9863
|
|
|
9864
|
+
/**
|
|
9865
|
+
* A minimal representation of an Item containing only the essential identifying
|
|
9866
|
+
* information.
|
|
9867
|
+
*/
|
|
9835
9868
|
item: Shared.ItemSlim;
|
|
9836
9869
|
|
|
9837
9870
|
/**
|
|
@@ -9921,6 +9954,10 @@ export namespace Price {
|
|
|
9921
9954
|
|
|
9922
9955
|
invoicing_cycle_configuration: Shared.BillingCycleConfiguration | null;
|
|
9923
9956
|
|
|
9957
|
+
/**
|
|
9958
|
+
* A minimal representation of an Item containing only the essential identifying
|
|
9959
|
+
* information.
|
|
9960
|
+
*/
|
|
9924
9961
|
item: Shared.ItemSlim;
|
|
9925
9962
|
|
|
9926
9963
|
/**
|
|
@@ -10010,6 +10047,10 @@ export namespace Price {
|
|
|
10010
10047
|
|
|
10011
10048
|
invoicing_cycle_configuration: Shared.BillingCycleConfiguration | null;
|
|
10012
10049
|
|
|
10050
|
+
/**
|
|
10051
|
+
* A minimal representation of an Item containing only the essential identifying
|
|
10052
|
+
* information.
|
|
10053
|
+
*/
|
|
10013
10054
|
item: Shared.ItemSlim;
|
|
10014
10055
|
|
|
10015
10056
|
/**
|
|
@@ -10134,6 +10175,10 @@ export namespace Price {
|
|
|
10134
10175
|
|
|
10135
10176
|
invoicing_cycle_configuration: Shared.BillingCycleConfiguration | null;
|
|
10136
10177
|
|
|
10178
|
+
/**
|
|
10179
|
+
* A minimal representation of an Item containing only the essential identifying
|
|
10180
|
+
* information.
|
|
10181
|
+
*/
|
|
10137
10182
|
item: Shared.ItemSlim;
|
|
10138
10183
|
|
|
10139
10184
|
/**
|
|
@@ -10260,6 +10305,10 @@ export namespace Price {
|
|
|
10260
10305
|
|
|
10261
10306
|
invoicing_cycle_configuration: Shared.BillingCycleConfiguration | null;
|
|
10262
10307
|
|
|
10308
|
+
/**
|
|
10309
|
+
* A minimal representation of an Item containing only the essential identifying
|
|
10310
|
+
* information.
|
|
10311
|
+
*/
|
|
10263
10312
|
item: Shared.ItemSlim;
|
|
10264
10313
|
|
|
10265
10314
|
/**
|
|
@@ -10399,6 +10448,10 @@ export namespace Price {
|
|
|
10399
10448
|
|
|
10400
10449
|
invoicing_cycle_configuration: Shared.BillingCycleConfiguration | null;
|
|
10401
10450
|
|
|
10451
|
+
/**
|
|
10452
|
+
* A minimal representation of an Item containing only the essential identifying
|
|
10453
|
+
* information.
|
|
10454
|
+
*/
|
|
10402
10455
|
item: Shared.ItemSlim;
|
|
10403
10456
|
|
|
10404
10457
|
/**
|
|
@@ -10518,6 +10571,10 @@ export namespace Price {
|
|
|
10518
10571
|
|
|
10519
10572
|
invoicing_cycle_configuration: Shared.BillingCycleConfiguration | null;
|
|
10520
10573
|
|
|
10574
|
+
/**
|
|
10575
|
+
* A minimal representation of an Item containing only the essential identifying
|
|
10576
|
+
* information.
|
|
10577
|
+
*/
|
|
10521
10578
|
item: Shared.ItemSlim;
|
|
10522
10579
|
|
|
10523
10580
|
/**
|
|
@@ -10647,6 +10704,10 @@ export namespace Price {
|
|
|
10647
10704
|
|
|
10648
10705
|
invoicing_cycle_configuration: Shared.BillingCycleConfiguration | null;
|
|
10649
10706
|
|
|
10707
|
+
/**
|
|
10708
|
+
* A minimal representation of an Item containing only the essential identifying
|
|
10709
|
+
* information.
|
|
10710
|
+
*/
|
|
10650
10711
|
item: Shared.ItemSlim;
|
|
10651
10712
|
|
|
10652
10713
|
/**
|
|
@@ -10758,6 +10819,10 @@ export namespace Price {
|
|
|
10758
10819
|
|
|
10759
10820
|
invoicing_cycle_configuration: Shared.BillingCycleConfiguration | null;
|
|
10760
10821
|
|
|
10822
|
+
/**
|
|
10823
|
+
* A minimal representation of an Item containing only the essential identifying
|
|
10824
|
+
* information.
|
|
10825
|
+
*/
|
|
10761
10826
|
item: Shared.ItemSlim;
|
|
10762
10827
|
|
|
10763
10828
|
/**
|
|
@@ -10864,6 +10929,10 @@ export namespace Price {
|
|
|
10864
10929
|
|
|
10865
10930
|
invoicing_cycle_configuration: Shared.BillingCycleConfiguration | null;
|
|
10866
10931
|
|
|
10932
|
+
/**
|
|
10933
|
+
* A minimal representation of an Item containing only the essential identifying
|
|
10934
|
+
* information.
|
|
10935
|
+
*/
|
|
10867
10936
|
item: Shared.ItemSlim;
|
|
10868
10937
|
|
|
10869
10938
|
/**
|
|
@@ -10953,6 +11022,10 @@ export namespace Price {
|
|
|
10953
11022
|
|
|
10954
11023
|
invoicing_cycle_configuration: Shared.BillingCycleConfiguration | null;
|
|
10955
11024
|
|
|
11025
|
+
/**
|
|
11026
|
+
* A minimal representation of an Item containing only the essential identifying
|
|
11027
|
+
* information.
|
|
11028
|
+
*/
|
|
10956
11029
|
item: Shared.ItemSlim;
|
|
10957
11030
|
|
|
10958
11031
|
/**
|
|
@@ -11072,6 +11145,10 @@ export namespace Price {
|
|
|
11072
11145
|
|
|
11073
11146
|
invoicing_cycle_configuration: Shared.BillingCycleConfiguration | null;
|
|
11074
11147
|
|
|
11148
|
+
/**
|
|
11149
|
+
* A minimal representation of an Item containing only the essential identifying
|
|
11150
|
+
* information.
|
|
11151
|
+
*/
|
|
11075
11152
|
item: Shared.ItemSlim;
|
|
11076
11153
|
|
|
11077
11154
|
/**
|
|
@@ -11178,6 +11255,10 @@ export namespace Price {
|
|
|
11178
11255
|
|
|
11179
11256
|
invoicing_cycle_configuration: Shared.BillingCycleConfiguration | null;
|
|
11180
11257
|
|
|
11258
|
+
/**
|
|
11259
|
+
* A minimal representation of an Item containing only the essential identifying
|
|
11260
|
+
* information.
|
|
11261
|
+
*/
|
|
11181
11262
|
item: Shared.ItemSlim;
|
|
11182
11263
|
|
|
11183
11264
|
/**
|
|
@@ -11289,6 +11370,10 @@ export namespace Price {
|
|
|
11289
11370
|
|
|
11290
11371
|
invoicing_cycle_configuration: Shared.BillingCycleConfiguration | null;
|
|
11291
11372
|
|
|
11373
|
+
/**
|
|
11374
|
+
* A minimal representation of an Item containing only the essential identifying
|
|
11375
|
+
* information.
|
|
11376
|
+
*/
|
|
11292
11377
|
item: Shared.ItemSlim;
|
|
11293
11378
|
|
|
11294
11379
|
/**
|
|
@@ -11407,6 +11492,10 @@ export namespace Price {
|
|
|
11407
11492
|
|
|
11408
11493
|
invoicing_cycle_configuration: Shared.BillingCycleConfiguration | null;
|
|
11409
11494
|
|
|
11495
|
+
/**
|
|
11496
|
+
* A minimal representation of an Item containing only the essential identifying
|
|
11497
|
+
* information.
|
|
11498
|
+
*/
|
|
11410
11499
|
item: Shared.ItemSlim;
|
|
11411
11500
|
|
|
11412
11501
|
/**
|
|
@@ -11518,6 +11607,10 @@ export namespace Price {
|
|
|
11518
11607
|
|
|
11519
11608
|
invoicing_cycle_configuration: Shared.BillingCycleConfiguration | null;
|
|
11520
11609
|
|
|
11610
|
+
/**
|
|
11611
|
+
* A minimal representation of an Item containing only the essential identifying
|
|
11612
|
+
* information.
|
|
11613
|
+
*/
|
|
11521
11614
|
item: Shared.ItemSlim;
|
|
11522
11615
|
|
|
11523
11616
|
/**
|
|
@@ -11678,6 +11771,10 @@ export namespace Price {
|
|
|
11678
11771
|
|
|
11679
11772
|
invoicing_cycle_configuration: Shared.BillingCycleConfiguration | null;
|
|
11680
11773
|
|
|
11774
|
+
/**
|
|
11775
|
+
* A minimal representation of an Item containing only the essential identifying
|
|
11776
|
+
* information.
|
|
11777
|
+
*/
|
|
11681
11778
|
item: Shared.ItemSlim;
|
|
11682
11779
|
|
|
11683
11780
|
/**
|
|
@@ -11789,6 +11886,10 @@ export namespace Price {
|
|
|
11789
11886
|
|
|
11790
11887
|
invoicing_cycle_configuration: Shared.BillingCycleConfiguration | null;
|
|
11791
11888
|
|
|
11889
|
+
/**
|
|
11890
|
+
* A minimal representation of an Item containing only the essential identifying
|
|
11891
|
+
* information.
|
|
11892
|
+
*/
|
|
11792
11893
|
item: Shared.ItemSlim;
|
|
11793
11894
|
|
|
11794
11895
|
/**
|
|
@@ -11922,6 +12023,10 @@ export namespace Price {
|
|
|
11922
12023
|
|
|
11923
12024
|
invoicing_cycle_configuration: Shared.BillingCycleConfiguration | null;
|
|
11924
12025
|
|
|
12026
|
+
/**
|
|
12027
|
+
* A minimal representation of an Item containing only the essential identifying
|
|
12028
|
+
* information.
|
|
12029
|
+
*/
|
|
11925
12030
|
item: Shared.ItemSlim;
|
|
11926
12031
|
|
|
11927
12032
|
/**
|
|
@@ -12046,6 +12151,10 @@ export namespace Price {
|
|
|
12046
12151
|
|
|
12047
12152
|
invoicing_cycle_configuration: Shared.BillingCycleConfiguration | null;
|
|
12048
12153
|
|
|
12154
|
+
/**
|
|
12155
|
+
* A minimal representation of an Item containing only the essential identifying
|
|
12156
|
+
* information.
|
|
12157
|
+
*/
|
|
12049
12158
|
item: Shared.ItemSlim;
|
|
12050
12159
|
|
|
12051
12160
|
/**
|
|
@@ -12174,6 +12283,10 @@ export namespace Price {
|
|
|
12174
12283
|
|
|
12175
12284
|
invoicing_cycle_configuration: Shared.BillingCycleConfiguration | null;
|
|
12176
12285
|
|
|
12286
|
+
/**
|
|
12287
|
+
* A minimal representation of an Item containing only the essential identifying
|
|
12288
|
+
* information.
|
|
12289
|
+
*/
|
|
12177
12290
|
item: Shared.ItemSlim;
|
|
12178
12291
|
|
|
12179
12292
|
/**
|
|
@@ -12317,6 +12430,10 @@ export namespace Price {
|
|
|
12317
12430
|
|
|
12318
12431
|
invoicing_cycle_configuration: Shared.BillingCycleConfiguration | null;
|
|
12319
12432
|
|
|
12433
|
+
/**
|
|
12434
|
+
* A minimal representation of an Item containing only the essential identifying
|
|
12435
|
+
* information.
|
|
12436
|
+
*/
|
|
12320
12437
|
item: Shared.ItemSlim;
|
|
12321
12438
|
|
|
12322
12439
|
/**
|
|
@@ -12475,6 +12592,10 @@ export namespace Price {
|
|
|
12475
12592
|
|
|
12476
12593
|
invoicing_cycle_configuration: Shared.BillingCycleConfiguration | null;
|
|
12477
12594
|
|
|
12595
|
+
/**
|
|
12596
|
+
* A minimal representation of an Item containing only the essential identifying
|
|
12597
|
+
* information.
|
|
12598
|
+
*/
|
|
12478
12599
|
item: Shared.ItemSlim;
|
|
12479
12600
|
|
|
12480
12601
|
/**
|
|
@@ -12598,6 +12719,10 @@ export namespace Price {
|
|
|
12598
12719
|
|
|
12599
12720
|
invoicing_cycle_configuration: Shared.BillingCycleConfiguration | null;
|
|
12600
12721
|
|
|
12722
|
+
/**
|
|
12723
|
+
* A minimal representation of an Item containing only the essential identifying
|
|
12724
|
+
* information.
|
|
12725
|
+
*/
|
|
12601
12726
|
item: Shared.ItemSlim;
|
|
12602
12727
|
|
|
12603
12728
|
/**
|
|
@@ -12669,6 +12794,222 @@ export namespace Price {
|
|
|
12669
12794
|
prorated?: boolean;
|
|
12670
12795
|
}
|
|
12671
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
|
+
}
|
|
12672
13013
|
}
|
|
12673
13014
|
|
|
12674
13015
|
/**
|