Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "5.31.0"
".": "5.32.0"
}
4 changes: 2 additions & 2 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 118
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-9e751a2aefff382af949380b5979a80cb02743eca1583cf5146325fb400ba87f.yml
openapi_spec_hash: 219a1008f47d3293f64f1baebe2d6eb5
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-947253d9be505473c1c2cb0193d2602fa6b017e221f482be3f4f374c6156b350.yml
openapi_spec_hash: 1b40d1a85b4b846a1c14634fbbc65da3
config_hash: e6db17547fe854b1c240407cf4c6dc9e
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## 5.32.0 (2025-11-16)

Full Changelog: [v5.31.0...v5.32.0](https://github.com/orbcorp/orb-node/compare/v5.31.0...v5.32.0)

### Features

* **api:** api update ([d431aae](https://github.com/orbcorp/orb-node/commit/d431aae064fa65d8aaf44d0fbc650f5fe66311b5))

## 5.31.0 (2025-11-13)

Full Changelog: [v5.30.0...v5.31.0](https://github.com/orbcorp/orb-node/compare/v5.30.0...v5.31.0)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "orb-billing",
"version": "5.31.0",
"version": "5.32.0",
"description": "The official TypeScript library for the Orb API",
"author": "Orb <[email protected]>",
"types": "dist/index.d.ts",
Expand Down
258 changes: 258 additions & 0 deletions src/resources/beta/beta.ts
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,7 @@ export namespace BetaCreatePlanVersionParams {
| Shared.NewPlanScalableMatrixWithUnitPricingPrice
| Shared.NewPlanScalableMatrixWithTieredPricingPrice
| Shared.NewPlanCumulativeGroupedBulkPrice
| AddPrice.NewPlanCumulativeGroupedAllocationPrice
| Shared.NewPlanMinimumCompositePrice
| AddPrice.NewPlanPercentCompositePrice
| AddPrice.NewPlanEventOutputPrice
Expand Down Expand Up @@ -618,6 +619,134 @@ export namespace BetaCreatePlanVersionParams {
}
}

export interface NewPlanCumulativeGroupedAllocationPrice {
/**
* The cadence to bill for this price on.
*/
cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';

/**
* Configuration for cumulative_grouped_allocation pricing
*/
cumulative_grouped_allocation_config: NewPlanCumulativeGroupedAllocationPrice.CumulativeGroupedAllocationConfig;

/**
* The id of the item the price will be associated with.
*/
item_id: string;

/**
* The pricing model type
*/
model_type: 'cumulative_grouped_allocation';

/**
* The name of the price.
*/
name: string;

/**
* The id of the billable metric for the price. Only needed if the price is
* usage-based.
*/
billable_metric_id?: string | null;

/**
* If the Price represents a fixed cost, the price will be billed in-advance if
* this is true, and in-arrears if this is false.
*/
billed_in_advance?: boolean | null;

/**
* For custom cadence: specifies the duration of the billing period in days or
* months.
*/
billing_cycle_configuration?: Shared.NewBillingCycleConfiguration | null;

/**
* The per unit conversion rate of the price currency to the invoicing currency.
*/
conversion_rate?: number | null;

/**
* The configuration for the rate of the price currency to the invoicing currency.
*/
conversion_rate_config?: Shared.UnitConversionRateConfig | Shared.TieredConversionRateConfig | null;

/**
* An ISO 4217 currency string, or custom pricing unit identifier, in which this
* price is billed.
*/
currency?: string | null;

/**
* For dimensional price: specifies a price group and dimension values
*/
dimensional_price_configuration?: Shared.NewDimensionalPriceConfiguration | null;

/**
* An alias for the price.
*/
external_price_id?: string | null;

/**
* If the Price represents a fixed cost, this represents the quantity of units
* applied.
*/
fixed_price_quantity?: number | null;

/**
* The property used to group this price on an invoice
*/
invoice_grouping_key?: string | null;

/**
* Within each billing cycle, specifies the cadence at which invoices are produced.
* If unspecified, a single invoice is produced per billing cycle.
*/
invoicing_cycle_configuration?: Shared.NewBillingCycleConfiguration | null;

/**
* User-specified key/value pairs for the resource. Individual keys can be removed
* by setting the value to `null`, and the entire metadata mapping can be cleared
* by setting `metadata` to `null`.
*/
metadata?: { [key: string]: string | null } | null;

/**
* A transient ID that can be used to reference this price when adding adjustments
* in the same API call.
*/
reference_id?: string | null;
}

export namespace NewPlanCumulativeGroupedAllocationPrice {
/**
* Configuration for cumulative_grouped_allocation pricing
*/
export interface CumulativeGroupedAllocationConfig {
/**
* The overall allocation across all groups
*/
cumulative_allocation: string;

/**
* The allocation per individual group
*/
group_allocation: string;

/**
* The event property used to group usage before applying allocations
*/
grouping_key: string;

/**
* The amount to charge for each unit outside of the allocation
*/
unit_amount: string;
}
}

export interface NewPlanPercentCompositePrice {
/**
* The cadence to bill for this price on.
Expand Down Expand Up @@ -951,6 +1080,7 @@ export namespace BetaCreatePlanVersionParams {
| Shared.NewPlanScalableMatrixWithUnitPricingPrice
| Shared.NewPlanScalableMatrixWithTieredPricingPrice
| Shared.NewPlanCumulativeGroupedBulkPrice
| ReplacePrice.NewPlanCumulativeGroupedAllocationPrice
| Shared.NewPlanMinimumCompositePrice
| ReplacePrice.NewPlanPercentCompositePrice
| ReplacePrice.NewPlanEventOutputPrice
Expand Down Expand Up @@ -1367,6 +1497,134 @@ export namespace BetaCreatePlanVersionParams {
}
}

export interface NewPlanCumulativeGroupedAllocationPrice {
/**
* The cadence to bill for this price on.
*/
cadence: 'annual' | 'semi_annual' | 'monthly' | 'quarterly' | 'one_time' | 'custom';

/**
* Configuration for cumulative_grouped_allocation pricing
*/
cumulative_grouped_allocation_config: NewPlanCumulativeGroupedAllocationPrice.CumulativeGroupedAllocationConfig;

/**
* The id of the item the price will be associated with.
*/
item_id: string;

/**
* The pricing model type
*/
model_type: 'cumulative_grouped_allocation';

/**
* The name of the price.
*/
name: string;

/**
* The id of the billable metric for the price. Only needed if the price is
* usage-based.
*/
billable_metric_id?: string | null;

/**
* If the Price represents a fixed cost, the price will be billed in-advance if
* this is true, and in-arrears if this is false.
*/
billed_in_advance?: boolean | null;

/**
* For custom cadence: specifies the duration of the billing period in days or
* months.
*/
billing_cycle_configuration?: Shared.NewBillingCycleConfiguration | null;

/**
* The per unit conversion rate of the price currency to the invoicing currency.
*/
conversion_rate?: number | null;

/**
* The configuration for the rate of the price currency to the invoicing currency.
*/
conversion_rate_config?: Shared.UnitConversionRateConfig | Shared.TieredConversionRateConfig | null;

/**
* An ISO 4217 currency string, or custom pricing unit identifier, in which this
* price is billed.
*/
currency?: string | null;

/**
* For dimensional price: specifies a price group and dimension values
*/
dimensional_price_configuration?: Shared.NewDimensionalPriceConfiguration | null;

/**
* An alias for the price.
*/
external_price_id?: string | null;

/**
* If the Price represents a fixed cost, this represents the quantity of units
* applied.
*/
fixed_price_quantity?: number | null;

/**
* The property used to group this price on an invoice
*/
invoice_grouping_key?: string | null;

/**
* Within each billing cycle, specifies the cadence at which invoices are produced.
* If unspecified, a single invoice is produced per billing cycle.
*/
invoicing_cycle_configuration?: Shared.NewBillingCycleConfiguration | null;

/**
* User-specified key/value pairs for the resource. Individual keys can be removed
* by setting the value to `null`, and the entire metadata mapping can be cleared
* by setting `metadata` to `null`.
*/
metadata?: { [key: string]: string | null } | null;

/**
* A transient ID that can be used to reference this price when adding adjustments
* in the same API call.
*/
reference_id?: string | null;
}

export namespace NewPlanCumulativeGroupedAllocationPrice {
/**
* Configuration for cumulative_grouped_allocation pricing
*/
export interface CumulativeGroupedAllocationConfig {
/**
* The overall allocation across all groups
*/
cumulative_allocation: string;

/**
* The allocation per individual group
*/
group_allocation: string;

/**
* The event property used to group usage before applying allocations
*/
grouping_key: string;

/**
* The amount to charge for each unit outside of the allocation
*/
unit_amount: string;
}
}

export interface NewPlanPercentCompositePrice {
/**
* The cadence to bill for this price on.
Expand Down
Loading