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.41.0"
".": "4.42.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: 97
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-908960f165205e2874dd29322cc974df5ab10c7634ab9a342ab22047013de1b4.yml
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-02151f7654870aee7820ee1c04659a469e6b67ac4977116334512c6b6e6a2016.yml
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# Changelog

## 4.42.0 (2024-12-17)

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

### Features

* **api:** api update ([#423](https://github.com/orbcorp/orb-node/issues/423)) ([b8c44bd](https://github.com/orbcorp/orb-node/commit/b8c44bdbf7fbfe584665e6462cb2d942572a98ed))


### Chores

* **internal:** fix some typos ([#421](https://github.com/orbcorp/orb-node/issues/421)) ([6924597](https://github.com/orbcorp/orb-node/commit/69245977847e1615f4e93b971b4b9741e67a2287))

## 4.41.0 (2024-12-12)

Full Changelog: [v4.40.0...v4.41.0](https://github.com/orbcorp/orb-node/compare/v4.40.0...v4.41.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.41.0",
"version": "4.42.0",
"description": "The official TypeScript library for the Orb API",
"author": "Orb <[email protected]>",
"types": "dist/index.d.ts",
Expand Down
4 changes: 2 additions & 2 deletions src/core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ export abstract class APIClient {
maxRetries = 2,
timeout = 60000, // 1 minute
httpAgent,
fetch: overridenFetch,
fetch: overriddenFetch,
}: {
baseURL: string;
maxRetries?: number | undefined;
Expand All @@ -176,7 +176,7 @@ export abstract class APIClient {
this.timeout = validatePositiveInteger('timeout', timeout);
this.httpAgent = httpAgent;

this.fetch = overridenFetch ?? fetch;
this.fetch = overriddenFetch ?? fetch;
}

protected authHeaders(opts: FinalRequestOptions): Headers {
Expand Down
18 changes: 10 additions & 8 deletions src/resources/customers/credits/ledger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,10 +123,11 @@ export class Ledger extends APIResource {
* will return a credit block that represents the changes (i.e. balance changes
* or transfers).
* 2. A ledger entry will be added to the credits ledger for this customer, and
* therefore returned in the [View Credits Ledger](fetch-customer-credits)
* response as well as serialized in the response to this request. In the case
* of deductions without a specified block, multiple ledger entries may be
* created if the deduction spans credit blocks.
* therefore returned in the
* [View Credits Ledger](fetch-customer-credits-ledger) response as well as
* serialized in the response to this request. In the case of deductions without
* a specified block, multiple ledger entries may be created if the deduction
* spans credit blocks.
* 3. If `invoice_settings` is specified, an invoice will be created that reflects
* the cost of the credits (based on `amount` and `per_unit_cost_basis`).
*
Expand Down Expand Up @@ -242,10 +243,11 @@ export class Ledger extends APIResource {
* will return a credit block that represents the changes (i.e. balance changes
* or transfers).
* 2. A ledger entry will be added to the credits ledger for this customer, and
* therefore returned in the [View Credits Ledger](fetch-customer-credits)
* response as well as serialized in the response to this request. In the case
* of deductions without a specified block, multiple ledger entries may be
* created if the deduction spans credit blocks.
* therefore returned in the
* [View Credits Ledger](fetch-customer-credits-ledger) response as well as
* serialized in the response to this request. In the case of deductions without
* a specified block, multiple ledger entries may be created if the deduction
* spans credit blocks.
* 3. If `invoice_settings` is specified, an invoice will be created that reflects
* the cost of the credits (based on `amount` and `per_unit_cost_basis`).
*
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.41.0'; // x-release-please-version
export const VERSION = '4.42.0'; // x-release-please-version
2 changes: 1 addition & 1 deletion tests/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ describe('instantiate client', () => {
expect(client.apiKey).toBe('My API Key');
});

test('with overriden environment variable arguments', () => {
test('with overridden environment variable arguments', () => {
// set options via env var
process.env['ORB_API_KEY'] = 'another My API Key';
const client = new Orb({ apiKey: 'My API Key' });
Expand Down
Loading