my_data 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (54) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +14 -0
  3. data/.rspec +3 -0
  4. data/.rubocop.yml +32 -0
  5. data/Gemfile +15 -0
  6. data/LICENSE.txt +21 -0
  7. data/README.md +39 -0
  8. data/Rakefile +12 -0
  9. data/bin/console +15 -0
  10. data/bin/setup +8 -0
  11. data/lib/my_data.rb +24 -0
  12. data/lib/my_data/client.rb +42 -0
  13. data/lib/my_data/resource.rb +191 -0
  14. data/lib/my_data/resources.rb +10 -0
  15. data/lib/my_data/resources/ecls.rb +7 -0
  16. data/lib/my_data/resources/ecls/expenses_classification_type.rb +7 -0
  17. data/lib/my_data/resources/ecls/invoice_expenses_classification_type.rb +7 -0
  18. data/lib/my_data/resources/ecls/invoices_expenses_classification_detail_type.rb +7 -0
  19. data/lib/my_data/resources/error_type.rb +8 -0
  20. data/lib/my_data/resources/icls.rb +7 -0
  21. data/lib/my_data/resources/icls/income_classification_type.rb +7 -0
  22. data/lib/my_data/resources/icls/invoice_income_classification_type.rb +7 -0
  23. data/lib/my_data/resources/icls/invoices_income_classification_detail_type.rb +7 -0
  24. data/lib/my_data/resources/inv.rb +14 -0
  25. data/lib/my_data/resources/inv/aade_book_invoice_type.rb +7 -0
  26. data/lib/my_data/resources/inv/address_type.rb +7 -0
  27. data/lib/my_data/resources/inv/invoice_header_type.rb +7 -0
  28. data/lib/my_data/resources/inv/invoice_row_type.rb +7 -0
  29. data/lib/my_data/resources/inv/invoice_summary_type.rb +7 -0
  30. data/lib/my_data/resources/inv/invoices_doc.rb +17 -0
  31. data/lib/my_data/resources/inv/party_type.rb +7 -0
  32. data/lib/my_data/resources/inv/payment_method_detail_type.rb +7 -0
  33. data/lib/my_data/resources/inv/ship_type.rb +7 -0
  34. data/lib/my_data/resources/inv/tax_totals_type.rb +7 -0
  35. data/lib/my_data/resources/response_type.rb +19 -0
  36. data/lib/my_data/resources/responses_doc.rb +8 -0
  37. data/lib/my_data/type_caster.rb +58 -0
  38. data/lib/my_data/version.rb +5 -0
  39. data/lib/my_data/xml_generator.rb +80 -0
  40. data/lib/my_data/xml_parser.rb +96 -0
  41. data/lib/my_data/xsd.rb +7 -0
  42. data/lib/my_data/xsd/complex_type.rb +24 -0
  43. data/lib/my_data/xsd/docs/InvoicesDoc-v1.0.2.xsd +1088 -0
  44. data/lib/my_data/xsd/docs/RequestedProviderDoc-v1.0.2.xsd +44 -0
  45. data/lib/my_data/xsd/docs/expensesClassification-v1.0.2.xsd +193 -0
  46. data/lib/my_data/xsd/docs/incomeClassification-v1.0.2.xsd +141 -0
  47. data/lib/my_data/xsd/docs/requestDoc-v1.0.2.xsd +66 -0
  48. data/lib/my_data/xsd/docs/requestedInvoicesDoc-v1.0.2.xsd +66 -0
  49. data/lib/my_data/xsd/docs/response-v1.0.2.xsd +80 -0
  50. data/lib/my_data/xsd/element.rb +49 -0
  51. data/lib/my_data/xsd/resource_generator.rb +37 -0
  52. data/lib/my_data/xsd/structure.rb +80 -0
  53. data/my_data.gemspec +36 -0
  54. metadata +153 -0
