diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 6e417e5c..e284d59a 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "4.60.0" + ".": "4.61.0" } diff --git a/.stats.yml b/.stats.yml index fb35dc35..1847c9b0 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 103 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-097aa5c0e1408d7bd31c15caded400b84f45c0296aebdf67a1dc1a4013f371dd.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-26c7b0375aaf9218b32f9af29242d38e67a8318f3ae3e8cc5d1cd86c60e89e51.yml diff --git a/CHANGELOG.md b/CHANGELOG.md index 906c762f..90f991be 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 4.61.0 (2025-02-21) + +Full Changelog: [v4.60.0...v4.61.0](https://github.com/orbcorp/orb-node/compare/v4.60.0...v4.61.0) + +### Features + +* **api:** api update ([#522](https://github.com/orbcorp/orb-node/issues/522)) ([6a70c35](https://github.com/orbcorp/orb-node/commit/6a70c35253e3eb69a12a9c9b0397724d0f2db390)) + ## 4.60.0 (2025-02-21) Full Changelog: [v4.59.0...v4.60.0](https://github.com/orbcorp/orb-node/compare/v4.59.0...v4.60.0) diff --git a/package.json b/package.json index fec19127..07329c4f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "orb-billing", - "version": "4.60.0", + "version": "4.61.0", "description": "The official TypeScript library for the Orb API", "author": "Orb ", "types": "dist/index.d.ts", diff --git a/src/resources/customers/credits/top-ups.ts b/src/resources/customers/credits/top-ups.ts index b7365d2d..389c9c74 100644 --- a/src/resources/customers/credits/top-ups.ts +++ b/src/resources/customers/credits/top-ups.ts @@ -445,6 +445,12 @@ export interface TopUpCreateParams { */ threshold: string; + /** + * The date from which the top-up is active. If unspecified, the top-up is active + * immediately. + */ + active_from?: string | null; + /** * The number of days or months after which the top-up expires. If unspecified, it * does not expire. @@ -518,6 +524,12 @@ export interface TopUpCreateByExternalIDParams { */ threshold: string; + /** + * The date from which the top-up is active. If unspecified, the top-up is active + * immediately. + */ + active_from?: string | null; + /** * The number of days or months after which the top-up expires. If unspecified, it * does not expire. diff --git a/src/resources/invoices.ts b/src/resources/invoices.ts index 08c914dc..95474a8b 100644 --- a/src/resources/invoices.ts +++ b/src/resources/invoices.ts @@ -130,6 +130,10 @@ export class Invoices extends APIResource { * due, the customer balance operation will be reverted. For example, if the * invoice used $10 of customer balance, that amount will be added back to the * customer balance upon voiding. + * + * If the invoice was used to purchase a credit block, but the invoice is not yet + * paid, the credit block will be voided. If the invoice was created due to a + * top-up, the top-up will be disabled. */ void(invoiceId: string, options?: Core.RequestOptions): Core.APIPromise { return this._client.post(`/invoices/${invoiceId}/void`, options); diff --git a/src/version.ts b/src/version.ts index 30c6fccf..15056557 100644 --- a/src/version.ts +++ b/src/version.ts @@ -1 +1 @@ -export const VERSION = '4.60.0'; // x-release-please-version +export const VERSION = '4.61.0'; // x-release-please-version diff --git a/tests/api-resources/customers/credits/top-ups.test.ts b/tests/api-resources/customers/credits/top-ups.test.ts index fed7269a..fc94fd85 100644 --- a/tests/api-resources/customers/credits/top-ups.test.ts +++ b/tests/api-resources/customers/credits/top-ups.test.ts @@ -38,6 +38,7 @@ describe('resource topUps', () => { }, per_unit_cost_basis: 'per_unit_cost_basis', threshold: 'threshold', + active_from: '2019-12-27T18:11:19.117Z', expires_after: 0, expires_after_unit: 'day', }); @@ -121,6 +122,7 @@ describe('resource topUps', () => { }, per_unit_cost_basis: 'per_unit_cost_basis', threshold: 'threshold', + active_from: '2019-12-27T18:11:19.117Z', expires_after: 0, expires_after_unit: 'day', });