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.64.0"
".": "4.65.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: 103
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-c8fc7d0bf70bf7ed91a141f346a02929e4d25a6fac7b59f58b68136ed6ff024f.yml
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-48084a007f009b4358484f09a3a7b74a990c402669f9d15adfbb60e4f835f951.yml
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# Changelog

## 4.65.0 (2025-03-05)

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

### Features

* **api:** api update ([#535](https://github.com/orbcorp/orb-node/issues/535)) ([42e41ce](https://github.com/orbcorp/orb-node/commit/42e41cebe5784cbc254d503ae49111b682d066c9))
* **api:** manual updates ([#538](https://github.com/orbcorp/orb-node/issues/538)) ([5f99471](https://github.com/orbcorp/orb-node/commit/5f994713a02b7ca7def32339dc7cb530bf964cec))
* **api:** manual updates ([#540](https://github.com/orbcorp/orb-node/issues/540)) ([e144b49](https://github.com/orbcorp/orb-node/commit/e144b49763b1d755088ecb2f478943107387d6d4))
* **api:** manual updates ([#542](https://github.com/orbcorp/orb-node/issues/542)) ([970f1b8](https://github.com/orbcorp/orb-node/commit/970f1b873462bc1d5609b694d43fca2c1749c4f1))

## 4.64.0 (2025-03-01)

Full Changelog: [v4.63.0...v4.64.0](https://github.com/orbcorp/orb-node/compare/v4.63.0...v4.64.0)
Expand Down
1 change: 1 addition & 0 deletions api.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ Types:
- <code><a href="./src/resources/shared.ts">TrialDiscount</a></code>
- <code><a href="./src/resources/shared.ts">UsageDiscount</a></code>


# TopLevel

Types:
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.64.0",
"version": "4.65.0",
"description": "The official TypeScript library for the Orb API",
"author": "Orb <team@withorb.com>",
"types": "dist/index.d.ts",
Expand Down
36 changes: 18 additions & 18 deletions src/resources/shared.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,24 +21,6 @@ export type BillingCycleRelativeDate = 'start_of_term' | 'end_of_term';

export type Discount = PercentageDiscount | TrialDiscount | UsageDiscount | AmountDiscount;

export interface UsageDiscount {
/**
* List of price_ids that this discount applies to. For plan/plan phase discounts,
* this can be a subset of prices.
*/
applies_to_price_ids: Array<string>;

discount_type: 'usage';

/**
* Only available if discount_type is `usage`. Number of usage units that this
* discount is for
*/
usage_discount: number;

reason?: string | null;
}

export type InvoiceLevelDiscount = PercentageDiscount | AmountDiscount | TrialDiscount;

export interface PaginationMetadata {
Expand Down Expand Up @@ -86,3 +68,21 @@ export interface TrialDiscount {
*/
trial_percentage_discount?: number | null;
}

export interface UsageDiscount {
/**
* List of price_ids that this discount applies to. For plan/plan phase discounts,
* this can be a subset of prices.
*/
applies_to_price_ids: Array<string>;

discount_type: 'usage';

/**
* Only available if discount_type is `usage`. Number of usage units that this
* discount is for
*/
usage_discount: number;

reason?: string | null;
}
Loading