orb-billing 2.3.0 → 2.4.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 +42 -0
- package/client.d.ts +222 -0
- package/client.d.ts.map +1 -0
- package/client.js +156 -0
- package/client.js.map +1 -0
- package/client.mjs +129 -0
- package/client.mjs.map +1 -0
- package/index.d.mts +5 -221
- package/index.d.ts +5 -221
- package/index.d.ts.map +1 -1
- package/index.js +10 -130
- package/index.js.map +1 -1
- package/index.mjs +5 -127
- package/index.mjs.map +1 -1
- package/package.json +4 -4
- package/resources/customers/credits/credits.d.ts +6 -0
- package/resources/customers/credits/credits.d.ts.map +1 -1
- package/resources/customers/credits/credits.js.map +1 -1
- package/resources/customers/credits/credits.mjs.map +1 -1
- package/resources/events/backfills.d.ts +20 -0
- package/resources/events/backfills.d.ts.map +1 -1
- package/resources/events/backfills.js.map +1 -1
- package/resources/events/backfills.mjs.map +1 -1
- package/resources/invoices.d.ts +1 -1
- package/resources/invoices.js +1 -1
- package/resources/invoices.mjs +1 -1
- package/resources/plans/plans.d.ts +53 -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 +82 -2
- 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/subscriptions.d.ts +306 -3
- package/resources/subscriptions.d.ts.map +1 -1
- package/resources/subscriptions.js +5 -0
- package/resources/subscriptions.js.map +1 -1
- package/resources/subscriptions.mjs +5 -0
- package/resources/subscriptions.mjs.map +1 -1
- package/src/client.ts +301 -0
- package/src/index.ts +6 -299
- package/src/resources/customers/credits/credits.ts +6 -0
- package/src/resources/events/backfills.ts +25 -0
- package/src/resources/invoices.ts +1 -1
- package/src/resources/plans/plans.ts +66 -1
- package/src/resources/prices/prices.ts +114 -2
- package/src/resources/subscriptions.ts +374 -3
- package/src/version.ts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
- package/resources/beta/beta.d.ts +0 -12
- package/resources/beta/beta.d.ts.map +0 -1
- package/resources/beta/beta.js +0 -40
- package/resources/beta/beta.js.map +0 -1
- package/resources/beta/beta.mjs +0 -13
- package/resources/beta/beta.mjs.map +0 -1
- package/resources/beta/index.d.ts +0 -3
- package/resources/beta/index.d.ts.map +0 -1
- package/resources/beta/index.js +0 -9
- package/resources/beta/index.js.map +0 -1
- package/resources/beta/index.mjs +0 -4
- package/resources/beta/index.mjs.map +0 -1
- package/resources/beta/price.d.ts +0 -82
- package/resources/beta/price.d.ts.map +0 -1
- package/resources/beta/price.js +0 -37
- package/resources/beta/price.js.map +0 -1
- package/resources/beta/price.mjs +0 -33
- package/resources/beta/price.mjs.map +0 -1
- package/src/resources/beta/beta.ts +0 -15
- package/src/resources/beta/index.ts +0 -4
- package/src/resources/beta/price.ts +0 -101
|
@@ -925,6 +925,11 @@ export class Subscriptions extends APIResource {
|
|
|
925
925
|
* default for the plan. The request format for price overrides, maximums, and
|
|
926
926
|
* minimums are the same as those in [subscription creation](create-subscription).
|
|
927
927
|
*
|
|
928
|
+
* ## Scheduling multiple plan changes
|
|
929
|
+
*
|
|
930
|
+
* When scheduling multiple plan changes with the same date, the latest plan change
|
|
931
|
+
* on that day takes effect.
|
|
932
|
+
*
|
|
928
933
|
* ## Prorations for in-advance fees
|
|
929
934
|
*
|
|
930
935
|
* By default, Orb calculates the prorated difference in any fixed fees when making
|
|
@@ -2120,6 +2125,17 @@ export namespace SubscriptionCreateParams {
|
|
|
2120
2125
|
|
|
2121
2126
|
unit_config: OverrideUnitPrice.UnitConfig;
|
|
2122
2127
|
|
|
2128
|
+
/**
|
|
2129
|
+
* The per unit conversion rate of the price currency to the invoicing currency.
|
|
2130
|
+
*/
|
|
2131
|
+
conversion_rate?: number | null;
|
|
2132
|
+
|
|
2133
|
+
/**
|
|
2134
|
+
* The currency of the price. If not provided, the currency of the plan will be
|
|
2135
|
+
* used.
|
|
2136
|
+
*/
|
|
2137
|
+
currency?: string | null;
|
|
2138
|
+
|
|
2123
2139
|
/**
|
|
2124
2140
|
* The subscription's override discount for the plan.
|
|
2125
2141
|
*/
|
|
@@ -2192,6 +2208,17 @@ export namespace SubscriptionCreateParams {
|
|
|
2192
2208
|
|
|
2193
2209
|
package_config: OverridePackagePrice.PackageConfig;
|
|
2194
2210
|
|
|
2211
|
+
/**
|
|
2212
|
+
* The per unit conversion rate of the price currency to the invoicing currency.
|
|
2213
|
+
*/
|
|
2214
|
+
conversion_rate?: number | null;
|
|
2215
|
+
|
|
2216
|
+
/**
|
|
2217
|
+
* The currency of the price. If not provided, the currency of the plan will be
|
|
2218
|
+
* used.
|
|
2219
|
+
*/
|
|
2220
|
+
currency?: string | null;
|
|
2221
|
+
|
|
2195
2222
|
/**
|
|
2196
2223
|
* The subscription's override discount for the plan.
|
|
2197
2224
|
*/
|
|
@@ -2224,7 +2251,7 @@ export namespace SubscriptionCreateParams {
|
|
|
2224
2251
|
* An integer amount to represent package size. For example, 1000 here would divide
|
|
2225
2252
|
* usage by 1000 before multiplying by package_amount in rating
|
|
2226
2253
|
*/
|
|
2227
|
-
package_size
|
|
2254
|
+
package_size: number;
|
|
2228
2255
|
}
|
|
2229
2256
|
|
|
2230
2257
|
/**
|
|
@@ -2270,6 +2297,17 @@ export namespace SubscriptionCreateParams {
|
|
|
2270
2297
|
|
|
2271
2298
|
model_type: 'matrix';
|
|
2272
2299
|
|
|
2300
|
+
/**
|
|
2301
|
+
* The per unit conversion rate of the price currency to the invoicing currency.
|
|
2302
|
+
*/
|
|
2303
|
+
conversion_rate?: number | null;
|
|
2304
|
+
|
|
2305
|
+
/**
|
|
2306
|
+
* The currency of the price. If not provided, the currency of the plan will be
|
|
2307
|
+
* used.
|
|
2308
|
+
*/
|
|
2309
|
+
currency?: string | null;
|
|
2310
|
+
|
|
2273
2311
|
/**
|
|
2274
2312
|
* The subscription's override discount for the plan.
|
|
2275
2313
|
*/
|
|
@@ -2368,6 +2406,17 @@ export namespace SubscriptionCreateParams {
|
|
|
2368
2406
|
|
|
2369
2407
|
tiered_config: OverrideTieredPrice.TieredConfig;
|
|
2370
2408
|
|
|
2409
|
+
/**
|
|
2410
|
+
* The per unit conversion rate of the price currency to the invoicing currency.
|
|
2411
|
+
*/
|
|
2412
|
+
conversion_rate?: number | null;
|
|
2413
|
+
|
|
2414
|
+
/**
|
|
2415
|
+
* The currency of the price. If not provided, the currency of the plan will be
|
|
2416
|
+
* used.
|
|
2417
|
+
*/
|
|
2418
|
+
currency?: string | null;
|
|
2419
|
+
|
|
2371
2420
|
/**
|
|
2372
2421
|
* The subscription's override discount for the plan.
|
|
2373
2422
|
*/
|
|
@@ -2459,6 +2508,17 @@ export namespace SubscriptionCreateParams {
|
|
|
2459
2508
|
|
|
2460
2509
|
tiered_bps_config: OverrideTieredBpsPrice.TieredBpsConfig;
|
|
2461
2510
|
|
|
2511
|
+
/**
|
|
2512
|
+
* The per unit conversion rate of the price currency to the invoicing currency.
|
|
2513
|
+
*/
|
|
2514
|
+
conversion_rate?: number | null;
|
|
2515
|
+
|
|
2516
|
+
/**
|
|
2517
|
+
* The currency of the price. If not provided, the currency of the plan will be
|
|
2518
|
+
* used.
|
|
2519
|
+
*/
|
|
2520
|
+
currency?: string | null;
|
|
2521
|
+
|
|
2462
2522
|
/**
|
|
2463
2523
|
* The subscription's override discount for the plan.
|
|
2464
2524
|
*/
|
|
@@ -2556,6 +2616,17 @@ export namespace SubscriptionCreateParams {
|
|
|
2556
2616
|
|
|
2557
2617
|
model_type: 'bps';
|
|
2558
2618
|
|
|
2619
|
+
/**
|
|
2620
|
+
* The per unit conversion rate of the price currency to the invoicing currency.
|
|
2621
|
+
*/
|
|
2622
|
+
conversion_rate?: number | null;
|
|
2623
|
+
|
|
2624
|
+
/**
|
|
2625
|
+
* The currency of the price. If not provided, the currency of the plan will be
|
|
2626
|
+
* used.
|
|
2627
|
+
*/
|
|
2628
|
+
currency?: string | null;
|
|
2629
|
+
|
|
2559
2630
|
/**
|
|
2560
2631
|
* The subscription's override discount for the plan.
|
|
2561
2632
|
*/
|
|
@@ -2633,6 +2704,17 @@ export namespace SubscriptionCreateParams {
|
|
|
2633
2704
|
|
|
2634
2705
|
model_type: 'bulk_bps';
|
|
2635
2706
|
|
|
2707
|
+
/**
|
|
2708
|
+
* The per unit conversion rate of the price currency to the invoicing currency.
|
|
2709
|
+
*/
|
|
2710
|
+
conversion_rate?: number | null;
|
|
2711
|
+
|
|
2712
|
+
/**
|
|
2713
|
+
* The currency of the price. If not provided, the currency of the plan will be
|
|
2714
|
+
* used.
|
|
2715
|
+
*/
|
|
2716
|
+
currency?: string | null;
|
|
2717
|
+
|
|
2636
2718
|
/**
|
|
2637
2719
|
* The subscription's override discount for the plan.
|
|
2638
2720
|
*/
|
|
@@ -2725,6 +2807,17 @@ export namespace SubscriptionCreateParams {
|
|
|
2725
2807
|
|
|
2726
2808
|
model_type: 'bulk';
|
|
2727
2809
|
|
|
2810
|
+
/**
|
|
2811
|
+
* The per unit conversion rate of the price currency to the invoicing currency.
|
|
2812
|
+
*/
|
|
2813
|
+
conversion_rate?: number | null;
|
|
2814
|
+
|
|
2815
|
+
/**
|
|
2816
|
+
* The currency of the price. If not provided, the currency of the plan will be
|
|
2817
|
+
* used.
|
|
2818
|
+
*/
|
|
2819
|
+
currency?: string | null;
|
|
2820
|
+
|
|
2728
2821
|
/**
|
|
2729
2822
|
* The subscription's override discount for the plan.
|
|
2730
2823
|
*/
|
|
@@ -2811,6 +2904,17 @@ export namespace SubscriptionCreateParams {
|
|
|
2811
2904
|
|
|
2812
2905
|
threshold_total_amount_config: Record<string, unknown>;
|
|
2813
2906
|
|
|
2907
|
+
/**
|
|
2908
|
+
* The per unit conversion rate of the price currency to the invoicing currency.
|
|
2909
|
+
*/
|
|
2910
|
+
conversion_rate?: number | null;
|
|
2911
|
+
|
|
2912
|
+
/**
|
|
2913
|
+
* The currency of the price. If not provided, the currency of the plan will be
|
|
2914
|
+
* used.
|
|
2915
|
+
*/
|
|
2916
|
+
currency?: string | null;
|
|
2917
|
+
|
|
2814
2918
|
/**
|
|
2815
2919
|
* The subscription's override discount for the plan.
|
|
2816
2920
|
*/
|
|
@@ -2876,6 +2980,17 @@ export namespace SubscriptionCreateParams {
|
|
|
2876
2980
|
|
|
2877
2981
|
tiered_package_config: Record<string, unknown>;
|
|
2878
2982
|
|
|
2983
|
+
/**
|
|
2984
|
+
* The per unit conversion rate of the price currency to the invoicing currency.
|
|
2985
|
+
*/
|
|
2986
|
+
conversion_rate?: number | null;
|
|
2987
|
+
|
|
2988
|
+
/**
|
|
2989
|
+
* The currency of the price. If not provided, the currency of the plan will be
|
|
2990
|
+
* used.
|
|
2991
|
+
*/
|
|
2992
|
+
currency?: string | null;
|
|
2993
|
+
|
|
2879
2994
|
/**
|
|
2880
2995
|
* The subscription's override discount for the plan.
|
|
2881
2996
|
*/
|
|
@@ -2941,6 +3056,17 @@ export namespace SubscriptionCreateParams {
|
|
|
2941
3056
|
|
|
2942
3057
|
tiered_with_minimum_config: Record<string, unknown>;
|
|
2943
3058
|
|
|
3059
|
+
/**
|
|
3060
|
+
* The per unit conversion rate of the price currency to the invoicing currency.
|
|
3061
|
+
*/
|
|
3062
|
+
conversion_rate?: number | null;
|
|
3063
|
+
|
|
3064
|
+
/**
|
|
3065
|
+
* The currency of the price. If not provided, the currency of the plan will be
|
|
3066
|
+
* used.
|
|
3067
|
+
*/
|
|
3068
|
+
currency?: string | null;
|
|
3069
|
+
|
|
2944
3070
|
/**
|
|
2945
3071
|
* The subscription's override discount for the plan.
|
|
2946
3072
|
*/
|
|
@@ -3006,6 +3132,17 @@ export namespace SubscriptionCreateParams {
|
|
|
3006
3132
|
|
|
3007
3133
|
package_with_allocation_config: Record<string, unknown>;
|
|
3008
3134
|
|
|
3135
|
+
/**
|
|
3136
|
+
* The per unit conversion rate of the price currency to the invoicing currency.
|
|
3137
|
+
*/
|
|
3138
|
+
conversion_rate?: number | null;
|
|
3139
|
+
|
|
3140
|
+
/**
|
|
3141
|
+
* The currency of the price. If not provided, the currency of the plan will be
|
|
3142
|
+
* used.
|
|
3143
|
+
*/
|
|
3144
|
+
currency?: string | null;
|
|
3145
|
+
|
|
3009
3146
|
/**
|
|
3010
3147
|
* The subscription's override discount for the plan.
|
|
3011
3148
|
*/
|
|
@@ -3071,6 +3208,17 @@ export namespace SubscriptionCreateParams {
|
|
|
3071
3208
|
|
|
3072
3209
|
unit_with_percent_config: Record<string, unknown>;
|
|
3073
3210
|
|
|
3211
|
+
/**
|
|
3212
|
+
* The per unit conversion rate of the price currency to the invoicing currency.
|
|
3213
|
+
*/
|
|
3214
|
+
conversion_rate?: number | null;
|
|
3215
|
+
|
|
3216
|
+
/**
|
|
3217
|
+
* The currency of the price. If not provided, the currency of the plan will be
|
|
3218
|
+
* used.
|
|
3219
|
+
*/
|
|
3220
|
+
currency?: string | null;
|
|
3221
|
+
|
|
3074
3222
|
/**
|
|
3075
3223
|
* The subscription's override discount for the plan.
|
|
3076
3224
|
*/
|
|
@@ -3447,6 +3595,11 @@ export namespace SubscriptionPriceIntervalsParams {
|
|
|
3447
3595
|
*/
|
|
3448
3596
|
billed_in_advance?: boolean | null;
|
|
3449
3597
|
|
|
3598
|
+
/**
|
|
3599
|
+
* The per unit conversion rate of the price currency to the invoicing currency.
|
|
3600
|
+
*/
|
|
3601
|
+
conversion_rate?: number | null;
|
|
3602
|
+
|
|
3450
3603
|
/**
|
|
3451
3604
|
* An alias for the price.
|
|
3452
3605
|
*/
|
|
@@ -3510,6 +3663,11 @@ export namespace SubscriptionPriceIntervalsParams {
|
|
|
3510
3663
|
*/
|
|
3511
3664
|
billed_in_advance?: boolean | null;
|
|
3512
3665
|
|
|
3666
|
+
/**
|
|
3667
|
+
* The per unit conversion rate of the price currency to the invoicing currency.
|
|
3668
|
+
*/
|
|
3669
|
+
conversion_rate?: number | null;
|
|
3670
|
+
|
|
3513
3671
|
/**
|
|
3514
3672
|
* An alias for the price.
|
|
3515
3673
|
*/
|
|
@@ -3538,7 +3696,7 @@ export namespace SubscriptionPriceIntervalsParams {
|
|
|
3538
3696
|
* An integer amount to represent package size. For example, 1000 here would divide
|
|
3539
3697
|
* usage by 1000 before multiplying by package_amount in rating
|
|
3540
3698
|
*/
|
|
3541
|
-
package_size
|
|
3699
|
+
package_size: number;
|
|
3542
3700
|
}
|
|
3543
3701
|
}
|
|
3544
3702
|
|
|
@@ -3579,6 +3737,11 @@ export namespace SubscriptionPriceIntervalsParams {
|
|
|
3579
3737
|
*/
|
|
3580
3738
|
billed_in_advance?: boolean | null;
|
|
3581
3739
|
|
|
3740
|
+
/**
|
|
3741
|
+
* The per unit conversion rate of the price currency to the invoicing currency.
|
|
3742
|
+
*/
|
|
3743
|
+
conversion_rate?: number | null;
|
|
3744
|
+
|
|
3582
3745
|
/**
|
|
3583
3746
|
* An alias for the price.
|
|
3584
3747
|
*/
|
|
@@ -3668,6 +3831,11 @@ export namespace SubscriptionPriceIntervalsParams {
|
|
|
3668
3831
|
*/
|
|
3669
3832
|
billed_in_advance?: boolean | null;
|
|
3670
3833
|
|
|
3834
|
+
/**
|
|
3835
|
+
* The per unit conversion rate of the price currency to the invoicing currency.
|
|
3836
|
+
*/
|
|
3837
|
+
conversion_rate?: number | null;
|
|
3838
|
+
|
|
3671
3839
|
/**
|
|
3672
3840
|
* An alias for the price.
|
|
3673
3841
|
*/
|
|
@@ -3762,6 +3930,11 @@ export namespace SubscriptionPriceIntervalsParams {
|
|
|
3762
3930
|
*/
|
|
3763
3931
|
billed_in_advance?: boolean | null;
|
|
3764
3932
|
|
|
3933
|
+
/**
|
|
3934
|
+
* The per unit conversion rate of the price currency to the invoicing currency.
|
|
3935
|
+
*/
|
|
3936
|
+
conversion_rate?: number | null;
|
|
3937
|
+
|
|
3765
3938
|
/**
|
|
3766
3939
|
* An alias for the price.
|
|
3767
3940
|
*/
|
|
@@ -3844,6 +4017,11 @@ export namespace SubscriptionPriceIntervalsParams {
|
|
|
3844
4017
|
*/
|
|
3845
4018
|
billed_in_advance?: boolean | null;
|
|
3846
4019
|
|
|
4020
|
+
/**
|
|
4021
|
+
* The per unit conversion rate of the price currency to the invoicing currency.
|
|
4022
|
+
*/
|
|
4023
|
+
conversion_rate?: number | null;
|
|
4024
|
+
|
|
3847
4025
|
/**
|
|
3848
4026
|
* An alias for the price.
|
|
3849
4027
|
*/
|
|
@@ -3932,6 +4110,11 @@ export namespace SubscriptionPriceIntervalsParams {
|
|
|
3932
4110
|
*/
|
|
3933
4111
|
billed_in_advance?: boolean | null;
|
|
3934
4112
|
|
|
4113
|
+
/**
|
|
4114
|
+
* The per unit conversion rate of the price currency to the invoicing currency.
|
|
4115
|
+
*/
|
|
4116
|
+
conversion_rate?: number | null;
|
|
4117
|
+
|
|
3935
4118
|
/**
|
|
3936
4119
|
* An alias for the price.
|
|
3937
4120
|
*/
|
|
@@ -4000,6 +4183,11 @@ export namespace SubscriptionPriceIntervalsParams {
|
|
|
4000
4183
|
*/
|
|
4001
4184
|
billed_in_advance?: boolean | null;
|
|
4002
4185
|
|
|
4186
|
+
/**
|
|
4187
|
+
* The per unit conversion rate of the price currency to the invoicing currency.
|
|
4188
|
+
*/
|
|
4189
|
+
conversion_rate?: number | null;
|
|
4190
|
+
|
|
4003
4191
|
/**
|
|
4004
4192
|
* An alias for the price.
|
|
4005
4193
|
*/
|
|
@@ -4083,6 +4271,11 @@ export namespace SubscriptionPriceIntervalsParams {
|
|
|
4083
4271
|
*/
|
|
4084
4272
|
billed_in_advance?: boolean | null;
|
|
4085
4273
|
|
|
4274
|
+
/**
|
|
4275
|
+
* The per unit conversion rate of the price currency to the invoicing currency.
|
|
4276
|
+
*/
|
|
4277
|
+
conversion_rate?: number | null;
|
|
4278
|
+
|
|
4086
4279
|
/**
|
|
4087
4280
|
* An alias for the price.
|
|
4088
4281
|
*/
|
|
@@ -4160,6 +4353,11 @@ export namespace SubscriptionPriceIntervalsParams {
|
|
|
4160
4353
|
*/
|
|
4161
4354
|
billed_in_advance?: boolean | null;
|
|
4162
4355
|
|
|
4356
|
+
/**
|
|
4357
|
+
* The per unit conversion rate of the price currency to the invoicing currency.
|
|
4358
|
+
*/
|
|
4359
|
+
conversion_rate?: number | null;
|
|
4360
|
+
|
|
4163
4361
|
/**
|
|
4164
4362
|
* An alias for the price.
|
|
4165
4363
|
*/
|
|
@@ -4214,6 +4412,11 @@ export namespace SubscriptionPriceIntervalsParams {
|
|
|
4214
4412
|
*/
|
|
4215
4413
|
billed_in_advance?: boolean | null;
|
|
4216
4414
|
|
|
4415
|
+
/**
|
|
4416
|
+
* The per unit conversion rate of the price currency to the invoicing currency.
|
|
4417
|
+
*/
|
|
4418
|
+
conversion_rate?: number | null;
|
|
4419
|
+
|
|
4217
4420
|
/**
|
|
4218
4421
|
* An alias for the price.
|
|
4219
4422
|
*/
|
|
@@ -4268,6 +4471,11 @@ export namespace SubscriptionPriceIntervalsParams {
|
|
|
4268
4471
|
*/
|
|
4269
4472
|
billed_in_advance?: boolean | null;
|
|
4270
4473
|
|
|
4474
|
+
/**
|
|
4475
|
+
* The per unit conversion rate of the price currency to the invoicing currency.
|
|
4476
|
+
*/
|
|
4477
|
+
conversion_rate?: number | null;
|
|
4478
|
+
|
|
4271
4479
|
/**
|
|
4272
4480
|
* An alias for the price.
|
|
4273
4481
|
*/
|
|
@@ -4322,6 +4530,11 @@ export namespace SubscriptionPriceIntervalsParams {
|
|
|
4322
4530
|
*/
|
|
4323
4531
|
billed_in_advance?: boolean | null;
|
|
4324
4532
|
|
|
4533
|
+
/**
|
|
4534
|
+
* The per unit conversion rate of the price currency to the invoicing currency.
|
|
4535
|
+
*/
|
|
4536
|
+
conversion_rate?: number | null;
|
|
4537
|
+
|
|
4325
4538
|
/**
|
|
4326
4539
|
* An alias for the price.
|
|
4327
4540
|
*/
|
|
@@ -4376,6 +4589,11 @@ export namespace SubscriptionPriceIntervalsParams {
|
|
|
4376
4589
|
*/
|
|
4377
4590
|
billed_in_advance?: boolean | null;
|
|
4378
4591
|
|
|
4592
|
+
/**
|
|
4593
|
+
* The per unit conversion rate of the price currency to the invoicing currency.
|
|
4594
|
+
*/
|
|
4595
|
+
conversion_rate?: number | null;
|
|
4596
|
+
|
|
4379
4597
|
/**
|
|
4380
4598
|
* An alias for the price.
|
|
4381
4599
|
*/
|
|
@@ -4430,6 +4648,11 @@ export namespace SubscriptionPriceIntervalsParams {
|
|
|
4430
4648
|
*/
|
|
4431
4649
|
billed_in_advance?: boolean | null;
|
|
4432
4650
|
|
|
4651
|
+
/**
|
|
4652
|
+
* The per unit conversion rate of the price currency to the invoicing currency.
|
|
4653
|
+
*/
|
|
4654
|
+
conversion_rate?: number | null;
|
|
4655
|
+
|
|
4433
4656
|
/**
|
|
4434
4657
|
* An alias for the price.
|
|
4435
4658
|
*/
|
|
@@ -4484,6 +4707,11 @@ export namespace SubscriptionPriceIntervalsParams {
|
|
|
4484
4707
|
*/
|
|
4485
4708
|
billed_in_advance?: boolean | null;
|
|
4486
4709
|
|
|
4710
|
+
/**
|
|
4711
|
+
* The per unit conversion rate of the price currency to the invoicing currency.
|
|
4712
|
+
*/
|
|
4713
|
+
conversion_rate?: number | null;
|
|
4714
|
+
|
|
4487
4715
|
/**
|
|
4488
4716
|
* An alias for the price.
|
|
4489
4717
|
*/
|
|
@@ -4635,6 +4863,17 @@ export namespace SubscriptionSchedulePlanChangeParams {
|
|
|
4635
4863
|
|
|
4636
4864
|
unit_config: OverrideUnitPrice.UnitConfig;
|
|
4637
4865
|
|
|
4866
|
+
/**
|
|
4867
|
+
* The per unit conversion rate of the price currency to the invoicing currency.
|
|
4868
|
+
*/
|
|
4869
|
+
conversion_rate?: number | null;
|
|
4870
|
+
|
|
4871
|
+
/**
|
|
4872
|
+
* The currency of the price. If not provided, the currency of the plan will be
|
|
4873
|
+
* used.
|
|
4874
|
+
*/
|
|
4875
|
+
currency?: string | null;
|
|
4876
|
+
|
|
4638
4877
|
/**
|
|
4639
4878
|
* The subscription's override discount for the plan.
|
|
4640
4879
|
*/
|
|
@@ -4707,6 +4946,17 @@ export namespace SubscriptionSchedulePlanChangeParams {
|
|
|
4707
4946
|
|
|
4708
4947
|
package_config: OverridePackagePrice.PackageConfig;
|
|
4709
4948
|
|
|
4949
|
+
/**
|
|
4950
|
+
* The per unit conversion rate of the price currency to the invoicing currency.
|
|
4951
|
+
*/
|
|
4952
|
+
conversion_rate?: number | null;
|
|
4953
|
+
|
|
4954
|
+
/**
|
|
4955
|
+
* The currency of the price. If not provided, the currency of the plan will be
|
|
4956
|
+
* used.
|
|
4957
|
+
*/
|
|
4958
|
+
currency?: string | null;
|
|
4959
|
+
|
|
4710
4960
|
/**
|
|
4711
4961
|
* The subscription's override discount for the plan.
|
|
4712
4962
|
*/
|
|
@@ -4739,7 +4989,7 @@ export namespace SubscriptionSchedulePlanChangeParams {
|
|
|
4739
4989
|
* An integer amount to represent package size. For example, 1000 here would divide
|
|
4740
4990
|
* usage by 1000 before multiplying by package_amount in rating
|
|
4741
4991
|
*/
|
|
4742
|
-
package_size
|
|
4992
|
+
package_size: number;
|
|
4743
4993
|
}
|
|
4744
4994
|
|
|
4745
4995
|
/**
|
|
@@ -4785,6 +5035,17 @@ export namespace SubscriptionSchedulePlanChangeParams {
|
|
|
4785
5035
|
|
|
4786
5036
|
model_type: 'matrix';
|
|
4787
5037
|
|
|
5038
|
+
/**
|
|
5039
|
+
* The per unit conversion rate of the price currency to the invoicing currency.
|
|
5040
|
+
*/
|
|
5041
|
+
conversion_rate?: number | null;
|
|
5042
|
+
|
|
5043
|
+
/**
|
|
5044
|
+
* The currency of the price. If not provided, the currency of the plan will be
|
|
5045
|
+
* used.
|
|
5046
|
+
*/
|
|
5047
|
+
currency?: string | null;
|
|
5048
|
+
|
|
4788
5049
|
/**
|
|
4789
5050
|
* The subscription's override discount for the plan.
|
|
4790
5051
|
*/
|
|
@@ -4883,6 +5144,17 @@ export namespace SubscriptionSchedulePlanChangeParams {
|
|
|
4883
5144
|
|
|
4884
5145
|
tiered_config: OverrideTieredPrice.TieredConfig;
|
|
4885
5146
|
|
|
5147
|
+
/**
|
|
5148
|
+
* The per unit conversion rate of the price currency to the invoicing currency.
|
|
5149
|
+
*/
|
|
5150
|
+
conversion_rate?: number | null;
|
|
5151
|
+
|
|
5152
|
+
/**
|
|
5153
|
+
* The currency of the price. If not provided, the currency of the plan will be
|
|
5154
|
+
* used.
|
|
5155
|
+
*/
|
|
5156
|
+
currency?: string | null;
|
|
5157
|
+
|
|
4886
5158
|
/**
|
|
4887
5159
|
* The subscription's override discount for the plan.
|
|
4888
5160
|
*/
|
|
@@ -4974,6 +5246,17 @@ export namespace SubscriptionSchedulePlanChangeParams {
|
|
|
4974
5246
|
|
|
4975
5247
|
tiered_bps_config: OverrideTieredBpsPrice.TieredBpsConfig;
|
|
4976
5248
|
|
|
5249
|
+
/**
|
|
5250
|
+
* The per unit conversion rate of the price currency to the invoicing currency.
|
|
5251
|
+
*/
|
|
5252
|
+
conversion_rate?: number | null;
|
|
5253
|
+
|
|
5254
|
+
/**
|
|
5255
|
+
* The currency of the price. If not provided, the currency of the plan will be
|
|
5256
|
+
* used.
|
|
5257
|
+
*/
|
|
5258
|
+
currency?: string | null;
|
|
5259
|
+
|
|
4977
5260
|
/**
|
|
4978
5261
|
* The subscription's override discount for the plan.
|
|
4979
5262
|
*/
|
|
@@ -5071,6 +5354,17 @@ export namespace SubscriptionSchedulePlanChangeParams {
|
|
|
5071
5354
|
|
|
5072
5355
|
model_type: 'bps';
|
|
5073
5356
|
|
|
5357
|
+
/**
|
|
5358
|
+
* The per unit conversion rate of the price currency to the invoicing currency.
|
|
5359
|
+
*/
|
|
5360
|
+
conversion_rate?: number | null;
|
|
5361
|
+
|
|
5362
|
+
/**
|
|
5363
|
+
* The currency of the price. If not provided, the currency of the plan will be
|
|
5364
|
+
* used.
|
|
5365
|
+
*/
|
|
5366
|
+
currency?: string | null;
|
|
5367
|
+
|
|
5074
5368
|
/**
|
|
5075
5369
|
* The subscription's override discount for the plan.
|
|
5076
5370
|
*/
|
|
@@ -5148,6 +5442,17 @@ export namespace SubscriptionSchedulePlanChangeParams {
|
|
|
5148
5442
|
|
|
5149
5443
|
model_type: 'bulk_bps';
|
|
5150
5444
|
|
|
5445
|
+
/**
|
|
5446
|
+
* The per unit conversion rate of the price currency to the invoicing currency.
|
|
5447
|
+
*/
|
|
5448
|
+
conversion_rate?: number | null;
|
|
5449
|
+
|
|
5450
|
+
/**
|
|
5451
|
+
* The currency of the price. If not provided, the currency of the plan will be
|
|
5452
|
+
* used.
|
|
5453
|
+
*/
|
|
5454
|
+
currency?: string | null;
|
|
5455
|
+
|
|
5151
5456
|
/**
|
|
5152
5457
|
* The subscription's override discount for the plan.
|
|
5153
5458
|
*/
|
|
@@ -5240,6 +5545,17 @@ export namespace SubscriptionSchedulePlanChangeParams {
|
|
|
5240
5545
|
|
|
5241
5546
|
model_type: 'bulk';
|
|
5242
5547
|
|
|
5548
|
+
/**
|
|
5549
|
+
* The per unit conversion rate of the price currency to the invoicing currency.
|
|
5550
|
+
*/
|
|
5551
|
+
conversion_rate?: number | null;
|
|
5552
|
+
|
|
5553
|
+
/**
|
|
5554
|
+
* The currency of the price. If not provided, the currency of the plan will be
|
|
5555
|
+
* used.
|
|
5556
|
+
*/
|
|
5557
|
+
currency?: string | null;
|
|
5558
|
+
|
|
5243
5559
|
/**
|
|
5244
5560
|
* The subscription's override discount for the plan.
|
|
5245
5561
|
*/
|
|
@@ -5326,6 +5642,17 @@ export namespace SubscriptionSchedulePlanChangeParams {
|
|
|
5326
5642
|
|
|
5327
5643
|
threshold_total_amount_config: Record<string, unknown>;
|
|
5328
5644
|
|
|
5645
|
+
/**
|
|
5646
|
+
* The per unit conversion rate of the price currency to the invoicing currency.
|
|
5647
|
+
*/
|
|
5648
|
+
conversion_rate?: number | null;
|
|
5649
|
+
|
|
5650
|
+
/**
|
|
5651
|
+
* The currency of the price. If not provided, the currency of the plan will be
|
|
5652
|
+
* used.
|
|
5653
|
+
*/
|
|
5654
|
+
currency?: string | null;
|
|
5655
|
+
|
|
5329
5656
|
/**
|
|
5330
5657
|
* The subscription's override discount for the plan.
|
|
5331
5658
|
*/
|
|
@@ -5391,6 +5718,17 @@ export namespace SubscriptionSchedulePlanChangeParams {
|
|
|
5391
5718
|
|
|
5392
5719
|
tiered_package_config: Record<string, unknown>;
|
|
5393
5720
|
|
|
5721
|
+
/**
|
|
5722
|
+
* The per unit conversion rate of the price currency to the invoicing currency.
|
|
5723
|
+
*/
|
|
5724
|
+
conversion_rate?: number | null;
|
|
5725
|
+
|
|
5726
|
+
/**
|
|
5727
|
+
* The currency of the price. If not provided, the currency of the plan will be
|
|
5728
|
+
* used.
|
|
5729
|
+
*/
|
|
5730
|
+
currency?: string | null;
|
|
5731
|
+
|
|
5394
5732
|
/**
|
|
5395
5733
|
* The subscription's override discount for the plan.
|
|
5396
5734
|
*/
|
|
@@ -5456,6 +5794,17 @@ export namespace SubscriptionSchedulePlanChangeParams {
|
|
|
5456
5794
|
|
|
5457
5795
|
tiered_with_minimum_config: Record<string, unknown>;
|
|
5458
5796
|
|
|
5797
|
+
/**
|
|
5798
|
+
* The per unit conversion rate of the price currency to the invoicing currency.
|
|
5799
|
+
*/
|
|
5800
|
+
conversion_rate?: number | null;
|
|
5801
|
+
|
|
5802
|
+
/**
|
|
5803
|
+
* The currency of the price. If not provided, the currency of the plan will be
|
|
5804
|
+
* used.
|
|
5805
|
+
*/
|
|
5806
|
+
currency?: string | null;
|
|
5807
|
+
|
|
5459
5808
|
/**
|
|
5460
5809
|
* The subscription's override discount for the plan.
|
|
5461
5810
|
*/
|
|
@@ -5521,6 +5870,17 @@ export namespace SubscriptionSchedulePlanChangeParams {
|
|
|
5521
5870
|
|
|
5522
5871
|
package_with_allocation_config: Record<string, unknown>;
|
|
5523
5872
|
|
|
5873
|
+
/**
|
|
5874
|
+
* The per unit conversion rate of the price currency to the invoicing currency.
|
|
5875
|
+
*/
|
|
5876
|
+
conversion_rate?: number | null;
|
|
5877
|
+
|
|
5878
|
+
/**
|
|
5879
|
+
* The currency of the price. If not provided, the currency of the plan will be
|
|
5880
|
+
* used.
|
|
5881
|
+
*/
|
|
5882
|
+
currency?: string | null;
|
|
5883
|
+
|
|
5524
5884
|
/**
|
|
5525
5885
|
* The subscription's override discount for the plan.
|
|
5526
5886
|
*/
|
|
@@ -5586,6 +5946,17 @@ export namespace SubscriptionSchedulePlanChangeParams {
|
|
|
5586
5946
|
|
|
5587
5947
|
unit_with_percent_config: Record<string, unknown>;
|
|
5588
5948
|
|
|
5949
|
+
/**
|
|
5950
|
+
* The per unit conversion rate of the price currency to the invoicing currency.
|
|
5951
|
+
*/
|
|
5952
|
+
conversion_rate?: number | null;
|
|
5953
|
+
|
|
5954
|
+
/**
|
|
5955
|
+
* The currency of the price. If not provided, the currency of the plan will be
|
|
5956
|
+
* used.
|
|
5957
|
+
*/
|
|
5958
|
+
currency?: string | null;
|
|
5959
|
+
|
|
5589
5960
|
/**
|
|
5590
5961
|
* The subscription's override discount for the plan.
|
|
5591
5962
|
*/
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '2.
|
|
1
|
+
export const VERSION = '2.4.0'; // x-release-please-version
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "2.
|
|
1
|
+
export declare const VERSION = "2.4.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '2.
|
|
1
|
+
export const VERSION = '2.4.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|
package/resources/beta/beta.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { APIResource } from 'orb-billing/resource';
|
|
2
|
-
import * as PriceAPI from 'orb-billing/resources/beta/price';
|
|
3
|
-
export declare class Beta extends APIResource {
|
|
4
|
-
price: PriceAPI.Price;
|
|
5
|
-
}
|
|
6
|
-
export declare namespace Beta {
|
|
7
|
-
export import Price = PriceAPI.Price;
|
|
8
|
-
export import EvaluatePriceGroup = PriceAPI.EvaluatePriceGroup;
|
|
9
|
-
export import PriceEvaluateResponse = PriceAPI.PriceEvaluateResponse;
|
|
10
|
-
export import PriceEvaluateParams = PriceAPI.PriceEvaluateParams;
|
|
11
|
-
}
|
|
12
|
-
//# sourceMappingURL=beta.d.ts.map
|