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: 2 additions & 0 deletions .php-cs-fixer.dist.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
use PhpCsFixer\Finder;
use PhpCsFixer\Runner\Parallel\ParallelConfigFactory;

ini_set('memory_limit', -1);

return (new Config)
->setParallelConfig(ParallelConfigFactory::detect())
->setFinder(Finder::create()->in([__DIR__.'/src', __DIR__.'/tests']))
Expand Down
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.16.0"
".": "0.17.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-42d3718c22feafafc0c3b9952574f79ed506e2fe6a3b336743d2cc3442d3455c.yml
openapi_spec_hash: 5ce48171c112d3c6addb850db1c9535d
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-c4cfc1e3f7a08dfe8be37b73f7da951caaff66d967512d5dd15956b908cda488.yml
openapi_spec_hash: 458dc62dd9bc06b1a103e010feca1d9f
config_hash: 27e44ed36b9c5617b580ead7231a594a
15 changes: 15 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,20 @@
# Changelog

## 0.17.0 (2026-02-02)

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

### Features

* **api:** api update ([ba4d459](https://github.com/Increase/increase-php/commit/ba4d459cd4eb63959d51b7a9884ccd9bd1d4fe80))
* **api:** api update ([7849715](https://github.com/Increase/increase-php/commit/784971597b134e7435b77212b41a9c4fee57f596))
* **api:** api update ([4a9d677](https://github.com/Increase/increase-php/commit/4a9d67754fef78e9124fe6f08e169db8377431d2))


### Chores

* **internal:** php cs fixer should not be memory limited ([3943f32](https://github.com/Increase/increase-php/commit/3943f32095eb547c381ad43c8229333eba077031))

## 0.16.0 (2026-01-31)

Full Changelog: [v0.15.1...v0.16.0](https://github.com/Increase/increase-php/compare/v0.15.1...v0.16.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.16.0"
composer require "increase/increase 0.17.0"
```

<!-- x-release-please-end -->
Expand Down
25 changes: 2 additions & 23 deletions src/Exports/ExportCreateParams/BalanceCsv.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@
* @phpstan-import-type CreatedAtShape from \Increase\Exports\ExportCreateParams\BalanceCsv\CreatedAt
*
* @phpstan-type BalanceCsvShape = array{
* accountID?: string|null,
* createdAt?: null|CreatedAt|CreatedAtShape,
* programID?: string|null,
* accountID?: string|null, createdAt?: null|CreatedAt|CreatedAtShape
* }
*/
final class BalanceCsv implements BaseModel
Expand All @@ -37,12 +35,6 @@ final class BalanceCsv implements BaseModel
#[Optional('created_at')]
public ?CreatedAt $createdAt;

/**
* Filter exported Balances to the specified Program.
*/
#[Optional('program_id')]
public ?string $programID;

public function __construct()
{
$this->initialize();
Expand All @@ -57,14 +49,12 @@ public function __construct()
*/
public static function with(
?string $accountID = null,
CreatedAt|array|null $createdAt = null,
?string $programID = null,
CreatedAt|array|null $createdAt = null
): self {
$self = new self;

null !== $accountID && $self['accountID'] = $accountID;
null !== $createdAt && $self['createdAt'] = $createdAt;
null !== $programID && $self['programID'] = $programID;

return $self;
}
Expand Down Expand Up @@ -92,15 +82,4 @@ public function withCreatedAt(CreatedAt|array $createdAt): self

return $self;
}

/**
* Filter exported Balances to the specified Program.
*/
public function withProgramID(string $programID): self
{
$self = clone $this;
$self['programID'] = $programID;

return $self;
}
}
35 changes: 3 additions & 32 deletions src/Exports/ExportCreateParams/EntityCsv.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,29 +4,19 @@

namespace Increase\Exports\ExportCreateParams;

use Increase\Core\Attributes\Optional;
use Increase\Core\Concerns\SdkModel;
use Increase\Core\Contracts\BaseModel;
use Increase\Exports\ExportCreateParams\EntityCsv\Status;

/**
* Options for the created export. Required if `category` is equal to `entity_csv`.
*
* @phpstan-import-type StatusShape from \Increase\Exports\ExportCreateParams\EntityCsv\Status
*
* @phpstan-type EntityCsvShape = array{status?: null|Status|StatusShape}
* @phpstan-type EntityCsvShape = array<string,mixed>
*/
final class EntityCsv implements BaseModel
{
/** @use SdkModel<EntityCsvShape> */
use SdkModel;

/**
* Entity statuses to filter by.
*/
#[Optional]
public ?Status $status;

public function __construct()
{
$this->initialize();
Expand All @@ -36,28 +26,9 @@ public function __construct()
* Construct an instance from the required parameters.
*
* You must use named parameters to construct any parameters with a default value.
*
* @param Status|StatusShape|null $status
*/
public static function with(Status|array|null $status = null): self
{
$self = new self;

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

return $self;
}

/**
* Entity statuses to filter by.
*
* @param Status|StatusShape $status
*/
public function withStatus(Status|array $status): self
public static function with(): self
{
$self = clone $this;
$self['status'] = $status;

return $self;
return new self;
}
}
77 changes: 0 additions & 77 deletions src/Exports/ExportCreateParams/EntityCsv/Status.php

This file was deleted.

14 changes: 0 additions & 14 deletions src/Exports/ExportCreateParams/EntityCsv/Status/In.php

This file was deleted.

25 changes: 2 additions & 23 deletions src/Exports/ExportCreateParams/TransactionCsv.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@
* @phpstan-import-type CreatedAtShape from \Increase\Exports\ExportCreateParams\TransactionCsv\CreatedAt
*
* @phpstan-type TransactionCsvShape = array{
* accountID?: string|null,
* createdAt?: null|CreatedAt|CreatedAtShape,
* programID?: string|null,
* accountID?: string|null, createdAt?: null|CreatedAt|CreatedAtShape
* }
*/
final class TransactionCsv implements BaseModel
Expand All @@ -37,12 +35,6 @@ final class TransactionCsv implements BaseModel
#[Optional('created_at')]
public ?CreatedAt $createdAt;

/**
* Filter exported Transactions to the specified Program.
*/
#[Optional('program_id')]
public ?string $programID;

public function __construct()
{
$this->initialize();
Expand All @@ -57,14 +49,12 @@ public function __construct()
*/
public static function with(
?string $accountID = null,
CreatedAt|array|null $createdAt = null,
?string $programID = null,
CreatedAt|array|null $createdAt = null
): self {
$self = new self;

null !== $accountID && $self['accountID'] = $accountID;
null !== $createdAt && $self['createdAt'] = $createdAt;
null !== $programID && $self['programID'] = $programID;

return $self;
}
Expand Down Expand Up @@ -92,15 +82,4 @@ public function withCreatedAt(CreatedAt|array $createdAt): self

return $self;
}

/**
* Filter exported Transactions to the specified Program.
*/
public function withProgramID(string $programID): self
{
$self = clone $this;
$self['programID'] = $programID;

return $self;
}
}
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.16.0';
const VERSION = '0.17.0';
// x-release-please-end
4 changes: 1 addition & 3 deletions tests/Services/ExportsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ public function testCreateWithOptionalParams(): void
'onOrAfter' => new \DateTimeImmutable('2019-12-27T18:11:19.117Z'),
'onOrBefore' => new \DateTimeImmutable('2019-12-27T18:11:19.117Z'),
],
'programID' => 'program_id',
],
bookkeepingAccountBalanceCsv: [
'bookkeepingAccountID' => 'bookkeeping_account_id',
Expand All @@ -77,7 +76,7 @@ public function testCreateWithOptionalParams(): void
'onOrBefore' => new \DateTimeImmutable('2019-12-27T18:11:19.117Z'),
],
],
entityCsv: ['status' => ['in' => ['active']]],
entityCsv: [],
fundingInstructions: ['accountNumberID' => 'account_number_id'],
transactionCsv: [
'accountID' => 'account_in71c4amph0vgo2qllky',
Expand All @@ -87,7 +86,6 @@ public function testCreateWithOptionalParams(): void
'onOrAfter' => new \DateTimeImmutable('2019-12-27T18:11:19.117Z'),
'onOrBefore' => new \DateTimeImmutable('2019-12-27T18:11:19.117Z'),
],
'programID' => 'program_id',
],
vendorCsv: [],
);
Expand Down