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.30.0"
".": "0.31.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-089e28882ee6d2ba5caaf094e99a95593ab5db652954f68fa7ce9c5b5ca76198.yml
openapi_spec_hash: 7cb683d243b088c97c04c3cd5623106a
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-aa6f3892142cc2ba55731765b00f760408d264406fc74ece34aafe2fa1a0c64a.yml
openapi_spec_hash: 06d242fe01faa91bebb737697488d7d2
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.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)

### Features

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

## 0.30.0 (2026-02-10)

Full Changelog: [v0.29.0...v0.30.0](https://github.com/Increase/increase-php/compare/v0.29.0...v0.30.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.30.0"
composer require "increase/increase 0.31.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 @@ -23,6 +23,7 @@
use Increase\Exports\Export\TransactionCsv;
use Increase\Exports\Export\Type;
use Increase\Exports\Export\VendorCsv;
use Increase\Exports\Export\VoidedCheck;

/**
* Exports are generated files. Some exports can contain a lot of data, like a CSV of your transactions. Others can be a single document, like a tax form. Since they can take a while, they are generated asynchronously. We send a webhook when they are ready. For more information, please read our [Exports documentation](https://increase.com/documentation/exports).
Expand All @@ -40,6 +41,7 @@
* @phpstan-import-type ResultShape from \Increase\Exports\Export\Result
* @phpstan-import-type TransactionCsvShape from \Increase\Exports\Export\TransactionCsv
* @phpstan-import-type VendorCsvShape from \Increase\Exports\Export\VendorCsv
* @phpstan-import-type VoidedCheckShape from \Increase\Exports\Export\VoidedCheck
*
* @phpstan-type ExportShape = array{
* id: string,
Expand All @@ -61,6 +63,7 @@
* transactionCsv: null|TransactionCsv|TransactionCsvShape,
* type: Type|value-of<Type>,
* vendorCsv: null|VendorCsv|VendorCsvShape,
* voidedCheck: null|VoidedCheck|VoidedCheckShape,
* }
*/
final class Export implements BaseModel
Expand Down Expand Up @@ -188,6 +191,12 @@ final class Export implements BaseModel
#[Required('vendor_csv')]
public ?VendorCsv $vendorCsv;

/**
* Details of the voided check export. This field will be present when the `category` is equal to `voided_check`.
*/
#[Required('voided_check')]
public ?VoidedCheck $voidedCheck;

/**
* `new Export()` is missing required properties by the API.
*
Expand All @@ -213,6 +222,7 @@ final class Export implements BaseModel
* transactionCsv: ...,
* type: ...,
* vendorCsv: ...,
* voidedCheck: ...,
* )
* ```
*
Expand All @@ -239,6 +249,7 @@ final class Export implements BaseModel
* ->withTransactionCsv(...)
* ->withType(...)
* ->withVendorCsv(...)
* ->withVoidedCheck(...)
* ```
*/
public function __construct()
Expand Down Expand Up @@ -267,6 +278,7 @@ public function __construct()
* @param TransactionCsv|TransactionCsvShape|null $transactionCsv
* @param Type|value-of<Type> $type
* @param VendorCsv|VendorCsvShape|null $vendorCsv
* @param VoidedCheck|VoidedCheckShape|null $voidedCheck
*/
public static function with(
string $id,
Expand All @@ -288,6 +300,7 @@ public static function with(
TransactionCsv|array|null $transactionCsv,
Type|string $type,
VendorCsv|array|null $vendorCsv,
VoidedCheck|array|null $voidedCheck,
): self {
$self = new self;

Expand All @@ -310,6 +323,7 @@ public static function with(
$self['transactionCsv'] = $transactionCsv;
$self['type'] = $type;
$self['vendorCsv'] = $vendorCsv;
$self['voidedCheck'] = $voidedCheck;

return $self;
}
Expand Down Expand Up @@ -562,4 +576,17 @@ public function withVendorCsv(VendorCsv|array|null $vendorCsv): self

return $self;
}

/**
* Details of the voided check export. This field will be present when the `category` is equal to `voided_check`.
*
* @param VoidedCheck|VoidedCheckShape|null $voidedCheck
*/
public function withVoidedCheck(VoidedCheck|array|null $voidedCheck): self
{
$self = clone $this;
$self['voidedCheck'] = $voidedCheck;

return $self;
}
}
2 changes: 2 additions & 0 deletions src/Exports/Export/Category.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,6 @@ enum Category: string
case FORM_1099_INT = 'form_1099_int';

case FORM_1099_MISC = 'form_1099_misc';

case VOIDED_CHECK = 'voided_check';
}
99 changes: 99 additions & 0 deletions src/Exports/Export/VoidedCheck.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
<?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\VoidedCheck\Payer;

