From ec4c676825f25e62ad966dd53ae92807252817ae Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 2 Feb 2026 23:52:11 +0000 Subject: [PATCH 1/2] feat(api): api update --- .stats.yml | 4 +- .../SelectedEventCategory.php | 12 ++ .../SelectedEventCategory.php | 12 ++ src/Events/Event/Category.php | 12 ++ src/Events/EventListParams/Category/In.php | 12 ++ src/Events/UnwrapWebhookEvent/Category.php | 12 ++ .../PendingTransaction/Source.php | 56 +++++++++ .../BlockchainOfframpTransferIntention.php | 97 +++++++++++++++ .../BlockchainOnrampTransferInstruction.php | 117 ++++++++++++++++++ .../PendingTransaction/Source/Category.php | 4 + .../Category/In.php | 4 + src/Transactions/Transaction/Source.php | 56 +++++++++ .../BlockchainOfframpTransferSettlement.php | 97 +++++++++++++++ .../BlockchainOnrampTransferIntention.php | 97 +++++++++++++++ .../Transaction/Source/Category.php | 4 + .../TransactionListParams/Category/In.php | 4 + 16 files changed, 598 insertions(+), 2 deletions(-) create mode 100644 src/PendingTransactions/PendingTransaction/Source/BlockchainOfframpTransferIntention.php create mode 100644 src/PendingTransactions/PendingTransaction/Source/BlockchainOnrampTransferInstruction.php create mode 100644 src/Transactions/Transaction/Source/BlockchainOfframpTransferSettlement.php create mode 100644 src/Transactions/Transaction/Source/BlockchainOnrampTransferIntention.php diff --git a/.stats.yml b/.stats.yml index 3faa674..9898e88 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-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 diff --git a/src/EventSubscriptions/EventSubscription/SelectedEventCategory.php b/src/EventSubscriptions/EventSubscription/SelectedEventCategory.php index b40fcec..0afb758 100644 --- a/src/EventSubscriptions/EventSubscription/SelectedEventCategory.php +++ b/src/EventSubscriptions/EventSubscription/SelectedEventCategory.php @@ -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'; diff --git a/src/EventSubscriptions/EventSubscriptionCreateParams/SelectedEventCategory.php b/src/EventSubscriptions/EventSubscriptionCreateParams/SelectedEventCategory.php index 8b3d7cc..68eb8d3 100644 --- a/src/EventSubscriptions/EventSubscriptionCreateParams/SelectedEventCategory.php +++ b/src/EventSubscriptions/EventSubscriptionCreateParams/SelectedEventCategory.php @@ -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'; diff --git a/src/Events/Event/Category.php b/src/Events/Event/Category.php index 6d4f072..957026a 100644 --- a/src/Events/Event/Category.php +++ b/src/Events/Event/Category.php @@ -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'; diff --git a/src/Events/EventListParams/Category/In.php b/src/Events/EventListParams/Category/In.php index a659573..76efce3 100644 --- a/src/Events/EventListParams/Category/In.php +++ b/src/Events/EventListParams/Category/In.php @@ -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'; diff --git a/src/Events/UnwrapWebhookEvent/Category.php b/src/Events/UnwrapWebhookEvent/Category.php index b3346ac..1638a4e 100644 --- a/src/Events/UnwrapWebhookEvent/Category.php +++ b/src/Events/UnwrapWebhookEvent/Category.php @@ -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'; diff --git a/src/PendingTransactions/PendingTransaction/Source.php b/src/PendingTransactions/PendingTransaction/Source.php index 3c5ecd1..8db32bf 100644 --- a/src/PendingTransactions/PendingTransaction/Source.php +++ b/src/PendingTransactions/PendingTransaction/Source.php @@ -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; @@ -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 @@ -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, @@ -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. */ @@ -164,6 +182,8 @@ final class Source implements BaseModel * Source::with( * accountTransferInstruction: ..., * achTransferInstruction: ..., + * blockchainOfframpTransferIntention: ..., + * blockchainOnrampTransferInstruction: ..., * cardAuthorization: ..., * cardPushTransferInstruction: ..., * category: ..., @@ -186,6 +206,8 @@ final class Source implements BaseModel * (new Source) * ->withAccountTransferInstruction(...) * ->withACHTransferInstruction(...) + * ->withBlockchainOfframpTransferIntention(...) + * ->withBlockchainOnrampTransferInstruction(...) * ->withCardAuthorization(...) * ->withCardPushTransferInstruction(...) * ->withCategory(...) @@ -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 @@ -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, @@ -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; @@ -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. * diff --git a/src/PendingTransactions/PendingTransaction/Source/BlockchainOfframpTransferIntention.php b/src/PendingTransactions/PendingTransaction/Source/BlockchainOfframpTransferIntention.php new file mode 100644 index 0000000..cdae76e --- /dev/null +++ b/src/PendingTransactions/PendingTransaction/Source/BlockchainOfframpTransferIntention.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 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; + } +} diff --git a/src/PendingTransactions/PendingTransaction/Source/BlockchainOnrampTransferInstruction.php b/src/PendingTransactions/PendingTransaction/Source/BlockchainOnrampTransferInstruction.php new file mode 100644 index 0000000..49c0163 --- /dev/null +++ b/src/PendingTransactions/PendingTransaction/Source/BlockchainOnrampTransferInstruction.php @@ -0,0 +1,117 @@ + */ + use SdkModel; + + /** + * The transfer amount in USD cents. + */ + #[Required] + public int $amount; + + /** + * The blockchain address the funds are being sent to. + */ + #[Required('destination_blockchain_address')] + public string $destinationBlockchainAddress; + + /** + * The identifier of the Blockchain On-Ramp Transfer that led to this Pending Transaction. + */ + #[Required('transfer_id')] + public string $transferID; + + /** + * `new BlockchainOnrampTransferInstruction()` is missing required properties by the API. + * + * To enforce required parameters use + * ``` + * BlockchainOnrampTransferInstruction::with( + * amount: ..., destinationBlockchainAddress: ..., transferID: ... + * ) + * ``` + * + * Otherwise ensure the following setters are called + * + * ``` + * (new BlockchainOnrampTransferInstruction) + * ->withAmount(...) + * ->withDestinationBlockchainAddress(...) + * ->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( + int $amount, + string $destinationBlockchainAddress, + string $transferID + ): self { + $self = new self; + + $self['amount'] = $amount; + $self['destinationBlockchainAddress'] = $destinationBlockchainAddress; + $self['transferID'] = $transferID; + + return $self; + } + + /** + * The transfer amount in USD cents. + */ + public function withAmount(int $amount): self + { + $self = clone $this; + $self['amount'] = $amount; + + return $self; + } + + /** + * The blockchain address the funds are being sent to. + */ + public function withDestinationBlockchainAddress( + string $destinationBlockchainAddress + ): self { + $self = clone $this; + $self['destinationBlockchainAddress'] = $destinationBlockchainAddress; + + return $self; + } + + /** + * The identifier of the Blockchain On-Ramp Transfer that led to this Pending 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 543e886..83de793 100644 --- a/src/PendingTransactions/PendingTransaction/Source/Category.php +++ b/src/PendingTransactions/PendingTransaction/Source/Category.php @@ -35,5 +35,9 @@ enum Category: string case CARD_PUSH_TRANSFER_INSTRUCTION = 'card_push_transfer_instruction'; + case BLOCKCHAIN_ONRAMP_TRANSFER_INSTRUCTION = 'blockchain_onramp_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 23c97b4..0902432 100644 --- a/src/PendingTransactions/PendingTransactionListParams/Category/In.php +++ b/src/PendingTransactions/PendingTransactionListParams/Category/In.php @@ -32,5 +32,9 @@ enum In: string case CARD_PUSH_TRANSFER_INSTRUCTION = 'card_push_transfer_instruction'; + case BLOCKCHAIN_ONRAMP_TRANSFER_INSTRUCTION = 'blockchain_onramp_transfer_instruction'; + + case BLOCKCHAIN_OFFRAMP_TRANSFER_INTENTION = 'blockchain_offramp_transfer_intention'; + case OTHER = 'other'; } diff --git a/src/Transactions/Transaction/Source.php b/src/Transactions/Transaction/Source.php index 84b832d..f5b6ab6 100644 --- a/src/Transactions/Transaction/Source.php +++ b/src/Transactions/Transaction/Source.php @@ -12,6 +12,8 @@ use Increase\Transactions\Transaction\Source\ACHTransferIntention; use Increase\Transactions\Transaction\Source\ACHTransferRejection; use Increase\Transactions\Transaction\Source\ACHTransferReturn; +use Increase\Transactions\Transaction\Source\BlockchainOfframpTransferSettlement; +use Increase\Transactions\Transaction\Source\BlockchainOnrampTransferIntention; use Increase\Transactions\Transaction\Source\CardDisputeAcceptance; use Increase\Transactions\Transaction\Source\CardDisputeFinancial; use Increase\Transactions\Transaction\Source\CardDisputeLoss; @@ -53,6 +55,8 @@ * @phpstan-import-type ACHTransferIntentionShape from \Increase\Transactions\Transaction\Source\ACHTransferIntention * @phpstan-import-type ACHTransferRejectionShape from \Increase\Transactions\Transaction\Source\ACHTransferRejection * @phpstan-import-type ACHTransferReturnShape from \Increase\Transactions\Transaction\Source\ACHTransferReturn + * @phpstan-import-type BlockchainOfframpTransferSettlementShape from \Increase\Transactions\Transaction\Source\BlockchainOfframpTransferSettlement + * @phpstan-import-type BlockchainOnrampTransferIntentionShape from \Increase\Transactions\Transaction\Source\BlockchainOnrampTransferIntention * @phpstan-import-type CardDisputeAcceptanceShape from \Increase\Transactions\Transaction\Source\CardDisputeAcceptance * @phpstan-import-type CardDisputeFinancialShape from \Increase\Transactions\Transaction\Source\CardDisputeFinancial * @phpstan-import-type CardDisputeLossShape from \Increase\Transactions\Transaction\Source\CardDisputeLoss @@ -91,6 +95,8 @@ * achTransferIntention: null|ACHTransferIntention|ACHTransferIntentionShape, * achTransferRejection: null|ACHTransferRejection|ACHTransferRejectionShape, * achTransferReturn: null|ACHTransferReturn|ACHTransferReturnShape, + * blockchainOfframpTransferSettlement: null|BlockchainOfframpTransferSettlement|BlockchainOfframpTransferSettlementShape, + * blockchainOnrampTransferIntention: null|BlockchainOnrampTransferIntention|BlockchainOnrampTransferIntentionShape, * cardDisputeAcceptance: null|CardDisputeAcceptance|CardDisputeAcceptanceShape, * cardDisputeFinancial: null|CardDisputeFinancial|CardDisputeFinancialShape, * cardDisputeLoss: null|CardDisputeLoss|CardDisputeLossShape, @@ -160,6 +166,18 @@ final class Source implements BaseModel #[Required('ach_transfer_return')] public ?ACHTransferReturn $achTransferReturn; + /** + * A Blockchain Off-Ramp Transfer Settlement object. This field will be present in the JSON response if and only if `category` is equal to `blockchain_offramp_transfer_settlement`. + */ + #[Required('blockchain_offramp_transfer_settlement')] + public ?BlockchainOfframpTransferSettlement $blockchainOfframpTransferSettlement; + + /** + * A Blockchain On-Ramp Transfer Intention object. This field will be present in the JSON response if and only if `category` is equal to `blockchain_onramp_transfer_intention`. + */ + #[Required('blockchain_onramp_transfer_intention')] + public ?BlockchainOnrampTransferIntention $blockchainOnrampTransferIntention; + /** * A Legacy Card Dispute Acceptance object. This field will be present in the JSON response if and only if `category` is equal to `card_dispute_acceptance`. Contains the details of a successful Card Dispute. */ @@ -365,6 +383,8 @@ final class Source implements BaseModel * achTransferIntention: ..., * achTransferRejection: ..., * achTransferReturn: ..., + * blockchainOfframpTransferSettlement: ..., + * blockchainOnrampTransferIntention: ..., * cardDisputeAcceptance: ..., * cardDisputeFinancial: ..., * cardDisputeLoss: ..., @@ -409,6 +429,8 @@ final class Source implements BaseModel * ->withACHTransferIntention(...) * ->withACHTransferRejection(...) * ->withACHTransferReturn(...) + * ->withBlockchainOfframpTransferSettlement(...) + * ->withBlockchainOnrampTransferIntention(...) * ->withCardDisputeAcceptance(...) * ->withCardDisputeFinancial(...) * ->withCardDisputeLoss(...) @@ -458,6 +480,8 @@ public function __construct() * @param ACHTransferIntention|ACHTransferIntentionShape|null $achTransferIntention * @param ACHTransferRejection|ACHTransferRejectionShape|null $achTransferRejection * @param ACHTransferReturn|ACHTransferReturnShape|null $achTransferReturn + * @param BlockchainOfframpTransferSettlement|BlockchainOfframpTransferSettlementShape|null $blockchainOfframpTransferSettlement + * @param BlockchainOnrampTransferIntention|BlockchainOnrampTransferIntentionShape|null $blockchainOnrampTransferIntention * @param CardDisputeAcceptance|CardDisputeAcceptanceShape|null $cardDisputeAcceptance * @param CardDisputeFinancial|CardDisputeFinancialShape|null $cardDisputeFinancial * @param CardDisputeLoss|CardDisputeLossShape|null $cardDisputeLoss @@ -497,6 +521,8 @@ public static function with( ACHTransferIntention|array|null $achTransferIntention, ACHTransferRejection|array|null $achTransferRejection, ACHTransferReturn|array|null $achTransferReturn, + BlockchainOfframpTransferSettlement|array|null $blockchainOfframpTransferSettlement, + BlockchainOnrampTransferIntention|array|null $blockchainOnrampTransferIntention, CardDisputeAcceptance|array|null $cardDisputeAcceptance, CardDisputeFinancial|array|null $cardDisputeFinancial, CardDisputeLoss|array|null $cardDisputeLoss, @@ -537,6 +563,8 @@ public static function with( $self['achTransferIntention'] = $achTransferIntention; $self['achTransferRejection'] = $achTransferRejection; $self['achTransferReturn'] = $achTransferReturn; + $self['blockchainOfframpTransferSettlement'] = $blockchainOfframpTransferSettlement; + $self['blockchainOnrampTransferIntention'] = $blockchainOnrampTransferIntention; $self['cardDisputeAcceptance'] = $cardDisputeAcceptance; $self['cardDisputeFinancial'] = $cardDisputeFinancial; $self['cardDisputeLoss'] = $cardDisputeLoss; @@ -643,6 +671,34 @@ public function withACHTransferReturn( return $self; } + /** + * A Blockchain Off-Ramp Transfer Settlement object. This field will be present in the JSON response if and only if `category` is equal to `blockchain_offramp_transfer_settlement`. + * + * @param BlockchainOfframpTransferSettlement|BlockchainOfframpTransferSettlementShape|null $blockchainOfframpTransferSettlement + */ + public function withBlockchainOfframpTransferSettlement( + BlockchainOfframpTransferSettlement|array|null $blockchainOfframpTransferSettlement, + ): self { + $self = clone $this; + $self['blockchainOfframpTransferSettlement'] = $blockchainOfframpTransferSettlement; + + return $self; + } + + /** + * A Blockchain On-Ramp Transfer Intention object. This field will be present in the JSON response if and only if `category` is equal to `blockchain_onramp_transfer_intention`. + * + * @param BlockchainOnrampTransferIntention|BlockchainOnrampTransferIntentionShape|null $blockchainOnrampTransferIntention + */ + public function withBlockchainOnrampTransferIntention( + BlockchainOnrampTransferIntention|array|null $blockchainOnrampTransferIntention, + ): self { + $self = clone $this; + $self['blockchainOnrampTransferIntention'] = $blockchainOnrampTransferIntention; + + return $self; + } + /** * A Legacy Card Dispute Acceptance object. This field will be present in the JSON response if and only if `category` is equal to `card_dispute_acceptance`. Contains the details of a successful Card Dispute. * diff --git a/src/Transactions/Transaction/Source/BlockchainOfframpTransferSettlement.php b/src/Transactions/Transaction/Source/BlockchainOfframpTransferSettlement.php new file mode 100644 index 0000000..cea4c53 --- /dev/null +++ b/src/Transactions/Transaction/Source/BlockchainOfframpTransferSettlement.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 BlockchainOfframpTransferSettlement()` is missing required properties by the API. + * + * To enforce required parameters use + * ``` + * BlockchainOfframpTransferSettlement::with( + * sourceBlockchainAddressID: ..., transferID: ... + * ) + * ``` + * + * Otherwise ensure the following setters are called + * + * ``` + * (new BlockchainOfframpTransferSettlement) + * ->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/Transactions/Transaction/Source/BlockchainOnrampTransferIntention.php b/src/Transactions/Transaction/Source/BlockchainOnrampTransferIntention.php new file mode 100644 index 0000000..9d8d9c2 --- /dev/null +++ b/src/Transactions/Transaction/Source/BlockchainOnrampTransferIntention.php @@ -0,0 +1,97 @@ + */ + use SdkModel; + + /** + * The blockchain address the funds were sent to. + */ + #[Required('destination_blockchain_address')] + public string $destinationBlockchainAddress; + + /** + * The identifier of the Blockchain On-Ramp Transfer that led to this Transaction. + */ + #[Required('transfer_id')] + public string $transferID; + + /** + * `new BlockchainOnrampTransferIntention()` is missing required properties by the API. + * + * To enforce required parameters use + * ``` + * BlockchainOnrampTransferIntention::with( + * destinationBlockchainAddress: ..., transferID: ... + * ) + * ``` + * + * Otherwise ensure the following setters are called + * + * ``` + * (new BlockchainOnrampTransferIntention) + * ->withDestinationBlockchainAddress(...) + * ->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 $destinationBlockchainAddress, + string $transferID + ): self { + $self = new self; + + $self['destinationBlockchainAddress'] = $destinationBlockchainAddress; + $self['transferID'] = $transferID; + + return $self; + } + + /** + * The blockchain address the funds were sent to. + */ + public function withDestinationBlockchainAddress( + string $destinationBlockchainAddress + ): self { + $self = clone $this; + $self['destinationBlockchainAddress'] = $destinationBlockchainAddress; + + return $self; + } + + /** + * The identifier of the Blockchain On-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/Transactions/Transaction/Source/Category.php b/src/Transactions/Transaction/Source/Category.php index 259c778..7a51de8 100644 --- a/src/Transactions/Transaction/Source/Category.php +++ b/src/Transactions/Transaction/Source/Category.php @@ -79,5 +79,9 @@ enum Category: string case ACCOUNT_REVENUE_PAYMENT = 'account_revenue_payment'; + case BLOCKCHAIN_ONRAMP_TRANSFER_INTENTION = 'blockchain_onramp_transfer_intention'; + + case BLOCKCHAIN_OFFRAMP_TRANSFER_SETTLEMENT = 'blockchain_offramp_transfer_settlement'; + case OTHER = 'other'; } diff --git a/src/Transactions/TransactionListParams/Category/In.php b/src/Transactions/TransactionListParams/Category/In.php index 7e3ffec..543b570 100644 --- a/src/Transactions/TransactionListParams/Category/In.php +++ b/src/Transactions/TransactionListParams/Category/In.php @@ -76,5 +76,9 @@ enum In: string case ACCOUNT_REVENUE_PAYMENT = 'account_revenue_payment'; + case BLOCKCHAIN_ONRAMP_TRANSFER_INTENTION = 'blockchain_onramp_transfer_intention'; + + case BLOCKCHAIN_OFFRAMP_TRANSFER_SETTLEMENT = 'blockchain_offramp_transfer_settlement'; + case OTHER = 'other'; } From eed80c33f11bf70254b233a56cc99ba6535a0ec3 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 2 Feb 2026 23:52:27 +0000 Subject: [PATCH 2/2] release: 0.18.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 6db19b9..4ad3fef 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.17.0" + ".": "0.18.0" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 654be4c..9f21d57 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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) diff --git a/README.md b/README.md index ea69f2b..4b4340c 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.17.0" +composer require "increase/increase 0.18.0" ``` diff --git a/src/Version.php b/src/Version.php index 6ed2c2e..748c1b5 100644 --- a/src/Version.php +++ b/src/Version.php @@ -5,5 +5,5 @@ namespace Increase; // x-release-please-start-version -const VERSION = '0.17.0'; +const VERSION = '0.18.0'; // x-release-please-end