Skip to content

Commit a13c677

Browse files
feat(api): api update
1 parent 3247c18 commit a13c677

File tree

2 files changed

+122
-3
lines changed

2 files changed

+122
-3
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: 236
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-456b3255914e823b9e463f97ff81124dfabefae6f102e0f295bf33b7cfb1b780.yml
3-
openapi_spec_hash: ccbeda7ba9b61f9a8c2f9f4cf7a65dce
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-d5ad75c7a80acd1cb3ff0483fa0b5b2eb9d73287f107f53a8fb3a3a0b6a32ed8.yml
3+
openapi_spec_hash: da73faf476df3eddcf0ac51c38dd1b17
44
config_hash: 25d7d7aa4882db6189b4b53e8e249e80

src/resources/entities.ts

Lines changed: 120 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,8 @@ export type EntitiesPage = Page<Entity>;
8787

8888
/**
8989
* Entities are the legal entities that own accounts. They can be people,
90-
* corporations, partnerships, government authorities, or trusts.
90+
* corporations, partnerships, government authorities, or trusts. To learn more,
91+
* see [Entities](/documentation/entities).
9192
*/
9293
export interface Entity {
9394
/**
@@ -201,6 +202,11 @@ export interface Entity {
201202
*/
202203
type: 'entity';
203204

205+
/**
206+
* The validation results for the entity.
207+
*/
208+
validation: Entity.Validation | null;
209+
204210
[k: string]: unknown;
205211
}
206212

@@ -1019,6 +1025,119 @@ export namespace Entity {
10191025
}
10201026
}
10211027
}
1028+
1029+
/**
1030+
* The validation results for the entity.
1031+
*/
1032+
export interface Validation {
1033+
/**
1034+
* The list of issues that need to be addressed.
1035+
*/
1036+
issues: Array<Validation.Issue>;
1037+
1038+
/**
1039+
* The validation status for the entity. If the status is `invalid`, the `issues`
1040+
* array will be populated.
1041+
*
1042+
* - `pending` - The submitted data is being validated.
1043+
* - `valid` - The submitted data is valid.
1044+
* - `invalid` - Additional information is required to validate the data.
1045+
*/
1046+
status: 'pending' | 'valid' | 'invalid';
1047+
}
1048+
1049+
export namespace Validation {
1050+
export interface Issue {
1051+
/**
1052+
* Details when the issue is with a beneficial owner's address.
1053+
*/
1054+
beneficial_owner_address: Issue.BeneficialOwnerAddress | null;
1055+
1056+
/**
1057+
* Details when the issue is with a beneficial owner's identity verification.
1058+
*/
1059+
beneficial_owner_identity: Issue.BeneficialOwnerIdentity | null;
1060+
1061+
/**
1062+
* The type of issue. We may add additional possible values for this enum over
1063+
* time; your application should be able to handle such additions gracefully.
1064+
*
1065+
* - `entity_tax_identifier` - The entity's tax identifier could not be validated.
1066+
* Update the tax ID with the
1067+
* [update an entity API](/documentation/api/entities#update-an-entity.corporation.tax_identifier).
1068+
* - `entity_address` - The entity's address could not be validated. Update the
1069+
* address with the
1070+
* [update an entity API](/documentation/api/entities#update-an-entity.corporation.address).
1071+
* - `beneficial_owner_identity` - A beneficial owner's identity could not be
1072+
* verified. Update the identification with the
1073+
* [update a beneficial owner API](/documentation/api/beneficial-owners#update-a-beneficial-owner).
1074+
* - `beneficial_owner_address` - A beneficial owner's address could not be
1075+
* validated. Update the address with the
1076+
* [update a beneficial owner API](/documentation/api/beneficial-owners#update-a-beneficial-owner).
1077+
*/
1078+
category:
1079+
| 'entity_tax_identifier'
1080+
| 'entity_address'
1081+
| 'beneficial_owner_identity'
1082+
| 'beneficial_owner_address';
1083+
1084+
/**
1085+
* Details when the issue is with the entity's address.
1086+
*/
1087+
entity_address: Issue.EntityAddress | null;
1088+
1089+
/**
1090+
* Details when the issue is with the entity's tax ID.
1091+
*/
1092+
entity_tax_identifier: Issue.EntityTaxIdentifier | null;
1093+
}
1094+
1095+
export namespace Issue {
1096+
/**
1097+
* Details when the issue is with a beneficial owner's address.
1098+
*/
1099+
export interface BeneficialOwnerAddress {
1100+
/**
1101+
* The ID of the beneficial owner.
1102+
*/
1103+
beneficial_owner_id: string;
1104+
1105+
/**
1106+
* The reason the address is invalid.
1107+
*
1108+
* - `mailbox_address` - The address is a mailbox or other non-physical address.
1109+
*/
1110+
reason: 'mailbox_address';
1111+
}
1112+
1113+
/**
1114+
* Details when the issue is with a beneficial owner's identity verification.
1115+
*/
1116+
export interface BeneficialOwnerIdentity {
1117+
/**
1118+
* The ID of the beneficial owner.
1119+
*/
1120+
beneficial_owner_id: string;
1121+
}
1122+
1123+
/**
1124+
* Details when the issue is with the entity's address.
1125+
*/
1126+
export interface EntityAddress {
1127+
/**
1128+
* The reason the address is invalid.
1129+
*
1130+
* - `mailbox_address` - The address is a mailbox or other non-physical address.
1131+
*/
1132+
reason: 'mailbox_address';
1133+
}
1134+
1135+
/**
1136+
* Details when the issue is with the entity's tax ID.
1137+
*/
1138+
export interface EntityTaxIdentifier {}
1139+
}
1140+
}
10221141
}
10231142

10241143
export interface EntityCreateParams {

0 commit comments

Comments
 (0)