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.60.0"
".": "4.61.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-097aa5c0e1408d7bd31c15caded400b84f45c0296aebdf67a1dc1a4013f371dd.yml
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-26c7b0375aaf9218b32f9af29242d38e67a8318f3ae3e8cc5d1cd86c60e89e51.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.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)
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.60.0",
"version": "4.61.0",
"description": "The official TypeScript library for the Orb API",
"author": "Orb <team@withorb.com>",
"types": "dist/index.d.ts",
Expand Down
12 changes: 12 additions & 0 deletions src/resources/customers/credits/top-ups.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand Down
4 changes: 4 additions & 0 deletions src/resources/invoices.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<Invoice> {
return this._client.post(`/invoices/${invoiceId}/void`, options);
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.60.0'; // x-release-please-version
export const VERSION = '4.61.0'; // x-release-please-version
2 changes: 2 additions & 0 deletions tests/api-resources/customers/credits/top-ups.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
});
Expand Down Expand Up @@ -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',
});
Expand Down