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 @@
{
".": "4.48.0"
".": "4.49.0"
}
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
configured_endpoints: 101
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-ac2f736602bc631b92de358a7edb395cf53ed506b2cb3d0494fffa31be9e2d9f.yml
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-11f40c15fa889d9752019e8a35b82d2e7a3d42f2b42c850b469f120a5b2c47ba.yml
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## 4.49.0 (2025-01-16)

Full Changelog: [v4.48.0...v4.49.0](https://github.com/orbcorp/orb-node/compare/v4.48.0...v4.49.0)

### Features

* **api:** api update ([#468](https://github.com/orbcorp/orb-node/issues/468)) ([d4ca190](https://github.com/orbcorp/orb-node/commit/d4ca190dc612304b10422c8d000d4f5c1aa69b8f))

## 4.48.0 (2025-01-15)

Full Changelog: [v4.47.4...v4.48.0](https://github.com/orbcorp/orb-node/compare/v4.47.4...v4.48.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": "4.48.0",
"version": "4.49.0",
"description": "The official TypeScript library for the Orb API",
"author": "Orb <team@withorb.com>",
"types": "dist/index.d.ts",
Expand Down
114 changes: 114 additions & 0 deletions src/resources/plans/plans.ts
Original file line number Diff line number Diff line change
Expand Up @@ -497,6 +497,7 @@ export interface PlanCreateParams {
| PlanCreateParams.NewPlanMatrixWithDisplayNamePrice
| PlanCreateParams.NewPlanBulkWithProrationPrice
| PlanCreateParams.NewPlanGroupedTieredPackagePrice
| PlanCreateParams.NewPlanMaxGroupTieredPrice
>;

/**
Expand Down Expand Up @@ -3071,6 +3072,119 @@ export namespace PlanCreateParams {
duration_unit: 'day' | 'month';
}
}

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

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

max_group_tiered_config: Record<string, unknown>;

model_type: 'max_group_tiered';

/**
* 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?: NewPlanMaxGroupTieredPrice.BillingCycleConfiguration | null;

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

/**
* An ISO 4217 currency string, or custom pricing unit identifier, in which this
* price is billed.
*/
currency?: string | 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?: NewPlanMaxGroupTieredPrice.InvoicingCycleConfiguration | 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?: Record<string, string | null> | null;
}

export namespace NewPlanMaxGroupTieredPrice {
/**
* For custom cadence: specifies the duration of the billing period in days or
* months.
*/
export interface BillingCycleConfiguration {
/**
* The duration of the billing period.
*/
duration: number;

/**
* The unit of billing period duration.
*/
duration_unit: 'day' | 'month';
}

/**
* Within each billing cycle, specifies the cadence at which invoices are produced.
* If unspecified, a single invoice is produced per billing cycle.
*/
export interface InvoicingCycleConfiguration {
/**
* The duration of the billing period.
*/
duration: number;

/**
* The unit of billing period duration.
*/
duration_unit: 'day' | 'month';
}
}
}

export interface PlanUpdateParams {
Expand Down
Loading
Loading