diff --git a/.release-please-manifest.json b/.release-please-manifest.json index f81bf99..f04d089 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.31.0" + ".": "0.32.0" } \ No newline at end of file diff --git a/.stats.yml b/.stats.yml index bdfd829..fbae033 100644 --- a/.stats.yml +++ b/.stats.yml @@ -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 diff --git a/CHANGELOG.md b/CHANGELOG.md index 7b855fc..6f3b8a7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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) diff --git a/README.md b/README.md index f234654..229e9a2 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ The REST API documentation can be found on [increase.com](https://increase.com/d ``` -composer require "increase/increase 0.31.0" +composer require "increase/increase 0.32.0" ``` diff --git a/src/Exports/Export.php b/src/Exports/Export.php index dc0e2e4..611dc9d 100644 --- a/src/Exports/Export.php +++ b/src/Exports/Export.php @@ -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; @@ -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 @@ -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, @@ -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`. */ @@ -213,6 +222,7 @@ final class Export implements BaseModel * createdAt: ..., * dashboardTableCsv: ..., * entityCsv: ..., + * feeCsv: ..., * form1099Int: ..., * form1099Misc: ..., * fundingInstructions: ..., @@ -240,6 +250,7 @@ final class Export implements BaseModel * ->withCreatedAt(...) * ->withDashboardTableCsv(...) * ->withEntityCsv(...) + * ->withFeeCsv(...) * ->withForm1099Int(...) * ->withForm1099Misc(...) * ->withFundingInstructions(...) @@ -270,6 +281,7 @@ public function __construct() * @param Category|value-of $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 @@ -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, @@ -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; @@ -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`. * diff --git a/src/Exports/Export/Category.php b/src/Exports/Export/Category.php index dafbb3a..e18dba4 100644 --- a/src/Exports/Export/Category.php +++ b/src/Exports/Export/Category.php @@ -33,5 +33,7 @@ enum Category: string case FORM_1099_MISC = 'form_1099_misc'; + case FEE_CSV = 'fee_csv'; + case VOIDED_CHECK = 'voided_check'; } diff --git a/src/Exports/Export/FeeCsv.php b/src/Exports/Export/FeeCsv.php new file mode 100644 index 0000000..1dab86b --- /dev/null +++ b/src/Exports/Export/FeeCsv.php @@ -0,0 +1,77 @@ + */ + 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; + } +} diff --git a/src/Exports/Export/FeeCsv/CreatedAt.php b/src/Exports/Export/FeeCsv/CreatedAt.php new file mode 100644 index 0000000..88a22c2 --- /dev/null +++ b/src/Exports/Export/FeeCsv/CreatedAt.php @@ -0,0 +1,92 @@ + */ + 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; + } +} diff --git a/src/Exports/ExportListParams/Category.php b/src/Exports/ExportListParams/Category.php index 7ee6088..ca7692b 100644 --- a/src/Exports/ExportListParams/Category.php +++ b/src/Exports/ExportListParams/Category.php @@ -33,5 +33,7 @@ enum Category: string case FORM_1099_MISC = 'form_1099_misc'; + case FEE_CSV = 'fee_csv'; + case VOIDED_CHECK = 'voided_check'; } diff --git a/src/Version.php b/src/Version.php index 9992cdd..3030e6f 100644 --- a/src/Version.php +++ b/src/Version.php @@ -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