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.19.0"
".": "5.20.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-2b5eeb4a60cbec92f80b4a54f33c2d17b36cbac4739886f737108f2ad74ff12d.yml
openapi_spec_hash: ebbe8419f5831506de5b4c0b4eb56acf
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-828c91953d2351040fdd4d90a3d9eafd09f9d240c4f6ce0441b7a10c06c1c722.yml
openapi_spec_hash: c82bc88563f80f600e59e22014d4cec4
config_hash: 1f73a949b649ecfe6ec68ba1bb459dc2
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## 5.20.0 (2025-10-17)

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

### Features

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

## 5.19.0 (2025-10-15)

Full Changelog: [v5.18.0...v5.19.0](https://github.com/orbcorp/orb-node/compare/v5.18.0...v5.19.0)
Expand Down
1 change: 0 additions & 1 deletion api.md
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,6 @@ Types:
- <code><a href="./src/resources/shared.ts">TierSubLineItem</a></code>
- <code><a href="./src/resources/shared.ts">TieredConfig</a></code>
- <code><a href="./src/resources/shared.ts">TieredConversionRateConfig</a></code>
- <code><a href="./src/resources/shared.ts">TransformPriceFilter</a></code>
- <code><a href="./src/resources/shared.ts">TrialDiscount</a></code>
- <code><a href="./src/resources/shared.ts">UnitConfig</a></code>
- <code><a href="./src/resources/shared.ts">UnitConversionRateConfig</a></code>
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.19.0",
"version": "5.20.0",
"description": "The official TypeScript library for the Orb API",
"author": "Orb <[email protected]>",
"types": "dist/index.d.ts",
Expand Down
1 change: 0 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -736,7 +736,6 @@ export declare namespace Orb {
export type TierSubLineItem = API.TierSubLineItem;
export type TieredConfig = API.TieredConfig;
export type TieredConversionRateConfig = API.TieredConversionRateConfig;
export type TransformPriceFilter = API.TransformPriceFilter;
export type TrialDiscount = API.TrialDiscount;
export type UnitConfig = API.UnitConfig;
export type UnitConversionRateConfig = API.UnitConversionRateConfig;
Expand Down
14 changes: 14 additions & 0 deletions src/resources/beta/beta.ts
Original file line number Diff line number Diff line change
Expand Up @@ -848,6 +848,13 @@ export namespace BetaCreatePlanVersionParams {
*/
unit_rating_key: string;

/**
* If provided, this amount will be used as the unit rate when an event does not
* have a value for the `unit_rating_key`. If not provided, events missing a unit
* rate will be ignored.
*/
default_unit_rate?: string | null;

/**
* An optional key in the event data to group by (e.g., event ID). All events will
* also be grouped by their unit rate.
Expand Down Expand Up @@ -1590,6 +1597,13 @@ export namespace BetaCreatePlanVersionParams {
*/
unit_rating_key: string;

/**
* If provided, this amount will be used as the unit rate when an event does not
* have a value for the `unit_rating_key`. If not provided, events missing a unit
* rate will be ignored.
*/
default_unit_rate?: string | null;

/**
* An optional key in the event data to group by (e.g., event ID). All events will
* also be grouped by their unit rate.
Expand Down
14 changes: 14 additions & 0 deletions src/resources/beta/external-plan-id.ts
Original file line number Diff line number Diff line change
Expand Up @@ -793,6 +793,13 @@ export namespace ExternalPlanIDCreatePlanVersionParams {
*/
unit_rating_key: string;

/**
* If provided, this amount will be used as the unit rate when an event does not
* have a value for the `unit_rating_key`. If not provided, events missing a unit
* rate will be ignored.
*/
default_unit_rate?: string | null;

/**
* An optional key in the event data to group by (e.g., event ID). All events will
* also be grouped by their unit rate.
Expand Down Expand Up @@ -1535,6 +1542,13 @@ export namespace ExternalPlanIDCreatePlanVersionParams {
*/
unit_rating_key: string;

/**
* If provided, this amount will be used as the unit rate when an event does not
* have a value for the `unit_rating_key`. If not provided, events missing a unit
* rate will be ignored.
*/
default_unit_rate?: string | null;

/**
* An optional key in the event data to group by (e.g., event ID). All events will
* also be grouped by their unit rate.
Expand Down
21 changes: 21 additions & 0 deletions src/resources/customers/credits/ledger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -471,11 +471,32 @@ export class LedgerListByExternalIDResponsesPage extends Page<LedgerListByExtern
export interface AffectedBlock {
id: string;

block_filters: Array<AffectedBlock.BlockFilter> | null;

expiry_date: string | null;

per_unit_cost_basis: string | null;
}

export namespace AffectedBlock {
export interface BlockFilter {
/**
* The property of the price to filter on.
*/
field: 'price_id' | 'item_id' | 'price_type' | 'currency' | 'pricing_unit_id';

/**
* Should prices that match the filter be included or excluded.
*/
operator: 'includes' | 'excludes';

/**
* The IDs or values that match this filter.
*/
values: Array<string>;
}
}

export interface AmendmentLedgerEntry {
id: string;

Expand Down
7 changes: 7 additions & 0 deletions src/resources/plans/plans.ts
Original file line number Diff line number Diff line change
Expand Up @@ -990,6 +990,13 @@ export namespace PlanCreateParams {
*/
unit_rating_key: string;

/**
* If provided, this amount will be used as the unit rate when an event does not
* have a value for the `unit_rating_key`. If not provided, events missing a unit
* rate will be ignored.
*/
default_unit_rate?: string | null;

/**
* An optional key in the event data to group by (e.g., event ID). All events will
* also be grouped by their unit rate.
Expand Down
21 changes: 21 additions & 0 deletions src/resources/prices/prices.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3913,6 +3913,13 @@ export declare namespace PriceCreateParams {
*/
unit_rating_key: string;

/**
* If provided, this amount will be used as the unit rate when an event does not
* have a value for the `unit_rating_key`. If not provided, events missing a unit
* rate will be ignored.
*/
default_unit_rate?: string | null;

/**
* An optional key in the event data to group by (e.g., event ID). All events will
* also be grouped by their unit rate.
Expand Down Expand Up @@ -4534,6 +4541,13 @@ export namespace PriceEvaluateMultipleParams {
*/
unit_rating_key: string;

/**
* If provided, this amount will be used as the unit rate when an event does not
* have a value for the `unit_rating_key`. If not provided, events missing a unit
* rate will be ignored.
*/
default_unit_rate?: string | null;

/**
* An optional key in the event data to group by (e.g., event ID). All events will
* also be grouped by their unit rate.
Expand Down Expand Up @@ -5145,6 +5159,13 @@ export namespace PriceEvaluatePreviewEventsParams {
*/
unit_rating_key: string;

/**
* If provided, this amount will be used as the unit rate when an event does not
* have a value for the `unit_rating_key`. If not provided, events missing a unit
* rate will be ignored.
*/
default_unit_rate?: string | null;

/**
* An optional key in the event data to group by (e.g., event ID). All events will
* also be grouped by their unit rate.
Expand Down
Loading