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.12.0"
".": "0.13.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-994727afca8b769c05b3531b0e560cfc71b7d2c45a49b54e09bbf73d0dbcaa1f.yml
openapi_spec_hash: bb1c55d7e08fb038a7383976bba226d1
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-46a90f99726aa861d06ec56fb73592b4dcb4499d5a765d1a10dfc9619446306f.yml
openapi_spec_hash: 8406b96c39c72de064a810c393c00554
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.13.0 (2026-01-30)

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

### Features

* **api:** api update ([695769c](https://github.com/Increase/increase-php/commit/695769c27a1fe12ec30697eb52af10a1088da293))

## 0.12.0 (2026-01-30)

Full Changelog: [v0.11.0...v0.12.0](https://github.com/Increase/increase-php/compare/v0.11.0...v0.12.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.12.0"
composer require "increase/increase 0.13.0"
```

<!-- x-release-please-end -->
Expand Down
8 changes: 4 additions & 4 deletions src/IntrafiExclusions/IntrafiExclusion.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*
* @phpstan-type IntrafiExclusionShape = array{
* id: string,
* bankName: string,
* bankName: string|null,
* createdAt: \DateTimeInterface,
* entityID: string,
* excludedAt: \DateTimeInterface|null,
Expand All @@ -41,7 +41,7 @@ final class IntrafiExclusion implements BaseModel
* The name of the excluded institution.
*/
#[Required('bank_name')]
public string $bankName;
public ?string $bankName;

/**
* The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which the exclusion was created.
Expand Down Expand Up @@ -145,7 +145,7 @@ public function __construct()
*/
public static function with(
string $id,
string $bankName,
?string $bankName,
\DateTimeInterface $createdAt,
string $entityID,
?\DateTimeInterface $excludedAt,
Expand Down Expand Up @@ -185,7 +185,7 @@ public function withID(string $id): self
/**
* The name of the excluded institution.
*/
public function withBankName(string $bankName): self
public function withBankName(?string $bankName): self
{
$self = clone $this;
$self['bankName'] = $bankName;
Expand Down
43 changes: 24 additions & 19 deletions src/IntrafiExclusions/IntrafiExclusionCreateParams.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* @see Increase\Services\IntrafiExclusionsService::create()
*
* @phpstan-type IntrafiExclusionCreateParamsShape = array{
* bankName: string, entityID: string
* entityID: string, fdicCertificateNumber: string
* }
*/
final class IntrafiExclusionCreateParams implements BaseModel
Expand All @@ -24,30 +24,32 @@ final class IntrafiExclusionCreateParams implements BaseModel
use SdkModel;
use SdkParams;

/**
* The name of the financial institution to be excluded.
*/
#[Required('bank_name')]
public string $bankName;

/**
* The identifier of the Entity whose deposits will be excluded.
*/
#[Required('entity_id')]
public string $entityID;

/**
* The FDIC certificate number of the financial institution to be excluded. An FDIC certificate number uniquely identifies a financial institution, and is different than a routing number. To find one, we recommend searching by Bank Name using the [FDIC's bankfind tool](https://banks.data.fdic.gov/bankfind-suite/bankfind).
*/
#[Required('fdic_certificate_number')]
public string $fdicCertificateNumber;

/**
* `new IntrafiExclusionCreateParams()` is missing required properties by the API.
*
* To enforce required parameters use
* ```
* IntrafiExclusionCreateParams::with(bankName: ..., entityID: ...)
* IntrafiExclusionCreateParams::with(entityID: ..., fdicCertificateNumber: ...)
* ```
*
* Otherwise ensure the following setters are called
*
* ```
* (new IntrafiExclusionCreateParams)->withBankName(...)->withEntityID(...)
* (new IntrafiExclusionCreateParams)
* ->withEntityID(...)
* ->withFdicCertificateNumber(...)
* ```
*/
public function __construct()
Expand All @@ -60,34 +62,37 @@ public function __construct()
*
* You must use named parameters to construct any parameters with a default value.
*/
public static function with(string $bankName, string $entityID): self
{
public static function with(
string $entityID,
string $fdicCertificateNumber
): self {
$self = new self;

$self['bankName'] = $bankName;
$self['entityID'] = $entityID;
$self['fdicCertificateNumber'] = $fdicCertificateNumber;

return $self;
}

/**
* The name of the financial institution to be excluded.
* The identifier of the Entity whose deposits will be excluded.
*/
public function withBankName(string $bankName): self
public function withEntityID(string $entityID): self
{
$self = clone $this;
$self['bankName'] = $bankName;
$self['entityID'] = $entityID;

return $self;
}

/**
* The identifier of the Entity whose deposits will be excluded.
* The FDIC certificate number of the financial institution to be excluded. An FDIC certificate number uniquely identifies a financial institution, and is different than a routing number. To find one, we recommend searching by Bank Name using the [FDIC's bankfind tool](https://banks.data.fdic.gov/bankfind-suite/bankfind).
*/
public function withEntityID(string $entityID): self
{
public function withFdicCertificateNumber(
string $fdicCertificateNumber
): self {
$self = clone $this;
$self['entityID'] = $entityID;
$self['fdicCertificateNumber'] = $fdicCertificateNumber;

return $self;
}
Expand Down
4 changes: 2 additions & 2 deletions src/ServiceContracts/IntrafiExclusionsContract.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@ interface IntrafiExclusionsContract
/**
* @api
*
* @param string $bankName the name of the financial institution to be excluded
* @param string $entityID the identifier of the Entity whose deposits will be excluded
* @param string $fdicCertificateNumber The FDIC certificate number of the financial institution to be excluded. An FDIC certificate number uniquely identifies a financial institution, and is different than a routing number. To find one, we recommend searching by Bank Name using the [FDIC's bankfind tool](https://banks.data.fdic.gov/bankfind-suite/bankfind).
* @param RequestOpts|null $requestOptions
*
* @throws APIException
*/
public function create(
string $bankName,
string $entityID,
string $fdicCertificateNumber,
RequestOptions|array|null $requestOptions = null,
): IntrafiExclusion;

Expand Down
2 changes: 1 addition & 1 deletion src/Services/IntrafiExclusionsRawService.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public function __construct(private Client $client) {}
* Create an IntraFi Exclusion
*
* @param array{
* bankName: string, entityID: string
* entityID: string, fdicCertificateNumber: string
* }|IntrafiExclusionCreateParams $params
* @param RequestOpts|null $requestOptions
*
Expand Down
9 changes: 6 additions & 3 deletions src/Services/IntrafiExclusionsService.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,19 +35,22 @@ public function __construct(private Client $client)
*
* Create an IntraFi Exclusion
*
* @param string $bankName the name of the financial institution to be excluded
* @param string $entityID the identifier of the Entity whose deposits will be excluded
* @param string $fdicCertificateNumber The FDIC certificate number of the financial institution to be excluded. An FDIC certificate number uniquely identifies a financial institution, and is different than a routing number. To find one, we recommend searching by Bank Name using the [FDIC's bankfind tool](https://banks.data.fdic.gov/bankfind-suite/bankfind).
* @param RequestOpts|null $requestOptions
*
* @throws APIException
*/
public function create(
string $bankName,
string $entityID,
string $fdicCertificateNumber,
RequestOptions|array|null $requestOptions = null,
): IntrafiExclusion {
$params = Util::removeNulls(
['bankName' => $bankName, 'entityID' => $entityID]
[
'entityID' => $entityID,
'fdicCertificateNumber' => $fdicCertificateNumber,
],
);

// @phpstan-ignore-next-line argument.type
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.12.0';
const VERSION = '0.13.0';
// x-release-please-end
8 changes: 4 additions & 4 deletions tests/Services/IntrafiExclusionsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ protected function setUp(): void
public function testCreate(): void
{
$result = $this->client->intrafiExclusions->create(
bankName: 'Example Bank',
entityID: 'entity_n8y8tnk2p9339ti393yi'
entityID: 'entity_n8y8tnk2p9339ti393yi',
fdicCertificateNumber: '314159'
);

// @phpstan-ignore-next-line method.alreadyNarrowedType
Expand All @@ -43,8 +43,8 @@ public function testCreate(): void
public function testCreateWithOptionalParams(): void
{
$result = $this->client->intrafiExclusions->create(
bankName: 'Example Bank',
entityID: 'entity_n8y8tnk2p9339ti393yi'
entityID: 'entity_n8y8tnk2p9339ti393yi',
fdicCertificateNumber: '314159'
);

// @phpstan-ignore-next-line method.alreadyNarrowedType
Expand Down