ECMLv2.xml 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!-- Electronic Commerce Modeling Language v2 -->
  3. <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
  4. elementFormDefault="qualified">
  5. <xs:attribute name="Mode">
  6. <xs:simpleType>
  7. <xs:restriction base="xs:string">
  8. <xs:enumeration value="Query"/>
  9. <xs:enumeration value="Assert"/>
  10. </xs:restriction>
  11. </xs:simpleType>
  12. </xs:attribute>
  13. <xs:attribute name="id" type="xs:ID"/>
  14. <xs:complexType name="EcomSimpleText">
  15. <xs:simpleContent>
  16. <xs:extension base="xs:string">
  17. <xs:attribute ref="Mode" use="optional"/>
  18. <xs:attribute ref="id" use="optional"/>
  19. </xs:extension>
  20. </xs:simpleContent>
  21. </xs:complexType>
  22. <xs:element name="Ecom">
  23. <xs:complexType mixed="true">
  24. <xs:choice minOccurs="0" maxOccurs="unbounded">
  25. <xs:element ref="ShipTo"/>
  26. <xs:element ref="BillTo"/>
  27. <xs:element ref="ReceiptTo"/>
  28. <xs:element ref="Payment"/>
  29. <xs:element ref="Loyalty"/>
  30. <xs:element ref="User"/>
  31. <xs:element ref="Merchant"/>
  32. <xs:element ref="Transaction"/>
  33. <xs:element ref="TransactionComplete"/>
  34. </xs:choice>
  35. <xs:attribute ref="Mode" use="optional"/>
  36. <xs:attribute ref="id" use="optional"/>
  37. <xs:attribute name="ConsumerOrderID" use="optional"/>
  38. <xs:attribute name="Merchant" use="optional"/>
  39. <xs:attribute name="Processor" use="optional"/>
  40. <xs:attribute name="SchemaVersion" type="xs:string"
  41. fixed="urn:ietf:params:ecml:v2.0"/>
  42. <xs:attribute name="WalletID" use="optional"/>
  43. <xs:attribute name="WalletLocation" type="xs:anyURI"
  44. use="optional"/>
  45. </xs:complexType>
  46. </xs:element>
  47. <xs:element name="ShipTo">
  48. <xs:complexType mixed="true">
  49. <xs:choice minOccurs="0" maxOccurs="unbounded">
  50. <xs:element ref="Postal"/>
  51. <xs:element ref="Telecom"/>
  52. <xs:element ref="Online"/>
  53. </xs:choice>
  54. <xs:attribute ref="Mode" use="optional"/>
  55. <xs:attribute ref="id" use="optional"/>
  56. </xs:complexType>
  57. </xs:element>
  58. <xs:element name="BillTo">
  59. <xs:complexType mixed="true">
  60. <xs:choice minOccurs="0" maxOccurs="unbounded">
  61. <xs:element ref="Postal"/>
  62. <xs:element ref="Telecom"/>
  63. <xs:element ref="Online"/>
  64. </xs:choice>
  65. <xs:attribute ref="Mode" use="optional"/>
  66. <xs:attribute ref="id" use="optional"/>
  67. </xs:complexType>
  68. </xs:element>
  69. <xs:element name="ReceiptTo">
  70. <xs:complexType mixed="true">
  71. <xs:choice minOccurs="0" maxOccurs="unbounded">
  72. <xs:element ref="Postal"/>
  73. <xs:element ref="Telecom"/>
  74. <xs:element ref="Online"/>
  75. </xs:choice>
  76. <xs:attribute ref="Mode" use="optional"/>
  77. <xs:attribute ref="id" use="optional"/>
  78. </xs:complexType>
  79. </xs:element>
  80. <xs:element name="Postal">
  81. <xs:complexType mixed="true">
  82. <xs:choice minOccurs="0" maxOccurs="unbounded">
  83. <xs:element ref="Name"/>
  84. <xs:element ref="Company"/>
  85. <xs:element ref="Street"/>
  86. <xs:element ref="City"/>
  87. <xs:element ref="StateProv"/>
  88. </xs:choice>
  89. <xs:attribute ref="Mode" use="optional"/>
  90. <xs:attribute ref="id" use="optional"/>
  91. <xs:attribute name="PostalCode" type="xs:NMTOKEN"
  92. use="optional"/>
  93. <xs:attribute name="CountryCode" type="xs:NMTOKEN"
  94. use="optional"/>
  95. </xs:complexType>
  96. </xs:element>
  97. <xs:element name="Telecom">
  98. <xs:complexType mixed="true">
  99. <xs:sequence maxOccurs="unbounded">
  100. <xs:element name="Phone">
  101. <xs:complexType>
  102. <xs:attribute ref="Mode" use="optional"/>
  103. <xs:attribute ref="id" use="optional"/>
  104. <xs:attribute name="Number"/>
  105. </xs:complexType>
  106. </xs:element>
  107. </xs:sequence>
  108. <xs:attribute ref="Mode" use="optional"/>
  109. </xs:complexType>
  110. </xs:element>
  111. <xs:element name="Online">
  112. <xs:complexType mixed="true">
  113. <xs:sequence maxOccurs="unbounded">
  114. <xs:element name="Email">
  115. <xs:complexType>
  116. <xs:attribute ref="Mode" use="optional"/>
  117. <xs:attribute ref="id" use="optional"/>
  118. <xs:attribute name="Address"/>
  119. </xs:complexType>
  120. </xs:element>
  121. </xs:sequence>
  122. <xs:attribute ref="Mode" use="optional"/>
  123. </xs:complexType>
  124. </xs:element>
  125. <xs:element name="Payment">
  126. <xs:complexType>
  127. <xs:sequence>
  128. <xs:element name="Card">
  129. <xs:complexType>
  130. <xs:sequence>
  131. <xs:element ref="ExpDate"/>
  132. <xs:element ref="ValidDate" minOccurs="0"/>
  133. </xs:sequence>
  134. <xs:attribute ref="Mode" use="optional"/>
  135. <xs:attribute ref="id" use="optional"/>
  136. <xs:attribute name="Name" use="optional"/>
  137. <xs:attribute name="Type" type="xs:NMTOKEN"
  138. use="optional"/>
  139. <xs:attribute name="Number" type="xs:decimal"/>
  140. <xs:attribute name="Protocols" type="xs:NMTOKENS"
  141. use="optional"/>
  142. <xs:attribute name="Verification"
  143. type="xs:NMTOKEN" use="optional"/>
  144. <xs:attribute name="Issuer" type="xs:NMTOKEN"
  145. use="optional"/>
  146. </xs:complexType>
  147. </xs:element>
  148. </xs:sequence>
  149. <xs:attribute ref="Mode" use="optional"/>
  150. </xs:complexType>
  151. </xs:element>
  152. <xs:element name="Loyalty">
  153. <xs:complexType>
  154. <xs:sequence>
  155. <xs:element ref="ExpDate"/>
  156. <xs:element ref="ValidDate" minOccurs="0"/>
  157. </xs:sequence>
  158. <xs:attribute ref="Mode" use="optional"/>
  159. <xs:attribute ref="id" use="optional"/>
  160. <xs:attribute name="Name" use="optional"/>
  161. <xs:attribute name="Type" type="xs:NMTOKEN"
  162. use="optional"/>
  163. <xs:attribute name="Number" type="xs:NMTOKEN"/>
  164. <xs:attribute name="Verification" type="xs:NMTOKEN"
  165. use="optional"/>
  166. </xs:complexType>
  167. </xs:element>
  168. <xs:element name="ExpDate">
  169. <xs:complexType>
  170. <xs:attribute ref="Mode" use="optional"/>
  171. <xs:attribute ref="id" use="optional"/>
  172. <xs:attribute name="Day" type="xs:positiveInteger"/>
  173. <xs:attribute name="Month" type="xs:positiveInteger"/>
  174. <xs:attribute name="Year" type="xs:positiveInteger"/>
  175. </xs:complexType>
  176. </xs:element>
  177. <xs:element name="ValidDate">
  178. <xs:complexType>
  179. <xs:attribute ref="Mode" use="optional"/>
  180. <xs:attribute ref="id" use="optional"/>
  181. <xs:attribute name="Day" type="xs:positiveInteger"/>
  182. <xs:attribute name="Month" type="xs:positiveInteger"/>
  183. <xs:attribute name="Year" type="xs:positiveInteger"/>
  184. </xs:complexType>
  185. </xs:element>
  186. <xs:element name="User">
  187. <xs:complexType mixed="true">
  188. <xs:choice minOccurs="0" maxOccurs="unbounded">
  189. <xs:element ref="UserID"/>
  190. <xs:element ref="Password"/>
  191. </xs:choice>
  192. <xs:attribute ref="Mode" use="optional"/>
  193. <xs:attribute ref="id" use="optional"/>
  194. <xs:attribute name="CertificateURL" type="xs:anyURI"
  195. use="optional"/>
  196. <xs:attribute name="DataCountry" type="xs:NMTOKEN"
  197. use="optional"/>
  198. <xs:attribute name="DataLanguage" type="xs:language"
  199. use="optional"/>
  200. </xs:complexType>
  201. </xs:element>
  202. <xs:element name="Transaction">
  203. <xs:complexType mixed="true">
  204. <xs:choice minOccurs="0" maxOccurs="unbounded">
  205. <xs:element ref="Id"/>
  206. <xs:element ref="Code"/>
  207. <xs:element ref="Date"/>
  208. <xs:element ref="Data"/>
  209. <xs:element ref="Inquiry"/>
  210. <xs:element ref="Signature"/>
  211. </xs:choice>
  212. <xs:attribute ref="Mode" use="optional"/>
  213. <xs:attribute name="Currency" type="xs:NMTOKEN"
  214. use="optional"/>
  215. <xs:attribute name="Type" type="xs:NMTOKEN"
  216. use="optional"/>
  217. </xs:complexType>
  218. </xs:element>
  219. <xs:element name="Date">
  220. <xs:complexType>
  221. <xs:sequence>
  222. <xs:element ref="Effective" minOccurs="0"/>
  223. <xs:element ref="Settle" minOccurs="0"/>
  224. <xs:element ref="Capture" minOccurs="0"/>
  225. </xs:sequence>
  226. <xs:attribute ref="Mode" use="optional"/>
  227. <xs:attribute ref="id" use="optional"/>
  228. </xs:complexType>
  229. </xs:element>
  230. <xs:element name="Data">
  231. <xs:complexType mixed="true">
  232. <xs:choice minOccurs="0" maxOccurs="unbounded">
  233. <xs:element ref="Trace"/>
  234. <xs:element ref="PrivateUse"/>
  235. <xs:element ref="Response"/>
  236. <xs:element ref="AAV"/>
  237. <xs:element ref="Track1"/>
  238. <xs:element ref="Track2"/>
  239. </xs:choice>
  240. <xs:attribute ref="Mode" use="optional"/>
  241. </xs:complexType>
  242. </xs:element>
  243. <xs:element name="Merchant">
  244. <xs:complexType>
  245. <xs:sequence>
  246. <xs:element name="Terminal">
  247. <xs:complexType>
  248. <xs:attribute ref="Mode" use="optional"/>
  249. <xs:attribute ref="id" use="optional"/>
  250. <xs:attribute name="Data" use="optional"/>
  251. </xs:complexType>
  252. </xs:element>
  253. </xs:sequence>
  254. <xs:attribute ref="Mode" use="optional"/>
  255. <xs:attribute ref="id" use="optional"/>
  256. </xs:complexType>
  257. </xs:element>
  258. <xs:element name="AAV" type="EcomSimpleText"/>
  259. <xs:element name="Capture">
  260. <xs:complexType>
  261. <xs:attribute ref="Mode" use="optional"/>
  262. <xs:attribute ref="id" use="optional"/>
  263. <xs:attribute name="Day" type="xs:NMTOKEN"/>
  264. <xs:attribute name="Month" type="xs:NMTOKEN"/>
  265. <xs:attribute name="Year" type="xs:NMTOKEN"/>
  266. </xs:complexType>
  267. </xs:element>
  268. <xs:element name="City" type="EcomSimpleText"/>
  269. <xs:element name="Code">
  270. <xs:complexType>
  271. <xs:attribute ref="Mode" use="optional"/>
  272. <xs:attribute name="Processing" use="optional"/>
  273. <xs:attribute name="Approval" type="xs:NMTOKEN"
  274. use="optional"/>
  275. <xs:attribute name="Retrieval" type="xs:NMTOKEN"
  276. use="optional"/>
  277. <xs:attribute name="Action" type="xs:NMTOKEN"
  278. use="optional"/>
  279. <xs:attribute name="Reason" type="xs:NMTOKEN"
  280. use="optional"/>
  281. <xs:attribute name="POS" type="xs:NMTOKEN"
  282. use="optional"/>
  283. </xs:complexType>
  284. </xs:element>
  285. <xs:element name="Company" type="EcomSimpleText"/>
  286. <xs:element name="Effective">
  287. <xs:complexType>
  288. <xs:attribute ref="Mode" use="optional"/>
  289. <xs:attribute ref="id" use="optional"/>
  290. <xs:attribute name="Day" type="xs:NMTOKEN"/>
  291. <xs:attribute name="Month" type="xs:NMTOKEN"/>
  292. <xs:attribute name="Year" type="xs:NMTOKEN"/>
  293. </xs:complexType>
  294. </xs:element>
  295. <xs:element name="Id">
  296. <xs:complexType>
  297. <xs:attribute ref="Mode" use="optional"/>
  298. <xs:attribute ref="id" use="optional"/>
  299. <xs:attribute name="CID" type="xs:NMTOKEN"
  300. use="optional"/>
  301. <xs:attribute name="Reference" type="xs:NMTOKEN"
  302. use="optional"/>
  303. <xs:attribute name="Acquire" type="xs:NMTOKEN"
  304. use="optional"/>
  305. <xs:attribute name="Forward" type="xs:NMTOKEN"
  306. use="optional"/>
  307. </xs:complexType>
  308. </xs:element>
  309. <xs:element name="Inquiry">
  310. <xs:complexType>
  311. <xs:simpleContent>
  312. <xs:extension base="xs:anyURI">
  313. <xs:attribute ref="Mode" use="optional"/>
  314. <xs:attribute ref="id" use="optional"/>
  315. </xs:extension>
  316. </xs:simpleContent>
  317. </xs:complexType>
  318. </xs:element>
  319. <xs:element name="Name">
  320. <xs:complexType>
  321. <xs:attribute ref="Mode" use="optional"/>
  322. <xs:attribute ref="id" use="optional"/>
  323. <xs:attribute name="Prefix" type="xs:NMTOKEN"
  324. use="optional"/>
  325. <xs:attribute name="First" type="xs:NMTOKEN"
  326. use="optional"/>
  327. <xs:attribute name="Middle" type="xs:NMTOKEN"
  328. use="optional"/>
  329. <xs:attribute name="Last" type="xs:NMTOKEN"
  330. use="optional"/>
  331. <xs:attribute name="Suffix" type="xs:NMTOKEN"
  332. use="optional"/>
  333. </xs:complexType>
  334. </xs:element>
  335. <xs:element name="Password" type="EcomSimpleText"/>
  336. <xs:element name="PrivateUse" type="EcomSimpleText"/>
  337. <xs:element name="Response" type="EcomSimpleText"/>
  338. <xs:element name="Settle">
  339. <xs:complexType>
  340. <xs:attribute ref="Mode" use="optional"/>
  341. <xs:attribute ref="id" use="optional"/>
  342. <xs:attribute name="Day" type="xs:NMTOKEN"/>
  343. <xs:attribute name="Month" type="xs:NMTOKEN"/>
  344. <xs:attribute name="Year" type="xs:NMTOKEN"/>
  345. </xs:complexType>
  346. </xs:element>
  347. <xs:element name="Signature">
  348. <xs:complexType>
  349. <xs:simpleContent>
  350. <xs:extension base="xs:string">
  351. <xs:attribute ref="Mode" use="optional"/>
  352. <xs:attribute ref="id" use="optional"/>
  353. </xs:extension>
  354. </xs:simpleContent>
  355. </xs:complexType>
  356. </xs:element>
  357. <xs:element name="StateProv" type="EcomSimpleText"/>
  358. <xs:element name="Street">
  359. <xs:complexType>
  360. <xs:attribute ref="Mode" use="optional"/>
  361. <xs:attribute ref="id" use="optional"/>
  362. <xs:attribute name="Line1"/>
  363. <xs:attribute name="Line2" use="optional"/>
  364. <xs:attribute name="Line3" use="optional"/>
  365. </xs:complexType>
  366. </xs:element>
  367. <xs:element name="Trace" type="EcomSimpleText"/>
  368. <xs:element name="Track1" type="EcomSimpleText"/>
  369. <xs:element name="Track2" type="EcomSimpleText"/>
  370. <xs:element name="TransactionComplete">
  371. <xs:complexType/>
  372. </xs:element>
  373. <xs:element name="UserID" type="EcomSimpleText"/>
  374. </xs:schema>