From 1fe40c9f487c96219b2712b44ebcb96e41d5f718 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 7 Mar 2025 19:37:41 +0000 Subject: [PATCH 1/5] chore(internal): codegen related update (#550) --- src/pagination.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pagination.ts b/src/pagination.ts index 43c7eae4..ebd8412a 100644 --- a/src/pagination.ts +++ b/src/pagination.ts @@ -63,7 +63,7 @@ export class Page extends AbstractPage implements PageResponse return { params: { - cursor: cursor, + cursor, }, }; } From c093bbd7554a0016797def8f2dd4f3f8bb1dc961 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Sat, 8 Mar 2025 18:17:23 +0000 Subject: [PATCH 2/5] feat: add SKIP_BREW env var to ./scripts/bootstrap (#552) --- scripts/bootstrap | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/bootstrap b/scripts/bootstrap index 05dd47a6..0af58e25 100755 --- a/scripts/bootstrap +++ b/scripts/bootstrap @@ -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 From fc564266196bc1dc5806ba600114056b5d85103b Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 10 Mar 2025 05:39:37 +0000 Subject: [PATCH 3/5] feat(api): api update (#553) --- .stats.yml | 2 +- src/resources/subscriptions.ts | 8 ++++++-- tests/api-resources/customers/customers.test.ts | 2 +- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/.stats.yml b/.stats.yml index 58bce287..f6e24a32 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-6797b438a8e6a6856e28f4304a5a3c81bb67e74fa2d6fcc20e734880c725295a.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-04f02fa57c3ab8d15ecf0a16a41a83814c21cdc2a830fae4d65f1b7b2196d819.yml diff --git a/src/resources/subscriptions.ts b/src/resources/subscriptions.ts index da00cc22..b00e4ecf 100644 --- a/src/resources/subscriptions.ts +++ b/src/resources/subscriptions.ts @@ -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; } diff --git a/tests/api-resources/customers/customers.test.ts b/tests/api-resources/customers/customers.test.ts index 8bfcf7c0..47f72824 100644 --- a/tests/api-resources/customers/customers.test.ts +++ b/tests/api-resources/customers/customers.test.ts @@ -30,7 +30,7 @@ describe('resource customers', () => { ], excluded: true, }, - additional_emails: ['string'], + additional_emails: ['dev@stainless.com'], auto_collection: true, billing_address: { city: 'city', From 3a2ad3cf2b86597ce08167e416d0a61547943b7b Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 10 Mar 2025 20:19:15 +0000 Subject: [PATCH 4/5] chore(internal): codegen related update (#554) --- src/core.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core.ts b/src/core.ts index 17fd5409..8951664b 100644 --- a/src/core.ts +++ b/src/core.ts @@ -48,8 +48,8 @@ async function defaultParseResponse(props: APIResponseProps): Promise { } 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(); From d432f36b07b52828af852d9a96f2f9dfa96f071e Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 10 Mar 2025 20:19:40 +0000 Subject: [PATCH 5/5] release: 4.68.0 --- .release-please-manifest.json | 2 +- CHANGELOG.md | 15 +++++++++++++++ package.json | 2 +- src/version.ts | 2 +- 4 files changed, 18 insertions(+), 3 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 6872cea5..91b39801 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "4.67.0" + ".": "4.68.0" } diff --git a/CHANGELOG.md b/CHANGELOG.md index df13afe3..55da6a69 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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) diff --git a/package.json b/package.json index 08535834..a5ea7f03 100644 --- a/package.json +++ b/package.json @@ -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 ", "types": "dist/index.d.ts", diff --git a/src/version.ts b/src/version.ts index fe2f611c..12aaa52b 100644 --- a/src/version.ts +++ b/src/version.ts @@ -1 +1 @@ -export const VERSION = '4.67.0'; // x-release-please-version +export const VERSION = '4.68.0'; // x-release-please-version