From ca258a5fe6445298d6250dcad7a912e9eee055b0 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 3 Feb 2026 01:50:08 +0000 Subject: [PATCH 1/2] feat(api): api update --- .stats.yml | 4 +- src/Exports/Export.php | 333 ++++++++++++++++++ src/Exports/Export/AccountStatementBai2.php | 114 ++++++ src/Exports/Export/AccountStatementOfx.php | 99 ++++++ .../Export/AccountStatementOfx/CreatedAt.php | 92 +++++ .../Export/AccountVerificationLetter.php | 92 +++++ src/Exports/Export/BalanceCsv.php | 99 ++++++ src/Exports/Export/BalanceCsv/CreatedAt.php | 92 +++++ .../Export/BookkeepingAccountBalanceCsv.php | 102 ++++++ .../CreatedAt.php | 92 +++++ src/Exports/Export/DashboardTableCsv.php | 34 ++ src/Exports/Export/EntityCsv.php | 34 ++ src/Exports/Export/Form1099Int.php | 134 +++++++ src/Exports/Export/Form1099Misc.php | 111 ++++++ src/Exports/Export/FundingInstructions.php | 70 ++++ src/Exports/Export/TransactionCsv.php | 99 ++++++ .../Export/TransactionCsv/CreatedAt.php | 92 +++++ src/Exports/Export/VendorCsv.php | 34 ++ 18 files changed, 1725 insertions(+), 2 deletions(-) create mode 100644 src/Exports/Export/AccountStatementBai2.php create mode 100644 src/Exports/Export/AccountStatementOfx.php create mode 100644 src/Exports/Export/AccountStatementOfx/CreatedAt.php create mode 100644 src/Exports/Export/AccountVerificationLetter.php create mode 100644 src/Exports/Export/BalanceCsv.php create mode 100644 src/Exports/Export/BalanceCsv/CreatedAt.php create mode 100644 src/Exports/Export/BookkeepingAccountBalanceCsv.php create mode 100644 src/Exports/Export/BookkeepingAccountBalanceCsv/CreatedAt.php create mode 100644 src/Exports/Export/DashboardTableCsv.php create mode 100644 src/Exports/Export/EntityCsv.php create mode 100644 src/Exports/Export/Form1099Int.php create mode 100644 src/Exports/Export/Form1099Misc.php create mode 100644 src/Exports/Export/FundingInstructions.php create mode 100644 src/Exports/Export/TransactionCsv.php create mode 100644 src/Exports/Export/TransactionCsv/CreatedAt.php create mode 100644 src/Exports/Export/VendorCsv.php diff --git a/.stats.yml b/.stats.yml index bca3861..e3254b4 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-c18d1cc6647fe78b98198587dc0a75915f8969e685e51293c850f31a99155b0c.yml -openapi_spec_hash: dda07d9d09014cc8f613dfa79f2d5833 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-a4372a99448790d2873ec14d7e280c9cd745b2b910d7f4e4eb73fc278a4d6f2e.yml +openapi_spec_hash: 157ad870f28ecf52ef31b087e3f86ec1 config_hash: 27e44ed36b9c5617b580ead7231a594a diff --git a/src/Exports/Export.php b/src/Exports/Export.php index a8dcf63..34a6b08 100644 --- a/src/Exports/Export.php +++ b/src/Exports/Export.php @@ -7,22 +7,59 @@ use Increase\Core\Attributes\Required; use Increase\Core\Concerns\SdkModel; use Increase\Core\Contracts\BaseModel; +use Increase\Exports\Export\AccountStatementBai2; +use Increase\Exports\Export\AccountStatementOfx; +use Increase\Exports\Export\AccountVerificationLetter; +use Increase\Exports\Export\BalanceCsv; +use Increase\Exports\Export\BookkeepingAccountBalanceCsv; use Increase\Exports\Export\Category; +use Increase\Exports\Export\DashboardTableCsv; +use Increase\Exports\Export\EntityCsv; +use Increase\Exports\Export\Form1099Int; +use Increase\Exports\Export\Form1099Misc; +use Increase\Exports\Export\FundingInstructions; use Increase\Exports\Export\Status; +use Increase\Exports\Export\TransactionCsv; use Increase\Exports\Export\Type; +use Increase\Exports\Export\VendorCsv; /** * 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). * + * @phpstan-import-type AccountStatementBai2Shape from \Increase\Exports\Export\AccountStatementBai2 + * @phpstan-import-type AccountStatementOfxShape from \Increase\Exports\Export\AccountStatementOfx + * @phpstan-import-type AccountVerificationLetterShape from \Increase\Exports\Export\AccountVerificationLetter + * @phpstan-import-type BalanceCsvShape from \Increase\Exports\Export\BalanceCsv + * @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 Form1099IntShape from \Increase\Exports\Export\Form1099Int + * @phpstan-import-type Form1099MiscShape from \Increase\Exports\Export\Form1099Misc + * @phpstan-import-type FundingInstructionsShape from \Increase\Exports\Export\FundingInstructions + * @phpstan-import-type TransactionCsvShape from \Increase\Exports\Export\TransactionCsv + * @phpstan-import-type VendorCsvShape from \Increase\Exports\Export\VendorCsv + * * @phpstan-type ExportShape = array{ * id: string, + * accountStatementBai2: null|AccountStatementBai2|AccountStatementBai2Shape, + * accountStatementOfx: null|AccountStatementOfx|AccountStatementOfxShape, + * accountVerificationLetter: null|AccountVerificationLetter|AccountVerificationLetterShape, + * balanceCsv: null|BalanceCsv|BalanceCsvShape, + * bookkeepingAccountBalanceCsv: null|BookkeepingAccountBalanceCsv|BookkeepingAccountBalanceCsvShape, * category: Category|value-of, * createdAt: \DateTimeInterface, + * dashboardTableCsv: null|DashboardTableCsv|DashboardTableCsvShape, + * entityCsv: null|EntityCsv|EntityCsvShape, * fileDownloadURL: string|null, * fileID: string|null, + * form1099Int: null|Form1099Int|Form1099IntShape, + * form1099Misc: null|Form1099Misc|Form1099MiscShape, + * fundingInstructions: null|FundingInstructions|FundingInstructionsShape, * idempotencyKey: string|null, * status: Status|value-of, + * transactionCsv: null|TransactionCsv|TransactionCsvShape, * type: Type|value-of, + * vendorCsv: null|VendorCsv|VendorCsvShape, * } */ final class Export implements BaseModel @@ -36,6 +73,36 @@ final class Export implements BaseModel #[Required] public string $id; + /** + * Details of the account statement BAI2 export. This field will be present when the `category` is equal to `account_statement_bai2`. + */ + #[Required('account_statement_bai2')] + public ?AccountStatementBai2 $accountStatementBai2; + + /** + * Details of the account statement OFX export. This field will be present when the `category` is equal to `account_statement_ofx`. + */ + #[Required('account_statement_ofx')] + public ?AccountStatementOfx $accountStatementOfx; + + /** + * Details of the account verification letter export. This field will be present when the `category` is equal to `account_verification_letter`. + */ + #[Required('account_verification_letter')] + public ?AccountVerificationLetter $accountVerificationLetter; + + /** + * Details of the balance CSV export. This field will be present when the `category` is equal to `balance_csv`. + */ + #[Required('balance_csv')] + public ?BalanceCsv $balanceCsv; + + /** + * Details of the bookkeeping account balance CSV export. This field will be present when the `category` is equal to `bookkeeping_account_balance_csv`. + */ + #[Required('bookkeeping_account_balance_csv')] + public ?BookkeepingAccountBalanceCsv $bookkeepingAccountBalanceCsv; + /** * The category of the Export. We may add additional possible values for this enum over time; your application should be able to handle that gracefully. * @@ -50,6 +117,18 @@ final class Export implements BaseModel #[Required('created_at')] public \DateTimeInterface $createdAt; + /** + * Details of the dashboard table CSV export. This field will be present when the `category` is equal to `dashboard_table_csv`. + */ + #[Required('dashboard_table_csv')] + public ?DashboardTableCsv $dashboardTableCsv; + + /** + * Details of the entity CSV export. This field will be present when the `category` is equal to `entity_csv`. + */ + #[Required('entity_csv')] + public ?EntityCsv $entityCsv; + /** * A URL at which the Export's file can be downloaded. This will be present when the Export's status transitions to `complete`. */ @@ -62,6 +141,24 @@ final class Export implements BaseModel #[Required('file_id')] public ?string $fileID; + /** + * Details of the Form 1099-INT export. This field will be present when the `category` is equal to `form_1099_int`. + */ + #[Required('form_1099_int')] + public ?Form1099Int $form1099Int; + + /** + * Details of the Form 1099-MISC export. This field will be present when the `category` is equal to `form_1099_misc`. + */ + #[Required('form_1099_misc')] + public ?Form1099Misc $form1099Misc; + + /** + * Details of the funding instructions export. This field will be present when the `category` is equal to `funding_instructions`. + */ + #[Required('funding_instructions')] + public ?FundingInstructions $fundingInstructions; + /** * The idempotency key you chose for this object. This value is unique across Increase and is used to ensure that a request is only processed once. Learn more about [idempotency](https://increase.com/documentation/idempotency-keys). */ @@ -76,6 +173,12 @@ final class Export implements BaseModel #[Required(enum: Status::class)] public string $status; + /** + * Details of the transaction CSV export. This field will be present when the `category` is equal to `transaction_csv`. + */ + #[Required('transaction_csv')] + public ?TransactionCsv $transactionCsv; + /** * A constant representing the object's type. For this resource it will always be `export`. * @@ -84,6 +187,12 @@ final class Export implements BaseModel #[Required(enum: Type::class)] public string $type; + /** + * Details of the vendor CSV export. This field will be present when the `category` is equal to `vendor_csv`. + */ + #[Required('vendor_csv')] + public ?VendorCsv $vendorCsv; + /** * `new Export()` is missing required properties by the API. * @@ -91,13 +200,25 @@ final class Export implements BaseModel * ``` * Export::with( * id: ..., + * accountStatementBai2: ..., + * accountStatementOfx: ..., + * accountVerificationLetter: ..., + * balanceCsv: ..., + * bookkeepingAccountBalanceCsv: ..., * category: ..., * createdAt: ..., + * dashboardTableCsv: ..., + * entityCsv: ..., * fileDownloadURL: ..., * fileID: ..., + * form1099Int: ..., + * form1099Misc: ..., + * fundingInstructions: ..., * idempotencyKey: ..., * status: ..., + * transactionCsv: ..., * type: ..., + * vendorCsv: ..., * ) * ``` * @@ -106,13 +227,25 @@ final class Export implements BaseModel * ``` * (new Export) * ->withID(...) + * ->withAccountStatementBai2(...) + * ->withAccountStatementOfx(...) + * ->withAccountVerificationLetter(...) + * ->withBalanceCsv(...) + * ->withBookkeepingAccountBalanceCsv(...) * ->withCategory(...) * ->withCreatedAt(...) + * ->withDashboardTableCsv(...) + * ->withEntityCsv(...) * ->withFileDownloadURL(...) * ->withFileID(...) + * ->withForm1099Int(...) + * ->withForm1099Misc(...) + * ->withFundingInstructions(...) * ->withIdempotencyKey(...) * ->withStatus(...) + * ->withTransactionCsv(...) * ->withType(...) + * ->withVendorCsv(...) * ``` */ public function __construct() @@ -125,30 +258,66 @@ public function __construct() * * You must use named parameters to construct any parameters with a default value. * + * @param AccountStatementBai2|AccountStatementBai2Shape|null $accountStatementBai2 + * @param AccountStatementOfx|AccountStatementOfxShape|null $accountStatementOfx + * @param AccountVerificationLetter|AccountVerificationLetterShape|null $accountVerificationLetter + * @param BalanceCsv|BalanceCsvShape|null $balanceCsv + * @param BookkeepingAccountBalanceCsv|BookkeepingAccountBalanceCsvShape|null $bookkeepingAccountBalanceCsv * @param Category|value-of $category + * @param DashboardTableCsv|DashboardTableCsvShape|null $dashboardTableCsv + * @param EntityCsv|EntityCsvShape|null $entityCsv + * @param Form1099Int|Form1099IntShape|null $form1099Int + * @param Form1099Misc|Form1099MiscShape|null $form1099Misc + * @param FundingInstructions|FundingInstructionsShape|null $fundingInstructions * @param Status|value-of $status + * @param TransactionCsv|TransactionCsvShape|null $transactionCsv * @param Type|value-of $type + * @param VendorCsv|VendorCsvShape|null $vendorCsv */ public static function with( string $id, + AccountStatementBai2|array|null $accountStatementBai2, + AccountStatementOfx|array|null $accountStatementOfx, + AccountVerificationLetter|array|null $accountVerificationLetter, + BalanceCsv|array|null $balanceCsv, + BookkeepingAccountBalanceCsv|array|null $bookkeepingAccountBalanceCsv, Category|string $category, \DateTimeInterface $createdAt, + DashboardTableCsv|array|null $dashboardTableCsv, + EntityCsv|array|null $entityCsv, ?string $fileDownloadURL, ?string $fileID, + Form1099Int|array|null $form1099Int, + Form1099Misc|array|null $form1099Misc, + FundingInstructions|array|null $fundingInstructions, ?string $idempotencyKey, Status|string $status, + TransactionCsv|array|null $transactionCsv, Type|string $type, + VendorCsv|array|null $vendorCsv, ): self { $self = new self; $self['id'] = $id; + $self['accountStatementBai2'] = $accountStatementBai2; + $self['accountStatementOfx'] = $accountStatementOfx; + $self['accountVerificationLetter'] = $accountVerificationLetter; + $self['balanceCsv'] = $balanceCsv; + $self['bookkeepingAccountBalanceCsv'] = $bookkeepingAccountBalanceCsv; $self['category'] = $category; $self['createdAt'] = $createdAt; + $self['dashboardTableCsv'] = $dashboardTableCsv; + $self['entityCsv'] = $entityCsv; $self['fileDownloadURL'] = $fileDownloadURL; $self['fileID'] = $fileID; + $self['form1099Int'] = $form1099Int; + $self['form1099Misc'] = $form1099Misc; + $self['fundingInstructions'] = $fundingInstructions; $self['idempotencyKey'] = $idempotencyKey; $self['status'] = $status; + $self['transactionCsv'] = $transactionCsv; $self['type'] = $type; + $self['vendorCsv'] = $vendorCsv; return $self; } @@ -164,6 +333,75 @@ public function withID(string $id): self return $self; } + /** + * Details of the account statement BAI2 export. This field will be present when the `category` is equal to `account_statement_bai2`. + * + * @param AccountStatementBai2|AccountStatementBai2Shape|null $accountStatementBai2 + */ + public function withAccountStatementBai2( + AccountStatementBai2|array|null $accountStatementBai2 + ): self { + $self = clone $this; + $self['accountStatementBai2'] = $accountStatementBai2; + + return $self; + } + + /** + * Details of the account statement OFX export. This field will be present when the `category` is equal to `account_statement_ofx`. + * + * @param AccountStatementOfx|AccountStatementOfxShape|null $accountStatementOfx + */ + public function withAccountStatementOfx( + AccountStatementOfx|array|null $accountStatementOfx + ): self { + $self = clone $this; + $self['accountStatementOfx'] = $accountStatementOfx; + + return $self; + } + + /** + * Details of the account verification letter export. This field will be present when the `category` is equal to `account_verification_letter`. + * + * @param AccountVerificationLetter|AccountVerificationLetterShape|null $accountVerificationLetter + */ + public function withAccountVerificationLetter( + AccountVerificationLetter|array|null $accountVerificationLetter + ): self { + $self = clone $this; + $self['accountVerificationLetter'] = $accountVerificationLetter; + + return $self; + } + + /** + * Details of the balance CSV export. This field will be present when the `category` is equal to `balance_csv`. + * + * @param BalanceCsv|BalanceCsvShape|null $balanceCsv + */ + public function withBalanceCsv(BalanceCsv|array|null $balanceCsv): self + { + $self = clone $this; + $self['balanceCsv'] = $balanceCsv; + + return $self; + } + + /** + * Details of the bookkeeping account balance CSV export. This field will be present when the `category` is equal to `bookkeeping_account_balance_csv`. + * + * @param BookkeepingAccountBalanceCsv|BookkeepingAccountBalanceCsvShape|null $bookkeepingAccountBalanceCsv + */ + public function withBookkeepingAccountBalanceCsv( + BookkeepingAccountBalanceCsv|array|null $bookkeepingAccountBalanceCsv + ): self { + $self = clone $this; + $self['bookkeepingAccountBalanceCsv'] = $bookkeepingAccountBalanceCsv; + + return $self; + } + /** * The category of the Export. We may add additional possible values for this enum over time; your application should be able to handle that gracefully. * @@ -188,6 +426,33 @@ public function withCreatedAt(\DateTimeInterface $createdAt): self return $self; } + /** + * Details of the dashboard table CSV export. This field will be present when the `category` is equal to `dashboard_table_csv`. + * + * @param DashboardTableCsv|DashboardTableCsvShape|null $dashboardTableCsv + */ + public function withDashboardTableCsv( + DashboardTableCsv|array|null $dashboardTableCsv + ): self { + $self = clone $this; + $self['dashboardTableCsv'] = $dashboardTableCsv; + + return $self; + } + + /** + * Details of the entity CSV export. This field will be present when the `category` is equal to `entity_csv`. + * + * @param EntityCsv|EntityCsvShape|null $entityCsv + */ + public function withEntityCsv(EntityCsv|array|null $entityCsv): self + { + $self = clone $this; + $self['entityCsv'] = $entityCsv; + + return $self; + } + /** * A URL at which the Export's file can be downloaded. This will be present when the Export's status transitions to `complete`. */ @@ -210,6 +475,47 @@ public function withFileID(?string $fileID): self return $self; } + /** + * Details of the Form 1099-INT export. This field will be present when the `category` is equal to `form_1099_int`. + * + * @param Form1099Int|Form1099IntShape|null $form1099Int + */ + public function withForm1099Int(Form1099Int|array|null $form1099Int): self + { + $self = clone $this; + $self['form1099Int'] = $form1099Int; + + return $self; + } + + /** + * Details of the Form 1099-MISC export. This field will be present when the `category` is equal to `form_1099_misc`. + * + * @param Form1099Misc|Form1099MiscShape|null $form1099Misc + */ + public function withForm1099Misc( + Form1099Misc|array|null $form1099Misc + ): self { + $self = clone $this; + $self['form1099Misc'] = $form1099Misc; + + return $self; + } + + /** + * Details of the funding instructions export. This field will be present when the `category` is equal to `funding_instructions`. + * + * @param FundingInstructions|FundingInstructionsShape|null $fundingInstructions + */ + public function withFundingInstructions( + FundingInstructions|array|null $fundingInstructions + ): self { + $self = clone $this; + $self['fundingInstructions'] = $fundingInstructions; + + return $self; + } + /** * The idempotency key you chose for this object. This value is unique across Increase and is used to ensure that a request is only processed once. Learn more about [idempotency](https://increase.com/documentation/idempotency-keys). */ @@ -234,6 +540,20 @@ public function withStatus(Status|string $status): self return $self; } + /** + * Details of the transaction CSV export. This field will be present when the `category` is equal to `transaction_csv`. + * + * @param TransactionCsv|TransactionCsvShape|null $transactionCsv + */ + public function withTransactionCsv( + TransactionCsv|array|null $transactionCsv + ): self { + $self = clone $this; + $self['transactionCsv'] = $transactionCsv; + + return $self; + } + /** * A constant representing the object's type. For this resource it will always be `export`. * @@ -246,4 +566,17 @@ public function withType(Type|string $type): self return $self; } + + /** + * Details of the vendor CSV export. This field will be present when the `category` is equal to `vendor_csv`. + * + * @param VendorCsv|VendorCsvShape|null $vendorCsv + */ + public function withVendorCsv(VendorCsv|array|null $vendorCsv): self + { + $self = clone $this; + $self['vendorCsv'] = $vendorCsv; + + return $self; + } } diff --git a/src/Exports/Export/AccountStatementBai2.php b/src/Exports/Export/AccountStatementBai2.php new file mode 100644 index 0000000..033dbec --- /dev/null +++ b/src/Exports/Export/AccountStatementBai2.php @@ -0,0 +1,114 @@ + */ + use SdkModel; + + /** + * Filter results by Account. + */ + #[Required('account_id')] + public ?string $accountID; + + /** + * The date for which to retrieve the balance. + */ + #[Required('effective_date')] + public ?string $effectiveDate; + + /** + * Filter results by Program. + */ + #[Required('program_id')] + public ?string $programID; + + /** + * `new AccountStatementBai2()` is missing required properties by the API. + * + * To enforce required parameters use + * ``` + * AccountStatementBai2::with(accountID: ..., effectiveDate: ..., programID: ...) + * ``` + * + * Otherwise ensure the following setters are called + * + * ``` + * (new AccountStatementBai2) + * ->withAccountID(...) + * ->withEffectiveDate(...) + * ->withProgramID(...) + * ``` + */ + 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 $accountID, + ?string $effectiveDate, + ?string $programID + ): self { + $self = new self; + + $self['accountID'] = $accountID; + $self['effectiveDate'] = $effectiveDate; + $self['programID'] = $programID; + + return $self; + } + + /** + * Filter results by Account. + */ + public function withAccountID(?string $accountID): self + { + $self = clone $this; + $self['accountID'] = $accountID; + + return $self; + } + + /** + * The date for which to retrieve the balance. + */ + public function withEffectiveDate(?string $effectiveDate): self + { + $self = clone $this; + $self['effectiveDate'] = $effectiveDate; + + return $self; + } + + /** + * Filter results by Program. + */ + public function withProgramID(?string $programID): self + { + $self = clone $this; + $self['programID'] = $programID; + + return $self; + } +} diff --git a/src/Exports/Export/AccountStatementOfx.php b/src/Exports/Export/AccountStatementOfx.php new file mode 100644 index 0000000..d97382c --- /dev/null +++ b/src/Exports/Export/AccountStatementOfx.php @@ -0,0 +1,99 @@ + */ + use SdkModel; + + /** + * The Account to create a statement for. + */ + #[Required('account_id')] + public string $accountID; + + /** + * Filter transactions by their created date. + */ + #[Required('created_at')] + public ?CreatedAt $createdAt; + + /** + * `new AccountStatementOfx()` is missing required properties by the API. + * + * To enforce required parameters use + * ``` + * AccountStatementOfx::with(accountID: ..., createdAt: ...) + * ``` + * + * Otherwise ensure the following setters are called + * + * ``` + * (new AccountStatementOfx)->withAccountID(...)->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( + string $accountID, + CreatedAt|array|null $createdAt + ): self { + $self = new self; + + $self['accountID'] = $accountID; + $self['createdAt'] = $createdAt; + + return $self; + } + + /** + * The Account to create a statement for. + */ + public function withAccountID(string $accountID): self + { + $self = clone $this; + $self['accountID'] = $accountID; + + return $self; + } + + /** + * Filter transactions by their created date. + * + * @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/AccountStatementOfx/CreatedAt.php b/src/Exports/Export/AccountStatementOfx/CreatedAt.php new file mode 100644 index 0000000..24eaf42 --- /dev/null +++ b/src/Exports/Export/AccountStatementOfx/CreatedAt.php @@ -0,0 +1,92 @@ + */ + use SdkModel; + + /** + * Filter results to transactions created after this time. + */ + #[Required] + public ?\DateTimeInterface $after; + + /** + * Filter results to transactions 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 results to transactions created after this time. + */ + public function withAfter(?\DateTimeInterface $after): self + { + $self = clone $this; + $self['after'] = $after; + + return $self; + } + + /** + * Filter results to transactions created before this time. + */ + public function withBefore(?\DateTimeInterface $before): self + { + $self = clone $this; + $self['before'] = $before; + + return $self; + } +} diff --git a/src/Exports/Export/AccountVerificationLetter.php b/src/Exports/Export/AccountVerificationLetter.php new file mode 100644 index 0000000..eae77ec --- /dev/null +++ b/src/Exports/Export/AccountVerificationLetter.php @@ -0,0 +1,92 @@ + */ + use SdkModel; + + /** + * The Account Number to create a letter for. + */ + #[Required('account_number_id')] + public string $accountNumberID; + + /** + * The date of the balance to include in the letter. + */ + #[Required('balance_date')] + public ?string $balanceDate; + + /** + * `new AccountVerificationLetter()` is missing required properties by the API. + * + * To enforce required parameters use + * ``` + * AccountVerificationLetter::with(accountNumberID: ..., balanceDate: ...) + * ``` + * + * Otherwise ensure the following setters are called + * + * ``` + * (new AccountVerificationLetter)->withAccountNumberID(...)->withBalanceDate(...) + * ``` + */ + 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 $accountNumberID, + ?string $balanceDate + ): self { + $self = new self; + + $self['accountNumberID'] = $accountNumberID; + $self['balanceDate'] = $balanceDate; + + return $self; + } + + /** + * The Account Number to create a letter for. + */ + public function withAccountNumberID(string $accountNumberID): self + { + $self = clone $this; + $self['accountNumberID'] = $accountNumberID; + + return $self; + } + + /** + * The date of the balance to include in the letter. + */ + public function withBalanceDate(?string $balanceDate): self + { + $self = clone $this; + $self['balanceDate'] = $balanceDate; + + return $self; + } +} diff --git a/src/Exports/Export/BalanceCsv.php b/src/Exports/Export/BalanceCsv.php new file mode 100644 index 0000000..8cdb99c --- /dev/null +++ b/src/Exports/Export/BalanceCsv.php @@ -0,0 +1,99 @@ + */ + use SdkModel; + + /** + * Filter results by Account. + */ + #[Required('account_id')] + public ?string $accountID; + + /** + * Filter balances by their created date. + */ + #[Required('created_at')] + public ?CreatedAt $createdAt; + + /** + * `new BalanceCsv()` is missing required properties by the API. + * + * To enforce required parameters use + * ``` + * BalanceCsv::with(accountID: ..., createdAt: ...) + * ``` + * + * Otherwise ensure the following setters are called + * + * ``` + * (new BalanceCsv)->withAccountID(...)->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( + ?string $accountID, + CreatedAt|array|null $createdAt + ): self { + $self = new self; + + $self['accountID'] = $accountID; + $self['createdAt'] = $createdAt; + + return $self; + } + + /** + * Filter results by Account. + */ + public function withAccountID(?string $accountID): self + { + $self = clone $this; + $self['accountID'] = $accountID; + + return $self; + } + + /** + * Filter balances by their created date. + * + * @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/BalanceCsv/CreatedAt.php b/src/Exports/Export/BalanceCsv/CreatedAt.php new file mode 100644 index 0000000..8472e5c --- /dev/null +++ b/src/Exports/Export/BalanceCsv/CreatedAt.php @@ -0,0 +1,92 @@ + */ + use SdkModel; + + /** + * Filter balances created after this time. + */ + #[Required] + public ?\DateTimeInterface $after; + + /** + * Filter balances 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 balances created after this time. + */ + public function withAfter(?\DateTimeInterface $after): self + { + $self = clone $this; + $self['after'] = $after; + + return $self; + } + + /** + * Filter balances created before this time. + */ + public function withBefore(?\DateTimeInterface $before): self + { + $self = clone $this; + $self['before'] = $before; + + return $self; + } +} diff --git a/src/Exports/Export/BookkeepingAccountBalanceCsv.php b/src/Exports/Export/BookkeepingAccountBalanceCsv.php new file mode 100644 index 0000000..4cc8537 --- /dev/null +++ b/src/Exports/Export/BookkeepingAccountBalanceCsv.php @@ -0,0 +1,102 @@ + */ + use SdkModel; + + /** + * Filter results by Bookkeeping Account. + */ + #[Required('bookkeeping_account_id')] + public ?string $bookkeepingAccountID; + + /** + * Filter balances by their created date. + */ + #[Required('created_at')] + public ?CreatedAt $createdAt; + + /** + * `new BookkeepingAccountBalanceCsv()` is missing required properties by the API. + * + * To enforce required parameters use + * ``` + * BookkeepingAccountBalanceCsv::with(bookkeepingAccountID: ..., createdAt: ...) + * ``` + * + * Otherwise ensure the following setters are called + * + * ``` + * (new BookkeepingAccountBalanceCsv) + * ->withBookkeepingAccountID(...) + * ->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( + ?string $bookkeepingAccountID, + CreatedAt|array|null $createdAt + ): self { + $self = new self; + + $self['bookkeepingAccountID'] = $bookkeepingAccountID; + $self['createdAt'] = $createdAt; + + return $self; + } + + /** + * Filter results by Bookkeeping Account. + */ + public function withBookkeepingAccountID( + ?string $bookkeepingAccountID + ): self { + $self = clone $this; + $self['bookkeepingAccountID'] = $bookkeepingAccountID; + + return $self; + } + + /** + * Filter balances by their created date. + * + * @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/BookkeepingAccountBalanceCsv/CreatedAt.php b/src/Exports/Export/BookkeepingAccountBalanceCsv/CreatedAt.php new file mode 100644 index 0000000..e51aa0f --- /dev/null +++ b/src/Exports/Export/BookkeepingAccountBalanceCsv/CreatedAt.php @@ -0,0 +1,92 @@ + */ + use SdkModel; + + /** + * Filter balances created after this time. + */ + #[Required] + public ?\DateTimeInterface $after; + + /** + * Filter balances 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 balances created after this time. + */ + public function withAfter(?\DateTimeInterface $after): self + { + $self = clone $this; + $self['after'] = $after; + + return $self; + } + + /** + * Filter balances created before this time. + */ + public function withBefore(?\DateTimeInterface $before): self + { + $self = clone $this; + $self['before'] = $before; + + return $self; + } +} diff --git a/src/Exports/Export/DashboardTableCsv.php b/src/Exports/Export/DashboardTableCsv.php new file mode 100644 index 0000000..17e997f --- /dev/null +++ b/src/Exports/Export/DashboardTableCsv.php @@ -0,0 +1,34 @@ + + */ +final class DashboardTableCsv implements BaseModel +{ + /** @use SdkModel */ + use SdkModel; + + 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(): self + { + return new self; + } +} diff --git a/src/Exports/Export/EntityCsv.php b/src/Exports/Export/EntityCsv.php new file mode 100644 index 0000000..7d84739 --- /dev/null +++ b/src/Exports/Export/EntityCsv.php @@ -0,0 +1,34 @@ + + */ +final class EntityCsv implements BaseModel +{ + /** @use SdkModel */ + use SdkModel; + + 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(): self + { + return new self; + } +} diff --git a/src/Exports/Export/Form1099Int.php b/src/Exports/Export/Form1099Int.php new file mode 100644 index 0000000..8af38ff --- /dev/null +++ b/src/Exports/Export/Form1099Int.php @@ -0,0 +1,134 @@ + */ + use SdkModel; + + /** + * The Account the tax form is for. + */ + #[Required('account_id')] + public string $accountID; + + /** + * Whether the tax form is a corrected form. + */ + #[Required] + public bool $corrected; + + /** + * A description of the tax form. + */ + #[Required] + public string $description; + + /** + * The tax year for the tax form. + */ + #[Required] + public int $year; + + /** + * `new Form1099Int()` is missing required properties by the API. + * + * To enforce required parameters use + * ``` + * Form1099Int::with(accountID: ..., corrected: ..., description: ..., year: ...) + * ``` + * + * Otherwise ensure the following setters are called + * + * ``` + * (new Form1099Int) + * ->withAccountID(...) + * ->withCorrected(...) + * ->withDescription(...) + * ->withYear(...) + * ``` + */ + 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 $accountID, + bool $corrected, + string $description, + int $year + ): self { + $self = new self; + + $self['accountID'] = $accountID; + $self['corrected'] = $corrected; + $self['description'] = $description; + $self['year'] = $year; + + return $self; + } + + /** + * The Account the tax form is for. + */ + public function withAccountID(string $accountID): self + { + $self = clone $this; + $self['accountID'] = $accountID; + + return $self; + } + + /** + * Whether the tax form is a corrected form. + */ + public function withCorrected(bool $corrected): self + { + $self = clone $this; + $self['corrected'] = $corrected; + + return $self; + } + + /** + * A description of the tax form. + */ + public function withDescription(string $description): self + { + $self = clone $this; + $self['description'] = $description; + + return $self; + } + + /** + * The tax year for the tax form. + */ + public function withYear(int $year): self + { + $self = clone $this; + $self['year'] = $year; + + return $self; + } +} diff --git a/src/Exports/Export/Form1099Misc.php b/src/Exports/Export/Form1099Misc.php new file mode 100644 index 0000000..a293c69 --- /dev/null +++ b/src/Exports/Export/Form1099Misc.php @@ -0,0 +1,111 @@ + */ + use SdkModel; + + /** + * The Account the tax form is for. + */ + #[Required('account_id')] + public string $accountID; + + /** + * Whether the tax form is a corrected form. + */ + #[Required] + public bool $corrected; + + /** + * The tax year for the tax form. + */ + #[Required] + public int $year; + + /** + * `new Form1099Misc()` is missing required properties by the API. + * + * To enforce required parameters use + * ``` + * Form1099Misc::with(accountID: ..., corrected: ..., year: ...) + * ``` + * + * Otherwise ensure the following setters are called + * + * ``` + * (new Form1099Misc)->withAccountID(...)->withCorrected(...)->withYear(...) + * ``` + */ + 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 $accountID, + bool $corrected, + int $year + ): self { + $self = new self; + + $self['accountID'] = $accountID; + $self['corrected'] = $corrected; + $self['year'] = $year; + + return $self; + } + + /** + * The Account the tax form is for. + */ + public function withAccountID(string $accountID): self + { + $self = clone $this; + $self['accountID'] = $accountID; + + return $self; + } + + /** + * Whether the tax form is a corrected form. + */ + public function withCorrected(bool $corrected): self + { + $self = clone $this; + $self['corrected'] = $corrected; + + return $self; + } + + /** + * The tax year for the tax form. + */ + public function withYear(int $year): self + { + $self = clone $this; + $self['year'] = $year; + + return $self; + } +} diff --git a/src/Exports/Export/FundingInstructions.php b/src/Exports/Export/FundingInstructions.php new file mode 100644 index 0000000..c9cc3ef --- /dev/null +++ b/src/Exports/Export/FundingInstructions.php @@ -0,0 +1,70 @@ + */ + use SdkModel; + + /** + * The Account Number to create funding instructions for. + */ + #[Required('account_number_id')] + public string $accountNumberID; + + /** + * `new FundingInstructions()` is missing required properties by the API. + * + * To enforce required parameters use + * ``` + * FundingInstructions::with(accountNumberID: ...) + * ``` + * + * Otherwise ensure the following setters are called + * + * ``` + * (new FundingInstructions)->withAccountNumberID(...) + * ``` + */ + 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 $accountNumberID): self + { + $self = new self; + + $self['accountNumberID'] = $accountNumberID; + + return $self; + } + + /** + * The Account Number to create funding instructions for. + */ + public function withAccountNumberID(string $accountNumberID): self + { + $self = clone $this; + $self['accountNumberID'] = $accountNumberID; + + return $self; + } +} diff --git a/src/Exports/Export/TransactionCsv.php b/src/Exports/Export/TransactionCsv.php new file mode 100644 index 0000000..e9c9884 --- /dev/null +++ b/src/Exports/Export/TransactionCsv.php @@ -0,0 +1,99 @@ + */ + use SdkModel; + + /** + * Filter results by Account. + */ + #[Required('account_id')] + public ?string $accountID; + + /** + * Filter transactions by their created date. + */ + #[Required('created_at')] + public ?CreatedAt $createdAt; + + /** + * `new TransactionCsv()` is missing required properties by the API. + * + * To enforce required parameters use + * ``` + * TransactionCsv::with(accountID: ..., createdAt: ...) + * ``` + * + * Otherwise ensure the following setters are called + * + * ``` + * (new TransactionCsv)->withAccountID(...)->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( + ?string $accountID, + CreatedAt|array|null $createdAt + ): self { + $self = new self; + + $self['accountID'] = $accountID; + $self['createdAt'] = $createdAt; + + return $self; + } + + /** + * Filter results by Account. + */ + public function withAccountID(?string $accountID): self + { + $self = clone $this; + $self['accountID'] = $accountID; + + return $self; + } + + /** + * Filter transactions by their created date. + * + * @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/TransactionCsv/CreatedAt.php b/src/Exports/Export/TransactionCsv/CreatedAt.php new file mode 100644 index 0000000..2db65ae --- /dev/null +++ b/src/Exports/Export/TransactionCsv/CreatedAt.php @@ -0,0 +1,92 @@ + */ + use SdkModel; + + /** + * Filter transactions created after this time. + */ + #[Required] + public ?\DateTimeInterface $after; + + /** + * Filter transactions 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 transactions created after this time. + */ + public function withAfter(?\DateTimeInterface $after): self + { + $self = clone $this; + $self['after'] = $after; + + return $self; + } + + /** + * Filter transactions created before this time. + */ + public function withBefore(?\DateTimeInterface $before): self + { + $self = clone $this; + $self['before'] = $before; + + return $self; + } +} diff --git a/src/Exports/Export/VendorCsv.php b/src/Exports/Export/VendorCsv.php new file mode 100644 index 0000000..332f8f1 --- /dev/null +++ b/src/Exports/Export/VendorCsv.php @@ -0,0 +1,34 @@ + + */ +final class VendorCsv implements BaseModel +{ + /** @use SdkModel */ + use SdkModel; + + 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(): self + { + return new self; + } +} From 9774c002edbf9485eb67768b30ea9fd8314b639e Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 3 Feb 2026 01:50:22 +0000 Subject: [PATCH 2/2] release: 0.20.0 --- .release-please-manifest.json | 2 +- CHANGELOG.md | 8 ++++++++ README.md | 2 +- src/Version.php | 2 +- 4 files changed, 11 insertions(+), 3 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index e756293..0c2ecec 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.19.0" + ".": "0.20.0" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index cbc3be4..7435c34 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 0.20.0 (2026-02-03) + +Full Changelog: [v0.19.0...v0.20.0](https://github.com/Increase/increase-php/compare/v0.19.0...v0.20.0) + +### Features + +* **api:** api update ([ca258a5](https://github.com/Increase/increase-php/commit/ca258a5fe6445298d6250dcad7a912e9eee055b0)) + ## 0.19.0 (2026-02-03) Full Changelog: [v0.18.0...v0.19.0](https://github.com/Increase/increase-php/compare/v0.18.0...v0.19.0) diff --git a/README.md b/README.md index 6df4b17..a20d3cd 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.19.0" +composer require "increase/increase 0.20.0" ``` diff --git a/src/Version.php b/src/Version.php index afe28f1..ceae40b 100644 --- a/src/Version.php +++ b/src/Version.php @@ -5,5 +5,5 @@ namespace Increase; // x-release-please-start-version -const VERSION = '0.19.0'; +const VERSION = '0.20.0'; // x-release-please-end