-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathvoucherSchema.xsd
65 lines (65 loc) · 2.67 KB
/
voucherSchema.xsd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
<?xml version="1.0" encoding="UTF-8" ?>
<schema elementFormDefault="qualified" targetNamespace="urn:ietf:params:xml:ns:vts-lang"
xmlns="http://www.w3.org/2001/XMLSchema" xmlns:gvl="urn:ietf:params:xml:ns:vts-lang">
<element name="Voucher" type="gvl:VoucherType" />
<complexType name="VoucherType">
<sequence>
<element ref="gvl:Title" />
<element maxOccurs="1" minOccurs="1" ref="gvl:Issuer" />
<element maxOccurs="unbounded" minOccurs="1" ref="gvl:Provider" />
<element maxOccurs="unbounded" minOccurs="1" ref="gvl:Merchandise" />
<element maxOccurs="unbounded" minOccurs="1" ref="gvl:Description" />
<element maxOccurs="unbounded" minOccurs="1" ref="gvl:Condition" />
<element maxOccurs="1" minOccurs="1" ref="gvl:Value" />
<element maxOccurs="1" minOccurs="1" ref="gvl:ValidPeriod" />
</sequence>
</complexType>
<element name="Title" type="string" />
<element name="Issuer" type="gvl:RoleType" />
<element name="Provider" type="gvl:RoleType" />
<element name="Merchandise" type="string" />
<element name="Description" type="string" />
<element name="Condition" type="string" />
<element name="ValidPeriod" type="gvl:ValidPeriodType" />
<complexType mixed="true" name="RoleType">
<sequence>
<element name="name" type="string" />
<element name="account" type="string" />
<element name="shortname" type="string" />
<element name="longname" type="string" />
<element name="postaddress" type="string" />
<element name="country" type="string" />
<element name="registration" type="string" />
<element name="Bzz" type="string" />
<element name="account" type="string" />
</sequence>
</complexType>
<element name="Value" type="gvl:ValueType" />
<complexType name="ValueType">
<sequence minOccurs="1">
<element name="Fixed" type="gvl:FixedValueType" />
</sequence>
</complexType>
<complexType name="RatioValueType">
<attribute name="percentage" use="required">
<simpleType>
<restriction base="float">
<maxInclusive value="100" />
</restriction>
</simpleType>
</attribute>
</complexType>
<complexType name="FixedValueType">
<sequence>
<element maxOccurs="1" minOccurs="1" name="currency" type="string" />
<element maxOccurs="1" minOccurs="1" name="voucherTokenSymbol" type="string" />
<element maxOccurs="1" minOccurs="1" name="voucherTokenLogoBzz" type="string" />
<element maxOccurs="1" minOccurs="1" name="amount" type="float" />
<element maxOccurs="1" minOccurs="1" default="0" name="decimalPower" type="short" />
</sequence>
</complexType>
<complexType name="ValidPeriodType">
<attribute name="start" type="dateTime" />
<attribute name="end" type="dateTime" />
</complexType>
</schema>