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.31.0"
".": "0.32.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-aa6f3892142cc2ba55731765b00f760408d264406fc74ece34aafe2fa1a0c64a.yml
openapi_spec_hash: 06d242fe01faa91bebb737697488d7d2
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-e1f7516f9b6e2330afbb9f36fc3721a0c6b43947b8996105fa21d551591a3950.yml
openapi_spec_hash: 782bc3e21cf8b511cf17b2a48600a67e
config_hash: 4b562e97b3d8b4cba758a87d4927a76d
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## 0.32.0 (2026-02-10)

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

### Features

* **api:** api update ([d4a3da0](https://github.com/Increase/increase-php/commit/d4a3da0986786f08f9c41f0efe525c333c15c1bf))

## 0.31.0 (2026-02-10)

Full Changelog: [v0.30.0...v0.31.0](https://github.com/Increase/increase-php/compare/v0.30.0...v0.31.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.31.0"
composer require "increase/increase 0.32.0"
```

<!-- x-release-please-end -->
Expand Down
27 changes: 27 additions & 0 deletions src/Exports/Export.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
use Increase\Exports\Export\Category;
use Increase\Exports\Export\DashboardTableCsv;
use Increase\Exports\Export\EntityCsv;
use Increase\Exports\Export\FeeCsv;
use Increase\Exports\Export\Form1099Int;
use Increase\Exports\Export\Form1099Misc;
use Increase\Exports\Export\FundingInstructions;
Expand All @@ -35,6 +36,7 @@
* @phpstan-import-type BookkeepingAccountBalanceCsvShape from \Increase\Exports\Export\BookkeepingAccountBalanceCsv
* @phpstan-import-type DashboardTableCsvShape from \Increase\Exports\Export\DashboardTableCsv
* @phpstan-import-type EntityCsvShape from \Increase\Exports\Export\EntityCsv
* @phpstan-import-type FeeCsvShape from \Increase\Exports\Export\FeeCsv
* @phpstan-import-type Form1099IntShape from \Increase\Exports\Export\Form1099Int
* @phpstan-import-type Form1099MiscShape from \Increase\Exports\Export\Form1099Misc
* @phpstan-import-type FundingInstructionsShape from \Increase\Exports\Export\FundingInstructions
Expand All @@ -54,6 +56,7 @@
* createdAt: \DateTimeInterface,
* dashboardTableCsv: null|DashboardTableCsv|DashboardTableCsvShape,
* entityCsv: null|EntityCsv|EntityCsvShape,
* feeCsv: null|FeeCsv|FeeCsvShape,
* form1099Int: null|Form1099Int|Form1099IntShape,
* form1099Misc: null|Form1099Misc|Form1099MiscShape,
* fundingInstructions: null|FundingInstructions|FundingInstructionsShape,
Expand Down Expand Up @@ -133,6 +136,12 @@ final class Export implements BaseModel
#[Required('entity_csv')]
public ?EntityCsv $entityCsv;

/**
* Details of the fee CSV export. This field will be present when the `category` is equal to `fee_csv`.
*/
#[Required('fee_csv')]
public ?FeeCsv $feeCsv;

/**
* Details of the Form 1099-INT export. This field will be present when the `category` is equal to `form_1099_int`.
*/
Expand Down Expand Up @@ -213,6 +222,7 @@ final class Export implements BaseModel
* createdAt: ...,
* dashboardTableCsv: ...,
* entityCsv: ...,
* feeCsv: ...,
* form1099Int: ...,
* form1099Misc: ...,
* fundingInstructions: ...,
Expand Down Expand Up @@ -240,6 +250,7 @@ final class Export implements BaseModel
* ->withCreatedAt(...)
* ->withDashboardTableCsv(...)
* ->withEntityCsv(...)
* ->withFeeCsv(...)
* ->withForm1099Int(...)
* ->withForm1099Misc(...)
* ->withFundingInstructions(...)
Expand Down Expand Up @@ -270,6 +281,7 @@ public function __construct()
* @param Category|value-of<Category> $category
* @param DashboardTableCsv|DashboardTableCsvShape|null $dashboardTableCsv
* @param EntityCsv|EntityCsvShape|null $entityCsv
* @param FeeCsv|FeeCsvShape|null $feeCsv
* @param Form1099Int|Form1099IntShape|null $form1099Int
* @param Form1099Misc|Form1099MiscShape|null $form1099Misc
* @param FundingInstructions|FundingInstructionsShape|null $fundingInstructions
Expand All @@ -291,6 +303,7 @@ public static function with(
\DateTimeInterface $createdAt,
DashboardTableCsv|array|null $dashboardTableCsv,
EntityCsv|array|null $entityCsv,
FeeCsv|array|null $feeCsv,
Form1099Int|array|null $form1099Int,
Form1099Misc|array|null $form1099Misc,
FundingInstructions|array|null $fundingInstructions,
Expand All @@ -314,6 +327,7 @@ public static function with(
$self['createdAt'] = $createdAt;
$self['dashboardTableCsv'] = $dashboardTableCsv;
$self['entityCsv'] = $entityCsv;
$self['feeCsv'] = $feeCsv;
$self['form1099Int'] = $form1099Int;
$self['form1099Misc'] = $form1099Misc;
$self['fundingInstructions'] = $fundingInstructions;
Expand Down Expand Up @@ -459,6 +473,19 @@ public function withEntityCsv(EntityCsv|array|null $entityCsv): self
return $self;
}

/**
* Details of the fee CSV export. This field will be present when the `category` is equal to `fee_csv`.
*
* @param FeeCsv|FeeCsvShape|null $feeCsv
*/
public function withFeeCsv(FeeCsv|array|null $feeCsv): self
{
$self = clone $this;
$self['feeCsv'] = $feeCsv;

return $self;
}

/**
* Details of the Form 1099-INT export. This field will be present when the `category` is equal to `form_1099_int`.
*
Expand Down
2 changes: 2 additions & 0 deletions src/Exports/Export/Category.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,7 @@ enum Category: string

case FORM_1099_MISC = 'form_1099_misc';

case FEE_CSV = 'fee_csv';

case VOIDED_CHECK = 'voided_check';
}
77 changes: 77 additions & 0 deletions src/Exports/Export/FeeCsv.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
<?php

declare(strict_types=1);

namespace Increase\Exports\Export;

use Increase\Core\Attributes\Required;
use Increase\Core\Concerns\SdkModel;
use Increase\Core\Contracts\BaseModel;
use Increase\Exports\Export\FeeCsv\CreatedAt;

/**
* Details of the fee CSV export. This field will be present when the `category` is equal to `fee_csv`.
*
* @phpstan-import-type CreatedAtShape from \Increase\Exports\Export\FeeCsv\CreatedAt
*
* @phpstan-type FeeCsvShape = array{createdAt: null|CreatedAt|CreatedAtShape}
*/
final class FeeCsv implements BaseModel
{
/** @use SdkModel<FeeCsvShape> */
use SdkModel;

/**
* Filter fees by their created date. The time range must not include any fees that are part of an open fee statement.
*/
#[Required('created_at')]
public ?CreatedAt $createdAt;

/**
* `new FeeCsv()` is missing required properties by the API.
*
* To enforce required parameters use
* ```
* FeeCsv::with(createdAt: ...)
* ```
*
* Otherwise ensure the following setters are called
*
* ```
* (new FeeCsv)->withCreatedAt(...)
* ```
*/
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 CreatedAt|CreatedAtShape|null $createdAt
*/
public static function with(CreatedAt|array|null $createdAt): self
{
$self = new self;

$self['createdAt'] = $createdAt;

return $self;
}

/**
* Filter fees by their created date. The time range must not include any fees that are part of an open fee statement.
*
* @param CreatedAt|CreatedAtShape|null $createdAt
*/
public function withCreatedAt(CreatedAt|array|null $createdAt): self
{
$self = clone $this;
$self['createdAt'] = $createdAt;

return $self;
}
}
92 changes: 92 additions & 0 deletions src/Exports/Export/FeeCsv/CreatedAt.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
<?php

declare(strict_types=1);

namespace Increase\Exports\Export\FeeCsv;

use Increase\Core\Attributes\Required;
use Increase\Core\Concerns\SdkModel;
use Increase\Core\Contracts\BaseModel;

/**
* Filter fees by their created date. The time range must not include any fees that are part of an open fee statement.
*
* @phpstan-type CreatedAtShape = array{
* after: \DateTimeInterface|null, before: \DateTimeInterface|null
* }
*/
final class CreatedAt implements BaseModel
{
/** @use SdkModel<CreatedAtShape> */
use SdkModel;

/**
* Filter fees created after this time.
*/
#[Required]
public ?\DateTimeInterface $after;

/**
* Filter fees created before this time.
*/
#[Required]
public ?\DateTimeInterface $before;

/**
* `new CreatedAt()` is missing required properties by the API.
*
* To enforce required parameters use
* ```
* CreatedAt::with(after: ..., before: ...)
* ```
*
* Otherwise ensure the following setters are called
*
* ```
* (new CreatedAt)->withAfter(...)->withBefore(...)
* ```
*/
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.
*/
public static function with(
?\DateTimeInterface $after,
?\DateTimeInterface $before
): self {
$self = new self;

$self['after'] = $after;
$self['before'] = $before;

return $self;
}

/**
* Filter fees created after this time.
*/
public function withAfter(?\DateTimeInterface $after): self
{
$self = clone $this;
$self['after'] = $after;

return $self;
}

/**
* Filter fees created before this time.
*/
public function withBefore(?\DateTimeInterface $before): self
{
$self = clone $this;
$self['before'] = $before;

return $self;
}
}
2 changes: 2 additions & 0 deletions src/Exports/ExportListParams/Category.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,7 @@ enum Category: string

case FORM_1099_MISC = 'form_1099_misc';

case FEE_CSV = 'fee_csv';

case VOIDED_CHECK = 'voided_check';
}
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.31.0';
const VERSION = '0.32.0';
// x-release-please-end