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.52.0"
".": "0.53.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-2277bacfbbf3570574b1c8abe74936d197944101f1e66238be7baf8e3303e52d.yml
openapi_spec_hash: f9004c6a75fbf5b4984080b8f8dd184c
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-910400a5c3fcab85b95bf574472b6356767c24d4f76eb296bcba4b7db309710c.yml
openapi_spec_hash: c8b1cebba3d13a5c050c1296b93e2bdb
config_hash: d15ecbf4dc8a7a0ef99397d11b557444
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## 0.53.0 (2026-03-05)

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

### Features

* **api:** api update ([576e94f](https://github.com/Increase/increase-php/commit/576e94ff6ff5e323ebde2472ae6dd94185bafb55))

## 0.52.0 (2026-03-05)

Full Changelog: [v0.51.0...v0.52.0](https://github.com/Increase/increase-php/compare/v0.51.0...v0.52.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.52.0"
composer require "increase/increase 0.53.0"
```

<!-- x-release-please-end -->
Expand Down
4 changes: 4 additions & 0 deletions src/ServiceContracts/WireTransfersContract.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,14 @@
use Increase\WireTransfers\WireTransferCreateParams\Debtor;
use Increase\WireTransfers\WireTransferCreateParams\Remittance;
use Increase\WireTransfers\WireTransferListParams\CreatedAt;
use Increase\WireTransfers\WireTransferListParams\Status;

/**
* @phpstan-import-type CreditorShape from \Increase\WireTransfers\WireTransferCreateParams\Creditor
* @phpstan-import-type RemittanceShape from \Increase\WireTransfers\WireTransferCreateParams\Remittance
* @phpstan-import-type DebtorShape from \Increase\WireTransfers\WireTransferCreateParams\Debtor
* @phpstan-import-type CreatedAtShape from \Increase\WireTransfers\WireTransferListParams\CreatedAt
* @phpstan-import-type StatusShape from \Increase\WireTransfers\WireTransferListParams\Status
* @phpstan-import-type RequestOpts from \Increase\RequestOptions
*/
interface WireTransfersContract
Expand Down Expand Up @@ -77,6 +79,7 @@ public function retrieve(
* @param string $externalAccountID filter Wire Transfers to those made to the specified External Account
* @param string $idempotencyKey Filter records to the one with the specified `idempotency_key` you chose for that object. This value is unique across Increase and is used to ensure that a request is only processed once. Learn more about [idempotency](https://increase.com/documentation/idempotency-keys).
* @param int $limit Limit the size of the list that is returned. The default (and maximum) is 100 objects.
* @param Status|StatusShape $status
* @param RequestOpts|null $requestOptions
*
* @return Page<WireTransfer>
Expand All @@ -90,6 +93,7 @@ public function list(
?string $externalAccountID = null,
?string $idempotencyKey = null,
?int $limit = null,
Status|array|null $status = null,
RequestOptions|array|null $requestOptions = null,
): Page;

Expand Down
3 changes: 3 additions & 0 deletions src/Services/WireTransfersRawService.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,14 @@
use Increase\WireTransfers\WireTransferCreateParams\Remittance;
use Increase\WireTransfers\WireTransferListParams;
use Increase\WireTransfers\WireTransferListParams\CreatedAt;
use Increase\WireTransfers\WireTransferListParams\Status;

/**
* @phpstan-import-type CreditorShape from \Increase\WireTransfers\WireTransferCreateParams\Creditor
* @phpstan-import-type RemittanceShape from \Increase\WireTransfers\WireTransferCreateParams\Remittance
* @phpstan-import-type DebtorShape from \Increase\WireTransfers\WireTransferCreateParams\Debtor
* @phpstan-import-type CreatedAtShape from \Increase\WireTransfers\WireTransferListParams\CreatedAt
* @phpstan-import-type StatusShape from \Increase\WireTransfers\WireTransferListParams\Status
* @phpstan-import-type RequestOpts from \Increase\RequestOptions
*/
final class WireTransfersRawService implements WireTransfersRawContract
Expand Down Expand Up @@ -114,6 +116,7 @@ public function retrieve(
* externalAccountID?: string,
* idempotencyKey?: string,
* limit?: int,
* status?: Status|StatusShape,
* }|WireTransferListParams $params
* @param RequestOpts|null $requestOptions
*
Expand Down
5 changes: 5 additions & 0 deletions src/Services/WireTransfersService.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,14 @@
use Increase\WireTransfers\WireTransferCreateParams\Debtor;
use Increase\WireTransfers\WireTransferCreateParams\Remittance;
use Increase\WireTransfers\WireTransferListParams\CreatedAt;
use Increase\WireTransfers\WireTransferListParams\Status;

/**
* @phpstan-import-type CreditorShape from \Increase\WireTransfers\WireTransferCreateParams\Creditor
* @phpstan-import-type RemittanceShape from \Increase\WireTransfers\WireTransferCreateParams\Remittance
* @phpstan-import-type DebtorShape from \Increase\WireTransfers\WireTransferCreateParams\Debtor
* @phpstan-import-type CreatedAtShape from \Increase\WireTransfers\WireTransferListParams\CreatedAt
* @phpstan-import-type StatusShape from \Increase\WireTransfers\WireTransferListParams\Status
* @phpstan-import-type RequestOpts from \Increase\RequestOptions
*/
final class WireTransfersService implements WireTransfersContract
Expand Down Expand Up @@ -125,6 +127,7 @@ public function retrieve(
* @param string $externalAccountID filter Wire Transfers to those made to the specified External Account
* @param string $idempotencyKey Filter records to the one with the specified `idempotency_key` you chose for that object. This value is unique across Increase and is used to ensure that a request is only processed once. Learn more about [idempotency](https://increase.com/documentation/idempotency-keys).
* @param int $limit Limit the size of the list that is returned. The default (and maximum) is 100 objects.
* @param Status|StatusShape $status
* @param RequestOpts|null $requestOptions
*
* @return Page<WireTransfer>
Expand All @@ -138,6 +141,7 @@ public function list(
?string $externalAccountID = null,
?string $idempotencyKey = null,
?int $limit = null,
Status|array|null $status = null,
RequestOptions|array|null $requestOptions = null,
): Page {
$params = Util::removeNulls(
Expand All @@ -148,6 +152,7 @@ public function list(
'externalAccountID' => $externalAccountID,
'idempotencyKey' => $idempotencyKey,
'limit' => $limit,
'status' => $status,
],
);

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.52.0';
const VERSION = '0.53.0';
// x-release-please-end
20 changes: 20 additions & 0 deletions src/WireTransfers/WireTransferListParams.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,15 @@
use Increase\Core\Concerns\SdkParams;
use Increase\Core\Contracts\BaseModel;
use Increase\WireTransfers\WireTransferListParams\CreatedAt;
use Increase\WireTransfers\WireTransferListParams\Status;

/**
* List Wire Transfers.
*
* @see Increase\Services\WireTransfersService::list()
*
* @phpstan-import-type CreatedAtShape from \Increase\WireTransfers\WireTransferListParams\CreatedAt
* @phpstan-import-type StatusShape from \Increase\WireTransfers\WireTransferListParams\Status
*
* @phpstan-type WireTransferListParamsShape = array{
* accountID?: string|null,
Expand All @@ -24,6 +26,7 @@
* externalAccountID?: string|null,
* idempotencyKey?: string|null,
* limit?: int|null,
* status?: null|Status|StatusShape,
* }
*/
final class WireTransferListParams implements BaseModel
Expand Down Expand Up @@ -65,6 +68,9 @@ final class WireTransferListParams implements BaseModel
#[Optional]
public ?int $limit;

#[Optional]
public ?Status $status;

public function __construct()
{
$this->initialize();
Expand All @@ -76,6 +82,7 @@ public function __construct()
* You must use named parameters to construct any parameters with a default value.
*
* @param CreatedAt|CreatedAtShape|null $createdAt
* @param Status|StatusShape|null $status
*/
public static function with(
?string $accountID = null,
Expand All @@ -84,6 +91,7 @@ public static function with(
?string $externalAccountID = null,
?string $idempotencyKey = null,
?int $limit = null,
Status|array|null $status = null,
): self {
$self = new self;

Expand All @@ -93,6 +101,7 @@ public static function with(
null !== $externalAccountID && $self['externalAccountID'] = $externalAccountID;
null !== $idempotencyKey && $self['idempotencyKey'] = $idempotencyKey;
null !== $limit && $self['limit'] = $limit;
null !== $status && $self['status'] = $status;

return $self;
}
Expand Down Expand Up @@ -162,4 +171,15 @@ public function withLimit(int $limit): self

return $self;
}

/**
* @param Status|StatusShape $status
*/
public function withStatus(Status|array $status): self
{
$self = clone $this;
$self['status'] = $status;

return $self;
}
}
61 changes: 61 additions & 0 deletions src/WireTransfers/WireTransferListParams/Status.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
<?php

declare(strict_types=1);

namespace Increase\WireTransfers\WireTransferListParams;

use Increase\Core\Attributes\Optional;
use Increase\Core\Concerns\SdkModel;
use Increase\Core\Contracts\BaseModel;
use Increase\WireTransfers\WireTransferListParams\Status\In;

/**
* @phpstan-type StatusShape = array{in?: list<In|value-of<In>>|null}
*/
final class Status implements BaseModel
{
/** @use SdkModel<StatusShape> */
use SdkModel;

/**
* Return results whose value is in the provided list. For GET requests, this should be encoded as a comma-delimited string, such as `?in=one,two,three`.
*
* @var list<value-of<In>>|null $in
*/
#[Optional(list: In::class)]
public ?array $in;

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.
*
* @param list<In|value-of<In>>|null $in
*/
public static function with(?array $in = null): self
{
$self = new self;

null !== $in && $self['in'] = $in;

return $self;
}

/**
* Return results whose value is in the provided list. For GET requests, this should be encoded as a comma-delimited string, such as `?in=one,two,three`.
*
* @param list<In|value-of<In>> $in
*/
public function withIn(array $in): self
{
$self = clone $this;
$self['in'] = $in;

return $self;
}
}
26 changes: 26 additions & 0 deletions src/WireTransfers/WireTransferListParams/Status/In.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<?php

declare(strict_types=1);

namespace Increase\WireTransfers\WireTransferListParams\Status;

enum In: string
{
case PENDING_APPROVAL = 'pending_approval';

case CANCELED = 'canceled';

case PENDING_REVIEWING = 'pending_reviewing';

case REJECTED = 'rejected';

case REQUIRES_ATTENTION = 'requires_attention';

case PENDING_CREATING = 'pending_creating';

case REVERSED = 'reversed';

case SUBMITTED = 'submitted';

case COMPLETE = 'complete';
}