From 92ffdd057b987ad6c8200095be6ec524c00d4384 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 5 Feb 2026 20:08:49 +0000 Subject: [PATCH 1/2] feat(api): api update --- .stats.yml | 4 +- .../PendingTransaction/Source.php | 28 ++++++ .../BlockchainOfframpTransferInstruction.php | 97 +++++++++++++++++++ .../PendingTransaction/Source/Category.php | 2 + .../Category/In.php | 2 + 5 files changed, 131 insertions(+), 2 deletions(-) create mode 100644 src/PendingTransactions/PendingTransaction/Source/BlockchainOfframpTransferInstruction.php diff --git a/.stats.yml b/.stats.yml index f68c405..ce6e103 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-43f9f952601cef2893cb1f66276d2f820ddaa8f3f628f2787bce991dbae6b079.yml -openapi_spec_hash: dde142c551d19b01bfde45f2616cb7d7 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-aad9dbf54c66e9aa31deefc9ea241e0c1c2155207f61d606e94478bb5d650c38.yml +openapi_spec_hash: f5e641b92f8a3feaefad8bdbc278db77 config_hash: 27e44ed36b9c5617b580ead7231a594a diff --git a/src/PendingTransactions/PendingTransaction/Source.php b/src/PendingTransactions/PendingTransaction/Source.php index 8db32bf..1ce1757 100644 --- a/src/PendingTransactions/PendingTransaction/Source.php +++ b/src/PendingTransactions/PendingTransaction/Source.php @@ -9,6 +9,7 @@ use Increase\Core\Contracts\BaseModel; use Increase\PendingTransactions\PendingTransaction\Source\AccountTransferInstruction; use Increase\PendingTransactions\PendingTransaction\Source\ACHTransferInstruction; +use Increase\PendingTransactions\PendingTransaction\Source\BlockchainOfframpTransferInstruction; use Increase\PendingTransactions\PendingTransaction\Source\BlockchainOfframpTransferIntention; use Increase\PendingTransactions\PendingTransaction\Source\BlockchainOnrampTransferInstruction; use Increase\PendingTransactions\PendingTransaction\Source\CardAuthorization; @@ -29,6 +30,7 @@ * * @phpstan-import-type AccountTransferInstructionShape from \Increase\PendingTransactions\PendingTransaction\Source\AccountTransferInstruction * @phpstan-import-type ACHTransferInstructionShape from \Increase\PendingTransactions\PendingTransaction\Source\ACHTransferInstruction + * @phpstan-import-type BlockchainOfframpTransferInstructionShape from \Increase\PendingTransactions\PendingTransaction\Source\BlockchainOfframpTransferInstruction * @phpstan-import-type BlockchainOfframpTransferIntentionShape from \Increase\PendingTransactions\PendingTransaction\Source\BlockchainOfframpTransferIntention * @phpstan-import-type BlockchainOnrampTransferInstructionShape from \Increase\PendingTransactions\PendingTransaction\Source\BlockchainOnrampTransferInstruction * @phpstan-import-type CardAuthorizationShape from \Increase\PendingTransactions\PendingTransaction\Source\CardAuthorization @@ -46,6 +48,7 @@ * @phpstan-type SourceShape = array{ * accountTransferInstruction: null|AccountTransferInstruction|AccountTransferInstructionShape, * achTransferInstruction: null|ACHTransferInstruction|ACHTransferInstructionShape, + * blockchainOfframpTransferInstruction: null|BlockchainOfframpTransferInstruction|BlockchainOfframpTransferInstructionShape, * blockchainOfframpTransferIntention: null|BlockchainOfframpTransferIntention|BlockchainOfframpTransferIntentionShape, * blockchainOnrampTransferInstruction: null|BlockchainOnrampTransferInstruction|BlockchainOnrampTransferInstructionShape, * cardAuthorization: null|CardAuthorization|CardAuthorizationShape, @@ -80,6 +83,12 @@ final class Source implements BaseModel #[Required('ach_transfer_instruction')] public ?ACHTransferInstruction $achTransferInstruction; + /** + * A Blockchain Off-Ramp Transfer Instruction object. This field will be present in the JSON response if and only if `category` is equal to `blockchain_offramp_transfer_instruction`. + */ + #[Required('blockchain_offramp_transfer_instruction')] + public ?BlockchainOfframpTransferInstruction $blockchainOfframpTransferInstruction; + /** * A Blockchain Off-Ramp Transfer Intention object. This field will be present in the JSON response if and only if `category` is equal to `blockchain_offramp_transfer_intention`. */ @@ -182,6 +191,7 @@ final class Source implements BaseModel * Source::with( * accountTransferInstruction: ..., * achTransferInstruction: ..., + * blockchainOfframpTransferInstruction: ..., * blockchainOfframpTransferIntention: ..., * blockchainOnrampTransferInstruction: ..., * cardAuthorization: ..., @@ -206,6 +216,7 @@ final class Source implements BaseModel * (new Source) * ->withAccountTransferInstruction(...) * ->withACHTransferInstruction(...) + * ->withBlockchainOfframpTransferInstruction(...) * ->withBlockchainOfframpTransferIntention(...) * ->withBlockchainOnrampTransferInstruction(...) * ->withCardAuthorization(...) @@ -235,6 +246,7 @@ public function __construct() * * @param AccountTransferInstruction|AccountTransferInstructionShape|null $accountTransferInstruction * @param ACHTransferInstruction|ACHTransferInstructionShape|null $achTransferInstruction + * @param BlockchainOfframpTransferInstruction|BlockchainOfframpTransferInstructionShape|null $blockchainOfframpTransferInstruction * @param BlockchainOfframpTransferIntention|BlockchainOfframpTransferIntentionShape|null $blockchainOfframpTransferIntention * @param BlockchainOnrampTransferInstruction|BlockchainOnrampTransferInstructionShape|null $blockchainOnrampTransferInstruction * @param CardAuthorization|CardAuthorizationShape|null $cardAuthorization @@ -254,6 +266,7 @@ public function __construct() public static function with( AccountTransferInstruction|array|null $accountTransferInstruction, ACHTransferInstruction|array|null $achTransferInstruction, + BlockchainOfframpTransferInstruction|array|null $blockchainOfframpTransferInstruction, BlockchainOfframpTransferIntention|array|null $blockchainOfframpTransferIntention, BlockchainOnrampTransferInstruction|array|null $blockchainOnrampTransferInstruction, CardAuthorization|array|null $cardAuthorization, @@ -274,6 +287,7 @@ public static function with( $self['accountTransferInstruction'] = $accountTransferInstruction; $self['achTransferInstruction'] = $achTransferInstruction; + $self['blockchainOfframpTransferInstruction'] = $blockchainOfframpTransferInstruction; $self['blockchainOfframpTransferIntention'] = $blockchainOfframpTransferIntention; $self['blockchainOnrampTransferInstruction'] = $blockchainOnrampTransferInstruction; $self['cardAuthorization'] = $cardAuthorization; @@ -321,6 +335,20 @@ public function withACHTransferInstruction( return $self; } + /** + * A Blockchain Off-Ramp Transfer Instruction object. This field will be present in the JSON response if and only if `category` is equal to `blockchain_offramp_transfer_instruction`. + * + * @param BlockchainOfframpTransferInstruction|BlockchainOfframpTransferInstructionShape|null $blockchainOfframpTransferInstruction + */ + public function withBlockchainOfframpTransferInstruction( + BlockchainOfframpTransferInstruction|array|null $blockchainOfframpTransferInstruction, + ): self { + $self = clone $this; + $self['blockchainOfframpTransferInstruction'] = $blockchainOfframpTransferInstruction; + + return $self; + } + /** * A Blockchain Off-Ramp Transfer Intention object. This field will be present in the JSON response if and only if `category` is equal to `blockchain_offramp_transfer_intention`. * diff --git a/src/PendingTransactions/PendingTransaction/Source/BlockchainOfframpTransferInstruction.php b/src/PendingTransactions/PendingTransaction/Source/BlockchainOfframpTransferInstruction.php new file mode 100644 index 0000000..4760c1f --- /dev/null +++ b/src/PendingTransactions/PendingTransaction/Source/BlockchainOfframpTransferInstruction.php @@ -0,0 +1,97 @@ + */ + use SdkModel; + + /** + * The identifier of the Blockchain Address the funds were received at. + */ + #[Required('source_blockchain_address_id')] + public string $sourceBlockchainAddressID; + + /** + * The identifier of the Blockchain Off-Ramp Transfer that led to this Transaction. + */ + #[Required('transfer_id')] + public string $transferID; + + /** + * `new BlockchainOfframpTransferInstruction()` is missing required properties by the API. + * + * To enforce required parameters use + * ``` + * BlockchainOfframpTransferInstruction::with( + * sourceBlockchainAddressID: ..., transferID: ... + * ) + * ``` + * + * Otherwise ensure the following setters are called + * + * ``` + * (new BlockchainOfframpTransferInstruction) + * ->withSourceBlockchainAddressID(...) + * ->withTransferID(...) + * ``` + */ + 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 $sourceBlockchainAddressID, + string $transferID + ): self { + $self = new self; + + $self['sourceBlockchainAddressID'] = $sourceBlockchainAddressID; + $self['transferID'] = $transferID; + + return $self; + } + + /** + * The identifier of the Blockchain Address the funds were received at. + */ + public function withSourceBlockchainAddressID( + string $sourceBlockchainAddressID + ): self { + $self = clone $this; + $self['sourceBlockchainAddressID'] = $sourceBlockchainAddressID; + + return $self; + } + + /** + * The identifier of the Blockchain Off-Ramp Transfer that led to this Transaction. + */ + public function withTransferID(string $transferID): self + { + $self = clone $this; + $self['transferID'] = $transferID; + + return $self; + } +} diff --git a/src/PendingTransactions/PendingTransaction/Source/Category.php b/src/PendingTransactions/PendingTransaction/Source/Category.php index 83de793..e932dda 100644 --- a/src/PendingTransactions/PendingTransaction/Source/Category.php +++ b/src/PendingTransactions/PendingTransaction/Source/Category.php @@ -37,6 +37,8 @@ enum Category: string case BLOCKCHAIN_ONRAMP_TRANSFER_INSTRUCTION = 'blockchain_onramp_transfer_instruction'; + case BLOCKCHAIN_OFFRAMP_TRANSFER_INSTRUCTION = 'blockchain_offramp_transfer_instruction'; + case BLOCKCHAIN_OFFRAMP_TRANSFER_INTENTION = 'blockchain_offramp_transfer_intention'; case OTHER = 'other'; diff --git a/src/PendingTransactions/PendingTransactionListParams/Category/In.php b/src/PendingTransactions/PendingTransactionListParams/Category/In.php index 0902432..1ebbda3 100644 --- a/src/PendingTransactions/PendingTransactionListParams/Category/In.php +++ b/src/PendingTransactions/PendingTransactionListParams/Category/In.php @@ -34,6 +34,8 @@ enum In: string case BLOCKCHAIN_ONRAMP_TRANSFER_INSTRUCTION = 'blockchain_onramp_transfer_instruction'; + case BLOCKCHAIN_OFFRAMP_TRANSFER_INSTRUCTION = 'blockchain_offramp_transfer_instruction'; + case BLOCKCHAIN_OFFRAMP_TRANSFER_INTENTION = 'blockchain_offramp_transfer_intention'; case OTHER = 'other'; From 185e468b5fd8e6591b645f8439575400ba47c8d3 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 5 Feb 2026 20:09:08 +0000 Subject: [PATCH 2/2] release: 0.25.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 d2d60a3..a36746b 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.24.0" + ".": "0.25.0" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 4f7e35e..56682a7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 0.25.0 (2026-02-05) + +Full Changelog: [v0.24.0...v0.25.0](https://github.com/Increase/increase-php/compare/v0.24.0...v0.25.0) + +### Features + +* **api:** api update ([92ffdd0](https://github.com/Increase/increase-php/commit/92ffdd057b987ad6c8200095be6ec524c00d4384)) + ## 0.24.0 (2026-02-04) Full Changelog: [v0.23.0...v0.24.0](https://github.com/Increase/increase-php/compare/v0.23.0...v0.24.0) diff --git a/README.md b/README.md index 4fa1a70..f1a990f 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.24.0" +composer require "increase/increase 0.25.0" ``` diff --git a/src/Version.php b/src/Version.php index 96bc88f..dd80a90 100644 --- a/src/Version.php +++ b/src/Version.php @@ -5,5 +5,5 @@ namespace Increase; // x-release-please-start-version -const VERSION = '0.24.0'; +const VERSION = '0.25.0'; // x-release-please-end