orb-billing 2.11.1 → 3.0.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 +57 -0
- package/README.md +7 -15
- package/core.d.ts +4 -2
- package/core.d.ts.map +1 -1
- package/core.js +17 -4
- package/core.js.map +1 -1
- package/core.mjs +18 -5
- package/core.mjs.map +1 -1
- package/index.d.mts +7 -3
- package/index.d.ts +7 -3
- package/index.d.ts.map +1 -1
- package/index.js +4 -2
- package/index.js.map +1 -1
- package/index.mjs +4 -2
- package/index.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/alerts.d.ts +1 -1
- package/resources/alerts.d.ts.map +1 -1
- package/resources/alerts.js.map +1 -1
- package/resources/alerts.mjs.map +1 -1
- package/resources/coupons/coupons.d.ts +25 -8
- package/resources/coupons/coupons.d.ts.map +1 -1
- package/resources/coupons/coupons.js.map +1 -1
- package/resources/coupons/coupons.mjs.map +1 -1
- package/resources/coupons/subscriptions.d.ts +1 -1
- package/resources/coupons/subscriptions.d.ts.map +1 -1
- package/resources/coupons/subscriptions.js.map +1 -1
- package/resources/coupons/subscriptions.mjs.map +1 -1
- package/resources/credit-notes.d.ts +1 -1
- package/resources/credit-notes.d.ts.map +1 -1
- package/resources/credit-notes.js.map +1 -1
- package/resources/credit-notes.mjs.map +1 -1
- package/resources/customers/balance-transactions.d.ts +1 -1
- package/resources/customers/balance-transactions.d.ts.map +1 -1
- package/resources/customers/balance-transactions.js.map +1 -1
- package/resources/customers/balance-transactions.mjs.map +1 -1
- package/resources/customers/costs.d.ts +1 -1
- package/resources/customers/costs.d.ts.map +1 -1
- package/resources/customers/costs.js.map +1 -1
- package/resources/customers/costs.mjs.map +1 -1
- package/resources/customers/credits/credits.d.ts +11 -1
- 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/credits/ledger.d.ts +1 -1
- package/resources/customers/credits/ledger.d.ts.map +1 -1
- package/resources/customers/credits/ledger.js.map +1 -1
- package/resources/customers/credits/ledger.mjs.map +1 -1
- package/resources/customers/credits/top-ups.d.ts +1 -1
- package/resources/customers/credits/top-ups.d.ts.map +1 -1
- package/resources/customers/credits/top-ups.js.map +1 -1
- package/resources/customers/credits/top-ups.mjs.map +1 -1
- package/resources/customers/customers.d.ts +1 -1
- 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/customers/usage.d.ts +1 -1
- package/resources/customers/usage.d.ts.map +1 -1
- package/resources/customers/usage.js.map +1 -1
- package/resources/customers/usage.mjs.map +1 -1
- package/resources/events/backfills.d.ts +1 -1
- 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/events/events.d.ts +1 -1
- package/resources/events/events.d.ts.map +1 -1
- package/resources/events/events.js.map +1 -1
- package/resources/events/events.mjs.map +1 -1
- package/resources/index.d.ts +2 -2
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/invoice-line-items.d.ts +1 -1
- package/resources/invoice-line-items.d.ts.map +1 -1
- package/resources/invoice-line-items.js.map +1 -1
- package/resources/invoice-line-items.mjs.map +1 -1
- package/resources/invoices.d.ts +31 -1
- package/resources/invoices.d.ts.map +1 -1
- package/resources/invoices.js +6 -0
- package/resources/invoices.js.map +1 -1
- package/resources/invoices.mjs +6 -0
- package/resources/invoices.mjs.map +1 -1
- package/resources/items.d.ts +6 -10
- package/resources/items.d.ts.map +1 -1
- package/resources/items.js +4 -4
- package/resources/items.js.map +1 -1
- package/resources/items.mjs +4 -4
- package/resources/items.mjs.map +1 -1
- package/resources/metrics.d.ts +1 -1
- package/resources/metrics.d.ts.map +1 -1
- package/resources/metrics.js.map +1 -1
- package/resources/metrics.mjs.map +1 -1
- package/resources/plans/external-plan-id.d.ts +8 -12
- package/resources/plans/external-plan-id.d.ts.map +1 -1
- package/resources/plans/external-plan-id.js +4 -0
- package/resources/plans/external-plan-id.js.map +1 -1
- package/resources/plans/external-plan-id.mjs +4 -0
- package/resources/plans/external-plan-id.mjs.map +1 -1
- package/resources/plans/plans.d.ts +112 -17
- 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/external-price-id.d.ts +20 -1
- package/resources/prices/external-price-id.d.ts.map +1 -1
- package/resources/prices/external-price-id.js +9 -0
- package/resources/prices/external-price-id.js.map +1 -1
- package/resources/prices/external-price-id.mjs +9 -0
- package/resources/prices/external-price-id.mjs.map +1 -1
- package/resources/prices/index.d.ts +2 -2
- package/resources/prices/index.d.ts.map +1 -1
- package/resources/prices/index.js.map +1 -1
- package/resources/prices/index.mjs.map +1 -1
- package/resources/prices/prices.d.ts +288 -37
- package/resources/prices/prices.d.ts.map +1 -1
- package/resources/prices/prices.js +6 -0
- package/resources/prices/prices.js.map +1 -1
- package/resources/prices/prices.mjs +6 -0
- package/resources/prices/prices.mjs.map +1 -1
- package/resources/subscriptions.d.ts +247 -19
- package/resources/subscriptions.d.ts.map +1 -1
- package/resources/subscriptions.js.map +1 -1
- package/resources/subscriptions.mjs.map +1 -1
- package/resources/top-level.d.ts +1 -1
- package/resources/top-level.d.ts.map +1 -1
- package/resources/top-level.js.map +1 -1
- package/resources/top-level.mjs.map +1 -1
- package/resources/webhooks.js +2 -2
- package/resources/webhooks.js.map +1 -1
- package/resources/webhooks.mjs +1 -1
- package/resources/webhooks.mjs.map +1 -1
- package/src/core.ts +27 -8
- package/src/index.ts +8 -3
- package/src/resources/alerts.ts +1 -1
- package/src/resources/coupons/coupons.ts +25 -8
- package/src/resources/coupons/subscriptions.ts +1 -1
- package/src/resources/credit-notes.ts +1 -1
- package/src/resources/customers/balance-transactions.ts +1 -1
- package/src/resources/customers/costs.ts +1 -1
- package/src/resources/customers/credits/credits.ts +15 -1
- package/src/resources/customers/credits/ledger.ts +1 -1
- package/src/resources/customers/credits/top-ups.ts +1 -1
- package/src/resources/customers/customers.ts +1 -1
- package/src/resources/customers/usage.ts +1 -1
- package/src/resources/events/backfills.ts +1 -1
- package/src/resources/events/events.ts +1 -1
- package/src/resources/index.ts +2 -0
- package/src/resources/invoice-line-items.ts +1 -1
- package/src/resources/invoices.ts +50 -1
- package/src/resources/items.ts +14 -10
- package/src/resources/metrics.ts +1 -1
- package/src/resources/plans/external-plan-id.ts +8 -12
- package/src/resources/plans/plans.ts +128 -17
- package/src/resources/prices/external-price-id.ts +38 -1
- package/src/resources/prices/index.ts +2 -1
- package/src/resources/prices/prices.ts +336 -37
- package/src/resources/subscriptions.ts +295 -19
- package/src/resources/top-level.ts +1 -1
- package/src/resources/webhooks.ts +2 -2
- package/src/version.ts +1 -1
- package/version.d.ts +1 -1
- package/version.d.ts.map +1 -1
- package/version.js +1 -1
- package/version.js.map +1 -1
- package/version.mjs +1 -1
- package/version.mjs.map +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
import * as Core from '../../core';
|
|
4
3
|
import { APIResource } from '../../resource';
|
|
5
4
|
import { isRequestOptions } from '../../core';
|
|
5
|
+
import * as Core from '../../core';
|
|
6
6
|
import * as PricesAPI from './prices';
|
|
7
7
|
import * as Shared from '../shared';
|
|
8
8
|
import * as ExternalPriceIDAPI from './external-price-id';
|
|
@@ -27,6 +27,24 @@ export class Prices extends APIResource {
|
|
|
27
27
|
return this._client.post('/prices', { body, ...options });
|
|
28
28
|
}
|
|
29
29
|
|
|
30
|
+
/**
|
|
31
|
+
* This endpoint allows you to update the `metadata` property on a price. If you
|
|
32
|
+
* pass null for the metadata value, it will clear any existing metadata for that
|
|
33
|
+
* price.
|
|
34
|
+
*/
|
|
35
|
+
update(priceId: string, body?: PriceUpdateParams, options?: Core.RequestOptions): Core.APIPromise<Price>;
|
|
36
|
+
update(priceId: string, options?: Core.RequestOptions): Core.APIPromise<Price>;
|
|
37
|
+
update(
|
|
38
|
+
priceId: string,
|
|
39
|
+
body: PriceUpdateParams | Core.RequestOptions = {},
|
|
40
|
+
options?: Core.RequestOptions,
|
|
41
|
+
): Core.APIPromise<Price> {
|
|
42
|
+
if (isRequestOptions(body)) {
|
|
43
|
+
return this.update(priceId, {}, body);
|
|
44
|
+
}
|
|
45
|
+
return this._client.put(`/prices/${priceId}`, { body, ...options });
|
|
46
|
+
}
|
|
47
|
+
|
|
30
48
|
/**
|
|
31
49
|
* This endpoint is used to list all add-on prices created using the
|
|
32
50
|
* [price creation endpoint](../reference/create-price).
|
|
@@ -360,7 +378,7 @@ export namespace Price {
|
|
|
360
378
|
|
|
361
379
|
billable_metric: UnitPrice.BillableMetric | null;
|
|
362
380
|
|
|
363
|
-
cadence: 'one_time' | 'monthly' | 'quarterly' | 'annual';
|
|
381
|
+
cadence: 'one_time' | 'monthly' | 'quarterly' | 'semi_annual' | 'annual';
|
|
364
382
|
|
|
365
383
|
conversion_rate: number | null;
|
|
366
384
|
|
|
@@ -382,6 +400,14 @@ export namespace Price {
|
|
|
382
400
|
|
|
383
401
|
maximum_amount: string | null;
|
|
384
402
|
|
|
403
|
+
/**
|
|
404
|
+
* User specified key-value pairs for the resource. If not present, this defaults
|
|
405
|
+
* to an empty dictionary. Individual keys can be removed by setting the value to
|
|
406
|
+
* `null`, and the entire metadata mapping can be cleared by setting `metadata` to
|
|
407
|
+
* `null`.
|
|
408
|
+
*/
|
|
409
|
+
metadata: Record<string, string>;
|
|
410
|
+
|
|
385
411
|
minimum: UnitPrice.Minimum | null;
|
|
386
412
|
|
|
387
413
|
minimum_amount: string | null;
|
|
@@ -453,7 +479,7 @@ export namespace Price {
|
|
|
453
479
|
|
|
454
480
|
billable_metric: PackagePrice.BillableMetric | null;
|
|
455
481
|
|
|
456
|
-
cadence: 'one_time' | 'monthly' | 'quarterly' | 'annual';
|
|
482
|
+
cadence: 'one_time' | 'monthly' | 'quarterly' | 'semi_annual' | 'annual';
|
|
457
483
|
|
|
458
484
|
conversion_rate: number | null;
|
|
459
485
|
|
|
@@ -475,6 +501,14 @@ export namespace Price {
|
|
|
475
501
|
|
|
476
502
|
maximum_amount: string | null;
|
|
477
503
|
|
|
504
|
+
/**
|
|
505
|
+
* User specified key-value pairs for the resource. If not present, this defaults
|
|
506
|
+
* to an empty dictionary. Individual keys can be removed by setting the value to
|
|
507
|
+
* `null`, and the entire metadata mapping can be cleared by setting `metadata` to
|
|
508
|
+
* `null`.
|
|
509
|
+
*/
|
|
510
|
+
metadata: Record<string, string>;
|
|
511
|
+
|
|
478
512
|
minimum: PackagePrice.Minimum | null;
|
|
479
513
|
|
|
480
514
|
minimum_amount: string | null;
|
|
@@ -552,7 +586,7 @@ export namespace Price {
|
|
|
552
586
|
|
|
553
587
|
billable_metric: MatrixPrice.BillableMetric | null;
|
|
554
588
|
|
|
555
|
-
cadence: 'one_time' | 'monthly' | 'quarterly' | 'annual';
|
|
589
|
+
cadence: 'one_time' | 'monthly' | 'quarterly' | 'semi_annual' | 'annual';
|
|
556
590
|
|
|
557
591
|
conversion_rate: number | null;
|
|
558
592
|
|
|
@@ -576,6 +610,14 @@ export namespace Price {
|
|
|
576
610
|
|
|
577
611
|
maximum_amount: string | null;
|
|
578
612
|
|
|
613
|
+
/**
|
|
614
|
+
* User specified key-value pairs for the resource. If not present, this defaults
|
|
615
|
+
* to an empty dictionary. Individual keys can be removed by setting the value to
|
|
616
|
+
* `null`, and the entire metadata mapping can be cleared by setting `metadata` to
|
|
617
|
+
* `null`.
|
|
618
|
+
*/
|
|
619
|
+
metadata: Record<string, string>;
|
|
620
|
+
|
|
579
621
|
minimum: MatrixPrice.Minimum | null;
|
|
580
622
|
|
|
581
623
|
minimum_amount: string | null;
|
|
@@ -671,7 +713,7 @@ export namespace Price {
|
|
|
671
713
|
|
|
672
714
|
billable_metric: TieredPrice.BillableMetric | null;
|
|
673
715
|
|
|
674
|
-
cadence: 'one_time' | 'monthly' | 'quarterly' | 'annual';
|
|
716
|
+
cadence: 'one_time' | 'monthly' | 'quarterly' | 'semi_annual' | 'annual';
|
|
675
717
|
|
|
676
718
|
conversion_rate: number | null;
|
|
677
719
|
|
|
@@ -693,6 +735,14 @@ export namespace Price {
|
|
|
693
735
|
|
|
694
736
|
maximum_amount: string | null;
|
|
695
737
|
|
|
738
|
+
/**
|
|
739
|
+
* User specified key-value pairs for the resource. If not present, this defaults
|
|
740
|
+
* to an empty dictionary. Individual keys can be removed by setting the value to
|
|
741
|
+
* `null`, and the entire metadata mapping can be cleared by setting `metadata` to
|
|
742
|
+
* `null`.
|
|
743
|
+
*/
|
|
744
|
+
metadata: Record<string, string>;
|
|
745
|
+
|
|
696
746
|
minimum: TieredPrice.Minimum | null;
|
|
697
747
|
|
|
698
748
|
minimum_amount: string | null;
|
|
@@ -783,7 +833,7 @@ export namespace Price {
|
|
|
783
833
|
|
|
784
834
|
billable_metric: TieredBpsPrice.BillableMetric | null;
|
|
785
835
|
|
|
786
|
-
cadence: 'one_time' | 'monthly' | 'quarterly' | 'annual';
|
|
836
|
+
cadence: 'one_time' | 'monthly' | 'quarterly' | 'semi_annual' | 'annual';
|
|
787
837
|
|
|
788
838
|
conversion_rate: number | null;
|
|
789
839
|
|
|
@@ -805,6 +855,14 @@ export namespace Price {
|
|
|
805
855
|
|
|
806
856
|
maximum_amount: string | null;
|
|
807
857
|
|
|
858
|
+
/**
|
|
859
|
+
* User specified key-value pairs for the resource. If not present, this defaults
|
|
860
|
+
* to an empty dictionary. Individual keys can be removed by setting the value to
|
|
861
|
+
* `null`, and the entire metadata mapping can be cleared by setting `metadata` to
|
|
862
|
+
* `null`.
|
|
863
|
+
*/
|
|
864
|
+
metadata: Record<string, string>;
|
|
865
|
+
|
|
808
866
|
minimum: TieredBpsPrice.Minimum | null;
|
|
809
867
|
|
|
810
868
|
minimum_amount: string | null;
|
|
@@ -903,7 +961,7 @@ export namespace Price {
|
|
|
903
961
|
|
|
904
962
|
bps_config: BpsPrice.BpsConfig;
|
|
905
963
|
|
|
906
|
-
cadence: 'one_time' | 'monthly' | 'quarterly' | 'annual';
|
|
964
|
+
cadence: 'one_time' | 'monthly' | 'quarterly' | 'semi_annual' | 'annual';
|
|
907
965
|
|
|
908
966
|
conversion_rate: number | null;
|
|
909
967
|
|
|
@@ -925,6 +983,14 @@ export namespace Price {
|
|
|
925
983
|
|
|
926
984
|
maximum_amount: string | null;
|
|
927
985
|
|
|
986
|
+
/**
|
|
987
|
+
* User specified key-value pairs for the resource. If not present, this defaults
|
|
988
|
+
* to an empty dictionary. Individual keys can be removed by setting the value to
|
|
989
|
+
* `null`, and the entire metadata mapping can be cleared by setting `metadata` to
|
|
990
|
+
* `null`.
|
|
991
|
+
*/
|
|
992
|
+
metadata: Record<string, string>;
|
|
993
|
+
|
|
928
994
|
minimum: BpsPrice.Minimum | null;
|
|
929
995
|
|
|
930
996
|
minimum_amount: string | null;
|
|
@@ -1001,7 +1067,7 @@ export namespace Price {
|
|
|
1001
1067
|
|
|
1002
1068
|
bulk_bps_config: BulkBpsPrice.BulkBpsConfig;
|
|
1003
1069
|
|
|
1004
|
-
cadence: 'one_time' | 'monthly' | 'quarterly' | 'annual';
|
|
1070
|
+
cadence: 'one_time' | 'monthly' | 'quarterly' | 'semi_annual' | 'annual';
|
|
1005
1071
|
|
|
1006
1072
|
conversion_rate: number | null;
|
|
1007
1073
|
|
|
@@ -1023,6 +1089,14 @@ export namespace Price {
|
|
|
1023
1089
|
|
|
1024
1090
|
maximum_amount: string | null;
|
|
1025
1091
|
|
|
1092
|
+
/**
|
|
1093
|
+
* User specified key-value pairs for the resource. If not present, this defaults
|
|
1094
|
+
* to an empty dictionary. Individual keys can be removed by setting the value to
|
|
1095
|
+
* `null`, and the entire metadata mapping can be cleared by setting `metadata` to
|
|
1096
|
+
* `null`.
|
|
1097
|
+
*/
|
|
1098
|
+
metadata: Record<string, string>;
|
|
1099
|
+
|
|
1026
1100
|
minimum: BulkBpsPrice.Minimum | null;
|
|
1027
1101
|
|
|
1028
1102
|
minimum_amount: string | null;
|
|
@@ -1114,7 +1188,7 @@ export namespace Price {
|
|
|
1114
1188
|
|
|
1115
1189
|
bulk_config: BulkPrice.BulkConfig;
|
|
1116
1190
|
|
|
1117
|
-
cadence: 'one_time' | 'monthly' | 'quarterly' | 'annual';
|
|
1191
|
+
cadence: 'one_time' | 'monthly' | 'quarterly' | 'semi_annual' | 'annual';
|
|
1118
1192
|
|
|
1119
1193
|
conversion_rate: number | null;
|
|
1120
1194
|
|
|
@@ -1136,6 +1210,14 @@ export namespace Price {
|
|
|
1136
1210
|
|
|
1137
1211
|
maximum_amount: string | null;
|
|
1138
1212
|
|
|
1213
|
+
/**
|
|
1214
|
+
* User specified key-value pairs for the resource. If not present, this defaults
|
|
1215
|
+
* to an empty dictionary. Individual keys can be removed by setting the value to
|
|
1216
|
+
* `null`, and the entire metadata mapping can be cleared by setting `metadata` to
|
|
1217
|
+
* `null`.
|
|
1218
|
+
*/
|
|
1219
|
+
metadata: Record<string, string>;
|
|
1220
|
+
|
|
1139
1221
|
minimum: BulkPrice.Minimum | null;
|
|
1140
1222
|
|
|
1141
1223
|
minimum_amount: string | null;
|
|
@@ -1219,7 +1301,7 @@ export namespace Price {
|
|
|
1219
1301
|
|
|
1220
1302
|
billable_metric: ThresholdTotalAmountPrice.BillableMetric | null;
|
|
1221
1303
|
|
|
1222
|
-
cadence: 'one_time' | 'monthly' | 'quarterly' | 'annual';
|
|
1304
|
+
cadence: 'one_time' | 'monthly' | 'quarterly' | 'semi_annual' | 'annual';
|
|
1223
1305
|
|
|
1224
1306
|
conversion_rate: number | null;
|
|
1225
1307
|
|
|
@@ -1241,6 +1323,14 @@ export namespace Price {
|
|
|
1241
1323
|
|
|
1242
1324
|
maximum_amount: string | null;
|
|
1243
1325
|
|
|
1326
|
+
/**
|
|
1327
|
+
* User specified key-value pairs for the resource. If not present, this defaults
|
|
1328
|
+
* to an empty dictionary. Individual keys can be removed by setting the value to
|
|
1329
|
+
* `null`, and the entire metadata mapping can be cleared by setting `metadata` to
|
|
1330
|
+
* `null`.
|
|
1331
|
+
*/
|
|
1332
|
+
metadata: Record<string, string>;
|
|
1333
|
+
|
|
1244
1334
|
minimum: ThresholdTotalAmountPrice.Minimum | null;
|
|
1245
1335
|
|
|
1246
1336
|
minimum_amount: string | null;
|
|
@@ -1305,7 +1395,7 @@ export namespace Price {
|
|
|
1305
1395
|
|
|
1306
1396
|
billable_metric: TieredPackagePrice.BillableMetric | null;
|
|
1307
1397
|
|
|
1308
|
-
cadence: 'one_time' | 'monthly' | 'quarterly' | 'annual';
|
|
1398
|
+
cadence: 'one_time' | 'monthly' | 'quarterly' | 'semi_annual' | 'annual';
|
|
1309
1399
|
|
|
1310
1400
|
conversion_rate: number | null;
|
|
1311
1401
|
|
|
@@ -1327,6 +1417,14 @@ export namespace Price {
|
|
|
1327
1417
|
|
|
1328
1418
|
maximum_amount: string | null;
|
|
1329
1419
|
|
|
1420
|
+
/**
|
|
1421
|
+
* User specified key-value pairs for the resource. If not present, this defaults
|
|
1422
|
+
* to an empty dictionary. Individual keys can be removed by setting the value to
|
|
1423
|
+
* `null`, and the entire metadata mapping can be cleared by setting `metadata` to
|
|
1424
|
+
* `null`.
|
|
1425
|
+
*/
|
|
1426
|
+
metadata: Record<string, string>;
|
|
1427
|
+
|
|
1330
1428
|
minimum: TieredPackagePrice.Minimum | null;
|
|
1331
1429
|
|
|
1332
1430
|
minimum_amount: string | null;
|
|
@@ -1391,7 +1489,7 @@ export namespace Price {
|
|
|
1391
1489
|
|
|
1392
1490
|
billable_metric: GroupedTieredPrice.BillableMetric | null;
|
|
1393
1491
|
|
|
1394
|
-
cadence: 'one_time' | 'monthly' | 'quarterly' | 'annual';
|
|
1492
|
+
cadence: 'one_time' | 'monthly' | 'quarterly' | 'semi_annual' | 'annual';
|
|
1395
1493
|
|
|
1396
1494
|
conversion_rate: number | null;
|
|
1397
1495
|
|
|
@@ -1415,6 +1513,14 @@ export namespace Price {
|
|
|
1415
1513
|
|
|
1416
1514
|
maximum_amount: string | null;
|
|
1417
1515
|
|
|
1516
|
+
/**
|
|
1517
|
+
* User specified key-value pairs for the resource. If not present, this defaults
|
|
1518
|
+
* to an empty dictionary. Individual keys can be removed by setting the value to
|
|
1519
|
+
* `null`, and the entire metadata mapping can be cleared by setting `metadata` to
|
|
1520
|
+
* `null`.
|
|
1521
|
+
*/
|
|
1522
|
+
metadata: Record<string, string>;
|
|
1523
|
+
|
|
1418
1524
|
minimum: GroupedTieredPrice.Minimum | null;
|
|
1419
1525
|
|
|
1420
1526
|
minimum_amount: string | null;
|
|
@@ -1477,7 +1583,7 @@ export namespace Price {
|
|
|
1477
1583
|
|
|
1478
1584
|
billable_metric: TieredWithMinimumPrice.BillableMetric | null;
|
|
1479
1585
|
|
|
1480
|
-
cadence: 'one_time' | 'monthly' | 'quarterly' | 'annual';
|
|
1586
|
+
cadence: 'one_time' | 'monthly' | 'quarterly' | 'semi_annual' | 'annual';
|
|
1481
1587
|
|
|
1482
1588
|
conversion_rate: number | null;
|
|
1483
1589
|
|
|
@@ -1499,6 +1605,14 @@ export namespace Price {
|
|
|
1499
1605
|
|
|
1500
1606
|
maximum_amount: string | null;
|
|
1501
1607
|
|
|
1608
|
+
/**
|
|
1609
|
+
* User specified key-value pairs for the resource. If not present, this defaults
|
|
1610
|
+
* to an empty dictionary. Individual keys can be removed by setting the value to
|
|
1611
|
+
* `null`, and the entire metadata mapping can be cleared by setting `metadata` to
|
|
1612
|
+
* `null`.
|
|
1613
|
+
*/
|
|
1614
|
+
metadata: Record<string, string>;
|
|
1615
|
+
|
|
1502
1616
|
minimum: TieredWithMinimumPrice.Minimum | null;
|
|
1503
1617
|
|
|
1504
1618
|
minimum_amount: string | null;
|
|
@@ -1563,7 +1677,7 @@ export namespace Price {
|
|
|
1563
1677
|
|
|
1564
1678
|
billable_metric: TieredPackageWithMinimumPrice.BillableMetric | null;
|
|
1565
1679
|
|
|
1566
|
-
cadence: 'one_time' | 'monthly' | 'quarterly' | 'annual';
|
|
1680
|
+
cadence: 'one_time' | 'monthly' | 'quarterly' | 'semi_annual' | 'annual';
|
|
1567
1681
|
|
|
1568
1682
|
conversion_rate: number | null;
|
|
1569
1683
|
|
|
@@ -1585,6 +1699,14 @@ export namespace Price {
|
|
|
1585
1699
|
|
|
1586
1700
|
maximum_amount: string | null;
|
|
1587
1701
|
|
|
1702
|
+
/**
|
|
1703
|
+
* User specified key-value pairs for the resource. If not present, this defaults
|
|
1704
|
+
* to an empty dictionary. Individual keys can be removed by setting the value to
|
|
1705
|
+
* `null`, and the entire metadata mapping can be cleared by setting `metadata` to
|
|
1706
|
+
* `null`.
|
|
1707
|
+
*/
|
|
1708
|
+
metadata: Record<string, string>;
|
|
1709
|
+
|
|
1588
1710
|
minimum: TieredPackageWithMinimumPrice.Minimum | null;
|
|
1589
1711
|
|
|
1590
1712
|
minimum_amount: string | null;
|
|
@@ -1649,7 +1771,7 @@ export namespace Price {
|
|
|
1649
1771
|
|
|
1650
1772
|
billable_metric: PackageWithAllocationPrice.BillableMetric | null;
|
|
1651
1773
|
|
|
1652
|
-
cadence: 'one_time' | 'monthly' | 'quarterly' | 'annual';
|
|
1774
|
+
cadence: 'one_time' | 'monthly' | 'quarterly' | 'semi_annual' | 'annual';
|
|
1653
1775
|
|
|
1654
1776
|
conversion_rate: number | null;
|
|
1655
1777
|
|
|
@@ -1671,6 +1793,14 @@ export namespace Price {
|
|
|
1671
1793
|
|
|
1672
1794
|
maximum_amount: string | null;
|
|
1673
1795
|
|
|
1796
|
+
/**
|
|
1797
|
+
* User specified key-value pairs for the resource. If not present, this defaults
|
|
1798
|
+
* to an empty dictionary. Individual keys can be removed by setting the value to
|
|
1799
|
+
* `null`, and the entire metadata mapping can be cleared by setting `metadata` to
|
|
1800
|
+
* `null`.
|
|
1801
|
+
*/
|
|
1802
|
+
metadata: Record<string, string>;
|
|
1803
|
+
|
|
1674
1804
|
minimum: PackageWithAllocationPrice.Minimum | null;
|
|
1675
1805
|
|
|
1676
1806
|
minimum_amount: string | null;
|
|
@@ -1735,7 +1865,7 @@ export namespace Price {
|
|
|
1735
1865
|
|
|
1736
1866
|
billable_metric: UnitWithPercentPrice.BillableMetric | null;
|
|
1737
1867
|
|
|
1738
|
-
cadence: 'one_time' | 'monthly' | 'quarterly' | 'annual';
|
|
1868
|
+
cadence: 'one_time' | 'monthly' | 'quarterly' | 'semi_annual' | 'annual';
|
|
1739
1869
|
|
|
1740
1870
|
conversion_rate: number | null;
|
|
1741
1871
|
|
|
@@ -1757,6 +1887,14 @@ export namespace Price {
|
|
|
1757
1887
|
|
|
1758
1888
|
maximum_amount: string | null;
|
|
1759
1889
|
|
|
1890
|
+
/**
|
|
1891
|
+
* User specified key-value pairs for the resource. If not present, this defaults
|
|
1892
|
+
* to an empty dictionary. Individual keys can be removed by setting the value to
|
|
1893
|
+
* `null`, and the entire metadata mapping can be cleared by setting `metadata` to
|
|
1894
|
+
* `null`.
|
|
1895
|
+
*/
|
|
1896
|
+
metadata: Record<string, string>;
|
|
1897
|
+
|
|
1760
1898
|
minimum: UnitWithPercentPrice.Minimum | null;
|
|
1761
1899
|
|
|
1762
1900
|
minimum_amount: string | null;
|
|
@@ -1821,7 +1959,7 @@ export namespace Price {
|
|
|
1821
1959
|
|
|
1822
1960
|
billable_metric: MatrixWithAllocationPrice.BillableMetric | null;
|
|
1823
1961
|
|
|
1824
|
-
cadence: 'one_time' | 'monthly' | 'quarterly' | 'annual';
|
|
1962
|
+
cadence: 'one_time' | 'monthly' | 'quarterly' | 'semi_annual' | 'annual';
|
|
1825
1963
|
|
|
1826
1964
|
conversion_rate: number | null;
|
|
1827
1965
|
|
|
@@ -1845,6 +1983,14 @@ export namespace Price {
|
|
|
1845
1983
|
|
|
1846
1984
|
maximum_amount: string | null;
|
|
1847
1985
|
|
|
1986
|
+
/**
|
|
1987
|
+
* User specified key-value pairs for the resource. If not present, this defaults
|
|
1988
|
+
* to an empty dictionary. Individual keys can be removed by setting the value to
|
|
1989
|
+
* `null`, and the entire metadata mapping can be cleared by setting `metadata` to
|
|
1990
|
+
* `null`.
|
|
1991
|
+
*/
|
|
1992
|
+
metadata: Record<string, string>;
|
|
1993
|
+
|
|
1848
1994
|
minimum: MatrixWithAllocationPrice.Minimum | null;
|
|
1849
1995
|
|
|
1850
1996
|
minimum_amount: string | null;
|
|
@@ -1945,7 +2091,7 @@ export namespace Price {
|
|
|
1945
2091
|
|
|
1946
2092
|
billable_metric: TieredWithProrationPrice.BillableMetric | null;
|
|
1947
2093
|
|
|
1948
|
-
cadence: 'one_time' | 'monthly' | 'quarterly' | 'annual';
|
|
2094
|
+
cadence: 'one_time' | 'monthly' | 'quarterly' | 'semi_annual' | 'annual';
|
|
1949
2095
|
|
|
1950
2096
|
conversion_rate: number | null;
|
|
1951
2097
|
|
|
@@ -1967,6 +2113,14 @@ export namespace Price {
|
|
|
1967
2113
|
|
|
1968
2114
|
maximum_amount: string | null;
|
|
1969
2115
|
|
|
2116
|
+
/**
|
|
2117
|
+
* User specified key-value pairs for the resource. If not present, this defaults
|
|
2118
|
+
* to an empty dictionary. Individual keys can be removed by setting the value to
|
|
2119
|
+
* `null`, and the entire metadata mapping can be cleared by setting `metadata` to
|
|
2120
|
+
* `null`.
|
|
2121
|
+
*/
|
|
2122
|
+
metadata: Record<string, string>;
|
|
2123
|
+
|
|
1970
2124
|
minimum: TieredWithProrationPrice.Minimum | null;
|
|
1971
2125
|
|
|
1972
2126
|
minimum_amount: string | null;
|
|
@@ -2031,7 +2185,7 @@ export namespace Price {
|
|
|
2031
2185
|
|
|
2032
2186
|
billable_metric: UnitWithProrationPrice.BillableMetric | null;
|
|
2033
2187
|
|
|
2034
|
-
cadence: 'one_time' | 'monthly' | 'quarterly' | 'annual';
|
|
2188
|
+
cadence: 'one_time' | 'monthly' | 'quarterly' | 'semi_annual' | 'annual';
|
|
2035
2189
|
|
|
2036
2190
|
conversion_rate: number | null;
|
|
2037
2191
|
|
|
@@ -2053,6 +2207,14 @@ export namespace Price {
|
|
|
2053
2207
|
|
|
2054
2208
|
maximum_amount: string | null;
|
|
2055
2209
|
|
|
2210
|
+
/**
|
|
2211
|
+
* User specified key-value pairs for the resource. If not present, this defaults
|
|
2212
|
+
* to an empty dictionary. Individual keys can be removed by setting the value to
|
|
2213
|
+
* `null`, and the entire metadata mapping can be cleared by setting `metadata` to
|
|
2214
|
+
* `null`.
|
|
2215
|
+
*/
|
|
2216
|
+
metadata: Record<string, string>;
|
|
2217
|
+
|
|
2056
2218
|
minimum: UnitWithProrationPrice.Minimum | null;
|
|
2057
2219
|
|
|
2058
2220
|
minimum_amount: string | null;
|
|
@@ -2142,7 +2304,7 @@ export namespace PriceCreateParams {
|
|
|
2142
2304
|
/**
|
|
2143
2305
|
* The cadence to bill for this price on.
|
|
2144
2306
|
*/
|
|
2145
|
-
cadence: 'annual' | 'monthly' | 'quarterly' | 'one_time';
|
|
2307
|
+
cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time';
|
|
2146
2308
|
|
|
2147
2309
|
/**
|
|
2148
2310
|
* An ISO 4217 currency string for which this price is billed in.
|
|
@@ -2195,6 +2357,13 @@ export namespace PriceCreateParams {
|
|
|
2195
2357
|
* The property used to group this price on an invoice
|
|
2196
2358
|
*/
|
|
2197
2359
|
invoice_grouping_key?: string | null;
|
|
2360
|
+
|
|
2361
|
+
/**
|
|
2362
|
+
* User-specified key/value pairs for the resource. Individual keys can be removed
|
|
2363
|
+
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
2364
|
+
* by setting `metadata` to `null`.
|
|
2365
|
+
*/
|
|
2366
|
+
metadata?: Record<string, string | null> | null;
|
|
2198
2367
|
}
|
|
2199
2368
|
|
|
2200
2369
|
export namespace NewFloatingUnitPrice {
|
|
@@ -2210,7 +2379,7 @@ export namespace PriceCreateParams {
|
|
|
2210
2379
|
/**
|
|
2211
2380
|
* The cadence to bill for this price on.
|
|
2212
2381
|
*/
|
|
2213
|
-
cadence: 'annual' | 'monthly' | 'quarterly' | 'one_time';
|
|
2382
|
+
cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time';
|
|
2214
2383
|
|
|
2215
2384
|
/**
|
|
2216
2385
|
* An ISO 4217 currency string for which this price is billed in.
|
|
@@ -2263,6 +2432,13 @@ export namespace PriceCreateParams {
|
|
|
2263
2432
|
* The property used to group this price on an invoice
|
|
2264
2433
|
*/
|
|
2265
2434
|
invoice_grouping_key?: string | null;
|
|
2435
|
+
|
|
2436
|
+
/**
|
|
2437
|
+
* User-specified key/value pairs for the resource. Individual keys can be removed
|
|
2438
|
+
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
2439
|
+
* by setting `metadata` to `null`.
|
|
2440
|
+
*/
|
|
2441
|
+
metadata?: Record<string, string | null> | null;
|
|
2266
2442
|
}
|
|
2267
2443
|
|
|
2268
2444
|
export namespace NewFloatingPackagePrice {
|
|
@@ -2284,7 +2460,7 @@ export namespace PriceCreateParams {
|
|
|
2284
2460
|
/**
|
|
2285
2461
|
* The cadence to bill for this price on.
|
|
2286
2462
|
*/
|
|
2287
|
-
cadence: 'annual' | 'monthly' | 'quarterly' | 'one_time';
|
|
2463
|
+
cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time';
|
|
2288
2464
|
|
|
2289
2465
|
/**
|
|
2290
2466
|
* An ISO 4217 currency string for which this price is billed in.
|
|
@@ -2337,6 +2513,13 @@ export namespace PriceCreateParams {
|
|
|
2337
2513
|
* The property used to group this price on an invoice
|
|
2338
2514
|
*/
|
|
2339
2515
|
invoice_grouping_key?: string | null;
|
|
2516
|
+
|
|
2517
|
+
/**
|
|
2518
|
+
* User-specified key/value pairs for the resource. Individual keys can be removed
|
|
2519
|
+
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
2520
|
+
* by setting `metadata` to `null`.
|
|
2521
|
+
*/
|
|
2522
|
+
metadata?: Record<string, string | null> | null;
|
|
2340
2523
|
}
|
|
2341
2524
|
|
|
2342
2525
|
export namespace NewFloatingMatrixPrice {
|
|
@@ -2378,7 +2561,7 @@ export namespace PriceCreateParams {
|
|
|
2378
2561
|
/**
|
|
2379
2562
|
* The cadence to bill for this price on.
|
|
2380
2563
|
*/
|
|
2381
|
-
cadence: 'annual' | 'monthly' | 'quarterly' | 'one_time';
|
|
2564
|
+
cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time';
|
|
2382
2565
|
|
|
2383
2566
|
/**
|
|
2384
2567
|
* An ISO 4217 currency string for which this price is billed in.
|
|
@@ -2431,6 +2614,13 @@ export namespace PriceCreateParams {
|
|
|
2431
2614
|
* The property used to group this price on an invoice
|
|
2432
2615
|
*/
|
|
2433
2616
|
invoice_grouping_key?: string | null;
|
|
2617
|
+
|
|
2618
|
+
/**
|
|
2619
|
+
* User-specified key/value pairs for the resource. Individual keys can be removed
|
|
2620
|
+
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
2621
|
+
* by setting `metadata` to `null`.
|
|
2622
|
+
*/
|
|
2623
|
+
metadata?: Record<string, string | null> | null;
|
|
2434
2624
|
}
|
|
2435
2625
|
|
|
2436
2626
|
export namespace NewFloatingMatrixWithAllocationPrice {
|
|
@@ -2477,7 +2667,7 @@ export namespace PriceCreateParams {
|
|
|
2477
2667
|
/**
|
|
2478
2668
|
* The cadence to bill for this price on.
|
|
2479
2669
|
*/
|
|
2480
|
-
cadence: 'annual' | 'monthly' | 'quarterly' | 'one_time';
|
|
2670
|
+
cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time';
|
|
2481
2671
|
|
|
2482
2672
|
/**
|
|
2483
2673
|
* An ISO 4217 currency string for which this price is billed in.
|
|
@@ -2530,6 +2720,13 @@ export namespace PriceCreateParams {
|
|
|
2530
2720
|
* The property used to group this price on an invoice
|
|
2531
2721
|
*/
|
|
2532
2722
|
invoice_grouping_key?: string | null;
|
|
2723
|
+
|
|
2724
|
+
/**
|
|
2725
|
+
* User-specified key/value pairs for the resource. Individual keys can be removed
|
|
2726
|
+
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
2727
|
+
* by setting `metadata` to `null`.
|
|
2728
|
+
*/
|
|
2729
|
+
metadata?: Record<string, string | null> | null;
|
|
2533
2730
|
}
|
|
2534
2731
|
|
|
2535
2732
|
export namespace NewFloatingTieredPrice {
|
|
@@ -2564,7 +2761,7 @@ export namespace PriceCreateParams {
|
|
|
2564
2761
|
/**
|
|
2565
2762
|
* The cadence to bill for this price on.
|
|
2566
2763
|
*/
|
|
2567
|
-
cadence: 'annual' | 'monthly' | 'quarterly' | 'one_time';
|
|
2764
|
+
cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time';
|
|
2568
2765
|
|
|
2569
2766
|
/**
|
|
2570
2767
|
* An ISO 4217 currency string for which this price is billed in.
|
|
@@ -2617,6 +2814,13 @@ export namespace PriceCreateParams {
|
|
|
2617
2814
|
* The property used to group this price on an invoice
|
|
2618
2815
|
*/
|
|
2619
2816
|
invoice_grouping_key?: string | null;
|
|
2817
|
+
|
|
2818
|
+
/**
|
|
2819
|
+
* User-specified key/value pairs for the resource. Individual keys can be removed
|
|
2820
|
+
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
2821
|
+
* by setting `metadata` to `null`.
|
|
2822
|
+
*/
|
|
2823
|
+
metadata?: Record<string, string | null> | null;
|
|
2620
2824
|
}
|
|
2621
2825
|
|
|
2622
2826
|
export namespace NewFloatingTieredBpsPrice {
|
|
@@ -2659,7 +2863,7 @@ export namespace PriceCreateParams {
|
|
|
2659
2863
|
/**
|
|
2660
2864
|
* The cadence to bill for this price on.
|
|
2661
2865
|
*/
|
|
2662
|
-
cadence: 'annual' | 'monthly' | 'quarterly' | 'one_time';
|
|
2866
|
+
cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time';
|
|
2663
2867
|
|
|
2664
2868
|
/**
|
|
2665
2869
|
* An ISO 4217 currency string for which this price is billed in.
|
|
@@ -2710,6 +2914,13 @@ export namespace PriceCreateParams {
|
|
|
2710
2914
|
* The property used to group this price on an invoice
|
|
2711
2915
|
*/
|
|
2712
2916
|
invoice_grouping_key?: string | null;
|
|
2917
|
+
|
|
2918
|
+
/**
|
|
2919
|
+
* User-specified key/value pairs for the resource. Individual keys can be removed
|
|
2920
|
+
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
2921
|
+
* by setting `metadata` to `null`.
|
|
2922
|
+
*/
|
|
2923
|
+
metadata?: Record<string, string | null> | null;
|
|
2713
2924
|
}
|
|
2714
2925
|
|
|
2715
2926
|
export namespace NewFloatingBpsPrice {
|
|
@@ -2732,7 +2943,7 @@ export namespace PriceCreateParams {
|
|
|
2732
2943
|
/**
|
|
2733
2944
|
* The cadence to bill for this price on.
|
|
2734
2945
|
*/
|
|
2735
|
-
cadence: 'annual' | 'monthly' | 'quarterly' | 'one_time';
|
|
2946
|
+
cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time';
|
|
2736
2947
|
|
|
2737
2948
|
/**
|
|
2738
2949
|
* An ISO 4217 currency string for which this price is billed in.
|
|
@@ -2783,6 +2994,13 @@ export namespace PriceCreateParams {
|
|
|
2783
2994
|
* The property used to group this price on an invoice
|
|
2784
2995
|
*/
|
|
2785
2996
|
invoice_grouping_key?: string | null;
|
|
2997
|
+
|
|
2998
|
+
/**
|
|
2999
|
+
* User-specified key/value pairs for the resource. Individual keys can be removed
|
|
3000
|
+
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
3001
|
+
* by setting `metadata` to `null`.
|
|
3002
|
+
*/
|
|
3003
|
+
metadata?: Record<string, string | null> | null;
|
|
2786
3004
|
}
|
|
2787
3005
|
|
|
2788
3006
|
export namespace NewFloatingBulkBpsPrice {
|
|
@@ -2820,7 +3038,7 @@ export namespace PriceCreateParams {
|
|
|
2820
3038
|
/**
|
|
2821
3039
|
* The cadence to bill for this price on.
|
|
2822
3040
|
*/
|
|
2823
|
-
cadence: 'annual' | 'monthly' | 'quarterly' | 'one_time';
|
|
3041
|
+
cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time';
|
|
2824
3042
|
|
|
2825
3043
|
/**
|
|
2826
3044
|
* An ISO 4217 currency string for which this price is billed in.
|
|
@@ -2871,6 +3089,13 @@ export namespace PriceCreateParams {
|
|
|
2871
3089
|
* The property used to group this price on an invoice
|
|
2872
3090
|
*/
|
|
2873
3091
|
invoice_grouping_key?: string | null;
|
|
3092
|
+
|
|
3093
|
+
/**
|
|
3094
|
+
* User-specified key/value pairs for the resource. Individual keys can be removed
|
|
3095
|
+
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
3096
|
+
* by setting `metadata` to `null`.
|
|
3097
|
+
*/
|
|
3098
|
+
metadata?: Record<string, string | null> | null;
|
|
2874
3099
|
}
|
|
2875
3100
|
|
|
2876
3101
|
export namespace NewFloatingBulkPrice {
|
|
@@ -2900,7 +3125,7 @@ export namespace PriceCreateParams {
|
|
|
2900
3125
|
/**
|
|
2901
3126
|
* The cadence to bill for this price on.
|
|
2902
3127
|
*/
|
|
2903
|
-
cadence: 'annual' | 'monthly' | 'quarterly' | 'one_time';
|
|
3128
|
+
cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time';
|
|
2904
3129
|
|
|
2905
3130
|
/**
|
|
2906
3131
|
* An ISO 4217 currency string for which this price is billed in.
|
|
@@ -2953,13 +3178,20 @@ export namespace PriceCreateParams {
|
|
|
2953
3178
|
* The property used to group this price on an invoice
|
|
2954
3179
|
*/
|
|
2955
3180
|
invoice_grouping_key?: string | null;
|
|
3181
|
+
|
|
3182
|
+
/**
|
|
3183
|
+
* User-specified key/value pairs for the resource. Individual keys can be removed
|
|
3184
|
+
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
3185
|
+
* by setting `metadata` to `null`.
|
|
3186
|
+
*/
|
|
3187
|
+
metadata?: Record<string, string | null> | null;
|
|
2956
3188
|
}
|
|
2957
3189
|
|
|
2958
3190
|
export interface NewFloatingTieredPackagePrice {
|
|
2959
3191
|
/**
|
|
2960
3192
|
* The cadence to bill for this price on.
|
|
2961
3193
|
*/
|
|
2962
|
-
cadence: 'annual' | 'monthly' | 'quarterly' | 'one_time';
|
|
3194
|
+
cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time';
|
|
2963
3195
|
|
|
2964
3196
|
/**
|
|
2965
3197
|
* An ISO 4217 currency string for which this price is billed in.
|
|
@@ -3012,13 +3244,20 @@ export namespace PriceCreateParams {
|
|
|
3012
3244
|
* The property used to group this price on an invoice
|
|
3013
3245
|
*/
|
|
3014
3246
|
invoice_grouping_key?: string | null;
|
|
3247
|
+
|
|
3248
|
+
/**
|
|
3249
|
+
* User-specified key/value pairs for the resource. Individual keys can be removed
|
|
3250
|
+
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
3251
|
+
* by setting `metadata` to `null`.
|
|
3252
|
+
*/
|
|
3253
|
+
metadata?: Record<string, string | null> | null;
|
|
3015
3254
|
}
|
|
3016
3255
|
|
|
3017
3256
|
export interface NewFloatingGroupedTieredPrice {
|
|
3018
3257
|
/**
|
|
3019
3258
|
* The cadence to bill for this price on.
|
|
3020
3259
|
*/
|
|
3021
|
-
cadence: 'annual' | 'monthly' | 'quarterly' | 'one_time';
|
|
3260
|
+
cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time';
|
|
3022
3261
|
|
|
3023
3262
|
/**
|
|
3024
3263
|
* An ISO 4217 currency string for which this price is billed in.
|
|
@@ -3071,13 +3310,20 @@ export namespace PriceCreateParams {
|
|
|
3071
3310
|
* The property used to group this price on an invoice
|
|
3072
3311
|
*/
|
|
3073
3312
|
invoice_grouping_key?: string | null;
|
|
3313
|
+
|
|
3314
|
+
/**
|
|
3315
|
+
* User-specified key/value pairs for the resource. Individual keys can be removed
|
|
3316
|
+
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
3317
|
+
* by setting `metadata` to `null`.
|
|
3318
|
+
*/
|
|
3319
|
+
metadata?: Record<string, string | null> | null;
|
|
3074
3320
|
}
|
|
3075
3321
|
|
|
3076
3322
|
export interface NewFloatingTieredWithMinimumPrice {
|
|
3077
3323
|
/**
|
|
3078
3324
|
* The cadence to bill for this price on.
|
|
3079
3325
|
*/
|
|
3080
|
-
cadence: 'annual' | 'monthly' | 'quarterly' | 'one_time';
|
|
3326
|
+
cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time';
|
|
3081
3327
|
|
|
3082
3328
|
/**
|
|
3083
3329
|
* An ISO 4217 currency string for which this price is billed in.
|
|
@@ -3130,13 +3376,20 @@ export namespace PriceCreateParams {
|
|
|
3130
3376
|
* The property used to group this price on an invoice
|
|
3131
3377
|
*/
|
|
3132
3378
|
invoice_grouping_key?: string | null;
|
|
3379
|
+
|
|
3380
|
+
/**
|
|
3381
|
+
* User-specified key/value pairs for the resource. Individual keys can be removed
|
|
3382
|
+
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
3383
|
+
* by setting `metadata` to `null`.
|
|
3384
|
+
*/
|
|
3385
|
+
metadata?: Record<string, string | null> | null;
|
|
3133
3386
|
}
|
|
3134
3387
|
|
|
3135
3388
|
export interface NewFloatingPackageWithAllocationPrice {
|
|
3136
3389
|
/**
|
|
3137
3390
|
* The cadence to bill for this price on.
|
|
3138
3391
|
*/
|
|
3139
|
-
cadence: 'annual' | 'monthly' | 'quarterly' | 'one_time';
|
|
3392
|
+
cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time';
|
|
3140
3393
|
|
|
3141
3394
|
/**
|
|
3142
3395
|
* An ISO 4217 currency string for which this price is billed in.
|
|
@@ -3189,13 +3442,20 @@ export namespace PriceCreateParams {
|
|
|
3189
3442
|
* The property used to group this price on an invoice
|
|
3190
3443
|
*/
|
|
3191
3444
|
invoice_grouping_key?: string | null;
|
|
3445
|
+
|
|
3446
|
+
/**
|
|
3447
|
+
* User-specified key/value pairs for the resource. Individual keys can be removed
|
|
3448
|
+
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
3449
|
+
* by setting `metadata` to `null`.
|
|
3450
|
+
*/
|
|
3451
|
+
metadata?: Record<string, string | null> | null;
|
|
3192
3452
|
}
|
|
3193
3453
|
|
|
3194
3454
|
export interface NewFloatingTieredPackageWithMinimumPrice {
|
|
3195
3455
|
/**
|
|
3196
3456
|
* The cadence to bill for this price on.
|
|
3197
3457
|
*/
|
|
3198
|
-
cadence: 'annual' | 'monthly' | 'quarterly' | 'one_time';
|
|
3458
|
+
cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time';
|
|
3199
3459
|
|
|
3200
3460
|
/**
|
|
3201
3461
|
* An ISO 4217 currency string for which this price is billed in.
|
|
@@ -3248,13 +3508,20 @@ export namespace PriceCreateParams {
|
|
|
3248
3508
|
* The property used to group this price on an invoice
|
|
3249
3509
|
*/
|
|
3250
3510
|
invoice_grouping_key?: string | null;
|
|
3511
|
+
|
|
3512
|
+
/**
|
|
3513
|
+
* User-specified key/value pairs for the resource. Individual keys can be removed
|
|
3514
|
+
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
3515
|
+
* by setting `metadata` to `null`.
|
|
3516
|
+
*/
|
|
3517
|
+
metadata?: Record<string, string | null> | null;
|
|
3251
3518
|
}
|
|
3252
3519
|
|
|
3253
3520
|
export interface NewFloatingUnitWithPercentPrice {
|
|
3254
3521
|
/**
|
|
3255
3522
|
* The cadence to bill for this price on.
|
|
3256
3523
|
*/
|
|
3257
|
-
cadence: 'annual' | 'monthly' | 'quarterly' | 'one_time';
|
|
3524
|
+
cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time';
|
|
3258
3525
|
|
|
3259
3526
|
/**
|
|
3260
3527
|
* An ISO 4217 currency string for which this price is billed in.
|
|
@@ -3307,13 +3574,20 @@ export namespace PriceCreateParams {
|
|
|
3307
3574
|
* The property used to group this price on an invoice
|
|
3308
3575
|
*/
|
|
3309
3576
|
invoice_grouping_key?: string | null;
|
|
3577
|
+
|
|
3578
|
+
/**
|
|
3579
|
+
* User-specified key/value pairs for the resource. Individual keys can be removed
|
|
3580
|
+
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
3581
|
+
* by setting `metadata` to `null`.
|
|
3582
|
+
*/
|
|
3583
|
+
metadata?: Record<string, string | null> | null;
|
|
3310
3584
|
}
|
|
3311
3585
|
|
|
3312
3586
|
export interface NewFloatingTieredWithProrationPrice {
|
|
3313
3587
|
/**
|
|
3314
3588
|
* The cadence to bill for this price on.
|
|
3315
3589
|
*/
|
|
3316
|
-
cadence: 'annual' | 'monthly' | 'quarterly' | 'one_time';
|
|
3590
|
+
cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time';
|
|
3317
3591
|
|
|
3318
3592
|
/**
|
|
3319
3593
|
* An ISO 4217 currency string for which this price is billed in.
|
|
@@ -3366,13 +3640,20 @@ export namespace PriceCreateParams {
|
|
|
3366
3640
|
* The property used to group this price on an invoice
|
|
3367
3641
|
*/
|
|
3368
3642
|
invoice_grouping_key?: string | null;
|
|
3643
|
+
|
|
3644
|
+
/**
|
|
3645
|
+
* User-specified key/value pairs for the resource. Individual keys can be removed
|
|
3646
|
+
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
3647
|
+
* by setting `metadata` to `null`.
|
|
3648
|
+
*/
|
|
3649
|
+
metadata?: Record<string, string | null> | null;
|
|
3369
3650
|
}
|
|
3370
3651
|
|
|
3371
3652
|
export interface NewFloatingUnitWithProrationPrice {
|
|
3372
3653
|
/**
|
|
3373
3654
|
* The cadence to bill for this price on.
|
|
3374
3655
|
*/
|
|
3375
|
-
cadence: 'annual' | 'monthly' | 'quarterly' | 'one_time';
|
|
3656
|
+
cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time';
|
|
3376
3657
|
|
|
3377
3658
|
/**
|
|
3378
3659
|
* An ISO 4217 currency string for which this price is billed in.
|
|
@@ -3425,9 +3706,25 @@ export namespace PriceCreateParams {
|
|
|
3425
3706
|
* The property used to group this price on an invoice
|
|
3426
3707
|
*/
|
|
3427
3708
|
invoice_grouping_key?: string | null;
|
|
3709
|
+
|
|
3710
|
+
/**
|
|
3711
|
+
* User-specified key/value pairs for the resource. Individual keys can be removed
|
|
3712
|
+
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
3713
|
+
* by setting `metadata` to `null`.
|
|
3714
|
+
*/
|
|
3715
|
+
metadata?: Record<string, string | null> | null;
|
|
3428
3716
|
}
|
|
3429
3717
|
}
|
|
3430
3718
|
|
|
3719
|
+
export interface PriceUpdateParams {
|
|
3720
|
+
/**
|
|
3721
|
+
* User-specified key/value pairs for the resource. Individual keys can be removed
|
|
3722
|
+
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
3723
|
+
* by setting `metadata` to `null`.
|
|
3724
|
+
*/
|
|
3725
|
+
metadata?: Record<string, string | null> | null;
|
|
3726
|
+
}
|
|
3727
|
+
|
|
3431
3728
|
export interface PriceListParams extends PageParams {}
|
|
3432
3729
|
|
|
3433
3730
|
export interface PriceEvaluateParams {
|
|
@@ -3472,7 +3769,9 @@ export namespace Prices {
|
|
|
3472
3769
|
export import PriceEvaluateResponse = PricesAPI.PriceEvaluateResponse;
|
|
3473
3770
|
export import PricesPage = PricesAPI.PricesPage;
|
|
3474
3771
|
export import PriceCreateParams = PricesAPI.PriceCreateParams;
|
|
3772
|
+
export import PriceUpdateParams = PricesAPI.PriceUpdateParams;
|
|
3475
3773
|
export import PriceListParams = PricesAPI.PriceListParams;
|
|
3476
3774
|
export import PriceEvaluateParams = PricesAPI.PriceEvaluateParams;
|
|
3477
3775
|
export import ExternalPriceID = ExternalPriceIDAPI.ExternalPriceID;
|
|
3776
|
+
export import ExternalPriceIDUpdateParams = ExternalPriceIDAPI.ExternalPriceIDUpdateParams;
|
|
3478
3777
|
}
|