epb_view_models 1.0.14 → 1.0.15

Sign up to get free protection for your applications and to get access to all the features.
Files changed (32) hide show
  1. checksums.yaml +4 -4
  2. data/.ruby-version +1 -1
  3. data/Gemfile +10 -10
  4. data/Gemfile.lock +32 -39
  5. data/api/schemas/data/orchestrate.json +4 -0
  6. data/api/schemas/xml/SAP-Schema-19.0.0/SAP/ExternalDefinitions.xml +1352 -0
  7. data/api/schemas/xml/SAP-Schema-19.0.0/SAP/ExternalDefinitions.xsd +236 -0
  8. data/api/schemas/xml/SAP-Schema-19.0.0/SAP/Templates/AssessorManagement.xsd +207 -0
  9. data/api/schemas/xml/SAP-Schema-19.0.0/SAP/Templates/EPC-Certificate.xsd +476 -0
  10. data/api/schemas/xml/SAP-Schema-19.0.0/SAP/Templates/ExceptionList.xsd +18 -0
  11. data/api/schemas/xml/SAP-Schema-19.0.0/SAP/Templates/Property.xsd +71 -0
  12. data/api/schemas/xml/SAP-Schema-19.0.0/SAP/Templates/ReportList.xsd +25 -0
  13. data/api/schemas/xml/SAP-Schema-19.0.0/SAP/Templates/SAP-CollectedData.xsd +1793 -0
  14. data/api/schemas/xml/SAP-Schema-19.0.0/SAP/Templates/SAP-Compliance-Report.xsd +36 -0
  15. data/api/schemas/xml/SAP-Schema-19.0.0/SAP/Templates/SAP-Report.xsd +196 -0
  16. data/api/schemas/xml/SAP-Schema-19.0.0/SAP/UDT/EPC-Domains.xsd +558 -0
  17. data/api/schemas/xml/SAP-Schema-19.0.0/SAP/UDT/SAP-Domains.xsd +3127 -0
  18. data/lib/epb_view_models.rb +1 -1
  19. data/lib/presenter/ac_cert/export_configuration.rb +7 -0
  20. data/lib/presenter/ac_report/export_configuration.rb +7 -0
  21. data/lib/presenter/cepc/export_configuration.rb +7 -0
  22. data/lib/presenter/cepc_rr/export_configuration.rb +7 -0
  23. data/lib/presenter/dec/export_configuration.rb +7 -0
  24. data/lib/presenter/dec_rr/export_configuration.rb +7 -0
  25. data/lib/presenter/export/statistics.rb +3 -14
  26. data/lib/presenter/rd_sap/export_configuration.rb +57 -1
  27. data/lib/presenter/sap/export_configuration.rb +7 -0
  28. data/lib/presenter/xml/parser.rb +6 -0
  29. data/lib/view_model/factory.rb +1 -0
  30. data/lib/view_model/sap_schema_1900/common_schema.rb +587 -0
  31. data/lib/view_model/sap_wrapper.rb +2 -0
  32. metadata +22 -2