@@ -0,0 +1,44 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified" version="1.0.2">
3
+ <xs:element name="RequestedProviderDoc">
4
+ <xs:annotation>
5
+ <xs:documentation>Παραστατικά από Πάροχο</xs:documentation>
6
+ </xs:annotation>
7
+ <xs:complexType>
8
+ <xs:sequence minOccurs="0" maxOccurs="unbounded">
9
+ <xs:element name="continuationToken" type="continuationTokenType" minOccurs="0"/>
10
+ <xs:element name="InvoiceProviderType" type="InvoiceProviderType"/>
11
+ </xs:sequence>
12
+ </xs:complexType>
13
+ </xs:element>
14
+ <xs:complexType name="continuationTokenType">
15
+ <xs:sequence>
16
+ <xs:element name="nextPartitionKey" type="xs:string"/>
17
+ <xs:element name="nextRowKey" type="xs:string"/>
18
+ </xs:sequence>
19
+ </xs:complexType>
20
+ <xs:complexType name="InvoiceProviderType">
21
+ <xs:sequence>
22
+ <xs:element name="issuerVAT" type="xs:string">
23
+ <xs:annotation>
24
+ <xs:documentation>ΑΦΜ Εκδότη</xs:documentation>
25
+ </xs:annotation>
26
+ </xs:element>
27
+ <xs:element name="invoiceProviderMark" type="xs:long">
28
+ <xs:annotation>
29
+ <xs:documentation>Μοναδικός Αριθμός Καταχώρησης παραστατικού Παρόχου</xs:documentation>
30
+ </xs:annotation>
31
+ </xs:element>
32
+ <xs:element name="invoiceUid" type="xs:string">
33
+ <xs:annotation>
34
+ <xs:documentation>Αναγνωριστικό οντότητας</xs:documentation>
35
+ </xs:annotation>
36
+ </xs:element>
37
+ <xs:element name="authenticationCode" type="xs:string">
38
+ <xs:annotation>
39
+ <xs:documentation>Συμβολοσειρά Αυθεντικοποίησης Παραστατικού Παρόχου</xs:documentation>
40
+ </xs:annotation>
41
+ </xs:element>
42
+ </xs:sequence>
43
+ </xs:complexType>
44
+ </xs:schema>
@@ -0,0 +1,193 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:ecls="https://www.aade.gr/myDATA/expensesClassificaton/v1.0" xmlns:inv="http://www.aade.gr/myDATA/invoice/v1.0" targetNamespace="https://www.aade.gr/myDATA/expensesClassificaton/v1.0" elementFormDefault="qualified" attributeFormDefault="unqualified" version="1.0.2">
3
+ <xs:element name="ExpensesClassificationsDoc">
4
+ <xs:annotation>
5
+ <xs:documentation>Χαρατηρισμοί Εξόδων Πρότυπων Παραστατικών ΑΑΔΕ</xs:documentation>
6
+ </xs:annotation>
7
+ <xs:complexType>
8
+ <xs:sequence maxOccurs="unbounded">
9
+ <xs:element name="expensesInvoiceClassification" type="ecls:InvoiceExpensesClassificationType"/>
10
+ </xs:sequence>
11
+ </xs:complexType>
12
+ </xs:element>
13
+ <xs:complexType name="InvoiceExpensesClassificationType">
14
+ <xs:sequence>
15
+ <xs:element name="invoiceMark" type="xs:long">
16
+ <xs:annotation>
17
+ <xs:documentation>Μοναδικός Αριθμός Καταχώρησης Παραστατικού</xs:documentation>
18
+ </xs:annotation>
19
+ </xs:element>
20
+ <xs:element name="classificationMark" type="xs:long" minOccurs="0">
21
+ <xs:annotation>
22
+ <xs:documentation>Αποδεικτικό Λήψης Χαρακτηρισμού Εξόδων. Συμπληρώνεται από την Υπηρεσία</xs:documentation>
23
+ </xs:annotation>
24
+ </xs:element>
25
+ <xs:element name="entityVatNumber" type="xs:string" minOccurs="0">
26
+ <xs:annotation>
27
+ <xs:documentation>ΑΦΜ Οντότητας Αναφοράς</xs:documentation>
28
+ </xs:annotation>
29
+ </xs:element>
30
+ <xs:choice>
31
+ <xs:element name="transactionMode">
32
+ <xs:annotation>
33
+ <xs:documentation>Αιτιολογία Συναλλαγής</xs:documentation>
34
+ </xs:annotation>
35
+ <xs:simpleType>
36
+ <xs:restriction base="xs:int">
37
+ <xs:minInclusive value="1"/>
38
+ <xs:maxInclusive value="1"/>
39
+ </xs:restriction>
40
+ </xs:simpleType>
41
+ </xs:element>
42
+ <xs:element name="invoicesExpensesClassificationDetails" type="ecls:InvoicesExpensesClassificationDetailType" maxOccurs="unbounded"/>
43
+ </xs:choice>
44
+ </xs:sequence>
45
+ </xs:complexType>
46
+ <xs:complexType name="InvoicesExpensesClassificationDetailType">
47
+ <xs:sequence>
48
+ <xs:element name="lineNumber" type="xs:int">
49
+ <xs:annotation>
50
+ <xs:documentation>Γραμμή Παραστατικού</xs:documentation>
51
+ </xs:annotation>
52
+ </xs:element>
53
+ <xs:element name="expensesClassificationDetailData" type="ecls:ExpensesClassificationType" maxOccurs="unbounded">
54
+ <xs:annotation>
55
+ <xs:documentation>Λίστα Χαρακτηρισμών Εσόδων</xs:documentation>
56
+ </xs:annotation>
57
+ </xs:element>
58
+ </xs:sequence>
59
+ </xs:complexType>
60
+ <xs:complexType name="ExpensesClassificationType">
61
+ <xs:sequence>
62
+ <xs:element name="classificationType" minOccurs="0">
63
+ <xs:annotation>
64
+ <xs:documentation>Κωδικός Χαρακτηρισμού</xs:documentation>
65
+ </xs:annotation>
66
+ <xs:simpleType>
67
+ <xs:restriction base="ecls:ExpensesClassificationValueType"/>
68
+ </xs:simpleType>
69
+ </xs:element>
70
+ <xs:element name="classificationCategory" type="ecls:ExpensesClassificationCategoryType" minOccurs="0">
71
+ <xs:annotation>
72
+ <xs:documentation>Κατηγορία Χαρακτηρισμού</xs:documentation>
73
+ </xs:annotation>
74
+ </xs:element>
75
+ <xs:element name="amount" type="ecls:AmountType">
76
+ <xs:annotation>
77
+ <xs:documentation>Ποσό Χαρακτηρισμού</xs:documentation>
78
+ </xs:annotation>
79
+ </xs:element>
80
+ <xs:element name="id" type="xs:byte" minOccurs="0">
81
+ <xs:annotation>
82
+ <xs:documentation>Μοναδικός Αριθμός Χαρακτηρισμού</xs:documentation>
83
+ </xs:annotation>
84
+ </xs:element>
85
+ </xs:sequence>
86
+ </xs:complexType>
87
+ <xs:simpleType name="ExpensesClassificationValueType">
88
+ <xs:restriction base="xs:string">
89
+ <xs:enumeration value="E3_101"/>
90
+ <xs:enumeration value="E3_102_001"/>
91
+ <xs:enumeration value="E3_102_002"/>
92
+ <xs:enumeration value="E3_102_003"/>
93
+ <xs:enumeration value="E3_102_004"/>
94
+ <xs:enumeration value="E3_102_005"/>
95
+ <xs:enumeration value="E3_102_006"/>
96
+ <xs:enumeration value="E3_104"/>
97
+ <xs:enumeration value="E3_201"/>
98
+ <xs:enumeration value="E3_202_001"/>
99
+ <xs:enumeration value="E3_202_002"/>
100
+ <xs:enumeration value="E3_202_003"/>
101
+ <xs:enumeration value="E3_202_004"/>
102
+ <xs:enumeration value="E3_202_005"/>
103
+ <xs:enumeration value="E3_204"/>
104
+ <xs:enumeration value="E3_207"/>
105
+ <xs:enumeration value="E3_209"/>
106
+ <xs:enumeration value="E3_301"/>
107
+ <xs:enumeration value="E3_302_001"/>
108
+ <xs:enumeration value="E3_302_002"/>
109
+ <xs:enumeration value="E3_302_003"/>
110
+ <xs:enumeration value="E3_302_004"/>
111
+ <xs:enumeration value="E3_302_005"/>
112
+ <xs:enumeration value="E3_304"/>
113
+ <xs:enumeration value="E3_307"/>
114
+ <xs:enumeration value="E3_309"/>
115
+ <xs:enumeration value="E3_312"/>
116
+ <xs:enumeration value="E3_313_001"/>
117
+ <xs:enumeration value="E3_313_002"/>
118
+ <xs:enumeration value="E3_313_003"/>
119
+ <xs:enumeration value="E3_313_004"/>
120
+ <xs:enumeration value="E3_313_005"/>
121
+ <xs:enumeration value="E3_315"/>
122
+ <xs:enumeration value="E3_581_001"/>
123
+ <xs:enumeration value="E3_581_002"/>
124
+ <xs:enumeration value="E3_581_003"/>
125
+ <xs:enumeration value="E3_582"/>
126
+ <xs:enumeration value="E3_583"/>
127
+ <xs:enumeration value="E3_584"/>
128
+ <xs:enumeration value="E3_585_001"/>
129
+ <xs:enumeration value="E3_585_002"/>
130
+ <xs:enumeration value="E3_585_003"/>
131
+ <xs:enumeration value="E3_585_004"/>
132
+ <xs:enumeration value="E3_585_005"/>
133
+ <xs:enumeration value="E3_585_006"/>
134
+ <xs:enumeration value="E3_585_007"/>
135
+ <xs:enumeration value="E3_585_008"/>
136
+ <xs:enumeration value="E3_585_009"/>
137
+ <xs:enumeration value="E3_585_010"/>
138
+ <xs:enumeration value="E3_585_011"/>
139
+ <xs:enumeration value="E3_585_012"/>
140
+ <xs:enumeration value="E3_585_013"/>
141
+ <xs:enumeration value="E3_585_014"/>
142
+ <xs:enumeration value="E3_585_015"/>
143
+ <xs:enumeration value="E3_585_016"/>
144
+ <xs:enumeration value="E3_586"/>
145
+ <xs:enumeration value="E3_587"/>
146
+ <xs:enumeration value="E3_588"/>
147
+ <xs:enumeration value="E3_589"/>
148
+ <xs:enumeration value="E3_881_001"/>
149
+ <xs:enumeration value="E3_881_002"/>
150
+ <xs:enumeration value="E3_881_003"/>
151
+ <xs:enumeration value="E3_881_004"/>
152
+ <xs:enumeration value="E3_882_001"/>
153
+ <xs:enumeration value="E3_882_002"/>
154
+ <xs:enumeration value="E3_882_003"/>
155
+ <xs:enumeration value="E3_882_004"/>
156
+ <xs:enumeration value="E3_883_001"/>
157
+ <xs:enumeration value="E3_883_002"/>
158
+ <xs:enumeration value="E3_883_003"/>
159
+ <xs:enumeration value="E3_883_004"/>
160
+ <xs:enumeration value="VAT_361"/>
161
+ <xs:enumeration value="VAT_362"/>
162
+ <xs:enumeration value="VAT_363"/>
163
+ <xs:enumeration value="VAT_364"/>
164
+ <xs:enumeration value="VAT_365"/>
165
+ <xs:enumeration value="VAT_366"/>
166
+ </xs:restriction>
167
+ </xs:simpleType>
168
+ <xs:simpleType name="ExpensesClassificationCategoryType">
169
+ <xs:restriction base="xs:string">
170
+ <xs:enumeration value="category2_1"/>
171
+ <xs:enumeration value="category2_2"/>
172
+ <xs:enumeration value="category2_3"/>
173
+ <xs:enumeration value="category2_4"/>
174
+ <xs:enumeration value="category2_5"/>
175
+ <xs:enumeration value="category2_6"/>
176
+ <xs:enumeration value="category2_7"/>
177
+ <xs:enumeration value="category2_8"/>
178
+ <xs:enumeration value="category2_9"/>
179
+ <xs:enumeration value="category2_10"/>
180
+ <xs:enumeration value="category2_11"/>
181
+ <xs:enumeration value="category2_12"/>
182
+ <xs:enumeration value="category2_13"/>
183
+ <xs:enumeration value="category2_14"/>
184
+ <xs:enumeration value="category2_95"/>
185
+ </xs:restriction>
186
+ </xs:simpleType>
187
+ <xs:simpleType name="AmountType">
188
+ <xs:restriction base="xs:decimal">
189
+ <xs:fractionDigits value="2"/>
190
+ <xs:minInclusive value="0"/>
191
+ </xs:restriction>
192
+ </xs:simpleType>
193
+ </xs:schema>
@@ -0,0 +1,141 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:icls="https://www.aade.gr/myDATA/incomeClassificaton/v1.0" targetNamespace="https://www.aade.gr/myDATA/incomeClassificaton/v1.0" elementFormDefault="qualified" attributeFormDefault="unqualified" version="1.0.2">
3
+ <xs:element name="IncomeClassificationsDoc">
4
+ <xs:annotation>
5
+ <xs:documentation>Χαρατηρισμοί Εσόδων Πρότυπων Παραστατικών ΑΑΔΕ</xs:documentation>
6
+ </xs:annotation>
7
+ <xs:complexType>
8
+ <xs:sequence maxOccurs="unbounded">
9
+ <xs:element name="incomeInvoiceClassification" type="icls:InvoiceIncomeClassificationType"/>
10
+ </xs:sequence>
11
+ </xs:complexType>
12
+ </xs:element>
13
+ <xs:complexType name="InvoiceIncomeClassificationType">
14
+ <xs:sequence>
15
+ <xs:element name="invoiceMark" type="xs:long">
16
+ <xs:annotation>
17
+ <xs:documentation>Μοναδικός Αριθμός Καταχώρησης Παραστατικού</xs:documentation>
18
+ </xs:annotation>
19
+ </xs:element>
20
+ <xs:element name="classificationMark" type="xs:long" minOccurs="0">
21
+ <xs:annotation>
22
+ <xs:documentation>Αποδεικτικό Λήψης Χαρακτηρισμού Εσόδων. Συμπληρώνεται από την Υπηρεσία</xs:documentation>
23
+ </xs:annotation>
24
+ </xs:element>
25
+ <xs:element name="entityVatNumber" type="xs:string" minOccurs="0">
26
+ <xs:annotation>
27
+ <xs:documentation>ΑΦΜ Οντότητας Αναφοράς</xs:documentation>
28
+ </xs:annotation>
29
+ </xs:element>
30
+ <xs:choice>
31
+ <xs:element name="transactionMode">
32
+ <xs:annotation>
33
+ <xs:documentation>Αιτιολογία Συναλλαγής</xs:documentation>
34
+ </xs:annotation>
35
+ <xs:simpleType>
36
+ <xs:restriction base="xs:int">
37
+ <xs:minInclusive value="1"/>
38
+ <xs:maxInclusive value="1"/>
39
+ </xs:restriction>
40
+ </xs:simpleType>
41
+ </xs:element>
42
+ <xs:element name="invoicesIncomeClassificationDetails" type="icls:InvoicesIncomeClassificationDetailType" maxOccurs="unbounded"/>
43
+ </xs:choice>
44
+ </xs:sequence>
45
+ </xs:complexType>
46
+ <xs:complexType name="InvoicesIncomeClassificationDetailType">
47
+ <xs:sequence>
48
+ <xs:element name="lineNumber" type="xs:int">
49
+ <xs:annotation>
50
+ <xs:documentation>Γραμμή Παραστατικού</xs:documentation>
51
+ </xs:annotation>
52
+ </xs:element>
53
+ <xs:element name="incomeClassificationDetailData" type="icls:IncomeClassificationType" maxOccurs="unbounded">
54
+ <xs:annotation>
55
+ <xs:documentation>Λίστα Χαρακτηρισμών Εσόδων</xs:documentation>
56
+ </xs:annotation>
57
+ </xs:element>
58
+ </xs:sequence>
59
+ </xs:complexType>
60
+ <xs:complexType name="IncomeClassificationType">
61
+ <xs:sequence>
62
+ <xs:element name="classificationType" type="icls:IncomeClassificationValueType">
63
+ <xs:annotation>
64
+ <xs:documentation>Κωδικός Χαρακτηρισμού</xs:documentation>
65
+ </xs:annotation>
66
+ </xs:element>
67
+ <xs:element name="classificationCategory" type="icls:IncomeClassificationCategoryType">
68
+ <xs:annotation>
69
+ <xs:documentation>Κατηγορία Χαρακτηρισμού</xs:documentation>
70
+ </xs:annotation>
71
+ </xs:element>
72
+ <xs:element name="amount" type="icls:AmountType">
73
+ <xs:annotation>
74
+ <xs:documentation>Ποσό Χαρακτηρισμού</xs:documentation>
75
+ </xs:annotation>
76
+ </xs:element>
77
+ <xs:element name="id" type="xs:byte" minOccurs="0">
78
+ <xs:annotation>
79
+ <xs:documentation>Μοναδικός Αριθμός Χαρακτηρισμού</xs:documentation>
80
+ </xs:annotation>
81
+ </xs:element>
82
+ </xs:sequence>
83
+ </xs:complexType>
84
+ <xs:simpleType name="IncomeClassificationValueType">
85
+ <xs:restriction base="xs:string">
86
+ <xs:enumeration value="E3_106"/>
87
+ <xs:enumeration value="E3_205"/>
88
+ <xs:enumeration value="E3_210"/>
89
+ <xs:enumeration value="E3_305"/>
90
+ <xs:enumeration value="E3_310"/>
91
+ <xs:enumeration value="E3_318"/>
92
+ <xs:enumeration value="E3_561_001"/>
93
+ <xs:enumeration value="E3_561_002"/>
94
+ <xs:enumeration value="E3_561_003"/>
95
+ <xs:enumeration value="E3_561_004"/>
96
+ <xs:enumeration value="E3_561_005"/>
97
+ <xs:enumeration value="E3_561_006"/>
98
+ <xs:enumeration value="E3_561_007"/>
99
+ <xs:enumeration value="E3_562"/>
100
+ <xs:enumeration value="E3_563"/>
101
+ <xs:enumeration value="E3_564"/>
102
+ <xs:enumeration value="E3_565"/>
103
+ <xs:enumeration value="E3_566"/>
104
+ <xs:enumeration value="E3_567"/>
105
+ <xs:enumeration value="E3_568"/>
106
+ <xs:enumeration value="E3_570"/>
107
+ <xs:enumeration value="E3_595"/>
108
+ <xs:enumeration value="E3_596"/>
109
+ <xs:enumeration value="E3_597"/>
110
+ <xs:enumeration value="E3_880_001"/>
111
+ <xs:enumeration value="E3_880_002"/>
112
+ <xs:enumeration value="E3_880_003"/>
113
+ <xs:enumeration value="E3_880_004"/>
114
+ <xs:enumeration value="E3_881_001"/>
115
+ <xs:enumeration value="E3_881_002"/>
116
+ <xs:enumeration value="E3_881_003"/>
117
+ <xs:enumeration value="E3_881_004"/>
118
+ </xs:restriction>
119
+ </xs:simpleType>
120
+ <xs:simpleType name="IncomeClassificationCategoryType">
121
+ <xs:restriction base="xs:string">
122
+ <xs:enumeration value="category1_1"/>
123
+ <xs:enumeration value="category1_2"/>
124
+ <xs:enumeration value="category1_3"/>
125
+ <xs:enumeration value="category1_4"/>
126
+ <xs:enumeration value="category1_5"/>
127
+ <xs:enumeration value="category1_6"/>
128
+ <xs:enumeration value="category1_7"/>
129
+ <xs:enumeration value="category1_8"/>
130
+ <xs:enumeration value="category1_9"/>
131
+ <xs:enumeration value="category1_10"/>
132
+ <xs:enumeration value="category1_95"/>
133
+ </xs:restriction>
134
+ </xs:simpleType>
135
+ <xs:simpleType name="AmountType">
136
+ <xs:restriction base="xs:decimal">
137
+ <xs:fractionDigits value="2"/>
138
+ <xs:minInclusive value="0"/>
139
+ </xs:restriction>
140
+ </xs:simpleType>
141
+ </xs:schema>
@@ -0,0 +1,66 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:inv="http://www.aade.gr/myDATA/invoice/v1.0" xmlns:icls="https://www.aade.gr/myDATA/incomeClassificaton/v1.0" xmlns:ecls="https://www.aade.gr/myDATA/expensesClassificaton/v1.0" targetNamespace="http://www.aade.gr/myDATA/invoice/v1.0" elementFormDefault="qualified" version="1.0.2">
3
+ <xs:import namespace="https://www.aade.gr/myDATA/incomeClassificaton/v1.0" schemaLocation="incomeClassification-v1.0.2.xsd"/>
4
+ <xs:import namespace="https://www.aade.gr/myDATA/expensesClassificaton/v1.0" schemaLocation="expensesClassification-v1.0.2.xsd"/>
5
+ <xs:include schemaLocation="invoicesDoc-v1.0.2.xsd"/>
6
+ <xs:element name="RequestedDoc">
7
+ <xs:complexType>
8
+ <xs:sequence>
9
+ <xs:element name="continuationToken" type="inv:continuationTokenType" minOccurs="0"/>
10
+ <xs:element name="invoicesDoc" minOccurs="0">
11
+ <xs:complexType>
12
+ <xs:sequence minOccurs="0" maxOccurs="unbounded">
13
+ <xs:element name="invoice" type="inv:AadeBookInvoiceType"/>
14
+ </xs:sequence>
15
+ </xs:complexType>
16
+ </xs:element>
17
+ <xs:element name="cancelledInvoicesDoc" minOccurs="0">
18
+ <xs:complexType>
19
+ <xs:sequence minOccurs="0" maxOccurs="unbounded">
20
+ <xs:element name="cancelledinvoice" type="inv:CancelledInvoiceType"/>
21
+ </xs:sequence>
22
+ </xs:complexType>
23
+ </xs:element>
24
+ <xs:element name="incomeClassificationsDoc" minOccurs="0">
25
+ <xs:complexType>
26
+ <xs:sequence minOccurs="0" maxOccurs="unbounded">
27
+ <xs:element name="incomeInvoiceClassification" type="icls:InvoiceIncomeClassificationType"/>
28
+ </xs:sequence>
29
+ </xs:complexType>
30
+ </xs:element>
31
+ <xs:element name="expensesClassificationDoc" minOccurs="0">
32
+ <xs:complexType>
33
+ <xs:sequence minOccurs="0" maxOccurs="unbounded">
34
+ <xs:element name="expensesInvoiceClassification" type="ecls:InvoiceExpensesClassificationType"/>
35
+ </xs:sequence>
36
+ </xs:complexType>
37
+ </xs:element>
38
+ </xs:sequence>
39
+ </xs:complexType>
40
+ </xs:element>
41
+ <xs:complexType name="continuationTokenType">
42
+ <xs:sequence>
43
+ <xs:element name="nextPartitionKey" type="xs:string"/>
44
+ <xs:element name="nextRowKey" type="xs:string"/>
45
+ </xs:sequence>
46
+ </xs:complexType>
47
+ <xs:complexType name="CancelledInvoiceType">
48
+ <xs:sequence>
49
+ <xs:element name="invoiceMark" type="xs:long">
50
+ <xs:annotation>
51
+ <xs:documentation>Μοναδικός Αριθμός Καταχώρησης του ακυρωμένου Παραστατικού</xs:documentation>
52
+ </xs:annotation>
53
+ </xs:element>
54
+ <xs:element name="cancellationMark" type="xs:long">
55
+ <xs:annotation>
56
+ <xs:documentation>Μοναδικός Αριθμός Καταχώρησης της Ακύρωσης</xs:documentation>
57
+ </xs:annotation>
58
+ </xs:element>
59
+ <xs:element name="cancellationDate" type="xs:date">
60
+ <xs:annotation>
61
+ <xs:documentation>Ημερομηνία Ακύρωσης Παραστατικού</xs:documentation>
62
+ </xs:annotation>
63
+ </xs:element>
64
+ </xs:sequence>
65
+ </xs:complexType>
66
+ </xs:schema>
@@ -0,0 +1,66 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:inv="http://www.aade.gr/myDATA/invoice/v1.0" xmlns:icls="https://www.aade.gr/myDATA/incomeClassificaton/v1.0" xmlns:ecls="https://www.aade.gr/myDATA/expensesClassificaton/v1.0" targetNamespace="http://www.aade.gr/myDATA/invoice/v1.0" elementFormDefault="qualified" version="1.0.2">
3
+ <xs:import namespace="https://www.aade.gr/myDATA/incomeClassificaton/v1.0" schemaLocation="incomeClassification-v1.0.2.xsd"/>
4
+ <xs:import namespace="https://www.aade.gr/myDATA/expensesClassificaton/v1.0" schemaLocation="expensesClassification-v1.0.2.xsd"/>
5
+ <xs:include schemaLocation="InvoicesDoc-v1.0.2.xsd"/>
6
+ <xs:element name="RequestedDoc">
7
+ <xs:complexType>
8
+ <xs:sequence>
9
+ <xs:element name="continuationToken" type="inv:continuationTokenType" minOccurs="0"/>
10
+ <xs:element name="invoicesDoc" minOccurs="0">
11
+ <xs:complexType>
12
+ <xs:sequence minOccurs="0" maxOccurs="unbounded">
13
+ <xs:element name="invoice" type="inv:AadeBookInvoiceType"/>
14
+ </xs:sequence>
15
+ </xs:complexType>
16
+ </xs:element>
17
+ <xs:element name="cancelledInvoicesDoc" minOccurs="0">
18
+ <xs:complexType>
19
+ <xs:sequence minOccurs="0" maxOccurs="unbounded">
20
+ <xs:element name="cancelledinvoice" type="inv:CancelledInvoiceType"/>
21
+ </xs:sequence>
22
+ </xs:complexType>
23
+ </xs:element>
24
+ <xs:element name="incomeClassificationsDoc" minOccurs="0">
25
+ <xs:complexType>
26
+ <xs:sequence minOccurs="0" maxOccurs="unbounded">
27
+ <xs:element name="incomeInvoiceClassification" type="icls:InvoiceIncomeClassificationType"/>
28
+ </xs:sequence>
29
+ </xs:complexType>
30
+ </xs:element>
31
+ <xs:element name="expensesClassificationDoc" minOccurs="0">
32
+ <xs:complexType>
33
+ <xs:sequence minOccurs="0" maxOccurs="unbounded">
34
+ <xs:element name="expensesInvoiceClassification" type="ecls:InvoiceExpensesClassificationType"/>
35
+ </xs:sequence>
36
+ </xs:complexType>
37
+ </xs:element>
38
+ </xs:sequence>
39
+ </xs:complexType>
40
+ </xs:element>
41
+ <xs:complexType name="continuationTokenType">
42
+ <xs:sequence>
43
+ <xs:element name="nextPartitionKey" type="xs:string"/>
44
+ <xs:element name="nextRowKey" type="xs:string"/>
45
+ </xs:sequence>
46
+ </xs:complexType>
47
+ <xs:complexType name="CancelledInvoiceType">
48
+ <xs:sequence>
49
+ <xs:element name="invoiceMark" type="xs:long">
50
+ <xs:annotation>
51
+ <xs:documentation>Μοναδικός Αριθμός Καταχώρησης του ακυρωμένου Παραστατικού</xs:documentation>
52
+ </xs:annotation>
53
+ </xs:element>
54
+ <xs:element name="cancellationMark" type="xs:long">
55
+ <xs:annotation>
56
+ <xs:documentation>Μοναδικός Αριθμός Καταχώρησης της Ακύρωσης</xs:documentation>
57
+ </xs:annotation>
58
+ </xs:element>
59
+ <xs:element name="cancellationDate" type="xs:date">
60
+ <xs:annotation>
61
+ <xs:documentation>Ημερομηνία Ακύρωσης Παραστατικού</xs:documentation>
62
+ </xs:annotation>
63
+ </xs:element>
64
+ </xs:sequence>
65
+ </xs:complexType>
66
+ </xs:schema>