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.17.0"
".": "0.18.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-c4cfc1e3f7a08dfe8be37b73f7da951caaff66d967512d5dd15956b908cda488.yml
openapi_spec_hash: 458dc62dd9bc06b1a103e010feca1d9f
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-6bf08c859f0104ec8755cac5a5a9e5d106ed3906d49979d9702070bc71384bca.yml
openapi_spec_hash: 2b9cb4a269763fc4e2ea6ad1e8e59283
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.18.0 (2026-02-02)

Full Changelog: [v0.17.0...v0.18.0](https://github.com/Increase/increase-php/compare/v0.17.0...v0.18.0)

### Features

* **api:** api update ([ec4c676](https://github.com/Increase/increase-php/commit/ec4c676825f25e62ad966dd53ae92807252817ae))

## 0.17.0 (2026-02-02)

Full Changelog: [v0.16.0...v0.17.0](https://github.com/Increase/increase-php/compare/v0.16.0...v0.17.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.17.0"
composer require "increase/increase 0.18.0"
```

<!-- x-release-please-end -->
Expand Down
12 changes: 12 additions & 0 deletions src/EventSubscriptions/EventSubscription/SelectedEventCategory.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,18 @@ enum SelectedEventCategory: string

case ACH_TRANSFER_UPDATED = 'ach_transfer.updated';

case BLOCKCHAIN_ADDRESS_CREATED = 'blockchain_address.created';

case BLOCKCHAIN_ADDRESS_UPDATED = 'blockchain_address.updated';

case BLOCKCHAIN_OFFRAMP_TRANSFER_CREATED = 'blockchain_offramp_transfer.created';

case BLOCKCHAIN_OFFRAMP_TRANSFER_UPDATED = 'blockchain_offramp_transfer.updated';

case BLOCKCHAIN_ONRAMP_TRANSFER_CREATED = 'blockchain_onramp_transfer.created';

case BLOCKCHAIN_ONRAMP_TRANSFER_UPDATED = 'blockchain_onramp_transfer.updated';

case BOOKKEEPING_ACCOUNT_CREATED = 'bookkeeping_account.created';

case BOOKKEEPING_ACCOUNT_UPDATED = 'bookkeeping_account.updated';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,18 @@ enum SelectedEventCategory: string

case ACH_TRANSFER_UPDATED = 'ach_transfer.updated';

case BLOCKCHAIN_ADDRESS_CREATED = 'blockchain_address.created';

case BLOCKCHAIN_ADDRESS_UPDATED = 'blockchain_address.updated';

case BLOCKCHAIN_OFFRAMP_TRANSFER_CREATED = 'blockchain_offramp_transfer.created';

case BLOCKCHAIN_OFFRAMP_TRANSFER_UPDATED = 'blockchain_offramp_transfer.updated';

case BLOCKCHAIN_ONRAMP_TRANSFER_CREATED = 'blockchain_onramp_transfer.created';

case BLOCKCHAIN_ONRAMP_TRANSFER_UPDATED = 'blockchain_onramp_transfer.updated';

case BOOKKEEPING_ACCOUNT_CREATED = 'bookkeeping_account.created';

case BOOKKEEPING_ACCOUNT_UPDATED = 'bookkeeping_account.updated';
Expand Down
12 changes: 12 additions & 0 deletions src/Events/Event/Category.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,18 @@ enum Category: string

case ACH_TRANSFER_UPDATED = 'ach_transfer.updated';

case BLOCKCHAIN_ADDRESS_CREATED = 'blockchain_address.created';

case BLOCKCHAIN_ADDRESS_UPDATED = 'blockchain_address.updated';

case BLOCKCHAIN_OFFRAMP_TRANSFER_CREATED = 'blockchain_offramp_transfer.created';

case BLOCKCHAIN_OFFRAMP_TRANSFER_UPDATED = 'blockchain_offramp_transfer.updated';

case BLOCKCHAIN_ONRAMP_TRANSFER_CREATED = 'blockchain_onramp_transfer.created';

case BLOCKCHAIN_ONRAMP_TRANSFER_UPDATED = 'blockchain_onramp_transfer.updated';

case BOOKKEEPING_ACCOUNT_CREATED = 'bookkeeping_account.created';

case BOOKKEEPING_ACCOUNT_UPDATED = 'bookkeeping_account.updated';
Expand Down
12 changes: 12 additions & 0 deletions src/Events/EventListParams/Category/In.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,18 @@ enum In: string

case ACH_TRANSFER_UPDATED = 'ach_transfer.updated';

case BLOCKCHAIN_ADDRESS_CREATED = 'blockchain_address.created';

case BLOCKCHAIN_ADDRESS_UPDATED = 'blockchain_address.updated';

case BLOCKCHAIN_OFFRAMP_TRANSFER_CREATED = 'blockchain_offramp_transfer.created';

case BLOCKCHAIN_OFFRAMP_TRANSFER_UPDATED = 'blockchain_offramp_transfer.updated';

case BLOCKCHAIN_ONRAMP_TRANSFER_CREATED = 'blockchain_onramp_transfer.created';

case BLOCKCHAIN_ONRAMP_TRANSFER_UPDATED = 'blockchain_onramp_transfer.updated';

case BOOKKEEPING_ACCOUNT_CREATED = 'bookkeeping_account.created';

case BOOKKEEPING_ACCOUNT_UPDATED = 'bookkeeping_account.updated';
Expand Down
12 changes: 12 additions & 0 deletions src/Events/UnwrapWebhookEvent/Category.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,18 @@ enum Category: string

case ACH_TRANSFER_UPDATED = 'ach_transfer.updated';

case BLOCKCHAIN_ADDRESS_CREATED = 'blockchain_address.created';

case BLOCKCHAIN_ADDRESS_UPDATED = 'blockchain_address.updated';

case BLOCKCHAIN_OFFRAMP_TRANSFER_CREATED = 'blockchain_offramp_transfer.created';

case BLOCKCHAIN_OFFRAMP_TRANSFER_UPDATED = 'blockchain_offramp_transfer.updated';

case BLOCKCHAIN_ONRAMP_TRANSFER_CREATED = 'blockchain_onramp_transfer.created';

case BLOCKCHAIN_ONRAMP_TRANSFER_UPDATED = 'blockchain_onramp_transfer.updated';

case BOOKKEEPING_ACCOUNT_CREATED = 'bookkeeping_account.created';

case BOOKKEEPING_ACCOUNT_UPDATED = 'bookkeeping_account.updated';
Expand Down
56 changes: 56 additions & 0 deletions src/PendingTransactions/PendingTransaction/Source.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
use Increase\Core\Contracts\BaseModel;
use Increase\PendingTransactions\PendingTransaction\Source\AccountTransferInstruction;
use Increase\PendingTransactions\PendingTransaction\Source\ACHTransferInstruction;
use Increase\PendingTransactions\PendingTransaction\Source\BlockchainOfframpTransferIntention;
use Increase\PendingTransactions\PendingTransaction\Source\BlockchainOnrampTransferInstruction;
use Increase\PendingTransactions\PendingTransaction\Source\CardAuthorization;
use Increase\PendingTransactions\PendingTransaction\Source\CardPushTransferInstruction;
use Increase\PendingTransactions\PendingTransaction\Source\Category;
Expand All @@ -27,6 +29,8 @@
*
* @phpstan-import-type AccountTransferInstructionShape from \Increase\PendingTransactions\PendingTransaction\Source\AccountTransferInstruction
* @phpstan-import-type ACHTransferInstructionShape from \Increase\PendingTransactions\PendingTransaction\Source\ACHTransferInstruction
* @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
* @phpstan-import-type CardPushTransferInstructionShape from \Increase\PendingTransactions\PendingTransaction\Source\CardPushTransferInstruction
* @phpstan-import-type CheckDepositInstructionShape from \Increase\PendingTransactions\PendingTransaction\Source\CheckDepositInstruction
Expand All @@ -42,6 +46,8 @@
* @phpstan-type SourceShape = array{
* accountTransferInstruction: null|AccountTransferInstruction|AccountTransferInstructionShape,
* achTransferInstruction: null|ACHTransferInstruction|ACHTransferInstructionShape,
* blockchainOfframpTransferIntention: null|BlockchainOfframpTransferIntention|BlockchainOfframpTransferIntentionShape,
* blockchainOnrampTransferInstruction: null|BlockchainOnrampTransferInstruction|BlockchainOnrampTransferInstructionShape,
* cardAuthorization: null|CardAuthorization|CardAuthorizationShape,
* cardPushTransferInstruction: null|CardPushTransferInstruction|CardPushTransferInstructionShape,
* category: Category|value-of<Category>,
Expand Down Expand Up @@ -74,6 +80,18 @@ final class Source implements BaseModel
#[Required('ach_transfer_instruction')]
public ?ACHTransferInstruction $achTransferInstruction;

/**
* 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`.
*/
#[Required('blockchain_offramp_transfer_intention')]
public ?BlockchainOfframpTransferIntention $blockchainOfframpTransferIntention;

/**
* A Blockchain On-Ramp Transfer Instruction object. This field will be present in the JSON response if and only if `category` is equal to `blockchain_onramp_transfer_instruction`.
*/
#[Required('blockchain_onramp_transfer_instruction')]
public ?BlockchainOnrampTransferInstruction $blockchainOnrampTransferInstruction;

/**
* A Card Authorization object. This field will be present in the JSON response if and only if `category` is equal to `card_authorization`. Card Authorizations are temporary holds placed on a customers funds with the intent to later clear a transaction.
*/
Expand Down Expand Up @@ -164,6 +182,8 @@ final class Source implements BaseModel
* Source::with(
* accountTransferInstruction: ...,
* achTransferInstruction: ...,
* blockchainOfframpTransferIntention: ...,
* blockchainOnrampTransferInstruction: ...,
* cardAuthorization: ...,
* cardPushTransferInstruction: ...,
* category: ...,
Expand All @@ -186,6 +206,8 @@ final class Source implements BaseModel
* (new Source)
* ->withAccountTransferInstruction(...)
* ->withACHTransferInstruction(...)
* ->withBlockchainOfframpTransferIntention(...)
* ->withBlockchainOnrampTransferInstruction(...)
* ->withCardAuthorization(...)
* ->withCardPushTransferInstruction(...)
* ->withCategory(...)
Expand Down Expand Up @@ -213,6 +235,8 @@ public function __construct()
*
* @param AccountTransferInstruction|AccountTransferInstructionShape|null $accountTransferInstruction
* @param ACHTransferInstruction|ACHTransferInstructionShape|null $achTransferInstruction
* @param BlockchainOfframpTransferIntention|BlockchainOfframpTransferIntentionShape|null $blockchainOfframpTransferIntention
* @param BlockchainOnrampTransferInstruction|BlockchainOnrampTransferInstructionShape|null $blockchainOnrampTransferInstruction
* @param CardAuthorization|CardAuthorizationShape|null $cardAuthorization
* @param CardPushTransferInstruction|CardPushTransferInstructionShape|null $cardPushTransferInstruction
* @param Category|value-of<Category> $category
Expand All @@ -230,6 +254,8 @@ public function __construct()
public static function with(
AccountTransferInstruction|array|null $accountTransferInstruction,
ACHTransferInstruction|array|null $achTransferInstruction,
BlockchainOfframpTransferIntention|array|null $blockchainOfframpTransferIntention,
BlockchainOnrampTransferInstruction|array|null $blockchainOnrampTransferInstruction,
CardAuthorization|array|null $cardAuthorization,
CardPushTransferInstruction|array|null $cardPushTransferInstruction,
Category|string $category,
Expand All @@ -248,6 +274,8 @@ public static function with(

$self['accountTransferInstruction'] = $accountTransferInstruction;
$self['achTransferInstruction'] = $achTransferInstruction;
$self['blockchainOfframpTransferIntention'] = $blockchainOfframpTransferIntention;
$self['blockchainOnrampTransferInstruction'] = $blockchainOnrampTransferInstruction;
$self['cardAuthorization'] = $cardAuthorization;
$self['cardPushTransferInstruction'] = $cardPushTransferInstruction;
$self['category'] = $category;
Expand Down Expand Up @@ -293,6 +321,34 @@ public function withACHTransferInstruction(
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`.
*
* @param BlockchainOfframpTransferIntention|BlockchainOfframpTransferIntentionShape|null $blockchainOfframpTransferIntention
*/
public function withBlockchainOfframpTransferIntention(
BlockchainOfframpTransferIntention|array|null $blockchainOfframpTransferIntention,
): self {
$self = clone $this;
$self['blockchainOfframpTransferIntention'] = $blockchainOfframpTransferIntention;

return $self;
}

/**
* A Blockchain On-Ramp Transfer Instruction object. This field will be present in the JSON response if and only if `category` is equal to `blockchain_onramp_transfer_instruction`.
*
* @param BlockchainOnrampTransferInstruction|BlockchainOnrampTransferInstructionShape|null $blockchainOnrampTransferInstruction
*/
public function withBlockchainOnrampTransferInstruction(
BlockchainOnrampTransferInstruction|array|null $blockchainOnrampTransferInstruction,
): self {
$self = clone $this;
$self['blockchainOnrampTransferInstruction'] = $blockchainOnrampTransferInstruction;

return $self;
}

/**
* A Card Authorization object. This field will be present in the JSON response if and only if `category` is equal to `card_authorization`. Card Authorizations are temporary holds placed on a customers funds with the intent to later clear a transaction.
*
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 Intention object. This field will be present in the JSON response if and only if `category` is equal to `blockchain_offramp_transfer_intention`.
*
* @phpstan-type BlockchainOfframpTransferIntentionShape = array{
* sourceBlockchainAddressID: string, transferID: string
* }
*/
final class BlockchainOfframpTransferIntention implements BaseModel
{
/** @use SdkModel<BlockchainOfframpTransferIntentionShape> */
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 BlockchainOfframpTransferIntention()` is missing required properties by the API.
*
* To enforce required parameters use
* ```
* BlockchainOfframpTransferIntention::with(
* sourceBlockchainAddressID: ..., transferID: ...
* )
* ```
*
* Otherwise ensure the following setters are called
*
* ```
* (new BlockchainOfframpTransferIntention)
* ->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;
}
}
Loading