From 208251f715ebebf7a3a83a50828dc648e54772e9 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 17 Feb 2026 23:51:13 +0000 Subject: [PATCH 1/3] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 9bcba9d..4c9e8f9 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-1127bb6ee64bebab1bbf8ecbd9ec71c0deb5ca8552fd454fa2ec120fd9eac14a.yml -openapi_spec_hash: 9fedc9dc133202e4d39bf7bffe4839d9 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-b27417de2b11e1ed32ccf399f6b52acd599a75ba910d7709028972960e12ba67.yml +openapi_spec_hash: 82ef00d2d4f3a796ba181d2546c424bb config_hash: 4b562e97b3d8b4cba758a87d4927a76d From fd8f0adbe99ad84db09c150f8651be01a3ea0f6f Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 18 Feb 2026 02:51:32 +0000 Subject: [PATCH 2/3] feat(api): api update --- .stats.yml | 4 +- .../Simulations/CheckDepositsContract.php | 6 +- .../Simulations/CheckDepositsRawContract.php | 5 +- .../Simulations/CheckDepositsRawService.php | 15 ++- .../Simulations/CheckDepositsService.php | 11 +- .../CheckDepositSubmitParams.php | 67 +++++++++++ .../CheckDepositSubmitParams/Scan.php | 113 ++++++++++++++++++ 7 files changed, 213 insertions(+), 8 deletions(-) create mode 100644 src/Simulations/CheckDeposits/CheckDepositSubmitParams.php create mode 100644 src/Simulations/CheckDeposits/CheckDepositSubmitParams/Scan.php diff --git a/.stats.yml b/.stats.yml index 4c9e8f9..9cbf59f 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/src/ServiceContracts/Simulations/CheckDepositsContract.php b/src/ServiceContracts/Simulations/CheckDepositsContract.php index 991772b..991dce3 100644 --- a/src/ServiceContracts/Simulations/CheckDepositsContract.php +++ b/src/ServiceContracts/Simulations/CheckDepositsContract.php @@ -7,8 +7,10 @@ use Increase\CheckDeposits\CheckDeposit; use Increase\Core\Exceptions\APIException; use Increase\RequestOptions; +use Increase\Simulations\CheckDeposits\CheckDepositSubmitParams\Scan; /** + * @phpstan-import-type ScanShape from \Increase\Simulations\CheckDeposits\CheckDepositSubmitParams\Scan * @phpstan-import-type RequestOpts from \Increase\RequestOptions */ interface CheckDepositsContract @@ -43,12 +45,14 @@ public function return( * @api * * @param string $checkDepositID the identifier of the Check Deposit you wish to submit + * @param Scan|ScanShape $scan if set, the simulation will use these values for the check's scanned MICR data * @param RequestOpts|null $requestOptions * * @throws APIException */ public function submit( string $checkDepositID, - RequestOptions|array|null $requestOptions = null + Scan|array|null $scan = null, + RequestOptions|array|null $requestOptions = null, ): CheckDeposit; } diff --git a/src/ServiceContracts/Simulations/CheckDepositsRawContract.php b/src/ServiceContracts/Simulations/CheckDepositsRawContract.php index 8c46aca..988080d 100644 --- a/src/ServiceContracts/Simulations/CheckDepositsRawContract.php +++ b/src/ServiceContracts/Simulations/CheckDepositsRawContract.php @@ -8,6 +8,7 @@ use Increase\Core\Contracts\BaseResponse; use Increase\Core\Exceptions\APIException; use Increase\RequestOptions; +use Increase\Simulations\CheckDeposits\CheckDepositSubmitParams; /** * @phpstan-import-type RequestOpts from \Increase\RequestOptions @@ -48,6 +49,7 @@ public function return( * @api * * @param string $checkDepositID the identifier of the Check Deposit you wish to submit + * @param array|CheckDepositSubmitParams $params * @param RequestOpts|null $requestOptions * * @return BaseResponse @@ -56,6 +58,7 @@ public function return( */ public function submit( string $checkDepositID, - RequestOptions|array|null $requestOptions = null + array|CheckDepositSubmitParams $params, + RequestOptions|array|null $requestOptions = null, ): BaseResponse; } diff --git a/src/Services/Simulations/CheckDepositsRawService.php b/src/Services/Simulations/CheckDepositsRawService.php index a2b4eb5..dd08fbb 100644 --- a/src/Services/Simulations/CheckDepositsRawService.php +++ b/src/Services/Simulations/CheckDepositsRawService.php @@ -10,8 +10,11 @@ use Increase\Core\Exceptions\APIException; use Increase\RequestOptions; use Increase\ServiceContracts\Simulations\CheckDepositsRawContract; +use Increase\Simulations\CheckDeposits\CheckDepositSubmitParams; +use Increase\Simulations\CheckDeposits\CheckDepositSubmitParams\Scan; /** + * @phpstan-import-type ScanShape from \Increase\Simulations\CheckDeposits\CheckDepositSubmitParams\Scan * @phpstan-import-type RequestOpts from \Increase\RequestOptions */ final class CheckDepositsRawService implements CheckDepositsRawContract @@ -78,6 +81,7 @@ public function return( * Simulates the submission of a [Check Deposit](#check-deposits) to the Federal Reserve. This Check Deposit must first have a `status` of `pending`. * * @param string $checkDepositID the identifier of the Check Deposit you wish to submit + * @param array{scan?: Scan|ScanShape}|CheckDepositSubmitParams $params * @param RequestOpts|null $requestOptions * * @return BaseResponse @@ -86,13 +90,20 @@ public function return( */ public function submit( string $checkDepositID, - RequestOptions|array|null $requestOptions = null + array|CheckDepositSubmitParams $params, + RequestOptions|array|null $requestOptions = null, ): BaseResponse { + [$parsed, $options] = CheckDepositSubmitParams::parseRequest( + $params, + $requestOptions, + ); + // @phpstan-ignore-next-line return.type return $this->client->request( method: 'post', path: ['simulations/check_deposits/%1$s/submit', $checkDepositID], - options: $requestOptions, + body: (object) $parsed, + options: $options, convert: CheckDeposit::class, ); } diff --git a/src/Services/Simulations/CheckDepositsService.php b/src/Services/Simulations/CheckDepositsService.php index 02bdadc..fefcb49 100644 --- a/src/Services/Simulations/CheckDepositsService.php +++ b/src/Services/Simulations/CheckDepositsService.php @@ -7,10 +7,13 @@ use Increase\CheckDeposits\CheckDeposit; use Increase\Client; use Increase\Core\Exceptions\APIException; +use Increase\Core\Util; use Increase\RequestOptions; use Increase\ServiceContracts\Simulations\CheckDepositsContract; +use Increase\Simulations\CheckDeposits\CheckDepositSubmitParams\Scan; /** + * @phpstan-import-type ScanShape from \Increase\Simulations\CheckDeposits\CheckDepositSubmitParams\Scan * @phpstan-import-type RequestOpts from \Increase\RequestOptions */ final class CheckDepositsService implements CheckDepositsContract @@ -74,16 +77,20 @@ public function return( * Simulates the submission of a [Check Deposit](#check-deposits) to the Federal Reserve. This Check Deposit must first have a `status` of `pending`. * * @param string $checkDepositID the identifier of the Check Deposit you wish to submit + * @param Scan|ScanShape $scan if set, the simulation will use these values for the check's scanned MICR data * @param RequestOpts|null $requestOptions * * @throws APIException */ public function submit( string $checkDepositID, - RequestOptions|array|null $requestOptions = null + Scan|array|null $scan = null, + RequestOptions|array|null $requestOptions = null, ): CheckDeposit { + $params = Util::removeNulls(['scan' => $scan]); + // @phpstan-ignore-next-line argument.type - $response = $this->raw->submit($checkDepositID, requestOptions: $requestOptions); + $response = $this->raw->submit($checkDepositID, params: $params, requestOptions: $requestOptions); return $response->parse(); } diff --git a/src/Simulations/CheckDeposits/CheckDepositSubmitParams.php b/src/Simulations/CheckDeposits/CheckDepositSubmitParams.php new file mode 100644 index 0000000..92b173d --- /dev/null +++ b/src/Simulations/CheckDeposits/CheckDepositSubmitParams.php @@ -0,0 +1,67 @@ + */ + use SdkModel; + use SdkParams; + + /** + * If set, the simulation will use these values for the check's scanned MICR data. + */ + #[Optional] + public ?Scan $scan; + + public function __construct() + { + $this->initialize(); + } + + /** + * Construct an instance from the required parameters. + * + * You must use named parameters to construct any parameters with a default value. + * + * @param Scan|ScanShape|null $scan + */ + public static function with(Scan|array|null $scan = null): self + { + $self = new self; + + null !== $scan && $self['scan'] = $scan; + + return $self; + } + + /** + * If set, the simulation will use these values for the check's scanned MICR data. + * + * @param Scan|ScanShape $scan + */ + public function withScan(Scan|array $scan): self + { + $self = clone $this; + $self['scan'] = $scan; + + return $self; + } +} diff --git a/src/Simulations/CheckDeposits/CheckDepositSubmitParams/Scan.php b/src/Simulations/CheckDeposits/CheckDepositSubmitParams/Scan.php new file mode 100644 index 0000000..343c203 --- /dev/null +++ b/src/Simulations/CheckDeposits/CheckDepositSubmitParams/Scan.php @@ -0,0 +1,113 @@ + */ + use SdkModel; + + /** + * The account number to be returned in the check deposit's scan data. + */ + #[Required('account_number')] + public string $accountNumber; + + /** + * The routing number to be returned in the check deposit's scan data. + */ + #[Required('routing_number')] + public string $routingNumber; + + /** + * The auxiliary on-us data to be returned in the check deposit's scan data. + */ + #[Optional('auxiliary_on_us')] + public ?string $auxiliaryOnUs; + + /** + * `new Scan()` is missing required properties by the API. + * + * To enforce required parameters use + * ``` + * Scan::with(accountNumber: ..., routingNumber: ...) + * ``` + * + * Otherwise ensure the following setters are called + * + * ``` + * (new Scan)->withAccountNumber(...)->withRoutingNumber(...) + * ``` + */ + public function __construct() + { + $this->initialize(); + } + + /** + * Construct an instance from the required parameters. + * + * You must use named parameters to construct any parameters with a default value. + */ + public static function with( + string $accountNumber, + string $routingNumber, + ?string $auxiliaryOnUs = null + ): self { + $self = new self; + + $self['accountNumber'] = $accountNumber; + $self['routingNumber'] = $routingNumber; + + null !== $auxiliaryOnUs && $self['auxiliaryOnUs'] = $auxiliaryOnUs; + + return $self; + } + + /** + * The account number to be returned in the check deposit's scan data. + */ + public function withAccountNumber(string $accountNumber): self + { + $self = clone $this; + $self['accountNumber'] = $accountNumber; + + return $self; + } + + /** + * The routing number to be returned in the check deposit's scan data. + */ + public function withRoutingNumber(string $routingNumber): self + { + $self = clone $this; + $self['routingNumber'] = $routingNumber; + + return $self; + } + + /** + * The auxiliary on-us data to be returned in the check deposit's scan data. + */ + public function withAuxiliaryOnUs(string $auxiliaryOnUs): self + { + $self = clone $this; + $self['auxiliaryOnUs'] = $auxiliaryOnUs; + + return $self; + } +} From ec1ccf842a40da45ee50c2294f40dc604843a524 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 18 Feb 2026 02:51:50 +0000 Subject: [PATCH 3/3] release: 0.34.0 --- .release-please-manifest.json | 2 +- CHANGELOG.md | 8 ++++++++ README.md | 2 +- src/Version.php | 2 +- 4 files changed, 11 insertions(+), 3 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 57dc0c3..e4e1c3c 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.33.0" + ".": "0.34.0" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 6f8457c..0a81388 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 0.34.0 (2026-02-18) + +Full Changelog: [v0.33.0...v0.34.0](https://github.com/Increase/increase-php/compare/v0.33.0...v0.34.0) + +### Features + +* **api:** api update ([fd8f0ad](https://github.com/Increase/increase-php/commit/fd8f0adbe99ad84db09c150f8651be01a3ea0f6f)) + ## 0.33.0 (2026-02-14) Full Changelog: [v0.32.0...v0.33.0](https://github.com/Increase/increase-php/compare/v0.32.0...v0.33.0) diff --git a/README.md b/README.md index 1c8b8e1..0fd9917 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ The REST API documentation can be found on [increase.com](https://increase.com/d ``` -composer require "increase/increase 0.33.0" +composer require "increase/increase 0.34.0" ``` diff --git a/src/Version.php b/src/Version.php index cfa4e06..12d83c0 100644 --- a/src/Version.php +++ b/src/Version.php @@ -5,5 +5,5 @@ namespace Increase; // x-release-please-start-version -const VERSION = '0.33.0'; +const VERSION = '0.34.0'; // x-release-please-end