From bfbc49621d93dabf52800163a304f3f50b7916d5 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 19 Mar 2024 02:27:14 +0000 Subject: [PATCH 1/5] docs: fix typo in CONTRIBUTING.md (#127) --- CONTRIBUTING.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 7ae12815..a4a84b6b 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -68,7 +68,7 @@ pnpm link -—global orb-billing Most tests require you to [set up a mock server](https://github.com/stoplightio/prism) against the OpenAPI spec to run the tests. ```bash -npx prism path/to/your/openapi.yml +npx prism mock path/to/your/openapi.yml ``` ```bash From a9813499738e9790135030ae5b35ba3d09cf82bd Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 19 Mar 2024 10:41:33 +0000 Subject: [PATCH 2/5] chore(internal): update generated pragma comment (#129) --- src/error.ts | 2 +- src/index.ts | 2 +- src/pagination.ts | 2 +- src/resource.ts | 2 +- src/resources/beta/beta.ts | 2 +- src/resources/beta/index.ts | 2 +- src/resources/beta/price.ts | 2 +- src/resources/coupons/coupons.ts | 2 +- src/resources/coupons/index.ts | 2 +- src/resources/coupons/subscriptions.ts | 2 +- src/resources/credit-notes.ts | 2 +- src/resources/customers/balance-transactions.ts | 2 +- src/resources/customers/costs.ts | 2 +- src/resources/customers/credits/credits.ts | 2 +- src/resources/customers/credits/index.ts | 2 +- src/resources/customers/credits/ledger.ts | 2 +- src/resources/customers/credits/top-ups.ts | 2 +- src/resources/customers/customers.ts | 2 +- src/resources/customers/index.ts | 2 +- src/resources/customers/usage.ts | 2 +- src/resources/events/backfills.ts | 2 +- src/resources/events/events.ts | 2 +- src/resources/events/index.ts | 2 +- src/resources/index.ts | 2 +- src/resources/invoice-line-items.ts | 2 +- src/resources/invoices.ts | 2 +- src/resources/items.ts | 2 +- src/resources/metrics.ts | 2 +- src/resources/plans/external-plan-id.ts | 2 +- src/resources/plans/index.ts | 2 +- src/resources/plans/plans.ts | 2 +- src/resources/prices/external-price-id.ts | 2 +- src/resources/prices/index.ts | 2 +- src/resources/prices/prices.ts | 2 +- src/resources/shared.ts | 2 +- src/resources/subscriptions.ts | 2 +- src/resources/top-level.ts | 2 +- tests/api-resources/beta/price.test.ts | 2 +- tests/api-resources/coupons/coupons.test.ts | 2 +- tests/api-resources/coupons/subscriptions.test.ts | 2 +- tests/api-resources/credit-notes.test.ts | 2 +- tests/api-resources/customers/balance-transactions.test.ts | 2 +- tests/api-resources/customers/costs.test.ts | 2 +- tests/api-resources/customers/credits/credits.test.ts | 2 +- tests/api-resources/customers/credits/ledger.test.ts | 2 +- tests/api-resources/customers/credits/top-ups.test.ts | 2 +- tests/api-resources/customers/customers.test.ts | 2 +- tests/api-resources/customers/usage.test.ts | 2 +- tests/api-resources/events/backfills.test.ts | 2 +- tests/api-resources/events/events.test.ts | 2 +- tests/api-resources/invoice-line-items.test.ts | 2 +- tests/api-resources/invoices.test.ts | 2 +- tests/api-resources/items.test.ts | 2 +- tests/api-resources/metrics.test.ts | 2 +- tests/api-resources/plans/external-plan-id.test.ts | 2 +- tests/api-resources/plans/plans.test.ts | 2 +- tests/api-resources/prices/external-price-id.test.ts | 2 +- tests/api-resources/prices/prices.test.ts | 2 +- tests/api-resources/subscriptions.test.ts | 2 +- tests/api-resources/top-level.test.ts | 2 +- tests/index.test.ts | 2 +- 61 files changed, 61 insertions(+), 61 deletions(-) diff --git a/src/error.ts b/src/error.ts index f398da02..90a56f04 100644 --- a/src/error.ts +++ b/src/error.ts @@ -1,4 +1,4 @@ -// File generated from our OpenAPI spec by Stainless. +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. import { castToError, Headers } from './core'; diff --git a/src/index.ts b/src/index.ts index fcde8846..f7ae5127 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,4 +1,4 @@ -// File generated from our OpenAPI spec by Stainless. +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. import * as Core from './core'; import * as Errors from './error'; diff --git a/src/pagination.ts b/src/pagination.ts index 37cea2df..43c7eae4 100644 --- a/src/pagination.ts +++ b/src/pagination.ts @@ -1,4 +1,4 @@ -// File generated from our OpenAPI spec by Stainless. +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. import { AbstractPage, Response, APIClient, FinalRequestOptions, PageInfo } from './core'; diff --git a/src/resource.ts b/src/resource.ts index b8151178..42de2e41 100644 --- a/src/resource.ts +++ b/src/resource.ts @@ -1,4 +1,4 @@ -// File generated from our OpenAPI spec by Stainless. +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. import type { Orb } from './index'; diff --git a/src/resources/beta/beta.ts b/src/resources/beta/beta.ts index bd30ce0f..075feb4e 100644 --- a/src/resources/beta/beta.ts +++ b/src/resources/beta/beta.ts @@ -1,4 +1,4 @@ -// File generated from our OpenAPI spec by Stainless. +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. import { APIResource } from 'orb-billing/resource'; import * as PriceAPI from 'orb-billing/resources/beta/price'; diff --git a/src/resources/beta/index.ts b/src/resources/beta/index.ts index 66429ec9..382bf46f 100644 --- a/src/resources/beta/index.ts +++ b/src/resources/beta/index.ts @@ -1,4 +1,4 @@ -// File generated from our OpenAPI spec by Stainless. +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. export { Beta } from './beta'; export { EvaluatePriceGroup, PriceEvaluateResponse, PriceEvaluateParams, Price } from './price'; diff --git a/src/resources/beta/price.ts b/src/resources/beta/price.ts index 303da812..53c8583c 100644 --- a/src/resources/beta/price.ts +++ b/src/resources/beta/price.ts @@ -1,4 +1,4 @@ -// File generated from our OpenAPI spec by Stainless. +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. import * as Core from 'orb-billing/core'; import { APIResource } from 'orb-billing/resource'; diff --git a/src/resources/coupons/coupons.ts b/src/resources/coupons/coupons.ts index 325ecdc0..38c14341 100644 --- a/src/resources/coupons/coupons.ts +++ b/src/resources/coupons/coupons.ts @@ -1,4 +1,4 @@ -// File generated from our OpenAPI spec by Stainless. +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. import * as Core from 'orb-billing/core'; import { APIResource } from 'orb-billing/resource'; diff --git a/src/resources/coupons/index.ts b/src/resources/coupons/index.ts index 3abb746a..5933e199 100644 --- a/src/resources/coupons/index.ts +++ b/src/resources/coupons/index.ts @@ -1,4 +1,4 @@ -// File generated from our OpenAPI spec by Stainless. +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. export { Coupon, CouponCreateParams, CouponListParams, CouponsPage, Coupons } from './coupons'; export { SubscriptionListParams, Subscriptions } from './subscriptions'; diff --git a/src/resources/coupons/subscriptions.ts b/src/resources/coupons/subscriptions.ts index dfdb3a01..72756de6 100644 --- a/src/resources/coupons/subscriptions.ts +++ b/src/resources/coupons/subscriptions.ts @@ -1,4 +1,4 @@ -// File generated from our OpenAPI spec by Stainless. +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. import * as Core from 'orb-billing/core'; import { APIResource } from 'orb-billing/resource'; diff --git a/src/resources/credit-notes.ts b/src/resources/credit-notes.ts index de4add87..ab194349 100644 --- a/src/resources/credit-notes.ts +++ b/src/resources/credit-notes.ts @@ -1,4 +1,4 @@ -// File generated from our OpenAPI spec by Stainless. +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. import * as Core from 'orb-billing/core'; import { APIResource } from 'orb-billing/resource'; diff --git a/src/resources/customers/balance-transactions.ts b/src/resources/customers/balance-transactions.ts index ef546bee..bfd2eb24 100644 --- a/src/resources/customers/balance-transactions.ts +++ b/src/resources/customers/balance-transactions.ts @@ -1,4 +1,4 @@ -// File generated from our OpenAPI spec by Stainless. +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. import * as Core from 'orb-billing/core'; import { APIResource } from 'orb-billing/resource'; diff --git a/src/resources/customers/costs.ts b/src/resources/customers/costs.ts index 27f209c8..2ea5b530 100644 --- a/src/resources/customers/costs.ts +++ b/src/resources/customers/costs.ts @@ -1,4 +1,4 @@ -// File generated from our OpenAPI spec by Stainless. +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. import * as Core from 'orb-billing/core'; import { APIResource } from 'orb-billing/resource'; diff --git a/src/resources/customers/credits/credits.ts b/src/resources/customers/credits/credits.ts index 4138fb4d..2431a2d0 100644 --- a/src/resources/customers/credits/credits.ts +++ b/src/resources/customers/credits/credits.ts @@ -1,4 +1,4 @@ -// File generated from our OpenAPI spec by Stainless. +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. import * as Core from 'orb-billing/core'; import { APIResource } from 'orb-billing/resource'; diff --git a/src/resources/customers/credits/index.ts b/src/resources/customers/credits/index.ts index 6d7e71dd..86350562 100644 --- a/src/resources/customers/credits/index.ts +++ b/src/resources/customers/credits/index.ts @@ -1,4 +1,4 @@ -// File generated from our OpenAPI spec by Stainless. +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. export { CreditListResponse, diff --git a/src/resources/customers/credits/ledger.ts b/src/resources/customers/credits/ledger.ts index c7c016e3..fbfc8ff3 100644 --- a/src/resources/customers/credits/ledger.ts +++ b/src/resources/customers/credits/ledger.ts @@ -1,4 +1,4 @@ -// File generated from our OpenAPI spec by Stainless. +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. import * as Core from 'orb-billing/core'; import { APIResource } from 'orb-billing/resource'; diff --git a/src/resources/customers/credits/top-ups.ts b/src/resources/customers/credits/top-ups.ts index e9094354..626412c0 100644 --- a/src/resources/customers/credits/top-ups.ts +++ b/src/resources/customers/credits/top-ups.ts @@ -1,4 +1,4 @@ -// File generated from our OpenAPI spec by Stainless. +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. import * as Core from 'orb-billing/core'; import { APIResource } from 'orb-billing/resource'; diff --git a/src/resources/customers/customers.ts b/src/resources/customers/customers.ts index e5c080e8..8c97e414 100644 --- a/src/resources/customers/customers.ts +++ b/src/resources/customers/customers.ts @@ -1,4 +1,4 @@ -// File generated from our OpenAPI spec by Stainless. +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. import * as Core from 'orb-billing/core'; import { APIResource } from 'orb-billing/resource'; diff --git a/src/resources/customers/index.ts b/src/resources/customers/index.ts index f3d1c0a8..fe5ca943 100644 --- a/src/resources/customers/index.ts +++ b/src/resources/customers/index.ts @@ -1,4 +1,4 @@ -// File generated from our OpenAPI spec by Stainless. +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. export { BalanceTransactionCreateResponse, diff --git a/src/resources/customers/usage.ts b/src/resources/customers/usage.ts index 6a2f5d34..8e6c3aff 100644 --- a/src/resources/customers/usage.ts +++ b/src/resources/customers/usage.ts @@ -1,4 +1,4 @@ -// File generated from our OpenAPI spec by Stainless. +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. import * as Core from 'orb-billing/core'; import { APIResource } from 'orb-billing/resource'; diff --git a/src/resources/events/backfills.ts b/src/resources/events/backfills.ts index 37ed27d8..05f2e356 100644 --- a/src/resources/events/backfills.ts +++ b/src/resources/events/backfills.ts @@ -1,4 +1,4 @@ -// File generated from our OpenAPI spec by Stainless. +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. import * as Core from 'orb-billing/core'; import { APIResource } from 'orb-billing/resource'; diff --git a/src/resources/events/events.ts b/src/resources/events/events.ts index d153d9b8..dd125d1b 100644 --- a/src/resources/events/events.ts +++ b/src/resources/events/events.ts @@ -1,4 +1,4 @@ -// File generated from our OpenAPI spec by Stainless. +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. import * as Core from 'orb-billing/core'; import { APIResource } from 'orb-billing/resource'; diff --git a/src/resources/events/index.ts b/src/resources/events/index.ts index 94024484..05e63bf1 100644 --- a/src/resources/events/index.ts +++ b/src/resources/events/index.ts @@ -1,4 +1,4 @@ -// File generated from our OpenAPI spec by Stainless. +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. export { BackfillCreateResponse, diff --git a/src/resources/index.ts b/src/resources/index.ts index 86618fd9..799efda3 100644 --- a/src/resources/index.ts +++ b/src/resources/index.ts @@ -1,4 +1,4 @@ -// File generated from our OpenAPI spec by Stainless. +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. export * from './shared'; export { Beta } from './beta/beta'; diff --git a/src/resources/invoice-line-items.ts b/src/resources/invoice-line-items.ts index fe15d910..076423e1 100644 --- a/src/resources/invoice-line-items.ts +++ b/src/resources/invoice-line-items.ts @@ -1,4 +1,4 @@ -// File generated from our OpenAPI spec by Stainless. +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. import * as Core from 'orb-billing/core'; import { APIResource } from 'orb-billing/resource'; diff --git a/src/resources/invoices.ts b/src/resources/invoices.ts index 4725e112..0b67f4e0 100644 --- a/src/resources/invoices.ts +++ b/src/resources/invoices.ts @@ -1,4 +1,4 @@ -// File generated from our OpenAPI spec by Stainless. +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. import * as Core from 'orb-billing/core'; import { APIResource } from 'orb-billing/resource'; diff --git a/src/resources/items.ts b/src/resources/items.ts index feedabf0..db90131e 100644 --- a/src/resources/items.ts +++ b/src/resources/items.ts @@ -1,4 +1,4 @@ -// File generated from our OpenAPI spec by Stainless. +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. import * as Core from 'orb-billing/core'; import { APIResource } from 'orb-billing/resource'; diff --git a/src/resources/metrics.ts b/src/resources/metrics.ts index df1bd64d..41f2d28d 100644 --- a/src/resources/metrics.ts +++ b/src/resources/metrics.ts @@ -1,4 +1,4 @@ -// File generated from our OpenAPI spec by Stainless. +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. import * as Core from 'orb-billing/core'; import { APIResource } from 'orb-billing/resource'; diff --git a/src/resources/plans/external-plan-id.ts b/src/resources/plans/external-plan-id.ts index bfd80a08..64ec0f58 100644 --- a/src/resources/plans/external-plan-id.ts +++ b/src/resources/plans/external-plan-id.ts @@ -1,4 +1,4 @@ -// File generated from our OpenAPI spec by Stainless. +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. import * as Core from 'orb-billing/core'; import { APIResource } from 'orb-billing/resource'; diff --git a/src/resources/plans/index.ts b/src/resources/plans/index.ts index 04c15f78..a4e530f9 100644 --- a/src/resources/plans/index.ts +++ b/src/resources/plans/index.ts @@ -1,4 +1,4 @@ -// File generated from our OpenAPI spec by Stainless. +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. export { ExternalPlanIDUpdateParams, ExternalPlanID } from './external-plan-id'; export { Plan, PlanCreateParams, PlanUpdateParams, PlanListParams, PlansPage, Plans } from './plans'; diff --git a/src/resources/plans/plans.ts b/src/resources/plans/plans.ts index 3ff17228..e3d7d82a 100644 --- a/src/resources/plans/plans.ts +++ b/src/resources/plans/plans.ts @@ -1,4 +1,4 @@ -// File generated from our OpenAPI spec by Stainless. +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. import * as Core from 'orb-billing/core'; import { APIResource } from 'orb-billing/resource'; diff --git a/src/resources/prices/external-price-id.ts b/src/resources/prices/external-price-id.ts index a2967bcc..7e5ec48a 100644 --- a/src/resources/prices/external-price-id.ts +++ b/src/resources/prices/external-price-id.ts @@ -1,4 +1,4 @@ -// File generated from our OpenAPI spec by Stainless. +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. import * as Core from 'orb-billing/core'; import { APIResource } from 'orb-billing/resource'; diff --git a/src/resources/prices/index.ts b/src/resources/prices/index.ts index 1351d559..05905409 100644 --- a/src/resources/prices/index.ts +++ b/src/resources/prices/index.ts @@ -1,4 +1,4 @@ -// File generated from our OpenAPI spec by Stainless. +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. export { ExternalPriceID } from './external-price-id'; export { Price, PriceCreateParams, PriceListParams, PricesPage, Prices } from './prices'; diff --git a/src/resources/prices/prices.ts b/src/resources/prices/prices.ts index ae778361..a0b1bfd8 100644 --- a/src/resources/prices/prices.ts +++ b/src/resources/prices/prices.ts @@ -1,4 +1,4 @@ -// File generated from our OpenAPI spec by Stainless. +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. import * as Core from 'orb-billing/core'; import { APIResource } from 'orb-billing/resource'; diff --git a/src/resources/shared.ts b/src/resources/shared.ts index eef044b9..39d6bd97 100644 --- a/src/resources/shared.ts +++ b/src/resources/shared.ts @@ -1,4 +1,4 @@ -// File generated from our OpenAPI spec by Stainless. +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. export type Discount = | Discount.PercentageDiscount diff --git a/src/resources/subscriptions.ts b/src/resources/subscriptions.ts index ad71621e..e3664a6a 100644 --- a/src/resources/subscriptions.ts +++ b/src/resources/subscriptions.ts @@ -1,4 +1,4 @@ -// File generated from our OpenAPI spec by Stainless. +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. import * as Core from 'orb-billing/core'; import { APIResource } from 'orb-billing/resource'; diff --git a/src/resources/top-level.ts b/src/resources/top-level.ts index b517e004..c69e161e 100644 --- a/src/resources/top-level.ts +++ b/src/resources/top-level.ts @@ -1,4 +1,4 @@ -// File generated from our OpenAPI spec by Stainless. +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. import * as Core from 'orb-billing/core'; import { APIResource } from 'orb-billing/resource'; diff --git a/tests/api-resources/beta/price.test.ts b/tests/api-resources/beta/price.test.ts index eba70471..9b3b08ab 100644 --- a/tests/api-resources/beta/price.test.ts +++ b/tests/api-resources/beta/price.test.ts @@ -1,4 +1,4 @@ -// File generated from our OpenAPI spec by Stainless. +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. import Orb from 'orb-billing'; import { Response } from 'node-fetch'; diff --git a/tests/api-resources/coupons/coupons.test.ts b/tests/api-resources/coupons/coupons.test.ts index 85e68ac8..a0145d51 100644 --- a/tests/api-resources/coupons/coupons.test.ts +++ b/tests/api-resources/coupons/coupons.test.ts @@ -1,4 +1,4 @@ -// File generated from our OpenAPI spec by Stainless. +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. import Orb from 'orb-billing'; import { Response } from 'node-fetch'; diff --git a/tests/api-resources/coupons/subscriptions.test.ts b/tests/api-resources/coupons/subscriptions.test.ts index 383ae027..fb72c2fa 100644 --- a/tests/api-resources/coupons/subscriptions.test.ts +++ b/tests/api-resources/coupons/subscriptions.test.ts @@ -1,4 +1,4 @@ -// File generated from our OpenAPI spec by Stainless. +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. import Orb from 'orb-billing'; import { Response } from 'node-fetch'; diff --git a/tests/api-resources/credit-notes.test.ts b/tests/api-resources/credit-notes.test.ts index b79ab0fc..15e26bbb 100644 --- a/tests/api-resources/credit-notes.test.ts +++ b/tests/api-resources/credit-notes.test.ts @@ -1,4 +1,4 @@ -// File generated from our OpenAPI spec by Stainless. +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. import Orb from 'orb-billing'; import { Response } from 'node-fetch'; diff --git a/tests/api-resources/customers/balance-transactions.test.ts b/tests/api-resources/customers/balance-transactions.test.ts index 911751d8..2f3b86c8 100644 --- a/tests/api-resources/customers/balance-transactions.test.ts +++ b/tests/api-resources/customers/balance-transactions.test.ts @@ -1,4 +1,4 @@ -// File generated from our OpenAPI spec by Stainless. +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. import Orb from 'orb-billing'; import { Response } from 'node-fetch'; diff --git a/tests/api-resources/customers/costs.test.ts b/tests/api-resources/customers/costs.test.ts index a30b04a7..fb892041 100644 --- a/tests/api-resources/customers/costs.test.ts +++ b/tests/api-resources/customers/costs.test.ts @@ -1,4 +1,4 @@ -// File generated from our OpenAPI spec by Stainless. +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. import Orb from 'orb-billing'; import { Response } from 'node-fetch'; diff --git a/tests/api-resources/customers/credits/credits.test.ts b/tests/api-resources/customers/credits/credits.test.ts index eb280b89..3cb81b81 100644 --- a/tests/api-resources/customers/credits/credits.test.ts +++ b/tests/api-resources/customers/credits/credits.test.ts @@ -1,4 +1,4 @@ -// File generated from our OpenAPI spec by Stainless. +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. import Orb from 'orb-billing'; import { Response } from 'node-fetch'; diff --git a/tests/api-resources/customers/credits/ledger.test.ts b/tests/api-resources/customers/credits/ledger.test.ts index 5bfefbdb..037f3bf7 100644 --- a/tests/api-resources/customers/credits/ledger.test.ts +++ b/tests/api-resources/customers/credits/ledger.test.ts @@ -1,4 +1,4 @@ -// File generated from our OpenAPI spec by Stainless. +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. import Orb from 'orb-billing'; import { Response } from 'node-fetch'; diff --git a/tests/api-resources/customers/credits/top-ups.test.ts b/tests/api-resources/customers/credits/top-ups.test.ts index b08794e0..ad884905 100644 --- a/tests/api-resources/customers/credits/top-ups.test.ts +++ b/tests/api-resources/customers/credits/top-ups.test.ts @@ -1,4 +1,4 @@ -// File generated from our OpenAPI spec by Stainless. +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. import Orb from 'orb-billing'; import { Response } from 'node-fetch'; diff --git a/tests/api-resources/customers/customers.test.ts b/tests/api-resources/customers/customers.test.ts index 0a3f2a9a..e54bb568 100644 --- a/tests/api-resources/customers/customers.test.ts +++ b/tests/api-resources/customers/customers.test.ts @@ -1,4 +1,4 @@ -// File generated from our OpenAPI spec by Stainless. +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. import Orb from 'orb-billing'; import { Response } from 'node-fetch'; diff --git a/tests/api-resources/customers/usage.test.ts b/tests/api-resources/customers/usage.test.ts index 4b3bdac6..4967e7d5 100644 --- a/tests/api-resources/customers/usage.test.ts +++ b/tests/api-resources/customers/usage.test.ts @@ -1,4 +1,4 @@ -// File generated from our OpenAPI spec by Stainless. +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. import Orb from 'orb-billing'; import { Response } from 'node-fetch'; diff --git a/tests/api-resources/events/backfills.test.ts b/tests/api-resources/events/backfills.test.ts index ada0691f..17f83f5f 100644 --- a/tests/api-resources/events/backfills.test.ts +++ b/tests/api-resources/events/backfills.test.ts @@ -1,4 +1,4 @@ -// File generated from our OpenAPI spec by Stainless. +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. import Orb from 'orb-billing'; import { Response } from 'node-fetch'; diff --git a/tests/api-resources/events/events.test.ts b/tests/api-resources/events/events.test.ts index 538f966e..50855e81 100644 --- a/tests/api-resources/events/events.test.ts +++ b/tests/api-resources/events/events.test.ts @@ -1,4 +1,4 @@ -// File generated from our OpenAPI spec by Stainless. +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. import Orb from 'orb-billing'; import { Response } from 'node-fetch'; diff --git a/tests/api-resources/invoice-line-items.test.ts b/tests/api-resources/invoice-line-items.test.ts index bb872415..eb3d10fc 100644 --- a/tests/api-resources/invoice-line-items.test.ts +++ b/tests/api-resources/invoice-line-items.test.ts @@ -1,4 +1,4 @@ -// File generated from our OpenAPI spec by Stainless. +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. import Orb from 'orb-billing'; import { Response } from 'node-fetch'; diff --git a/tests/api-resources/invoices.test.ts b/tests/api-resources/invoices.test.ts index 28e1e6bb..98e95abe 100644 --- a/tests/api-resources/invoices.test.ts +++ b/tests/api-resources/invoices.test.ts @@ -1,4 +1,4 @@ -// File generated from our OpenAPI spec by Stainless. +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. import Orb from 'orb-billing'; import { Response } from 'node-fetch'; diff --git a/tests/api-resources/items.test.ts b/tests/api-resources/items.test.ts index f2c9cfb0..43b03026 100644 --- a/tests/api-resources/items.test.ts +++ b/tests/api-resources/items.test.ts @@ -1,4 +1,4 @@ -// File generated from our OpenAPI spec by Stainless. +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. import Orb from 'orb-billing'; import { Response } from 'node-fetch'; diff --git a/tests/api-resources/metrics.test.ts b/tests/api-resources/metrics.test.ts index 2056fdaa..1031a161 100644 --- a/tests/api-resources/metrics.test.ts +++ b/tests/api-resources/metrics.test.ts @@ -1,4 +1,4 @@ -// File generated from our OpenAPI spec by Stainless. +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. import Orb from 'orb-billing'; import { Response } from 'node-fetch'; diff --git a/tests/api-resources/plans/external-plan-id.test.ts b/tests/api-resources/plans/external-plan-id.test.ts index 2a846098..b5528fd2 100644 --- a/tests/api-resources/plans/external-plan-id.test.ts +++ b/tests/api-resources/plans/external-plan-id.test.ts @@ -1,4 +1,4 @@ -// File generated from our OpenAPI spec by Stainless. +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. import Orb from 'orb-billing'; import { Response } from 'node-fetch'; diff --git a/tests/api-resources/plans/plans.test.ts b/tests/api-resources/plans/plans.test.ts index d863db13..b0afdbbe 100644 --- a/tests/api-resources/plans/plans.test.ts +++ b/tests/api-resources/plans/plans.test.ts @@ -1,4 +1,4 @@ -// File generated from our OpenAPI spec by Stainless. +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. import Orb from 'orb-billing'; import { Response } from 'node-fetch'; diff --git a/tests/api-resources/prices/external-price-id.test.ts b/tests/api-resources/prices/external-price-id.test.ts index 56a74348..30defc19 100644 --- a/tests/api-resources/prices/external-price-id.test.ts +++ b/tests/api-resources/prices/external-price-id.test.ts @@ -1,4 +1,4 @@ -// File generated from our OpenAPI spec by Stainless. +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. import Orb from 'orb-billing'; import { Response } from 'node-fetch'; diff --git a/tests/api-resources/prices/prices.test.ts b/tests/api-resources/prices/prices.test.ts index cba1b1da..903d3b66 100644 --- a/tests/api-resources/prices/prices.test.ts +++ b/tests/api-resources/prices/prices.test.ts @@ -1,4 +1,4 @@ -// File generated from our OpenAPI spec by Stainless. +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. import Orb from 'orb-billing'; import { Response } from 'node-fetch'; diff --git a/tests/api-resources/subscriptions.test.ts b/tests/api-resources/subscriptions.test.ts index 4b7eda30..72a94a77 100644 --- a/tests/api-resources/subscriptions.test.ts +++ b/tests/api-resources/subscriptions.test.ts @@ -1,4 +1,4 @@ -// File generated from our OpenAPI spec by Stainless. +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. import Orb from 'orb-billing'; import { Response } from 'node-fetch'; diff --git a/tests/api-resources/top-level.test.ts b/tests/api-resources/top-level.test.ts index ae329530..4ecfbd5c 100644 --- a/tests/api-resources/top-level.test.ts +++ b/tests/api-resources/top-level.test.ts @@ -1,4 +1,4 @@ -// File generated from our OpenAPI spec by Stainless. +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. import Orb from 'orb-billing'; import { Response } from 'node-fetch'; diff --git a/tests/index.test.ts b/tests/index.test.ts index b236d42e..b62c91cd 100644 --- a/tests/index.test.ts +++ b/tests/index.test.ts @@ -1,4 +1,4 @@ -// File generated from our OpenAPI spec by Stainless. +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. import Orb from 'orb-billing'; import { APIUserAbortError } from 'orb-billing'; From f73fa8c79ec9f881fb4e89db72367783bec3b5aa Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 19 Mar 2024 15:02:36 +0000 Subject: [PATCH 3/5] docs: updated invoice description (#130) --- src/resources/invoices.ts | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/resources/invoices.ts b/src/resources/invoices.ts index 0b67f4e0..589171ef 100644 --- a/src/resources/invoices.ts +++ b/src/resources/invoices.ts @@ -42,9 +42,6 @@ export class Invoices extends APIResource { /** * This endpoint is used to fetch an [`Invoice`](../guides/concepts#invoice) given * an identifier. - * - * This endpoint supports returning ApiCachedUsageData (see - * api/cache_control_utils.py) */ fetch(invoiceId: string, options?: Core.RequestOptions): Core.APIPromise { return this._client.get(`/invoices/${invoiceId}`, options); @@ -54,9 +51,6 @@ export class Invoices extends APIResource { * This endpoint can be used to fetch the upcoming * [invoice](../guides/concepts#invoice) for the current billing period given a * subscription. - * - * This endpoint supports returning ApiCachedUsageData (see - * api/cache_control_utils.py) */ fetchUpcoming( query?: InvoiceFetchUpcomingParams, From 3dcf78ef86120dd23d70c4c0207b7e261767f1c8 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 19 Mar 2024 22:59:07 +0000 Subject: [PATCH 4/5] fix(internal): make toFile use input file's options (#131) --- src/uploads.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/uploads.ts b/src/uploads.ts index 2398baf3..081827c9 100644 --- a/src/uploads.ts +++ b/src/uploads.ts @@ -102,11 +102,14 @@ export type ToFileInput = Uploadable | Exclude | AsyncIter export async function toFile( value: ToFileInput | PromiseLike, name?: string | null | undefined, - options: FilePropertyBag | undefined = {}, + options?: FilePropertyBag | undefined, ): Promise { // If it's a promise, resolve it. value = await value; + // Use the file's options if there isn't one provided + options ??= isFileLike(value) ? { lastModified: value.lastModified, type: value.type } : {}; + if (isResponseLike(value)) { const blob = await value.blob(); name ||= new URL(value.url).pathname.split(/[\\/]/).pop() ?? 'unknown_file'; From b5cef0fa0bec97156230ca4f17dc8d461b756489 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 19 Mar 2024 22:59:19 +0000 Subject: [PATCH 5/5] release: 2.0.1 --- .release-please-manifest.json | 2 +- CHANGELOG.md | 19 +++++++++++++++++++ package.json | 2 +- src/version.ts | 2 +- 4 files changed, 22 insertions(+), 3 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 895bf0e3..b725ab08 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "2.0.0" + ".": "2.0.1" } diff --git a/CHANGELOG.md b/CHANGELOG.md index a9d839a6..2935e27c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,24 @@ # Changelog +## 2.0.1 (2024-03-19) + +Full Changelog: [v2.0.0...v2.0.1](https://github.com/orbcorp/orb-node/compare/v2.0.0...v2.0.1) + +### Bug Fixes + +* **internal:** make toFile use input file's options ([#131](https://github.com/orbcorp/orb-node/issues/131)) ([3dcf78e](https://github.com/orbcorp/orb-node/commit/3dcf78ef86120dd23d70c4c0207b7e261767f1c8)) + + +### Chores + +* **internal:** update generated pragma comment ([#129](https://github.com/orbcorp/orb-node/issues/129)) ([a981349](https://github.com/orbcorp/orb-node/commit/a9813499738e9790135030ae5b35ba3d09cf82bd)) + + +### Documentation + +* fix typo in CONTRIBUTING.md ([#127](https://github.com/orbcorp/orb-node/issues/127)) ([bfbc496](https://github.com/orbcorp/orb-node/commit/bfbc49621d93dabf52800163a304f3f50b7916d5)) +* updated invoice description ([#130](https://github.com/orbcorp/orb-node/issues/130)) ([f73fa8c](https://github.com/orbcorp/orb-node/commit/f73fa8c79ec9f881fb4e89db72367783bec3b5aa)) + ## 2.0.0 (2024-03-15) Full Changelog: [v1.41.0...v2.0.0](https://github.com/orbcorp/orb-node/compare/v1.41.0...v2.0.0) diff --git a/package.json b/package.json index dbb809df..4731e40d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "orb-billing", - "version": "2.0.0", + "version": "2.0.1", "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 d66dc1ba..29da3e43 100644 --- a/src/version.ts +++ b/src/version.ts @@ -1 +1 @@ -export const VERSION = '2.0.0'; // x-release-please-version +export const VERSION = '2.0.1'; // x-release-please-version