@@ -0,0 +1,558 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!-- edited with XMLSpy v2006 rel. 3 U (http://www.altova.com) by Jim Bowery (Landmark Information Group Ltd.) -->
3
+ <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="https://epbr.digital.communities.gov.uk/xsd/sap" targetNamespace="https://epbr.digital.communities.gov.uk/xsd/sap" elementFormDefault="qualified" attributeFormDefault="unqualified" version="19.0.0">
4
+ <xs:simpleType name="RecommendationSummaryCode">
5
+ <xs:restriction base="xs:string">
6
+ <xs:enumeration value="1">
7
+ <xs:annotation>
8
+ <xs:documentation>Insulate hot water cylinder with 80 mm jacket</xs:documentation>
9
+ </xs:annotation>
10
+ </xs:enumeration>
11
+ <xs:enumeration value="2">
12
+ <xs:annotation>
13
+ <xs:documentation>Increase hot water cylinder insulation</xs:documentation>
14
+ </xs:annotation>
15
+ </xs:enumeration>
16
+ <xs:enumeration value="3">
17
+ <xs:annotation>
18
+ <xs:documentation>Add additional 80 mm jacket to hot water cylinder</xs:documentation>
19
+ </xs:annotation>
20
+ </xs:enumeration>
21
+ <xs:enumeration value="4">
22
+ <xs:annotation>
23
+ <xs:documentation>Hot water cylinder thermostat</xs:documentation>
24
+ </xs:annotation>
25
+ </xs:enumeration>
26
+ <xs:enumeration value="5">
27
+ <xs:annotation>
28
+ <xs:documentation>Increase loft insulation to 270 mm</xs:documentation>
29
+ </xs:annotation>
30
+ </xs:enumeration>
31
+ <xs:enumeration value="6">
32
+ <xs:annotation>
33
+ <xs:documentation>Cavity wall insulation</xs:documentation>
34
+ </xs:annotation>
35
+ </xs:enumeration>
36
+ <xs:enumeration value="7">
37
+ <xs:annotation>
38
+ <xs:documentation>Internal or external wall insulation</xs:documentation>
39
+ </xs:annotation>
40
+ </xs:enumeration>
41
+ <xs:enumeration value="8">
42
+ <xs:annotation>
43
+ <xs:documentation>Replace single glazed windows with low-E double glazing</xs:documentation>
44
+ </xs:annotation>
45
+ </xs:enumeration>
46
+ <xs:enumeration value="9">
47
+ <xs:annotation>
48
+ <xs:documentation>Secondary glazing to single glazed windows</xs:documentation>
49
+ </xs:annotation>
50
+ </xs:enumeration>
51
+ <xs:enumeration value="10">
52
+ <xs:annotation>
53
+ <xs:documentation>Draught proofing</xs:documentation>
54
+ </xs:annotation>
55
+ </xs:enumeration>
56
+ <xs:enumeration value="11">
57
+ <xs:annotation>
58
+ <xs:documentation>Heating controls (programmer, room thermostat and TRVs)</xs:documentation>
59
+ </xs:annotation>
60
+ </xs:enumeration>
61
+ <xs:enumeration value="12">
62
+ <xs:annotation>
63
+ <xs:documentation>Heating controls (room thermostat and TRVs)</xs:documentation>
64
+ </xs:annotation>
65
+ </xs:enumeration>
66
+ <xs:enumeration value="13">
67
+ <xs:annotation>
68
+ <xs:documentation>Heating controls (thermostatic radiator valves)</xs:documentation>
69
+ </xs:annotation>
70
+ </xs:enumeration>
71
+ <xs:enumeration value="14">
72
+ <xs:annotation>
73
+ <xs:documentation>Heating controls (room thermostat)</xs:documentation>
74
+ </xs:annotation>
75
+ </xs:enumeration>
76
+ <xs:enumeration value="15">
77
+ <xs:annotation>
78
+ <xs:documentation>Heating controls (programmer and TRVs)</xs:documentation>
79
+ </xs:annotation>
80
+ </xs:enumeration>
81
+ <xs:enumeration value="16">
82
+ <xs:annotation>
83
+ <xs:documentation>Heating controls (time and temperature zone control)</xs:documentation>
84
+ </xs:annotation>
85
+ </xs:enumeration>
86
+ <xs:enumeration value="17">
87
+ <xs:annotation>
88
+ <xs:documentation>Heating controls (programmer and room thermostat)</xs:documentation>
89
+ </xs:annotation>
90
+ </xs:enumeration>
91
+ <xs:enumeration value="18">
92
+ <xs:annotation>
93
+ <xs:documentation>Heating controls (room thermostat)</xs:documentation>
94
+ </xs:annotation>
95
+ </xs:enumeration>
96
+ <xs:enumeration value="19">
97
+ <xs:annotation>
98
+ <xs:documentation>Solar water heating</xs:documentation>
99
+ </xs:annotation>
100
+ </xs:enumeration>
101
+ <xs:enumeration value="20">
102
+ <xs:annotation>
103
+ <xs:documentation>Replace boiler with new condensing boiler</xs:documentation>
104
+ </xs:annotation>
105
+ </xs:enumeration>
106
+ <xs:enumeration value="21">
107
+ <xs:annotation>
108
+ <xs:documentation>Replace boiler with new condensing boiler</xs:documentation>
109
+ </xs:annotation>
110
+ </xs:enumeration>
111
+ <xs:enumeration value="22">
112
+ <xs:annotation>
113
+ <xs:documentation>Replace boiler with biomass boiler</xs:documentation>
114
+ </xs:annotation>
115
+ </xs:enumeration>
116
+ <xs:enumeration value="23">
117
+ <xs:annotation>
118
+ <xs:documentation>Wood pellet stove with boiler and radiators</xs:documentation>
119
+ </xs:annotation>
120
+ </xs:enumeration>
121
+ <xs:enumeration value="24">
122
+ <xs:annotation>
123
+ <xs:documentation>Fan assisted storage heaters and dual immersion cylinder</xs:documentation>
124
+ </xs:annotation>
125
+ </xs:enumeration>
126
+ <xs:enumeration value="25">
127
+ <xs:annotation>
128
+ <xs:documentation>Fan assisted storage heaters</xs:documentation>
129
+ </xs:annotation>
130
+ </xs:enumeration>
131
+ <xs:enumeration value="26">
132
+ <xs:annotation>
133
+ <xs:documentation>Replacement warm air unit</xs:documentation>
134
+ </xs:annotation>
135
+ </xs:enumeration>
136
+ <xs:enumeration value="27">
137
+ <xs:annotation>
138
+ <xs:documentation>Change heating to gas condensing boiler</xs:documentation>
139
+ </xs:annotation>
140
+ </xs:enumeration>
141
+ <xs:enumeration value="28">
142
+ <xs:annotation>
143
+ <xs:documentation>Condensing oil boiler with radiators</xs:documentation>
144
+ </xs:annotation>
145
+ </xs:enumeration>
146
+ <xs:enumeration value="29">
147
+ <xs:annotation>
148
+ <xs:documentation>Change heating to gas condensing boiler</xs:documentation>
149
+ </xs:annotation>
150
+ </xs:enumeration>
151
+ <xs:enumeration value="30">
152
+ <xs:annotation>
153
+ <xs:documentation>Fan assisted storage heaters and dual immersion cylinder</xs:documentation>
154
+ </xs:annotation>
155
+ </xs:enumeration>
156
+ <xs:enumeration value="31">
157
+ <xs:annotation>
158
+ <xs:documentation>Fan-assisted storage heaters</xs:documentation>
159
+ </xs:annotation>
160
+ </xs:enumeration>
161
+ <xs:enumeration value="32">
162
+ <xs:annotation>
163
+ <xs:documentation>Change heating to gas condensing boiler</xs:documentation>
164
+ </xs:annotation>
165
+ </xs:enumeration>
166
+ <xs:enumeration value="34">
167
+ <xs:annotation>
168
+ <xs:documentation>Solar photovoltaic panels, 2.5 kWp</xs:documentation>
169
+ </xs:annotation>
170
+ </xs:enumeration>
171
+ <xs:enumeration value="35">
172
+ <xs:annotation>
173
+ <xs:documentation>Low energy lighting for all fixed outlets</xs:documentation>
174
+ </xs:annotation>
175
+ </xs:enumeration>
176
+ <xs:enumeration value="36">
177
+ <xs:annotation>
178
+ <xs:documentation>Replace heating unit with condensing unit</xs:documentation>
179
+ </xs:annotation>
180
+ </xs:enumeration>
181
+ <xs:enumeration value="37">
182
+ <xs:annotation>
183
+ <xs:documentation>Condensing boiler (separate from the range cooker)</xs:documentation>
184
+ </xs:annotation>
185
+ </xs:enumeration>
186
+ <xs:enumeration value="38">
187
+ <xs:annotation>
188
+ <xs:documentation>Condensing boiler (separate from the range cooker)</xs:documentation>
189
+ </xs:annotation>
190
+ </xs:enumeration>
191
+ <xs:enumeration value="39">
192
+ <xs:annotation>
193
+ <xs:documentation>Wood pellet stove with boiler and radiators</xs:documentation>
194
+ </xs:annotation>
195
+ </xs:enumeration>
196
+ <xs:enumeration value="40">
197
+ <xs:annotation>
198
+ <xs:documentation>Change room heaters to condensing boiler</xs:documentation>
199
+ </xs:annotation>
200
+ </xs:enumeration>
201
+ <xs:enumeration value="41">
202
+ <xs:annotation>
203
+ <xs:documentation>Change room heaters to condensing boiler</xs:documentation>
204
+ </xs:annotation>
205
+ </xs:enumeration>
206
+ <xs:enumeration value="42">
207
+ <xs:annotation>
208
+ <xs:documentation>Replace heating unit with mains gas condensing unit</xs:documentation>
209
+ </xs:annotation>
210
+ </xs:enumeration>
211
+ <xs:enumeration value="43">
212
+ <xs:annotation>
213
+ <xs:documentation>Condensing oil boiler with radiators</xs:documentation>
214
+ </xs:annotation>
215
+ </xs:enumeration>
216
+ <xs:enumeration value="44">
217
+ <xs:annotation>
218
+ <xs:documentation>Wind turbine</xs:documentation>
219
+ </xs:annotation>
220
+ </xs:enumeration>
221
+ <xs:enumeration value="45">
222
+ <xs:annotation>
223
+ <xs:documentation>Flat roof insulation</xs:documentation>
224
+ </xs:annotation>
225
+ </xs:enumeration>
226
+ <xs:enumeration value="46">
227
+ <xs:annotation>
228
+ <xs:documentation>Room-in-roof insulation</xs:documentation>
229
+ </xs:annotation>
230
+ </xs:enumeration>
231
+ <xs:enumeration value="47">
232
+ <xs:annotation>
233
+ <xs:documentation>Floor insulation</xs:documentation>
234
+ </xs:annotation>
235
+ </xs:enumeration>
236
+ <xs:enumeration value="48">
237
+ <xs:annotation>
238
+ <xs:documentation>High performance external doors</xs:documentation>
239
+ </xs:annotation>
240
+ </xs:enumeration>
241
+ <xs:enumeration value="49">
242
+ <xs:annotation>
243
+ <xs:documentation>Heat recovery system for mixer showers</xs:documentation>
244
+ </xs:annotation>
245
+ </xs:enumeration>
246
+ <xs:enumeration value="50">
247
+ <xs:annotation>
248
+ <xs:documentation>Flue gas heat recovery device in conjunction with boiler</xs:documentation>
249
+ </xs:annotation>
250
+ </xs:enumeration>
251
+ <xs:enumeration value="51">
252
+ <xs:annotation>
253
+ <xs:documentation>Air or ground source heat pump</xs:documentation>
254
+ </xs:annotation>
255
+ </xs:enumeration>
256
+ <xs:enumeration value="52">
257
+ <xs:annotation>
258
+ <xs:documentation>Air or ground source heat pump with underfloor heating</xs:documentation>
259
+ </xs:annotation>
260
+ </xs:enumeration>
261
+ <xs:enumeration value="53">
262
+ <xs:annotation>
263
+ <xs:documentation>Micro CHP</xs:documentation>
264
+ </xs:annotation>
265
+ </xs:enumeration>
266
+ <xs:enumeration value="54">
267
+ <xs:annotation>
268
+ <xs:documentation>Biomass boiler (Exempted Appliance if in Smoke Control Area)</xs:documentation>
269
+ </xs:annotation>
270
+ </xs:enumeration>
271
+ <xs:enumeration value="55">
272
+ <xs:annotation>
273
+ <xs:documentation>External insulation with cavity wall insulation</xs:documentation>
274
+ </xs:annotation>
275
+ </xs:enumeration>
276
+ </xs:restriction>
277
+ </xs:simpleType>
278
+ <xs:simpleType name="RecommendationCategoryCode">
279
+ <xs:restriction base="xs:string">
280
+ <xs:enumeration value="1">
281
+ <xs:annotation>
282
+ <xs:documentation>Lower cost - this is for backwards compatibility only and should not be used</xs:documentation>
283
+ </xs:annotation>
284
+ </xs:enumeration>
285
+ <xs:enumeration value="2">
286
+ <xs:annotation>
287
+ <xs:documentation>Higher cost - this is for backwards compatibility only and should not be used</xs:documentation>
288
+ </xs:annotation>
289
+ </xs:enumeration>
290
+ <xs:enumeration value="3">
291
+ <xs:annotation>
292
+ <xs:documentation>Further measure - this is for backwards compatibility only and should not be used</xs:documentation>
293
+ </xs:annotation>
294
+ </xs:enumeration>
295
+ <xs:enumeration value="4">
296
+ <xs:annotation>
297
+ <xs:documentation>Deselected. This is for backwards compatibility only and should not be used.</xs:documentation>
298
+ </xs:annotation>
299
+ </xs:enumeration>
300
+ <xs:enumeration value="5">
301
+ <xs:annotation>
302
+ <xs:documentation>Normal measure</xs:documentation>
303
+ </xs:annotation>
304
+ </xs:enumeration>
305
+ <xs:enumeration value="6">
306
+ <xs:annotation>
307
+ <xs:documentation>Alternative measure</xs:documentation>
308
+ </xs:annotation>
309
+ </xs:enumeration>
310
+ </xs:restriction>
311
+ </xs:simpleType>
312
+ <xs:simpleType name="EnergyEfficiencySummaryCode">
313
+ <xs:restriction base="xs:string">
314
+ <xs:enumeration value="0">
315
+ <xs:annotation>
316
+ <xs:documentation>N/A</xs:documentation>
317
+ </xs:annotation>
318
+ </xs:enumeration>
319
+ <xs:enumeration value="1">
320
+ <xs:annotation>
321
+ <xs:documentation>Very Poor</xs:documentation>
322
+ </xs:annotation>
323
+ </xs:enumeration>
324
+ <xs:enumeration value="2">
325
+ <xs:annotation>
326
+ <xs:documentation>Poor</xs:documentation>
327
+ </xs:annotation>
328
+ </xs:enumeration>
329
+ <xs:enumeration value="3">
330
+ <xs:annotation>
331
+ <xs:documentation>Average</xs:documentation>
332
+ </xs:annotation>
333
+ </xs:enumeration>
334
+ <xs:enumeration value="4">
335
+ <xs:annotation>
336
+ <xs:documentation>Good</xs:documentation>
337
+ </xs:annotation>
338
+ </xs:enumeration>
339
+ <xs:enumeration value="5">
340
+ <xs:annotation>
341
+ <xs:documentation>Very Good</xs:documentation>
342
+ </xs:annotation>
343
+ </xs:enumeration>
344
+ </xs:restriction>
345
+ </xs:simpleType>
346
+ <xs:simpleType name="GreenDealCategoryCode">
347
+ <xs:restriction base="xs:string">
348
+ <xs:enumeration value="1">
349
+ <xs:annotation>
350
+ <xs:documentation>1. Not eligible for Green Deal</xs:documentation>
351
+ </xs:annotation>
352
+ </xs:enumeration>
353
+ <xs:enumeration value="2">
354
+ <xs:annotation>
355
+ <xs:documentation>2. Eligible with additional finance</xs:documentation>
356
+ </xs:annotation>
357
+ </xs:enumeration>
358
+ <xs:enumeration value="3">
359
+ <xs:annotation>
360
+ <xs:documentation>3. Eligible without additional finance</xs:documentation>
361
+ </xs:annotation>
362
+ </xs:enumeration>
363
+ <xs:enumeration value="NI">
364
+ <xs:annotation>
365
+ <xs:documentation>Not assessed. Use for alternative measures and for new dwelling EPCs</xs:documentation>
366
+ </xs:annotation>
367
+ </xs:enumeration>
368
+ </xs:restriction>
369
+ </xs:simpleType>
370
+ <xs:simpleType name="ReportStatusCode">
371
+ <xs:restriction base="xs:string">
372
+ <xs:enumeration value="cancelled">
373
+ <xs:annotation>
374
+ <xs:documentation>Cancelled</xs:documentation>
375
+ </xs:annotation>
376
+ </xs:enumeration>
377
+ <xs:enumeration value="entered">
378
+ <xs:annotation>
379
+ <xs:documentation>entered on the register</xs:documentation>
380
+ </xs:annotation>
381
+ </xs:enumeration>
382
+ <xs:enumeration value="appeal">
383
+ <xs:annotation>
384
+ <xs:documentation>under appeal</xs:documentation>
385
+ </xs:annotation>
386
+ </xs:enumeration>
387
+ <xs:enumeration value="removed">
388
+ <xs:annotation>
389
+ <xs:documentation>removed</xs:documentation>
390
+ </xs:annotation>
391
+ </xs:enumeration>
392
+ <xs:enumeration value="rejected">
393
+ <xs:annotation>
394
+ <xs:documentation>rejected</xs:documentation>
395
+ </xs:annotation>
396
+ </xs:enumeration>
397
+ <xs:enumeration value="under investigation">
398
+ <xs:annotation>
399
+ <xs:documentation>under investigation</xs:documentation>
400
+ </xs:annotation>
401
+ </xs:enumeration>
402
+ <xs:enumeration value="not for issue">
403
+ <xs:annotation>
404
+ <xs:documentation>not for issue</xs:documentation>
405
+ </xs:annotation>
406
+ </xs:enumeration>
407
+ </xs:restriction>
408
+ </xs:simpleType>
409
+ <xs:simpleType name="ReportTypeCode">
410
+ <xs:restriction base="xs:string">
411
+ <xs:enumeration value="1">
412
+ <xs:annotation>
413
+ <xs:documentation>Home Condition Report</xs:documentation>
414
+ </xs:annotation>
415
+ </xs:enumeration>
416
+ <xs:enumeration value="2">
417
+ <xs:annotation>
418
+ <xs:documentation>RdSAP Energy Performance Certificate</xs:documentation>
419
+ </xs:annotation>
420
+ </xs:enumeration>
421
+ <xs:enumeration value="3">
422
+ <xs:annotation>
423
+ <xs:documentation>SAP Energy Performance Certificate</xs:documentation>
424
+ </xs:annotation>
425
+ </xs:enumeration>
426
+ <xs:enumeration value="4">
427
+ <xs:annotation>
428
+ <xs:documentation>Interim RdSAP Energy Performance Certificate (to be superseded by SAP EPC)</xs:documentation>
429
+ </xs:annotation>
430
+ </xs:enumeration>
431
+ </xs:restriction>
432
+ </xs:simpleType>
433
+ <xs:simpleType name="TransactionType">
434
+ <xs:restriction base="xs:string">
435
+ <xs:enumeration value="1">
436
+ <xs:annotation>
437
+ <xs:documentation>marketed sale</xs:documentation>
438
+ </xs:annotation>
439
+ </xs:enumeration>
440
+ <xs:enumeration value="2">
441
+ <xs:annotation>
442
+ <xs:documentation>non marketed sale</xs:documentation>
443
+ </xs:annotation>
444
+ </xs:enumeration>
445
+ <xs:enumeration value="3">
446
+ <xs:annotation>
447
+ <xs:documentation>rental (social) - this is for backwards compatibility only and should not be used</xs:documentation>
448
+ </xs:annotation>
449
+ </xs:enumeration>
450
+ <xs:enumeration value="4">
451
+ <xs:annotation>
452
+ <xs:documentation>rental (private) - this is for backwards compatibility only and should not be used</xs:documentation>
453
+ </xs:annotation>
454
+ </xs:enumeration>
455
+ <xs:enumeration value="5">
456
+ <xs:annotation>
457
+ <xs:documentation>none of the above</xs:documentation>
458
+ </xs:annotation>
459
+ </xs:enumeration>
460
+ <xs:enumeration value="6">
461
+ <xs:annotation>
462
+ <xs:documentation>new dwelling</xs:documentation>
463
+ </xs:annotation>
464
+ </xs:enumeration>
465
+ <xs:enumeration value="7">
466
+ <xs:annotation>
467
+ <xs:documentation>not recorded - this is for backwards compatibility only and should not be used</xs:documentation>
468
+ </xs:annotation>
469
+ </xs:enumeration>
470
+ <xs:enumeration value="8">
471
+ <xs:annotation>
472
+ <xs:documentation>rental</xs:documentation>
473
+ </xs:annotation>
474
+ </xs:enumeration>
475
+ <xs:enumeration value="9">
476
+ <xs:annotation>
477
+ <xs:documentation>assessment for green deal</xs:documentation>
478
+ </xs:annotation>
479
+ </xs:enumeration>
480
+ <xs:enumeration value="10">
481
+ <xs:annotation>
482
+ <xs:documentation>following green deal</xs:documentation>
483
+ </xs:annotation>
484
+ </xs:enumeration>
485
+ <xs:enumeration value="11">
486
+ <xs:annotation>
487
+ <xs:documentation>FiT application</xs:documentation>
488
+ </xs:annotation>
489
+ </xs:enumeration>
490
+ </xs:restriction>
491
+ </xs:simpleType>
492
+ <xs:simpleType name="DisclosureCode">
493
+ <xs:annotation>
494
+ <xs:documentation>Code indicating any potential conflicts of interest or commercial relationships with other parties.</xs:documentation>
495
+ </xs:annotation>
496
+ <xs:restriction base="xs:string">
497
+ <xs:enumeration value="1">
498
+ <xs:annotation>
499
+ <xs:documentation>No related party</xs:documentation>
500
+ </xs:annotation>
501
+ </xs:enumeration>
502
+ <xs:enumeration value="2">
503
+ <xs:annotation>
504
+ <xs:documentation>Relative of homeowner or of occupier of the property</xs:documentation>
505
+ </xs:annotation>
506
+ </xs:enumeration>
507
+ <xs:enumeration value="3">
508
+ <xs:annotation>
509
+ <xs:documentation>Residing at the property</xs:documentation>
510
+ </xs:annotation>
511
+ </xs:enumeration>
512
+ <xs:enumeration value="4">
513
+ <xs:annotation>
514
+ <xs:documentation>Financial interest in the property</xs:documentation>
515
+ </xs:annotation>
516
+ </xs:enumeration>
517
+ <xs:enumeration value="5">
518
+ <xs:annotation>
519
+ <xs:documentation>Owner or Director of the organisation dealing with the property transaction</xs:documentation>
520
+ </xs:annotation>
521
+ </xs:enumeration>
522
+ <xs:enumeration value="6">
523
+ <xs:annotation>
524
+ <xs:documentation>Employed by the professional dealing with the property transaction</xs:documentation>
525
+ </xs:annotation>
526
+ </xs:enumeration>
527
+ <xs:enumeration value="7">
528
+ <xs:annotation>
529
+ <xs:documentation>Relative of the professional dealing with the property transaction</xs:documentation>
530
+ </xs:annotation>
531
+ </xs:enumeration>
532
+ </xs:restriction>
533
+ </xs:simpleType>
534
+ <xs:simpleType name="TenureCode">
535
+ <xs:restriction base="xs:string">
536
+ <xs:enumeration value="1">
537
+ <xs:annotation>
538
+ <xs:documentation>owner-occupied</xs:documentation>
539
+ </xs:annotation>
540
+ </xs:enumeration>
541
+ <xs:enumeration value="2">
542
+ <xs:annotation>
543
+ <xs:documentation>rented (social)</xs:documentation>
544
+ </xs:annotation>
545
+ </xs:enumeration>
546
+ <xs:enumeration value="3">
547
+ <xs:annotation>
548
+ <xs:documentation>rented (private)</xs:documentation>
549
+ </xs:annotation>
550
+ </xs:enumeration>
551
+ <xs:enumeration value="ND">
552
+ <xs:annotation>
553
+ <xs:documentation>unknown</xs:documentation>
554
+ </xs:annotation>
555
+ </xs:enumeration>
556
+ </xs:restriction>
557
+ </xs:simpleType>
558
+ </xs:schema>