From 7d2f04ae4e7f8123c3fd2ce54916449bcae14001 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Sat, 7 Feb 2026 02:07:36 +0000 Subject: [PATCH 01/11] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index d4eadd5..81a2f23 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-845aba046473ba39ae898570153537fb31dd6f8cb260dd8478a14fd4275ca97f.yml -openapi_spec_hash: 8afbe65f9d6614f0960f141ae0de0c39 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-6f8d314503b180fd687439339078cfb52aece501f8733653d3efdb965373add0.yml +openapi_spec_hash: ced54b80faed28bc8d99bf1584ea129c config_hash: 27e44ed36b9c5617b580ead7231a594a From 2ee1947bcf3cd49e7826bfca2ec6c8f1499d06fa Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Sat, 7 Feb 2026 02:28:55 +0000 Subject: [PATCH 02/11] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 81a2f23..c1766b3 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-6f8d314503b180fd687439339078cfb52aece501f8733653d3efdb965373add0.yml -openapi_spec_hash: ced54b80faed28bc8d99bf1584ea129c +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-875c81df98fc0021d5b684278df406d97756b6b35de0dc6080b2b203296b50cb.yml +openapi_spec_hash: b820a82f312bdc6dc2270a8aa94d4d3f config_hash: 27e44ed36b9c5617b580ead7231a594a From 08c14a4b231a4004438b077d201805747f519357 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Sat, 7 Feb 2026 02:57:25 +0000 Subject: [PATCH 03/11] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index c1766b3..337db82 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-875c81df98fc0021d5b684278df406d97756b6b35de0dc6080b2b203296b50cb.yml -openapi_spec_hash: b820a82f312bdc6dc2270a8aa94d4d3f +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-96e762baf33149f74aea5ea416aa9c636d16f4646b22d139aa4326c4a86d1d19.yml +openapi_spec_hash: e1855fb0fad48e346d04e970a44db563 config_hash: 27e44ed36b9c5617b580ead7231a594a From b5592f3ef34483a6f29c848ba84470567f6b93e2 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Sat, 7 Feb 2026 03:45:42 +0000 Subject: [PATCH 04/11] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 337db82..00efb20 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-96e762baf33149f74aea5ea416aa9c636d16f4646b22d139aa4326c4a86d1d19.yml -openapi_spec_hash: e1855fb0fad48e346d04e970a44db563 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-a4aeb17e7efa501dbb3e6e94cd1182e70fd328179628e5ee5c407df0bc96c13a.yml +openapi_spec_hash: 1cea7fff3dc7f3a20f075d3decd6947a config_hash: 27e44ed36b9c5617b580ead7231a594a From d4a86d587a5036080ec4fe020b9ae9e4a8aa68f5 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Sat, 7 Feb 2026 04:44:42 +0000 Subject: [PATCH 05/11] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 00efb20..6564a92 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-a4aeb17e7efa501dbb3e6e94cd1182e70fd328179628e5ee5c407df0bc96c13a.yml -openapi_spec_hash: 1cea7fff3dc7f3a20f075d3decd6947a +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-b4d99cc14d9c7c669d4d60bc717f7726dfae7a62c24d7577f802c4013dbde3cc.yml +openapi_spec_hash: b65456c06bde26a81cfa8577db6bcc9a config_hash: 27e44ed36b9c5617b580ead7231a594a From 7cf493de3238d76bf27b5b471eea005a35808abd Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Sat, 7 Feb 2026 17:24:17 +0000 Subject: [PATCH 06/11] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 6564a92..861025f 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-b4d99cc14d9c7c669d4d60bc717f7726dfae7a62c24d7577f802c4013dbde3cc.yml -openapi_spec_hash: b65456c06bde26a81cfa8577db6bcc9a +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-47a765c648e09d62e18e8cb188365bf3c27e64a2b1044e0c621938fc4e703b8e.yml +openapi_spec_hash: 8f335669a93958024498c4f5d02ffbfb config_hash: 27e44ed36b9c5617b580ead7231a594a From 891581545726c898bed08f58e3a6045e7d9d7fef Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Sat, 7 Feb 2026 23:28:22 +0000 Subject: [PATCH 07/11] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 861025f..72d8e83 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-47a765c648e09d62e18e8cb188365bf3c27e64a2b1044e0c621938fc4e703b8e.yml -openapi_spec_hash: 8f335669a93958024498c4f5d02ffbfb +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-ef12157473e772a7d34639fb936e204d29f3a3383e02201c969fb3b9b92d8578.yml +openapi_spec_hash: 4d23fee0569197b7fea4f10371c0494e config_hash: 27e44ed36b9c5617b580ead7231a594a From fe51f8b6994b7df525e29feb691c173bb50e9c69 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Sun, 8 Feb 2026 17:25:20 +0000 Subject: [PATCH 08/11] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 72d8e83..0a6d14a 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-ef12157473e772a7d34639fb936e204d29f3a3383e02201c969fb3b9b92d8578.yml -openapi_spec_hash: 4d23fee0569197b7fea4f10371c0494e +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-35c9f1b7930722e6703f77c71a2714e0dc0b2132389773c94b56a925f09cbbd0.yml +openapi_spec_hash: dc7e9f871bdb69e935c89496dddb5392 config_hash: 27e44ed36b9c5617b580ead7231a594a From 6dac1efb8715b4e4ade62da91f6cf45ed3f8da26 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 10 Feb 2026 01:54:21 +0000 Subject: [PATCH 09/11] codegen metadata --- .stats.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.stats.yml b/.stats.yml index 0a6d14a..f8d264a 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-35c9f1b7930722e6703f77c71a2714e0dc0b2132389773c94b56a925f09cbbd0.yml openapi_spec_hash: dc7e9f871bdb69e935c89496dddb5392 -config_hash: 27e44ed36b9c5617b580ead7231a594a +config_hash: 4b562e97b3d8b4cba758a87d4927a76d From f817e133c4fff816ac0f139a20bea586797844dc Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 10 Feb 2026 07:37:02 +0000 Subject: [PATCH 10/11] feat(api): api update --- .stats.yml | 4 +- .../InboundWireTransfer.php | 31 ++++++- .../InboundWireTransfer/Acceptance.php | 92 +++++++++++++++++++ .../InboundWireTransfer/Reversal.php | 2 +- 4 files changed, 124 insertions(+), 5 deletions(-) create mode 100644 src/InboundWireTransfers/InboundWireTransfer/Acceptance.php diff --git a/.stats.yml b/.stats.yml index f8d264a..8bcc436 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-35c9f1b7930722e6703f77c71a2714e0dc0b2132389773c94b56a925f09cbbd0.yml -openapi_spec_hash: dc7e9f871bdb69e935c89496dddb5392 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-089e28882ee6d2ba5caaf094e99a95593ab5db652954f68fa7ce9c5b5ca76198.yml +openapi_spec_hash: 7cb683d243b088c97c04c3cd5623106a config_hash: 4b562e97b3d8b4cba758a87d4927a76d diff --git a/src/InboundWireTransfers/InboundWireTransfer.php b/src/InboundWireTransfers/InboundWireTransfer.php index 880aada..b894adf 100644 --- a/src/InboundWireTransfers/InboundWireTransfer.php +++ b/src/InboundWireTransfers/InboundWireTransfer.php @@ -7,6 +7,7 @@ use Increase\Core\Attributes\Required; use Increase\Core\Concerns\SdkModel; use Increase\Core\Contracts\BaseModel; +use Increase\InboundWireTransfers\InboundWireTransfer\Acceptance; use Increase\InboundWireTransfers\InboundWireTransfer\Reversal; use Increase\InboundWireTransfers\InboundWireTransfer\Status; use Increase\InboundWireTransfers\InboundWireTransfer\Type; @@ -14,10 +15,12 @@ /** * An Inbound Wire Transfer is a wire transfer initiated outside of Increase to your account. * + * @phpstan-import-type AcceptanceShape from \Increase\InboundWireTransfers\InboundWireTransfer\Acceptance * @phpstan-import-type ReversalShape from \Increase\InboundWireTransfers\InboundWireTransfer\Reversal * * @phpstan-type InboundWireTransferShape = array{ * id: string, + * acceptance: null|Acceptance|AcceptanceShape, * accountID: string, * accountNumberID: string, * amount: int, @@ -54,6 +57,12 @@ final class InboundWireTransfer implements BaseModel #[Required] public string $id; + /** + * If the transfer is accepted, this will contain details of the acceptance. + */ + #[Required] + public ?Acceptance $acceptance; + /** * The Account to which the transfer belongs. */ @@ -157,7 +166,7 @@ final class InboundWireTransfer implements BaseModel public ?string $instructionIdentification; /** - * Information about the reversal of the inbound wire transfer if it has been reversed. + * If the transfer is reversed, this will contain details of the reversal. */ #[Required] public ?Reversal $reversal; @@ -203,6 +212,7 @@ final class InboundWireTransfer implements BaseModel * ``` * InboundWireTransfer::with( * id: ..., + * acceptance: ..., * accountID: ..., * accountNumberID: ..., * amount: ..., @@ -234,6 +244,7 @@ final class InboundWireTransfer implements BaseModel * ``` * (new InboundWireTransfer) * ->withID(...) + * ->withAcceptance(...) * ->withAccountID(...) * ->withAccountNumberID(...) * ->withAmount(...) @@ -269,12 +280,14 @@ public function __construct() * * You must use named parameters to construct any parameters with a default value. * + * @param Acceptance|AcceptanceShape|null $acceptance * @param Reversal|ReversalShape|null $reversal * @param Status|value-of $status * @param Type|value-of $type */ public static function with( string $id, + Acceptance|array|null $acceptance, string $accountID, string $accountNumberID, int $amount, @@ -302,6 +315,7 @@ public static function with( $self = new self; $self['id'] = $id; + $self['acceptance'] = $acceptance; $self['accountID'] = $accountID; $self['accountNumberID'] = $accountNumberID; $self['amount'] = $amount; @@ -340,6 +354,19 @@ public function withID(string $id): self return $self; } + /** + * If the transfer is accepted, this will contain details of the acceptance. + * + * @param Acceptance|AcceptanceShape|null $acceptance + */ + public function withAcceptance(Acceptance|array|null $acceptance): self + { + $self = clone $this; + $self['acceptance'] = $acceptance; + + return $self; + } + /** * The Account to which the transfer belongs. */ @@ -535,7 +562,7 @@ public function withInstructionIdentification( } /** - * Information about the reversal of the inbound wire transfer if it has been reversed. + * If the transfer is reversed, this will contain details of the reversal. * * @param Reversal|ReversalShape|null $reversal */ diff --git a/src/InboundWireTransfers/InboundWireTransfer/Acceptance.php b/src/InboundWireTransfers/InboundWireTransfer/Acceptance.php new file mode 100644 index 0000000..e7c1788 --- /dev/null +++ b/src/InboundWireTransfers/InboundWireTransfer/Acceptance.php @@ -0,0 +1,92 @@ + */ + use SdkModel; + + /** + * The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which the transfer was accepted. + */ + #[Required('accepted_at')] + public \DateTimeInterface $acceptedAt; + + /** + * The identifier of the transaction for the accepted transfer. + */ + #[Required('transaction_id')] + public string $transactionID; + + /** + * `new Acceptance()` is missing required properties by the API. + * + * To enforce required parameters use + * ``` + * Acceptance::with(acceptedAt: ..., transactionID: ...) + * ``` + * + * Otherwise ensure the following setters are called + * + * ``` + * (new Acceptance)->withAcceptedAt(...)->withTransactionID(...) + * ``` + */ + 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( + \DateTimeInterface $acceptedAt, + string $transactionID + ): self { + $self = new self; + + $self['acceptedAt'] = $acceptedAt; + $self['transactionID'] = $transactionID; + + return $self; + } + + /** + * The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which the transfer was accepted. + */ + public function withAcceptedAt(\DateTimeInterface $acceptedAt): self + { + $self = clone $this; + $self['acceptedAt'] = $acceptedAt; + + return $self; + } + + /** + * The identifier of the transaction for the accepted transfer. + */ + public function withTransactionID(string $transactionID): self + { + $self = clone $this; + $self['transactionID'] = $transactionID; + + return $self; + } +} diff --git a/src/InboundWireTransfers/InboundWireTransfer/Reversal.php b/src/InboundWireTransfers/InboundWireTransfer/Reversal.php index 84fad17..dee5337 100644 --- a/src/InboundWireTransfers/InboundWireTransfer/Reversal.php +++ b/src/InboundWireTransfers/InboundWireTransfer/Reversal.php @@ -10,7 +10,7 @@ use Increase\InboundWireTransfers\InboundWireTransfer\Reversal\Reason; /** - * Information about the reversal of the inbound wire transfer if it has been reversed. + * If the transfer is reversed, this will contain details of the reversal. * * @phpstan-type ReversalShape = array{ * reason: Reason|value-of, reversedAt: \DateTimeInterface From 10288f7bc9647dd540b173996a3f5e83633bc862 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 10 Feb 2026 07:37:19 +0000 Subject: [PATCH 11/11] release: 0.30.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 b8dda9b..554e34b 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.29.0" + ".": "0.30.0" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 2143678..069845b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 0.30.0 (2026-02-10) + +Full Changelog: [v0.29.0...v0.30.0](https://github.com/Increase/increase-php/compare/v0.29.0...v0.30.0) + +### Features + +* **api:** api update ([f817e13](https://github.com/Increase/increase-php/commit/f817e133c4fff816ac0f139a20bea586797844dc)) + ## 0.29.0 (2026-02-07) Full Changelog: [v0.28.0...v0.29.0](https://github.com/Increase/increase-php/compare/v0.28.0...v0.29.0) diff --git a/README.md b/README.md index 473d94f..237d549 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.29.0" +composer require "increase/increase 0.30.0" ``` diff --git a/src/Version.php b/src/Version.php index ab708bb..e229b6a 100644 --- a/src/Version.php +++ b/src/Version.php @@ -5,5 +5,5 @@ namespace Increase; // x-release-please-start-version -const VERSION = '0.29.0'; +const VERSION = '0.30.0'; // x-release-please-end