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.71.6"
".": "4.72.0"
}
8 changes: 4 additions & 4 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 103
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-95a3d7780935a38e0cf076d4ad2d68bd1a5641bced8398d972db2e92751d364a.yml
openapi_spec_hash: 9ebe818c4ad4f2d9c4e473b5192d7544
config_hash: 54edf41f0377bc235f622fdaa7405f22
configured_endpoints: 106
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-e8dad7eee5621fe2ba948dfd00dabf170d9d92ce615a9f04b0f546f4d8bf39ba.yml
openapi_spec_hash: 3f6a98e3a1b3a47acebd67a960090ebf
config_hash: 7e523cf79552b8936bd772f2e1025e5f
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## 4.72.0 (2025-04-07)

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

### Features

* **api:** api update ([#592](https://github.com/orbcorp/orb-node/issues/592)) ([9adab93](https://github.com/orbcorp/orb-node/commit/9adab93c9ee75208b37be5f4cc6f07d7c10b3bb5))

## 4.71.6 (2025-04-07)

Full Changelog: [v4.71.5...v4.71.6](https://github.com/orbcorp/orb-node/compare/v4.71.5...v4.71.6)
Expand Down
14 changes: 14 additions & 0 deletions api.md
Original file line number Diff line number Diff line change
Expand Up @@ -357,3 +357,17 @@ Methods:
Methods:

- <code title="get /dimensional_price_groups/external_dimensional_price_group_id/{external_dimensional_price_group_id}">client.dimensionalPriceGroups.externalDimensionalPriceGroupId.<a href="./src/resources/dimensional-price-groups/external-dimensional-price-group-id.ts">retrieve</a>(externalDimensionalPriceGroupId) -> DimensionalPriceGroup</code>

# SubscriptionChanges

Types:

- <code><a href="./src/resources/subscription-changes.ts">SubscriptionChangeRetrieveResponse</a></code>
- <code><a href="./src/resources/subscription-changes.ts">SubscriptionChangeApplyResponse</a></code>
- <code><a href="./src/resources/subscription-changes.ts">SubscriptionChangeCancelResponse</a></code>

Methods:

- <code title="get /subscription_changes/{subscription_change_id}">client.subscriptionChanges.<a href="./src/resources/subscription-changes.ts">retrieve</a>(subscriptionChangeId) -> SubscriptionChangeRetrieveResponse</code>
- <code title="post /subscription_changes/{subscription_change_id}/apply">client.subscriptionChanges.<a href="./src/resources/subscription-changes.ts">apply</a>(subscriptionChangeId, { ...params }) -> SubscriptionChangeApplyResponse</code>
- <code title="post /subscription_changes/{subscription_change_id}/cancel">client.subscriptionChanges.<a href="./src/resources/subscription-changes.ts">cancel</a>(subscriptionChangeId) -> SubscriptionChangeCancelResponse</code>
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.71.6",
"version": "4.72.0",
"description": "The official TypeScript library for the Orb API",
"author": "Orb <team@withorb.com>",
"types": "dist/index.d.ts",
Expand Down
17 changes: 17 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,13 @@ import {
MetricUpdateParams,
Metrics,
} from './resources/metrics';
import {
SubscriptionChangeApplyParams,
SubscriptionChangeApplyResponse,
SubscriptionChangeCancelResponse,
SubscriptionChangeRetrieveResponse,
SubscriptionChanges,
} from './resources/subscription-changes';
import {
Subscription,
SubscriptionCancelParams,
Expand Down Expand Up @@ -285,6 +292,7 @@ export class Orb extends Core.APIClient {
webhooks: API.Webhooks = new API.Webhooks(this);
alerts: API.Alerts = new API.Alerts(this);
dimensionalPriceGroups: API.DimensionalPriceGroups = new API.DimensionalPriceGroups(this);
subscriptionChanges: API.SubscriptionChanges = new API.SubscriptionChanges(this);

protected override defaultQuery(): Core.DefaultQuery | undefined {
return this._options.defaultQuery;
Expand Down Expand Up @@ -362,6 +370,7 @@ Orb.SubscriptionFetchScheduleResponsesPage = SubscriptionFetchScheduleResponsesP
Orb.Alerts = Alerts;
Orb.AlertsPage = AlertsPage;
Orb.DimensionalPriceGroupsPage = DimensionalPriceGroupsPage;
Orb.SubscriptionChanges = SubscriptionChanges;
export declare namespace Orb {
export type RequestOptions = Core.RequestOptions;

Expand Down Expand Up @@ -519,6 +528,14 @@ export declare namespace Orb {
type DimensionalPriceGroupListParams as DimensionalPriceGroupListParams,
};

export {
SubscriptionChanges as SubscriptionChanges,
type SubscriptionChangeRetrieveResponse as SubscriptionChangeRetrieveResponse,
type SubscriptionChangeApplyResponse as SubscriptionChangeApplyResponse,
type SubscriptionChangeCancelResponse as SubscriptionChangeCancelResponse,
type SubscriptionChangeApplyParams as SubscriptionChangeApplyParams,
};

export type AmountDiscount = API.AmountDiscount;
export type BillingCycleRelativeDate = API.BillingCycleRelativeDate;
export type Discount = API.Discount;
Expand Down
7 changes: 7 additions & 0 deletions src/resources/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,13 @@ export {
type PriceListParams,
type PriceEvaluateParams,
} from './prices/prices';
export {
SubscriptionChanges,
type SubscriptionChangeRetrieveResponse,
type SubscriptionChangeApplyResponse,
type SubscriptionChangeCancelResponse,
type SubscriptionChangeApplyParams,
} from './subscription-changes';
export {
SubscriptionsPage,
SubscriptionFetchScheduleResponsesPage,
Expand Down
5 changes: 3 additions & 2 deletions src/resources/invoices.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2648,8 +2648,9 @@ export interface InvoiceCreateParams {
metadata?: Record<string, string | null> | null;

/**
* When true, this invoice will automatically be issued upon creation. When false,
* the resulting invoice will require manual review to issue. Defaulted to false.
* When true, this invoice will be submitted for issuance upon creation. When
* false, the resulting invoice will require manual review to issue. Defaulted to
* false.
*/
will_auto_issue?: boolean;
}
Expand Down
8 changes: 4 additions & 4 deletions src/resources/plans/plans.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1014,7 +1014,7 @@ export namespace PlanCreateParams {
export namespace TieredConfig {
export interface Tier {
/**
* Inclusive tier starting value
* Exclusive tier starting value
*/
first_unit: number;

Expand All @@ -1024,7 +1024,7 @@ export namespace PlanCreateParams {
unit_amount: string;

/**
* Exclusive tier ending value. If null, this is treated as the last tier
* Inclusive tier ending value. If null, this is treated as the last tier
*/
last_unit?: number | null;
}
Expand Down Expand Up @@ -1159,12 +1159,12 @@ export namespace PlanCreateParams {
bps: number;

/**
* Inclusive tier starting value
* Exclusive tier starting value
*/
minimum_amount: string;

/**
* Exclusive tier ending value
* Inclusive tier ending value
*/
maximum_amount?: string | null;

Expand Down
16 changes: 8 additions & 8 deletions src/resources/prices/prices.ts
Original file line number Diff line number Diff line change
Expand Up @@ -681,7 +681,7 @@ export namespace Price {
export namespace TieredConfig {
export interface Tier {
/**
* Inclusive tier starting value
* Exclusive tier starting value
*/
first_unit: number;

Expand All @@ -691,7 +691,7 @@ export namespace Price {
unit_amount: string;

/**
* Exclusive tier ending value. If null, this is treated as the last tier
* Inclusive tier ending value. If null, this is treated as the last tier
*/
last_unit?: number | null;
}
Expand Down Expand Up @@ -831,12 +831,12 @@ export namespace Price {
bps: number;

/**
* Inclusive tier starting value
* Exclusive tier starting value
*/
minimum_amount: string;

/**
* Exclusive tier ending value
* Inclusive tier ending value
*/
maximum_amount?: string | null;

Expand Down Expand Up @@ -4330,7 +4330,7 @@ export declare namespace PriceCreateParams {
export namespace TieredConfig {
export interface Tier {
/**
* Inclusive tier starting value
* Exclusive tier starting value
*/
first_unit: number;

Expand All @@ -4340,7 +4340,7 @@ export declare namespace PriceCreateParams {
unit_amount: string;

/**
* Exclusive tier ending value. If null, this is treated as the last tier
* Inclusive tier ending value. If null, this is treated as the last tier
*/
last_unit?: number | null;
}
Expand Down Expand Up @@ -4474,12 +4474,12 @@ export declare namespace PriceCreateParams {
bps: number;

/**
* Inclusive tier starting value
* Exclusive tier starting value
*/
minimum_amount: string;

/**
* Exclusive tier ending value
* Inclusive tier ending value
*/
maximum_amount?: string | null;

Expand Down
Loading