diff --git a/.release-please-manifest.json b/.release-please-manifest.json index fed4b17..c3e01e1 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.52.0" + ".": "0.53.0" } \ No newline at end of file diff --git a/.stats.yml b/.stats.yml index d1f0847..a42ce1f 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-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 diff --git a/CHANGELOG.md b/CHANGELOG.md index 95e85d7..9234cf7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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) diff --git a/README.md b/README.md index 96606f2..c4eb846 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.52.0" +composer require "increase/increase 0.53.0" ``` diff --git a/src/ServiceContracts/WireTransfersContract.php b/src/ServiceContracts/WireTransfersContract.php index fc88b1e..1f14045 100644 --- a/src/ServiceContracts/WireTransfersContract.php +++ b/src/ServiceContracts/WireTransfersContract.php @@ -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 @@ -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 @@ -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; diff --git a/src/Services/WireTransfersRawService.php b/src/Services/WireTransfersRawService.php index f40c4d5..e80d585 100644 --- a/src/Services/WireTransfersRawService.php +++ b/src/Services/WireTransfersRawService.php @@ -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 @@ -114,6 +116,7 @@ public function retrieve( * externalAccountID?: string, * idempotencyKey?: string, * limit?: int, + * status?: Status|StatusShape, * }|WireTransferListParams $params * @param RequestOpts|null $requestOptions * diff --git a/src/Services/WireTransfersService.php b/src/Services/WireTransfersService.php index 48b1412..079003f 100644 --- a/src/Services/WireTransfersService.php +++ b/src/Services/WireTransfersService.php @@ -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 @@ -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 @@ -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( @@ -148,6 +152,7 @@ public function list( 'externalAccountID' => $externalAccountID, 'idempotencyKey' => $idempotencyKey, 'limit' => $limit, + 'status' => $status, ], ); diff --git a/src/Version.php b/src/Version.php index 00f3d67..e228c05 100644 --- a/src/Version.php +++ b/src/Version.php @@ -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 diff --git a/src/WireTransfers/WireTransferListParams.php b/src/WireTransfers/WireTransferListParams.php index 9956934..523f3a3 100644 --- a/src/WireTransfers/WireTransferListParams.php +++ b/src/WireTransfers/WireTransferListParams.php @@ -9,6 +9,7 @@ use Increase\Core\Concerns\SdkParams; use Increase\Core\Contracts\BaseModel; use Increase\WireTransfers\WireTransferListParams\CreatedAt; +use Increase\WireTransfers\WireTransferListParams\Status; /** * List Wire Transfers. @@ -16,6 +17,7 @@ * @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, @@ -24,6 +26,7 @@ * externalAccountID?: string|null, * idempotencyKey?: string|null, * limit?: int|null, + * status?: null|Status|StatusShape, * } */ final class WireTransferListParams implements BaseModel @@ -65,6 +68,9 @@ final class WireTransferListParams implements BaseModel #[Optional] public ?int $limit; + #[Optional] + public ?Status $status; + public function __construct() { $this->initialize(); @@ -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, @@ -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; @@ -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; } @@ -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; + } } diff --git a/src/WireTransfers/WireTransferListParams/Status.php b/src/WireTransfers/WireTransferListParams/Status.php new file mode 100644 index 0000000..d94eda7 --- /dev/null +++ b/src/WireTransfers/WireTransferListParams/Status.php @@ -0,0 +1,61 @@ +>|null} + */ +final class Status implements BaseModel +{ + /** @use SdkModel */ + 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>|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>|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 + */ + public function withIn(array $in): self + { + $self = clone $this; + $self['in'] = $in; + + return $self; + } +} diff --git a/src/WireTransfers/WireTransferListParams/Status/In.php b/src/WireTransfers/WireTransferListParams/Status/In.php new file mode 100644 index 0000000..5b4b9c0 --- /dev/null +++ b/src/WireTransfers/WireTransferListParams/Status/In.php @@ -0,0 +1,26 @@ +