Skip to content

Commit 544cdfa

Browse files
feat(api): api update
1 parent 87116c8 commit 544cdfa

File tree

5 files changed

+28
-2
lines changed

5 files changed

+28
-2
lines changed

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 237
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-aceacff825bf677100a4d4554b2b3dad7ba442bbe26bc7f18b4153c54c3624e8.yml
3-
openapi_spec_hash: 7fa7a382bd4d1db423b5345a8535d23b
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-1a8ae6b4ff6276a68a103dca4c701c77d409afe3f08ef8435adb3527e1385ce7.yml
3+
openapi_spec_hash: d56da3ae77306aec4c8530fba0dfe053
44
config_hash: 896b006f9647a513eda3b228cf17c199

src/BeneficialOwners/BeneficialOwnerUpdateParams.php

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
* address?: null|Address|AddressShape,
2424
* confirmedNoUsTaxID?: bool|null,
2525
* identification?: null|Identification|IdentificationShape,
26+
* name?: string|null,
2627
* }
2728
*/
2829
final class BeneficialOwnerUpdateParams implements BaseModel
@@ -49,6 +50,12 @@ final class BeneficialOwnerUpdateParams implements BaseModel
4950
#[Optional]
5051
public ?Identification $identification;
5152

53+
/**
54+
* The individual's legal name.
55+
*/
56+
#[Optional]
57+
public ?string $name;
58+
5259
public function __construct()
5360
{
5461
$this->initialize();
@@ -66,12 +73,14 @@ public static function with(
6673
Address|array|null $address = null,
6774
?bool $confirmedNoUsTaxID = null,
6875
Identification|array|null $identification = null,
76+
?string $name = null,
6977
): self {
7078
$self = new self;
7179

7280
null !== $address && $self['address'] = $address;
7381
null !== $confirmedNoUsTaxID && $self['confirmedNoUsTaxID'] = $confirmedNoUsTaxID;
7482
null !== $identification && $self['identification'] = $identification;
83+
null !== $name && $self['name'] = $name;
7584

7685
return $self;
7786
}
@@ -113,4 +122,15 @@ public function withIdentification(
113122

114123
return $self;
115124
}
125+
126+
/**
127+
* The individual's legal name.
128+
*/
129+
public function withName(string $name): self
130+
{
131+
$self = clone $this;
132+
$self['name'] = $name;
133+
134+
return $self;
135+
}
116136
}

src/ServiceContracts/BeneficialOwnersContract.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ public function retrieve(
3838
* @param Address|AddressShape $address The individual's physical address. Mail receiving locations like PO Boxes and PMB's are disallowed.
3939
* @param bool $confirmedNoUsTaxID 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)
4040
* @param Identification|IdentificationShape $identification a means of verifying the person's identity
41+
* @param string $name the individual's legal name
4142
* @param RequestOpts|null $requestOptions
4243
*
4344
* @throws APIException
@@ -47,6 +48,7 @@ public function update(
4748
Address|array|null $address = null,
4849
?bool $confirmedNoUsTaxID = null,
4950
Identification|array|null $identification = null,
51+
?string $name = null,
5052
RequestOptions|array|null $requestOptions = null,
5153
): EntityBeneficialOwner;
5254

src/Services/BeneficialOwnersRawService.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ public function retrieve(
6565
* address?: Address|AddressShape,
6666
* confirmedNoUsTaxID?: bool,
6767
* identification?: Identification|IdentificationShape,
68+
* name?: string,
6869
* }|BeneficialOwnerUpdateParams $params
6970
* @param RequestOpts|null $requestOptions
7071
*

src/Services/BeneficialOwnersService.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ public function retrieve(
6363
* @param Address|AddressShape $address The individual's physical address. Mail receiving locations like PO Boxes and PMB's are disallowed.
6464
* @param bool $confirmedNoUsTaxID 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)
6565
* @param Identification|IdentificationShape $identification a means of verifying the person's identity
66+
* @param string $name the individual's legal name
6667
* @param RequestOpts|null $requestOptions
6768
*
6869
* @throws APIException
@@ -72,13 +73,15 @@ public function update(
7273
Address|array|null $address = null,
7374
?bool $confirmedNoUsTaxID = null,
7475
Identification|array|null $identification = null,
76+
?string $name = null,
7577
RequestOptions|array|null $requestOptions = null,
7678
): EntityBeneficialOwner {
7779
$params = Util::removeNulls(
7880
[
7981
'address' => $address,
8082
'confirmedNoUsTaxID' => $confirmedNoUsTaxID,
8183
'identification' => $identification,
84+
'name' => $name,
8285
],
8386
);
8487

0 commit comments

Comments
 (0)