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.121.1"
".": "0.122.0"
}
8 changes: 4 additions & 4 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-0482ee5f9cf2cd09691221500b562dab1092df43e774e92b714ccebebf618b1b.yml
openapi_spec_hash: 3f1b98e772d86cca81fa3186198a6937
config_hash: b24ba63471a818520cec39b4695e1825
configured_endpoints: 236
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-47752267c48d299a01c906499bb7d584228ea8801b7d83e34ae4100d5dec3434.yml
openapi_spec_hash: 9ea8bc6dc383de626d3fa15c823227ae
config_hash: 026e2baa580c7f5f2447c24332081ba8
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# Changelog

## 0.122.0 (2026-04-27)

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

### Features

* **api:** api update ([90d6652](https://github.com/Increase/increase-php/commit/90d6652796b26be20e85f93ba7c915b6fe930924))
* **api:** api update ([6aa9680](https://github.com/Increase/increase-php/commit/6aa96806acae29f8f3bb558c89bcdcb6fe268efa))

## 0.121.1 (2026-04-25)

Full Changelog: [v0.121.0...v0.121.1](https://github.com/Increase/increase-php/compare/v0.121.0...v0.121.1)
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.121.1"
composer require "increase/increase 0.122.0"
```

<!-- x-release-please-end -->
Expand Down
2 changes: 2 additions & 0 deletions src/CardPushTransfers/CardPushTransfer/Route.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,6 @@ enum Route: string
case VISA = 'visa';

case MASTERCARD = 'mastercard';

case PULSE = 'pulse';
}
2 changes: 2 additions & 0 deletions src/CardTokens/CardTokenCapabilities/Route1/Route.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,6 @@ enum Route: string
case VISA = 'visa';

case MASTERCARD = 'mastercard';

case PULSE = 'pulse';
}
2 changes: 2 additions & 0 deletions src/CardValidations/CardValidation/Route.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,6 @@ enum Route: string
case VISA = 'visa';

case MASTERCARD = 'mastercard';

case PULSE = 'pulse';
}
22 changes: 11 additions & 11 deletions src/CheckDeposits/CheckDeposit.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
* idempotencyKey: string|null,
* inboundFundsHold: null|InboundFundsHold|InboundFundsHoldShape,
* inboundMailItemID: string|null,
* lockboxID: string|null,
* lockboxRecipientID: string|null,
* status: Status|value-of<Status>,
* transactionID: string|null,
* type: Type|value-of<Type>,
Expand Down Expand Up @@ -146,10 +146,10 @@ final class CheckDeposit implements BaseModel
public ?string $inboundMailItemID;

/**
* If the Check Deposit was the result of an Inbound Mail Item, this will contain the identifier of the Lockbox that received it.
* If the Check Deposit was the result of an Inbound Mail Item routed to a Lockbox Recipient, this will contain the identifier of the Lockbox Recipient that received it.
*/
#[Required('lockbox_id')]
public ?string $lockboxID;
#[Required('lockbox_recipient_id')]
public ?string $lockboxRecipientID;

/**
* The status of the Check Deposit.
Expand Down Expand Up @@ -194,7 +194,7 @@ final class CheckDeposit implements BaseModel
* idempotencyKey: ...,
* inboundFundsHold: ...,
* inboundMailItemID: ...,
* lockboxID: ...,
* lockboxRecipientID: ...,
* status: ...,
* transactionID: ...,
* type: ...,
Expand All @@ -220,7 +220,7 @@ final class CheckDeposit implements BaseModel
* ->withIdempotencyKey(...)
* ->withInboundFundsHold(...)
* ->withInboundMailItemID(...)
* ->withLockboxID(...)
* ->withLockboxRecipientID(...)
* ->withStatus(...)
* ->withTransactionID(...)
* ->withType(...)
Expand Down Expand Up @@ -261,7 +261,7 @@ public static function with(
?string $idempotencyKey,
InboundFundsHold|array|null $inboundFundsHold,
?string $inboundMailItemID,
?string $lockboxID,
?string $lockboxRecipientID,
Status|string $status,
?string $transactionID,
Type|string $type,
Expand All @@ -283,7 +283,7 @@ public static function with(
$self['idempotencyKey'] = $idempotencyKey;
$self['inboundFundsHold'] = $inboundFundsHold;
$self['inboundMailItemID'] = $inboundMailItemID;
$self['lockboxID'] = $lockboxID;
$self['lockboxRecipientID'] = $lockboxRecipientID;
$self['status'] = $status;
$self['transactionID'] = $transactionID;
$self['type'] = $type;
Expand Down Expand Up @@ -474,12 +474,12 @@ public function withInboundMailItemID(?string $inboundMailItemID): self
}

/**
* If the Check Deposit was the result of an Inbound Mail Item, this will contain the identifier of the Lockbox that received it.
* If the Check Deposit was the result of an Inbound Mail Item routed to a Lockbox Recipient, this will contain the identifier of the Lockbox Recipient that received it.
*/
public function withLockboxID(?string $lockboxID): self
public function withLockboxRecipientID(?string $lockboxRecipientID): self
{
$self = clone $this;
$self['lockboxID'] = $lockboxID;
$self['lockboxRecipientID'] = $lockboxRecipientID;

return $self;
}
Expand Down
13 changes: 10 additions & 3 deletions src/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@
use Increase\Services\IntrafiAccountEnrollmentsService;
use Increase\Services\IntrafiBalancesService;
use Increase\Services\IntrafiExclusionsService;
use Increase\Services\LockboxesService;
use Increase\Services\LockboxAddressesService;
use Increase\Services\LockboxRecipientsService;
use Increase\Services\OAuthApplicationsService;
use Increase\Services\OAuthConnectionsService;
use Increase\Services\OAuthTokensService;
Expand Down Expand Up @@ -223,7 +224,12 @@ class Client extends BaseClient
/**
* @api
*/
public LockboxesService $lockboxes;
public LockboxAddressesService $lockboxAddresses;

/**
* @api
*/
public LockboxRecipientsService $lockboxRecipients;

/**
* @api
Expand Down Expand Up @@ -429,7 +435,8 @@ public function __construct(
$this->inboundFednowTransfers = new InboundFednowTransfersService($this);
$this->swiftTransfers = new SwiftTransfersService($this);
$this->checkDeposits = new CheckDepositsService($this);
$this->lockboxes = new LockboxesService($this);
$this->lockboxAddresses = new LockboxAddressesService($this);
$this->lockboxRecipients = new LockboxRecipientsService($this);
$this->inboundMailItems = new InboundMailItemsService($this);
$this->routingNumbers = new RoutingNumbersService($this);
$this->externalAccounts = new ExternalAccountsService($this);
Expand Down
46 changes: 34 additions & 12 deletions src/InboundMailItems/InboundMailItem.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
use Increase\InboundMailItems\InboundMailItem\Type;

/**
* Inbound Mail Items represent pieces of physical mail delivered to a Lockbox.
* Inbound Mail Items represent pieces of physical mail delivered to a Lockbox Address.
*
* @phpstan-import-type CheckShape from \Increase\InboundMailItems\InboundMailItem\Check
*
Expand All @@ -22,7 +22,8 @@
* checks: list<Check|CheckShape>,
* createdAt: \DateTimeInterface,
* fileID: string,
* lockboxID: string|null,
* lockboxAddressID: string|null,
* lockboxRecipientID: string|null,
* recipientName: string|null,
* rejectionReason: null|RejectionReason|value-of<RejectionReason>,
* status: Status|value-of<Status>,
Expand Down Expand Up @@ -61,10 +62,16 @@ final class InboundMailItem implements BaseModel
public string $fileID;

/**
* The identifier for the Lockbox that received this mail item. For mail items that could not be processed due to an invalid address, this will be null.
* The identifier for the Lockbox Address that received this mail item.
*/
#[Required('lockbox_id')]
public ?string $lockboxID;
#[Required('lockbox_address_id')]
public ?string $lockboxAddressID;

/**
* The identifier for the Lockbox Recipient that received this mail item. For mail items that could not be routed to a Lockbox Recipient, this will be null.
*/
#[Required('lockbox_recipient_id')]
public ?string $lockboxRecipientID;

/**
* The recipient name as written on the mail item.
Expand Down Expand Up @@ -106,7 +113,8 @@ final class InboundMailItem implements BaseModel
* checks: ...,
* createdAt: ...,
* fileID: ...,
* lockboxID: ...,
* lockboxAddressID: ...,
* lockboxRecipientID: ...,
* recipientName: ...,
* rejectionReason: ...,
* status: ...,
Expand All @@ -122,7 +130,8 @@ final class InboundMailItem implements BaseModel
* ->withChecks(...)
* ->withCreatedAt(...)
* ->withFileID(...)
* ->withLockboxID(...)
* ->withLockboxAddressID(...)
* ->withLockboxRecipientID(...)
* ->withRecipientName(...)
* ->withRejectionReason(...)
* ->withStatus(...)
Expand All @@ -149,7 +158,8 @@ public static function with(
array $checks,
\DateTimeInterface $createdAt,
string $fileID,
?string $lockboxID,
?string $lockboxAddressID,
?string $lockboxRecipientID,
?string $recipientName,
RejectionReason|string|null $rejectionReason,
Status|string $status,
Expand All @@ -161,7 +171,8 @@ public static function with(
$self['checks'] = $checks;
$self['createdAt'] = $createdAt;
$self['fileID'] = $fileID;
$self['lockboxID'] = $lockboxID;
$self['lockboxAddressID'] = $lockboxAddressID;
$self['lockboxRecipientID'] = $lockboxRecipientID;
$self['recipientName'] = $recipientName;
$self['rejectionReason'] = $rejectionReason;
$self['status'] = $status;
Expand Down Expand Up @@ -217,12 +228,23 @@ public function withFileID(string $fileID): self
}

/**
* The identifier for the Lockbox that received this mail item. For mail items that could not be processed due to an invalid address, this will be null.
* The identifier for the Lockbox Address that received this mail item.
*/
public function withLockboxAddressID(?string $lockboxAddressID): self
{
$self = clone $this;
$self['lockboxAddressID'] = $lockboxAddressID;

return $self;
}

/**
* The identifier for the Lockbox Recipient that received this mail item. For mail items that could not be routed to a Lockbox Recipient, this will be null.
*/
public function withLockboxID(?string $lockboxID): self
public function withLockboxRecipientID(?string $lockboxRecipientID): self
{
$self = clone $this;
$self['lockboxID'] = $lockboxID;
$self['lockboxRecipientID'] = $lockboxRecipientID;

return $self;
}
Expand Down
4 changes: 4 additions & 0 deletions src/InboundMailItems/InboundMailItem/RejectionReason.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,8 @@ enum RejectionReason: string
case NO_CHECK = 'no_check';

case LOCKBOX_NOT_ACTIVE = 'lockbox_not_active';

case LOCKBOX_ADDRESS_NOT_ACTIVE = 'lockbox_address_not_active';

case LOCKBOX_RECIPIENT_NOT_ACTIVE = 'lockbox_recipient_not_active';
}
36 changes: 28 additions & 8 deletions src/InboundMailItems/InboundMailItemListParams.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
* createdAt?: null|CreatedAt|CreatedAtShape,
* cursor?: string|null,
* limit?: int|null,
* lockboxID?: string|null,
* lockboxAddressID?: string|null,
* lockboxRecipientID?: string|null,
* }
*/
final class InboundMailItemListParams implements BaseModel
Expand All @@ -46,10 +47,16 @@ final class InboundMailItemListParams implements BaseModel
public ?int $limit;

/**
* Filter Inbound Mail Items to ones sent to the provided Lockbox.
* Filter Inbound Mail Items to ones sent to the provided Lockbox Address.
*/
#[Optional]
public ?string $lockboxID;
public ?string $lockboxAddressID;

/**
* Filter Inbound Mail Items to ones sent to the provided Lockbox Recipient.
*/
#[Optional]
public ?string $lockboxRecipientID;

public function __construct()
{
Expand All @@ -67,14 +74,16 @@ public static function with(
CreatedAt|array|null $createdAt = null,
?string $cursor = null,
?int $limit = null,
?string $lockboxID = null,
?string $lockboxAddressID = null,
?string $lockboxRecipientID = null,
): self {
$self = new self;

null !== $createdAt && $self['createdAt'] = $createdAt;
null !== $cursor && $self['cursor'] = $cursor;
null !== $limit && $self['limit'] = $limit;
null !== $lockboxID && $self['lockboxID'] = $lockboxID;
null !== $lockboxAddressID && $self['lockboxAddressID'] = $lockboxAddressID;
null !== $lockboxRecipientID && $self['lockboxRecipientID'] = $lockboxRecipientID;

return $self;
}
Expand Down Expand Up @@ -113,12 +122,23 @@ public function withLimit(int $limit): self
}

/**
* Filter Inbound Mail Items to ones sent to the provided Lockbox.
* Filter Inbound Mail Items to ones sent to the provided Lockbox Address.
*/
public function withLockboxAddressID(string $lockboxAddressID): self
{
$self = clone $this;
$self['lockboxAddressID'] = $lockboxAddressID;

return $self;
}

/**
* Filter Inbound Mail Items to ones sent to the provided Lockbox Recipient.
*/
public function withLockboxID(string $lockboxID): self
public function withLockboxRecipientID(string $lockboxRecipientID): self
{
$self = clone $this;
$self['lockboxID'] = $lockboxID;
$self['lockboxRecipientID'] = $lockboxRecipientID;

return $self;
}
Expand Down
Loading