klarna.xsd 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. /**
  4. * This file is part of the Klarna Core module
  5. *
  6. * (c) Klarna Bank AB (publ)
  7. *
  8. * For the full copyright and license information, please view the NOTICE
  9. * and LICENSE files that were distributed with this source code.
  10. */
  11. -->
  12. <xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified"
  13. xmlns:xs="http://www.w3.org/2001/XMLSchema">
  14. <xs:element name="klarna">
  15. <xs:complexType>
  16. <xs:choice maxOccurs="unbounded">
  17. <xs:element name="external_payment_method" minOccurs="0">
  18. <xs:complexType>
  19. <xs:all>
  20. <xs:element type="xs:string" name="label"/>
  21. <xs:element type="xs:string" name="name"/>
  22. <xs:element type="xs:string" name="redirect_url" minOccurs="0"/>
  23. <xs:element type="xs:string" name="image_url" minOccurs="0"/>
  24. <xs:element type="xs:string" name="description"/>
  25. <xs:element type="xs:string" name="fee"/>
  26. </xs:all>
  27. <xs:attribute type="xs:string" name="id"/>
  28. <xs:attribute type="xs:string" name="translate"/>
  29. <xs:attribute type="xs:string" name="ifconfig"/>
  30. </xs:complexType>
  31. </xs:element>
  32. <xs:element name="api_type" minOccurs="0">
  33. <xs:complexType>
  34. <xs:sequence>
  35. <xs:element type="xs:string" name="class"/>
  36. <xs:element type="xs:string" name="ordermanagement"/>
  37. <xs:element name="options" maxOccurs="1" minOccurs="0">
  38. <xs:complexType>
  39. <xs:sequence>
  40. <xs:element name="option" maxOccurs="unbounded" minOccurs="0">
  41. <xs:complexType>
  42. <xs:simpleContent>
  43. <xs:extension base="xs:string">
  44. <xs:attribute name="id" type="xs:string"/>
  45. </xs:extension>
  46. </xs:simpleContent>
  47. </xs:complexType>
  48. </xs:element>
  49. </xs:sequence>
  50. </xs:complexType>
  51. </xs:element>
  52. </xs:sequence>
  53. <xs:attribute type="xs:string" name="id"/>
  54. </xs:complexType>
  55. </xs:element>
  56. <xs:element name="api_version" minOccurs="0">
  57. <xs:complexType>
  58. <xs:all>
  59. <xs:element type="xs:string" name="label"/>
  60. <xs:element type="xs:string" name="type"/>
  61. <xs:element type="xs:string" name="production_url"/>
  62. <xs:element type="xs:string" name="testdrive_url"/>
  63. <xs:element name="options" maxOccurs="1" minOccurs="0">
  64. <xs:complexType>
  65. <xs:sequence>
  66. <xs:element name="option" maxOccurs="unbounded" minOccurs="0">
  67. <xs:complexType>
  68. <xs:simpleContent>
  69. <xs:extension base="xs:string">
  70. <xs:attribute name="id" type="xs:string"/>
  71. </xs:extension>
  72. </xs:simpleContent>
  73. </xs:complexType>
  74. </xs:element>
  75. </xs:sequence>
  76. </xs:complexType>
  77. </xs:element>
  78. </xs:all>
  79. <xs:attribute type="xs:string" name="id" use="required"/>
  80. <xs:attribute type="xs:string" name="translate" use="optional"/>
  81. </xs:complexType>
  82. </xs:element>
  83. <xs:element name="merchant_checkbox" minOccurs="0">
  84. <xs:complexType>
  85. <xs:all>
  86. <xs:element type="xs:string" name="label"/>
  87. <xs:element type="xs:string" name="text"/>
  88. <xs:element type="xs:string" name="validation_event"/>
  89. <xs:element type="xs:string" name="save_event"/>
  90. </xs:all>
  91. <xs:attribute type="xs:string" name="id" use="required"/>
  92. <xs:attribute type="xs:string" name="translate" use="optional"/>
  93. </xs:complexType>
  94. </xs:element>
  95. <xs:element name="order_lines" minOccurs="0">
  96. <xs:complexType>
  97. <xs:sequence>
  98. <xs:element name="line" maxOccurs="unbounded" minOccurs="0">
  99. <xs:complexType>
  100. <xs:attribute type="xs:string" name="id" use="required"/>
  101. <xs:attribute type="xs:string" name="class" use="required"/>
  102. </xs:complexType>
  103. </xs:element>
  104. </xs:sequence>
  105. <xs:attribute type="xs:string" name="id"/>
  106. </xs:complexType>
  107. </xs:element>
  108. </xs:choice>
  109. </xs:complexType>
  110. </xs:element>
  111. </xs:schema>