diff --git a/.release-please-manifest.json b/.release-please-manifest.json index fcade0b2..f194b1d5 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.435.0" + ".": "0.436.0" } diff --git a/.stats.yml b/.stats.yml index 4c9e8f9b..9cbf59fe 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 232 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-b27417de2b11e1ed32ccf399f6b52acd599a75ba910d7709028972960e12ba67.yml -openapi_spec_hash: 82ef00d2d4f3a796ba181d2546c424bb +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-7da80155087dd9d883acaa10229e34ed5a3097f884c77b5f28c4c76a62b82432.yml +openapi_spec_hash: c5050ba45eb587316583060c1efef8a8 config_hash: 4b562e97b3d8b4cba758a87d4927a76d diff --git a/CHANGELOG.md b/CHANGELOG.md index 4f10599f..b3a5b98f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 0.436.0 (2026-02-18) + +Full Changelog: [v0.435.0...v0.436.0](https://github.com/Increase/increase-typescript/compare/v0.435.0...v0.436.0) + +### Features + +* **api:** api update ([0df43c8](https://github.com/Increase/increase-typescript/commit/0df43c8e00a3fb3fabdf1c18d24f5f52c17decef)) + ## 0.435.0 (2026-02-17) Full Changelog: [v0.434.0...v0.435.0](https://github.com/Increase/increase-typescript/compare/v0.434.0...v0.435.0) diff --git a/api.md b/api.md index 6576ef45..35c250ef 100644 --- a/api.md +++ b/api.md @@ -874,7 +874,7 @@ Methods: - client.simulations.checkDeposits.reject(checkDepositID) -> CheckDeposit - client.simulations.checkDeposits.return(checkDepositID) -> CheckDeposit -- client.simulations.checkDeposits.submit(checkDepositID) -> CheckDeposit +- client.simulations.checkDeposits.submit(checkDepositID, { ...params }) -> CheckDeposit ## InboundMailItems diff --git a/package.json b/package.json index 7ef247a8..080a2818 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "increase", - "version": "0.435.0", + "version": "0.436.0", "description": "The official TypeScript library for the Increase API", "author": "Increase ", "types": "dist/index.d.ts", diff --git a/src/resources/simulations/check-deposits.ts b/src/resources/simulations/check-deposits.ts index e18daa6b..6c8c8565 100644 --- a/src/resources/simulations/check-deposits.ts +++ b/src/resources/simulations/check-deposits.ts @@ -52,7 +52,47 @@ export class CheckDeposits extends APIResource { * ); * ``` */ - submit(checkDepositID: string, options?: RequestOptions): APIPromise { - return this._client.post(path`/simulations/check_deposits/${checkDepositID}/submit`, options); + submit( + checkDepositID: string, + body: CheckDepositSubmitParams, + options?: RequestOptions, + ): APIPromise { + return this._client.post(path`/simulations/check_deposits/${checkDepositID}/submit`, { + body, + ...options, + }); } } + +export interface CheckDepositSubmitParams { + /** + * If set, the simulation will use these values for the check's scanned MICR data. + */ + scan?: CheckDepositSubmitParams.Scan; +} + +export namespace CheckDepositSubmitParams { + /** + * If set, the simulation will use these values for the check's scanned MICR data. + */ + export interface Scan { + /** + * The account number to be returned in the check deposit's scan data. + */ + account_number: string; + + /** + * The routing number to be returned in the check deposit's scan data. + */ + routing_number: string; + + /** + * The auxiliary on-us data to be returned in the check deposit's scan data. + */ + auxiliary_on_us?: string; + } +} + +export declare namespace CheckDeposits { + export { type CheckDepositSubmitParams as CheckDepositSubmitParams }; +} diff --git a/src/resources/simulations/index.ts b/src/resources/simulations/index.ts index ac5643f2..9465fe77 100644 --- a/src/resources/simulations/index.ts +++ b/src/resources/simulations/index.ts @@ -25,7 +25,7 @@ export { CardRefunds, type CardRefundCreateParams } from './card-refunds'; export { CardReversals, type CardReversalCreateParams } from './card-reversals'; export { CardSettlements, type CardSettlementCreateParams } from './card-settlements'; export { CardTokens, type CardTokenCreateParams } from './card-tokens'; -export { CheckDeposits } from './check-deposits'; +export { CheckDeposits, type CheckDepositSubmitParams } from './check-deposits'; export { CheckTransfers } from './check-transfers'; export { DigitalWalletTokenRequests, diff --git a/src/resources/simulations/simulations.ts b/src/resources/simulations/simulations.ts index 2b3251be..3e5d0909 100644 --- a/src/resources/simulations/simulations.ts +++ b/src/resources/simulations/simulations.ts @@ -40,7 +40,7 @@ import { CardSettlementCreateParams, CardSettlements } from './card-settlements' import * as CardTokensAPI from './card-tokens'; import { CardTokenCreateParams, CardTokens } from './card-tokens'; import * as CheckDepositsAPI from './check-deposits'; -import { CheckDeposits } from './check-deposits'; +import { CheckDepositSubmitParams, CheckDeposits } from './check-deposits'; import * as CheckTransfersAPI from './check-transfers'; import { CheckTransfers } from './check-transfers'; import * as DigitalWalletTokenRequestsAPI from './digital-wallet-token-requests'; @@ -282,7 +282,7 @@ export declare namespace Simulations { type InboundFednowTransferCreateParams as InboundFednowTransferCreateParams, }; - export { CheckDeposits as CheckDeposits }; + export { CheckDeposits as CheckDeposits, type CheckDepositSubmitParams as CheckDepositSubmitParams }; export { InboundMailItems as InboundMailItems, diff --git a/src/version.ts b/src/version.ts index 756b1235..16464195 100644 --- a/src/version.ts +++ b/src/version.ts @@ -1 +1 @@ -export const VERSION = '0.435.0'; // x-release-please-version +export const VERSION = '0.436.0'; // x-release-please-version diff --git a/tests/api-resources/simulations/check-deposits.test.ts b/tests/api-resources/simulations/check-deposits.test.ts index b3a48572..986385ca 100644 --- a/tests/api-resources/simulations/check-deposits.test.ts +++ b/tests/api-resources/simulations/check-deposits.test.ts @@ -31,7 +31,7 @@ describe('resource checkDeposits', () => { }); test('submit', async () => { - const responsePromise = client.simulations.checkDeposits.submit('check_deposit_f06n9gpg7sxn8t19lfc1'); + const responsePromise = client.simulations.checkDeposits.submit('check_deposit_f06n9gpg7sxn8t19lfc1', {}); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); const response = await responsePromise;