orb-billing 4.53.0 → 4.54.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 +13 -0
- package/package.json +1 -1
- package/resources/customers/credits/ledger.d.ts +2 -2
- package/resources/customers/credits/ledger.d.ts.map +1 -1
- package/resources/invoice-line-items.d.ts +169 -0
- package/resources/invoice-line-items.d.ts.map +1 -1
- package/resources/invoices.d.ts +338 -0
- package/resources/invoices.d.ts.map +1 -1
- package/resources/invoices.js.map +1 -1
- package/resources/invoices.mjs.map +1 -1
- package/resources/plans/plans.d.ts +189 -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 +530 -61
- 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 +187 -1
- 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/credits/ledger.ts +2 -2
- package/src/resources/invoice-line-items.ts +215 -0
- package/src/resources/invoices.ts +430 -0
- package/src/resources/plans/plans.ts +228 -0
- package/src/resources/prices/prices.ts +752 -88
- package/src/resources/subscriptions.ts +226 -0
- package/src/version.ts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -13364,6 +13364,8 @@ export namespace SubscriptionPriceIntervalsParams {
|
|
|
13364
13364
|
| Add.NewFloatingMatrixWithDisplayNamePrice
|
|
13365
13365
|
| Add.NewFloatingBulkWithProrationPrice
|
|
13366
13366
|
| Add.NewFloatingGroupedTieredPackagePrice
|
|
13367
|
+
| Add.NewFloatingScalableMatrixWithUnitPricingPrice
|
|
13368
|
+
| Add.NewFloatingScalableMatrixWithTieredPricingPrice
|
|
13367
13369
|
| null;
|
|
13368
13370
|
|
|
13369
13371
|
/**
|
|
@@ -16449,6 +16451,230 @@ export namespace SubscriptionPriceIntervalsParams {
|
|
|
16449
16451
|
duration_unit: 'day' | 'month';
|
|
16450
16452
|
}
|
|
16451
16453
|
}
|
|
16454
|
+
|
|
16455
|
+
export interface NewFloatingScalableMatrixWithUnitPricingPrice {
|
|
16456
|
+
/**
|
|
16457
|
+
* The cadence to bill for this price on.
|
|
16458
|
+
*/
|
|
16459
|
+
cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
|
|
16460
|
+
|
|
16461
|
+
/**
|
|
16462
|
+
* An ISO 4217 currency string for which this price is billed in.
|
|
16463
|
+
*/
|
|
16464
|
+
currency: string;
|
|
16465
|
+
|
|
16466
|
+
/**
|
|
16467
|
+
* The id of the item the plan will be associated with.
|
|
16468
|
+
*/
|
|
16469
|
+
item_id: string;
|
|
16470
|
+
|
|
16471
|
+
model_type: 'scalable_matrix_with_unit_pricing';
|
|
16472
|
+
|
|
16473
|
+
/**
|
|
16474
|
+
* The name of the price.
|
|
16475
|
+
*/
|
|
16476
|
+
name: string;
|
|
16477
|
+
|
|
16478
|
+
scalable_matrix_with_unit_pricing_config: Record<string, unknown>;
|
|
16479
|
+
|
|
16480
|
+
/**
|
|
16481
|
+
* The id of the billable metric for the price. Only needed if the price is
|
|
16482
|
+
* usage-based.
|
|
16483
|
+
*/
|
|
16484
|
+
billable_metric_id?: string | null;
|
|
16485
|
+
|
|
16486
|
+
/**
|
|
16487
|
+
* If the Price represents a fixed cost, the price will be billed in-advance if
|
|
16488
|
+
* this is true, and in-arrears if this is false.
|
|
16489
|
+
*/
|
|
16490
|
+
billed_in_advance?: boolean | null;
|
|
16491
|
+
|
|
16492
|
+
/**
|
|
16493
|
+
* For custom cadence: specifies the duration of the billing period in days or
|
|
16494
|
+
* months.
|
|
16495
|
+
*/
|
|
16496
|
+
billing_cycle_configuration?: NewFloatingScalableMatrixWithUnitPricingPrice.BillingCycleConfiguration | null;
|
|
16497
|
+
|
|
16498
|
+
/**
|
|
16499
|
+
* The per unit conversion rate of the price currency to the invoicing currency.
|
|
16500
|
+
*/
|
|
16501
|
+
conversion_rate?: number | null;
|
|
16502
|
+
|
|
16503
|
+
/**
|
|
16504
|
+
* An alias for the price.
|
|
16505
|
+
*/
|
|
16506
|
+
external_price_id?: string | null;
|
|
16507
|
+
|
|
16508
|
+
/**
|
|
16509
|
+
* If the Price represents a fixed cost, this represents the quantity of units
|
|
16510
|
+
* applied.
|
|
16511
|
+
*/
|
|
16512
|
+
fixed_price_quantity?: number | null;
|
|
16513
|
+
|
|
16514
|
+
/**
|
|
16515
|
+
* The property used to group this price on an invoice
|
|
16516
|
+
*/
|
|
16517
|
+
invoice_grouping_key?: string | null;
|
|
16518
|
+
|
|
16519
|
+
/**
|
|
16520
|
+
* Within each billing cycle, specifies the cadence at which invoices are produced.
|
|
16521
|
+
* If unspecified, a single invoice is produced per billing cycle.
|
|
16522
|
+
*/
|
|
16523
|
+
invoicing_cycle_configuration?: NewFloatingScalableMatrixWithUnitPricingPrice.InvoicingCycleConfiguration | null;
|
|
16524
|
+
|
|
16525
|
+
/**
|
|
16526
|
+
* User-specified key/value pairs for the resource. Individual keys can be removed
|
|
16527
|
+
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
16528
|
+
* by setting `metadata` to `null`.
|
|
16529
|
+
*/
|
|
16530
|
+
metadata?: Record<string, string | null> | null;
|
|
16531
|
+
}
|
|
16532
|
+
|
|
16533
|
+
export namespace NewFloatingScalableMatrixWithUnitPricingPrice {
|
|
16534
|
+
/**
|
|
16535
|
+
* For custom cadence: specifies the duration of the billing period in days or
|
|
16536
|
+
* months.
|
|
16537
|
+
*/
|
|
16538
|
+
export interface BillingCycleConfiguration {
|
|
16539
|
+
/**
|
|
16540
|
+
* The duration of the billing period.
|
|
16541
|
+
*/
|
|
16542
|
+
duration: number;
|
|
16543
|
+
|
|
16544
|
+
/**
|
|
16545
|
+
* The unit of billing period duration.
|
|
16546
|
+
*/
|
|
16547
|
+
duration_unit: 'day' | 'month';
|
|
16548
|
+
}
|
|
16549
|
+
|
|
16550
|
+
/**
|
|
16551
|
+
* Within each billing cycle, specifies the cadence at which invoices are produced.
|
|
16552
|
+
* If unspecified, a single invoice is produced per billing cycle.
|
|
16553
|
+
*/
|
|
16554
|
+
export interface InvoicingCycleConfiguration {
|
|
16555
|
+
/**
|
|
16556
|
+
* The duration of the billing period.
|
|
16557
|
+
*/
|
|
16558
|
+
duration: number;
|
|
16559
|
+
|
|
16560
|
+
/**
|
|
16561
|
+
* The unit of billing period duration.
|
|
16562
|
+
*/
|
|
16563
|
+
duration_unit: 'day' | 'month';
|
|
16564
|
+
}
|
|
16565
|
+
}
|
|
16566
|
+
|
|
16567
|
+
export interface NewFloatingScalableMatrixWithTieredPricingPrice {
|
|
16568
|
+
/**
|
|
16569
|
+
* The cadence to bill for this price on.
|
|
16570
|
+
*/
|
|
16571
|
+
cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';
|
|
16572
|
+
|
|
16573
|
+
/**
|
|
16574
|
+
* An ISO 4217 currency string for which this price is billed in.
|
|
16575
|
+
*/
|
|
16576
|
+
currency: string;
|
|
16577
|
+
|
|
16578
|
+
/**
|
|
16579
|
+
* The id of the item the plan will be associated with.
|
|
16580
|
+
*/
|
|
16581
|
+
item_id: string;
|
|
16582
|
+
|
|
16583
|
+
model_type: 'scalable_matrix_with_tiered_pricing';
|
|
16584
|
+
|
|
16585
|
+
/**
|
|
16586
|
+
* The name of the price.
|
|
16587
|
+
*/
|
|
16588
|
+
name: string;
|
|
16589
|
+
|
|
16590
|
+
scalable_matrix_with_tiered_pricing_config: Record<string, unknown>;
|
|
16591
|
+
|
|
16592
|
+
/**
|
|
16593
|
+
* The id of the billable metric for the price. Only needed if the price is
|
|
16594
|
+
* usage-based.
|
|
16595
|
+
*/
|
|
16596
|
+
billable_metric_id?: string | null;
|
|
16597
|
+
|
|
16598
|
+
/**
|
|
16599
|
+
* If the Price represents a fixed cost, the price will be billed in-advance if
|
|
16600
|
+
* this is true, and in-arrears if this is false.
|
|
16601
|
+
*/
|
|
16602
|
+
billed_in_advance?: boolean | null;
|
|
16603
|
+
|
|
16604
|
+
/**
|
|
16605
|
+
* For custom cadence: specifies the duration of the billing period in days or
|
|
16606
|
+
* months.
|
|
16607
|
+
*/
|
|
16608
|
+
billing_cycle_configuration?: NewFloatingScalableMatrixWithTieredPricingPrice.BillingCycleConfiguration | null;
|
|
16609
|
+
|
|
16610
|
+
/**
|
|
16611
|
+
* The per unit conversion rate of the price currency to the invoicing currency.
|
|
16612
|
+
*/
|
|
16613
|
+
conversion_rate?: number | null;
|
|
16614
|
+
|
|
16615
|
+
/**
|
|
16616
|
+
* An alias for the price.
|
|
16617
|
+
*/
|
|
16618
|
+
external_price_id?: string | null;
|
|
16619
|
+
|
|
16620
|
+
/**
|
|
16621
|
+
* If the Price represents a fixed cost, this represents the quantity of units
|
|
16622
|
+
* applied.
|
|
16623
|
+
*/
|
|
16624
|
+
fixed_price_quantity?: number | null;
|
|
16625
|
+
|
|
16626
|
+
/**
|
|
16627
|
+
* The property used to group this price on an invoice
|
|
16628
|
+
*/
|
|
16629
|
+
invoice_grouping_key?: string | null;
|
|
16630
|
+
|
|
16631
|
+
/**
|
|
16632
|
+
* Within each billing cycle, specifies the cadence at which invoices are produced.
|
|
16633
|
+
* If unspecified, a single invoice is produced per billing cycle.
|
|
16634
|
+
*/
|
|
16635
|
+
invoicing_cycle_configuration?: NewFloatingScalableMatrixWithTieredPricingPrice.InvoicingCycleConfiguration | null;
|
|
16636
|
+
|
|
16637
|
+
/**
|
|
16638
|
+
* User-specified key/value pairs for the resource. Individual keys can be removed
|
|
16639
|
+
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
16640
|
+
* by setting `metadata` to `null`.
|
|
16641
|
+
*/
|
|
16642
|
+
metadata?: Record<string, string | null> | null;
|
|
16643
|
+
}
|
|
16644
|
+
|
|
16645
|
+
export namespace NewFloatingScalableMatrixWithTieredPricingPrice {
|
|
16646
|
+
/**
|
|
16647
|
+
* For custom cadence: specifies the duration of the billing period in days or
|
|
16648
|
+
* months.
|
|
16649
|
+
*/
|
|
16650
|
+
export interface BillingCycleConfiguration {
|
|
16651
|
+
/**
|
|
16652
|
+
* The duration of the billing period.
|
|
16653
|
+
*/
|
|
16654
|
+
duration: number;
|
|
16655
|
+
|
|
16656
|
+
/**
|
|
16657
|
+
* The unit of billing period duration.
|
|
16658
|
+
*/
|
|
16659
|
+
duration_unit: 'day' | 'month';
|
|
16660
|
+
}
|
|
16661
|
+
|
|
16662
|
+
/**
|
|
16663
|
+
* Within each billing cycle, specifies the cadence at which invoices are produced.
|
|
16664
|
+
* If unspecified, a single invoice is produced per billing cycle.
|
|
16665
|
+
*/
|
|
16666
|
+
export interface InvoicingCycleConfiguration {
|
|
16667
|
+
/**
|
|
16668
|
+
* The duration of the billing period.
|
|
16669
|
+
*/
|
|
16670
|
+
duration: number;
|
|
16671
|
+
|
|
16672
|
+
/**
|
|
16673
|
+
* The unit of billing period duration.
|
|
16674
|
+
*/
|
|
16675
|
+
duration_unit: 'day' | 'month';
|
|
16676
|
+
}
|
|
16677
|
+
}
|
|
16452
16678
|
}
|
|
16453
16679
|
|
|
16454
16680
|
export interface AddAdjustment {
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '4.
|
|
1
|
+
export const VERSION = '4.54.0'; // x-release-please-version
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "4.
|
|
1
|
+
export declare const VERSION = "4.54.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '4.
|
|
1
|
+
export const VERSION = '4.54.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|