Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "0.24.0"
".": "0.25.0"
}
4 changes: 2 additions & 2 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -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
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ The REST API documentation can be found on [increase.com](https://increase.com/d
<!-- x-release-please-start-version -->

```
composer require "increase/increase 0.24.0"
composer require "increase/increase 0.25.0"
```

<!-- x-release-please-end -->
Expand Down
28 changes: 28 additions & 0 deletions src/PendingTransactions/PendingTransaction/Source.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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
Expand All @@ -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,
Expand Down Expand Up @@ -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`.
*/
Expand Down Expand Up @@ -182,6 +191,7 @@ final class Source implements BaseModel
* Source::with(
* accountTransferInstruction: ...,
* achTransferInstruction: ...,
* blockchainOfframpTransferInstruction: ...,
* blockchainOfframpTransferIntention: ...,
* blockchainOnrampTransferInstruction: ...,
* cardAuthorization: ...,
Expand All @@ -206,6 +216,7 @@ final class Source implements BaseModel
* (new Source)
* ->withAccountTransferInstruction(...)
* ->withACHTransferInstruction(...)
* ->withBlockchainOfframpTransferInstruction(...)
* ->withBlockchainOfframpTransferIntention(...)
* ->withBlockchainOnrampTransferInstruction(...)
* ->withCardAuthorization(...)
Expand Down Expand Up @@ -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
Expand All @@ -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,
Expand All @@ -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;
Expand Down Expand Up @@ -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`.
*
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
<?php

declare(strict_types=1);

namespace Increase\PendingTransactions\PendingTransaction\Source;

use Increase\Core\Attributes\Required;
use Increase\Core\Concerns\SdkModel;
use Increase\Core\Contracts\BaseModel;

/**
* 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`.
*
* @phpstan-type BlockchainOfframpTransferInstructionShape = array{
* sourceBlockchainAddressID: string, transferID: string
* }
*/
final class BlockchainOfframpTransferInstruction implements BaseModel
{
/** @use SdkModel<BlockchainOfframpTransferInstructionShape> */
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;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
2 changes: 1 addition & 1 deletion src/Version.php
Original file line number Diff line number Diff line change
Expand Up @@ -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