-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompany_info.schema.json
151 lines (151 loc) · 7.68 KB
/
company_info.schema.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://ownera.io/certificates/owner/company_info.schema.json",
"title": "Company Owner Info",
"description": "Information about an owner from type company",
"type": "object",
"definitions": {
"country": {
"type": "string",
"enum": ["AD", "AE", "AF", "AG", "AI", "AL", "AM", "AO", "AQ", "AR", "AS", "AT", "AU", "AW", "AX", "AZ", "BA", "BB", "BD", "BE", "BF", "BG", "BH", "BI", "BJ", "BL", "BM", "BN", "BO", "BQ", "BR", "BS", "BT", "BV", "BW", "BY", "BZ", "CA", "CC", "CD", "CF", "CG", "CH", "CI", "CK", "CL", "CM", "CN", "CO", "CR", "CU", "CV", "CW", "CX", "CY", "CZ", "DE", "DJ", "DK", "DM", "DO", "DZ", "EC", "EE", "EG", "EH", "ER", "ES", "ET", "FI", "FJ", "FK", "FM", "FO", "FR", "GA", "GB", "GD", "GE", "GF", "GG", "GH", "GI", "GL", "GM", "GN", "GP", "GQ", "GR", "GS", "GT", "GU", "GW", "GY", "HK", "HM", "HN", "HR", "HT", "HU", "ID", "IE", "IL", "IM", "IN", "IO", "IQ", "IR", "IS", "IT", "JE", "JM", "JO", "JP", "KE", "KG", "KH", "KI", "KM", "KN", "KP", "KR", "KW", "KY", "KZ", "LA", "LB", "LC", "LI", "LK", "LR", "LS", "LT", "LU", "LV", "LY", "MA", "MC", "MD", "ME", "MF", "MG", "MH", "MK", "ML", "MM", "MN", "MO", "MP", "MQ", "MR", "MS", "MT", "MU", "MV", "MW", "MX", "MY", "MZ", "NA", "NC", "NE", "NF", "NG", "NI", "NL", "NO", "NP", "NR", "NU", "NZ", "OM", "PA", "PE", "PF", "PG", "PH", "PK", "PL", "PM", "PN", "PR", "PS", "PT", "PW", "PY", "QA", "RE", "RO", "RS", "RU", "RW", "SA", "SB", "SC", "SD", "SE", "SG", "SH", "SI", "SJ", "SK", "SL", "SM", "SN", "SO", "SR", "SS", "ST", "SV", "SX", "SY", "SZ", "TC", "TD", "TF", "TG", "TH", "TJ", "TK", "TL", "TM", "TN", "TO", "TR", "TT", "TV", "TW", "TZ", "UA", "UG", "UM", "US", "UY", "UZ", "VA", "VC", "VE", "VG", "VI", "VN", "VU", "WF", "WS", "YE", "YT", "ZA", "ZM", "ZW"]
},
"address": {
"type": "object",
"properties": {
"line1": { "type": "string", "maxLength": 33, "minLength": 1 },
"line2": { "type": "string", "maxLength": 33, "minLength": 1 },
"buildingNumber": { "type": "string", "maxLength": 15, "minLength": 1 },
"city": { "type": "string", "maxLength": 60, "minLength": 1 },
"postalCode": { "type": "string", "maxLength": 10, "minLength": 1 },
"country": { "$ref": "#/definitions/country" },
"state": { "type": "string", "maxLength": 90, "minLength": 1 }
}
},
"id": {
"type": "object",
"properties": {
"idType": { "enum": ["Passport", "Id", "SSN", "last 4 digits SSN", "Other"] },
"idNumber": { "type": "string", "maxLength": 20, "minLength": 1 }
}
},
"beneficialOwner": {
"type": "object",
"properties": {
"name": { "type": "string", "minLength": 1 },
"id": { "$ref": "#/definitions/id" },
"dateOfBirth": { "type": "string", "format": "date" },
"nationality": { "$ref": "#/definitions/nationalities" },
"email": { "type": "string", "format": "email" },
"address": { "$ref": "#/definitions/address" }
},
"required": ["email"]
},
"nationalities": {
"type": "string",
"enum": ["AD", "AE", "AF", "AG", "AI", "AL", "AM", "AO", "AQ", "AR", "AS", "AT", "AU", "AW", "AX", "AZ", "BA", "BB", "BD", "BE", "BF", "BG", "BH", "BI", "BJ", "BL", "BM", "BN", "BO", "BQ", "BR", "BS", "BT", "BV", "BW", "BY", "BZ", "CA", "CC", "CD", "CF", "CG", "CH", "CI", "CK", "CL", "CM", "CN", "CO", "CR", "CU", "CV", "CW", "CX", "CY", "CZ", "DE", "DJ", "DK", "DM", "DO", "DZ", "EC", "EE", "EG", "EH", "ER", "ES", "ET", "FI", "FJ", "FK", "FM", "FO", "FR", "GA", "GB", "GD", "GE", "GF", "GG", "GH", "GI", "GL", "GM", "GN", "GP", "GQ", "GR", "GS", "GT", "GU", "GW", "GY", "HK", "HM", "HN", "HR", "HT", "HU", "ID", "IE", "IL", "IM", "IN", "IO", "IQ", "IR", "IS", "IT", "JE", "JM", "JO", "JP", "KE", "KG", "KH", "KI", "KM", "KN", "KP", "KR", "KW", "KY", "KZ", "LA", "LB", "LC", "LI", "LK", "LR", "LS", "LT", "LU", "LV", "LY", "MA", "MC", "MD", "ME", "MF", "MG", "MH", "MK", "ML", "MM", "MN", "MO", "MP", "MQ", "MR", "MS", "MT", "MU", "MV", "MW", "MX", "MY", "MZ", "NA", "NC", "NE", "NF", "NG", "NI", "NL", "NO", "NP", "NR", "NU", "NZ", "OM", "PA", "PE", "PF", "PG", "PH", "PK", "PL", "PM", "PN", "PR", "PS", "PT", "PW", "PY", "QA", "RE", "RO", "RS", "RU", "RW", "SA", "SB", "SC", "SD", "SE", "SG", "SH", "SI", "SJ", "SK", "SL", "SM", "SN", "SO", "SR", "SS", "ST", "SV", "SX", "SY", "SZ", "TC", "TD", "TF", "TG", "TH", "TJ", "TK", "TL", "TM", "TN", "TO", "TR", "TT", "TV", "TW", "TZ", "UA", "UG", "UM", "US", "UY", "UZ", "VA", "VC", "VE", "VG", "VI", "VN", "VU", "WF", "WS", "YE", "YT", "ZA", "ZM", "ZW"]
},
"businessRegistrationId": {
"oneOf": [
{
"type": "object",
"properties": {
"idType": { "const": "Company registration id" },
"idNumber": { "type": "string", "maxLength": 30, "minLength": 1 }
},
"required": ["idType", "idNumber"],
"description": "Company registration number"
},
{
"type": "object",
"properties": {
"idType": { "const": "CRN" },
"idNumber": { "type": "string", "maxLength": 8, "minLength": 1 }
},
"required": ["idType", "idNumber"],
"description": "Companies House Registration Number - CRN for UK country only"
},
{
"type": "object",
"properties": {
"idType": { "const": "EIN" },
"idNumber": { "type": "string", "maxLength": 10, "minLength": 1 }
},
"required": ["idType", "idNumber"],
"description": "Employer Identification Number - EIN for US country only"
},
{
"type": "object",
"properties": {
"idType": { "const": "Other" },
"idNumber": { "type": "string", "maxLength": 30, "minLength": 1 }
},
"required": ["idType", "idNumber"],
"description": "Id number that associated with your company"
}
]
}
},
"properties": {
"legalBusinessName": {
"description": "Legal business name",
"type": "string",
"maxLength": 120,
"minLength": 1,
"pattern": "^[a-zA-Z0-9 ]*$"
},
"businessName": {
"description": "Business name- company's operating name if it's different than the legal business name",
"type": "string",
"maxLength": 120,
"minLength": 1,
"pattern": "^[a-zA-Z0-9 ]*$"
},
"businessRegisteredCountry": {
"description": "The country where the business is registered",
"type": "string",
"$ref": "#/definitions/country"
},
"registeredBusinessAddress": {
"$ref": "#/definitions/address",
"description": "Address of the company's registered office"
},
"businessRegistrationId": {
"$ref": "#/definitions/businessRegistrationId"
},
"beneficialOwners": {
"description": "List of beneficial owners",
"type": "array",
"items": { "$ref": "#/definitions/beneficialOwner" }
},
"industryCode": {
"description": "Merchant category codes (MCC)",
"type": "string",
"maxLength": 4,
"pattern": "^[0-9]{4}$"
},
"vatNumber": {
"description": "VAT number",
"type": "string",
"maxLength": 15,
"minLength": 1
},
"businessWebsite": {
"description": "Business website",
"type": "string",
"maxLength": 100,
"minLength": 1
},
"statementDescriptor": {
"description": "Statement descriptor explains charges or payments on customer's bank statements",
"type": "string",
"minLength": 5,
"maxLength": 22,
"pattern": "^[^<>,'\"*]*$"
}
},
"required": [
"legalBusinessName",
"businessRegisteredCountry",
"beneficialOwners"
]
}