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.68.0"
".": "0.69.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: 237
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-defae23482710e9c09a4a09f19b5de303c58f4b3ffd937c6dfafacb4124f4378.yml
openapi_spec_hash: f1404bbd3ac5cbd9cfb952f3c65bb406
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-aceacff825bf677100a4d4554b2b3dad7ba442bbe26bc7f18b4153c54c3624e8.yml
openapi_spec_hash: 7fa7a382bd4d1db423b5345a8535d23b
config_hash: 896b006f9647a513eda3b228cf17c199
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## 0.69.0 (2026-03-11)

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

### Features

* **api:** api update ([089094a](https://github.com/Increase/increase-php/commit/089094a4b662356d2fd87818bee554e976def4d0))

## 0.68.0 (2026-03-11)

Full Changelog: [v0.67.0...v0.68.0](https://github.com/Increase/increase-php/compare/v0.67.0...v0.68.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.68.0"
composer require "increase/increase 0.69.0"
```

<!-- x-release-please-end -->
Expand Down
53 changes: 50 additions & 3 deletions src/BeneficialOwners/BeneficialOwnerUpdateParams.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
namespace Increase\BeneficialOwners;

use Increase\BeneficialOwners\BeneficialOwnerUpdateParams\Address;
use Increase\BeneficialOwners\BeneficialOwnerUpdateParams\Identification;
use Increase\Core\Attributes\Optional;
use Increase\Core\Concerns\SdkModel;
use Increase\Core\Concerns\SdkParams;
Expand All @@ -16,9 +17,12 @@
* @see Increase\Services\BeneficialOwnersService::update()
*
* @phpstan-import-type AddressShape from \Increase\BeneficialOwners\BeneficialOwnerUpdateParams\Address
* @phpstan-import-type IdentificationShape from \Increase\BeneficialOwners\BeneficialOwnerUpdateParams\Identification
*
* @phpstan-type BeneficialOwnerUpdateParamsShape = array{
* address?: null|Address|AddressShape
* address?: null|Address|AddressShape,
* confirmedNoUsTaxID?: bool|null,
* identification?: null|Identification|IdentificationShape,
* }
*/
final class BeneficialOwnerUpdateParams implements BaseModel
Expand All @@ -33,6 +37,18 @@ final class BeneficialOwnerUpdateParams implements BaseModel
#[Optional]
public ?Address $address;

/**
* The identification method for an individual can only be a passport, driver's license, or other document if you've confirmed the individual does not have a US tax id (either a Social Security Number or Individual Taxpayer Identification Number).
*/
#[Optional('confirmed_no_us_tax_id')]
public ?bool $confirmedNoUsTaxID;

/**
* A means of verifying the person's identity.
*/
#[Optional]
public ?Identification $identification;

public function __construct()
{
$this->initialize();
Expand All @@ -44,12 +60,18 @@ public function __construct()
* You must use named parameters to construct any parameters with a default value.
*
* @param Address|AddressShape|null $address
* @param Identification|IdentificationShape|null $identification
*/
public static function with(Address|array|null $address = null): self
{
public static function with(
Address|array|null $address = null,
?bool $confirmedNoUsTaxID = null,
Identification|array|null $identification = null,
): self {
$self = new self;

null !== $address && $self['address'] = $address;
null !== $confirmedNoUsTaxID && $self['confirmedNoUsTaxID'] = $confirmedNoUsTaxID;
null !== $identification && $self['identification'] = $identification;

return $self;
}
Expand All @@ -66,4 +88,29 @@ public function withAddress(Address|array $address): self

return $self;
}

/**
* The identification method for an individual can only be a passport, driver's license, or other document if you've confirmed the individual does not have a US tax id (either a Social Security Number or Individual Taxpayer Identification Number).
*/
public function withConfirmedNoUsTaxID(bool $confirmedNoUsTaxID): self
{
$self = clone $this;
$self['confirmedNoUsTaxID'] = $confirmedNoUsTaxID;

return $self;
}

/**
* A means of verifying the person's identity.
*
* @param Identification|IdentificationShape $identification
*/
public function withIdentification(
Identification|array $identification
): self {
$self = clone $this;
$self['identification'] = $identification;

return $self;
}
}
179 changes: 179 additions & 0 deletions src/BeneficialOwners/BeneficialOwnerUpdateParams/Identification.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,179 @@
<?php

declare(strict_types=1);

namespace Increase\BeneficialOwners\BeneficialOwnerUpdateParams;

use Increase\BeneficialOwners\BeneficialOwnerUpdateParams\Identification\DriversLicense;
use Increase\BeneficialOwners\BeneficialOwnerUpdateParams\Identification\Method;
use Increase\BeneficialOwners\BeneficialOwnerUpdateParams\Identification\Other;
use Increase\BeneficialOwners\BeneficialOwnerUpdateParams\Identification\Passport;
use Increase\Core\Attributes\Optional;
use Increase\Core\Attributes\Required;
use Increase\Core\Concerns\SdkModel;
use Increase\Core\Contracts\BaseModel;

/**
* A means of verifying the person's identity.
*
* @phpstan-import-type DriversLicenseShape from \Increase\BeneficialOwners\BeneficialOwnerUpdateParams\Identification\DriversLicense
* @phpstan-import-type OtherShape from \Increase\BeneficialOwners\BeneficialOwnerUpdateParams\Identification\Other
* @phpstan-import-type PassportShape from \Increase\BeneficialOwners\BeneficialOwnerUpdateParams\Identification\Passport
*
* @phpstan-type IdentificationShape = array{
* method: Method|value-of<Method>,
* number: string,
* driversLicense?: null|DriversLicense|DriversLicenseShape,
* other?: null|Other|OtherShape,
* passport?: null|Passport|PassportShape,
* }
*/
final class Identification implements BaseModel
{
/** @use SdkModel<IdentificationShape> */
use SdkModel;

/**
* A method that can be used to verify the individual's identity.
*
* @var value-of<Method> $method
*/
#[Required(enum: Method::class)]
public string $method;

/**
* An identification number that can be used to verify the individual's identity, such as a social security number.
*/
#[Required]
public string $number;

/**
* Information about the United States driver's license used for identification. Required if `method` is equal to `drivers_license`.
*/
#[Optional('drivers_license')]
public ?DriversLicense $driversLicense;

/**
* Information about the identification document provided. Required if `method` is equal to `other`.
*/
#[Optional]
public ?Other $other;

/**
* Information about the passport used for identification. Required if `method` is equal to `passport`.
*/
#[Optional]
public ?Passport $passport;

/**
* `new Identification()` is missing required properties by the API.
*
* To enforce required parameters use
* ```
* Identification::with(method: ..., number: ...)
* ```
*
* Otherwise ensure the following setters are called
*
* ```
* (new Identification)->withMethod(...)->withNumber(...)
* ```
*/
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 Method|value-of<Method> $method
* @param DriversLicense|DriversLicenseShape|null $driversLicense
* @param Other|OtherShape|null $other
* @param Passport|PassportShape|null $passport
*/
public static function with(
Method|string $method,
string $number,
DriversLicense|array|null $driversLicense = null,
Other|array|null $other = null,
Passport|array|null $passport = null,
): self {
$self = new self;

$self['method'] = $method;
$self['number'] = $number;

null !== $driversLicense && $self['driversLicense'] = $driversLicense;
null !== $other && $self['other'] = $other;
null !== $passport && $self['passport'] = $passport;

return $self;
}

/**
* A method that can be used to verify the individual's identity.
*
* @param Method|value-of<Method> $method
*/
public function withMethod(Method|string $method): self
{
$self = clone $this;
$self['method'] = $method;

return $self;
}

/**
* An identification number that can be used to verify the individual's identity, such as a social security number.
*/
public function withNumber(string $number): self
{
$self = clone $this;
$self['number'] = $number;

return $self;
}

/**
* Information about the United States driver's license used for identification. Required if `method` is equal to `drivers_license`.
*
* @param DriversLicense|DriversLicenseShape $driversLicense
*/
public function withDriversLicense(
DriversLicense|array $driversLicense
): self {
$self = clone $this;
$self['driversLicense'] = $driversLicense;

return $self;
}

/**
* Information about the identification document provided. Required if `method` is equal to `other`.
*
* @param Other|OtherShape $other
*/
public function withOther(Other|array $other): self
{
$self = clone $this;
$self['other'] = $other;

return $self;
}

/**
* Information about the passport used for identification. Required if `method` is equal to `passport`.
*
* @param Passport|PassportShape $passport
*/
public function withPassport(Passport|array $passport): self
{
$self = clone $this;
$self['passport'] = $passport;

return $self;
}
}
Loading
Loading