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,5 +1,5 @@
|
|
|
1
|
-
import * as Core from "../../core.js";
|
|
2
1
|
import { APIResource } from "../../resource.js";
|
|
2
|
+
import * as Core from "../../core.js";
|
|
3
3
|
import * as PricesAPI from "./prices.js";
|
|
4
4
|
import * as Shared from "../shared.js";
|
|
5
5
|
import * as ExternalPriceIDAPI from "./external-price-id.js";
|
|
@@ -19,6 +19,13 @@ export declare class Prices extends APIResource {
|
|
|
19
19
|
* price model configurations possible in this endpoint.
|
|
20
20
|
*/
|
|
21
21
|
create(body: PriceCreateParams, options?: Core.RequestOptions): Core.APIPromise<Price>;
|
|
22
|
+
/**
|
|
23
|
+
* This endpoint allows you to update the `metadata` property on a price. If you
|
|
24
|
+
* pass null for the metadata value, it will clear any existing metadata for that
|
|
25
|
+
* price.
|
|
26
|
+
*/
|
|
27
|
+
update(priceId: string, body?: PriceUpdateParams, options?: Core.RequestOptions): Core.APIPromise<Price>;
|
|
28
|
+
update(priceId: string, options?: Core.RequestOptions): Core.APIPromise<Price>;
|
|
22
29
|
/**
|
|
23
30
|
* This endpoint is used to list all add-on prices created using the
|
|
24
31
|
* [price creation endpoint](../reference/create-price).
|
|
@@ -308,7 +315,7 @@ export declare namespace Price {
|
|
|
308
315
|
interface UnitPrice {
|
|
309
316
|
id: string;
|
|
310
317
|
billable_metric: UnitPrice.BillableMetric | null;
|
|
311
|
-
cadence: 'one_time' | 'monthly' | 'quarterly' | 'annual';
|
|
318
|
+
cadence: 'one_time' | 'monthly' | 'quarterly' | 'semi_annual' | 'annual';
|
|
312
319
|
conversion_rate: number | null;
|
|
313
320
|
created_at: string;
|
|
314
321
|
credit_allocation: UnitPrice.CreditAllocation | null;
|
|
@@ -319,6 +326,13 @@ export declare namespace Price {
|
|
|
319
326
|
item: UnitPrice.Item;
|
|
320
327
|
maximum: UnitPrice.Maximum | null;
|
|
321
328
|
maximum_amount: string | null;
|
|
329
|
+
/**
|
|
330
|
+
* User specified key-value pairs for the resource. If not present, this defaults
|
|
331
|
+
* to an empty dictionary. Individual keys can be removed by setting the value to
|
|
332
|
+
* `null`, and the entire metadata mapping can be cleared by setting `metadata` to
|
|
333
|
+
* `null`.
|
|
334
|
+
*/
|
|
335
|
+
metadata: Record<string, string>;
|
|
322
336
|
minimum: UnitPrice.Minimum | null;
|
|
323
337
|
minimum_amount: string | null;
|
|
324
338
|
model_type: 'unit';
|
|
@@ -371,7 +385,7 @@ export declare namespace Price {
|
|
|
371
385
|
interface PackagePrice {
|
|
372
386
|
id: string;
|
|
373
387
|
billable_metric: PackagePrice.BillableMetric | null;
|
|
374
|
-
cadence: 'one_time' | 'monthly' | 'quarterly' | 'annual';
|
|
388
|
+
cadence: 'one_time' | 'monthly' | 'quarterly' | 'semi_annual' | 'annual';
|
|
375
389
|
conversion_rate: number | null;
|
|
376
390
|
created_at: string;
|
|
377
391
|
credit_allocation: PackagePrice.CreditAllocation | null;
|
|
@@ -382,6 +396,13 @@ export declare namespace Price {
|
|
|
382
396
|
item: PackagePrice.Item;
|
|
383
397
|
maximum: PackagePrice.Maximum | null;
|
|
384
398
|
maximum_amount: string | null;
|
|
399
|
+
/**
|
|
400
|
+
* User specified key-value pairs for the resource. If not present, this defaults
|
|
401
|
+
* to an empty dictionary. Individual keys can be removed by setting the value to
|
|
402
|
+
* `null`, and the entire metadata mapping can be cleared by setting `metadata` to
|
|
403
|
+
* `null`.
|
|
404
|
+
*/
|
|
405
|
+
metadata: Record<string, string>;
|
|
385
406
|
minimum: PackagePrice.Minimum | null;
|
|
386
407
|
minimum_amount: string | null;
|
|
387
408
|
model_type: 'package';
|
|
@@ -439,7 +460,7 @@ export declare namespace Price {
|
|
|
439
460
|
interface MatrixPrice {
|
|
440
461
|
id: string;
|
|
441
462
|
billable_metric: MatrixPrice.BillableMetric | null;
|
|
442
|
-
cadence: 'one_time' | 'monthly' | 'quarterly' | 'annual';
|
|
463
|
+
cadence: 'one_time' | 'monthly' | 'quarterly' | 'semi_annual' | 'annual';
|
|
443
464
|
conversion_rate: number | null;
|
|
444
465
|
created_at: string;
|
|
445
466
|
credit_allocation: MatrixPrice.CreditAllocation | null;
|
|
@@ -451,6 +472,13 @@ export declare namespace Price {
|
|
|
451
472
|
matrix_config: MatrixPrice.MatrixConfig;
|
|
452
473
|
maximum: MatrixPrice.Maximum | null;
|
|
453
474
|
maximum_amount: string | null;
|
|
475
|
+
/**
|
|
476
|
+
* User specified key-value pairs for the resource. If not present, this defaults
|
|
477
|
+
* to an empty dictionary. Individual keys can be removed by setting the value to
|
|
478
|
+
* `null`, and the entire metadata mapping can be cleared by setting `metadata` to
|
|
479
|
+
* `null`.
|
|
480
|
+
*/
|
|
481
|
+
metadata: Record<string, string>;
|
|
454
482
|
minimum: MatrixPrice.Minimum | null;
|
|
455
483
|
minimum_amount: string | null;
|
|
456
484
|
model_type: 'matrix';
|
|
@@ -524,7 +552,7 @@ export declare namespace Price {
|
|
|
524
552
|
interface TieredPrice {
|
|
525
553
|
id: string;
|
|
526
554
|
billable_metric: TieredPrice.BillableMetric | null;
|
|
527
|
-
cadence: 'one_time' | 'monthly' | 'quarterly' | 'annual';
|
|
555
|
+
cadence: 'one_time' | 'monthly' | 'quarterly' | 'semi_annual' | 'annual';
|
|
528
556
|
conversion_rate: number | null;
|
|
529
557
|
created_at: string;
|
|
530
558
|
credit_allocation: TieredPrice.CreditAllocation | null;
|
|
@@ -535,6 +563,13 @@ export declare namespace Price {
|
|
|
535
563
|
item: TieredPrice.Item;
|
|
536
564
|
maximum: TieredPrice.Maximum | null;
|
|
537
565
|
maximum_amount: string | null;
|
|
566
|
+
/**
|
|
567
|
+
* User specified key-value pairs for the resource. If not present, this defaults
|
|
568
|
+
* to an empty dictionary. Individual keys can be removed by setting the value to
|
|
569
|
+
* `null`, and the entire metadata mapping can be cleared by setting `metadata` to
|
|
570
|
+
* `null`.
|
|
571
|
+
*/
|
|
572
|
+
metadata: Record<string, string>;
|
|
538
573
|
minimum: TieredPrice.Minimum | null;
|
|
539
574
|
minimum_amount: string | null;
|
|
540
575
|
model_type: 'tiered';
|
|
@@ -603,7 +638,7 @@ export declare namespace Price {
|
|
|
603
638
|
interface TieredBpsPrice {
|
|
604
639
|
id: string;
|
|
605
640
|
billable_metric: TieredBpsPrice.BillableMetric | null;
|
|
606
|
-
cadence: 'one_time' | 'monthly' | 'quarterly' | 'annual';
|
|
641
|
+
cadence: 'one_time' | 'monthly' | 'quarterly' | 'semi_annual' | 'annual';
|
|
607
642
|
conversion_rate: number | null;
|
|
608
643
|
created_at: string;
|
|
609
644
|
credit_allocation: TieredBpsPrice.CreditAllocation | null;
|
|
@@ -614,6 +649,13 @@ export declare namespace Price {
|
|
|
614
649
|
item: TieredBpsPrice.Item;
|
|
615
650
|
maximum: TieredBpsPrice.Maximum | null;
|
|
616
651
|
maximum_amount: string | null;
|
|
652
|
+
/**
|
|
653
|
+
* User specified key-value pairs for the resource. If not present, this defaults
|
|
654
|
+
* to an empty dictionary. Individual keys can be removed by setting the value to
|
|
655
|
+
* `null`, and the entire metadata mapping can be cleared by setting `metadata` to
|
|
656
|
+
* `null`.
|
|
657
|
+
*/
|
|
658
|
+
metadata: Record<string, string>;
|
|
617
659
|
minimum: TieredBpsPrice.Minimum | null;
|
|
618
660
|
minimum_amount: string | null;
|
|
619
661
|
model_type: 'tiered_bps';
|
|
@@ -688,7 +730,7 @@ export declare namespace Price {
|
|
|
688
730
|
id: string;
|
|
689
731
|
billable_metric: BpsPrice.BillableMetric | null;
|
|
690
732
|
bps_config: BpsPrice.BpsConfig;
|
|
691
|
-
cadence: 'one_time' | 'monthly' | 'quarterly' | 'annual';
|
|
733
|
+
cadence: 'one_time' | 'monthly' | 'quarterly' | 'semi_annual' | 'annual';
|
|
692
734
|
conversion_rate: number | null;
|
|
693
735
|
created_at: string;
|
|
694
736
|
credit_allocation: BpsPrice.CreditAllocation | null;
|
|
@@ -699,6 +741,13 @@ export declare namespace Price {
|
|
|
699
741
|
item: BpsPrice.Item;
|
|
700
742
|
maximum: BpsPrice.Maximum | null;
|
|
701
743
|
maximum_amount: string | null;
|
|
744
|
+
/**
|
|
745
|
+
* User specified key-value pairs for the resource. If not present, this defaults
|
|
746
|
+
* to an empty dictionary. Individual keys can be removed by setting the value to
|
|
747
|
+
* `null`, and the entire metadata mapping can be cleared by setting `metadata` to
|
|
748
|
+
* `null`.
|
|
749
|
+
*/
|
|
750
|
+
metadata: Record<string, string>;
|
|
702
751
|
minimum: BpsPrice.Minimum | null;
|
|
703
752
|
minimum_amount: string | null;
|
|
704
753
|
model_type: 'bps';
|
|
@@ -755,7 +804,7 @@ export declare namespace Price {
|
|
|
755
804
|
id: string;
|
|
756
805
|
billable_metric: BulkBpsPrice.BillableMetric | null;
|
|
757
806
|
bulk_bps_config: BulkBpsPrice.BulkBpsConfig;
|
|
758
|
-
cadence: 'one_time' | 'monthly' | 'quarterly' | 'annual';
|
|
807
|
+
cadence: 'one_time' | 'monthly' | 'quarterly' | 'semi_annual' | 'annual';
|
|
759
808
|
conversion_rate: number | null;
|
|
760
809
|
created_at: string;
|
|
761
810
|
credit_allocation: BulkBpsPrice.CreditAllocation | null;
|
|
@@ -766,6 +815,13 @@ export declare namespace Price {
|
|
|
766
815
|
item: BulkBpsPrice.Item;
|
|
767
816
|
maximum: BulkBpsPrice.Maximum | null;
|
|
768
817
|
maximum_amount: string | null;
|
|
818
|
+
/**
|
|
819
|
+
* User specified key-value pairs for the resource. If not present, this defaults
|
|
820
|
+
* to an empty dictionary. Individual keys can be removed by setting the value to
|
|
821
|
+
* `null`, and the entire metadata mapping can be cleared by setting `metadata` to
|
|
822
|
+
* `null`.
|
|
823
|
+
*/
|
|
824
|
+
metadata: Record<string, string>;
|
|
769
825
|
minimum: BulkBpsPrice.Minimum | null;
|
|
770
826
|
minimum_amount: string | null;
|
|
771
827
|
model_type: 'bulk_bps';
|
|
@@ -835,7 +891,7 @@ export declare namespace Price {
|
|
|
835
891
|
id: string;
|
|
836
892
|
billable_metric: BulkPrice.BillableMetric | null;
|
|
837
893
|
bulk_config: BulkPrice.BulkConfig;
|
|
838
|
-
cadence: 'one_time' | 'monthly' | 'quarterly' | 'annual';
|
|
894
|
+
cadence: 'one_time' | 'monthly' | 'quarterly' | 'semi_annual' | 'annual';
|
|
839
895
|
conversion_rate: number | null;
|
|
840
896
|
created_at: string;
|
|
841
897
|
credit_allocation: BulkPrice.CreditAllocation | null;
|
|
@@ -846,6 +902,13 @@ export declare namespace Price {
|
|
|
846
902
|
item: BulkPrice.Item;
|
|
847
903
|
maximum: BulkPrice.Maximum | null;
|
|
848
904
|
maximum_amount: string | null;
|
|
905
|
+
/**
|
|
906
|
+
* User specified key-value pairs for the resource. If not present, this defaults
|
|
907
|
+
* to an empty dictionary. Individual keys can be removed by setting the value to
|
|
908
|
+
* `null`, and the entire metadata mapping can be cleared by setting `metadata` to
|
|
909
|
+
* `null`.
|
|
910
|
+
*/
|
|
911
|
+
metadata: Record<string, string>;
|
|
849
912
|
minimum: BulkPrice.Minimum | null;
|
|
850
913
|
minimum_amount: string | null;
|
|
851
914
|
model_type: 'bulk';
|
|
@@ -909,7 +972,7 @@ export declare namespace Price {
|
|
|
909
972
|
interface ThresholdTotalAmountPrice {
|
|
910
973
|
id: string;
|
|
911
974
|
billable_metric: ThresholdTotalAmountPrice.BillableMetric | null;
|
|
912
|
-
cadence: 'one_time' | 'monthly' | 'quarterly' | 'annual';
|
|
975
|
+
cadence: 'one_time' | 'monthly' | 'quarterly' | 'semi_annual' | 'annual';
|
|
913
976
|
conversion_rate: number | null;
|
|
914
977
|
created_at: string;
|
|
915
978
|
credit_allocation: ThresholdTotalAmountPrice.CreditAllocation | null;
|
|
@@ -920,6 +983,13 @@ export declare namespace Price {
|
|
|
920
983
|
item: ThresholdTotalAmountPrice.Item;
|
|
921
984
|
maximum: ThresholdTotalAmountPrice.Maximum | null;
|
|
922
985
|
maximum_amount: string | null;
|
|
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>;
|
|
923
993
|
minimum: ThresholdTotalAmountPrice.Minimum | null;
|
|
924
994
|
minimum_amount: string | null;
|
|
925
995
|
model_type: 'threshold_total_amount';
|
|
@@ -966,7 +1036,7 @@ export declare namespace Price {
|
|
|
966
1036
|
interface TieredPackagePrice {
|
|
967
1037
|
id: string;
|
|
968
1038
|
billable_metric: TieredPackagePrice.BillableMetric | null;
|
|
969
|
-
cadence: 'one_time' | 'monthly' | 'quarterly' | 'annual';
|
|
1039
|
+
cadence: 'one_time' | 'monthly' | 'quarterly' | 'semi_annual' | 'annual';
|
|
970
1040
|
conversion_rate: number | null;
|
|
971
1041
|
created_at: string;
|
|
972
1042
|
credit_allocation: TieredPackagePrice.CreditAllocation | null;
|
|
@@ -977,6 +1047,13 @@ export declare namespace Price {
|
|
|
977
1047
|
item: TieredPackagePrice.Item;
|
|
978
1048
|
maximum: TieredPackagePrice.Maximum | null;
|
|
979
1049
|
maximum_amount: string | null;
|
|
1050
|
+
/**
|
|
1051
|
+
* User specified key-value pairs for the resource. If not present, this defaults
|
|
1052
|
+
* to an empty dictionary. Individual keys can be removed by setting the value to
|
|
1053
|
+
* `null`, and the entire metadata mapping can be cleared by setting `metadata` to
|
|
1054
|
+
* `null`.
|
|
1055
|
+
*/
|
|
1056
|
+
metadata: Record<string, string>;
|
|
980
1057
|
minimum: TieredPackagePrice.Minimum | null;
|
|
981
1058
|
minimum_amount: string | null;
|
|
982
1059
|
model_type: 'tiered_package';
|
|
@@ -1023,7 +1100,7 @@ export declare namespace Price {
|
|
|
1023
1100
|
interface GroupedTieredPrice {
|
|
1024
1101
|
id: string;
|
|
1025
1102
|
billable_metric: GroupedTieredPrice.BillableMetric | null;
|
|
1026
|
-
cadence: 'one_time' | 'monthly' | 'quarterly' | 'annual';
|
|
1103
|
+
cadence: 'one_time' | 'monthly' | 'quarterly' | 'semi_annual' | 'annual';
|
|
1027
1104
|
conversion_rate: number | null;
|
|
1028
1105
|
created_at: string;
|
|
1029
1106
|
credit_allocation: GroupedTieredPrice.CreditAllocation | null;
|
|
@@ -1035,6 +1112,13 @@ export declare namespace Price {
|
|
|
1035
1112
|
item: GroupedTieredPrice.Item;
|
|
1036
1113
|
maximum: GroupedTieredPrice.Maximum | null;
|
|
1037
1114
|
maximum_amount: string | null;
|
|
1115
|
+
/**
|
|
1116
|
+
* User specified key-value pairs for the resource. If not present, this defaults
|
|
1117
|
+
* to an empty dictionary. Individual keys can be removed by setting the value to
|
|
1118
|
+
* `null`, and the entire metadata mapping can be cleared by setting `metadata` to
|
|
1119
|
+
* `null`.
|
|
1120
|
+
*/
|
|
1121
|
+
metadata: Record<string, string>;
|
|
1038
1122
|
minimum: GroupedTieredPrice.Minimum | null;
|
|
1039
1123
|
minimum_amount: string | null;
|
|
1040
1124
|
model_type: 'grouped_tiered';
|
|
@@ -1080,7 +1164,7 @@ export declare namespace Price {
|
|
|
1080
1164
|
interface TieredWithMinimumPrice {
|
|
1081
1165
|
id: string;
|
|
1082
1166
|
billable_metric: TieredWithMinimumPrice.BillableMetric | null;
|
|
1083
|
-
cadence: 'one_time' | 'monthly' | 'quarterly' | 'annual';
|
|
1167
|
+
cadence: 'one_time' | 'monthly' | 'quarterly' | 'semi_annual' | 'annual';
|
|
1084
1168
|
conversion_rate: number | null;
|
|
1085
1169
|
created_at: string;
|
|
1086
1170
|
credit_allocation: TieredWithMinimumPrice.CreditAllocation | null;
|
|
@@ -1091,6 +1175,13 @@ export declare namespace Price {
|
|
|
1091
1175
|
item: TieredWithMinimumPrice.Item;
|
|
1092
1176
|
maximum: TieredWithMinimumPrice.Maximum | null;
|
|
1093
1177
|
maximum_amount: string | null;
|
|
1178
|
+
/**
|
|
1179
|
+
* User specified key-value pairs for the resource. If not present, this defaults
|
|
1180
|
+
* to an empty dictionary. Individual keys can be removed by setting the value to
|
|
1181
|
+
* `null`, and the entire metadata mapping can be cleared by setting `metadata` to
|
|
1182
|
+
* `null`.
|
|
1183
|
+
*/
|
|
1184
|
+
metadata: Record<string, string>;
|
|
1094
1185
|
minimum: TieredWithMinimumPrice.Minimum | null;
|
|
1095
1186
|
minimum_amount: string | null;
|
|
1096
1187
|
model_type: 'tiered_with_minimum';
|
|
@@ -1137,7 +1228,7 @@ export declare namespace Price {
|
|
|
1137
1228
|
interface TieredPackageWithMinimumPrice {
|
|
1138
1229
|
id: string;
|
|
1139
1230
|
billable_metric: TieredPackageWithMinimumPrice.BillableMetric | null;
|
|
1140
|
-
cadence: 'one_time' | 'monthly' | 'quarterly' | 'annual';
|
|
1231
|
+
cadence: 'one_time' | 'monthly' | 'quarterly' | 'semi_annual' | 'annual';
|
|
1141
1232
|
conversion_rate: number | null;
|
|
1142
1233
|
created_at: string;
|
|
1143
1234
|
credit_allocation: TieredPackageWithMinimumPrice.CreditAllocation | null;
|
|
@@ -1148,6 +1239,13 @@ export declare namespace Price {
|
|
|
1148
1239
|
item: TieredPackageWithMinimumPrice.Item;
|
|
1149
1240
|
maximum: TieredPackageWithMinimumPrice.Maximum | null;
|
|
1150
1241
|
maximum_amount: string | null;
|
|
1242
|
+
/**
|
|
1243
|
+
* User specified key-value pairs for the resource. If not present, this defaults
|
|
1244
|
+
* to an empty dictionary. Individual keys can be removed by setting the value to
|
|
1245
|
+
* `null`, and the entire metadata mapping can be cleared by setting `metadata` to
|
|
1246
|
+
* `null`.
|
|
1247
|
+
*/
|
|
1248
|
+
metadata: Record<string, string>;
|
|
1151
1249
|
minimum: TieredPackageWithMinimumPrice.Minimum | null;
|
|
1152
1250
|
minimum_amount: string | null;
|
|
1153
1251
|
model_type: 'tiered_package_with_minimum';
|
|
@@ -1194,7 +1292,7 @@ export declare namespace Price {
|
|
|
1194
1292
|
interface PackageWithAllocationPrice {
|
|
1195
1293
|
id: string;
|
|
1196
1294
|
billable_metric: PackageWithAllocationPrice.BillableMetric | null;
|
|
1197
|
-
cadence: 'one_time' | 'monthly' | 'quarterly' | 'annual';
|
|
1295
|
+
cadence: 'one_time' | 'monthly' | 'quarterly' | 'semi_annual' | 'annual';
|
|
1198
1296
|
conversion_rate: number | null;
|
|
1199
1297
|
created_at: string;
|
|
1200
1298
|
credit_allocation: PackageWithAllocationPrice.CreditAllocation | null;
|
|
@@ -1205,6 +1303,13 @@ export declare namespace Price {
|
|
|
1205
1303
|
item: PackageWithAllocationPrice.Item;
|
|
1206
1304
|
maximum: PackageWithAllocationPrice.Maximum | null;
|
|
1207
1305
|
maximum_amount: string | null;
|
|
1306
|
+
/**
|
|
1307
|
+
* User specified key-value pairs for the resource. If not present, this defaults
|
|
1308
|
+
* to an empty dictionary. Individual keys can be removed by setting the value to
|
|
1309
|
+
* `null`, and the entire metadata mapping can be cleared by setting `metadata` to
|
|
1310
|
+
* `null`.
|
|
1311
|
+
*/
|
|
1312
|
+
metadata: Record<string, string>;
|
|
1208
1313
|
minimum: PackageWithAllocationPrice.Minimum | null;
|
|
1209
1314
|
minimum_amount: string | null;
|
|
1210
1315
|
model_type: 'package_with_allocation';
|
|
@@ -1251,7 +1356,7 @@ export declare namespace Price {
|
|
|
1251
1356
|
interface UnitWithPercentPrice {
|
|
1252
1357
|
id: string;
|
|
1253
1358
|
billable_metric: UnitWithPercentPrice.BillableMetric | null;
|
|
1254
|
-
cadence: 'one_time' | 'monthly' | 'quarterly' | 'annual';
|
|
1359
|
+
cadence: 'one_time' | 'monthly' | 'quarterly' | 'semi_annual' | 'annual';
|
|
1255
1360
|
conversion_rate: number | null;
|
|
1256
1361
|
created_at: string;
|
|
1257
1362
|
credit_allocation: UnitWithPercentPrice.CreditAllocation | null;
|
|
@@ -1262,6 +1367,13 @@ export declare namespace Price {
|
|
|
1262
1367
|
item: UnitWithPercentPrice.Item;
|
|
1263
1368
|
maximum: UnitWithPercentPrice.Maximum | null;
|
|
1264
1369
|
maximum_amount: string | null;
|
|
1370
|
+
/**
|
|
1371
|
+
* User specified key-value pairs for the resource. If not present, this defaults
|
|
1372
|
+
* to an empty dictionary. Individual keys can be removed by setting the value to
|
|
1373
|
+
* `null`, and the entire metadata mapping can be cleared by setting `metadata` to
|
|
1374
|
+
* `null`.
|
|
1375
|
+
*/
|
|
1376
|
+
metadata: Record<string, string>;
|
|
1265
1377
|
minimum: UnitWithPercentPrice.Minimum | null;
|
|
1266
1378
|
minimum_amount: string | null;
|
|
1267
1379
|
model_type: 'unit_with_percent';
|
|
@@ -1308,7 +1420,7 @@ export declare namespace Price {
|
|
|
1308
1420
|
interface MatrixWithAllocationPrice {
|
|
1309
1421
|
id: string;
|
|
1310
1422
|
billable_metric: MatrixWithAllocationPrice.BillableMetric | null;
|
|
1311
|
-
cadence: 'one_time' | 'monthly' | 'quarterly' | 'annual';
|
|
1423
|
+
cadence: 'one_time' | 'monthly' | 'quarterly' | 'semi_annual' | 'annual';
|
|
1312
1424
|
conversion_rate: number | null;
|
|
1313
1425
|
created_at: string;
|
|
1314
1426
|
credit_allocation: MatrixWithAllocationPrice.CreditAllocation | null;
|
|
@@ -1320,6 +1432,13 @@ export declare namespace Price {
|
|
|
1320
1432
|
matrix_with_allocation_config: MatrixWithAllocationPrice.MatrixWithAllocationConfig;
|
|
1321
1433
|
maximum: MatrixWithAllocationPrice.Maximum | null;
|
|
1322
1434
|
maximum_amount: string | null;
|
|
1435
|
+
/**
|
|
1436
|
+
* User specified key-value pairs for the resource. If not present, this defaults
|
|
1437
|
+
* to an empty dictionary. Individual keys can be removed by setting the value to
|
|
1438
|
+
* `null`, and the entire metadata mapping can be cleared by setting `metadata` to
|
|
1439
|
+
* `null`.
|
|
1440
|
+
*/
|
|
1441
|
+
metadata: Record<string, string>;
|
|
1323
1442
|
minimum: MatrixWithAllocationPrice.Minimum | null;
|
|
1324
1443
|
minimum_amount: string | null;
|
|
1325
1444
|
model_type: 'matrix_with_allocation';
|
|
@@ -1397,7 +1516,7 @@ export declare namespace Price {
|
|
|
1397
1516
|
interface TieredWithProrationPrice {
|
|
1398
1517
|
id: string;
|
|
1399
1518
|
billable_metric: TieredWithProrationPrice.BillableMetric | null;
|
|
1400
|
-
cadence: 'one_time' | 'monthly' | 'quarterly' | 'annual';
|
|
1519
|
+
cadence: 'one_time' | 'monthly' | 'quarterly' | 'semi_annual' | 'annual';
|
|
1401
1520
|
conversion_rate: number | null;
|
|
1402
1521
|
created_at: string;
|
|
1403
1522
|
credit_allocation: TieredWithProrationPrice.CreditAllocation | null;
|
|
@@ -1408,6 +1527,13 @@ export declare namespace Price {
|
|
|
1408
1527
|
item: TieredWithProrationPrice.Item;
|
|
1409
1528
|
maximum: TieredWithProrationPrice.Maximum | null;
|
|
1410
1529
|
maximum_amount: string | null;
|
|
1530
|
+
/**
|
|
1531
|
+
* User specified key-value pairs for the resource. If not present, this defaults
|
|
1532
|
+
* to an empty dictionary. Individual keys can be removed by setting the value to
|
|
1533
|
+
* `null`, and the entire metadata mapping can be cleared by setting `metadata` to
|
|
1534
|
+
* `null`.
|
|
1535
|
+
*/
|
|
1536
|
+
metadata: Record<string, string>;
|
|
1411
1537
|
minimum: TieredWithProrationPrice.Minimum | null;
|
|
1412
1538
|
minimum_amount: string | null;
|
|
1413
1539
|
model_type: 'tiered_with_proration';
|
|
@@ -1454,7 +1580,7 @@ export declare namespace Price {
|
|
|
1454
1580
|
interface UnitWithProrationPrice {
|
|
1455
1581
|
id: string;
|
|
1456
1582
|
billable_metric: UnitWithProrationPrice.BillableMetric | null;
|
|
1457
|
-
cadence: 'one_time' | 'monthly' | 'quarterly' | 'annual';
|
|
1583
|
+
cadence: 'one_time' | 'monthly' | 'quarterly' | 'semi_annual' | 'annual';
|
|
1458
1584
|
conversion_rate: number | null;
|
|
1459
1585
|
created_at: string;
|
|
1460
1586
|
credit_allocation: UnitWithProrationPrice.CreditAllocation | null;
|
|
@@ -1465,6 +1591,13 @@ export declare namespace Price {
|
|
|
1465
1591
|
item: UnitWithProrationPrice.Item;
|
|
1466
1592
|
maximum: UnitWithProrationPrice.Maximum | null;
|
|
1467
1593
|
maximum_amount: string | null;
|
|
1594
|
+
/**
|
|
1595
|
+
* User specified key-value pairs for the resource. If not present, this defaults
|
|
1596
|
+
* to an empty dictionary. Individual keys can be removed by setting the value to
|
|
1597
|
+
* `null`, and the entire metadata mapping can be cleared by setting `metadata` to
|
|
1598
|
+
* `null`.
|
|
1599
|
+
*/
|
|
1600
|
+
metadata: Record<string, string>;
|
|
1468
1601
|
minimum: UnitWithProrationPrice.Minimum | null;
|
|
1469
1602
|
minimum_amount: string | null;
|
|
1470
1603
|
model_type: 'unit_with_proration';
|
|
@@ -1518,7 +1651,7 @@ export declare namespace PriceCreateParams {
|
|
|
1518
1651
|
/**
|
|
1519
1652
|
* The cadence to bill for this price on.
|
|
1520
1653
|
*/
|
|
1521
|
-
cadence: 'annual' | 'monthly' | 'quarterly' | 'one_time';
|
|
1654
|
+
cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time';
|
|
1522
1655
|
/**
|
|
1523
1656
|
* An ISO 4217 currency string for which this price is billed in.
|
|
1524
1657
|
*/
|
|
@@ -1560,6 +1693,12 @@ export declare namespace PriceCreateParams {
|
|
|
1560
1693
|
* The property used to group this price on an invoice
|
|
1561
1694
|
*/
|
|
1562
1695
|
invoice_grouping_key?: string | null;
|
|
1696
|
+
/**
|
|
1697
|
+
* User-specified key/value pairs for the resource. Individual keys can be removed
|
|
1698
|
+
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
1699
|
+
* by setting `metadata` to `null`.
|
|
1700
|
+
*/
|
|
1701
|
+
metadata?: Record<string, string | null> | null;
|
|
1563
1702
|
}
|
|
1564
1703
|
namespace NewFloatingUnitPrice {
|
|
1565
1704
|
interface UnitConfig {
|
|
@@ -1573,7 +1712,7 @@ export declare namespace PriceCreateParams {
|
|
|
1573
1712
|
/**
|
|
1574
1713
|
* The cadence to bill for this price on.
|
|
1575
1714
|
*/
|
|
1576
|
-
cadence: 'annual' | 'monthly' | 'quarterly' | 'one_time';
|
|
1715
|
+
cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time';
|
|
1577
1716
|
/**
|
|
1578
1717
|
* An ISO 4217 currency string for which this price is billed in.
|
|
1579
1718
|
*/
|
|
@@ -1615,6 +1754,12 @@ export declare namespace PriceCreateParams {
|
|
|
1615
1754
|
* The property used to group this price on an invoice
|
|
1616
1755
|
*/
|
|
1617
1756
|
invoice_grouping_key?: string | null;
|
|
1757
|
+
/**
|
|
1758
|
+
* User-specified key/value pairs for the resource. Individual keys can be removed
|
|
1759
|
+
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
1760
|
+
* by setting `metadata` to `null`.
|
|
1761
|
+
*/
|
|
1762
|
+
metadata?: Record<string, string | null> | null;
|
|
1618
1763
|
}
|
|
1619
1764
|
namespace NewFloatingPackagePrice {
|
|
1620
1765
|
interface PackageConfig {
|
|
@@ -1633,7 +1778,7 @@ export declare namespace PriceCreateParams {
|
|
|
1633
1778
|
/**
|
|
1634
1779
|
* The cadence to bill for this price on.
|
|
1635
1780
|
*/
|
|
1636
|
-
cadence: 'annual' | 'monthly' | 'quarterly' | 'one_time';
|
|
1781
|
+
cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time';
|
|
1637
1782
|
/**
|
|
1638
1783
|
* An ISO 4217 currency string for which this price is billed in.
|
|
1639
1784
|
*/
|
|
@@ -1675,6 +1820,12 @@ export declare namespace PriceCreateParams {
|
|
|
1675
1820
|
* The property used to group this price on an invoice
|
|
1676
1821
|
*/
|
|
1677
1822
|
invoice_grouping_key?: string | null;
|
|
1823
|
+
/**
|
|
1824
|
+
* User-specified key/value pairs for the resource. Individual keys can be removed
|
|
1825
|
+
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
1826
|
+
* by setting `metadata` to `null`.
|
|
1827
|
+
*/
|
|
1828
|
+
metadata?: Record<string, string | null> | null;
|
|
1678
1829
|
}
|
|
1679
1830
|
namespace NewFloatingMatrixPrice {
|
|
1680
1831
|
interface MatrixConfig {
|
|
@@ -1710,7 +1861,7 @@ export declare namespace PriceCreateParams {
|
|
|
1710
1861
|
/**
|
|
1711
1862
|
* The cadence to bill for this price on.
|
|
1712
1863
|
*/
|
|
1713
|
-
cadence: 'annual' | 'monthly' | 'quarterly' | 'one_time';
|
|
1864
|
+
cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time';
|
|
1714
1865
|
/**
|
|
1715
1866
|
* An ISO 4217 currency string for which this price is billed in.
|
|
1716
1867
|
*/
|
|
@@ -1752,6 +1903,12 @@ export declare namespace PriceCreateParams {
|
|
|
1752
1903
|
* The property used to group this price on an invoice
|
|
1753
1904
|
*/
|
|
1754
1905
|
invoice_grouping_key?: string | null;
|
|
1906
|
+
/**
|
|
1907
|
+
* User-specified key/value pairs for the resource. Individual keys can be removed
|
|
1908
|
+
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
1909
|
+
* by setting `metadata` to `null`.
|
|
1910
|
+
*/
|
|
1911
|
+
metadata?: Record<string, string | null> | null;
|
|
1755
1912
|
}
|
|
1756
1913
|
namespace NewFloatingMatrixWithAllocationPrice {
|
|
1757
1914
|
interface MatrixWithAllocationConfig {
|
|
@@ -1791,7 +1948,7 @@ export declare namespace PriceCreateParams {
|
|
|
1791
1948
|
/**
|
|
1792
1949
|
* The cadence to bill for this price on.
|
|
1793
1950
|
*/
|
|
1794
|
-
cadence: 'annual' | 'monthly' | 'quarterly' | 'one_time';
|
|
1951
|
+
cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time';
|
|
1795
1952
|
/**
|
|
1796
1953
|
* An ISO 4217 currency string for which this price is billed in.
|
|
1797
1954
|
*/
|
|
@@ -1833,6 +1990,12 @@ export declare namespace PriceCreateParams {
|
|
|
1833
1990
|
* The property used to group this price on an invoice
|
|
1834
1991
|
*/
|
|
1835
1992
|
invoice_grouping_key?: string | null;
|
|
1993
|
+
/**
|
|
1994
|
+
* User-specified key/value pairs for the resource. Individual keys can be removed
|
|
1995
|
+
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
1996
|
+
* by setting `metadata` to `null`.
|
|
1997
|
+
*/
|
|
1998
|
+
metadata?: Record<string, string | null> | null;
|
|
1836
1999
|
}
|
|
1837
2000
|
namespace NewFloatingTieredPrice {
|
|
1838
2001
|
interface TieredConfig {
|
|
@@ -1862,7 +2025,7 @@ export declare namespace PriceCreateParams {
|
|
|
1862
2025
|
/**
|
|
1863
2026
|
* The cadence to bill for this price on.
|
|
1864
2027
|
*/
|
|
1865
|
-
cadence: 'annual' | 'monthly' | 'quarterly' | 'one_time';
|
|
2028
|
+
cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time';
|
|
1866
2029
|
/**
|
|
1867
2030
|
* An ISO 4217 currency string for which this price is billed in.
|
|
1868
2031
|
*/
|
|
@@ -1904,6 +2067,12 @@ export declare namespace PriceCreateParams {
|
|
|
1904
2067
|
* The property used to group this price on an invoice
|
|
1905
2068
|
*/
|
|
1906
2069
|
invoice_grouping_key?: string | null;
|
|
2070
|
+
/**
|
|
2071
|
+
* User-specified key/value pairs for the resource. Individual keys can be removed
|
|
2072
|
+
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
2073
|
+
* by setting `metadata` to `null`.
|
|
2074
|
+
*/
|
|
2075
|
+
metadata?: Record<string, string | null> | null;
|
|
1907
2076
|
}
|
|
1908
2077
|
namespace NewFloatingTieredBpsPrice {
|
|
1909
2078
|
interface TieredBpsConfig {
|
|
@@ -1939,7 +2108,7 @@ export declare namespace PriceCreateParams {
|
|
|
1939
2108
|
/**
|
|
1940
2109
|
* The cadence to bill for this price on.
|
|
1941
2110
|
*/
|
|
1942
|
-
cadence: 'annual' | 'monthly' | 'quarterly' | 'one_time';
|
|
2111
|
+
cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time';
|
|
1943
2112
|
/**
|
|
1944
2113
|
* An ISO 4217 currency string for which this price is billed in.
|
|
1945
2114
|
*/
|
|
@@ -1980,6 +2149,12 @@ export declare namespace PriceCreateParams {
|
|
|
1980
2149
|
* The property used to group this price on an invoice
|
|
1981
2150
|
*/
|
|
1982
2151
|
invoice_grouping_key?: string | null;
|
|
2152
|
+
/**
|
|
2153
|
+
* User-specified key/value pairs for the resource. Individual keys can be removed
|
|
2154
|
+
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
2155
|
+
* by setting `metadata` to `null`.
|
|
2156
|
+
*/
|
|
2157
|
+
metadata?: Record<string, string | null> | null;
|
|
1983
2158
|
}
|
|
1984
2159
|
namespace NewFloatingBpsPrice {
|
|
1985
2160
|
interface BpsConfig {
|
|
@@ -1998,7 +2173,7 @@ export declare namespace PriceCreateParams {
|
|
|
1998
2173
|
/**
|
|
1999
2174
|
* The cadence to bill for this price on.
|
|
2000
2175
|
*/
|
|
2001
|
-
cadence: 'annual' | 'monthly' | 'quarterly' | 'one_time';
|
|
2176
|
+
cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time';
|
|
2002
2177
|
/**
|
|
2003
2178
|
* An ISO 4217 currency string for which this price is billed in.
|
|
2004
2179
|
*/
|
|
@@ -2039,6 +2214,12 @@ export declare namespace PriceCreateParams {
|
|
|
2039
2214
|
* The property used to group this price on an invoice
|
|
2040
2215
|
*/
|
|
2041
2216
|
invoice_grouping_key?: string | null;
|
|
2217
|
+
/**
|
|
2218
|
+
* User-specified key/value pairs for the resource. Individual keys can be removed
|
|
2219
|
+
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
2220
|
+
* by setting `metadata` to `null`.
|
|
2221
|
+
*/
|
|
2222
|
+
metadata?: Record<string, string | null> | null;
|
|
2042
2223
|
}
|
|
2043
2224
|
namespace NewFloatingBulkBpsPrice {
|
|
2044
2225
|
interface BulkBpsConfig {
|
|
@@ -2070,7 +2251,7 @@ export declare namespace PriceCreateParams {
|
|
|
2070
2251
|
/**
|
|
2071
2252
|
* The cadence to bill for this price on.
|
|
2072
2253
|
*/
|
|
2073
|
-
cadence: 'annual' | 'monthly' | 'quarterly' | 'one_time';
|
|
2254
|
+
cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time';
|
|
2074
2255
|
/**
|
|
2075
2256
|
* An ISO 4217 currency string for which this price is billed in.
|
|
2076
2257
|
*/
|
|
@@ -2111,6 +2292,12 @@ export declare namespace PriceCreateParams {
|
|
|
2111
2292
|
* The property used to group this price on an invoice
|
|
2112
2293
|
*/
|
|
2113
2294
|
invoice_grouping_key?: string | null;
|
|
2295
|
+
/**
|
|
2296
|
+
* User-specified key/value pairs for the resource. Individual keys can be removed
|
|
2297
|
+
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
2298
|
+
* by setting `metadata` to `null`.
|
|
2299
|
+
*/
|
|
2300
|
+
metadata?: Record<string, string | null> | null;
|
|
2114
2301
|
}
|
|
2115
2302
|
namespace NewFloatingBulkPrice {
|
|
2116
2303
|
interface BulkConfig {
|
|
@@ -2136,7 +2323,7 @@ export declare namespace PriceCreateParams {
|
|
|
2136
2323
|
/**
|
|
2137
2324
|
* The cadence to bill for this price on.
|
|
2138
2325
|
*/
|
|
2139
|
-
cadence: 'annual' | 'monthly' | 'quarterly' | 'one_time';
|
|
2326
|
+
cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time';
|
|
2140
2327
|
/**
|
|
2141
2328
|
* An ISO 4217 currency string for which this price is billed in.
|
|
2142
2329
|
*/
|
|
@@ -2178,12 +2365,18 @@ export declare namespace PriceCreateParams {
|
|
|
2178
2365
|
* The property used to group this price on an invoice
|
|
2179
2366
|
*/
|
|
2180
2367
|
invoice_grouping_key?: string | null;
|
|
2368
|
+
/**
|
|
2369
|
+
* User-specified key/value pairs for the resource. Individual keys can be removed
|
|
2370
|
+
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
2371
|
+
* by setting `metadata` to `null`.
|
|
2372
|
+
*/
|
|
2373
|
+
metadata?: Record<string, string | null> | null;
|
|
2181
2374
|
}
|
|
2182
2375
|
interface NewFloatingTieredPackagePrice {
|
|
2183
2376
|
/**
|
|
2184
2377
|
* The cadence to bill for this price on.
|
|
2185
2378
|
*/
|
|
2186
|
-
cadence: 'annual' | 'monthly' | 'quarterly' | 'one_time';
|
|
2379
|
+
cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time';
|
|
2187
2380
|
/**
|
|
2188
2381
|
* An ISO 4217 currency string for which this price is billed in.
|
|
2189
2382
|
*/
|
|
@@ -2225,12 +2418,18 @@ export declare namespace PriceCreateParams {
|
|
|
2225
2418
|
* The property used to group this price on an invoice
|
|
2226
2419
|
*/
|
|
2227
2420
|
invoice_grouping_key?: string | null;
|
|
2421
|
+
/**
|
|
2422
|
+
* User-specified key/value pairs for the resource. Individual keys can be removed
|
|
2423
|
+
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
2424
|
+
* by setting `metadata` to `null`.
|
|
2425
|
+
*/
|
|
2426
|
+
metadata?: Record<string, string | null> | null;
|
|
2228
2427
|
}
|
|
2229
2428
|
interface NewFloatingGroupedTieredPrice {
|
|
2230
2429
|
/**
|
|
2231
2430
|
* The cadence to bill for this price on.
|
|
2232
2431
|
*/
|
|
2233
|
-
cadence: 'annual' | 'monthly' | 'quarterly' | 'one_time';
|
|
2432
|
+
cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time';
|
|
2234
2433
|
/**
|
|
2235
2434
|
* An ISO 4217 currency string for which this price is billed in.
|
|
2236
2435
|
*/
|
|
@@ -2272,12 +2471,18 @@ export declare namespace PriceCreateParams {
|
|
|
2272
2471
|
* The property used to group this price on an invoice
|
|
2273
2472
|
*/
|
|
2274
2473
|
invoice_grouping_key?: string | null;
|
|
2474
|
+
/**
|
|
2475
|
+
* User-specified key/value pairs for the resource. Individual keys can be removed
|
|
2476
|
+
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
2477
|
+
* by setting `metadata` to `null`.
|
|
2478
|
+
*/
|
|
2479
|
+
metadata?: Record<string, string | null> | null;
|
|
2275
2480
|
}
|
|
2276
2481
|
interface NewFloatingTieredWithMinimumPrice {
|
|
2277
2482
|
/**
|
|
2278
2483
|
* The cadence to bill for this price on.
|
|
2279
2484
|
*/
|
|
2280
|
-
cadence: 'annual' | 'monthly' | 'quarterly' | 'one_time';
|
|
2485
|
+
cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time';
|
|
2281
2486
|
/**
|
|
2282
2487
|
* An ISO 4217 currency string for which this price is billed in.
|
|
2283
2488
|
*/
|
|
@@ -2319,12 +2524,18 @@ export declare namespace PriceCreateParams {
|
|
|
2319
2524
|
* The property used to group this price on an invoice
|
|
2320
2525
|
*/
|
|
2321
2526
|
invoice_grouping_key?: string | null;
|
|
2527
|
+
/**
|
|
2528
|
+
* User-specified key/value pairs for the resource. Individual keys can be removed
|
|
2529
|
+
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
2530
|
+
* by setting `metadata` to `null`.
|
|
2531
|
+
*/
|
|
2532
|
+
metadata?: Record<string, string | null> | null;
|
|
2322
2533
|
}
|
|
2323
2534
|
interface NewFloatingPackageWithAllocationPrice {
|
|
2324
2535
|
/**
|
|
2325
2536
|
* The cadence to bill for this price on.
|
|
2326
2537
|
*/
|
|
2327
|
-
cadence: 'annual' | 'monthly' | 'quarterly' | 'one_time';
|
|
2538
|
+
cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time';
|
|
2328
2539
|
/**
|
|
2329
2540
|
* An ISO 4217 currency string for which this price is billed in.
|
|
2330
2541
|
*/
|
|
@@ -2366,12 +2577,18 @@ export declare namespace PriceCreateParams {
|
|
|
2366
2577
|
* The property used to group this price on an invoice
|
|
2367
2578
|
*/
|
|
2368
2579
|
invoice_grouping_key?: string | null;
|
|
2580
|
+
/**
|
|
2581
|
+
* User-specified key/value pairs for the resource. Individual keys can be removed
|
|
2582
|
+
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
2583
|
+
* by setting `metadata` to `null`.
|
|
2584
|
+
*/
|
|
2585
|
+
metadata?: Record<string, string | null> | null;
|
|
2369
2586
|
}
|
|
2370
2587
|
interface NewFloatingTieredPackageWithMinimumPrice {
|
|
2371
2588
|
/**
|
|
2372
2589
|
* The cadence to bill for this price on.
|
|
2373
2590
|
*/
|
|
2374
|
-
cadence: 'annual' | 'monthly' | 'quarterly' | 'one_time';
|
|
2591
|
+
cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time';
|
|
2375
2592
|
/**
|
|
2376
2593
|
* An ISO 4217 currency string for which this price is billed in.
|
|
2377
2594
|
*/
|
|
@@ -2413,12 +2630,18 @@ export declare namespace PriceCreateParams {
|
|
|
2413
2630
|
* The property used to group this price on an invoice
|
|
2414
2631
|
*/
|
|
2415
2632
|
invoice_grouping_key?: string | null;
|
|
2633
|
+
/**
|
|
2634
|
+
* User-specified key/value pairs for the resource. Individual keys can be removed
|
|
2635
|
+
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
2636
|
+
* by setting `metadata` to `null`.
|
|
2637
|
+
*/
|
|
2638
|
+
metadata?: Record<string, string | null> | null;
|
|
2416
2639
|
}
|
|
2417
2640
|
interface NewFloatingUnitWithPercentPrice {
|
|
2418
2641
|
/**
|
|
2419
2642
|
* The cadence to bill for this price on.
|
|
2420
2643
|
*/
|
|
2421
|
-
cadence: 'annual' | 'monthly' | 'quarterly' | 'one_time';
|
|
2644
|
+
cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time';
|
|
2422
2645
|
/**
|
|
2423
2646
|
* An ISO 4217 currency string for which this price is billed in.
|
|
2424
2647
|
*/
|
|
@@ -2460,12 +2683,18 @@ export declare namespace PriceCreateParams {
|
|
|
2460
2683
|
* The property used to group this price on an invoice
|
|
2461
2684
|
*/
|
|
2462
2685
|
invoice_grouping_key?: string | null;
|
|
2686
|
+
/**
|
|
2687
|
+
* User-specified key/value pairs for the resource. Individual keys can be removed
|
|
2688
|
+
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
2689
|
+
* by setting `metadata` to `null`.
|
|
2690
|
+
*/
|
|
2691
|
+
metadata?: Record<string, string | null> | null;
|
|
2463
2692
|
}
|
|
2464
2693
|
interface NewFloatingTieredWithProrationPrice {
|
|
2465
2694
|
/**
|
|
2466
2695
|
* The cadence to bill for this price on.
|
|
2467
2696
|
*/
|
|
2468
|
-
cadence: 'annual' | 'monthly' | 'quarterly' | 'one_time';
|
|
2697
|
+
cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time';
|
|
2469
2698
|
/**
|
|
2470
2699
|
* An ISO 4217 currency string for which this price is billed in.
|
|
2471
2700
|
*/
|
|
@@ -2507,12 +2736,18 @@ export declare namespace PriceCreateParams {
|
|
|
2507
2736
|
* The property used to group this price on an invoice
|
|
2508
2737
|
*/
|
|
2509
2738
|
invoice_grouping_key?: string | null;
|
|
2739
|
+
/**
|
|
2740
|
+
* User-specified key/value pairs for the resource. Individual keys can be removed
|
|
2741
|
+
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
2742
|
+
* by setting `metadata` to `null`.
|
|
2743
|
+
*/
|
|
2744
|
+
metadata?: Record<string, string | null> | null;
|
|
2510
2745
|
}
|
|
2511
2746
|
interface NewFloatingUnitWithProrationPrice {
|
|
2512
2747
|
/**
|
|
2513
2748
|
* The cadence to bill for this price on.
|
|
2514
2749
|
*/
|
|
2515
|
-
cadence: 'annual' | 'monthly' | 'quarterly' | 'one_time';
|
|
2750
|
+
cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time';
|
|
2516
2751
|
/**
|
|
2517
2752
|
* An ISO 4217 currency string for which this price is billed in.
|
|
2518
2753
|
*/
|
|
@@ -2554,8 +2789,22 @@ export declare namespace PriceCreateParams {
|
|
|
2554
2789
|
* The property used to group this price on an invoice
|
|
2555
2790
|
*/
|
|
2556
2791
|
invoice_grouping_key?: string | null;
|
|
2792
|
+
/**
|
|
2793
|
+
* User-specified key/value pairs for the resource. Individual keys can be removed
|
|
2794
|
+
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
2795
|
+
* by setting `metadata` to `null`.
|
|
2796
|
+
*/
|
|
2797
|
+
metadata?: Record<string, string | null> | null;
|
|
2557
2798
|
}
|
|
2558
2799
|
}
|
|
2800
|
+
export interface PriceUpdateParams {
|
|
2801
|
+
/**
|
|
2802
|
+
* User-specified key/value pairs for the resource. Individual keys can be removed
|
|
2803
|
+
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
2804
|
+
* by setting `metadata` to `null`.
|
|
2805
|
+
*/
|
|
2806
|
+
metadata?: Record<string, string | null> | null;
|
|
2807
|
+
}
|
|
2559
2808
|
export interface PriceListParams extends PageParams {
|
|
2560
2809
|
}
|
|
2561
2810
|
export interface PriceEvaluateParams {
|
|
@@ -2594,8 +2843,10 @@ export declare namespace Prices {
|
|
|
2594
2843
|
export import PriceEvaluateResponse = PricesAPI.PriceEvaluateResponse;
|
|
2595
2844
|
export import PricesPage = PricesAPI.PricesPage;
|
|
2596
2845
|
export import PriceCreateParams = PricesAPI.PriceCreateParams;
|
|
2846
|
+
export import PriceUpdateParams = PricesAPI.PriceUpdateParams;
|
|
2597
2847
|
export import PriceListParams = PricesAPI.PriceListParams;
|
|
2598
2848
|
export import PriceEvaluateParams = PricesAPI.PriceEvaluateParams;
|
|
2599
2849
|
export import ExternalPriceID = ExternalPriceIDAPI.ExternalPriceID;
|
|
2850
|
+
export import ExternalPriceIDUpdateParams = ExternalPriceIDAPI.ExternalPriceIDUpdateParams;
|
|
2600
2851
|
}
|
|
2601
2852
|
//# sourceMappingURL=prices.d.ts.map
|