From fe79fcf4370c47c726960e36369311e2859efe61 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 6 Nov 2024 22:26:01 +0000 Subject: [PATCH 01/11] chore(api): adds replacement_account_token to Card create parameters (#562) --- src/resources/cards/cards.ts | 9 +++++++++ tests/api-resources/cards/cards.test.ts | 1 + 2 files changed, 10 insertions(+) diff --git a/src/resources/cards/cards.ts b/src/resources/cards/cards.ts index 24b9cd90..0203f36a 100644 --- a/src/resources/cards/cards.ts +++ b/src/resources/cards/cards.ts @@ -608,6 +608,15 @@ export interface CardCreateParams { */ product_id?: string; + /** + * Restricted field limited to select use cases. Lithic will reach out directly if + * this field should be used. Globally unique identifier for the replacement card's + * account. If this field is specified, `replacement_for` must also be specified. + * If `replacement_for` is specified and this field is omitted, the replacement + * card's account will be inferred from the card being replaced. + */ + replacement_account_token?: string; + /** * Only applicable to cards of type `PHYSICAL`. Globally unique identifier for the * card that this physical card will replace. diff --git a/tests/api-resources/cards/cards.test.ts b/tests/api-resources/cards/cards.test.ts index fb1f72b4..0305d5c5 100644 --- a/tests/api-resources/cards/cards.test.ts +++ b/tests/api-resources/cards/cards.test.ts @@ -32,6 +32,7 @@ describe('resource cards', () => { memo: 'New Card', pin: 'pin', product_id: '1', + replacement_account_token: '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e', replacement_for: '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e', shipping_address: { address1: '5 Broad Street', From 88e2d7698e7aa5984761f301ec10192952491574 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 11 Nov 2024 15:37:04 +0000 Subject: [PATCH 02/11] chore(api): add business_account_token param for listing Balances (#564) --- src/resources/balances.ts | 7 ++++++- tests/api-resources/balances.test.ts | 1 + 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/resources/balances.ts b/src/resources/balances.ts index 5bf1ba00..68b803fe 100644 --- a/src/resources/balances.ts +++ b/src/resources/balances.ts @@ -7,7 +7,7 @@ import { SinglePage } from '../pagination'; export class Balances extends APIResource { /** - * Get the balances for a program or a given end-user account + * Get the balances for a program, business, or a given end-user account */ list( query?: BalanceListParams, @@ -98,6 +98,11 @@ export interface BalanceListParams { */ balance_date?: string; + /** + * List balances for all financial accounts of a given business_account_token. + */ + business_account_token?: string; + /** * List balances for a given Financial Account type. */ diff --git a/tests/api-resources/balances.test.ts b/tests/api-resources/balances.test.ts index 4a8096b7..edc05367 100644 --- a/tests/api-resources/balances.test.ts +++ b/tests/api-resources/balances.test.ts @@ -34,6 +34,7 @@ describe('resource balances', () => { { account_token: '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e', balance_date: '2019-12-27T18:11:19.117Z', + business_account_token: '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e', financial_account_type: 'ISSUING', }, { path: '/_stainless_unknown_path' }, From 65e4f11f83508c5b2da37beab74b435fa987089c Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 11 Nov 2024 17:52:37 +0000 Subject: [PATCH 03/11] chore(internal): use reexports not destructuring (#565) --- src/index.ts | 38 +++++++++++++++++--------------------- 1 file changed, 17 insertions(+), 21 deletions(-) diff --git a/src/index.ts b/src/index.ts index fdc23a4a..06a094a0 100644 --- a/src/index.ts +++ b/src/index.ts @@ -235,7 +235,6 @@ const environments = { sandbox: 'https://sandbox.lithic.com', }; type Environment = keyof typeof environments; - export interface ClientOptions { /** * Defaults to process.env['LITHIC_API_KEY']. @@ -450,25 +449,6 @@ export class Lithic extends Core.APIClient { static fileFromPath = Uploads.fileFromPath; } -export { - LithicError, - APIError, - APIConnectionError, - APIConnectionTimeoutError, - APIUserAbortError, - NotFoundError, - ConflictError, - RateLimitError, - BadRequestError, - AuthenticationError, - InternalServerError, - PermissionDeniedError, - UnprocessableEntityError, -} from './error'; - -export import toFile = Uploads.toFile; -export import fileFromPath = Uploads.fileFromPath; - Lithic.Accounts = Accounts; Lithic.AccountsCursorPage = AccountsCursorPage; Lithic.AccountHolders = AccountHolders; @@ -513,7 +493,6 @@ Lithic.ExternalPayments = ExternalPayments; Lithic.ExternalPaymentsCursorPage = ExternalPaymentsCursorPage; Lithic.ManagementOperations = ManagementOperations; Lithic.ManagementOperationTransactionsCursorPage = ManagementOperationTransactionsCursorPage; - export declare namespace Lithic { export type RequestOptions = Core.RequestOptions; @@ -791,4 +770,21 @@ export declare namespace Lithic { export type VelocityLimitParamsPeriodWindow = API.VelocityLimitParamsPeriodWindow; } +export { toFile, fileFromPath } from 'lithic/uploads'; +export { + LithicError, + APIError, + APIConnectionError, + APIConnectionTimeoutError, + APIUserAbortError, + NotFoundError, + ConflictError, + RateLimitError, + BadRequestError, + AuthenticationError, + InternalServerError, + PermissionDeniedError, + UnprocessableEntityError, +} from 'lithic/error'; + export default Lithic; From 70adc94216a48b88097e4a93b9c1812bd9fe1a24 Mon Sep 17 00:00:00 2001 From: Stainless Bot Date: Tue, 19 Nov 2024 19:20:28 +0000 Subject: [PATCH 04/11] feat(api): adds PrimeRates API (#566) - renames `credit_product_id` to `credit_product_token` for retrieving an ExtendedCredit --- .stats.yml | 2 +- api.md | 23 +++++ .../credit-products/credit-products.ts | 16 +++ .../credit-products/extended-credit.ts | 4 +- src/resources/credit-products/index.ts | 6 ++ src/resources/credit-products/prime-rates.ts | 99 +++++++++++++++++++ .../financial-accounts/financial-accounts.ts | 1 + .../statements/line-items.ts | 4 + src/resources/transfers.ts | 1 + .../credit-products/extended-credit.test.ts | 31 ++++++ .../credit-products/prime-rates.test.ts | 61 ++++++++++++ 11 files changed, 245 insertions(+), 3 deletions(-) create mode 100644 src/resources/credit-products/prime-rates.ts create mode 100644 tests/api-resources/credit-products/extended-credit.test.ts create mode 100644 tests/api-resources/credit-products/prime-rates.test.ts diff --git a/.stats.yml b/.stats.yml index 9f97df3f..db174bd6 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1 +1 @@ -configured_endpoints: 149 +configured_endpoints: 151 diff --git a/api.md b/api.md index 5fe841f3..c48a891e 100644 --- a/api.md +++ b/api.md @@ -553,6 +553,29 @@ Methods: - client.bookTransfers.list({ ...params }) -> BookTransferResponsesCursorPage - client.bookTransfers.reverse(bookTransferToken, { ...params }) -> BookTransferResponse +# CreditProducts + +## ExtendedCredit + +Types: + +- ExtendedCredit + +Methods: + +- client.creditProducts.extendedCredit.retrieve(creditProductToken) -> ExtendedCredit + +## PrimeRates + +Types: + +- PrimeRateRetrieveResponse + +Methods: + +- client.creditProducts.primeRates.create(creditProductToken, { ...params }) -> void +- client.creditProducts.primeRates.retrieve(creditProductToken, { ...params }) -> PrimeRateRetrieveResponse + # ExternalPayments Types: diff --git a/src/resources/credit-products/credit-products.ts b/src/resources/credit-products/credit-products.ts index a71bc3b9..8b5e0bec 100644 --- a/src/resources/credit-products/credit-products.ts +++ b/src/resources/credit-products/credit-products.ts @@ -3,15 +3,31 @@ import { APIResource } from '../../resource'; import * as ExtendedCreditAPI from './extended-credit'; import { ExtendedCredit, ExtendedCreditResource } from './extended-credit'; +import * as PrimeRatesAPI from './prime-rates'; +import { + PrimeRateCreateParams, + PrimeRateRetrieveParams, + PrimeRateRetrieveResponse, + PrimeRates, +} from './prime-rates'; export class CreditProducts extends APIResource { extendedCredit: ExtendedCreditAPI.ExtendedCreditResource = new ExtendedCreditAPI.ExtendedCreditResource( this._client, ); + primeRates: PrimeRatesAPI.PrimeRates = new PrimeRatesAPI.PrimeRates(this._client); } CreditProducts.ExtendedCreditResource = ExtendedCreditResource; +CreditProducts.PrimeRates = PrimeRates; export declare namespace CreditProducts { export { ExtendedCreditResource as ExtendedCreditResource, type ExtendedCredit as ExtendedCredit }; + + export { + PrimeRates as PrimeRates, + type PrimeRateRetrieveResponse as PrimeRateRetrieveResponse, + type PrimeRateCreateParams as PrimeRateCreateParams, + type PrimeRateRetrieveParams as PrimeRateRetrieveParams, + }; } diff --git a/src/resources/credit-products/extended-credit.ts b/src/resources/credit-products/extended-credit.ts index 8a895521..440c8162 100644 --- a/src/resources/credit-products/extended-credit.ts +++ b/src/resources/credit-products/extended-credit.ts @@ -7,8 +7,8 @@ export class ExtendedCreditResource extends APIResource { /** * Get the extended credit for a given credit product under a program */ - retrieve(creditProductId: string, options?: Core.RequestOptions): Core.APIPromise { - return this._client.get(`/v1/credit_products/${creditProductId}/extended_credit`, options); + retrieve(creditProductToken: string, options?: Core.RequestOptions): Core.APIPromise { + return this._client.get(`/v1/credit_products/${creditProductToken}/extended_credit`, options); } } diff --git a/src/resources/credit-products/index.ts b/src/resources/credit-products/index.ts index 5da28b1a..04db1e93 100644 --- a/src/resources/credit-products/index.ts +++ b/src/resources/credit-products/index.ts @@ -2,3 +2,9 @@ export { CreditProducts } from './credit-products'; export { ExtendedCreditResource, type ExtendedCredit } from './extended-credit'; +export { + PrimeRates, + type PrimeRateRetrieveResponse, + type PrimeRateCreateParams, + type PrimeRateRetrieveParams, +} from './prime-rates'; diff --git a/src/resources/credit-products/prime-rates.ts b/src/resources/credit-products/prime-rates.ts new file mode 100644 index 00000000..97d05738 --- /dev/null +++ b/src/resources/credit-products/prime-rates.ts @@ -0,0 +1,99 @@ +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +import { APIResource } from '../../resource'; +import { isRequestOptions } from '../../core'; +import * as Core from '../../core'; + +export class PrimeRates extends APIResource { + /** + * Post Credit Product Prime Rate + */ + create( + creditProductToken: string, + body: PrimeRateCreateParams, + options?: Core.RequestOptions, + ): Core.APIPromise { + return this._client.post(`/v1/credit_products/${creditProductToken}/prime_rates`, { body, ...options }); + } + + /** + * Get Credit Product Prime Rates + */ + retrieve( + creditProductToken: string, + query?: PrimeRateRetrieveParams, + options?: Core.RequestOptions, + ): Core.APIPromise; + retrieve( + creditProductToken: string, + options?: Core.RequestOptions, + ): Core.APIPromise; + retrieve( + creditProductToken: string, + query: PrimeRateRetrieveParams | Core.RequestOptions = {}, + options?: Core.RequestOptions, + ): Core.APIPromise { + if (isRequestOptions(query)) { + return this.retrieve(creditProductToken, {}, query); + } + return this._client.get(`/v1/credit_products/${creditProductToken}/prime_rates`, { query, ...options }); + } +} + +export interface PrimeRateRetrieveResponse { + /** + * List of prime rates + */ + data: Array; + + /** + * Whether there are more prime rates + */ + has_more: boolean; +} + +export namespace PrimeRateRetrieveResponse { + export interface Data { + /** + * Date the rate goes into effect + */ + effective_date: string; + + /** + * The rate in decimal format + */ + rate: string; + } +} + +export interface PrimeRateCreateParams { + /** + * Date the rate goes into effect + */ + effective_date: string; + + /** + * The rate in decimal format + */ + rate: string; +} + +export interface PrimeRateRetrieveParams { + /** + * The effective date that the prime rates ends before + */ + ending_before?: string; + + /** + * The effective date that the prime rate starts after + */ + starting_after?: string; +} + +export declare namespace PrimeRates { + export { + type PrimeRateRetrieveResponse as PrimeRateRetrieveResponse, + type PrimeRateCreateParams as PrimeRateCreateParams, + type PrimeRateRetrieveParams as PrimeRateRetrieveParams, + }; +} diff --git a/src/resources/financial-accounts/financial-accounts.ts b/src/resources/financial-accounts/financial-accounts.ts index 0379e869..f1ebd909 100644 --- a/src/resources/financial-accounts/financial-accounts.ts +++ b/src/resources/financial-accounts/financial-accounts.ts @@ -289,6 +289,7 @@ export namespace FinancialTransaction { | 'BALANCE_INQUIRY' | 'BILLING_ERROR' | 'BILLING_ERROR_REVERSAL' + | 'CARD_TO_CARD' | 'CASH_BACK' | 'CASH_BACK_REVERSAL' | 'CLEARING' diff --git a/src/resources/financial-accounts/statements/line-items.ts b/src/resources/financial-accounts/statements/line-items.ts index 987e8434..a4802d62 100644 --- a/src/resources/financial-accounts/statements/line-items.ts +++ b/src/resources/financial-accounts/statements/line-items.ts @@ -59,6 +59,7 @@ export namespace StatementLineItems { category: | 'ACH' + | 'BALANCE_OR_FUNDING' | 'CARD' | 'EXTERNAL_ACH' | 'EXTERNAL_CHECK' @@ -102,6 +103,7 @@ export namespace StatementLineItems { | 'BALANCE_INQUIRY' | 'BILLING_ERROR' | 'BILLING_ERROR_REVERSAL' + | 'CARD_TO_CARD' | 'CASH_BACK' | 'CASH_BACK_REVERSAL' | 'CLEARING' @@ -182,6 +184,7 @@ export interface LineItemListResponse { category: | 'ACH' + | 'BALANCE_OR_FUNDING' | 'CARD' | 'EXTERNAL_ACH' | 'EXTERNAL_CHECK' @@ -225,6 +228,7 @@ export interface LineItemListResponse { | 'BALANCE_INQUIRY' | 'BILLING_ERROR' | 'BILLING_ERROR_REVERSAL' + | 'CARD_TO_CARD' | 'CASH_BACK' | 'CASH_BACK_REVERSAL' | 'CLEARING' diff --git a/src/resources/transfers.ts b/src/resources/transfers.ts index 59827431..1e26b305 100644 --- a/src/resources/transfers.ts +++ b/src/resources/transfers.ts @@ -137,6 +137,7 @@ export namespace Transfer { | 'BALANCE_INQUIRY' | 'BILLING_ERROR' | 'BILLING_ERROR_REVERSAL' + | 'CARD_TO_CARD' | 'CASH_BACK' | 'CASH_BACK_REVERSAL' | 'CLEARING' diff --git a/tests/api-resources/credit-products/extended-credit.test.ts b/tests/api-resources/credit-products/extended-credit.test.ts new file mode 100644 index 00000000..4fff9669 --- /dev/null +++ b/tests/api-resources/credit-products/extended-credit.test.ts @@ -0,0 +1,31 @@ +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +import Lithic from 'lithic'; +import { Response } from 'node-fetch'; + +const client = new Lithic({ + apiKey: 'My Lithic API Key', + baseURL: process.env['TEST_API_BASE_URL'] ?? 'http://127.0.0.1:4010', +}); + +describe('resource extendedCredit', () => { + test('retrieve', async () => { + const responsePromise = client.creditProducts.extendedCredit.retrieve('credit_product_token'); + const rawResponse = await responsePromise.asResponse(); + expect(rawResponse).toBeInstanceOf(Response); + const response = await responsePromise; + expect(response).not.toBeInstanceOf(Response); + const dataAndResponse = await responsePromise.withResponse(); + expect(dataAndResponse.data).toBe(response); + expect(dataAndResponse.response).toBe(rawResponse); + }); + + test('retrieve: request options instead of params are passed correctly', async () => { + // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error + await expect( + client.creditProducts.extendedCredit.retrieve('credit_product_token', { + path: '/_stainless_unknown_path', + }), + ).rejects.toThrow(Lithic.NotFoundError); + }); +}); diff --git a/tests/api-resources/credit-products/prime-rates.test.ts b/tests/api-resources/credit-products/prime-rates.test.ts new file mode 100644 index 00000000..c7d7e98a --- /dev/null +++ b/tests/api-resources/credit-products/prime-rates.test.ts @@ -0,0 +1,61 @@ +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +import Lithic from 'lithic'; +import { Response } from 'node-fetch'; + +const client = new Lithic({ + apiKey: 'My Lithic API Key', + baseURL: process.env['TEST_API_BASE_URL'] ?? 'http://127.0.0.1:4010', +}); + +describe('resource primeRates', () => { + test('create: only required params', async () => { + const responsePromise = client.creditProducts.primeRates.create('credit_product_token', { + effective_date: '2019-12-27', + rate: 'rate', + }); + const rawResponse = await responsePromise.asResponse(); + expect(rawResponse).toBeInstanceOf(Response); + const response = await responsePromise; + expect(response).not.toBeInstanceOf(Response); + const dataAndResponse = await responsePromise.withResponse(); + expect(dataAndResponse.data).toBe(response); + expect(dataAndResponse.response).toBe(rawResponse); + }); + + test('create: required and optional params', async () => { + const response = await client.creditProducts.primeRates.create('credit_product_token', { + effective_date: '2019-12-27', + rate: 'rate', + }); + }); + + test('retrieve', async () => { + const responsePromise = client.creditProducts.primeRates.retrieve('credit_product_token'); + const rawResponse = await responsePromise.asResponse(); + expect(rawResponse).toBeInstanceOf(Response); + const response = await responsePromise; + expect(response).not.toBeInstanceOf(Response); + const dataAndResponse = await responsePromise.withResponse(); + expect(dataAndResponse.data).toBe(response); + expect(dataAndResponse.response).toBe(rawResponse); + }); + + test('retrieve: request options instead of params are passed correctly', async () => { + // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error + await expect( + client.creditProducts.primeRates.retrieve('credit_product_token', { path: '/_stainless_unknown_path' }), + ).rejects.toThrow(Lithic.NotFoundError); + }); + + test('retrieve: request options and params are passed correctly', async () => { + // ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error + await expect( + client.creditProducts.primeRates.retrieve( + 'credit_product_token', + { ending_before: '2019-12-27', starting_after: '2019-12-27' }, + { path: '/_stainless_unknown_path' }, + ), + ).rejects.toThrow(Lithic.NotFoundError); + }); +}); From 5caff62cf264c0d083e300600183698094d4c101 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 14 Nov 2024 20:01:06 +0000 Subject: [PATCH 05/11] fix(docs): add missing await to pagination example (#568) --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index b939b74c..119687c4 100644 --- a/README.md +++ b/README.md @@ -163,7 +163,7 @@ for (const card of page.data) { // Convenience methods are provided for manually paginating: while (page.hasNextPage()) { - page = page.getNextPage(); + page = await page.getNextPage(); // ... } ``` From 101ac7570706f99336a010e51e71d2e254e635b7 Mon Sep 17 00:00:00 2001 From: Stainless Bot Date: Wed, 20 Nov 2024 23:16:59 +0000 Subject: [PATCH 06/11] chore(client): drop unused devDependency (#569) --- package.json | 3 +- src/index.ts | 4 +- yarn.lock | 138 +++++++++++++++++++++++++++++++++++++-------------- 3 files changed, 104 insertions(+), 41 deletions(-) diff --git a/package.json b/package.json index 49e1368c..fd65bd60 100644 --- a/package.json +++ b/package.json @@ -33,6 +33,8 @@ "node-fetch": "^2.6.7" }, "devDependencies": { + "@swc/core": "^1.3.102", + "@swc/jest": "^0.2.29", "@types/jest": "^29.4.0", "@typescript-eslint/eslint-plugin": "^6.7.0", "@typescript-eslint/parser": "^6.7.0", @@ -43,7 +45,6 @@ "jest": "^29.4.0", "prettier": "^3.0.0", "ts-jest": "^29.1.0", - "ts-morph": "^19.0.0", "ts-node": "^10.5.0", "tsc-multi": "^1.1.0", "tsconfig-paths": "^4.0.0", diff --git a/src/index.ts b/src/index.ts index 06a094a0..c02969ff 100644 --- a/src/index.ts +++ b/src/index.ts @@ -770,7 +770,7 @@ export declare namespace Lithic { export type VelocityLimitParamsPeriodWindow = API.VelocityLimitParamsPeriodWindow; } -export { toFile, fileFromPath } from 'lithic/uploads'; +export { toFile, fileFromPath } from './uploads'; export { LithicError, APIError, @@ -785,6 +785,6 @@ export { InternalServerError, PermissionDeniedError, UnprocessableEntityError, -} from 'lithic/error'; +} from './error'; export default Lithic; diff --git a/yarn.lock b/yarn.lock index 852b4a6d..bfd47d8d 100644 --- a/yarn.lock +++ b/yarn.lock @@ -432,6 +432,13 @@ slash "^3.0.0" strip-ansi "^6.0.0" +"@jest/create-cache-key-function@^29.7.0": + version "29.7.0" + resolved "https://registry.yarnpkg.com/@jest/create-cache-key-function/-/create-cache-key-function-29.7.0.tgz#793be38148fab78e65f40ae30c36785f4ad859f0" + integrity sha512-4QqS3LY5PBmTRHj9sAg1HLoPzqAI0uOX6wI/TRqHIcOxlFidy6YEmCQJk6FSZjNLGCeubDMfmkWL+qaLKhSGQA== + dependencies: + "@jest/types" "^29.6.3" + "@jest/environment@^29.7.0": version "29.7.0" resolved "https://registry.yarnpkg.com/@jest/environment/-/environment-29.7.0.tgz#24d61f54ff1f786f3cd4073b4b94416383baf2a7" @@ -662,15 +669,95 @@ dependencies: "@sinonjs/commons" "^3.0.0" -"@ts-morph/common@~0.20.0": - version "0.20.0" - resolved "https://registry.yarnpkg.com/@ts-morph/common/-/common-0.20.0.tgz#3f161996b085ba4519731e4d24c35f6cba5b80af" - integrity sha512-7uKjByfbPpwuzkstL3L5MQyuXPSKdoNG93Fmi2JoDcTf3pEP731JdRFAduRVkOs8oqxPsXKA+ScrWkdQ8t/I+Q== +"@swc/core-darwin-arm64@1.4.16": + version "1.4.16" + resolved "https://registry.yarnpkg.com/@swc/core-darwin-arm64/-/core-darwin-arm64-1.4.16.tgz#2cd45d709ce76d448d96bf8d0006849541436611" + integrity sha512-UOCcH1GvjRnnM/LWT6VCGpIk0OhHRq6v1U6QXuPt5wVsgXnXQwnf5k3sG5Cm56hQHDvhRPY6HCsHi/p0oek8oQ== + +"@swc/core-darwin-x64@1.4.16": + version "1.4.16" + resolved "https://registry.yarnpkg.com/@swc/core-darwin-x64/-/core-darwin-x64-1.4.16.tgz#a5bc7d8b1dd850adb0bb95c6b5c742b92201fd01" + integrity sha512-t3bgqFoYLWvyVtVL6KkFNCINEoOrIlyggT/kJRgi1y0aXSr0oVgcrQ4ezJpdeahZZ4N+Q6vT3ffM30yIunELNA== + +"@swc/core-linux-arm-gnueabihf@1.4.16": + version "1.4.16" + resolved "https://registry.yarnpkg.com/@swc/core-linux-arm-gnueabihf/-/core-linux-arm-gnueabihf-1.4.16.tgz#961744908ee5cbb79bc009dcf58cc8b831111f38" + integrity sha512-DvHuwvEF86YvSd0lwnzVcjOTZ0jcxewIbsN0vc/0fqm9qBdMMjr9ox6VCam1n3yYeRtj4VFgrjeNFksqbUejdQ== + +"@swc/core-linux-arm64-gnu@1.4.16": + version "1.4.16" + resolved "https://registry.yarnpkg.com/@swc/core-linux-arm64-gnu/-/core-linux-arm64-gnu-1.4.16.tgz#43713be3f26757d82d2745dc25f8b63400e0a3d0" + integrity sha512-9Uu5YlPbyCvbidjKtYEsPpyZlu16roOZ5c2tP1vHfnU9bgf5Tz5q5VovSduNxPHx+ed2iC1b1URODHvDzbbDuQ== + +"@swc/core-linux-arm64-musl@1.4.16": + version "1.4.16" + resolved "https://registry.yarnpkg.com/@swc/core-linux-arm64-musl/-/core-linux-arm64-musl-1.4.16.tgz#394a7d030f3a61902bd3947bb9d70d26d42f3c81" + integrity sha512-/YZq/qB1CHpeoL0eMzyqK5/tYZn/rzKoCYDviFU4uduSUIJsDJQuQA/skdqUzqbheOXKAd4mnJ1hT04RbJ8FPQ== + +"@swc/core-linux-x64-gnu@1.4.16": + version "1.4.16" + resolved "https://registry.yarnpkg.com/@swc/core-linux-x64-gnu/-/core-linux-x64-gnu-1.4.16.tgz#71eb108b784f9d551ee8a35ebcdaed972f567981" + integrity sha512-UUjaW5VTngZYDcA8yQlrFmqs1tLi1TxbKlnaJwoNhel9zRQ0yG1YEVGrzTvv4YApSuIiDK18t+Ip927bwucuVQ== + +"@swc/core-linux-x64-musl@1.4.16": + version "1.4.16" + resolved "https://registry.yarnpkg.com/@swc/core-linux-x64-musl/-/core-linux-x64-musl-1.4.16.tgz#10dbaedb4e3dfc7268e3a9a66ad3431471ef035b" + integrity sha512-aFhxPifevDTwEDKPi4eRYWzC0p/WYJeiFkkpNU5Uc7a7M5iMWPAbPFUbHesdlb9Jfqs5c07oyz86u+/HySBNPQ== + +"@swc/core-win32-arm64-msvc@1.4.16": + version "1.4.16" + resolved "https://registry.yarnpkg.com/@swc/core-win32-arm64-msvc/-/core-win32-arm64-msvc-1.4.16.tgz#80247adff6c245ff32b44d773c1a148858cd655f" + integrity sha512-bTD43MbhIHL2s5QgCwyleaGwl96Gk/scF2TaVKdUe4QlJCDV/YK9h5oIBAp63ckHtE8GHlH4c8dZNBiAXn4Org== + +"@swc/core-win32-ia32-msvc@1.4.16": + version "1.4.16" + resolved "https://registry.yarnpkg.com/@swc/core-win32-ia32-msvc/-/core-win32-ia32-msvc-1.4.16.tgz#e540afc3ccf3224267b4ddfb408f9d9737984686" + integrity sha512-/lmZeAN/qV5XbK2SEvi8e2RkIg8FQNYiSA8y2/Zb4gTUMKVO5JMLH0BSWMiIKMstKDPDSxMWgwJaQHF8UMyPmQ== + +"@swc/core-win32-x64-msvc@1.4.16": + version "1.4.16" + resolved "https://registry.yarnpkg.com/@swc/core-win32-x64-msvc/-/core-win32-x64-msvc-1.4.16.tgz#f880939fca32c181adfe7e3abd2b6b7857bd3489" + integrity sha512-BPAfFfODWXtUu6SwaTTftDHvcbDyWBSI/oanUeRbQR5vVWkXoQ3cxLTsDluc3H74IqXS5z1Uyoe0vNo2hB1opA== + +"@swc/core@^1.3.102": + version "1.4.16" + resolved "https://registry.yarnpkg.com/@swc/core/-/core-1.4.16.tgz#d175bae2acfecd53bcbd4293f1fba5ec316634a0" + integrity sha512-Xaf+UBvW6JNuV131uvSNyMXHn+bh6LyKN4tbv7tOUFQpXyz/t9YWRE04emtlUW9Y0qrm/GKFCbY8n3z6BpZbTA== + dependencies: + "@swc/counter" "^0.1.2" + "@swc/types" "^0.1.5" + optionalDependencies: + "@swc/core-darwin-arm64" "1.4.16" + "@swc/core-darwin-x64" "1.4.16" + "@swc/core-linux-arm-gnueabihf" "1.4.16" + "@swc/core-linux-arm64-gnu" "1.4.16" + "@swc/core-linux-arm64-musl" "1.4.16" + "@swc/core-linux-x64-gnu" "1.4.16" + "@swc/core-linux-x64-musl" "1.4.16" + "@swc/core-win32-arm64-msvc" "1.4.16" + "@swc/core-win32-ia32-msvc" "1.4.16" + "@swc/core-win32-x64-msvc" "1.4.16" + +"@swc/counter@^0.1.2", "@swc/counter@^0.1.3": + version "0.1.3" + resolved "https://registry.yarnpkg.com/@swc/counter/-/counter-0.1.3.tgz#cc7463bd02949611c6329596fccd2b0ec782b0e9" + integrity sha512-e2BR4lsJkkRlKZ/qCHPw9ZaSxc0MVUd7gtbtaB7aMvHeJVYe8sOB8DBZkP2DtISHGSku9sCK6T6cnY0CtXrOCQ== + +"@swc/jest@^0.2.29": + version "0.2.36" + resolved "https://registry.yarnpkg.com/@swc/jest/-/jest-0.2.36.tgz#2797450a30d28b471997a17e901ccad946fe693e" + integrity sha512-8X80dp81ugxs4a11z1ka43FPhP+/e+mJNXJSxiNYk8gIX/jPBtY4gQTrKu/KIoco8bzKuPI5lUxjfLiGsfvnlw== dependencies: - fast-glob "^3.2.12" - minimatch "^7.4.3" - mkdirp "^2.1.6" - path-browserify "^1.0.1" + "@jest/create-cache-key-function" "^29.7.0" + "@swc/counter" "^0.1.3" + jsonc-parser "^3.2.0" + +"@swc/types@^0.1.5": + version "0.1.6" + resolved "https://registry.yarnpkg.com/@swc/types/-/types-0.1.6.tgz#2f13f748995b247d146de2784d3eb7195410faba" + integrity sha512-/JLo/l2JsT/LRd80C3HfbmVpxOAJ11FO2RCEslFrgzLltoP9j8XIbsyDcfCt2WWyX+CM96rBoNM+IToAkFOugg== + dependencies: + "@swc/counter" "^0.1.3" "@tsconfig/node10@^1.0.7": version "1.0.8" @@ -1218,11 +1305,6 @@ co@^4.6.0: resolved "https://registry.yarnpkg.com/co/-/co-4.6.0.tgz#6ea6bdf3d853ae54ccb8e47bfa0bf3f9031fb184" integrity sha512-QVb0dM5HvG+uaxitm8wONl7jltx8dqhfU33DcqtOZcLSVIKSDDLDi7+0LbAKiyI8hD9u42m2YxXSkMGWThaecQ== -code-block-writer@^12.0.0: - version "12.0.0" - resolved "https://registry.yarnpkg.com/code-block-writer/-/code-block-writer-12.0.0.tgz#4dd58946eb4234105aff7f0035977b2afdc2a770" - integrity sha512-q4dMFMlXtKR3XNBHyMHt/3pwYNA69EDk00lloMOaaUMKPUXBw6lpXtbu3MMVG6/uOihGnRDOlkyqsONEUj60+w== - collect-v8-coverage@^1.0.0: version "1.0.2" resolved "https://registry.yarnpkg.com/collect-v8-coverage/-/collect-v8-coverage-1.0.2.tgz#c0b29bcd33bcd0779a1344c2136051e6afd3d9e9" @@ -2444,6 +2526,11 @@ json5@^2.2.2, json5@^2.2.3: resolved "https://registry.yarnpkg.com/json5/-/json5-2.2.3.tgz#78cd6f1a19bdc12b73db5ad0c61efd66c1e29283" integrity sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg== +jsonc-parser@^3.2.0: + version "3.2.1" + resolved "https://registry.yarnpkg.com/jsonc-parser/-/jsonc-parser-3.2.1.tgz#031904571ccf929d7670ee8c547545081cb37f1a" + integrity sha512-AilxAyFOAcK5wA1+LeaySVBrHsGQvUFCDWXKpZjzaL0PqW+xfBOttn8GNtWKFWqneyMZj41MWF9Kl6iPWLwgOA== + kleur@^3.0.3: version "3.0.3" resolved "https://registry.yarnpkg.com/kleur/-/kleur-3.0.3.tgz#a79c9ecc86ee1ce3fa6206d1216c501f147fc07e" @@ -2578,23 +2665,11 @@ minimatch@^3.0.4, minimatch@^3.0.5, minimatch@^3.1.1, minimatch@^3.1.2: dependencies: brace-expansion "^1.1.7" -minimatch@^7.4.3: - version "7.4.6" - resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-7.4.6.tgz#845d6f254d8f4a5e4fd6baf44d5f10c8448365fb" - integrity sha512-sBz8G/YjVniEz6lKPNpKxXwazJe4c19fEfV2GDMX6AjFz+MX9uDWIZW8XreVhkFW3fkIdTv/gxWr/Kks5FFAVw== - dependencies: - brace-expansion "^2.0.1" - minimist@^1.2.6: version "1.2.6" resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.6.tgz#8637a5b759ea0d6e98702cfb3a9283323c93af44" integrity sha512-Jsjnk4bw3YJqYzbdyBiNsPWHPfO++UGG749Cxs6peCu5Xg4nrena6OVxOYxrQTqww0Jmwt+Ref8rggumkTLz9Q== -mkdirp@^2.1.6: - version "2.1.6" - resolved "https://registry.yarnpkg.com/mkdirp/-/mkdirp-2.1.6.tgz#964fbcb12b2d8c5d6fbc62a963ac95a273e2cc19" - integrity sha512-+hEnITedc8LAtIP9u3HJDFIdcLV2vXP33sqLLIzkv1Db1zO/1OxbvYf0Y1OC/S/Qo5dxHXepofhmxL02PsKe+A== - ms@2.1.2: version "2.1.2" resolved "https://registry.yarnpkg.com/ms/-/ms-2.1.2.tgz#d09d1f357b443f493382a8eb3ccd183872ae6009" @@ -2758,11 +2833,6 @@ parse-json@^5.2.0: json-parse-even-better-errors "^2.3.0" lines-and-columns "^1.1.6" -path-browserify@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/path-browserify/-/path-browserify-1.0.1.tgz#d98454a9c3753d5790860f16f68867b9e46be1fd" - integrity sha512-b7uo2UCUOYZcnF/3ID0lulOJi/bafxa1xPe7ZPsammBSpjSWQkjNxlt635YGS2MiR9GjvuXCtz2emr3jbsz98g== - path-exists@^4.0.0: version "4.0.0" resolved "https://registry.yarnpkg.com/path-exists/-/path-exists-4.0.0.tgz#513bdbe2d3b95d7762e8c1137efa195c6c61b5b3" @@ -3181,14 +3251,6 @@ ts-jest@^29.1.0: semver "^7.5.3" yargs-parser "^21.0.1" -ts-morph@^19.0.0: - version "19.0.0" - resolved "https://registry.yarnpkg.com/ts-morph/-/ts-morph-19.0.0.tgz#43e95fb0156c3fe3c77c814ac26b7d0be2f93169" - integrity sha512-D6qcpiJdn46tUqV45vr5UGM2dnIEuTGNxVhg0sk5NX11orcouwj6i1bMqZIz2mZTZB1Hcgy7C3oEVhAT+f6mbQ== - dependencies: - "@ts-morph/common" "~0.20.0" - code-block-writer "^12.0.0" - ts-node@^10.5.0: version "10.7.0" resolved "https://registry.yarnpkg.com/ts-node/-/ts-node-10.7.0.tgz#35d503d0fab3e2baa672a0e94f4b40653c2463f5" From f5147136ff8168f5958d9a5eb54ece922b0882d7 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 18 Nov 2024 10:28:22 +0000 Subject: [PATCH 07/11] chore(tests): limit array example length (#570) --- tests/api-resources/account-holders.test.ts | 116 +----------------- tests/api-resources/auth-rules/v2.test.ts | 32 +---- tests/api-resources/disputes.test.ts | 6 +- tests/api-resources/events/events.test.ts | 2 +- .../events/subscriptions.test.ts | 4 +- .../external-bank-accounts.test.ts | 10 +- 6 files changed, 15 insertions(+), 155 deletions(-) diff --git a/tests/api-resources/account-holders.test.ts b/tests/api-resources/account-holders.test.ts index 615fd8fc..7d720856 100644 --- a/tests/api-resources/account-holders.test.ts +++ b/tests/api-resources/account-holders.test.ts @@ -24,30 +24,6 @@ describe('resource accountHolders', () => { legal_business_name: 'Acme, Inc.', phone_numbers: ['+12124007676'], }, - { - address: { - address1: '123 Old Forest Way', - city: 'Omaha', - country: 'USA', - postal_code: '68022', - state: 'NE', - }, - government_id: '114-123-1513', - legal_business_name: 'Acme, Inc.', - phone_numbers: ['+12124007676'], - }, - { - address: { - address1: '123 Old Forest Way', - city: 'Omaha', - country: 'USA', - postal_code: '68022', - state: 'NE', - }, - government_id: '114-123-1513', - legal_business_name: 'Acme, Inc.', - phone_numbers: ['+12124007676'], - }, ], beneficial_owner_individuals: [ { @@ -64,34 +40,6 @@ describe('resource accountHolders', () => { government_id: '111-23-1412', last_name: 'Bombadil', }, - { - address: { - address1: '123 Old Forest Way', - city: 'Omaha', - country: 'USA', - postal_code: '68022', - state: 'NE', - }, - dob: '1991-03-08 08:00:00', - email: 'tom@middle-earth.com', - first_name: 'Tom', - government_id: '111-23-1412', - last_name: 'Bombadil', - }, - { - address: { - address1: '123 Old Forest Way', - city: 'Omaha', - country: 'USA', - postal_code: '68022', - state: 'NE', - }, - dob: '1991-03-08 08:00:00', - email: 'tom@middle-earth.com', - first_name: 'Tom', - government_id: '111-23-1412', - last_name: 'Bombadil', - }, ], business_entity: { address: { @@ -150,36 +98,6 @@ describe('resource accountHolders', () => { dba_business_name: 'dba_business_name', parent_company: 'parent_company', }, - { - address: { - address1: '123 Old Forest Way', - city: 'Omaha', - country: 'USA', - postal_code: '68022', - state: 'NE', - address2: 'address2', - }, - government_id: '114-123-1513', - legal_business_name: 'Acme, Inc.', - phone_numbers: ['+12124007676'], - dba_business_name: 'dba_business_name', - parent_company: 'parent_company', - }, - { - address: { - address1: '123 Old Forest Way', - city: 'Omaha', - country: 'USA', - postal_code: '68022', - state: 'NE', - address2: 'address2', - }, - government_id: '114-123-1513', - legal_business_name: 'Acme, Inc.', - phone_numbers: ['+12124007676'], - dba_business_name: 'dba_business_name', - parent_company: 'parent_company', - }, ], beneficial_owner_individuals: [ { @@ -198,38 +116,6 @@ describe('resource accountHolders', () => { last_name: 'Bombadil', phone_number: '+12124007676', }, - { - address: { - address1: '123 Old Forest Way', - city: 'Omaha', - country: 'USA', - postal_code: '68022', - state: 'NE', - address2: 'address2', - }, - dob: '1991-03-08 08:00:00', - email: 'tom@middle-earth.com', - first_name: 'Tom', - government_id: '111-23-1412', - last_name: 'Bombadil', - phone_number: '+12124007676', - }, - { - address: { - address1: '123 Old Forest Way', - city: 'Omaha', - country: 'USA', - postal_code: '68022', - state: 'NE', - address2: 'address2', - }, - dob: '1991-03-08 08:00:00', - email: 'tom@middle-earth.com', - first_name: 'Tom', - government_id: '111-23-1412', - last_name: 'Bombadil', - phone_number: '+12124007676', - }, ], business_entity: { address: { @@ -457,7 +343,7 @@ describe('resource accountHolders', () => { const response = await client.accountHolders.simulateEnrollmentDocumentReview({ document_upload_token: 'b11cd67b-0a52-4180-8365-314f3def5426', status: 'UPLOADED', - accepted_entity_status_reasons: ['string', 'string', 'string'], + accepted_entity_status_reasons: ['string'], status_reason: 'DOCUMENT_MISSING_REQUIRED_DATA', }); }); diff --git a/tests/api-resources/auth-rules/v2.test.ts b/tests/api-resources/auth-rules/v2.test.ts index 67ae0695..b421a636 100644 --- a/tests/api-resources/auth-rules/v2.test.ts +++ b/tests/api-resources/auth-rules/v2.test.ts @@ -11,11 +11,7 @@ const client = new Lithic({ describe('resource v2', () => { test('create: only required params', async () => { const responsePromise = client.authRules.v2.create({ - account_tokens: [ - '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e', - '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e', - '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e', - ], + account_tokens: ['182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e'], }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); @@ -28,18 +24,8 @@ describe('resource v2', () => { test('create: required and optional params', async () => { const response = await client.authRules.v2.create({ - account_tokens: [ - '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e', - '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e', - '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e', - ], - parameters: { - conditions: [ - { attribute: 'MCC', operation: 'IS_ONE_OF', value: 'string' }, - { attribute: 'MCC', operation: 'IS_ONE_OF', value: 'string' }, - { attribute: 'MCC', operation: 'IS_ONE_OF', value: 'string' }, - ], - }, + account_tokens: ['182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e'], + parameters: { conditions: [{ attribute: 'MCC', operation: 'IS_ONE_OF', value: 'string' }] }, type: 'CONDITIONAL_BLOCK', }); }); @@ -111,11 +97,7 @@ describe('resource v2', () => { test('apply: only required params', async () => { const responsePromise = client.authRules.v2.apply('182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e', { - account_tokens: [ - '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e', - '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e', - '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e', - ], + account_tokens: ['182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e'], }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); @@ -128,11 +110,7 @@ describe('resource v2', () => { test('apply: required and optional params', async () => { const response = await client.authRules.v2.apply('182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e', { - account_tokens: [ - '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e', - '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e', - '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e', - ], + account_tokens: ['182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e'], }); }); diff --git a/tests/api-resources/disputes.test.ts b/tests/api-resources/disputes.test.ts index 046aa424..15c5adaf 100644 --- a/tests/api-resources/disputes.test.ts +++ b/tests/api-resources/disputes.test.ts @@ -92,11 +92,7 @@ describe('resource disputes', () => { page_size: 1, starting_after: 'starting_after', status: 'ARBITRATION', - transaction_tokens: [ - '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e', - '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e', - '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e', - ], + transaction_tokens: ['182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e'], }, { path: '/_stainless_unknown_path' }, ), diff --git a/tests/api-resources/events/events.test.ts b/tests/api-resources/events/events.test.ts index 0e04d049..b48c7dfc 100644 --- a/tests/api-resources/events/events.test.ts +++ b/tests/api-resources/events/events.test.ts @@ -53,7 +53,7 @@ describe('resource events', () => { begin: '2019-12-27T18:11:19.117Z', end: '2019-12-27T18:11:19.117Z', ending_before: 'ending_before', - event_types: ['account_holder.created', 'account_holder.updated', 'account_holder.verification'], + event_types: ['account_holder.created'], page_size: 1, starting_after: 'starting_after', with_content: true, diff --git a/tests/api-resources/events/subscriptions.test.ts b/tests/api-resources/events/subscriptions.test.ts index 030e156c..207608a6 100644 --- a/tests/api-resources/events/subscriptions.test.ts +++ b/tests/api-resources/events/subscriptions.test.ts @@ -25,7 +25,7 @@ describe('resource subscriptions', () => { url: 'https://example.com', description: 'description', disabled: true, - event_types: ['account_holder.created', 'account_holder.updated', 'account_holder.verification'], + event_types: ['account_holder.created'], }); }); @@ -65,7 +65,7 @@ describe('resource subscriptions', () => { url: 'https://example.com', description: 'description', disabled: true, - event_types: ['account_holder.created', 'account_holder.updated', 'account_holder.verification'], + event_types: ['account_holder.created'], }); }); diff --git a/tests/api-resources/external-bank-accounts/external-bank-accounts.test.ts b/tests/api-resources/external-bank-accounts/external-bank-accounts.test.ts index abea26e4..7eb776ee 100644 --- a/tests/api-resources/external-bank-accounts/external-bank-accounts.test.ts +++ b/tests/api-resources/external-bank-accounts/external-bank-accounts.test.ts @@ -107,14 +107,14 @@ describe('resource externalBankAccounts', () => { client.externalBankAccounts.list( { account_token: '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e', - account_types: ['CHECKING', 'SAVINGS'], - countries: ['string', 'string', 'string'], + account_types: ['CHECKING'], + countries: ['string'], ending_before: 'ending_before', - owner_types: ['INDIVIDUAL', 'BUSINESS'], + owner_types: ['INDIVIDUAL'], page_size: 1, starting_after: 'starting_after', - states: ['ENABLED', 'CLOSED', 'PAUSED'], - verification_states: ['PENDING', 'ENABLED', 'FAILED_VERIFICATION'], + states: ['ENABLED'], + verification_states: ['PENDING'], }, { path: '/_stainless_unknown_path' }, ), From 1ffb0638814b964a60be0ff745f51dcbc79b42f0 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 19 Nov 2024 17:58:43 +0000 Subject: [PATCH 08/11] docs: remove suggestion to use `npm` call out (#571) --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 119687c4..42f03c87 100644 --- a/README.md +++ b/README.md @@ -361,7 +361,7 @@ The following runtimes are supported: - Web browsers (Up-to-date Chrome, Firefox, Safari, Edge, and more) - Node.js 18 LTS or later ([non-EOL](https://endoflife.date/nodejs)) versions. -- Deno v1.28.0 or higher, using `import Lithic from "npm:lithic"`. +- Deno v1.28.0 or higher. - Bun 1.0 or later. - Cloudflare Workers. - Vercel Edge Runtime. From d0e1158d47cb99fda3fa1c73c0b7e4c6007c1960 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 19 Nov 2024 23:42:13 +0000 Subject: [PATCH 09/11] chore: remove redundant word in comment (#573) --- scripts/build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/build b/scripts/build index 46540d16..30591692 100755 --- a/scripts/build +++ b/scripts/build @@ -32,7 +32,7 @@ npm exec tsc-multi # copy over handwritten .js/.mjs/.d.ts files cp src/_shims/*.{d.ts,js,mjs,md} dist/_shims cp src/_shims/auto/*.{d.ts,js,mjs} dist/_shims/auto -# we need to add exports = module.exports = Lithic Node to index.js; +# we need to add exports = module.exports = Lithic to index.js; # No way to get that from index.ts because it would cause compile errors # when building .mjs node scripts/utils/fix-index-exports.cjs From 8ea9e95a37d98a9bf0ce77982a23796a989e6de2 Mon Sep 17 00:00:00 2001 From: stainless-bot Date: Thu, 21 Nov 2024 14:44:55 -0500 Subject: [PATCH 10/11] fix(internal): add back CP --- src/index.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/index.ts b/src/index.ts index c02969ff..5e590497 100644 --- a/src/index.ts +++ b/src/index.ts @@ -398,6 +398,7 @@ export class Lithic extends Core.APIClient { cardPrograms: API.CardPrograms = new API.CardPrograms(this); digitalCardArt: API.DigitalCardArtResource = new API.DigitalCardArtResource(this); bookTransfers: API.BookTransfers = new API.BookTransfers(this); + creditProducts: API.CreditProducts = new API.CreditProducts(this); externalPayments: API.ExternalPayments = new API.ExternalPayments(this); managementOperations: API.ManagementOperations = new API.ManagementOperations(this); From 38862f0ba89187c13832b9ab6775f638002c583d Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 21 Nov 2024 19:45:22 +0000 Subject: [PATCH 11/11] release: 0.87.0 --- .release-please-manifest.json | 2 +- CHANGELOG.md | 29 +++++++++++++++++++++++++++++ package.json | 2 +- src/version.ts | 2 +- 4 files changed, 32 insertions(+), 3 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 1f573a83..eb968c27 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.86.0" + ".": "0.87.0" } diff --git a/CHANGELOG.md b/CHANGELOG.md index 6d3be9ab..6defe95d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,34 @@ # Changelog +## 0.87.0 (2024-11-21) + +Full Changelog: [v0.86.0...v0.87.0](https://github.com/lithic-com/lithic-node/compare/v0.86.0...v0.87.0) + +### Features + +* **api:** adds PrimeRates API ([#566](https://github.com/lithic-com/lithic-node/issues/566)) ([70adc94](https://github.com/lithic-com/lithic-node/commit/70adc94216a48b88097e4a93b9c1812bd9fe1a24)) + + +### Bug Fixes + +* **docs:** add missing await to pagination example ([#568](https://github.com/lithic-com/lithic-node/issues/568)) ([5caff62](https://github.com/lithic-com/lithic-node/commit/5caff62cf264c0d083e300600183698094d4c101)) +* **internal:** add back CP ([8ea9e95](https://github.com/lithic-com/lithic-node/commit/8ea9e95a37d98a9bf0ce77982a23796a989e6de2)) + + +### Chores + +* **api:** add business_account_token param for listing Balances ([#564](https://github.com/lithic-com/lithic-node/issues/564)) ([88e2d76](https://github.com/lithic-com/lithic-node/commit/88e2d7698e7aa5984761f301ec10192952491574)) +* **api:** adds replacement_account_token to Card create parameters ([#562](https://github.com/lithic-com/lithic-node/issues/562)) ([fe79fcf](https://github.com/lithic-com/lithic-node/commit/fe79fcf4370c47c726960e36369311e2859efe61)) +* **client:** drop unused devDependency ([#569](https://github.com/lithic-com/lithic-node/issues/569)) ([101ac75](https://github.com/lithic-com/lithic-node/commit/101ac7570706f99336a010e51e71d2e254e635b7)) +* **internal:** use reexports not destructuring ([#565](https://github.com/lithic-com/lithic-node/issues/565)) ([65e4f11](https://github.com/lithic-com/lithic-node/commit/65e4f11f83508c5b2da37beab74b435fa987089c)) +* remove redundant word in comment ([#573](https://github.com/lithic-com/lithic-node/issues/573)) ([d0e1158](https://github.com/lithic-com/lithic-node/commit/d0e1158d47cb99fda3fa1c73c0b7e4c6007c1960)) +* **tests:** limit array example length ([#570](https://github.com/lithic-com/lithic-node/issues/570)) ([f514713](https://github.com/lithic-com/lithic-node/commit/f5147136ff8168f5958d9a5eb54ece922b0882d7)) + + +### Documentation + +* remove suggestion to use `npm` call out ([#571](https://github.com/lithic-com/lithic-node/issues/571)) ([1ffb063](https://github.com/lithic-com/lithic-node/commit/1ffb0638814b964a60be0ff745f51dcbc79b42f0)) + ## 0.86.0 (2024-11-06) Full Changelog: [v0.85.2...v0.86.0](https://github.com/lithic-com/lithic-node/compare/v0.85.2...v0.86.0) diff --git a/package.json b/package.json index fd65bd60..d64bfc70 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "lithic", - "version": "0.86.0", + "version": "0.87.0", "description": "The official TypeScript library for the Lithic API", "author": "Lithic ", "types": "dist/index.d.ts", diff --git a/src/version.ts b/src/version.ts index aefe2115..4f0bd6b6 100644 --- a/src/version.ts +++ b/src/version.ts @@ -1 +1 @@ -export const VERSION = '0.86.0'; // x-release-please-version +export const VERSION = '0.87.0'; // x-release-please-version