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 .github/workflows/publish-packagist.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:

- name: Publish to Packagist
run: |-
curl --fail-with-body -X POST -H 'Content-Type: application/json' "https://packagist.org/api/update-package?username=${PACKAGIST_USERNAME}&apiToken=${PACKAGIST_SAFE_KEY}" -d '{"repository":"https://www.github.com/Increase/increase-php"}'
curl --fail-with-body -X POST -H 'Content-Type: application/json' "https://packagist.org/api/update-package?username=${PACKAGIST_USERNAME}&apiToken=${PACKAGIST_SAFE_KEY}" -d '{"repository":"https://github.com/Increase/increase-php"}'
env:
PACKAGIST_USERNAME: ${{ secrets.INCREASE_PACKAGIST_USERNAME || secrets.PACKAGIST_USERNAME }}
PACKAGIST_SAFE_KEY: ${{ secrets.INCREASE_PACKAGIST_SAFE_KEY || secrets.PACKAGIST_SAFE_KEY }}
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.122.0"
".": "0.123.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: 236
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-47752267c48d299a01c906499bb7d584228ea8801b7d83e34ae4100d5dec3434.yml
openapi_spec_hash: 9ea8bc6dc383de626d3fa15c823227ae
config_hash: 026e2baa580c7f5f2447c24332081ba8
configured_endpoints: 238
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase/increase-eaee3db1b6a076bc5c49879e3b3154e5ae466d0fd278917a3835f4ed0c9cce63.yml
openapi_spec_hash: 34a379fd12fbaa209f10dde757ede478
config_hash: ac050010e5453883d5e5fa603554a2e0
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# Changelog

## 0.123.0 (2026-05-06)

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

### Features

