payment_file.xsd 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. /**
  4. * Copyright © Magento, Inc. All rights reserved.
  5. * See COPYING.txt for license details.
  6. */
  7. -->
  8. <xs:schema elementFormDefault="qualified"
  9. xmlns:xs="http://www.w3.org/2001/XMLSchema">
  10. <xs:element name="payment">
  11. <xs:annotation>
  12. <xs:documentation>
  13. The root node for payment configuration
  14. </xs:documentation>
  15. </xs:annotation>
  16. <xs:complexType>
  17. <xs:all>
  18. <xs:element name="credit_cards" type="credit_cardsType" minOccurs="0" />
  19. <xs:element name="groups" type="groupsType" minOccurs="0"/>
  20. <xs:element name="methods" type="methodsType" minOccurs="0" />
  21. </xs:all>
  22. </xs:complexType>
  23. </xs:element>
  24. <xs:complexType name="credit_cardsType">
  25. <xs:annotation>
  26. <xs:documentation>
  27. The containing node for a list of credit card types.
  28. </xs:documentation>
  29. </xs:annotation>
  30. <xs:sequence maxOccurs="unbounded">
  31. <xs:element name="type" type="typeType" />
  32. </xs:sequence>
  33. </xs:complexType>
  34. <xs:complexType name="typeType">
  35. <xs:annotation>
  36. <xs:documentation>
  37. The definition of a credit card type.
  38. </xs:documentation>
  39. </xs:annotation>
  40. <xs:all>
  41. <xs:element name="label" type="xs:string" minOccurs="0" />
  42. </xs:all>
  43. <xs:attribute name="id" type="xs:ID" use="required" />
  44. <xs:attribute name="order" type="xs:integer" />
  45. </xs:complexType>
  46. <xs:complexType name="groupsType">
  47. <xs:annotation>
  48. <xs:documentation>
  49. The containing node for a list of payment groups.
  50. </xs:documentation>
  51. </xs:annotation>
  52. <xs:sequence maxOccurs="unbounded">
  53. <xs:element name="group" type="groupType" />
  54. </xs:sequence>
  55. </xs:complexType>
  56. <xs:complexType name="groupType">
  57. <xs:annotation>
  58. <xs:documentation>
  59. The definition of a payment group.
  60. </xs:documentation>
  61. </xs:annotation>
  62. <xs:all>
  63. <xs:element name="label" type="xs:string" />
  64. </xs:all>
  65. <xs:attribute name="id" type="xs:ID" use="required" />
  66. </xs:complexType>
  67. <xs:complexType name="methodsType">
  68. <xs:annotation>
  69. <xs:documentation>
  70. The containing node for a list of payment methods.
  71. </xs:documentation>
  72. </xs:annotation>
  73. <xs:sequence maxOccurs="unbounded">
  74. <xs:element name="method" type="methodType" />
  75. </xs:sequence>
  76. </xs:complexType>
  77. <xs:complexType name="methodType">
  78. <xs:annotation>
  79. <xs:documentation>
  80. The definition of a payment method.
  81. </xs:documentation>
  82. </xs:annotation>
  83. <xs:all>
  84. <xs:element name="allow_multiple_address" type="xs:integer" minOccurs="0" />
  85. </xs:all>
  86. <xs:attribute name="name" type="xs:ID" use="required" />
  87. </xs:complexType>
  88. </xs:schema>