-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathClientFileXML.xsd
More file actions
252 lines (238 loc) · 9.48 KB
/
ClientFileXML.xsd
File metadata and controls
252 lines (238 loc) · 9.48 KB
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
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
<?xml version="1.0" encoding="UTF-8"?>
<!-- Центральный Банк Российской Федерации. -->
<!-- XML СХЕМА ЭЛЕКТРОННОГО ДОКУМЕНТА "Форма сбора KYC"-->
<!-- дата последней модификации: 01.12.2021 12:00 -->
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:efo="urn:cbr-ru:e-forms-mf-form-KYC:v0.0.10" targetNamespace="urn:cbr-ru:e-forms-mf-form-KYC:v0.0.10" elementFormDefault="qualified" attributeFormDefault="unqualified" version="0.0.10">
<xs:element name="Form">
<xs:annotation>
<xs:documentation>Форма KYC</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="Form_Data">
<xs:complexType>
<xs:sequence>
<xs:element name="Client" minOccurs="1" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>Клиент</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:attribute name="ClientType" type="efo:ClientType_Type" use="required">
<xs:annotation>
<xs:documentation>Тип клиента</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="INN" type="efo:INNType" use="required">
<xs:annotation>
<xs:documentation>Идентификатор</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="ClientName" type="efo:String255Type" use="required">
<xs:annotation>
<xs:documentation>Наименование клиента</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
</xs:element>
</xs:sequence>
<xs:attribute name="Report_Date" type="efo:DateType" use="required">
<xs:annotation>
<xs:documentation>Дата отчёта</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="INN" type="efo:INNType10" use="required">
<xs:annotation>
<xs:documentation>ИНН</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="OGRN" type="efo:OGRNType" use="required">
<xs:annotation>
<xs:documentation>ОГРН</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="FullName" type="efo:String1024Type" use="required">
<xs:annotation>
<xs:documentation>Наименование сдающей компании</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="RegNo" type="efo:RegNoType" use="required">
<xs:annotation>
<xs:documentation>Регистрационный номер</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
</xs:element>
</xs:sequence>
<xs:attribute name="UniqueIdentifierReport" type="efo:GUIDType" use="required">
<xs:annotation>
<xs:documentation>Уникальный идентификатор отчета</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="CodeReport" use="required">
<xs:annotation>
<xs:documentation>Код отчета</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="KYCCL"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="DateTimeFormationReport" type="efo:DateTimeType" use="required">
<xs:annotation>
<xs:documentation>Дата и время создания отчета</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
</xs:element>
<xs:simpleType name="Text_Type">
<xs:restriction base="xs:string">
<xs:minLength value="1"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="ClientType_Type">
<xs:annotation>
<xs:documentation>Тип клиента</xs:documentation>
</xs:annotation>
<xs:restriction base="efo:Text_Type">
<xs:enumeration value="0">
<xs:annotation><xs:documentation>ЮЛ</xs:documentation></xs:annotation>
</xs:enumeration>
<xs:enumeration value="1">
<xs:annotation><xs:documentation>ИП</xs:documentation></xs:annotation>
</xs:enumeration>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="GUIDType">
<xs:annotation>
<xs:documentation>GUID</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:string">
<xs:pattern value="[\da-fA-F]{8}-[\da-fA-F]{4}-[\da-fA-F]{4}-[\da-fA-F]{4}-[\da-fA-F]{12}"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="DateTimeType">
<xs:annotation>
<xs:documentation>ДатаВремя. [ГОСТ ИСО 8601-2001]. Формат YYYY-MM-DDThh:mm:ssZ. Всемирное время.</xs:documentation>
</xs:annotation>
<xs:restriction base="efo:DateTimeCategory">
<xs:minInclusive value="1900-01-01T00:00:00Z"/>
<xs:maxInclusive value="3099-12-31T00:00:00Z"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="DateTimeCategory">
<xs:annotation>
<xs:documentation>ДатаВремя. [ГОСТ ИСО 8601-2001]. Формат YYYY-MM-DDThh:mm:ssZ. Всемирное время.</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:dateTime">
<xs:pattern value="\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}Z">
<xs:annotation>
<xs:documentation>Формат YYYY-MM-DDThh:mm:ssZ.</xs:documentation>
</xs:annotation>
</xs:pattern>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="OGRNType">
<xs:annotation>
<xs:documentation>ОГРН</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:string">
<xs:pattern value="\d{13}">
<xs:annotation>
<xs:documentation>ОГРН должен соcтоять из 13 цифр</xs:documentation>
</xs:annotation>
</xs:pattern>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="String1024Type">
<xs:annotation>
<xs:documentation>Строка длиной от 1 до 1024 символов</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:string">
<xs:minLength value="1">
<xs:annotation>
<xs:documentation>Строка не может иметь длину менее 1 символа</xs:documentation>
</xs:annotation>
</xs:minLength>
<xs:maxLength value="1024">
<xs:annotation>
<xs:documentation>Строка не может иметь длину более 1024 символов</xs:documentation>
</xs:annotation>
</xs:maxLength>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="String255Type">
<xs:annotation>
<xs:documentation>Строка длиной от 1 до 255 символов</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:string">
<xs:minLength value="1">
<xs:annotation>
<xs:documentation>Строка не может иметь длину менее 1 символа</xs:documentation>
</xs:annotation>
</xs:minLength>
<xs:maxLength value="255">
<xs:annotation>
<xs:documentation>Строка не может иметь длину более 255 символов</xs:documentation>
</xs:annotation>
</xs:maxLength>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="RegNoType">
<xs:annotation>
<xs:documentation>Регистрационный номер</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:string">
<xs:pattern value="[0-9]{4}">
<xs:annotation>
<xs:documentation>Регистрационный номер должен соcтоять из 4 цифр (пример:"0001")</xs:documentation>
</xs:annotation>
</xs:pattern>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="INNType10">
<xs:annotation>
<xs:documentation>ИНН</xs:documentation>
</xs:annotation>
<xs:restriction base="efo:INNType">
<xs:pattern value="\d{10}">
<xs:annotation>
<xs:documentation>ИНН должен соcтоять из 10 цифр</xs:documentation>
</xs:annotation>
</xs:pattern>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="INNType">
<xs:annotation>
<xs:documentation>ИНН</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:string">
<xs:pattern value="\d{10}|\d{12}">
<xs:annotation>
<xs:documentation>ИНН должен соcтоять из 10 или 12 цифр</xs:documentation>
</xs:annotation>
</xs:pattern>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="DateType">
<xs:annotation>
<xs:documentation>Дата. [ГОСТ ИСО 8601-2001]. Формат CCYY-MM-DD.</xs:documentation>
</xs:annotation>
<xs:restriction base="efo:DateCategory">
<xs:minInclusive value="1900-01-01"/>
<xs:maxInclusive value="3099-12-31"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="DateCategory">
<xs:annotation>
<xs:documentation>Дата. Применяется для обозначения конкретного момента в последовательности времени. [ГОСТ ИСО 8601-2001]. Формат CCYY-MM-DD.</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:date">
<xs:pattern value="\d{4}-\d{2}-\d{2}">
<xs:annotation>
<xs:documentation>Формат CCYY-MM-DD.</xs:documentation>
</xs:annotation>
</xs:pattern>
</xs:restriction>
</xs:simpleType>
</xs:schema>