orb-billing 5.44.0 → 5.45.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 +39 -0
- package/core.d.ts +1 -1
- package/core.d.ts.map +1 -1
- package/core.js +8 -17
- package/core.js.map +1 -1
- package/core.mjs +8 -17
- package/core.mjs.map +1 -1
- package/index.d.mts +91 -5
- package/index.d.ts +91 -5
- package/index.d.ts.map +1 -1
- package/index.js +90 -2
- package/index.js.map +1 -1
- package/index.mjs +91 -3
- package/index.mjs.map +1 -1
- package/internal/utils/query.d.ts +2 -0
- package/internal/utils/query.d.ts.map +1 -0
- package/internal/utils/query.js +33 -0
- package/internal/utils/query.js.map +1 -0
- package/internal/utils/query.mjs +6 -0
- package/internal/utils/query.mjs.map +1 -0
- package/package.json +1 -1
- package/resources/alerts.d.ts +21 -0
- package/resources/alerts.d.ts.map +1 -1
- package/resources/alerts.js +6 -0
- package/resources/alerts.js.map +1 -1
- package/resources/alerts.mjs +6 -0
- package/resources/alerts.mjs.map +1 -1
- package/resources/beta/beta.d.ts +8293 -140
- package/resources/beta/beta.d.ts.map +1 -1
- package/resources/beta/beta.js +5 -0
- package/resources/beta/beta.js.map +1 -1
- package/resources/beta/beta.mjs +5 -0
- package/resources/beta/beta.mjs.map +1 -1
- package/resources/beta/external-plan-id.d.ts +8293 -140
- package/resources/beta/external-plan-id.d.ts.map +1 -1
- package/resources/beta/external-plan-id.js +5 -0
- package/resources/beta/external-plan-id.js.map +1 -1
- package/resources/beta/external-plan-id.mjs +5 -0
- package/resources/beta/external-plan-id.mjs.map +1 -1
- package/resources/coupons/coupons.d.ts +3 -0
- package/resources/coupons/coupons.d.ts.map +1 -1
- package/resources/coupons/coupons.js +3 -0
- package/resources/coupons/coupons.js.map +1 -1
- package/resources/coupons/coupons.mjs +3 -0
- package/resources/coupons/coupons.mjs.map +1 -1
- package/resources/coupons/subscriptions.d.ts +3 -0
- package/resources/coupons/subscriptions.d.ts.map +1 -1
- package/resources/coupons/subscriptions.js +3 -0
- package/resources/coupons/subscriptions.js.map +1 -1
- package/resources/coupons/subscriptions.mjs +3 -0
- package/resources/coupons/subscriptions.mjs.map +1 -1
- package/resources/credit-blocks.d.ts +85 -1
- package/resources/credit-blocks.d.ts.map +1 -1
- package/resources/credit-blocks.js +22 -0
- package/resources/credit-blocks.js.map +1 -1
- package/resources/credit-blocks.mjs +22 -0
- package/resources/credit-blocks.mjs.map +1 -1
- package/resources/credit-notes.d.ts +4 -0
- package/resources/credit-notes.d.ts.map +1 -1
- package/resources/credit-notes.js +4 -0
- package/resources/credit-notes.js.map +1 -1
- package/resources/credit-notes.mjs +4 -0
- package/resources/credit-notes.mjs.map +1 -1
- package/resources/customers/balance-transactions.d.ts +16 -0
- package/resources/customers/balance-transactions.d.ts.map +1 -1
- package/resources/customers/balance-transactions.js +16 -0
- package/resources/customers/balance-transactions.js.map +1 -1
- package/resources/customers/balance-transactions.mjs +16 -0
- package/resources/customers/balance-transactions.mjs.map +1 -1
- package/resources/customers/costs.d.ts +16 -0
- package/resources/customers/costs.d.ts.map +1 -1
- package/resources/customers/costs.js +16 -0
- package/resources/customers/costs.js.map +1 -1
- package/resources/customers/costs.mjs +16 -0
- package/resources/customers/costs.mjs.map +1 -1
- package/resources/customers/credits/credits.d.ts +39 -0
- package/resources/customers/credits/credits.d.ts.map +1 -1
- package/resources/customers/credits/credits.js +3 -0
- package/resources/customers/credits/credits.js.map +1 -1
- package/resources/customers/credits/credits.mjs +3 -0
- package/resources/customers/credits/credits.mjs.map +1 -1
- package/resources/customers/credits/ledger.d.ts +31 -4
- package/resources/customers/credits/ledger.d.ts.map +1 -1
- package/resources/customers/credits/ledger.js +19 -2
- package/resources/customers/credits/ledger.js.map +1 -1
- package/resources/customers/credits/ledger.mjs +19 -2
- package/resources/customers/credits/ledger.mjs.map +1 -1
- package/resources/customers/credits/top-ups.d.ts +3 -0
- package/resources/customers/credits/top-ups.d.ts.map +1 -1
- package/resources/customers/credits/top-ups.js +3 -0
- package/resources/customers/credits/top-ups.js.map +1 -1
- package/resources/customers/credits/top-ups.mjs +3 -0
- package/resources/customers/credits/top-ups.mjs.map +1 -1
- package/resources/customers/customers.d.ts +33 -12
- package/resources/customers/customers.d.ts.map +1 -1
- package/resources/customers/customers.js +20 -3
- package/resources/customers/customers.js.map +1 -1
- package/resources/customers/customers.mjs +20 -3
- package/resources/customers/customers.mjs.map +1 -1
- package/resources/dimensional-price-groups/external-dimensional-price-group-id.d.ts +1 -1
- package/resources/dimensional-price-groups/external-dimensional-price-group-id.d.ts.map +1 -1
- package/resources/events/backfills.d.ts +5 -0
- package/resources/events/backfills.d.ts.map +1 -1
- package/resources/events/backfills.js +5 -0
- package/resources/events/backfills.js.map +1 -1
- package/resources/events/backfills.mjs +5 -0
- package/resources/events/backfills.mjs.map +1 -1
- package/resources/events/events.d.ts +5 -0
- package/resources/events/events.d.ts.map +1 -1
- package/resources/events/events.js +5 -0
- package/resources/events/events.js.map +1 -1
- package/resources/events/events.mjs +5 -0
- package/resources/events/events.mjs.map +1 -1
- package/resources/events/volume.d.ts +5 -0
- package/resources/events/volume.d.ts.map +1 -1
- package/resources/events/volume.js +5 -0
- package/resources/events/volume.js.map +1 -1
- package/resources/events/volume.mjs +5 -0
- package/resources/events/volume.mjs.map +1 -1
- package/resources/index.d.ts +4 -2
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +7 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +3 -1
- package/resources/index.mjs.map +1 -1
- package/resources/invoice-line-items.d.ts +6 -0
- package/resources/invoice-line-items.d.ts.map +1 -1
- package/resources/invoice-line-items.js +6 -0
- package/resources/invoice-line-items.js.map +1 -1
- package/resources/invoice-line-items.mjs +6 -0
- package/resources/invoice-line-items.mjs.map +1 -1
- package/resources/invoices.d.ts +432 -7
- package/resources/invoices.d.ts.map +1 -1
- package/resources/invoices.js +18 -5
- package/resources/invoices.js.map +1 -1
- package/resources/invoices.mjs +18 -5
- package/resources/invoices.mjs.map +1 -1
- package/resources/items.d.ts +6 -2
- package/resources/items.d.ts.map +1 -1
- package/resources/items.js +4 -0
- package/resources/items.js.map +1 -1
- package/resources/items.mjs +4 -0
- package/resources/items.mjs.map +1 -1
- package/resources/license-types.d.ts +113 -0
- package/resources/license-types.d.ts.map +1 -0
- package/resources/license-types.js +44 -0
- package/resources/license-types.js.map +1 -0
- package/resources/license-types.mjs +39 -0
- package/resources/license-types.mjs.map +1 -0
- package/resources/licenses/external-licenses.d.ts +114 -0
- package/resources/licenses/external-licenses.d.ts.map +1 -0
- package/resources/licenses/external-licenses.js +18 -0
- package/resources/licenses/external-licenses.js.map +1 -0
- package/resources/licenses/external-licenses.mjs +14 -0
- package/resources/licenses/external-licenses.mjs.map +1 -0
- package/resources/licenses/index.d.ts +4 -0
- package/resources/licenses/index.d.ts.map +1 -0
- package/resources/licenses/index.js +12 -0
- package/resources/licenses/index.js.map +1 -0
- package/resources/licenses/index.mjs +5 -0
- package/resources/licenses/index.mjs.map +1 -0
- package/resources/licenses/licenses.d.ts +133 -0
- package/resources/licenses/licenses.d.ts.map +1 -0
- package/resources/licenses/licenses.js +86 -0
- package/resources/licenses/licenses.js.map +1 -0
- package/resources/licenses/licenses.mjs +58 -0
- package/resources/licenses/licenses.mjs.map +1 -0
- package/resources/licenses/usage.d.ts +211 -0
- package/resources/licenses/usage.d.ts.map +1 -0
- package/resources/licenses/usage.js +25 -0
- package/resources/licenses/usage.js.map +1 -0
- package/resources/licenses/usage.mjs +21 -0
- package/resources/licenses/usage.mjs.map +1 -0
- package/resources/licenses.d.ts +2 -0
- package/resources/licenses.d.ts.map +1 -0
- package/resources/licenses.js +19 -0
- package/resources/licenses.js.map +1 -0
- package/resources/licenses.mjs +3 -0
- package/resources/licenses.mjs.map +1 -0
- package/resources/metrics.d.ts +7 -0
- package/resources/metrics.d.ts.map +1 -1
- package/resources/metrics.js +4 -0
- package/resources/metrics.js.map +1 -1
- package/resources/metrics.mjs +4 -0
- package/resources/metrics.mjs.map +1 -1
- package/resources/plans/external-plan-id.d.ts +5 -0
- package/resources/plans/external-plan-id.d.ts.map +1 -1
- package/resources/plans/external-plan-id.js +5 -0
- package/resources/plans/external-plan-id.js.map +1 -1
- package/resources/plans/external-plan-id.mjs +5 -0
- package/resources/plans/external-plan-id.mjs.map +1 -1
- package/resources/plans/migrations.d.ts +5 -0
- package/resources/plans/migrations.d.ts.map +1 -1
- package/resources/plans/migrations.js +5 -0
- package/resources/plans/migrations.js.map +1 -1
- package/resources/plans/migrations.mjs +5 -0
- package/resources/plans/migrations.mjs.map +1 -1
- package/resources/plans/plans.d.ts +4200 -121
- package/resources/plans/plans.d.ts.map +1 -1
- package/resources/plans/plans.js +5 -0
- package/resources/plans/plans.js.map +1 -1
- package/resources/plans/plans.mjs +5 -0
- package/resources/plans/plans.mjs.map +1 -1
- package/resources/prices/external-price-id.d.ts +9 -0
- 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/prices.d.ts +198 -0
- package/resources/prices/prices.d.ts.map +1 -1
- package/resources/prices/prices.js +9 -0
- package/resources/prices/prices.js.map +1 -1
- package/resources/prices/prices.mjs +9 -0
- package/resources/prices/prices.mjs.map +1 -1
- package/resources/shared.d.ts +1040 -6
- package/resources/shared.d.ts.map +1 -1
- package/resources/shared.js.map +1 -1
- package/resources/shared.mjs.map +1 -1
- package/resources/subscriptions.d.ts +262 -0
- package/resources/subscriptions.d.ts.map +1 -1
- package/resources/subscriptions.js.map +1 -1
- package/resources/subscriptions.mjs.map +1 -1
- package/src/core.ts +10 -21
- package/src/index.ts +149 -5
- package/src/internal/utils/query.ts +7 -0
- package/src/resources/alerts.ts +24 -0
- package/src/resources/beta/beta.ts +9945 -194
- package/src/resources/beta/external-plan-id.ts +9945 -194
- package/src/resources/coupons/coupons.ts +3 -0
- package/src/resources/coupons/subscriptions.ts +3 -0
- package/src/resources/credit-blocks.ts +110 -1
- package/src/resources/credit-notes.ts +4 -0
- package/src/resources/customers/balance-transactions.ts +16 -0
- package/src/resources/customers/costs.ts +16 -0
- package/src/resources/customers/credits/credits.ts +45 -0
- package/src/resources/customers/credits/ledger.ts +33 -4
- package/src/resources/customers/credits/top-ups.ts +3 -0
- package/src/resources/customers/customers.ts +61 -12
- package/src/resources/dimensional-price-groups/external-dimensional-price-group-id.ts +1 -1
- package/src/resources/events/backfills.ts +5 -0
- package/src/resources/events/events.ts +5 -0
- package/src/resources/events/volume.ts +5 -0
- package/src/resources/index.ts +29 -1
- package/src/resources/invoice-line-items.ts +6 -0
- package/src/resources/invoices.ts +523 -6
- package/src/resources/items.ts +8 -2
- package/src/resources/license-types.ts +163 -0
- package/src/resources/licenses/external-licenses.ts +147 -0
- package/src/resources/licenses/index.ts +27 -0
- package/src/resources/licenses/licenses.ts +248 -0
- package/src/resources/licenses/usage.ts +280 -0
- package/src/resources/licenses.ts +3 -0
- package/src/resources/metrics.ts +6 -0
- package/src/resources/plans/external-plan-id.ts +5 -0
- package/src/resources/plans/migrations.ts +5 -0
- package/src/resources/plans/plans.ts +5004 -126
- package/src/resources/prices/external-price-id.ts +9 -0
- package/src/resources/prices/prices.ts +237 -0
- package/src/resources/shared.ts +1213 -0
- package/src/resources/subscriptions.ts +311 -0
- package/src/version.ts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -6,6 +6,15 @@ import { PricesPage } from "../shared.js";
|
|
|
6
6
|
import * as ExternalPriceIDAPI from "./external-price-id.js";
|
|
7
7
|
import { ExternalPriceID, ExternalPriceIDUpdateParams } from "./external-price-id.js";
|
|
8
8
|
import { type PageParams } from "../../pagination.js";
|
|
9
|
+
/**
|
|
10
|
+
* The Price resource represents a price that can be billed on a subscription, resulting in a charge on an invoice in
|
|
11
|
+
* the form of an invoice line item. Prices take a quantity and determine an amount to bill.
|
|
12
|
+
*
|
|
13
|
+
* Orb supports a few different pricing models out of the box. Each of these models is serialized differently in a
|
|
14
|
+
* given Price object. The model_type field determines the key for the configuration object that is present.
|
|
15
|
+
*
|
|
16
|
+
* For more on the types of prices, see [the core concepts documentation](/core-concepts#plan-and-price)
|
|
17
|
+
*/
|
|
9
18
|
export declare class Prices extends APIResource {
|
|
10
19
|
externalPriceId: ExternalPriceIDAPI.ExternalPriceID;
|
|
11
20
|
/**
|
|
@@ -262,6 +271,10 @@ export declare namespace PriceCreateParams {
|
|
|
262
271
|
* If unspecified, a single invoice is produced per billing cycle.
|
|
263
272
|
*/
|
|
264
273
|
invoicing_cycle_configuration?: Shared.NewBillingCycleConfiguration | null;
|
|
274
|
+
/**
|
|
275
|
+
* The ID of the license type to associate with this price.
|
|
276
|
+
*/
|
|
277
|
+
license_type_id?: string | null;
|
|
265
278
|
/**
|
|
266
279
|
* User-specified key/value pairs for the resource. Individual keys can be removed
|
|
267
280
|
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
@@ -341,6 +354,10 @@ export declare namespace PriceCreateParams {
|
|
|
341
354
|
* If unspecified, a single invoice is produced per billing cycle.
|
|
342
355
|
*/
|
|
343
356
|
invoicing_cycle_configuration?: Shared.NewBillingCycleConfiguration | null;
|
|
357
|
+
/**
|
|
358
|
+
* The ID of the license type to associate with this price.
|
|
359
|
+
*/
|
|
360
|
+
license_type_id?: string | null;
|
|
344
361
|
/**
|
|
345
362
|
* User-specified key/value pairs for the resource. Individual keys can be removed
|
|
346
363
|
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
@@ -420,6 +437,10 @@ export declare namespace PriceCreateParams {
|
|
|
420
437
|
* If unspecified, a single invoice is produced per billing cycle.
|
|
421
438
|
*/
|
|
422
439
|
invoicing_cycle_configuration?: Shared.NewBillingCycleConfiguration | null;
|
|
440
|
+
/**
|
|
441
|
+
* The ID of the license type to associate with this price.
|
|
442
|
+
*/
|
|
443
|
+
license_type_id?: string | null;
|
|
423
444
|
/**
|
|
424
445
|
* User-specified key/value pairs for the resource. Individual keys can be removed
|
|
425
446
|
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
@@ -499,6 +520,10 @@ export declare namespace PriceCreateParams {
|
|
|
499
520
|
* If unspecified, a single invoice is produced per billing cycle.
|
|
500
521
|
*/
|
|
501
522
|
invoicing_cycle_configuration?: Shared.NewBillingCycleConfiguration | null;
|
|
523
|
+
/**
|
|
524
|
+
* The ID of the license type to associate with this price.
|
|
525
|
+
*/
|
|
526
|
+
license_type_id?: string | null;
|
|
502
527
|
/**
|
|
503
528
|
* User-specified key/value pairs for the resource. Individual keys can be removed
|
|
504
529
|
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
@@ -621,6 +646,10 @@ export declare namespace PriceCreateParams {
|
|
|
621
646
|
* If unspecified, a single invoice is produced per billing cycle.
|
|
622
647
|
*/
|
|
623
648
|
invoicing_cycle_configuration?: Shared.NewBillingCycleConfiguration | null;
|
|
649
|
+
/**
|
|
650
|
+
* The ID of the license type to associate with this price.
|
|
651
|
+
*/
|
|
652
|
+
license_type_id?: string | null;
|
|
624
653
|
/**
|
|
625
654
|
* User-specified key/value pairs for the resource. Individual keys can be removed
|
|
626
655
|
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
@@ -700,6 +729,10 @@ export declare namespace PriceCreateParams {
|
|
|
700
729
|
* If unspecified, a single invoice is produced per billing cycle.
|
|
701
730
|
*/
|
|
702
731
|
invoicing_cycle_configuration?: Shared.NewBillingCycleConfiguration | null;
|
|
732
|
+
/**
|
|
733
|
+
* The ID of the license type to associate with this price.
|
|
734
|
+
*/
|
|
735
|
+
license_type_id?: string | null;
|
|
703
736
|
/**
|
|
704
737
|
* User-specified key/value pairs for the resource. Individual keys can be removed
|
|
705
738
|
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
@@ -779,6 +812,10 @@ export declare namespace PriceCreateParams {
|
|
|
779
812
|
* If unspecified, a single invoice is produced per billing cycle.
|
|
780
813
|
*/
|
|
781
814
|
invoicing_cycle_configuration?: Shared.NewBillingCycleConfiguration | null;
|
|
815
|
+
/**
|
|
816
|
+
* The ID of the license type to associate with this price.
|
|
817
|
+
*/
|
|
818
|
+
license_type_id?: string | null;
|
|
782
819
|
/**
|
|
783
820
|
* User-specified key/value pairs for the resource. Individual keys can be removed
|
|
784
821
|
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
@@ -886,6 +923,10 @@ export declare namespace PriceCreateParams {
|
|
|
886
923
|
* If unspecified, a single invoice is produced per billing cycle.
|
|
887
924
|
*/
|
|
888
925
|
invoicing_cycle_configuration?: Shared.NewBillingCycleConfiguration | null;
|
|
926
|
+
/**
|
|
927
|
+
* The ID of the license type to associate with this price.
|
|
928
|
+
*/
|
|
929
|
+
license_type_id?: string | null;
|
|
889
930
|
/**
|
|
890
931
|
* User-specified key/value pairs for the resource. Individual keys can be removed
|
|
891
932
|
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
@@ -992,6 +1033,10 @@ export declare namespace PriceCreateParams {
|
|
|
992
1033
|
* If unspecified, a single invoice is produced per billing cycle.
|
|
993
1034
|
*/
|
|
994
1035
|
invoicing_cycle_configuration?: Shared.NewBillingCycleConfiguration | null;
|
|
1036
|
+
/**
|
|
1037
|
+
* The ID of the license type to associate with this price.
|
|
1038
|
+
*/
|
|
1039
|
+
license_type_id?: string | null;
|
|
995
1040
|
/**
|
|
996
1041
|
* User-specified key/value pairs for the resource. Individual keys can be removed
|
|
997
1042
|
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
@@ -1104,6 +1149,10 @@ export declare namespace PriceCreateParams {
|
|
|
1104
1149
|
* If unspecified, a single invoice is produced per billing cycle.
|
|
1105
1150
|
*/
|
|
1106
1151
|
invoicing_cycle_configuration?: Shared.NewBillingCycleConfiguration | null;
|
|
1152
|
+
/**
|
|
1153
|
+
* The ID of the license type to associate with this price.
|
|
1154
|
+
*/
|
|
1155
|
+
license_type_id?: string | null;
|
|
1107
1156
|
/**
|
|
1108
1157
|
* User-specified key/value pairs for the resource. Individual keys can be removed
|
|
1109
1158
|
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
@@ -1211,6 +1260,10 @@ export declare namespace PriceCreateParams {
|
|
|
1211
1260
|
* If unspecified, a single invoice is produced per billing cycle.
|
|
1212
1261
|
*/
|
|
1213
1262
|
invoicing_cycle_configuration?: Shared.NewBillingCycleConfiguration | null;
|
|
1263
|
+
/**
|
|
1264
|
+
* The ID of the license type to associate with this price.
|
|
1265
|
+
*/
|
|
1266
|
+
license_type_id?: string | null;
|
|
1214
1267
|
/**
|
|
1215
1268
|
* User-specified key/value pairs for the resource. Individual keys can be removed
|
|
1216
1269
|
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
@@ -1313,6 +1366,10 @@ export declare namespace PriceCreateParams {
|
|
|
1313
1366
|
* If unspecified, a single invoice is produced per billing cycle.
|
|
1314
1367
|
*/
|
|
1315
1368
|
invoicing_cycle_configuration?: Shared.NewBillingCycleConfiguration | null;
|
|
1369
|
+
/**
|
|
1370
|
+
* The ID of the license type to associate with this price.
|
|
1371
|
+
*/
|
|
1372
|
+
license_type_id?: string | null;
|
|
1316
1373
|
/**
|
|
1317
1374
|
* User-specified key/value pairs for the resource. Individual keys can be removed
|
|
1318
1375
|
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
@@ -1402,6 +1459,10 @@ export declare namespace PriceCreateParams {
|
|
|
1402
1459
|
* If unspecified, a single invoice is produced per billing cycle.
|
|
1403
1460
|
*/
|
|
1404
1461
|
invoicing_cycle_configuration?: Shared.NewBillingCycleConfiguration | null;
|
|
1462
|
+
/**
|
|
1463
|
+
* The ID of the license type to associate with this price.
|
|
1464
|
+
*/
|
|
1465
|
+
license_type_id?: string | null;
|
|
1405
1466
|
/**
|
|
1406
1467
|
* User-specified key/value pairs for the resource. Individual keys can be removed
|
|
1407
1468
|
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
@@ -1496,6 +1557,10 @@ export declare namespace PriceCreateParams {
|
|
|
1496
1557
|
* If unspecified, a single invoice is produced per billing cycle.
|
|
1497
1558
|
*/
|
|
1498
1559
|
invoicing_cycle_configuration?: Shared.NewBillingCycleConfiguration | null;
|
|
1560
|
+
/**
|
|
1561
|
+
* The ID of the license type to associate with this price.
|
|
1562
|
+
*/
|
|
1563
|
+
license_type_id?: string | null;
|
|
1499
1564
|
/**
|
|
1500
1565
|
* User-specified key/value pairs for the resource. Individual keys can be removed
|
|
1501
1566
|
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
@@ -1575,6 +1640,10 @@ export declare namespace PriceCreateParams {
|
|
|
1575
1640
|
* If unspecified, a single invoice is produced per billing cycle.
|
|
1576
1641
|
*/
|
|
1577
1642
|
invoicing_cycle_configuration?: Shared.NewBillingCycleConfiguration | null;
|
|
1643
|
+
/**
|
|
1644
|
+
* The ID of the license type to associate with this price.
|
|
1645
|
+
*/
|
|
1646
|
+
license_type_id?: string | null;
|
|
1578
1647
|
/**
|
|
1579
1648
|
* User-specified key/value pairs for the resource. Individual keys can be removed
|
|
1580
1649
|
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
@@ -1681,6 +1750,10 @@ export declare namespace PriceCreateParams {
|
|
|
1681
1750
|
* If unspecified, a single invoice is produced per billing cycle.
|
|
1682
1751
|
*/
|
|
1683
1752
|
invoicing_cycle_configuration?: Shared.NewBillingCycleConfiguration | null;
|
|
1753
|
+
/**
|
|
1754
|
+
* The ID of the license type to associate with this price.
|
|
1755
|
+
*/
|
|
1756
|
+
license_type_id?: string | null;
|
|
1684
1757
|
/**
|
|
1685
1758
|
* User-specified key/value pairs for the resource. Individual keys can be removed
|
|
1686
1759
|
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
@@ -1771,6 +1844,10 @@ export declare namespace PriceCreateParams {
|
|
|
1771
1844
|
* If unspecified, a single invoice is produced per billing cycle.
|
|
1772
1845
|
*/
|
|
1773
1846
|
invoicing_cycle_configuration?: Shared.NewBillingCycleConfiguration | null;
|
|
1847
|
+
/**
|
|
1848
|
+
* The ID of the license type to associate with this price.
|
|
1849
|
+
*/
|
|
1850
|
+
license_type_id?: string | null;
|
|
1774
1851
|
/**
|
|
1775
1852
|
* User-specified key/value pairs for the resource. Individual keys can be removed
|
|
1776
1853
|
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
@@ -1869,6 +1946,10 @@ export declare namespace PriceCreateParams {
|
|
|
1869
1946
|
* If unspecified, a single invoice is produced per billing cycle.
|
|
1870
1947
|
*/
|
|
1871
1948
|
invoicing_cycle_configuration?: Shared.NewBillingCycleConfiguration | null;
|
|
1949
|
+
/**
|
|
1950
|
+
* The ID of the license type to associate with this price.
|
|
1951
|
+
*/
|
|
1952
|
+
license_type_id?: string | null;
|
|
1872
1953
|
/**
|
|
1873
1954
|
* User-specified key/value pairs for the resource. Individual keys can be removed
|
|
1874
1955
|
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
@@ -1974,6 +2055,10 @@ export declare namespace PriceCreateParams {
|
|
|
1974
2055
|
* If unspecified, a single invoice is produced per billing cycle.
|
|
1975
2056
|
*/
|
|
1976
2057
|
invoicing_cycle_configuration?: Shared.NewBillingCycleConfiguration | null;
|
|
2058
|
+
/**
|
|
2059
|
+
* The ID of the license type to associate with this price.
|
|
2060
|
+
*/
|
|
2061
|
+
license_type_id?: string | null;
|
|
1977
2062
|
/**
|
|
1978
2063
|
* User-specified key/value pairs for the resource. Individual keys can be removed
|
|
1979
2064
|
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
@@ -2072,6 +2157,10 @@ export declare namespace PriceCreateParams {
|
|
|
2072
2157
|
* If unspecified, a single invoice is produced per billing cycle.
|
|
2073
2158
|
*/
|
|
2074
2159
|
invoicing_cycle_configuration?: Shared.NewBillingCycleConfiguration | null;
|
|
2160
|
+
/**
|
|
2161
|
+
* The ID of the license type to associate with this price.
|
|
2162
|
+
*/
|
|
2163
|
+
license_type_id?: string | null;
|
|
2075
2164
|
/**
|
|
2076
2165
|
* User-specified key/value pairs for the resource. Individual keys can be removed
|
|
2077
2166
|
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
@@ -2203,6 +2292,10 @@ export declare namespace PriceCreateParams {
|
|
|
2203
2292
|
* If unspecified, a single invoice is produced per billing cycle.
|
|
2204
2293
|
*/
|
|
2205
2294
|
invoicing_cycle_configuration?: Shared.NewBillingCycleConfiguration | null;
|
|
2295
|
+
/**
|
|
2296
|
+
* The ID of the license type to associate with this price.
|
|
2297
|
+
*/
|
|
2298
|
+
license_type_id?: string | null;
|
|
2206
2299
|
/**
|
|
2207
2300
|
* User-specified key/value pairs for the resource. Individual keys can be removed
|
|
2208
2301
|
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
@@ -2305,6 +2398,10 @@ export declare namespace PriceCreateParams {
|
|
|
2305
2398
|
* If unspecified, a single invoice is produced per billing cycle.
|
|
2306
2399
|
*/
|
|
2307
2400
|
invoicing_cycle_configuration?: Shared.NewBillingCycleConfiguration | null;
|
|
2401
|
+
/**
|
|
2402
|
+
* The ID of the license type to associate with this price.
|
|
2403
|
+
*/
|
|
2404
|
+
license_type_id?: string | null;
|
|
2308
2405
|
/**
|
|
2309
2406
|
* User-specified key/value pairs for the resource. Individual keys can be removed
|
|
2310
2407
|
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
@@ -2418,6 +2515,10 @@ export declare namespace PriceCreateParams {
|
|
|
2418
2515
|
* If unspecified, a single invoice is produced per billing cycle.
|
|
2419
2516
|
*/
|
|
2420
2517
|
invoicing_cycle_configuration?: Shared.NewBillingCycleConfiguration | null;
|
|
2518
|
+
/**
|
|
2519
|
+
* The ID of the license type to associate with this price.
|
|
2520
|
+
*/
|
|
2521
|
+
license_type_id?: string | null;
|
|
2421
2522
|
/**
|
|
2422
2523
|
* User-specified key/value pairs for the resource. Individual keys can be removed
|
|
2423
2524
|
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
@@ -2526,6 +2627,10 @@ export declare namespace PriceCreateParams {
|
|
|
2526
2627
|
* If unspecified, a single invoice is produced per billing cycle.
|
|
2527
2628
|
*/
|
|
2528
2629
|
invoicing_cycle_configuration?: Shared.NewBillingCycleConfiguration | null;
|
|
2630
|
+
/**
|
|
2631
|
+
* The ID of the license type to associate with this price.
|
|
2632
|
+
*/
|
|
2633
|
+
license_type_id?: string | null;
|
|
2529
2634
|
/**
|
|
2530
2635
|
* User-specified key/value pairs for the resource. Individual keys can be removed
|
|
2531
2636
|
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
@@ -2633,6 +2738,10 @@ export declare namespace PriceCreateParams {
|
|
|
2633
2738
|
* If unspecified, a single invoice is produced per billing cycle.
|
|
2634
2739
|
*/
|
|
2635
2740
|
invoicing_cycle_configuration?: Shared.NewBillingCycleConfiguration | null;
|
|
2741
|
+
/**
|
|
2742
|
+
* The ID of the license type to associate with this price.
|
|
2743
|
+
*/
|
|
2744
|
+
license_type_id?: string | null;
|
|
2636
2745
|
/**
|
|
2637
2746
|
* User-specified key/value pairs for the resource. Individual keys can be removed
|
|
2638
2747
|
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
@@ -2659,6 +2768,10 @@ export declare namespace PriceCreateParams {
|
|
|
2659
2768
|
* The final unit price to rate against the output of the matrix
|
|
2660
2769
|
*/
|
|
2661
2770
|
unit_price: string;
|
|
2771
|
+
/**
|
|
2772
|
+
* The property used to group this price
|
|
2773
|
+
*/
|
|
2774
|
+
grouping_key?: string | null;
|
|
2662
2775
|
/**
|
|
2663
2776
|
* If true, the unit price will be prorated to the billing period
|
|
2664
2777
|
*/
|
|
@@ -2749,6 +2862,10 @@ export declare namespace PriceCreateParams {
|
|
|
2749
2862
|
* If unspecified, a single invoice is produced per billing cycle.
|
|
2750
2863
|
*/
|
|
2751
2864
|
invoicing_cycle_configuration?: Shared.NewBillingCycleConfiguration | null;
|
|
2865
|
+
/**
|
|
2866
|
+
* The ID of the license type to associate with this price.
|
|
2867
|
+
*/
|
|
2868
|
+
license_type_id?: string | null;
|
|
2752
2869
|
/**
|
|
2753
2870
|
* User-specified key/value pairs for the resource. Individual keys can be removed
|
|
2754
2871
|
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
@@ -2865,6 +2982,10 @@ export declare namespace PriceCreateParams {
|
|
|
2865
2982
|
* If unspecified, a single invoice is produced per billing cycle.
|
|
2866
2983
|
*/
|
|
2867
2984
|
invoicing_cycle_configuration?: Shared.NewBillingCycleConfiguration | null;
|
|
2985
|
+
/**
|
|
2986
|
+
* The ID of the license type to associate with this price.
|
|
2987
|
+
*/
|
|
2988
|
+
license_type_id?: string | null;
|
|
2868
2989
|
/**
|
|
2869
2990
|
* User-specified key/value pairs for the resource. Individual keys can be removed
|
|
2870
2991
|
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
@@ -2975,6 +3096,10 @@ export declare namespace PriceCreateParams {
|
|
|
2975
3096
|
* If unspecified, a single invoice is produced per billing cycle.
|
|
2976
3097
|
*/
|
|
2977
3098
|
invoicing_cycle_configuration?: Shared.NewBillingCycleConfiguration | null;
|
|
3099
|
+
/**
|
|
3100
|
+
* The ID of the license type to associate with this price.
|
|
3101
|
+
*/
|
|
3102
|
+
license_type_id?: string | null;
|
|
2978
3103
|
/**
|
|
2979
3104
|
* User-specified key/value pairs for the resource. Individual keys can be removed
|
|
2980
3105
|
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
@@ -3077,6 +3202,10 @@ export declare namespace PriceCreateParams {
|
|
|
3077
3202
|
* If unspecified, a single invoice is produced per billing cycle.
|
|
3078
3203
|
*/
|
|
3079
3204
|
invoicing_cycle_configuration?: Shared.NewBillingCycleConfiguration | null;
|
|
3205
|
+
/**
|
|
3206
|
+
* The ID of the license type to associate with this price.
|
|
3207
|
+
*/
|
|
3208
|
+
license_type_id?: string | null;
|
|
3080
3209
|
/**
|
|
3081
3210
|
* User-specified key/value pairs for the resource. Individual keys can be removed
|
|
3082
3211
|
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
@@ -3171,6 +3300,10 @@ export declare namespace PriceCreateParams {
|
|
|
3171
3300
|
* If unspecified, a single invoice is produced per billing cycle.
|
|
3172
3301
|
*/
|
|
3173
3302
|
invoicing_cycle_configuration?: Shared.NewBillingCycleConfiguration | null;
|
|
3303
|
+
/**
|
|
3304
|
+
* The ID of the license type to associate with this price.
|
|
3305
|
+
*/
|
|
3306
|
+
license_type_id?: string | null;
|
|
3174
3307
|
/**
|
|
3175
3308
|
* User-specified key/value pairs for the resource. Individual keys can be removed
|
|
3176
3309
|
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
@@ -3261,6 +3394,10 @@ export declare namespace PriceCreateParams {
|
|
|
3261
3394
|
* If unspecified, a single invoice is produced per billing cycle.
|
|
3262
3395
|
*/
|
|
3263
3396
|
invoicing_cycle_configuration?: Shared.NewBillingCycleConfiguration | null;
|
|
3397
|
+
/**
|
|
3398
|
+
* The ID of the license type to associate with this price.
|
|
3399
|
+
*/
|
|
3400
|
+
license_type_id?: string | null;
|
|
3264
3401
|
/**
|
|
3265
3402
|
* User-specified key/value pairs for the resource. Individual keys can be removed
|
|
3266
3403
|
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
@@ -3334,6 +3471,13 @@ export interface PriceEvaluateParams {
|
|
|
3334
3471
|
* to group the underlying billable metric
|
|
3335
3472
|
*/
|
|
3336
3473
|
grouping_keys?: Array<string>;
|
|
3474
|
+
/**
|
|
3475
|
+
* Optional overrides for parameterized billable metric parameters. If the metric
|
|
3476
|
+
* has parameter definitions and no overrides are provided, defaults will be used.
|
|
3477
|
+
*/
|
|
3478
|
+
metric_parameter_overrides?: {
|
|
3479
|
+
[key: string]: unknown;
|
|
3480
|
+
} | null;
|
|
3337
3481
|
}
|
|
3338
3482
|
export interface PriceEvaluateMultipleParams {
|
|
3339
3483
|
/**
|
|
@@ -3375,6 +3519,13 @@ export declare namespace PriceEvaluateMultipleParams {
|
|
|
3375
3519
|
* to group the underlying billable metric
|
|
3376
3520
|
*/
|
|
3377
3521
|
grouping_keys?: Array<string>;
|
|
3522
|
+
/**
|
|
3523
|
+
* Optional overrides for parameterized billable metric parameters. If the metric
|
|
3524
|
+
* has parameter definitions and no overrides are provided, defaults will be used.
|
|
3525
|
+
*/
|
|
3526
|
+
metric_parameter_overrides?: {
|
|
3527
|
+
[key: string]: unknown;
|
|
3528
|
+
} | null;
|
|
3378
3529
|
/**
|
|
3379
3530
|
* New floating price request body params.
|
|
3380
3531
|
*/
|
|
@@ -3455,6 +3606,10 @@ export declare namespace PriceEvaluateMultipleParams {
|
|
|
3455
3606
|
* If unspecified, a single invoice is produced per billing cycle.
|
|
3456
3607
|
*/
|
|
3457
3608
|
invoicing_cycle_configuration?: Shared.NewBillingCycleConfiguration | null;
|
|
3609
|
+
/**
|
|
3610
|
+
* The ID of the license type to associate with this price.
|
|
3611
|
+
*/
|
|
3612
|
+
license_type_id?: string | null;
|
|
3458
3613
|
/**
|
|
3459
3614
|
* User-specified key/value pairs for the resource. Individual keys can be removed
|
|
3460
3615
|
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
@@ -3577,6 +3732,10 @@ export declare namespace PriceEvaluateMultipleParams {
|
|
|
3577
3732
|
* If unspecified, a single invoice is produced per billing cycle.
|
|
3578
3733
|
*/
|
|
3579
3734
|
invoicing_cycle_configuration?: Shared.NewBillingCycleConfiguration | null;
|
|
3735
|
+
/**
|
|
3736
|
+
* The ID of the license type to associate with this price.
|
|
3737
|
+
*/
|
|
3738
|
+
license_type_id?: string | null;
|
|
3580
3739
|
/**
|
|
3581
3740
|
* User-specified key/value pairs for the resource. Individual keys can be removed
|
|
3582
3741
|
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
@@ -3679,6 +3838,10 @@ export declare namespace PriceEvaluateMultipleParams {
|
|
|
3679
3838
|
* If unspecified, a single invoice is produced per billing cycle.
|
|
3680
3839
|
*/
|
|
3681
3840
|
invoicing_cycle_configuration?: Shared.NewBillingCycleConfiguration | null;
|
|
3841
|
+
/**
|
|
3842
|
+
* The ID of the license type to associate with this price.
|
|
3843
|
+
*/
|
|
3844
|
+
license_type_id?: string | null;
|
|
3682
3845
|
/**
|
|
3683
3846
|
* User-specified key/value pairs for the resource. Individual keys can be removed
|
|
3684
3847
|
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
@@ -3781,6 +3944,10 @@ export declare namespace PriceEvaluateMultipleParams {
|
|
|
3781
3944
|
* If unspecified, a single invoice is produced per billing cycle.
|
|
3782
3945
|
*/
|
|
3783
3946
|
invoicing_cycle_configuration?: Shared.NewBillingCycleConfiguration | null;
|
|
3947
|
+
/**
|
|
3948
|
+
* The ID of the license type to associate with this price.
|
|
3949
|
+
*/
|
|
3950
|
+
license_type_id?: string | null;
|
|
3784
3951
|
/**
|
|
3785
3952
|
* User-specified key/value pairs for the resource. Individual keys can be removed
|
|
3786
3953
|
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
@@ -3871,6 +4038,10 @@ export declare namespace PriceEvaluateMultipleParams {
|
|
|
3871
4038
|
* If unspecified, a single invoice is produced per billing cycle.
|
|
3872
4039
|
*/
|
|
3873
4040
|
invoicing_cycle_configuration?: Shared.NewBillingCycleConfiguration | null;
|
|
4041
|
+
/**
|
|
4042
|
+
* The ID of the license type to associate with this price.
|
|
4043
|
+
*/
|
|
4044
|
+
license_type_id?: string | null;
|
|
3874
4045
|
/**
|
|
3875
4046
|
* User-specified key/value pairs for the resource. Individual keys can be removed
|
|
3876
4047
|
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
@@ -3976,6 +4147,13 @@ export declare namespace PriceEvaluatePreviewEventsParams {
|
|
|
3976
4147
|
* to group the underlying billable metric
|
|
3977
4148
|
*/
|
|
3978
4149
|
grouping_keys?: Array<string>;
|
|
4150
|
+
/**
|
|
4151
|
+
* Optional overrides for parameterized billable metric parameters. If the metric
|
|
4152
|
+
* has parameter definitions and no overrides are provided, defaults will be used.
|
|
4153
|
+
*/
|
|
4154
|
+
metric_parameter_overrides?: {
|
|
4155
|
+
[key: string]: unknown;
|
|
4156
|
+
} | null;
|
|
3979
4157
|
/**
|
|
3980
4158
|
* New floating price request body params.
|
|
3981
4159
|
*/
|
|
@@ -4056,6 +4234,10 @@ export declare namespace PriceEvaluatePreviewEventsParams {
|
|
|
4056
4234
|
* If unspecified, a single invoice is produced per billing cycle.
|
|
4057
4235
|
*/
|
|
4058
4236
|
invoicing_cycle_configuration?: Shared.NewBillingCycleConfiguration | null;
|
|
4237
|
+
/**
|
|
4238
|
+
* The ID of the license type to associate with this price.
|
|
4239
|
+
*/
|
|
4240
|
+
license_type_id?: string | null;
|
|
4059
4241
|
/**
|
|
4060
4242
|
* User-specified key/value pairs for the resource. Individual keys can be removed
|
|
4061
4243
|
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
@@ -4178,6 +4360,10 @@ export declare namespace PriceEvaluatePreviewEventsParams {
|
|
|
4178
4360
|
* If unspecified, a single invoice is produced per billing cycle.
|
|
4179
4361
|
*/
|
|
4180
4362
|
invoicing_cycle_configuration?: Shared.NewBillingCycleConfiguration | null;
|
|
4363
|
+
/**
|
|
4364
|
+
* The ID of the license type to associate with this price.
|
|
4365
|
+
*/
|
|
4366
|
+
license_type_id?: string | null;
|
|
4181
4367
|
/**
|
|
4182
4368
|
* User-specified key/value pairs for the resource. Individual keys can be removed
|
|
4183
4369
|
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
@@ -4280,6 +4466,10 @@ export declare namespace PriceEvaluatePreviewEventsParams {
|
|
|
4280
4466
|
* If unspecified, a single invoice is produced per billing cycle.
|
|
4281
4467
|
*/
|
|
4282
4468
|
invoicing_cycle_configuration?: Shared.NewBillingCycleConfiguration | null;
|
|
4469
|
+
/**
|
|
4470
|
+
* The ID of the license type to associate with this price.
|
|
4471
|
+
*/
|
|
4472
|
+
license_type_id?: string | null;
|
|
4283
4473
|
/**
|
|
4284
4474
|
* User-specified key/value pairs for the resource. Individual keys can be removed
|
|
4285
4475
|
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
@@ -4382,6 +4572,10 @@ export declare namespace PriceEvaluatePreviewEventsParams {
|
|
|
4382
4572
|
* If unspecified, a single invoice is produced per billing cycle.
|
|
4383
4573
|
*/
|
|
4384
4574
|
invoicing_cycle_configuration?: Shared.NewBillingCycleConfiguration | null;
|
|
4575
|
+
/**
|
|
4576
|
+
* The ID of the license type to associate with this price.
|
|
4577
|
+
*/
|
|
4578
|
+
license_type_id?: string | null;
|
|
4385
4579
|
/**
|
|
4386
4580
|
* User-specified key/value pairs for the resource. Individual keys can be removed
|
|
4387
4581
|
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
@@ -4472,6 +4666,10 @@ export declare namespace PriceEvaluatePreviewEventsParams {
|
|
|
4472
4666
|
* If unspecified, a single invoice is produced per billing cycle.
|
|
4473
4667
|
*/
|
|
4474
4668
|
invoicing_cycle_configuration?: Shared.NewBillingCycleConfiguration | null;
|
|
4669
|
+
/**
|
|
4670
|
+
* The ID of the license type to associate with this price.
|
|
4671
|
+
*/
|
|
4672
|
+
license_type_id?: string | null;
|
|
4475
4673
|
/**
|
|
4476
4674
|
* User-specified key/value pairs for the resource. Individual keys can be removed
|
|
4477
4675
|
* by setting the value to `null`, and the entire metadata mapping can be cleared
|