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.66.0"
".": "4.67.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-a2c1aa029d1e72a5fc7d3c6cd431479888ebd9a379683a2c8630da48437baa4f.yml
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-6797b438a8e6a6856e28f4304a5a3c81bb67e74fa2d6fcc20e734880c725295a.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.67.0 (2025-03-07)

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

### Features

* **api:** api update ([#547](https://github.com/orbcorp/orb-node/issues/547)) ([c047972](https://github.com/orbcorp/orb-node/commit/c04797276b80d3f59f5f41e371dd45c228f39d28))

## 4.66.0 (2025-03-06)

Full Changelog: [v4.65.0...v4.66.0](https://github.com/orbcorp/orb-node/compare/v4.65.0...v4.66.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.66.0",
"version": "4.67.0",
"description": "The official TypeScript library for the Orb API",
"author": "Orb <[email protected]>",
"types": "dist/index.d.ts",
Expand Down
27 changes: 6 additions & 21 deletions src/resources/alerts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -219,11 +219,11 @@ export interface Alert {
* The type of alert. This must be a valid alert type.
*/
type:
| 'usage_exceeded'
| 'cost_exceeded'
| 'credit_balance_depleted'
| 'credit_balance_dropped'
| 'credit_balance_recovered';
| 'credit_balance_recovered'
| 'usage_exceeded'
| 'cost_exceeded';
}

export namespace Alert {
Expand Down Expand Up @@ -338,12 +338,7 @@ export interface AlertCreateForCustomerParams {
/**
* The type of alert to create. This must be a valid alert type.
*/
type:
| 'usage_exceeded'
| 'cost_exceeded'
| 'credit_balance_depleted'
| 'credit_balance_dropped'
| 'credit_balance_recovered';
type: 'credit_balance_depleted' | 'credit_balance_dropped' | 'credit_balance_recovered';

/**
* The thresholds that define the values at which the alert will be triggered.
Expand Down Expand Up @@ -375,12 +370,7 @@ export interface AlertCreateForExternalCustomerParams {
/**
* The type of alert to create. This must be a valid alert type.
*/
type:
| 'usage_exceeded'
| 'cost_exceeded'
| 'credit_balance_depleted'
| 'credit_balance_dropped'
| 'credit_balance_recovered';
type: 'credit_balance_depleted' | 'credit_balance_dropped' | 'credit_balance_recovered';

/**
* The thresholds that define the values at which the alert will be triggered.
Expand Down Expand Up @@ -412,12 +402,7 @@ export interface AlertCreateForSubscriptionParams {
/**
* The type of alert to create. This must be a valid alert type.
*/
type:
| 'usage_exceeded'
| 'cost_exceeded'
| 'credit_balance_depleted'
| 'credit_balance_dropped'
| 'credit_balance_recovered';
type: 'usage_exceeded' | 'cost_exceeded';

/**
* The metric to track usage for.
Expand Down
2 changes: 1 addition & 1 deletion src/version.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const VERSION = '4.66.0'; // x-release-please-version
export const VERSION = '4.67.0'; // x-release-please-version
8 changes: 4 additions & 4 deletions tests/api-resources/alerts.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ describe('resource alerts', () => {
test('createForCustomer: only required params', async () => {
const responsePromise = client.alerts.createForCustomer('customer_id', {
currency: 'currency',
type: 'usage_exceeded',
type: 'credit_balance_depleted',
});
const rawResponse = await responsePromise.asResponse();
expect(rawResponse).toBeInstanceOf(Response);
Expand All @@ -98,15 +98,15 @@ describe('resource alerts', () => {
test('createForCustomer: required and optional params', async () => {
const response = await client.alerts.createForCustomer('customer_id', {
currency: 'currency',
type: 'usage_exceeded',
type: 'credit_balance_depleted',
thresholds: [{ value: 0 }],
});
});

test('createForExternalCustomer: only required params', async () => {
const responsePromise = client.alerts.createForExternalCustomer('external_customer_id', {
currency: 'currency',
type: 'usage_exceeded',
type: 'credit_balance_depleted',
});
const rawResponse = await responsePromise.asResponse();
expect(rawResponse).toBeInstanceOf(Response);
Expand All @@ -120,7 +120,7 @@ describe('resource alerts', () => {
test('createForExternalCustomer: required and optional params', async () => {
const response = await client.alerts.createForExternalCustomer('external_customer_id', {
currency: 'currency',
type: 'usage_exceeded',
type: 'credit_balance_depleted',
thresholds: [{ value: 0 }],
});
});
Expand Down