common.xsd 30 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. # Project: NAV NTCA Common XML séma
  4. # Author: NAV Informatikai Intézet
  5. # Version: v1.0 2020/11/23
  6. -->
  7. <xs:schema xmlns="http://schemas.nav.gov.hu/NTCA/1.0/common" xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://schemas.nav.gov.hu/NTCA/1.0/common" elementFormDefault="qualified" attributeFormDefault="unqualified">
  8. <!--Atomi típusok / Atomic types-->
  9. <xs:simpleType name="AtomicStringType100">
  10. <xs:annotation>
  11. <xs:documentation xml:lang="hu">Atomi string típus 100 hosszra</xs:documentation>
  12. <xs:documentation xml:lang="en">Atomic string type for 100 length</xs:documentation>
  13. </xs:annotation>
  14. <xs:restriction base="xs:string">
  15. <xs:minLength value="1"/>
  16. <xs:maxLength value="100"/>
  17. </xs:restriction>
  18. </xs:simpleType>
  19. <xs:simpleType name="AtomicStringType1024">
  20. <xs:annotation>
  21. <xs:documentation xml:lang="hu">Atomi string típus 1024 hosszra</xs:documentation>
  22. <xs:documentation xml:lang="en">Atomic string type for 1024 length</xs:documentation>
  23. </xs:annotation>
  24. <xs:restriction base="xs:string">
  25. <xs:minLength value="1"/>
  26. <xs:maxLength value="1024"/>
  27. </xs:restriction>
  28. </xs:simpleType>
  29. <xs:simpleType name="AtomicStringType128">
  30. <xs:annotation>
  31. <xs:documentation xml:lang="hu">Atomi string típus 128 hosszra</xs:documentation>
  32. <xs:documentation xml:lang="en">Atomic string type for 128 length</xs:documentation>
  33. </xs:annotation>
  34. <xs:restriction base="xs:string">
  35. <xs:minLength value="1"/>
  36. <xs:maxLength value="128"/>
  37. </xs:restriction>
  38. </xs:simpleType>
  39. <xs:simpleType name="AtomicStringType15">
  40. <xs:annotation>
  41. <xs:documentation xml:lang="hu">Atomi string típus 15 hosszra</xs:documentation>
  42. <xs:documentation xml:lang="en">Atomic string type for 15 length</xs:documentation>
  43. </xs:annotation>
  44. <xs:restriction base="xs:string">
  45. <xs:minLength value="1"/>
  46. <xs:maxLength value="15"/>
  47. </xs:restriction>
  48. </xs:simpleType>
  49. <xs:simpleType name="AtomicStringType16">
  50. <xs:annotation>
  51. <xs:documentation xml:lang="hu">Atomi string típus 16 hosszra</xs:documentation>
  52. <xs:documentation xml:lang="en">Atomic string type for 16 length</xs:documentation>
  53. </xs:annotation>
  54. <xs:restriction base="xs:string">
  55. <xs:minLength value="1"/>
  56. <xs:maxLength value="16"/>
  57. </xs:restriction>
  58. </xs:simpleType>
  59. <xs:simpleType name="AtomicStringType2">
  60. <xs:annotation>
  61. <xs:documentation xml:lang="hu">Atomi string típus 2 hosszra</xs:documentation>
  62. <xs:documentation xml:lang="en">Atomic string type for 2 length</xs:documentation>
  63. </xs:annotation>
  64. <xs:restriction base="xs:string">
  65. <xs:minLength value="1"/>
  66. <xs:maxLength value="2"/>
  67. </xs:restriction>
  68. </xs:simpleType>
  69. <xs:simpleType name="AtomicStringType200">
  70. <xs:annotation>
  71. <xs:documentation xml:lang="hu">Atomi string típus 200 hosszra</xs:documentation>
  72. <xs:documentation xml:lang="en">Atomic string type for 200 length</xs:documentation>
  73. </xs:annotation>
  74. <xs:restriction base="xs:string">
  75. <xs:minLength value="1"/>
  76. <xs:maxLength value="200"/>
  77. </xs:restriction>
  78. </xs:simpleType>
  79. <xs:simpleType name="AtomicStringType2048">
  80. <xs:annotation>
  81. <xs:documentation xml:lang="hu">Atomi string típus 2048 hosszra</xs:documentation>
  82. <xs:documentation xml:lang="en">Atomic string type for 2048 length</xs:documentation>
  83. </xs:annotation>
  84. <xs:restriction base="xs:string">
  85. <xs:minLength value="1"/>
  86. <xs:maxLength value="2048"/>
  87. </xs:restriction>
  88. </xs:simpleType>
  89. <xs:simpleType name="AtomicStringType255">
  90. <xs:annotation>
  91. <xs:documentation xml:lang="hu">Atomi string típus 255 hosszra</xs:documentation>
  92. <xs:documentation xml:lang="en">Atomic string type for 255 length</xs:documentation>
  93. </xs:annotation>
  94. <xs:restriction base="xs:string">
  95. <xs:minLength value="1"/>
  96. <xs:maxLength value="255"/>
  97. </xs:restriction>
  98. </xs:simpleType>
  99. <xs:simpleType name="AtomicStringType256">
  100. <xs:annotation>
  101. <xs:documentation xml:lang="hu">Atomi string típus 256 hosszra</xs:documentation>
  102. <xs:documentation xml:lang="en">Atomic string type for 256 length</xs:documentation>
  103. </xs:annotation>
  104. <xs:restriction base="xs:string">
  105. <xs:minLength value="1"/>
  106. <xs:maxLength value="256"/>
  107. </xs:restriction>
  108. </xs:simpleType>
  109. <xs:simpleType name="AtomicStringType32">
  110. <xs:annotation>
  111. <xs:documentation xml:lang="hu">Atomi string típus 32 hosszra</xs:documentation>
  112. <xs:documentation xml:lang="en">Atomic string type for 32 length</xs:documentation>
  113. </xs:annotation>
  114. <xs:restriction base="xs:string">
  115. <xs:minLength value="1"/>
  116. <xs:maxLength value="32"/>
  117. </xs:restriction>
  118. </xs:simpleType>
  119. <xs:simpleType name="AtomicStringType4">
  120. <xs:annotation>
  121. <xs:documentation xml:lang="hu">Atomi string típus 4 hosszra</xs:documentation>
  122. <xs:documentation xml:lang="en">Atomic string type for 4 length</xs:documentation>
  123. </xs:annotation>
  124. <xs:restriction base="xs:string">
  125. <xs:minLength value="1"/>
  126. <xs:maxLength value="4"/>
  127. </xs:restriction>
  128. </xs:simpleType>
  129. <xs:simpleType name="AtomicStringType4000">
  130. <xs:annotation>
  131. <xs:documentation xml:lang="hu">Atomi string típus 4000 hosszra</xs:documentation>
  132. <xs:documentation xml:lang="en">Atomic string type for 4000 length</xs:documentation>
  133. </xs:annotation>
  134. <xs:restriction base="xs:string">
  135. <xs:minLength value="1"/>
  136. <xs:maxLength value="4000"/>
  137. </xs:restriction>
  138. </xs:simpleType>
  139. <xs:simpleType name="AtomicStringType50">
  140. <xs:annotation>
  141. <xs:documentation xml:lang="hu">Atomi string típus 50 hosszra</xs:documentation>
  142. <xs:documentation xml:lang="en">Atomic string type for 50 length</xs:documentation>
  143. </xs:annotation>
  144. <xs:restriction base="xs:string">
  145. <xs:minLength value="1"/>
  146. <xs:maxLength value="50"/>
  147. </xs:restriction>
  148. </xs:simpleType>
  149. <xs:simpleType name="AtomicStringType512">
  150. <xs:annotation>
  151. <xs:documentation xml:lang="hu">Atomi string típus 512 hosszra</xs:documentation>
  152. <xs:documentation xml:lang="en">Atomic string type for 512 length</xs:documentation>
  153. </xs:annotation>
  154. <xs:restriction base="xs:string">
  155. <xs:minLength value="1"/>
  156. <xs:maxLength value="512"/>
  157. </xs:restriction>
  158. </xs:simpleType>
  159. <xs:simpleType name="AtomicStringType64">
  160. <xs:annotation>
  161. <xs:documentation xml:lang="hu">Atomi string típus 64 hosszra</xs:documentation>
  162. <xs:documentation xml:lang="en">Atomic string type for 64 length</xs:documentation>
  163. </xs:annotation>
  164. <xs:restriction base="xs:string">
  165. <xs:minLength value="1"/>
  166. <xs:maxLength value="64"/>
  167. </xs:restriction>
  168. </xs:simpleType>
  169. <xs:simpleType name="AtomicStringType8">
  170. <xs:annotation>
  171. <xs:documentation xml:lang="hu">Atomi string típus 8 hosszra</xs:documentation>
  172. <xs:documentation xml:lang="en">Atomic string type for 8 length</xs:documentation>
  173. </xs:annotation>
  174. <xs:restriction base="xs:string">
  175. <xs:minLength value="1"/>
  176. <xs:maxLength value="8"/>
  177. </xs:restriction>
  178. </xs:simpleType>
  179. <xs:simpleType name="GenericDateType">
  180. <xs:annotation>
  181. <xs:documentation xml:lang="hu">Általános UTC dátum</xs:documentation>
  182. <xs:documentation xml:lang="en">Generic UTC date</xs:documentation>
  183. </xs:annotation>
  184. <xs:restriction base="xs:date">
  185. <xs:pattern value="\d{4}-\d{2}-\d{2}Z"/>
  186. </xs:restriction>
  187. </xs:simpleType>
  188. <xs:simpleType name="GenericDecimalType">
  189. <xs:annotation>
  190. <xs:documentation xml:lang="hu">Általános lebegőpontos érték</xs:documentation>
  191. <xs:documentation xml:lang="en">Generic float point value</xs:documentation>
  192. </xs:annotation>
  193. <xs:restriction base="xs:decimal"/>
  194. </xs:simpleType>
  195. <xs:simpleType name="GenericTimestampType">
  196. <xs:annotation>
  197. <xs:documentation xml:lang="hu">Általános UTC időbélyeg</xs:documentation>
  198. <xs:documentation xml:lang="en">Generic UTC timestamp</xs:documentation>
  199. </xs:annotation>
  200. <xs:restriction base="xs:dateTime">
  201. <xs:pattern value="\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{1,3})?Z"/>
  202. </xs:restriction>
  203. </xs:simpleType>
  204. <xs:simpleType name="SHA256Type">
  205. <xs:annotation>
  206. <xs:documentation xml:lang="hu">SHA256 kód megadására szolgáló típus</xs:documentation>
  207. <xs:documentation xml:lang="en">Field type for holding an SHA256 code</xs:documentation>
  208. </xs:annotation>
  209. <xs:restriction base="AtomicStringType64">
  210. <xs:pattern value="[0-9A-F]{64}"/>
  211. </xs:restriction>
  212. </xs:simpleType>
  213. <xs:simpleType name="SHA512Type">
  214. <xs:annotation>
  215. <xs:documentation xml:lang="hu">SHA512 kód megadására szolgáló típus</xs:documentation>
  216. <xs:documentation xml:lang="en">Field type for holding an SHA512 code</xs:documentation>
  217. </xs:annotation>
  218. <xs:restriction base="AtomicStringType128">
  219. <xs:pattern value="[0-9A-F]{128}"/>
  220. </xs:restriction>
  221. </xs:simpleType>
  222. <xs:simpleType name="SimpleText100NotBlankType">
  223. <xs:annotation>
  224. <xs:documentation xml:lang="hu">Legfeljebb 100 karaktert tartalmazó szöveg típus</xs:documentation>
  225. <xs:documentation xml:lang="en">String of maximum 100 characters</xs:documentation>
  226. </xs:annotation>
  227. <xs:restriction base="AtomicStringType100">
  228. <xs:pattern value=".*[^\s].*"/>
  229. </xs:restriction>
  230. </xs:simpleType>
  231. <xs:simpleType name="SimpleText1024NotBlankType">
  232. <xs:annotation>
  233. <xs:documentation xml:lang="hu">Legfeljebb 1024 karaktert tartalmazó szöveg típus</xs:documentation>
  234. <xs:documentation xml:lang="en">String of maximum 1024 characters</xs:documentation>
  235. </xs:annotation>
  236. <xs:restriction base="AtomicStringType1024">
  237. <xs:pattern value=".*[^\s].*"/>
  238. </xs:restriction>
  239. </xs:simpleType>
  240. <xs:simpleType name="SimpleText15NotBlankType">
  241. <xs:annotation>
  242. <xs:documentation xml:lang="hu">Legfeljebb 15 karaktert tartalmazó szöveg típus</xs:documentation>
  243. <xs:documentation xml:lang="en">String of maximum 15 characters</xs:documentation>
  244. </xs:annotation>
  245. <xs:restriction base="AtomicStringType15">
  246. <xs:pattern value=".*[^\s].*"/>
  247. </xs:restriction>
  248. </xs:simpleType>
  249. <xs:simpleType name="SimpleText200NotBlankType">
  250. <xs:annotation>
  251. <xs:documentation xml:lang="hu">Legfeljebb 200 karaktert tartalmazó szöveg típus</xs:documentation>
  252. <xs:documentation xml:lang="en">String of maximum 200 characters</xs:documentation>
  253. </xs:annotation>
  254. <xs:restriction base="AtomicStringType200">
  255. <xs:pattern value=".*[^\s].*"/>
  256. </xs:restriction>
  257. </xs:simpleType>
  258. <xs:simpleType name="SimpleText255NotBlankType">
  259. <xs:annotation>
  260. <xs:documentation xml:lang="hu">Legfeljebb 255 karaktert tartalmazó szöveg típus</xs:documentation>
  261. <xs:documentation xml:lang="en">String of maximum 255 characters</xs:documentation>
  262. </xs:annotation>
  263. <xs:restriction base="AtomicStringType255">
  264. <xs:pattern value=".*[^\s].*"/>
  265. </xs:restriction>
  266. </xs:simpleType>
  267. <xs:simpleType name="SimpleText50NotBlankType">
  268. <xs:annotation>
  269. <xs:documentation xml:lang="hu">Legfeljebb 50 karaktert tartalmazó szöveg típus</xs:documentation>
  270. <xs:documentation xml:lang="en">String of maximum 50 characters</xs:documentation>
  271. </xs:annotation>
  272. <xs:restriction base="AtomicStringType50">
  273. <xs:pattern value=".*[^\s].*"/>
  274. </xs:restriction>
  275. </xs:simpleType>
  276. <xs:simpleType name="SimpleText512NotBlankType">
  277. <xs:annotation>
  278. <xs:documentation xml:lang="hu">Legfeljebb 512 karaktert tartalmazó szöveg típus</xs:documentation>
  279. <xs:documentation xml:lang="en">String of maximum 512 characters</xs:documentation>
  280. </xs:annotation>
  281. <xs:restriction base="AtomicStringType512">
  282. <xs:pattern value=".*[^\s].*"/>
  283. </xs:restriction>
  284. </xs:simpleType>
  285. <!--Üzleti katalógus elemek / Business catalog elements-->
  286. <xs:simpleType name="BankAccountNumberType">
  287. <xs:annotation>
  288. <xs:documentation xml:lang="hu">Bankszámla megadására szolgáló típus</xs:documentation>
  289. <xs:documentation xml:lang="en">Type of bank account number</xs:documentation>
  290. </xs:annotation>
  291. <xs:restriction base="AtomicStringType50">
  292. <xs:minLength value="15"/>
  293. <xs:maxLength value="34"/>
  294. <xs:pattern value="[0-9]{8}[-][0-9]{8}[-][0-9]{8}|[0-9]{8}[-][0-9]{8}|[A-Z]{2}[0-9]{2}[0-9A-Za-z]{11,30}"/>
  295. </xs:restriction>
  296. </xs:simpleType>
  297. <xs:simpleType name="CommunityVatNumberType">
  298. <xs:annotation>
  299. <xs:documentation xml:lang="hu">Közösségi adószám típus</xs:documentation>
  300. <xs:documentation xml:lang="en">Community VAT registration number</xs:documentation>
  301. </xs:annotation>
  302. <xs:restriction base="AtomicStringType15">
  303. <xs:minLength value="4"/>
  304. <xs:maxLength value="15"/>
  305. <xs:pattern value="[A-Z]{2}[0-9A-Z]{2,13}"/>
  306. </xs:restriction>
  307. </xs:simpleType>
  308. <xs:simpleType name="CountryCodeType">
  309. <xs:annotation>
  310. <xs:documentation xml:lang="hu">Országkód típus ISO 3166 alpha-2 szabvány szerint</xs:documentation>
  311. <xs:documentation xml:lang="en">Country code type (ISO 3166 alpha-2)</xs:documentation>
  312. </xs:annotation>
  313. <xs:restriction base="AtomicStringType2">
  314. <xs:length value="2"/>
  315. <xs:pattern value="[A-Z]{2}"/>
  316. </xs:restriction>
  317. </xs:simpleType>
  318. <xs:simpleType name="CountyCodeType">
  319. <xs:annotation>
  320. <xs:documentation xml:lang="hu">Megyekód</xs:documentation>
  321. <xs:documentation xml:lang="en">County code</xs:documentation>
  322. </xs:annotation>
  323. <xs:restriction base="AtomicStringType2">
  324. <xs:length value="2"/>
  325. <xs:pattern value="[0-9]{2}"/>
  326. </xs:restriction>
  327. </xs:simpleType>
  328. <xs:simpleType name="CurrencyType">
  329. <xs:annotation>
  330. <xs:documentation xml:lang="hu">Pénznem típus (ISO 4217 szabvány szerinti 3 hosszú pénznem kód)</xs:documentation>
  331. <xs:documentation xml:lang="en">Currency type (three digit ISO 4217 currency code)</xs:documentation>
  332. </xs:annotation>
  333. <xs:restriction base="AtomicStringType4">
  334. <xs:length value="3"/>
  335. <xs:pattern value="[A-Z]{3}"/>
  336. </xs:restriction>
  337. </xs:simpleType>
  338. <xs:simpleType name="PlateNumberType">
  339. <xs:annotation>
  340. <xs:documentation xml:lang="hu">Kereskedelmi gépjármű forgalmi rendszáma (csak betűk és számok)</xs:documentation>
  341. <xs:documentation xml:lang="en">Registration number of commercial motor vehicle (letters and numbers only)</xs:documentation>
  342. </xs:annotation>
  343. <xs:restriction base="AtomicStringType32">
  344. <xs:minLength value="2"/>
  345. <xs:maxLength value="30"/>
  346. <xs:pattern value="[A-Z0-9ÖŐÜŰ]{2,30}"/>
  347. </xs:restriction>
  348. </xs:simpleType>
  349. <xs:simpleType name="PostalCodeType">
  350. <xs:annotation>
  351. <xs:documentation xml:lang="hu">Irányítószám típus</xs:documentation>
  352. <xs:documentation xml:lang="en">ZIP code type</xs:documentation>
  353. </xs:annotation>
  354. <xs:restriction base="AtomicStringType15">
  355. <xs:minLength value="3"/>
  356. <xs:maxLength value="10"/>
  357. <xs:pattern value="[A-Z0-9][A-Z0-9\s\-]{1,8}[A-Z0-9]"/>
  358. </xs:restriction>
  359. </xs:simpleType>
  360. <xs:simpleType name="TaxpayerIdType">
  361. <xs:annotation>
  362. <xs:documentation xml:lang="hu">Az adószám nyolc jegyű törzsszám része</xs:documentation>
  363. <xs:documentation xml:lang="en">The 8-digit core number section of the tax number</xs:documentation>
  364. </xs:annotation>
  365. <xs:restriction base="AtomicStringType8">
  366. <xs:length value="8"/>
  367. <xs:pattern value="[0-9]{8}"/>
  368. </xs:restriction>
  369. </xs:simpleType>
  370. <xs:simpleType name="VatCodeType">
  371. <xs:annotation>
  372. <xs:documentation xml:lang="hu">ÁFA kód</xs:documentation>
  373. <xs:documentation xml:lang="en">VAT code</xs:documentation>
  374. </xs:annotation>
  375. <xs:restriction base="AtomicStringType2">
  376. <xs:length value="1"/>
  377. <xs:pattern value="[1-5]{1}"/>
  378. </xs:restriction>
  379. </xs:simpleType>
  380. <!--Közös API típusok / Common API types-->
  381. <xs:simpleType name="BusinessResultCodeType">
  382. <xs:annotation>
  383. <xs:documentation xml:lang="hu">Üzleti eredmény kód típus</xs:documentation>
  384. <xs:documentation xml:lang="en">Business result code type</xs:documentation>
  385. </xs:annotation>
  386. <xs:restriction base="AtomicStringType8">
  387. <xs:enumeration value="ERROR">
  388. <xs:annotation>
  389. <xs:documentation xml:lang="hu">Hiba</xs:documentation>
  390. <xs:documentation xml:lang="en">Error</xs:documentation>
  391. </xs:annotation>
  392. </xs:enumeration>
  393. <xs:enumeration value="WARN">
  394. <xs:annotation>
  395. <xs:documentation xml:lang="hu">Figyelmeztetés</xs:documentation>
  396. <xs:documentation xml:lang="en">Warn</xs:documentation>
  397. </xs:annotation>
  398. </xs:enumeration>
  399. <xs:enumeration value="INFO">
  400. <xs:annotation>
  401. <xs:documentation xml:lang="hu">Tájékoztatás</xs:documentation>
  402. <xs:documentation xml:lang="en">Information</xs:documentation>
  403. </xs:annotation>
  404. </xs:enumeration>
  405. </xs:restriction>
  406. </xs:simpleType>
  407. <xs:simpleType name="EntityIdType">
  408. <xs:annotation>
  409. <xs:documentation xml:lang="hu">Generált azonosító típus</xs:documentation>
  410. <xs:documentation xml:lang="en">Generated ID type</xs:documentation>
  411. </xs:annotation>
  412. <xs:restriction base="AtomicStringType32">
  413. <xs:maxLength value="30"/>
  414. <xs:minLength value="1"/>
  415. <xs:pattern value="[+a-zA-Z0-9_]{1,30}"/>
  416. </xs:restriction>
  417. </xs:simpleType>
  418. <xs:simpleType name="FunctionCodeType">
  419. <xs:annotation>
  420. <xs:documentation xml:lang="hu">Funkciókód típus</xs:documentation>
  421. <xs:documentation xml:lang="en">Function code type</xs:documentation>
  422. </xs:annotation>
  423. <xs:restriction base="AtomicStringType8">
  424. <xs:enumeration value="OK">
  425. <xs:annotation>
  426. <xs:documentation xml:lang="hu">Sikeres művelet</xs:documentation>
  427. <xs:documentation xml:lang="en">Successful operation</xs:documentation>
  428. </xs:annotation>
  429. </xs:enumeration>
  430. <xs:enumeration value="ERROR">
  431. <xs:annotation>
  432. <xs:documentation xml:lang="hu">Hiba</xs:documentation>
  433. <xs:documentation xml:lang="en">Error</xs:documentation>
  434. </xs:annotation>
  435. </xs:enumeration>
  436. </xs:restriction>
  437. </xs:simpleType>
  438. <xs:simpleType name="LoginType">
  439. <xs:annotation>
  440. <xs:documentation xml:lang="hu">Felhasználónév típus</xs:documentation>
  441. <xs:documentation xml:lang="en">Login type</xs:documentation>
  442. </xs:annotation>
  443. <xs:restriction base="AtomicStringType15">
  444. <xs:minLength value="6"/>
  445. <xs:maxLength value="15"/>
  446. <xs:pattern value="[a-zA-Z0-9]{6,15}"/>
  447. </xs:restriction>
  448. </xs:simpleType>
  449. <xs:simpleType name="RequestPageType">
  450. <xs:annotation>
  451. <xs:documentation xml:lang="hu">Lapozó paraméter típus kérések számára</xs:documentation>
  452. <xs:documentation xml:lang="en">Page parameter type for requests</xs:documentation>
  453. </xs:annotation>
  454. <xs:restriction base="xs:int">
  455. <xs:minInclusive value="1"/>
  456. </xs:restriction>
  457. </xs:simpleType>
  458. <xs:simpleType name="ResponsePageType">
  459. <xs:annotation>
  460. <xs:documentation xml:lang="hu">Lapozó paraméter típus válaszok számára</xs:documentation>
  461. <xs:documentation xml:lang="en">Page parameter type for responses</xs:documentation>
  462. </xs:annotation>
  463. <xs:restriction base="xs:int">
  464. <xs:minInclusive value="0"/>
  465. </xs:restriction>
  466. </xs:simpleType>
  467. <xs:simpleType name="TechnicalResultCodeType">
  468. <xs:annotation>
  469. <xs:documentation xml:lang="hu">Technikai eredmény kód típus</xs:documentation>
  470. <xs:documentation xml:lang="en">Technical result code type</xs:documentation>
  471. </xs:annotation>
  472. <xs:restriction base="AtomicStringType8">
  473. <xs:enumeration value="CRITICAL">
  474. <xs:annotation>
  475. <xs:documentation xml:lang="hu">Kritikus hiba</xs:documentation>
  476. <xs:documentation xml:lang="en">Critical error</xs:documentation>
  477. </xs:annotation>
  478. </xs:enumeration>
  479. <xs:enumeration value="ERROR">
  480. <xs:annotation>
  481. <xs:documentation xml:lang="hu">Hiba</xs:documentation>
  482. <xs:documentation xml:lang="en">Error</xs:documentation>
  483. </xs:annotation>
  484. </xs:enumeration>
  485. </xs:restriction>
  486. </xs:simpleType>
  487. <xs:complexType name="BasicHeaderType">
  488. <xs:annotation>
  489. <xs:documentation xml:lang="hu">A kérés tranzakcionális adatai</xs:documentation>
  490. <xs:documentation xml:lang="en">Transactional data of the request</xs:documentation>
  491. </xs:annotation>
  492. <xs:sequence>
  493. <xs:element name="requestId" type="EntityIdType">
  494. <xs:annotation>
  495. <xs:documentation xml:lang="hu">A kérés/válasz azonosítója, minden üzenetváltásnál - adószámonként - egyedi</xs:documentation>
  496. <xs:documentation xml:lang="en">Identifier of the request/response, unique with the taxnumber in every data exchange transaction</xs:documentation>
  497. </xs:annotation>
  498. </xs:element>
  499. <xs:element name="timestamp" type="GenericTimestampType">
  500. <xs:annotation>
  501. <xs:documentation xml:lang="hu">A kérés/válasz keletkezésének UTC ideje</xs:documentation>
  502. <xs:documentation xml:lang="en">UTC time of the request/response</xs:documentation>
  503. </xs:annotation>
  504. </xs:element>
  505. <xs:element name="requestVersion" type="AtomicStringType15">
  506. <xs:annotation>
  507. <xs:documentation xml:lang="hu">A kérés/válasz verziószáma, hogy a hívó melyik interfész verzió szerint küld adatot és várja a választ</xs:documentation>
  508. <xs:documentation xml:lang="en">Request version number, indicating which datastructure the client sends data in, and in which the response is expected</xs:documentation>
  509. </xs:annotation>
  510. </xs:element>
  511. <xs:element name="headerVersion" type="AtomicStringType15" minOccurs="0">
  512. <xs:annotation>
  513. <xs:documentation xml:lang="hu">A header verziószáma</xs:documentation>
  514. <xs:documentation xml:lang="en">Header version number</xs:documentation>
  515. </xs:annotation>
  516. </xs:element>
  517. </xs:sequence>
  518. </xs:complexType>
  519. <xs:complexType name="BasicRequestType">
  520. <xs:annotation>
  521. <xs:documentation xml:lang="hu">Alap kérés adatok</xs:documentation>
  522. <xs:documentation xml:lang="en">Basic request data</xs:documentation>
  523. </xs:annotation>
  524. <xs:sequence>
  525. <xs:element name="header" type="BasicHeaderType">
  526. <xs:annotation>
  527. <xs:documentation xml:lang="hu">A kérés tranzakcionális adatai</xs:documentation>
  528. <xs:documentation xml:lang="en">Transactional data of the request</xs:documentation>
  529. </xs:annotation>
  530. </xs:element>
  531. <xs:element name="user" type="UserHeaderType">
  532. <xs:annotation>
  533. <xs:documentation xml:lang="hu">A kérés authentikációs adatai</xs:documentation>
  534. <xs:documentation xml:lang="en">Authentication data of the request</xs:documentation>
  535. </xs:annotation>
  536. </xs:element>
  537. </xs:sequence>
  538. </xs:complexType>
  539. <xs:complexType name="BasicResponseType">
  540. <xs:annotation>
  541. <xs:documentation xml:lang="hu">Alap válasz adatok</xs:documentation>
  542. <xs:documentation xml:lang="en">Basic response data</xs:documentation>
  543. </xs:annotation>
  544. <xs:sequence>
  545. <xs:element name="header" type="BasicHeaderType">
  546. <xs:annotation>
  547. <xs:documentation xml:lang="hu">A válasz tranzakcionális adatai</xs:documentation>
  548. <xs:documentation xml:lang="en">Transactional data of the response</xs:documentation>
  549. </xs:annotation>
  550. </xs:element>
  551. <xs:element name="result" type="BasicResultType">
  552. <xs:annotation>
  553. <xs:documentation xml:lang="hu">Alap válaszeredmény adatok</xs:documentation>
  554. <xs:documentation xml:lang="en">Basic result data</xs:documentation>
  555. </xs:annotation>
  556. </xs:element>
  557. </xs:sequence>
  558. </xs:complexType>
  559. <xs:complexType name="BasicResultType">
  560. <xs:annotation>
  561. <xs:documentation xml:lang="hu">Alap válaszeredmény adatok</xs:documentation>
  562. <xs:documentation xml:lang="en">Basic result data</xs:documentation>
  563. </xs:annotation>
  564. <xs:sequence>
  565. <xs:element name="funcCode" type="FunctionCodeType">
  566. <xs:annotation>
  567. <xs:documentation xml:lang="hu">Feldolgozási eredmény</xs:documentation>
  568. <xs:documentation xml:lang="en">Processing result</xs:documentation>
  569. </xs:annotation>
  570. </xs:element>
  571. <xs:element name="errorCode" type="SimpleText50NotBlankType" minOccurs="0">
  572. <xs:annotation>
  573. <xs:documentation xml:lang="hu">A feldolgozási hibakód</xs:documentation>
  574. <xs:documentation xml:lang="en">Processing error code</xs:documentation>
  575. </xs:annotation>
  576. </xs:element>
  577. <xs:element name="message" type="SimpleText1024NotBlankType" minOccurs="0">
  578. <xs:annotation>
  579. <xs:documentation xml:lang="hu">Feldolgozási üzenet</xs:documentation>
  580. <xs:documentation xml:lang="en">Processing message</xs:documentation>
  581. </xs:annotation>
  582. </xs:element>
  583. <xs:element name="notifications" type="NotificationsType" minOccurs="0">
  584. <xs:annotation>
  585. <xs:documentation xml:lang="hu">Egyéb értesítések</xs:documentation>
  586. <xs:documentation xml:lang="en">Miscellaneous notifications</xs:documentation>
  587. </xs:annotation>
  588. </xs:element>
  589. </xs:sequence>
  590. </xs:complexType>
  591. <xs:complexType name="CryptoType">
  592. <xs:annotation>
  593. <xs:documentation xml:lang="hu">Kriptográfiai metódust leíró típus</xs:documentation>
  594. <xs:documentation xml:lang="en">Denoting type of cryptographic method</xs:documentation>
  595. </xs:annotation>
  596. <xs:simpleContent>
  597. <xs:extension base="SimpleText512NotBlankType">
  598. <xs:attribute name="cryptoType" type="SimpleText50NotBlankType" use="required"/>
  599. </xs:extension>
  600. </xs:simpleContent>
  601. </xs:complexType>
  602. <xs:complexType name="GeneralErrorHeaderResponseType">
  603. <xs:annotation>
  604. <xs:documentation xml:lang="hu">Általános hibatípus minden REST operációra</xs:documentation>
  605. <xs:documentation xml:lang="en">Generic fault type for every REST operation</xs:documentation>
  606. </xs:annotation>
  607. <xs:complexContent>
  608. <xs:extension base="BasicResponseType"/>
  609. </xs:complexContent>
  610. </xs:complexType>
  611. <xs:complexType name="NotificationsType">
  612. <xs:annotation>
  613. <xs:documentation xml:lang="hu">Egyéb értesítések</xs:documentation>
  614. <xs:documentation xml:lang="en">Miscellaneous notifications</xs:documentation>
  615. </xs:annotation>
  616. <xs:sequence>
  617. <xs:element name="notification" type="NotificationType" maxOccurs="unbounded">
  618. <xs:annotation>
  619. <xs:documentation xml:lang="hu">Értesítés</xs:documentation>
  620. <xs:documentation xml:lang="en">Notification</xs:documentation>
  621. </xs:annotation>
  622. </xs:element>
  623. </xs:sequence>
  624. </xs:complexType>
  625. <xs:complexType name="NotificationType">
  626. <xs:annotation>
  627. <xs:documentation xml:lang="hu">Értesítés</xs:documentation>
  628. <xs:documentation xml:lang="en">Notification</xs:documentation>
  629. </xs:annotation>
  630. <xs:sequence>
  631. <xs:element name="notificationCode" type="SimpleText100NotBlankType">
  632. <xs:annotation>
  633. <xs:documentation xml:lang="hu">Értesítés kód</xs:documentation>
  634. <xs:documentation xml:lang="en">Notification code</xs:documentation>
  635. </xs:annotation>
  636. </xs:element>
  637. <xs:element name="notificationText" type="SimpleText1024NotBlankType">
  638. <xs:annotation>
  639. <xs:documentation xml:lang="hu">Értesítés szöveg</xs:documentation>
  640. <xs:documentation xml:lang="en">Notification text</xs:documentation>
  641. </xs:annotation>
  642. </xs:element>
  643. </xs:sequence>
  644. </xs:complexType>
  645. <xs:complexType name="TechnicalValidationResultType">
  646. <xs:annotation>
  647. <xs:documentation xml:lang="hu">Technikai validációs választípus</xs:documentation>
  648. <xs:documentation xml:lang="en">Technical validation response type</xs:documentation>
  649. </xs:annotation>
  650. <xs:sequence>
  651. <xs:element name="validationResultCode" type="TechnicalResultCodeType">
  652. <xs:annotation>
  653. <xs:documentation xml:lang="hu">Validációs eredmény</xs:documentation>
  654. <xs:documentation xml:lang="en">Validation result</xs:documentation>
  655. </xs:annotation>
  656. </xs:element>
  657. <xs:element name="validationErrorCode" type="SimpleText100NotBlankType" minOccurs="0">
  658. <xs:annotation>
  659. <xs:documentation xml:lang="hu">Validációs hibakód</xs:documentation>
  660. <xs:documentation xml:lang="en">Validation error code</xs:documentation>
  661. </xs:annotation>
  662. </xs:element>
  663. <xs:element name="message" type="SimpleText1024NotBlankType" minOccurs="0">
  664. <xs:annotation>
  665. <xs:documentation xml:lang="hu">Feldolgozási üzenet</xs:documentation>
  666. <xs:documentation xml:lang="en">Processing message</xs:documentation>
  667. </xs:annotation>
  668. </xs:element>
  669. </xs:sequence>
  670. </xs:complexType>
  671. <xs:complexType name="UserHeaderType">
  672. <xs:annotation>
  673. <xs:documentation xml:lang="hu">A kérés authentikációs adatai</xs:documentation>
  674. <xs:documentation xml:lang="en">Authentication data of the request</xs:documentation>
  675. </xs:annotation>
  676. <xs:sequence>
  677. <xs:element name="login" type="LoginType">
  678. <xs:annotation>
  679. <xs:documentation xml:lang="hu">A technikai felhasználó login neve</xs:documentation>
  680. <xs:documentation xml:lang="en">Login name of the technical user</xs:documentation>
  681. </xs:annotation>
  682. </xs:element>
  683. <xs:element name="passwordHash" type="CryptoType">
  684. <xs:annotation>
  685. <xs:documentation xml:lang="hu">A technikai felhasználó jelszavának hash értéke</xs:documentation>
  686. <xs:documentation xml:lang="en">Hash value of the technical user's password</xs:documentation>
  687. </xs:annotation>
  688. </xs:element>
  689. <xs:element name="taxNumber" type="TaxpayerIdType">
  690. <xs:annotation>
  691. <xs:documentation xml:lang="hu">A rendszerben regisztrált adózó adószáma, aki nevében a technikai felhasználó tevékenykedik</xs:documentation>
  692. <xs:documentation xml:lang="en">The taxpayer's tax number, whose name the technical user operates in</xs:documentation>
  693. </xs:annotation>
  694. </xs:element>
  695. <xs:element name="requestSignature" type="CryptoType">
  696. <xs:annotation>
  697. <xs:documentation xml:lang="hu">A kérés aláírásának hash értéke</xs:documentation>
  698. <xs:documentation xml:lang="en">Hash value of the request's signature</xs:documentation>
  699. </xs:annotation>
  700. </xs:element>
  701. </xs:sequence>
  702. </xs:complexType>
  703. <!--Általános API hiba válaszok / Generic API error responses-->
  704. <xs:element name="GeneralErrorHeaderResponse">
  705. <xs:annotation>
  706. <xs:documentation xml:lang="hu">Az összes REST operációra vonatkozó hibaválasz generikus elementje</xs:documentation>
  707. <xs:documentation xml:lang="en">General error response of every REST operation</xs:documentation>
  708. </xs:annotation>
  709. <xs:complexType>
  710. <xs:complexContent>
  711. <xs:extension base="GeneralErrorHeaderResponseType"/>
  712. </xs:complexContent>
  713. </xs:complexType>
  714. </xs:element>
  715. <xs:element name="GeneralExceptionResponse">
  716. <xs:annotation>
  717. <xs:documentation xml:lang="hu">Az összes REST operációra vonatkozó kivétel válasz generikus elementje</xs:documentation>
  718. <xs:documentation xml:lang="en">General exception response of every REST operation</xs:documentation>
  719. </xs:annotation>
  720. <xs:complexType>
  721. <xs:complexContent>
  722. <xs:extension base="BasicResultType"/>
  723. </xs:complexContent>
  724. </xs:complexType>
  725. </xs:element>
  726. </xs:schema>