* **api:** api update ([6c75d27](https://github.com/Increase/increase-php/commit/6c75d2796e11f6267a39264be808a4e0edfb7d64))


### Chores

* remove custom code ([2279e9b](https://github.com/Increase/increase-php/commit/2279e9b43ad6569e7ab92365d69289bfbeaef1dc))

## 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)
Expand Down
8 changes: 3 additions & 5 deletions 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.122.0"
composer require "increase/increase 0.123.0"
```

<!-- x-release-please-end -->
Expand Down Expand Up @@ -87,7 +87,7 @@ use Increase\Core\Exceptions\RateLimitException;
use Increase\Core\Exceptions\APIStatusException;

try {
$account = $client->accounts->create(name: 'New Account!');
$account = $client->accounts->create(name: 'Oops');
} catch (APIConnectionException $e) {
echo "The server could not be reached", PHP_EOL;
var_dump($e->getPrevious());
Expand Down Expand Up @@ -157,9 +157,7 @@ $file = $client->files->create(
);

// Pass in only a string (where applicable)
$file = $client->files->create(
file: 'Example data', purpose: 'check_image_front'
);
$file = $client->files->create(file: 'check.png', purpose: 'check_image_front');

// Pass an open resource:
$fd = fopen('my/file.txt', 'r');
Expand Down
4 changes: 2 additions & 2 deletions src/ACHTransfers/ACHTransferCreateParams/Addenda/Freeform.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ final class Freeform implements BaseModel
use SdkModel;

/**
* Each entry represents an addendum sent with the transfer. In general, you should send at most one addendum–most ACH recipients cannot access beyond the first 80 characters sent. Please reach out to [support@increase.com](mailto:support@increase.com) to send 2 or more addenda to a recipient expecting a specific addendum format.
* Each entry represents an addendum sent with the transfer. Sending more than one addendum is only supported for transfers with `standard_entry_class_code` of `corporate_trade_exchange` (CTX).
*
* @var list<Entry> $entries
*/
Expand Down Expand Up @@ -65,7 +65,7 @@ public static function with(array $entries): self
}

/**
* Each entry represents an addendum sent with the transfer. In general, you should send at most one addendum–most ACH recipients cannot access beyond the first 80 characters sent. Please reach out to [support@increase.com](mailto:support@increase.com) to send 2 or more addenda to a recipient expecting a specific addendum format.
* Each entry represents an addendum sent with the transfer. Sending more than one addendum is only supported for transfers with `standard_entry_class_code` of `corporate_trade_exchange` (CTX).
*
* @param list<Entry|EntryShape> $entries
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ final class Identification implements BaseModel
public string $method;

/**
* An identification number that can be used to verify the individual's identity, such as a social security number.
* An identification number that can be used to verify the individual's identity, such as a social security number. For Social Security Numbers and Individual Taxpayer Identification Numbers, submit nine digits with no dashes or other separators.
*/
#[Required]
public string $number;
Expand Down Expand Up @@ -127,7 +127,7 @@ public function withMethod(Method|string $method): self
}

/**
* An identification number that can be used to verify the individual's identity, such as a social security number.
* An identification number that can be used to verify the individual's identity, such as a social security number. For Social Security Numbers and Individual Taxpayer Identification Numbers, submit nine digits with no dashes or other separators.
*/
public function withNumber(string $number): self
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ final class Identification implements BaseModel
public string $method;

/**
* An identification number that can be used to verify the individual's identity, such as a social security number.
* An identification number that can be used to verify the individual's identity, such as a social security number. For Social Security Numbers and Individual Taxpayer Identification Numbers, submit nine digits with no dashes or other separators.
*/
#[Required]
public string $number;
Expand Down Expand Up @@ -127,7 +127,7 @@ public function withMethod(Method|string $method): self
}

/**
* An identification number that can be used to verify the individual's identity, such as a social security number.
* An identification number that can be used to verify the individual's identity, such as a social security number. For Social Security Numbers and Individual Taxpayer Identification Numbers, submit nine digits with no dashes or other separators.
*/
public function withNumber(string $number): self
{
Expand Down
41 changes: 27 additions & 14 deletions src/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -154,12 +154,12 @@ class Client extends BaseClient
/**
* @api
*/
public ACHPrenotificationsService $achPrenotifications;
public InboundACHTransfersService $inboundACHTransfers;

/**
* @api
*/
public InboundACHTransfersService $inboundACHTransfers;
public ACHPrenotificationsService $achPrenotifications;

/**
* @api
Expand Down Expand Up @@ -389,18 +389,31 @@ public function __construct(
$requestOptions,
);

/** @var array<string, string|null> $headers */
$headers = [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
'User-Agent' => sprintf('increase/PHP %s', VERSION),
'X-Stainless-Lang' => 'php',
'X-Stainless-Package-Version' => '0.122.0',
'X-Stainless-Arch' => Util::machtype(),
'X-Stainless-OS' => Util::ostype(),
'X-Stainless-Runtime' => php_sapi_name(),
'X-Stainless-Runtime-Version' => phpversion(),
];

$customHeadersEnv = Util::getenv('INCREASE_CUSTOM_HEADERS');
if (null !== $customHeadersEnv) {
foreach (explode("\n", $customHeadersEnv) as $line) {
$colon = strpos($line, ':');
if (false !== $colon) {
$headers[trim(substr($line, 0, $colon))] = trim(substr($line, $colon + 1));
}
}
}

parent::__construct(
headers: [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
'User-Agent' => sprintf('increase/PHP %s', VERSION),
'X-Stainless-Lang' => 'php',
'X-Stainless-Package-Version' => '0.0.1',
'X-Stainless-Arch' => Util::machtype(),
'X-Stainless-OS' => Util::ostype(),
'X-Stainless-Runtime' => php_sapi_name(),
'X-Stainless-Runtime-Version' => phpversion(),
],
headers: $headers,
baseUrl: $baseUrl,
options: $options,
idempotencyHeader: 'Idempotency-Key'
Expand All @@ -421,8 +434,8 @@ public function __construct(
$this->pendingTransactions = new PendingTransactionsService($this);
$this->declinedTransactions = new DeclinedTransactionsService($this);
$this->achTransfers = new ACHTransfersService($this);
$this->achPrenotifications = new ACHPrenotificationsService($this);
$this->inboundACHTransfers = new InboundACHTransfersService($this);
$this->achPrenotifications = new ACHPrenotificationsService($this);
$this->wireTransfers = new WireTransfersService($this);
$this->inboundWireTransfers = new InboundWireTransfersService($this);
$this->wireDrawdownRequests = new WireDrawdownRequestsService($this);
Expand Down
4 changes: 2 additions & 2 deletions src/Entities/EntityCreateParams/Corporation.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ enum: BeneficialOwnershipExemptionReason::class,
public ?string $industryCode;

/**
* The website of the corporation.
* A website for the business. Not every program requires a website for submitted Entities.
*/
#[Optional]
public ?string $website;
Expand Down Expand Up @@ -259,7 +259,7 @@ public function withIndustryCode(string $industryCode): self
}

/**
* The website of the corporation.
* A website for the business. Not every program requires a website for submitted Entities.
*/
public function withWebsite(string $website): self
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ final class Identification implements BaseModel
public string $method;

/**
* An identification number that can be used to verify the individual's identity, such as a social security number.
* An identification number that can be used to verify the individual's identity, such as a social security number. For Social Security Numbers and Individual Taxpayer Identification Numbers, submit nine digits with no dashes or other separators.
*/
#[Required]
public string $number;
Expand Down Expand Up @@ -127,7 +127,7 @@ public function withMethod(Method|string $method): self
}

/**
* An identification number that can be used to verify the individual's identity, such as a social security number.
* An identification number that can be used to verify the individual's identity, such as a social security number. For Social Security Numbers and Individual Taxpayer Identification Numbers, submit nine digits with no dashes or other separators.
*/
public function withNumber(string $number): self
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ final class LegalIdentifier implements BaseModel
use SdkModel;

/**
* The legal identifier.
* The legal identifier. For US Employer Identification Numbers, submit nine digits with no dashes or other separators.
*/
#[Required]
public string $value;
Expand Down Expand Up @@ -76,7 +76,7 @@ public static function with(
}

/**
* The legal identifier.
* The legal identifier. For US Employer Identification Numbers, submit nine digits with no dashes or other separators.
*/
public function withValue(string $value): self
{
Expand Down
8 changes: 4 additions & 4 deletions src/Entities/EntityCreateParams/GovernmentAuthority.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +61,13 @@ final class GovernmentAuthority implements BaseModel
public string $name;

/**
* The Employer Identification Number (EIN) for the government authority.
* The Employer Identification Number (EIN) for the government authority. Submit nine digits with no dashes or other separators.
*/
#[Required('tax_identifier')]
public string $taxIdentifier;

/**
* The website of the government authority.
* A website for the government authority. Not every program requires a website for submitted Entities.
*/
#[Optional]
public ?string $website;
Expand Down Expand Up @@ -183,7 +183,7 @@ public function withName(string $name): self
}

/**
* The Employer Identification Number (EIN) for the government authority.
* The Employer Identification Number (EIN) for the government authority. Submit nine digits with no dashes or other separators.
*/
public function withTaxIdentifier(string $taxIdentifier): self
{
Expand All @@ -194,7 +194,7 @@ public function withTaxIdentifier(string $taxIdentifier): self
}

/**
* The website of the government authority.
* A website for the government authority. Not every program requires a website for submitted Entities.
*/
public function withWebsite(string $website): self
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ final class Identification implements BaseModel
public string $method;

/**
* An identification number that can be used to verify the individual's identity, such as a social security number.
* An identification number that can be used to verify the individual's identity, such as a social security number. For Social Security Numbers and Individual Taxpayer Identification Numbers, submit nine digits with no dashes or other separators.
*/
#[Required]
public string $number;
Expand Down Expand Up @@ -127,7 +127,7 @@ public function withMethod(Method|string $method): self
}

/**
* An identification number that can be used to verify the individual's identity, such as a social security number.
* An identification number that can be used to verify the individual's identity, such as a social security number. For Social Security Numbers and Individual Taxpayer Identification Numbers, submit nine digits with no dashes or other separators.
*/
public function withNumber(string $number): self
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ final class Identification implements BaseModel
public string $method;

/**
* An identification number that can be used to verify the individual's identity, such as a social security number.
* An identification number that can be used to verify the individual's identity, such as a social security number. For Social Security Numbers and Individual Taxpayer Identification Numbers, submit nine digits with no dashes or other separators.
*/
#[Required]
public string $number;
Expand Down Expand Up @@ -127,7 +127,7 @@ public function withMethod(Method|string $method): self
}

/**
* An identification number that can be used to verify the individual's identity, such as a social security number.
* An identification number that can be used to verify the individual's identity, such as a social security number. For Social Security Numbers and Individual Taxpayer Identification Numbers, submit nine digits with no dashes or other separators.
*/
public function withNumber(string $number): self
{
Expand Down
4 changes: 2 additions & 2 deletions src/Entities/EntityCreateParams/Trust.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ final class Trust implements BaseModel
public ?Grantor $grantor;

/**
* The Employer Identification Number (EIN) for the trust. Required if `category` is equal to `irrevocable`.
* The Employer Identification Number (EIN) for the trust. Submit nine digits with no dashes or other separators. Required if `category` is equal to `irrevocable`.
*/
#[Optional('tax_identifier')]
public ?string $taxIdentifier;
Expand Down Expand Up @@ -233,7 +233,7 @@ public function withGrantor(Grantor|array $grantor): self
}

/**
* The Employer Identification Number (EIN) for the trust. Required if `category` is equal to `irrevocable`.
* The Employer Identification Number (EIN) for the trust. Submit nine digits with no dashes or other separators. Required if `category` is equal to `irrevocable`.
*/
public function withTaxIdentifier(string $taxIdentifier): self
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ final class Identification implements BaseModel
public string $method;

/**
* An identification number that can be used to verify the individual's identity, such as a social security number.
* An identification number that can be used to verify the individual's identity, such as a social security number. For Social Security Numbers and Individual Taxpayer Identification Numbers, submit nine digits with no dashes or other separators.
*/
#[Required]
public string $number;
Expand Down Expand Up @@ -127,7 +127,7 @@ public function withMethod(Method|string $method): self
}

/**
* An identification number that can be used to verify the individual's identity, such as a social security number.
* An identification number that can be used to verify the individual's identity, such as a social security number. For Social Security Numbers and Individual Taxpayer Identification Numbers, submit nine digits with no dashes or other separators.
*/
public function withNumber(string $number): self
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ final class Identification implements BaseModel
public string $method;

/**
* An identification number that can be used to verify the individual's identity, such as a social security number.
* An identification number that can be used to verify the individual's identity, such as a social security number. For Social Security Numbers and Individual Taxpayer Identification Numbers, submit nine digits with no dashes or other separators.
*/
#[Required]
public string $number;
Expand Down Expand Up @@ -127,7 +127,7 @@ public function withMethod(Method|string $method): self
}

/**
* An identification number that can be used to verify the individual's identity, such as a social security number.
* An identification number that can be used to verify the individual's identity, such as a social security number. For Social Security Numbers and Individual Taxpayer Identification Numbers, submit nine digits with no dashes or other separators.
*/
public function withNumber(string $number): self
{
Expand Down
Loading