invoiceBase.xsd 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. # Project: Magyar Online Számla Rendszer invoiceBase XML séma
  4. # Author: NAV Informatikai Intézet
  5. # Version: v3.0 2020/07/31
  6. -->
  7. <xs:schema xmlns="http://schemas.nav.gov.hu/OSA/3.0/base" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:common="http://schemas.nav.gov.hu/NTCA/1.0/common" targetNamespace="http://schemas.nav.gov.hu/OSA/3.0/base" elementFormDefault="qualified" attributeFormDefault="unqualified">
  8. <xs:import namespace="http://schemas.nav.gov.hu/NTCA/1.0/common"/>
  9. <xs:simpleType name="InvoiceAppearanceType">
  10. <xs:annotation>
  11. <xs:documentation xml:lang="hu">Számla megjelenési formája típus</xs:documentation>
  12. <xs:documentation xml:lang="en">Form of appearance of the invoice type</xs:documentation>
  13. </xs:annotation>
  14. <xs:restriction base="common:AtomicStringType15">
  15. <xs:enumeration value="PAPER">
  16. <xs:annotation>
  17. <xs:documentation xml:lang="hu">Papír alapú számla</xs:documentation>
  18. <xs:documentation xml:lang="en">Invoice issued on paper</xs:documentation>
  19. </xs:annotation>
  20. </xs:enumeration>
  21. <xs:enumeration value="ELECTRONIC">
  22. <xs:annotation>
  23. <xs:documentation xml:lang="hu">Elektronikus formában előállított, nem EDI számla</xs:documentation>
  24. <xs:documentation xml:lang="en">Electronic invoice (non-EDI)</xs:documentation>
  25. </xs:annotation>
  26. </xs:enumeration>
  27. <xs:enumeration value="EDI">
  28. <xs:annotation>
  29. <xs:documentation xml:lang="hu">EDI számla</xs:documentation>
  30. <xs:documentation xml:lang="en">EDI invoice</xs:documentation>
  31. </xs:annotation>
  32. </xs:enumeration>
  33. <xs:enumeration value="UNKNOWN">
  34. <xs:annotation>
  35. <xs:documentation xml:lang="hu">A szoftver nem képes azonosítani vagy a kiállításkor nem ismert</xs:documentation>
  36. <xs:documentation xml:lang="en">The software cannot be identify the form of appearance of the invoice or it is unknown at the time of issue</xs:documentation>
  37. </xs:annotation>
  38. </xs:enumeration>
  39. </xs:restriction>
  40. </xs:simpleType>
  41. <xs:simpleType name="InvoiceCategoryType">
  42. <xs:annotation>
  43. <xs:documentation xml:lang="hu">A számla típusa</xs:documentation>
  44. <xs:documentation xml:lang="en">Type of invoice</xs:documentation>
  45. </xs:annotation>
  46. <xs:restriction base="common:AtomicStringType15">
  47. <xs:enumeration value="NORMAL">
  48. <xs:annotation>
  49. <xs:documentation xml:lang="hu">Normál (nem egyszerűsített és nem gyűjtő) számla</xs:documentation>
  50. <xs:documentation xml:lang="en">Normal (not simplified and not aggregate) invoice</xs:documentation>
  51. </xs:annotation>
  52. </xs:enumeration>
  53. <xs:enumeration value="SIMPLIFIED">
  54. <xs:annotation>
  55. <xs:documentation xml:lang="hu">Egyszerűsített számla</xs:documentation>
  56. <xs:documentation xml:lang="en">Simplified invoice</xs:documentation>
  57. </xs:annotation>
  58. </xs:enumeration>
  59. <xs:enumeration value="AGGREGATE">
  60. <xs:annotation>
  61. <xs:documentation xml:lang="hu">Gyűjtőszámla</xs:documentation>
  62. <xs:documentation xml:lang="en">Aggregate invoice</xs:documentation>
  63. </xs:annotation>
  64. </xs:enumeration>
  65. </xs:restriction>
  66. </xs:simpleType>
  67. <xs:simpleType name="InvoiceDateType">
  68. <xs:annotation>
  69. <xs:documentation xml:lang="hu">Dátum típus az Online Számla rendszerben</xs:documentation>
  70. <xs:documentation xml:lang="en">Date type in the Online Invoice system</xs:documentation>
  71. </xs:annotation>
  72. <xs:restriction base="xs:date">
  73. <xs:minInclusive value="2010-01-01"/>
  74. <xs:pattern value="\d{4}-\d{2}-\d{2}"/>
  75. </xs:restriction>
  76. </xs:simpleType>
  77. <xs:simpleType name="InvoiceIndexType">
  78. <xs:annotation>
  79. <xs:documentation xml:lang="hu">Sorszám típus az Online Számla rendszerben</xs:documentation>
  80. <xs:documentation xml:lang="en">Index type in the Online Invoice system</xs:documentation>
  81. </xs:annotation>
  82. <xs:restriction base="xs:int">
  83. <xs:minInclusive value="1"/>
  84. <xs:maxInclusive value="100"/>
  85. </xs:restriction>
  86. </xs:simpleType>
  87. <xs:simpleType name="InvoiceTimestampType">
  88. <xs:annotation>
  89. <xs:documentation xml:lang="hu">Időbélyeg típus az Online Számla rendszerben</xs:documentation>
  90. <xs:documentation xml:lang="en">Timestamp type in the Online Invoice system</xs:documentation>
  91. </xs:annotation>
  92. <xs:restriction base="xs:dateTime">
  93. <xs:minInclusive value="2010-01-01T00:00:00Z"/>
  94. <xs:pattern value="\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(.\d{1,3})?Z"/>
  95. </xs:restriction>
  96. </xs:simpleType>
  97. <xs:simpleType name="InvoiceUnboundedIndexType">
  98. <xs:annotation>
  99. <xs:documentation xml:lang="hu">Sorszám típus kötegelt számlaművelethez az Online Számla rendszerben</xs:documentation>
  100. <xs:documentation xml:lang="en">Index type for batch invoice operation in the Online Invoice system</xs:documentation>
  101. </xs:annotation>
  102. <xs:restriction base="xs:int">
  103. <xs:minInclusive value="1"/>
  104. </xs:restriction>
  105. </xs:simpleType>
  106. <xs:simpleType name="LineNumberType">
  107. <xs:annotation>
  108. <xs:documentation xml:lang="hu">Tételszám típus</xs:documentation>
  109. <xs:documentation xml:lang="en">Line number type</xs:documentation>
  110. </xs:annotation>
  111. <xs:restriction base="xs:nonNegativeInteger">
  112. <xs:minInclusive value="1"/>
  113. <xs:totalDigits value="20"/>
  114. </xs:restriction>
  115. </xs:simpleType>
  116. <xs:simpleType name="MonetaryType">
  117. <xs:annotation>
  118. <xs:documentation xml:lang="hu">Pénzérték típus. Maximum 18 számjegy, ami 2 tizedesjegyet tartalmazhat</xs:documentation>
  119. <xs:documentation xml:lang="en">Field type for money value input. Maximum 18 digits that may include 2 decimal places</xs:documentation>
  120. </xs:annotation>
  121. <xs:restriction base="common:GenericDecimalType">
  122. <xs:totalDigits value="18"/>
  123. <xs:fractionDigits value="2"/>
  124. </xs:restriction>
  125. </xs:simpleType>
  126. <xs:simpleType name="PaymentMethodType">
  127. <xs:annotation>
  128. <xs:documentation xml:lang="hu">Fizetés módja</xs:documentation>
  129. <xs:documentation xml:lang="en">Method of payment</xs:documentation>
  130. </xs:annotation>
  131. <xs:restriction base="common:AtomicStringType15">
  132. <xs:enumeration value="TRANSFER">
  133. <xs:annotation>
  134. <xs:documentation xml:lang="hu">Banki átutalás</xs:documentation>
  135. <xs:documentation xml:lang="en">Bank transfer</xs:documentation>
  136. </xs:annotation>
  137. </xs:enumeration>
  138. <xs:enumeration value="CASH">
  139. <xs:annotation>
  140. <xs:documentation xml:lang="hu">Készpénz</xs:documentation>
  141. <xs:documentation xml:lang="en">Cash</xs:documentation>
  142. </xs:annotation>
  143. </xs:enumeration>
  144. <xs:enumeration value="CARD">
  145. <xs:annotation>
  146. <xs:documentation xml:lang="hu">Bankkártya, hitelkártya, egyéb készpénz helyettesítő eszköz</xs:documentation>
  147. <xs:documentation xml:lang="en">Debit card, credit card, other cash-substitute payment instrument</xs:documentation>
  148. </xs:annotation>
  149. </xs:enumeration>
  150. <xs:enumeration value="VOUCHER">
  151. <xs:annotation>
  152. <xs:documentation xml:lang="hu">Utalvány, váltó, egyéb pénzhelyettesítő eszköz</xs:documentation>
  153. <xs:documentation xml:lang="en">Voucher, bill of exchange, other non-cash payment instrument</xs:documentation>
  154. </xs:annotation>
  155. </xs:enumeration>
  156. <xs:enumeration value="OTHER">
  157. <xs:annotation>
  158. <xs:documentation xml:lang="hu">Egyéb</xs:documentation>
  159. <xs:documentation xml:lang="en">Other</xs:documentation>
  160. </xs:annotation>
  161. </xs:enumeration>
  162. </xs:restriction>
  163. </xs:simpleType>
  164. <xs:complexType name="AddressType">
  165. <xs:annotation>
  166. <xs:documentation xml:lang="hu">Cím típus, amely vagy egyszerű, vagy részletes címet tartalmaz</xs:documentation>
  167. <xs:documentation xml:lang="en">Format of address that includes either a simple or a detailed address</xs:documentation>
  168. </xs:annotation>
  169. <xs:choice>
  170. <xs:element name="simpleAddress" type="SimpleAddressType">
  171. <xs:annotation>
  172. <xs:documentation xml:lang="hu">Egyszerű cím</xs:documentation>
  173. <xs:documentation xml:lang="en">Simple address</xs:documentation>
  174. </xs:annotation>
  175. </xs:element>
  176. <xs:element name="detailedAddress" type="DetailedAddressType">
  177. <xs:annotation>
  178. <xs:documentation xml:lang="hu">Részletes cím</xs:documentation>
  179. <xs:documentation xml:lang="en">Detailed address</xs:documentation>
  180. </xs:annotation>
  181. </xs:element>
  182. </xs:choice>
  183. </xs:complexType>
  184. <xs:complexType name="DetailedAddressType">
  185. <xs:annotation>
  186. <xs:documentation xml:lang="hu">Részletes címadatok</xs:documentation>
  187. <xs:documentation xml:lang="en">Detailed address data</xs:documentation>
  188. </xs:annotation>
  189. <xs:sequence>
  190. <xs:element name="countryCode" type="common:CountryCodeType">
  191. <xs:annotation>
  192. <xs:documentation xml:lang="hu">Az országkód ISO 3166 alpha-2 szabvány szerint</xs:documentation>
  193. <xs:documentation xml:lang="en">ISO 3166 alpha-2 country code</xs:documentation>
  194. </xs:annotation>
  195. </xs:element>
  196. <xs:element name="region" type="common:SimpleText50NotBlankType" minOccurs="0">
  197. <xs:annotation>
  198. <xs:documentation xml:lang="hu">Tartomány kódja (amennyiben értelmezhető az adott országban) az ISO 3166-2 alpha 2 szabvány szerint</xs:documentation>
  199. <xs:documentation xml:lang="en">ISO 3166 alpha-2 province code (if appropriate in a given country)</xs:documentation>
  200. </xs:annotation>
  201. </xs:element>
  202. <xs:element name="postalCode" type="common:PostalCodeType">
  203. <xs:annotation>
  204. <xs:documentation xml:lang="hu">Irányítószám (amennyiben nem értelmezhető, 0000 értékkel kell kitölteni)</xs:documentation>
  205. <xs:documentation xml:lang="en">ZIP code (If can not be interpreted, need to be filled "0000")</xs:documentation>
  206. </xs:annotation>
  207. </xs:element>
  208. <xs:element name="city" type="common:SimpleText255NotBlankType">
  209. <xs:annotation>
  210. <xs:documentation xml:lang="hu">Település</xs:documentation>
  211. <xs:documentation xml:lang="en">Settlement</xs:documentation>
  212. </xs:annotation>
  213. </xs:element>
  214. <xs:element name="streetName" type="common:SimpleText255NotBlankType">
  215. <xs:annotation>
  216. <xs:documentation xml:lang="hu">Közterület neve</xs:documentation>
  217. <xs:documentation xml:lang="en">Name of public place</xs:documentation>
  218. </xs:annotation>
  219. </xs:element>
  220. <xs:element name="publicPlaceCategory" type="common:SimpleText50NotBlankType">
  221. <xs:annotation>
  222. <xs:documentation xml:lang="hu">Közterület jellege</xs:documentation>
  223. <xs:documentation xml:lang="en">Category of public place</xs:documentation>
  224. </xs:annotation>
  225. </xs:element>
  226. <xs:element name="number" type="common:SimpleText50NotBlankType" minOccurs="0">
  227. <xs:annotation>
  228. <xs:documentation xml:lang="hu">Házszám</xs:documentation>
  229. <xs:documentation xml:lang="en">House number</xs:documentation>
  230. </xs:annotation>
  231. </xs:element>
  232. <xs:element name="building" type="common:SimpleText50NotBlankType" minOccurs="0">
  233. <xs:annotation>
  234. <xs:documentation xml:lang="hu">Épület</xs:documentation>
  235. <xs:documentation xml:lang="en">Building</xs:documentation>
  236. </xs:annotation>
  237. </xs:element>
  238. <xs:element name="staircase" type="common:SimpleText50NotBlankType" minOccurs="0">
  239. <xs:annotation>
  240. <xs:documentation xml:lang="hu">Lépcsőház</xs:documentation>
  241. <xs:documentation xml:lang="en">Staircase</xs:documentation>
  242. </xs:annotation>
  243. </xs:element>
  244. <xs:element name="floor" type="common:SimpleText50NotBlankType" minOccurs="0">
  245. <xs:annotation>
  246. <xs:documentation xml:lang="hu">Emelet</xs:documentation>
  247. <xs:documentation xml:lang="en">Floor</xs:documentation>
  248. </xs:annotation>
  249. </xs:element>
  250. <xs:element name="door" type="common:SimpleText50NotBlankType" minOccurs="0">
  251. <xs:annotation>
  252. <xs:documentation xml:lang="hu">Ajtó</xs:documentation>
  253. <xs:documentation xml:lang="en">Door number</xs:documentation>
  254. </xs:annotation>
  255. </xs:element>
  256. <xs:element name="lotNumber" type="common:SimpleText50NotBlankType" minOccurs="0">
  257. <xs:annotation>
  258. <xs:documentation xml:lang="hu">Helyrajzi szám</xs:documentation>
  259. <xs:documentation xml:lang="en">Lot number</xs:documentation>
  260. </xs:annotation>
  261. </xs:element>
  262. </xs:sequence>
  263. </xs:complexType>
  264. <xs:complexType name="SimpleAddressType">
  265. <xs:annotation>
  266. <xs:documentation xml:lang="hu">Egyszerű címtípus</xs:documentation>
  267. <xs:documentation xml:lang="en">Simple address type</xs:documentation>
  268. </xs:annotation>
  269. <xs:sequence>
  270. <xs:element name="countryCode" type="common:CountryCodeType">
  271. <xs:annotation>
  272. <xs:documentation xml:lang="hu">Az országkód az ISO 3166 alpha-2 szabvány szerint</xs:documentation>
  273. <xs:documentation xml:lang="en">ISO 3166 alpha-2 country code</xs:documentation>
  274. </xs:annotation>
  275. </xs:element>
  276. <xs:element name="region" type="common:SimpleText50NotBlankType" minOccurs="0">
  277. <xs:annotation>
  278. <xs:documentation xml:lang="hu">Tartomány kódja (amennyiben értelmezhető az adott országban) az ISO 3166-2 alpha 2 szabvány szerint</xs:documentation>
  279. <xs:documentation xml:lang="en">ISO 3166 alpha-2 province code (if appropriate in a given country)</xs:documentation>
  280. </xs:annotation>
  281. </xs:element>
  282. <xs:element name="postalCode" type="common:PostalCodeType">
  283. <xs:annotation>
  284. <xs:documentation xml:lang="hu">Irányítószám (amennyiben nem értelmezhető, 0000 értékkel kell kitölteni)</xs:documentation>
  285. <xs:documentation xml:lang="en">ZIP code (If can not be interpreted, need to be filled "0000")</xs:documentation>
  286. </xs:annotation>
  287. </xs:element>
  288. <xs:element name="city" type="common:SimpleText255NotBlankType">
  289. <xs:annotation>
  290. <xs:documentation xml:lang="hu">Település</xs:documentation>
  291. <xs:documentation xml:lang="en">Settlement</xs:documentation>
  292. </xs:annotation>
  293. </xs:element>
  294. <xs:element name="additionalAddressDetail" type="common:SimpleText255NotBlankType">
  295. <xs:annotation>
  296. <xs:documentation xml:lang="hu">További címadatok (pl. közterület neve és jellege, házszám, emelet, ajtó, helyrajzi szám, stb.)</xs:documentation>
  297. <xs:documentation xml:lang="en">Further address data (name and type of public place, house number, floor, door, lot number, etc.)</xs:documentation>
  298. </xs:annotation>
  299. </xs:element>
  300. </xs:sequence>
  301. </xs:complexType>
  302. <xs:complexType name="TaxNumberType">
  303. <xs:annotation>
  304. <xs:documentation xml:lang="hu">Adószám típus</xs:documentation>
  305. <xs:documentation xml:lang="en">Tax number type</xs:documentation>
  306. </xs:annotation>
  307. <xs:sequence>
  308. <xs:element name="taxpayerId" type="common:TaxpayerIdType">
  309. <xs:annotation>
  310. <xs:documentation xml:lang="hu">Az adóalany adó törzsszáma. Csoportos adóalany esetén csoportazonosító szám</xs:documentation>
  311. <xs:documentation xml:lang="en">Core tax number of the taxable person. In case of group taxation arrangement the group identification number</xs:documentation>
  312. </xs:annotation>
  313. </xs:element>
  314. <xs:element name="vatCode" type="common:VatCodeType" minOccurs="0">
  315. <xs:annotation>
  316. <xs:documentation xml:lang="hu">ÁFA kód az adóalanyiság típusának jelzésére. Egy számjegy</xs:documentation>
  317. <xs:documentation xml:lang="en">VAT code to indicate taxation type of the taxpayer. One digit</xs:documentation>
  318. </xs:annotation>
  319. </xs:element>
  320. <xs:element name="countyCode" type="common:CountyCodeType" minOccurs="0">
  321. <xs:annotation>
  322. <xs:documentation xml:lang="hu">Megyekód, két számjegy</xs:documentation>
  323. <xs:documentation xml:lang="en">County code, two digits</xs:documentation>
  324. </xs:annotation>
  325. </xs:element>
  326. </xs:sequence>
  327. </xs:complexType>
  328. </xs:schema>