/**
* Details of the voided check export. This field will be present when the `category` is equal to `voided_check`.
*
* @phpstan-import-type PayerShape from \Increase\Exports\Export\VoidedCheck\Payer
*
* @phpstan-type VoidedCheckShape = array{
* accountNumberID: string, payer: list<Payer|PayerShape>
* }
*/
final class VoidedCheck implements BaseModel
{
/** @use SdkModel<VoidedCheckShape> */
use SdkModel;

/**
* The Account Number for the voided check.
*/
#[Required('account_number_id')]
public string $accountNumberID;

/**
* The payer information printed on the check.
*
* @var list<Payer> $payer
*/
#[Required(list: Payer::class)]
public array $payer;

/**
* `new VoidedCheck()` is missing required properties by the API.
*
* To enforce required parameters use
* ```
* VoidedCheck::with(accountNumberID: ..., payer: ...)
* ```
*
* Otherwise ensure the following setters are called
*
* ```
* (new VoidedCheck)->withAccountNumberID(...)->withPayer(...)
* ```
*/
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<Payer|PayerShape> $payer
*/
public static function with(string $accountNumberID, array $payer): self
{
$self = new self;

$self['accountNumberID'] = $accountNumberID;
$self['payer'] = $payer;

return $self;
}

/**
* The Account Number for the voided check.
*/
public function withAccountNumberID(string $accountNumberID): self
{
$self = clone $this;
$self['accountNumberID'] = $accountNumberID;

return $self;
}

/**
* The payer information printed on the check.
*
* @param list<Payer|PayerShape> $payer
*/
public function withPayer(array $payer): self
{
$self = clone $this;
$self['payer'] = $payer;

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

declare(strict_types=1);

namespace Increase\Exports\Export\VoidedCheck;

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

/**
* @phpstan-type PayerShape = array{line: string}
*/
final class Payer implements BaseModel
{
/** @use SdkModel<PayerShape> */
use SdkModel;

/**
* The contents of the line.
*/
#[Required]
public string $line;

/**
* `new Payer()` is missing required properties by the API.
*
* To enforce required parameters use
* ```
* Payer::with(line: ...)
* ```
*
* Otherwise ensure the following setters are called
*
* ```
* (new Payer)->withLine(...)
* ```
*/
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(string $line): self
{
$self = new self;

$self['line'] = $line;

return $self;
}

/**
* The contents of the line.
*/
public function withLine(string $line): self
{
$self = clone $this;
$self['line'] = $line;

return $self;
}
}
25 changes: 25 additions & 0 deletions src/Exports/ExportCreateParams.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
use Increase\Exports\ExportCreateParams\FundingInstructions;
use Increase\Exports\ExportCreateParams\TransactionCsv;
use Increase\Exports\ExportCreateParams\VendorCsv;
use Increase\Exports\ExportCreateParams\VoidedCheck;

/**
* Create an Export.
Expand All @@ -34,6 +35,7 @@
* @phpstan-import-type FundingInstructionsShape from \Increase\Exports\ExportCreateParams\FundingInstructions
* @phpstan-import-type TransactionCsvShape from \Increase\Exports\ExportCreateParams\TransactionCsv
* @phpstan-import-type VendorCsvShape from \Increase\Exports\ExportCreateParams\VendorCsv
* @phpstan-import-type VoidedCheckShape from \Increase\Exports\ExportCreateParams\VoidedCheck
*
* @phpstan-type ExportCreateParamsShape = array{
* category: Category|value-of<Category>,
Expand All @@ -46,6 +48,7 @@
* fundingInstructions?: null|FundingInstructions|FundingInstructionsShape,
* transactionCsv?: null|TransactionCsv|TransactionCsvShape,
* vendorCsv?: null|VendorCsv|VendorCsvShape,
* voidedCheck?: null|VoidedCheck|VoidedCheckShape,
* }
*/
final class ExportCreateParams implements BaseModel
Expand Down Expand Up @@ -116,6 +119,12 @@ final class ExportCreateParams implements BaseModel
#[Optional('vendor_csv')]
public ?VendorCsv $vendorCsv;

/**
* Options for the created export. Required if `category` is equal to `voided_check`.
*/
#[Optional('voided_check')]
public ?VoidedCheck $voidedCheck;

/**
* `new ExportCreateParams()` is missing required properties by the API.
*
Expand Down Expand Up @@ -150,6 +159,7 @@ public function __construct()
* @param FundingInstructions|FundingInstructionsShape|null $fundingInstructions
* @param TransactionCsv|TransactionCsvShape|null $transactionCsv
* @param VendorCsv|VendorCsvShape|null $vendorCsv
* @param VoidedCheck|VoidedCheckShape|null $voidedCheck
*/
public static function with(
Category|string $category,
Expand All @@ -162,6 +172,7 @@ public static function with(
FundingInstructions|array|null $fundingInstructions = null,
TransactionCsv|array|null $transactionCsv = null,
VendorCsv|array|null $vendorCsv = null,
VoidedCheck|array|null $voidedCheck = null,
): self {
$self = new self;

Expand All @@ -176,6 +187,7 @@ public static function with(
null !== $fundingInstructions && $self['fundingInstructions'] = $fundingInstructions;
null !== $transactionCsv && $self['transactionCsv'] = $transactionCsv;
null !== $vendorCsv && $self['vendorCsv'] = $vendorCsv;
null !== $voidedCheck && $self['voidedCheck'] = $voidedCheck;

return $self;
}
Expand Down Expand Up @@ -315,4 +327,17 @@ public function withVendorCsv(VendorCsv|array $vendorCsv): self

return $self;
}

/**
* Options for the created export. Required if `category` is equal to `voided_check`.
*
* @param VoidedCheck|VoidedCheckShape $voidedCheck
*/
public function withVoidedCheck(VoidedCheck|array $voidedCheck): self
{
$self = clone $this;
$self['voidedCheck'] = $voidedCheck;

return $self;
}
}
2 changes: 2 additions & 0 deletions src/Exports/ExportCreateParams/Category.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,6 @@ enum Category: string
case ACCOUNT_VERIFICATION_LETTER = 'account_verification_letter';

case FUNDING_INSTRUCTIONS = 'funding_instructions';

case VOIDED_CHECK = 'voided_check';
}
Loading