Skip to content

Commit ea35bb6

Browse files
authored
flatten beneficialOwner.personalInfo.personalIds; make ownershipPercentage required (#289)
1 parent 9400e77 commit ea35bb6

7 files changed

Lines changed: 105 additions & 92 deletions

File tree

mintlify/openapi.yaml

Lines changed: 34 additions & 35 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

openapi.yaml

Lines changed: 34 additions & 35 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

openapi/components/schemas/customers/BeneficialOwner.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,11 @@ properties:
2424
- UBO
2525
- DIRECTOR
2626
ownershipPercentage:
27-
type: number
28-
format: float
27+
type: integer
2928
description: Percentage of ownership in the business (0-100)
3029
minimum: 0
3130
maximum: 100
32-
example: 51.0
31+
example: 51
3332
personalInfo:
3433
$ref: ./BeneficialOwnerPersonalInfo.yaml
3534
kycStatus:

openapi/components/schemas/customers/BeneficialOwnerCreateRequest.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ type: object
22
required:
33
- customerId
44
- roles
5+
- ownershipPercentage
56
- personalInfo
67
properties:
78
customerId:
@@ -17,11 +18,10 @@ properties:
1718
- UBO
1819
- DIRECTOR
1920
ownershipPercentage:
20-
type: number
21-
format: float
21+
type: integer
2222
description: Percentage of ownership in the business (0-100). Relevant when role includes UBO.
2323
minimum: 0
2424
maximum: 100
25-
example: 51.0
25+
example: 51
2626
personalInfo:
2727
$ref: ./BeneficialOwnerPersonalInfo.yaml

openapi/components/schemas/customers/BeneficialOwnerPersonalInfo.yaml

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,21 @@ required:
55
- birthDate
66
- nationality
77
- address
8-
- personalIds
8+
- idType
9+
- identifier
910
properties:
1011
firstName:
1112
type: string
1213
description: First name of the individual
1314
example: Jane
14-
lastName:
15-
type: string
16-
description: Last name of the individual
17-
example: Smith
1815
middleName:
1916
type: string
2017
description: Middle name of the individual
2118
example: Marie
19+
lastName:
20+
type: string
21+
description: Last name of the individual
22+
example: Smith
2223
birthDate:
2324
type: string
2425
format: date
@@ -40,5 +41,13 @@ properties:
4041
pattern: '^\+[1-9]\d{1,14}$'
4142
address:
4243
$ref: ../common/Address.yaml
43-
personalIds:
44-
$ref: ./PersonalIdentification.yaml
44+
idType:
45+
$ref: ./IdentificationType.yaml
46+
identifier:
47+
type: string
48+
description: The identification number or value
49+
example: 123-45-6789
50+
countryOfIssuance:
51+
type: string
52+
description: Country that issued the identification (ISO 3166-1 alpha-2)
53+
example: US

0 commit comments

Comments
 (0)