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.67.0"
".": "4.68.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-6797b438a8e6a6856e28f4304a5a3c81bb67e74fa2d6fcc20e734880c725295a.yml
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-04f02fa57c3ab8d15ecf0a16a41a83814c21cdc2a830fae4d65f1b7b2196d819.yml
15 changes: 15 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,20 @@
# Changelog

## 4.68.0 (2025-03-10)

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

### Features

* add SKIP_BREW env var to ./scripts/bootstrap ([#552](https://github.com/orbcorp/orb-node/issues/552)) ([c093bbd](https://github.com/orbcorp/orb-node/commit/c093bbd7554a0016797def8f2dd4f3f8bb1dc961))
* **api:** api update ([#553](https://github.com/orbcorp/orb-node/issues/553)) ([fc56426](https://github.com/orbcorp/orb-node/commit/fc564266196bc1dc5806ba600114056b5d85103b))


### Chores

* **internal:** codegen related update ([#550](https://github.com/orbcorp/orb-node/issues/550)) ([1fe40c9](https://github.com/orbcorp/orb-node/commit/1fe40c9f487c96219b2712b44ebcb96e41d5f718))
* **internal:** codegen related update ([#554](https://github.com/orbcorp/orb-node/issues/554)) ([3a2ad3c](https://github.com/orbcorp/orb-node/commit/3a2ad3cf2b86597ce08167e416d0a61547943b7b))

## 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)
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.67.0",
"version": "4.68.0",
"description": "The official TypeScript library for the Orb API",
"author": "Orb <[email protected]>",
"types": "dist/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion scripts/bootstrap
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ set -e

cd "$(dirname "$0")/.."

if [ -f "Brewfile" ] && [ "$(uname -s)" = "Darwin" ]; then
if [ -f "Brewfile" ] && [ "$(uname -s)" = "Darwin" ] && [ "$SKIP_BREW" != "1" ]; then
brew bundle check >/dev/null 2>&1 || {
echo "==> Installing Homebrew dependencies…"
brew bundle
Expand Down
4 changes: 2 additions & 2 deletions src/core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ async function defaultParseResponse<T>(props: APIResponseProps): Promise<T> {
}

const contentType = response.headers.get('content-type');
const isJSON =
contentType?.includes('application/json') || contentType?.includes('application/vnd.api+json');
const mediaType = contentType?.split(';')[0]?.trim();
const isJSON = mediaType?.includes('application/json') || mediaType?.endsWith('+json');
if (isJSON) {
const json = await response.json();

Expand Down
2 changes: 1 addition & 1 deletion src/pagination.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export class Page<Item> extends AbstractPage<Item> implements PageResponse<Item>

return {
params: {
cursor: cursor,
cursor,
},
};
}
Expand Down
8 changes: 6 additions & 2 deletions src/resources/subscriptions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18717,13 +18717,17 @@ export namespace SubscriptionPriceIntervalsParams {

/**
* The start date of the adjustment interval. This is the date that the adjustment
* will start affecting prices on the subscription.
* will start affecting prices on the subscription. The adjustment will apply to
* invoice dates that overlap with this `start_date`. This `start_date` is treated
* as inclusive for in-advance prices, and exclusive for in-arrears prices.
*/
start_date: (string & {}) | Shared.BillingCycleRelativeDate;

/**
* The end date of the adjustment interval. This is the date that the adjustment
* will stop affecting prices on the subscription.
* will stop affecting prices on the subscription. The adjustment will apply to
* invoice dates that overlap with this `end_date`.This `end_date` is treated as
* exclusive for in-advance prices, and inclusive for in-arrears prices.
*/
end_date?: (string & {}) | Shared.BillingCycleRelativeDate | null;
}
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.67.0'; // x-release-please-version
export const VERSION = '4.68.0'; // x-release-please-version
2 changes: 1 addition & 1 deletion tests/api-resources/customers/customers.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ describe('resource customers', () => {
],
excluded: true,
},
additional_emails: ['string'],
additional_emails: ['[email protected]'],
auto_collection: true,
billing_address: {
city: 'city',
Expand Down