orb-billing 4.56.0 → 4.58.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 +27 -0
- package/package.json +29 -8
- package/resources/customers/costs.d.ts +10 -20
- package/resources/customers/costs.d.ts.map +1 -1
- package/resources/events/events.d.ts +2 -0
- package/resources/events/events.d.ts.map +1 -1
- package/resources/events/events.js +2 -0
- package/resources/events/events.js.map +1 -1
- package/resources/events/events.mjs +2 -0
- package/resources/events/events.mjs.map +1 -1
- package/resources/plans/plans.d.ts +95 -1
- package/resources/plans/plans.d.ts.map +1 -1
- package/resources/plans/plans.js.map +1 -1
- package/resources/plans/plans.mjs.map +1 -1
- package/resources/prices/prices.d.ts +174 -2
- package/resources/prices/prices.d.ts.map +1 -1
- package/resources/prices/prices.js.map +1 -1
- package/resources/prices/prices.mjs.map +1 -1
- package/resources/subscriptions.d.ts +123 -11
- package/resources/subscriptions.d.ts.map +1 -1
- package/resources/subscriptions.js.map +1 -1
- package/resources/subscriptions.mjs.map +1 -1
- package/src/resources/customers/costs.ts +12 -20
- package/src/resources/events/events.ts +2 -0
- package/src/resources/plans/plans.ts +114 -0
- package/src/resources/prices/prices.ts +234 -2
- package/src/resources/subscriptions.ts +147 -10
- package/src/version.ts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"subscriptions.js","sourceRoot":"","sources":["../src/resources/subscriptions.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,6CAA0C;AAC1C,qCAA2C;AAM3C,iDAAsD;AAEtD,MAAa,aAAc,SAAQ,sBAAW;IAC5C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,kBAAkB,cAAc,0BAA0B,EAAE,OAAO,CAAC,CAAC;IAChG,CAAC;IAED;;;;;;OAMG;IACH,iCAAiC,CAC/B,cAAsB,EACtB,IAAyD,EACzD,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,kBAAkB,cAAc,wCAAwC,EAAE;YACjG,IAAI;YACJ,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;;OAGG;IACH,4BAA4B,CAC1B,cAAsB,EACtB,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,kBAAkB,cAAc,kCAAkC,EAAE,OAAO,CAAC,CAAC;IACxG,CAAC;IAED;;;;;;;;;;;;;;;OAeG;IACH,sBAAsB,CACpB,cAAsB,EACtB,IAA8C,EAC9C,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,kBAAkB,cAAc,4BAA4B,EAAE;YACrF,IAAI;YACJ,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;;;;;;;;OAmBG;IACH,WAAW,CACT,cAAsB,EACtB,IAAmC,EACnC,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,kBAAkB,cAAc,eAAe,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAClG,CAAC;CACF;AAED,MAAM,OAAO,iBAAkB,SAAQ,IAAkB;CAAG;AAE5D,MAAM,OAAO,sCAAuC,SAAQ,IAAuC;CAAG;AAo2pBtG,aAAa,CAAC,iBAAiB,GAAG,iBAAiB,CAAC;AACpD,aAAa,CAAC,sCAAsC,GAAG,sCAAsC,CAAC"}
|
|
@@ -311,19 +311,15 @@ export namespace CostListResponse {
|
|
|
311
311
|
export namespace Data {
|
|
312
312
|
export interface PerPriceCost {
|
|
313
313
|
/**
|
|
314
|
-
* The
|
|
315
|
-
* resulting in a charge on an invoice in the form of an invoice line item. Prices
|
|
316
|
-
* take a quantity and determine an amount to bill.
|
|
317
|
-
*
|
|
318
|
-
* Orb supports a few different pricing models out of the box. Each of these models
|
|
319
|
-
* is serialized differently in a given Price object. The model_type field
|
|
320
|
-
* determines the key for the configuration object that is present.
|
|
321
|
-
*
|
|
322
|
-
* For more on the types of prices, see
|
|
323
|
-
* [the core concepts documentation](/core-concepts#plan-and-price)
|
|
314
|
+
* The price object
|
|
324
315
|
*/
|
|
325
316
|
price: PricesAPI.Price;
|
|
326
317
|
|
|
318
|
+
/**
|
|
319
|
+
* The price the cost is associated with
|
|
320
|
+
*/
|
|
321
|
+
price_id: string;
|
|
322
|
+
|
|
327
323
|
/**
|
|
328
324
|
* Price's contributions for the timeframe, excluding any minimums and discounts.
|
|
329
325
|
*/
|
|
@@ -368,19 +364,15 @@ export namespace CostListByExternalIDResponse {
|
|
|
368
364
|
export namespace Data {
|
|
369
365
|
export interface PerPriceCost {
|
|
370
366
|
/**
|
|
371
|
-
* The
|
|
372
|
-
* resulting in a charge on an invoice in the form of an invoice line item. Prices
|
|
373
|
-
* take a quantity and determine an amount to bill.
|
|
374
|
-
*
|
|
375
|
-
* Orb supports a few different pricing models out of the box. Each of these models
|
|
376
|
-
* is serialized differently in a given Price object. The model_type field
|
|
377
|
-
* determines the key for the configuration object that is present.
|
|
378
|
-
*
|
|
379
|
-
* For more on the types of prices, see
|
|
380
|
-
* [the core concepts documentation](/core-concepts#plan-and-price)
|
|
367
|
+
* The price object
|
|
381
368
|
*/
|
|
382
369
|
price: PricesAPI.Price;
|
|
383
370
|
|
|
371
|
+
/**
|
|
372
|
+
* The price the cost is associated with
|
|
373
|
+
*/
|
|
374
|
+
price_id: string;
|
|
375
|
+
|
|
384
376
|
/**
|
|
385
377
|
* Price's contributions for the timeframe, excluding any minimums and discounts.
|
|
386
378
|
*/
|
|
@@ -207,6 +207,8 @@ export class Events extends APIResource {
|
|
|
207
207
|
* flexible query engine to determine usage.
|
|
208
208
|
* - Logging a region or cluster with each event can help you provide customers
|
|
209
209
|
* more granular visibility into their usage.
|
|
210
|
+
* - If you are using matrix pricing and matching a matrix price key with a
|
|
211
|
+
* property, you should ensure the value for that property is sent as a string.
|
|
210
212
|
*
|
|
211
213
|
* We encourage logging this metadata with an eye towards future use cases to
|
|
212
214
|
* ensure full coverage for historical data. The datatype of the value in the
|
|
@@ -500,6 +500,7 @@ export interface PlanCreateParams {
|
|
|
500
500
|
| PlanCreateParams.NewPlanMaxGroupTieredPackagePrice
|
|
501
501
|
| PlanCreateParams.NewPlanScalableMatrixWithUnitPricingPrice
|
|
502
502
|
| PlanCreateParams.NewPlanScalableMatrixWithTieredPricingPrice
|
|
503
|
+
| PlanCreateParams.NewPlanCumulativeGroupedBulkPrice
|
|
503
504
|
>;
|
|
504
505
|
|
|
505
506
|
/**
|
|
@@ -3413,6 +3414,119 @@ export namespace PlanCreateParams {
|
|
|
3413
3414
|
duration_unit: 'day' | 'month';
|
|
3414
3415
|
}
|
|
3415
3416
|
}
|
|
3417
|
+
|
|
3418
|
+
export interface NewPlanCumulativeGroupedBulkPrice {
|
|
3419
|
+
/**
|
|
3420
|
+
* The cadence to bill for this price on.
|
|
3421
|
+
*/
|
|
3422
|
+
cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
|
|
3423
|
+
|
|
3424
|
+
cumulative_grouped_bulk_config: Record<string, unknown>;
|
|
3425
|
+
|
|
3426
|
+
/**
|
|
3427
|
+
* The id of the item the plan will be associated with.
|
|
3428
|
+
*/
|
|
3429
|
+
item_id: string;
|
|
3430
|
+
|
|
3431
|
+
model_type: 'cumulative_grouped_bulk';
|
|
3432
|
+
|
|
3433
|
+
/**
|
|
3434
|
+
* The name of the price.
|
|
3435
|
+
*/
|
|
3436
|
+
name: string;
|
|
3437
|
+
|
|
3438
|
+
/**
|
|
3439
|
+
* The id of the billable metric for the price. Only needed if the price is
|
|
3440
|
+
* usage-based.
|
|
3441
|
+
*/
|
|
3442
|
+
billable_metric_id?: string | null;
|
|
3443
|
+
|
|
3444
|
+
/**
|
|
3445
|
+
* If the Price represents a fixed cost, the price will be billed in-advance if
|
|
3446
|
+
* this is true, and in-arrears if this is false.
|
|
3447
|
+
*/
|
|
3448
|
+
billed_in_advance?: boolean | null;
|
|
3449
|
+
|
|
3450
|
+
/**
|
|
3451
|
+
* For custom cadence: specifies the duration of the billing period in days or
|
|
3452
|
+
* months.
|
|
3453
|
+
*/
|
|
3454
|
+
billing_cycle_configuration?: NewPlanCumulativeGroupedBulkPrice.BillingCycleConfiguration | null;
|
|
3455
|
+
|
|
3456
|
+
/**
|
|
3457
|
+
* The per unit conversion rate of the price currency to the invoicing currency.
|
|
3458
|
+
*/
|
|
3459
|
+
conversion_rate?: number | null;
|
|
3460
|
+
|
|
3461
|
+
/**
|
|
3462
|
+
* An ISO 4217 currency string, or custom pricing unit identifier, in which this
|
|
3463
|
+
* price is billed.
|
|
3464
|
+
*/
|
|
3465
|
+
currency?: string | null;
|
|
3466
|
+
|
|
3467
|
+
/**
|
|
3468
|
+
* An alias for the price.
|
|
3469
|
+
*/
|
|
3470
|
+
external_price_id?: string | null;
|
|
3471
|
+
|
|
3472
|
+
/**
|
|
3473
|
+
* If the Price represents a fixed cost, this represents the quantity of units
|
|
3474
|
+
* applied.
|
|
3475
|
+
*/
|
|
3476
|
+
fixed_price_quantity?: number | null;
|
|
3477
|
+
|
|
3478
|
+
/**
|
|
3479
|
+
* The property used to group this price on an invoice
|
|
3480
|
+
*/
|
|
3481
|
+
invoice_grouping_key?: string | null;
|
|
3482
|
+
|
|
3483
|
+
/**
|
|
3484
|
+
* Within each billing cycle, specifies the cadence at which invoices are produced.
|
|
3485
|
+
* If unspecified, a single invoice is produced per billing cycle.
|
|
3486
|
+
*/
|
|
3487
|
+
invoicing_cycle_configuration?: NewPlanCumulativeGroupedBulkPrice.InvoicingCycleConfiguration | null;
|
|
3488
|
+
|
|
3489
|
+
/**
|
|
3490
|
+
* User-specified key/value pairs for the resource. Individual keys can be removed
|
|
3491
|
+
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
3492
|
+
* by setting `metadata` to `null`.
|
|
3493
|
+
*/
|
|
3494
|
+
metadata?: Record<string, string | null> | null;
|
|
3495
|
+
}
|
|
3496
|
+
|
|
3497
|
+
export namespace NewPlanCumulativeGroupedBulkPrice {
|
|
3498
|
+
/**
|
|
3499
|
+
* For custom cadence: specifies the duration of the billing period in days or
|
|
3500
|
+
* months.
|
|
3501
|
+
*/
|
|
3502
|
+
export interface BillingCycleConfiguration {
|
|
3503
|
+
/**
|
|
3504
|
+
* The duration of the billing period.
|
|
3505
|
+
*/
|
|
3506
|
+
duration: number;
|
|
3507
|
+
|
|
3508
|
+
/**
|
|
3509
|
+
* The unit of billing period duration.
|
|
3510
|
+
*/
|
|
3511
|
+
duration_unit: 'day' | 'month';
|
|
3512
|
+
}
|
|
3513
|
+
|
|
3514
|
+
/**
|
|
3515
|
+
* Within each billing cycle, specifies the cadence at which invoices are produced.
|
|
3516
|
+
* If unspecified, a single invoice is produced per billing cycle.
|
|
3517
|
+
*/
|
|
3518
|
+
export interface InvoicingCycleConfiguration {
|
|
3519
|
+
/**
|
|
3520
|
+
* The duration of the billing period.
|
|
3521
|
+
*/
|
|
3522
|
+
duration: number;
|
|
3523
|
+
|
|
3524
|
+
/**
|
|
3525
|
+
* The unit of billing period duration.
|
|
3526
|
+
*/
|
|
3527
|
+
duration_unit: 'day' | 'month';
|
|
3528
|
+
}
|
|
3529
|
+
}
|
|
3416
3530
|
}
|
|
3417
3531
|
|
|
3418
3532
|
export interface PlanUpdateParams {
|
|
@@ -149,7 +149,8 @@ export type Price =
|
|
|
149
149
|
| Price.GroupedTieredPackagePrice
|
|
150
150
|
| Price.MaxGroupTieredPackagePrice
|
|
151
151
|
| Price.ScalableMatrixWithUnitPricingPrice
|
|
152
|
-
| Price.ScalableMatrixWithTieredPricingPrice
|
|
152
|
+
| Price.ScalableMatrixWithTieredPricingPrice
|
|
153
|
+
| Price.CumulativeGroupedBulkPrice;
|
|
153
154
|
|
|
154
155
|
export namespace Price {
|
|
155
156
|
export interface UnitPrice {
|
|
@@ -3546,6 +3547,124 @@ export namespace Price {
|
|
|
3546
3547
|
dimensional_price_group_id: string;
|
|
3547
3548
|
}
|
|
3548
3549
|
}
|
|
3550
|
+
|
|
3551
|
+
export interface CumulativeGroupedBulkPrice {
|
|
3552
|
+
id: string;
|
|
3553
|
+
|
|
3554
|
+
billable_metric: CumulativeGroupedBulkPrice.BillableMetric | null;
|
|
3555
|
+
|
|
3556
|
+
billing_cycle_configuration: CumulativeGroupedBulkPrice.BillingCycleConfiguration;
|
|
3557
|
+
|
|
3558
|
+
cadence: 'one_time' | 'monthly' | 'quarterly' | 'semi_annual' | 'annual' | 'custom';
|
|
3559
|
+
|
|
3560
|
+
conversion_rate: number | null;
|
|
3561
|
+
|
|
3562
|
+
created_at: string;
|
|
3563
|
+
|
|
3564
|
+
credit_allocation: CumulativeGroupedBulkPrice.CreditAllocation | null;
|
|
3565
|
+
|
|
3566
|
+
cumulative_grouped_bulk_config: Record<string, unknown>;
|
|
3567
|
+
|
|
3568
|
+
currency: string;
|
|
3569
|
+
|
|
3570
|
+
discount: Shared.Discount | null;
|
|
3571
|
+
|
|
3572
|
+
external_price_id: string | null;
|
|
3573
|
+
|
|
3574
|
+
fixed_price_quantity: number | null;
|
|
3575
|
+
|
|
3576
|
+
invoicing_cycle_configuration: CumulativeGroupedBulkPrice.InvoicingCycleConfiguration | null;
|
|
3577
|
+
|
|
3578
|
+
item: CumulativeGroupedBulkPrice.Item;
|
|
3579
|
+
|
|
3580
|
+
maximum: CumulativeGroupedBulkPrice.Maximum | null;
|
|
3581
|
+
|
|
3582
|
+
maximum_amount: string | null;
|
|
3583
|
+
|
|
3584
|
+
/**
|
|
3585
|
+
* User specified key-value pairs for the resource. If not present, this defaults
|
|
3586
|
+
* to an empty dictionary. Individual keys can be removed by setting the value to
|
|
3587
|
+
* `null`, and the entire metadata mapping can be cleared by setting `metadata` to
|
|
3588
|
+
* `null`.
|
|
3589
|
+
*/
|
|
3590
|
+
metadata: Record<string, string>;
|
|
3591
|
+
|
|
3592
|
+
minimum: CumulativeGroupedBulkPrice.Minimum | null;
|
|
3593
|
+
|
|
3594
|
+
minimum_amount: string | null;
|
|
3595
|
+
|
|
3596
|
+
model_type: 'cumulative_grouped_bulk';
|
|
3597
|
+
|
|
3598
|
+
name: string;
|
|
3599
|
+
|
|
3600
|
+
plan_phase_order: number | null;
|
|
3601
|
+
|
|
3602
|
+
price_type: 'usage_price' | 'fixed_price';
|
|
3603
|
+
|
|
3604
|
+
dimensional_price_configuration?: CumulativeGroupedBulkPrice.DimensionalPriceConfiguration | null;
|
|
3605
|
+
}
|
|
3606
|
+
|
|
3607
|
+
export namespace CumulativeGroupedBulkPrice {
|
|
3608
|
+
export interface BillableMetric {
|
|
3609
|
+
id: string;
|
|
3610
|
+
}
|
|
3611
|
+
|
|
3612
|
+
export interface BillingCycleConfiguration {
|
|
3613
|
+
duration: number;
|
|
3614
|
+
|
|
3615
|
+
duration_unit: 'day' | 'month';
|
|
3616
|
+
}
|
|
3617
|
+
|
|
3618
|
+
export interface CreditAllocation {
|
|
3619
|
+
allows_rollover: boolean;
|
|
3620
|
+
|
|
3621
|
+
currency: string;
|
|
3622
|
+
}
|
|
3623
|
+
|
|
3624
|
+
export interface InvoicingCycleConfiguration {
|
|
3625
|
+
duration: number;
|
|
3626
|
+
|
|
3627
|
+
duration_unit: 'day' | 'month';
|
|
3628
|
+
}
|
|
3629
|
+
|
|
3630
|
+
export interface Item {
|
|
3631
|
+
id: string;
|
|
3632
|
+
|
|
3633
|
+
name: string;
|
|
3634
|
+
}
|
|
3635
|
+
|
|
3636
|
+
export interface Maximum {
|
|
3637
|
+
/**
|
|
3638
|
+
* List of price_ids that this maximum amount applies to. For plan/plan phase
|
|
3639
|
+
* maximums, this can be a subset of prices.
|
|
3640
|
+
*/
|
|
3641
|
+
applies_to_price_ids: Array<string>;
|
|
3642
|
+
|
|
3643
|
+
/**
|
|
3644
|
+
* Maximum amount applied
|
|
3645
|
+
*/
|
|
3646
|
+
maximum_amount: string;
|
|
3647
|
+
}
|
|
3648
|
+
|
|
3649
|
+
export interface Minimum {
|
|
3650
|
+
/**
|
|
3651
|
+
* List of price_ids that this minimum amount applies to. For plan/plan phase
|
|
3652
|
+
* minimums, this can be a subset of prices.
|
|
3653
|
+
*/
|
|
3654
|
+
applies_to_price_ids: Array<string>;
|
|
3655
|
+
|
|
3656
|
+
/**
|
|
3657
|
+
* Minimum amount applied
|
|
3658
|
+
*/
|
|
3659
|
+
minimum_amount: string;
|
|
3660
|
+
}
|
|
3661
|
+
|
|
3662
|
+
export interface DimensionalPriceConfiguration {
|
|
3663
|
+
dimension_values: Array<string>;
|
|
3664
|
+
|
|
3665
|
+
dimensional_price_group_id: string;
|
|
3666
|
+
}
|
|
3667
|
+
}
|
|
3549
3668
|
}
|
|
3550
3669
|
|
|
3551
3670
|
export interface PriceEvaluateResponse {
|
|
@@ -3579,7 +3698,8 @@ export type PriceCreateParams =
|
|
|
3579
3698
|
| PriceCreateParams.NewFloatingBulkWithProrationPrice
|
|
3580
3699
|
| PriceCreateParams.NewFloatingGroupedTieredPackagePrice
|
|
3581
3700
|
| PriceCreateParams.NewFloatingScalableMatrixWithUnitPricingPrice
|
|
3582
|
-
| PriceCreateParams.NewFloatingScalableMatrixWithTieredPricingPrice
|
|
3701
|
+
| PriceCreateParams.NewFloatingScalableMatrixWithTieredPricingPrice
|
|
3702
|
+
| PriceCreateParams.NewFloatingCumulativeGroupedBulkPrice;
|
|
3583
3703
|
|
|
3584
3704
|
export declare namespace PriceCreateParams {
|
|
3585
3705
|
export interface NewFloatingUnitPrice {
|
|
@@ -6814,6 +6934,118 @@ export declare namespace PriceCreateParams {
|
|
|
6814
6934
|
duration_unit: 'day' | 'month';
|
|
6815
6935
|
}
|
|
6816
6936
|
}
|
|
6937
|
+
|
|
6938
|
+
export interface NewFloatingCumulativeGroupedBulkPrice {
|
|
6939
|
+
/**
|
|
6940
|
+
* The cadence to bill for this price on.
|
|
6941
|
+
*/
|
|
6942
|
+
cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
|
|
6943
|
+
|
|
6944
|
+
cumulative_grouped_bulk_config: Record<string, unknown>;
|
|
6945
|
+
|
|
6946
|
+
/**
|
|
6947
|
+
* An ISO 4217 currency string for which this price is billed in.
|
|
6948
|
+
*/
|
|
6949
|
+
currency: string;
|
|
6950
|
+
|
|
6951
|
+
/**
|
|
6952
|
+
* The id of the item the plan will be associated with.
|
|
6953
|
+
*/
|
|
6954
|
+
item_id: string;
|
|
6955
|
+
|
|
6956
|
+
model_type: 'cumulative_grouped_bulk';
|
|
6957
|
+
|
|
6958
|
+
/**
|
|
6959
|
+
* The name of the price.
|
|
6960
|
+
*/
|
|
6961
|
+
name: string;
|
|
6962
|
+
|
|
6963
|
+
/**
|
|
6964
|
+
* The id of the billable metric for the price. Only needed if the price is
|
|
6965
|
+
* usage-based.
|
|
6966
|
+
*/
|
|
6967
|
+
billable_metric_id?: string | null;
|
|
6968
|
+
|
|
6969
|
+
/**
|
|
6970
|
+
* If the Price represents a fixed cost, the price will be billed in-advance if
|
|
6971
|
+
* this is true, and in-arrears if this is false.
|
|
6972
|
+
*/
|
|
6973
|
+
billed_in_advance?: boolean | null;
|
|
6974
|
+
|
|
6975
|
+
/**
|
|
6976
|
+
* For custom cadence: specifies the duration of the billing period in days or
|
|
6977
|
+
* months.
|
|
6978
|
+
*/
|
|
6979
|
+
billing_cycle_configuration?: NewFloatingCumulativeGroupedBulkPrice.BillingCycleConfiguration | null;
|
|
6980
|
+
|
|
6981
|
+
/**
|
|
6982
|
+
* The per unit conversion rate of the price currency to the invoicing currency.
|
|
6983
|
+
*/
|
|
6984
|
+
conversion_rate?: number | null;
|
|
6985
|
+
|
|
6986
|
+
/**
|
|
6987
|
+
* An alias for the price.
|
|
6988
|
+
*/
|
|
6989
|
+
external_price_id?: string | null;
|
|
6990
|
+
|
|
6991
|
+
/**
|
|
6992
|
+
* If the Price represents a fixed cost, this represents the quantity of units
|
|
6993
|
+
* applied.
|
|
6994
|
+
*/
|
|
6995
|
+
fixed_price_quantity?: number | null;
|
|
6996
|
+
|
|
6997
|
+
/**
|
|
6998
|
+
* The property used to group this price on an invoice
|
|
6999
|
+
*/
|
|
7000
|
+
invoice_grouping_key?: string | null;
|
|
7001
|
+
|
|
7002
|
+
/**
|
|
7003
|
+
* Within each billing cycle, specifies the cadence at which invoices are produced.
|
|
7004
|
+
* If unspecified, a single invoice is produced per billing cycle.
|
|
7005
|
+
*/
|
|
7006
|
+
invoicing_cycle_configuration?: NewFloatingCumulativeGroupedBulkPrice.InvoicingCycleConfiguration | null;
|
|
7007
|
+
|
|
7008
|
+
/**
|
|
7009
|
+
* User-specified key/value pairs for the resource. Individual keys can be removed
|
|
7010
|
+
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
7011
|
+
* by setting `metadata` to `null`.
|
|
7012
|
+
*/
|
|
7013
|
+
metadata?: Record<string, string | null> | null;
|
|
7014
|
+
}
|
|
7015
|
+
|
|
7016
|
+
export namespace NewFloatingCumulativeGroupedBulkPrice {
|
|
7017
|
+
/**
|
|
7018
|
+
* For custom cadence: specifies the duration of the billing period in days or
|
|
7019
|
+
* months.
|
|
7020
|
+
*/
|
|
7021
|
+
export interface BillingCycleConfiguration {
|
|
7022
|
+
/**
|
|
7023
|
+
* The duration of the billing period.
|
|
7024
|
+
*/
|
|
7025
|
+
duration: number;
|
|
7026
|
+
|
|
7027
|
+
/**
|
|
7028
|
+
* The unit of billing period duration.
|
|
7029
|
+
*/
|
|
7030
|
+
duration_unit: 'day' | 'month';
|
|
7031
|
+
}
|
|
7032
|
+
|
|
7033
|
+
/**
|
|
7034
|
+
* Within each billing cycle, specifies the cadence at which invoices are produced.
|
|
7035
|
+
* If unspecified, a single invoice is produced per billing cycle.
|
|
7036
|
+
*/
|
|
7037
|
+
export interface InvoicingCycleConfiguration {
|
|
7038
|
+
/**
|
|
7039
|
+
* The duration of the billing period.
|
|
7040
|
+
*/
|
|
7041
|
+
duration: number;
|
|
7042
|
+
|
|
7043
|
+
/**
|
|
7044
|
+
* The unit of billing period duration.
|
|
7045
|
+
*/
|
|
7046
|
+
duration_unit: 'day' | 'month';
|
|
7047
|
+
}
|
|
7048
|
+
}
|
|
6817
7049
|
}
|
|
6818
7050
|
|
|
6819
7051
|
export interface PriceUpdateParams {
|