orb-billing 2.3.0 → 2.5.1
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 +66 -0
- package/index.d.mts +3 -0
- package/index.d.ts +3 -0
- package/index.d.ts.map +1 -1
- package/index.js +2 -0
- package/index.js.map +1 -1
- package/index.mjs +2 -0
- package/index.mjs.map +1 -1
- package/package.json +4 -4
- package/resources/alerts.d.ts +84 -0
- package/resources/alerts.d.ts.map +1 -0
- package/resources/alerts.js +17 -0
- package/resources/alerts.js.map +1 -0
- package/resources/alerts.mjs +13 -0
- package/resources/alerts.mjs.map +1 -0
- 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/customers/customers.d.ts +592 -432
- package/resources/customers/customers.d.ts.map +1 -1
- package/resources/customers/customers.js.map +1 -1
- package/resources/customers/customers.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/index.d.ts +1 -0
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +3 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -0
- package/resources/index.mjs.map +1 -1
- package/resources/invoices.d.ts +297 -217
- package/resources/invoices.d.ts.map +1 -1
- package/resources/invoices.js +1 -1
- package/resources/invoices.js.map +1 -1
- package/resources/invoices.mjs +1 -1
- package/resources/invoices.mjs.map +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/index.ts +4 -0
- package/src/resources/alerts.ts +100 -0
- package/src/resources/customers/credits/credits.ts +6 -0
- package/src/resources/customers/customers.ts +728 -424
- package/src/resources/events/backfills.ts +25 -0
- package/src/resources/index.ts +1 -0
- package/src/resources/invoices.ts +365 -213
- 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
|
@@ -803,6 +803,11 @@ export declare class Subscriptions extends APIResource {
|
|
|
803
803
|
* default for the plan. The request format for price overrides, maximums, and
|
|
804
804
|
* minimums are the same as those in [subscription creation](create-subscription).
|
|
805
805
|
*
|
|
806
|
+
* ## Scheduling multiple plan changes
|
|
807
|
+
*
|
|
808
|
+
* When scheduling multiple plan changes with the same date, the latest plan change
|
|
809
|
+
* on that day takes effect.
|
|
810
|
+
*
|
|
806
811
|
* ## Prorations for in-advance fees
|
|
807
812
|
*
|
|
808
813
|
* By default, Orb calculates the prorated difference in any fixed fees when making
|
|
@@ -1789,6 +1794,15 @@ export declare namespace SubscriptionCreateParams {
|
|
|
1789
1794
|
id: string;
|
|
1790
1795
|
model_type: 'unit';
|
|
1791
1796
|
unit_config: OverrideUnitPrice.UnitConfig;
|
|
1797
|
+
/**
|
|
1798
|
+
* The per unit conversion rate of the price currency to the invoicing currency.
|
|
1799
|
+
*/
|
|
1800
|
+
conversion_rate?: number | null;
|
|
1801
|
+
/**
|
|
1802
|
+
* The currency of the price. If not provided, the currency of the plan will be
|
|
1803
|
+
* used.
|
|
1804
|
+
*/
|
|
1805
|
+
currency?: string | null;
|
|
1792
1806
|
/**
|
|
1793
1807
|
* The subscription's override discount for the plan.
|
|
1794
1808
|
*/
|
|
@@ -1847,6 +1861,15 @@ export declare namespace SubscriptionCreateParams {
|
|
|
1847
1861
|
id: string;
|
|
1848
1862
|
model_type: 'package';
|
|
1849
1863
|
package_config: OverridePackagePrice.PackageConfig;
|
|
1864
|
+
/**
|
|
1865
|
+
* The per unit conversion rate of the price currency to the invoicing currency.
|
|
1866
|
+
*/
|
|
1867
|
+
conversion_rate?: number | null;
|
|
1868
|
+
/**
|
|
1869
|
+
* The currency of the price. If not provided, the currency of the plan will be
|
|
1870
|
+
* used.
|
|
1871
|
+
*/
|
|
1872
|
+
currency?: string | null;
|
|
1850
1873
|
/**
|
|
1851
1874
|
* The subscription's override discount for the plan.
|
|
1852
1875
|
*/
|
|
@@ -1874,7 +1897,7 @@ export declare namespace SubscriptionCreateParams {
|
|
|
1874
1897
|
* An integer amount to represent package size. For example, 1000 here would divide
|
|
1875
1898
|
* usage by 1000 before multiplying by package_amount in rating
|
|
1876
1899
|
*/
|
|
1877
|
-
package_size
|
|
1900
|
+
package_size: number;
|
|
1878
1901
|
}
|
|
1879
1902
|
/**
|
|
1880
1903
|
* The subscription's override discount for the plan.
|
|
@@ -1910,6 +1933,15 @@ export declare namespace SubscriptionCreateParams {
|
|
|
1910
1933
|
id: string;
|
|
1911
1934
|
matrix_config: OverrideMatrixPrice.MatrixConfig;
|
|
1912
1935
|
model_type: 'matrix';
|
|
1936
|
+
/**
|
|
1937
|
+
* The per unit conversion rate of the price currency to the invoicing currency.
|
|
1938
|
+
*/
|
|
1939
|
+
conversion_rate?: number | null;
|
|
1940
|
+
/**
|
|
1941
|
+
* The currency of the price. If not provided, the currency of the plan will be
|
|
1942
|
+
* used.
|
|
1943
|
+
*/
|
|
1944
|
+
currency?: string | null;
|
|
1913
1945
|
/**
|
|
1914
1946
|
* The subscription's override discount for the plan.
|
|
1915
1947
|
*/
|
|
@@ -1990,6 +2022,15 @@ export declare namespace SubscriptionCreateParams {
|
|
|
1990
2022
|
id: string;
|
|
1991
2023
|
model_type: 'tiered';
|
|
1992
2024
|
tiered_config: OverrideTieredPrice.TieredConfig;
|
|
2025
|
+
/**
|
|
2026
|
+
* The per unit conversion rate of the price currency to the invoicing currency.
|
|
2027
|
+
*/
|
|
2028
|
+
conversion_rate?: number | null;
|
|
2029
|
+
/**
|
|
2030
|
+
* The currency of the price. If not provided, the currency of the plan will be
|
|
2031
|
+
* used.
|
|
2032
|
+
*/
|
|
2033
|
+
currency?: string | null;
|
|
1993
2034
|
/**
|
|
1994
2035
|
* The subscription's override discount for the plan.
|
|
1995
2036
|
*/
|
|
@@ -2064,6 +2105,15 @@ export declare namespace SubscriptionCreateParams {
|
|
|
2064
2105
|
id: string;
|
|
2065
2106
|
model_type: 'tiered_bps';
|
|
2066
2107
|
tiered_bps_config: OverrideTieredBpsPrice.TieredBpsConfig;
|
|
2108
|
+
/**
|
|
2109
|
+
* The per unit conversion rate of the price currency to the invoicing currency.
|
|
2110
|
+
*/
|
|
2111
|
+
conversion_rate?: number | null;
|
|
2112
|
+
/**
|
|
2113
|
+
* The currency of the price. If not provided, the currency of the plan will be
|
|
2114
|
+
* used.
|
|
2115
|
+
*/
|
|
2116
|
+
currency?: string | null;
|
|
2067
2117
|
/**
|
|
2068
2118
|
* The subscription's override discount for the plan.
|
|
2069
2119
|
*/
|
|
@@ -2143,6 +2193,15 @@ export declare namespace SubscriptionCreateParams {
|
|
|
2143
2193
|
id: string;
|
|
2144
2194
|
bps_config: OverrideBpsPrice.BpsConfig;
|
|
2145
2195
|
model_type: 'bps';
|
|
2196
|
+
/**
|
|
2197
|
+
* The per unit conversion rate of the price currency to the invoicing currency.
|
|
2198
|
+
*/
|
|
2199
|
+
conversion_rate?: number | null;
|
|
2200
|
+
/**
|
|
2201
|
+
* The currency of the price. If not provided, the currency of the plan will be
|
|
2202
|
+
* used.
|
|
2203
|
+
*/
|
|
2204
|
+
currency?: string | null;
|
|
2146
2205
|
/**
|
|
2147
2206
|
* The subscription's override discount for the plan.
|
|
2148
2207
|
*/
|
|
@@ -2205,6 +2264,15 @@ export declare namespace SubscriptionCreateParams {
|
|
|
2205
2264
|
id: string;
|
|
2206
2265
|
bulk_bps_config: OverrideBulkBpsPrice.BulkBpsConfig;
|
|
2207
2266
|
model_type: 'bulk_bps';
|
|
2267
|
+
/**
|
|
2268
|
+
* The per unit conversion rate of the price currency to the invoicing currency.
|
|
2269
|
+
*/
|
|
2270
|
+
conversion_rate?: number | null;
|
|
2271
|
+
/**
|
|
2272
|
+
* The currency of the price. If not provided, the currency of the plan will be
|
|
2273
|
+
* used.
|
|
2274
|
+
*/
|
|
2275
|
+
currency?: string | null;
|
|
2208
2276
|
/**
|
|
2209
2277
|
* The subscription's override discount for the plan.
|
|
2210
2278
|
*/
|
|
@@ -2280,6 +2348,15 @@ export declare namespace SubscriptionCreateParams {
|
|
|
2280
2348
|
id: string;
|
|
2281
2349
|
bulk_config: OverrideBulkPrice.BulkConfig;
|
|
2282
2350
|
model_type: 'bulk';
|
|
2351
|
+
/**
|
|
2352
|
+
* The per unit conversion rate of the price currency to the invoicing currency.
|
|
2353
|
+
*/
|
|
2354
|
+
conversion_rate?: number | null;
|
|
2355
|
+
/**
|
|
2356
|
+
* The currency of the price. If not provided, the currency of the plan will be
|
|
2357
|
+
* used.
|
|
2358
|
+
*/
|
|
2359
|
+
currency?: string | null;
|
|
2283
2360
|
/**
|
|
2284
2361
|
* The subscription's override discount for the plan.
|
|
2285
2362
|
*/
|
|
@@ -2350,6 +2427,15 @@ export declare namespace SubscriptionCreateParams {
|
|
|
2350
2427
|
id: string;
|
|
2351
2428
|
model_type: 'threshold_total_amount';
|
|
2352
2429
|
threshold_total_amount_config: Record<string, unknown>;
|
|
2430
|
+
/**
|
|
2431
|
+
* The per unit conversion rate of the price currency to the invoicing currency.
|
|
2432
|
+
*/
|
|
2433
|
+
conversion_rate?: number | null;
|
|
2434
|
+
/**
|
|
2435
|
+
* The currency of the price. If not provided, the currency of the plan will be
|
|
2436
|
+
* used.
|
|
2437
|
+
*/
|
|
2438
|
+
currency?: string | null;
|
|
2353
2439
|
/**
|
|
2354
2440
|
* The subscription's override discount for the plan.
|
|
2355
2441
|
*/
|
|
@@ -2402,6 +2488,15 @@ export declare namespace SubscriptionCreateParams {
|
|
|
2402
2488
|
id: string;
|
|
2403
2489
|
model_type: 'tiered_package';
|
|
2404
2490
|
tiered_package_config: Record<string, unknown>;
|
|
2491
|
+
/**
|
|
2492
|
+
* The per unit conversion rate of the price currency to the invoicing currency.
|
|
2493
|
+
*/
|
|
2494
|
+
conversion_rate?: number | null;
|
|
2495
|
+
/**
|
|
2496
|
+
* The currency of the price. If not provided, the currency of the plan will be
|
|
2497
|
+
* used.
|
|
2498
|
+
*/
|
|
2499
|
+
currency?: string | null;
|
|
2405
2500
|
/**
|
|
2406
2501
|
* The subscription's override discount for the plan.
|
|
2407
2502
|
*/
|
|
@@ -2454,6 +2549,15 @@ export declare namespace SubscriptionCreateParams {
|
|
|
2454
2549
|
id: string;
|
|
2455
2550
|
model_type: 'tiered_with_minimum';
|
|
2456
2551
|
tiered_with_minimum_config: Record<string, unknown>;
|
|
2552
|
+
/**
|
|
2553
|
+
* The per unit conversion rate of the price currency to the invoicing currency.
|
|
2554
|
+
*/
|
|
2555
|
+
conversion_rate?: number | null;
|
|
2556
|
+
/**
|
|
2557
|
+
* The currency of the price. If not provided, the currency of the plan will be
|
|
2558
|
+
* used.
|
|
2559
|
+
*/
|
|
2560
|
+
currency?: string | null;
|
|
2457
2561
|
/**
|
|
2458
2562
|
* The subscription's override discount for the plan.
|
|
2459
2563
|
*/
|
|
@@ -2506,6 +2610,15 @@ export declare namespace SubscriptionCreateParams {
|
|
|
2506
2610
|
id: string;
|
|
2507
2611
|
model_type: 'package_with_allocation';
|
|
2508
2612
|
package_with_allocation_config: Record<string, unknown>;
|
|
2613
|
+
/**
|
|
2614
|
+
* The per unit conversion rate of the price currency to the invoicing currency.
|
|
2615
|
+
*/
|
|
2616
|
+
conversion_rate?: number | null;
|
|
2617
|
+
/**
|
|
2618
|
+
* The currency of the price. If not provided, the currency of the plan will be
|
|
2619
|
+
* used.
|
|
2620
|
+
*/
|
|
2621
|
+
currency?: string | null;
|
|
2509
2622
|
/**
|
|
2510
2623
|
* The subscription's override discount for the plan.
|
|
2511
2624
|
*/
|
|
@@ -2558,6 +2671,15 @@ export declare namespace SubscriptionCreateParams {
|
|
|
2558
2671
|
id: string;
|
|
2559
2672
|
model_type: 'unit_with_percent';
|
|
2560
2673
|
unit_with_percent_config: Record<string, unknown>;
|
|
2674
|
+
/**
|
|
2675
|
+
* The per unit conversion rate of the price currency to the invoicing currency.
|
|
2676
|
+
*/
|
|
2677
|
+
conversion_rate?: number | null;
|
|
2678
|
+
/**
|
|
2679
|
+
* The currency of the price. If not provided, the currency of the plan will be
|
|
2680
|
+
* used.
|
|
2681
|
+
*/
|
|
2682
|
+
currency?: string | null;
|
|
2561
2683
|
/**
|
|
2562
2684
|
* The subscription's override discount for the plan.
|
|
2563
2685
|
*/
|
|
@@ -2843,6 +2965,10 @@ export declare namespace SubscriptionPriceIntervalsParams {
|
|
|
2843
2965
|
* this is true, and in-arrears if this is false.
|
|
2844
2966
|
*/
|
|
2845
2967
|
billed_in_advance?: boolean | null;
|
|
2968
|
+
/**
|
|
2969
|
+
* The per unit conversion rate of the price currency to the invoicing currency.
|
|
2970
|
+
*/
|
|
2971
|
+
conversion_rate?: number | null;
|
|
2846
2972
|
/**
|
|
2847
2973
|
* An alias for the price.
|
|
2848
2974
|
*/
|
|
@@ -2894,6 +3020,10 @@ export declare namespace SubscriptionPriceIntervalsParams {
|
|
|
2894
3020
|
* this is true, and in-arrears if this is false.
|
|
2895
3021
|
*/
|
|
2896
3022
|
billed_in_advance?: boolean | null;
|
|
3023
|
+
/**
|
|
3024
|
+
* The per unit conversion rate of the price currency to the invoicing currency.
|
|
3025
|
+
*/
|
|
3026
|
+
conversion_rate?: number | null;
|
|
2897
3027
|
/**
|
|
2898
3028
|
* An alias for the price.
|
|
2899
3029
|
*/
|
|
@@ -2918,7 +3048,7 @@ export declare namespace SubscriptionPriceIntervalsParams {
|
|
|
2918
3048
|
* An integer amount to represent package size. For example, 1000 here would divide
|
|
2919
3049
|
* usage by 1000 before multiplying by package_amount in rating
|
|
2920
3050
|
*/
|
|
2921
|
-
package_size
|
|
3051
|
+
package_size: number;
|
|
2922
3052
|
}
|
|
2923
3053
|
}
|
|
2924
3054
|
interface NewFloatingMatrixPrice {
|
|
@@ -2950,6 +3080,10 @@ export declare namespace SubscriptionPriceIntervalsParams {
|
|
|
2950
3080
|
* this is true, and in-arrears if this is false.
|
|
2951
3081
|
*/
|
|
2952
3082
|
billed_in_advance?: boolean | null;
|
|
3083
|
+
/**
|
|
3084
|
+
* The per unit conversion rate of the price currency to the invoicing currency.
|
|
3085
|
+
*/
|
|
3086
|
+
conversion_rate?: number | null;
|
|
2953
3087
|
/**
|
|
2954
3088
|
* An alias for the price.
|
|
2955
3089
|
*/
|
|
@@ -3023,6 +3157,10 @@ export declare namespace SubscriptionPriceIntervalsParams {
|
|
|
3023
3157
|
* this is true, and in-arrears if this is false.
|
|
3024
3158
|
*/
|
|
3025
3159
|
billed_in_advance?: boolean | null;
|
|
3160
|
+
/**
|
|
3161
|
+
* The per unit conversion rate of the price currency to the invoicing currency.
|
|
3162
|
+
*/
|
|
3163
|
+
conversion_rate?: number | null;
|
|
3026
3164
|
/**
|
|
3027
3165
|
* An alias for the price.
|
|
3028
3166
|
*/
|
|
@@ -3100,6 +3238,10 @@ export declare namespace SubscriptionPriceIntervalsParams {
|
|
|
3100
3238
|
* this is true, and in-arrears if this is false.
|
|
3101
3239
|
*/
|
|
3102
3240
|
billed_in_advance?: boolean | null;
|
|
3241
|
+
/**
|
|
3242
|
+
* The per unit conversion rate of the price currency to the invoicing currency.
|
|
3243
|
+
*/
|
|
3244
|
+
conversion_rate?: number | null;
|
|
3103
3245
|
/**
|
|
3104
3246
|
* An alias for the price.
|
|
3105
3247
|
*/
|
|
@@ -3167,6 +3309,10 @@ export declare namespace SubscriptionPriceIntervalsParams {
|
|
|
3167
3309
|
* this is true, and in-arrears if this is false.
|
|
3168
3310
|
*/
|
|
3169
3311
|
billed_in_advance?: boolean | null;
|
|
3312
|
+
/**
|
|
3313
|
+
* The per unit conversion rate of the price currency to the invoicing currency.
|
|
3314
|
+
*/
|
|
3315
|
+
conversion_rate?: number | null;
|
|
3170
3316
|
/**
|
|
3171
3317
|
* An alias for the price.
|
|
3172
3318
|
*/
|
|
@@ -3239,6 +3385,10 @@ export declare namespace SubscriptionPriceIntervalsParams {
|
|
|
3239
3385
|
* this is true, and in-arrears if this is false.
|
|
3240
3386
|
*/
|
|
3241
3387
|
billed_in_advance?: boolean | null;
|
|
3388
|
+
/**
|
|
3389
|
+
* The per unit conversion rate of the price currency to the invoicing currency.
|
|
3390
|
+
*/
|
|
3391
|
+
conversion_rate?: number | null;
|
|
3242
3392
|
/**
|
|
3243
3393
|
* An alias for the price.
|
|
3244
3394
|
*/
|
|
@@ -3294,6 +3444,10 @@ export declare namespace SubscriptionPriceIntervalsParams {
|
|
|
3294
3444
|
* this is true, and in-arrears if this is false.
|
|
3295
3445
|
*/
|
|
3296
3446
|
billed_in_advance?: boolean | null;
|
|
3447
|
+
/**
|
|
3448
|
+
* The per unit conversion rate of the price currency to the invoicing currency.
|
|
3449
|
+
*/
|
|
3450
|
+
conversion_rate?: number | null;
|
|
3297
3451
|
/**
|
|
3298
3452
|
* An alias for the price.
|
|
3299
3453
|
*/
|
|
@@ -3362,6 +3516,10 @@ export declare namespace SubscriptionPriceIntervalsParams {
|
|
|
3362
3516
|
* this is true, and in-arrears if this is false.
|
|
3363
3517
|
*/
|
|
3364
3518
|
billed_in_advance?: boolean | null;
|
|
3519
|
+
/**
|
|
3520
|
+
* The per unit conversion rate of the price currency to the invoicing currency.
|
|
3521
|
+
*/
|
|
3522
|
+
conversion_rate?: number | null;
|
|
3365
3523
|
/**
|
|
3366
3524
|
* An alias for the price.
|
|
3367
3525
|
*/
|
|
@@ -3425,6 +3583,10 @@ export declare namespace SubscriptionPriceIntervalsParams {
|
|
|
3425
3583
|
* this is true, and in-arrears if this is false.
|
|
3426
3584
|
*/
|
|
3427
3585
|
billed_in_advance?: boolean | null;
|
|
3586
|
+
/**
|
|
3587
|
+
* The per unit conversion rate of the price currency to the invoicing currency.
|
|
3588
|
+
*/
|
|
3589
|
+
conversion_rate?: number | null;
|
|
3428
3590
|
/**
|
|
3429
3591
|
* An alias for the price.
|
|
3430
3592
|
*/
|
|
@@ -3468,6 +3630,10 @@ export declare namespace SubscriptionPriceIntervalsParams {
|
|
|
3468
3630
|
* this is true, and in-arrears if this is false.
|
|
3469
3631
|
*/
|
|
3470
3632
|
billed_in_advance?: boolean | null;
|
|
3633
|
+
/**
|
|
3634
|
+
* The per unit conversion rate of the price currency to the invoicing currency.
|
|
3635
|
+
*/
|
|
3636
|
+
conversion_rate?: number | null;
|
|
3471
3637
|
/**
|
|
3472
3638
|
* An alias for the price.
|
|
3473
3639
|
*/
|
|
@@ -3511,6 +3677,10 @@ export declare namespace SubscriptionPriceIntervalsParams {
|
|
|
3511
3677
|
* this is true, and in-arrears if this is false.
|
|
3512
3678
|
*/
|
|
3513
3679
|
billed_in_advance?: boolean | null;
|
|
3680
|
+
/**
|
|
3681
|
+
* The per unit conversion rate of the price currency to the invoicing currency.
|
|
3682
|
+
*/
|
|
3683
|
+
conversion_rate?: number | null;
|
|
3514
3684
|
/**
|
|
3515
3685
|
* An alias for the price.
|
|
3516
3686
|
*/
|
|
@@ -3554,6 +3724,10 @@ export declare namespace SubscriptionPriceIntervalsParams {
|
|
|
3554
3724
|
* this is true, and in-arrears if this is false.
|
|
3555
3725
|
*/
|
|
3556
3726
|
billed_in_advance?: boolean | null;
|
|
3727
|
+
/**
|
|
3728
|
+
* The per unit conversion rate of the price currency to the invoicing currency.
|
|
3729
|
+
*/
|
|
3730
|
+
conversion_rate?: number | null;
|
|
3557
3731
|
/**
|
|
3558
3732
|
* An alias for the price.
|
|
3559
3733
|
*/
|
|
@@ -3597,6 +3771,10 @@ export declare namespace SubscriptionPriceIntervalsParams {
|
|
|
3597
3771
|
* this is true, and in-arrears if this is false.
|
|
3598
3772
|
*/
|
|
3599
3773
|
billed_in_advance?: boolean | null;
|
|
3774
|
+
/**
|
|
3775
|
+
* The per unit conversion rate of the price currency to the invoicing currency.
|
|
3776
|
+
*/
|
|
3777
|
+
conversion_rate?: number | null;
|
|
3600
3778
|
/**
|
|
3601
3779
|
* An alias for the price.
|
|
3602
3780
|
*/
|
|
@@ -3640,6 +3818,10 @@ export declare namespace SubscriptionPriceIntervalsParams {
|
|
|
3640
3818
|
* this is true, and in-arrears if this is false.
|
|
3641
3819
|
*/
|
|
3642
3820
|
billed_in_advance?: boolean | null;
|
|
3821
|
+
/**
|
|
3822
|
+
* The per unit conversion rate of the price currency to the invoicing currency.
|
|
3823
|
+
*/
|
|
3824
|
+
conversion_rate?: number | null;
|
|
3643
3825
|
/**
|
|
3644
3826
|
* An alias for the price.
|
|
3645
3827
|
*/
|
|
@@ -3683,6 +3865,10 @@ export declare namespace SubscriptionPriceIntervalsParams {
|
|
|
3683
3865
|
* this is true, and in-arrears if this is false.
|
|
3684
3866
|
*/
|
|
3685
3867
|
billed_in_advance?: boolean | null;
|
|
3868
|
+
/**
|
|
3869
|
+
* The per unit conversion rate of the price currency to the invoicing currency.
|
|
3870
|
+
*/
|
|
3871
|
+
conversion_rate?: number | null;
|
|
3686
3872
|
/**
|
|
3687
3873
|
* An alias for the price.
|
|
3688
3874
|
*/
|
|
@@ -3795,6 +3981,15 @@ export declare namespace SubscriptionSchedulePlanChangeParams {
|
|
|
3795
3981
|
id: string;
|
|
3796
3982
|
model_type: 'unit';
|
|
3797
3983
|
unit_config: OverrideUnitPrice.UnitConfig;
|
|
3984
|
+
/**
|
|
3985
|
+
* The per unit conversion rate of the price currency to the invoicing currency.
|
|
3986
|
+
*/
|
|
3987
|
+
conversion_rate?: number | null;
|
|
3988
|
+
/**
|
|
3989
|
+
* The currency of the price. If not provided, the currency of the plan will be
|
|
3990
|
+
* used.
|
|
3991
|
+
*/
|
|
3992
|
+
currency?: string | null;
|
|
3798
3993
|
/**
|
|
3799
3994
|
* The subscription's override discount for the plan.
|
|
3800
3995
|
*/
|
|
@@ -3853,6 +4048,15 @@ export declare namespace SubscriptionSchedulePlanChangeParams {
|
|
|
3853
4048
|
id: string;
|
|
3854
4049
|
model_type: 'package';
|
|
3855
4050
|
package_config: OverridePackagePrice.PackageConfig;
|
|
4051
|
+
/**
|
|
4052
|
+
* The per unit conversion rate of the price currency to the invoicing currency.
|
|
4053
|
+
*/
|
|
4054
|
+
conversion_rate?: number | null;
|
|
4055
|
+
/**
|
|
4056
|
+
* The currency of the price. If not provided, the currency of the plan will be
|
|
4057
|
+
* used.
|
|
4058
|
+
*/
|
|
4059
|
+
currency?: string | null;
|
|
3856
4060
|
/**
|
|
3857
4061
|
* The subscription's override discount for the plan.
|
|
3858
4062
|
*/
|
|
@@ -3880,7 +4084,7 @@ export declare namespace SubscriptionSchedulePlanChangeParams {
|
|
|
3880
4084
|
* An integer amount to represent package size. For example, 1000 here would divide
|
|
3881
4085
|
* usage by 1000 before multiplying by package_amount in rating
|
|
3882
4086
|
*/
|
|
3883
|
-
package_size
|
|
4087
|
+
package_size: number;
|
|
3884
4088
|
}
|
|
3885
4089
|
/**
|
|
3886
4090
|
* The subscription's override discount for the plan.
|
|
@@ -3916,6 +4120,15 @@ export declare namespace SubscriptionSchedulePlanChangeParams {
|
|
|
3916
4120
|
id: string;
|
|
3917
4121
|
matrix_config: OverrideMatrixPrice.MatrixConfig;
|
|
3918
4122
|
model_type: 'matrix';
|
|
4123
|
+
/**
|
|
4124
|
+
* The per unit conversion rate of the price currency to the invoicing currency.
|
|
4125
|
+
*/
|
|
4126
|
+
conversion_rate?: number | null;
|
|
4127
|
+
/**
|
|
4128
|
+
* The currency of the price. If not provided, the currency of the plan will be
|
|
4129
|
+
* used.
|
|
4130
|
+
*/
|
|
4131
|
+
currency?: string | null;
|
|
3919
4132
|
/**
|
|
3920
4133
|
* The subscription's override discount for the plan.
|
|
3921
4134
|
*/
|
|
@@ -3996,6 +4209,15 @@ export declare namespace SubscriptionSchedulePlanChangeParams {
|
|
|
3996
4209
|
id: string;
|
|
3997
4210
|
model_type: 'tiered';
|
|
3998
4211
|
tiered_config: OverrideTieredPrice.TieredConfig;
|
|
4212
|
+
/**
|
|
4213
|
+
* The per unit conversion rate of the price currency to the invoicing currency.
|
|
4214
|
+
*/
|
|
4215
|
+
conversion_rate?: number | null;
|
|
4216
|
+
/**
|
|
4217
|
+
* The currency of the price. If not provided, the currency of the plan will be
|
|
4218
|
+
* used.
|
|
4219
|
+
*/
|
|
4220
|
+
currency?: string | null;
|
|
3999
4221
|
/**
|
|
4000
4222
|
* The subscription's override discount for the plan.
|
|
4001
4223
|
*/
|
|
@@ -4070,6 +4292,15 @@ export declare namespace SubscriptionSchedulePlanChangeParams {
|
|
|
4070
4292
|
id: string;
|
|
4071
4293
|
model_type: 'tiered_bps';
|
|
4072
4294
|
tiered_bps_config: OverrideTieredBpsPrice.TieredBpsConfig;
|
|
4295
|
+
/**
|
|
4296
|
+
* The per unit conversion rate of the price currency to the invoicing currency.
|
|
4297
|
+
*/
|
|
4298
|
+
conversion_rate?: number | null;
|
|
4299
|
+
/**
|
|
4300
|
+
* The currency of the price. If not provided, the currency of the plan will be
|
|
4301
|
+
* used.
|
|
4302
|
+
*/
|
|
4303
|
+
currency?: string | null;
|
|
4073
4304
|
/**
|
|
4074
4305
|
* The subscription's override discount for the plan.
|
|
4075
4306
|
*/
|
|
@@ -4149,6 +4380,15 @@ export declare namespace SubscriptionSchedulePlanChangeParams {
|
|
|
4149
4380
|
id: string;
|
|
4150
4381
|
bps_config: OverrideBpsPrice.BpsConfig;
|
|
4151
4382
|
model_type: 'bps';
|
|
4383
|
+
/**
|
|
4384
|
+
* The per unit conversion rate of the price currency to the invoicing currency.
|
|
4385
|
+
*/
|
|
4386
|
+
conversion_rate?: number | null;
|
|
4387
|
+
/**
|
|
4388
|
+
* The currency of the price. If not provided, the currency of the plan will be
|
|
4389
|
+
* used.
|
|
4390
|
+
*/
|
|
4391
|
+
currency?: string | null;
|
|
4152
4392
|
/**
|
|
4153
4393
|
* The subscription's override discount for the plan.
|
|
4154
4394
|
*/
|
|
@@ -4211,6 +4451,15 @@ export declare namespace SubscriptionSchedulePlanChangeParams {
|
|
|
4211
4451
|
id: string;
|
|
4212
4452
|
bulk_bps_config: OverrideBulkBpsPrice.BulkBpsConfig;
|
|
4213
4453
|
model_type: 'bulk_bps';
|
|
4454
|
+
/**
|
|
4455
|
+
* The per unit conversion rate of the price currency to the invoicing currency.
|
|
4456
|
+
*/
|
|
4457
|
+
conversion_rate?: number | null;
|
|
4458
|
+
/**
|
|
4459
|
+
* The currency of the price. If not provided, the currency of the plan will be
|
|
4460
|
+
* used.
|
|
4461
|
+
*/
|
|
4462
|
+
currency?: string | null;
|
|
4214
4463
|
/**
|
|
4215
4464
|
* The subscription's override discount for the plan.
|
|
4216
4465
|
*/
|
|
@@ -4286,6 +4535,15 @@ export declare namespace SubscriptionSchedulePlanChangeParams {
|
|
|
4286
4535
|
id: string;
|
|
4287
4536
|
bulk_config: OverrideBulkPrice.BulkConfig;
|
|
4288
4537
|
model_type: 'bulk';
|
|
4538
|
+
/**
|
|
4539
|
+
* The per unit conversion rate of the price currency to the invoicing currency.
|
|
4540
|
+
*/
|
|
4541
|
+
conversion_rate?: number | null;
|
|
4542
|
+
/**
|
|
4543
|
+
* The currency of the price. If not provided, the currency of the plan will be
|
|
4544
|
+
* used.
|
|
4545
|
+
*/
|
|
4546
|
+
currency?: string | null;
|
|
4289
4547
|
/**
|
|
4290
4548
|
* The subscription's override discount for the plan.
|
|
4291
4549
|
*/
|
|
@@ -4356,6 +4614,15 @@ export declare namespace SubscriptionSchedulePlanChangeParams {
|
|
|
4356
4614
|
id: string;
|
|
4357
4615
|
model_type: 'threshold_total_amount';
|
|
4358
4616
|
threshold_total_amount_config: Record<string, unknown>;
|
|
4617
|
+
/**
|
|
4618
|
+
* The per unit conversion rate of the price currency to the invoicing currency.
|
|
4619
|
+
*/
|
|
4620
|
+
conversion_rate?: number | null;
|
|
4621
|
+
/**
|
|
4622
|
+
* The currency of the price. If not provided, the currency of the plan will be
|
|
4623
|
+
* used.
|
|
4624
|
+
*/
|
|
4625
|
+
currency?: string | null;
|
|
4359
4626
|
/**
|
|
4360
4627
|
* The subscription's override discount for the plan.
|
|
4361
4628
|
*/
|
|
@@ -4408,6 +4675,15 @@ export declare namespace SubscriptionSchedulePlanChangeParams {
|
|
|
4408
4675
|
id: string;
|
|
4409
4676
|
model_type: 'tiered_package';
|
|
4410
4677
|
tiered_package_config: Record<string, unknown>;
|
|
4678
|
+
/**
|
|
4679
|
+
* The per unit conversion rate of the price currency to the invoicing currency.
|
|
4680
|
+
*/
|
|
4681
|
+
conversion_rate?: number | null;
|
|
4682
|
+
/**
|
|
4683
|
+
* The currency of the price. If not provided, the currency of the plan will be
|
|
4684
|
+
* used.
|
|
4685
|
+
*/
|
|
4686
|
+
currency?: string | null;
|
|
4411
4687
|
/**
|
|
4412
4688
|
* The subscription's override discount for the plan.
|
|
4413
4689
|
*/
|
|
@@ -4460,6 +4736,15 @@ export declare namespace SubscriptionSchedulePlanChangeParams {
|
|
|
4460
4736
|
id: string;
|
|
4461
4737
|
model_type: 'tiered_with_minimum';
|
|
4462
4738
|
tiered_with_minimum_config: Record<string, unknown>;
|
|
4739
|
+
/**
|
|
4740
|
+
* The per unit conversion rate of the price currency to the invoicing currency.
|
|
4741
|
+
*/
|
|
4742
|
+
conversion_rate?: number | null;
|
|
4743
|
+
/**
|
|
4744
|
+
* The currency of the price. If not provided, the currency of the plan will be
|
|
4745
|
+
* used.
|
|
4746
|
+
*/
|
|
4747
|
+
currency?: string | null;
|
|
4463
4748
|
/**
|
|
4464
4749
|
* The subscription's override discount for the plan.
|
|
4465
4750
|
*/
|
|
@@ -4512,6 +4797,15 @@ export declare namespace SubscriptionSchedulePlanChangeParams {
|
|
|
4512
4797
|
id: string;
|
|
4513
4798
|
model_type: 'package_with_allocation';
|
|
4514
4799
|
package_with_allocation_config: Record<string, unknown>;
|
|
4800
|
+
/**
|
|
4801
|
+
* The per unit conversion rate of the price currency to the invoicing currency.
|
|
4802
|
+
*/
|
|
4803
|
+
conversion_rate?: number | null;
|
|
4804
|
+
/**
|
|
4805
|
+
* The currency of the price. If not provided, the currency of the plan will be
|
|
4806
|
+
* used.
|
|
4807
|
+
*/
|
|
4808
|
+
currency?: string | null;
|
|
4515
4809
|
/**
|
|
4516
4810
|
* The subscription's override discount for the plan.
|
|
4517
4811
|
*/
|
|
@@ -4564,6 +4858,15 @@ export declare namespace SubscriptionSchedulePlanChangeParams {
|
|
|
4564
4858
|
id: string;
|
|
4565
4859
|
model_type: 'unit_with_percent';
|
|
4566
4860
|
unit_with_percent_config: Record<string, unknown>;
|
|
4861
|
+
/**
|
|
4862
|
+
* The per unit conversion rate of the price currency to the invoicing currency.
|
|
4863
|
+
*/
|
|
4864
|
+
conversion_rate?: number | null;
|
|
4865
|
+
/**
|
|
4866
|
+
* The currency of the price. If not provided, the currency of the plan will be
|
|
4867
|
+
* used.
|
|
4868
|
+
*/
|
|
4869
|
+
currency?: string | null;
|
|
4567
4870
|
/**
|
|
4568
4871
|
* The subscription's override discount for the plan.
|
|
4569
4872
|
*/
|