From 0311b3cfa678e38fffb749f8d79a431f72a33f88 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 13 Apr 2026 21:09:22 +0000 Subject: [PATCH 1/2] feat(api): api update --- .stats.yml | 8 +-- .../Simulations/AccountTransfersContract.php | 28 ----------- .../AccountTransfersRawContract.php | 31 ------------ .../AccountTransfersRawService.php | 49 ------------------ .../Simulations/AccountTransfersService.php | 50 ------------------- src/Services/SimulationsService.php | 7 --- .../Simulations/AccountTransfersTest.php | 40 --------------- 7 files changed, 4 insertions(+), 209 deletions(-) delete mode 100644 src/ServiceContracts/Simulations/AccountTransfersContract.php delete mode 100644 src/ServiceContracts/Simulations/AccountTransfersRawContract.php delete mode 100644 src/Services/Simulations/AccountTransfersRawService.php delete mode 100644 src/Services/Simulations/AccountTransfersService.php delete mode 100644 tests/Services/Simulations/AccountTransfersTest.php diff --git a/.stats.yml b/.stats.yml index fcb6c732..52a1884e 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ -configured_endpoints: 241 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-ec147e2dbcccb835ada48a743903d43ab228330e476558ba74dc87f248345303.yml -openapi_spec_hash: 333fdaec2de515a123cc44401b432aa2 -config_hash: d48e9f65bcf642f92610034d6c43f07a +configured_endpoints: 240 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-c9957e6ab1c9adef0dfb9a3956c8e7505a1661d22e79531eaee71b2a3a699b61.yml +openapi_spec_hash: 1190741469af674747df81908239a601 +config_hash: 82cb0fb1fae47b3467cd6da4273541de diff --git a/src/ServiceContracts/Simulations/AccountTransfersContract.php b/src/ServiceContracts/Simulations/AccountTransfersContract.php deleted file mode 100644 index fb257510..00000000 --- a/src/ServiceContracts/Simulations/AccountTransfersContract.php +++ /dev/null @@ -1,28 +0,0 @@ - - * - * @throws APIException - */ - public function complete( - string $accountTransferID, - RequestOptions|array|null $requestOptions = null, - ): BaseResponse; -} diff --git a/src/Services/Simulations/AccountTransfersRawService.php b/src/Services/Simulations/AccountTransfersRawService.php deleted file mode 100644 index f297defb..00000000 --- a/src/Services/Simulations/AccountTransfersRawService.php +++ /dev/null @@ -1,49 +0,0 @@ - - * - * @throws APIException - */ - public function complete( - string $accountTransferID, - RequestOptions|array|null $requestOptions = null - ): BaseResponse { - // @phpstan-ignore-next-line return.type - return $this->client->request( - method: 'post', - path: ['simulations/account_transfers/%1$s/complete', $accountTransferID], - options: $requestOptions, - convert: AccountTransfer::class, - ); - } -} diff --git a/src/Services/Simulations/AccountTransfersService.php b/src/Services/Simulations/AccountTransfersService.php deleted file mode 100644 index 2e726b1d..00000000 --- a/src/Services/Simulations/AccountTransfersService.php +++ /dev/null @@ -1,50 +0,0 @@ -raw = new AccountTransfersRawService($client); - } - - /** - * @api - * - * If your account is configured to require approval for each transfer, this endpoint simulates the approval of an [Account Transfer](#account-transfers). You can also approve sandbox Account Transfers in the dashboard. This transfer must first have a `status` of `pending_approval`. - * - * @param string $accountTransferID the identifier of the Account Transfer you wish to complete - * @param RequestOpts|null $requestOptions - * - * @throws APIException - */ - public function complete( - string $accountTransferID, - RequestOptions|array|null $requestOptions = null - ): AccountTransfer { - // @phpstan-ignore-next-line argument.type - $response = $this->raw->complete($accountTransferID, requestOptions: $requestOptions); - - return $response->parse(); - } -} diff --git a/src/Services/SimulationsService.php b/src/Services/SimulationsService.php index 1eee0dca..6586446c 100644 --- a/src/Services/SimulationsService.php +++ b/src/Services/SimulationsService.php @@ -7,7 +7,6 @@ use Increase\Client; use Increase\ServiceContracts\SimulationsContract; use Increase\Services\Simulations\AccountStatementsService; -use Increase\Services\Simulations\AccountTransfersService; use Increase\Services\Simulations\ACHTransfersService; use Increase\Services\Simulations\CardAuthenticationsService; use Increase\Services\Simulations\CardAuthorizationExpirationsService; @@ -52,11 +51,6 @@ final class SimulationsService implements SimulationsContract */ public InterestPaymentsService $interestPayments; - /** - * @api - */ - public AccountTransfersService $accountTransfers; - /** * @api */ @@ -219,7 +213,6 @@ public function __construct(private Client $client) { $this->raw = new SimulationsRawService($client); $this->interestPayments = new InterestPaymentsService($client); - $this->accountTransfers = new AccountTransfersService($client); $this->cardAuthorizations = new CardAuthorizationsService($client); $this->cardBalanceInquiries = new CardBalanceInquiriesService($client); $this->cardAuthorizationExpirations = new CardAuthorizationExpirationsService($client); diff --git a/tests/Services/Simulations/AccountTransfersTest.php b/tests/Services/Simulations/AccountTransfersTest.php deleted file mode 100644 index dd6f8902..00000000 --- a/tests/Services/Simulations/AccountTransfersTest.php +++ /dev/null @@ -1,40 +0,0 @@ -client = $client; - } - - #[Test] - public function testComplete(): void - { - $result = $this->client->simulations->accountTransfers->complete( - 'account_transfer_7k9qe1ysdgqztnt63l7n' - ); - - // @phpstan-ignore-next-line method.alreadyNarrowedType - $this->assertInstanceOf(AccountTransfer::class, $result); - } -} From 0c67701669058fa8b236d26ba202d24a0be796cf Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 13 Apr 2026 21:09:42 +0000 Subject: [PATCH 2/2] release: 0.110.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 3ca49358..c37434e9 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.109.0" + ".": "0.110.0" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index e39b2ec8..f6e924ea 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 0.110.0 (2026-04-13) + +Full Changelog: [v0.109.0...v0.110.0](https://github.com/Increase/increase-php/compare/v0.109.0...v0.110.0) + +### Features + +* **api:** api update ([0311b3c](https://github.com/Increase/increase-php/commit/0311b3cfa678e38fffb749f8d79a431f72a33f88)) + ## 0.109.0 (2026-04-13) Full Changelog: [v0.108.0...v0.109.0](https://github.com/Increase/increase-php/compare/v0.108.0...v0.109.0) diff --git a/README.md b/README.md index 135bfa6a..8f34e62f 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.109.0" +composer require "increase/increase 0.110.0" ``` diff --git a/src/Version.php b/src/Version.php index f7ce2539..0b584d5f 100644 --- a/src/Version.php +++ b/src/Version.php @@ -5,5 +5,5 @@ namespace Increase; // x-release-please-start-version -const VERSION = '0.109.0'; +const VERSION = '0.110.0'; // x-release-please-end