facturx 0.1.0 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (49) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +10 -1
  3. data/NOTICE.md +2 -0
  4. data/README.md +27 -1
  5. data/lib/facturx/coerce.rb +74 -0
  6. data/lib/facturx/diagnostic.rb +20 -0
  7. data/lib/facturx/document.rb +45 -0
  8. data/lib/facturx/group.rb +5 -0
  9. data/lib/facturx/model/common.rb +8 -0
  10. data/lib/facturx/model/immutable.rb +75 -0
  11. data/lib/facturx/model/line.rb +14 -0
  12. data/lib/facturx/model/party.rb +10 -0
  13. data/lib/facturx/model/payment.rb +9 -0
  14. data/lib/facturx/model/reference.rb +7 -0
  15. data/lib/facturx/model/trade.rb +9 -0
  16. data/lib/facturx/model.rb +9 -0
  17. data/lib/facturx/pdf/extractor.rb +7 -4
  18. data/lib/facturx/reader/semantic_mapper/delivery_mapping.rb +43 -0
  19. data/lib/facturx/reader/semantic_mapper/document_mapping.rb +109 -0
  20. data/lib/facturx/reader/semantic_mapper/helpers.rb +114 -0
  21. data/lib/facturx/reader/semantic_mapper/line_mapping.rb +120 -0
  22. data/lib/facturx/reader/semantic_mapper/party_mapping.rb +90 -0
  23. data/lib/facturx/reader/semantic_mapper/payment_mapping.rb +71 -0
  24. data/lib/facturx/reader/semantic_mapper/trade_mapping.rb +83 -0
  25. data/lib/facturx/reader/semantic_mapper.rb +67 -0
  26. data/lib/facturx/reader/term_reader/coercion.rb +69 -0
  27. data/lib/facturx/reader/term_reader/unmapped.rb +37 -0
  28. data/lib/facturx/reader/term_reader.rb +124 -0
  29. data/lib/facturx/reader.rb +101 -0
  30. data/lib/facturx/reading.rb +23 -0
  31. data/lib/facturx/source_reader.rb +30 -0
  32. data/lib/facturx/term.rb +5 -0
  33. data/lib/facturx/terms/declaration.rb +20 -0
  34. data/lib/facturx/terms/declarations/adjustments.rb +230 -0
  35. data/lib/facturx/terms/declarations/delivery.rb +83 -0
  36. data/lib/facturx/terms/declarations/document.rb +223 -0
  37. data/lib/facturx/terms/declarations/groups.rb +356 -0
  38. data/lib/facturx/terms/declarations/lines.rb +166 -0
  39. data/lib/facturx/terms/declarations/parties.rb +609 -0
  40. data/lib/facturx/terms/declarations/payment.rb +106 -0
  41. data/lib/facturx/terms/declarations/products.rb +103 -0
  42. data/lib/facturx/terms/declarations/references.rb +72 -0
  43. data/lib/facturx/terms/declarations/taxes.rb +92 -0
  44. data/lib/facturx/terms/declarations/totals.rb +107 -0
  45. data/lib/facturx/terms/reference.rb +21 -0
  46. data/lib/facturx/terms.rb +109 -0
  47. data/lib/facturx/version.rb +1 -1
  48. data/lib/facturx.rb +14 -0
  49. metadata +45 -4
@@ -0,0 +1,609 @@
1
+ # frozen_string_literal: true
2
+
3
+ Facturx::TermDeclarations::PARTIES = [
4
+ Facturx::TermDeclarations::Declaration.term(
5
+ 'BT-29', :party, :identifiers, 'BG-4',
6
+ '/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement' \
7
+ '/ram:SellerTradeParty/ram:ID',
8
+ :string, nil,
9
+ basic_wl: '0..n',
10
+ basic: '0..n',
11
+ en16931: '0..n',
12
+ extended: '0..n'
13
+ ),
14
+ Facturx::TermDeclarations::Declaration.term(
15
+ 'BT-29-1', :party, :identifiers, 'BG-4',
16
+ '/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement' \
17
+ '/ram:SellerTradeParty/ram:GlobalID/@schemeID',
18
+ :string, nil,
19
+ basic_wl: '0..1',
20
+ basic: '0..1',
21
+ en16931: '0..1',
22
+ extended: '0..1'
23
+ ),
24
+ Facturx::TermDeclarations::Declaration.term(
25
+ 'BT-27', :party, :name, 'BG-4',
26
+ '/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement' \
27
+ '/ram:SellerTradeParty/ram:Name',
28
+ :string, nil,
29
+ minimum: '1..1',
30
+ basic_wl: '1..1',
31
+ basic: '1..1',
32
+ en16931: '1..1',
33
+ extended: '1..1'
34
+ ),
35
+ Facturx::TermDeclarations::Declaration.term(
36
+ 'BT-33', :party, :description, 'BG-4',
37
+ '/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement' \
38
+ '/ram:SellerTradeParty/ram:Description',
39
+ :string, nil,
40
+ en16931: '0..1',
41
+ extended: '0..1'
42
+ ),
43
+ Facturx::TermDeclarations::Declaration.term(
44
+ 'BT-30', :party, :legal_registration, 'BG-4',
45
+ '/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement' \
46
+ '/ram:SellerTradeParty/ram:SpecifiedLegalOrganization/ram:ID',
47
+ :string, nil,
48
+ minimum: '0..1',
49
+ basic_wl: '0..1',
50
+ basic: '0..1',
51
+ en16931: '0..1',
52
+ extended: '0..1'
53
+ ),
54
+ Facturx::TermDeclarations::Declaration.term(
55
+ 'BT-30-1', :party, :legal_registration, 'BG-4',
56
+ '/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement' \
57
+ '/ram:SellerTradeParty/ram:SpecifiedLegalOrganization/ram:ID/@schemeID',
58
+ :string, nil,
59
+ minimum: '0..1',
60
+ basic_wl: '0..1',
61
+ basic: '0..1',
62
+ en16931: '0..1',
63
+ extended: '0..1'
64
+ ),
65
+ Facturx::TermDeclarations::Declaration.term(
66
+ 'BT-28', :party, :trading_name, 'BG-4',
67
+ '/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement' \
68
+ '/ram:SellerTradeParty/ram:SpecifiedLegalOrganization/ram:TradingBusinessName',
69
+ :string, nil,
70
+ basic_wl: '0..1',
71
+ basic: '0..1',
72
+ en16931: '0..1',
73
+ extended: '0..1'
74
+ ),
75
+ Facturx::TermDeclarations::Declaration.term(
76
+ 'BT-41', :contact, :name, 'BG-6',
77
+ '/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement' \
78
+ '/ram:SellerTradeParty/ram:DefinedTradeContact/ram:PersonName',
79
+ :string, nil,
80
+ en16931: '0..1',
81
+ extended: '0..1'
82
+ ),
83
+ Facturx::TermDeclarations::Declaration.term(
84
+ 'BT-42', :contact, :telephone, 'BG-6',
85
+ '/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement' \
86
+ '/ram:SellerTradeParty/ram:DefinedTradeContact/ram:TelephoneUniversalCommunication' \
87
+ '/ram:CompleteNumber',
88
+ :string, nil,
89
+ en16931: '0..1',
90
+ extended: '0..1'
91
+ ),
92
+ Facturx::TermDeclarations::Declaration.term(
93
+ 'BT-43', :contact, :email, 'BG-6',
94
+ '/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement' \
95
+ '/ram:SellerTradeParty/ram:DefinedTradeContact/ram:EmailURIUniversalCommunication/ram:URIID',
96
+ :string, nil,
97
+ en16931: '0..1',
98
+ extended: '0..1'
99
+ ),
100
+ Facturx::TermDeclarations::Declaration.term(
101
+ 'BT-38', :address, :postcode, 'BG-5',
102
+ '/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement' \
103
+ '/ram:SellerTradeParty/ram:PostalTradeAddress/ram:PostcodeCode',
104
+ :string, nil,
105
+ basic_wl: '0..1',
106
+ basic: '0..1',
107
+ en16931: '0..1',
108
+ extended: '0..1'
109
+ ),
110
+ Facturx::TermDeclarations::Declaration.term(
111
+ 'BT-35', :address, :line_one, 'BG-5',
112
+ '/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement' \
113
+ '/ram:SellerTradeParty/ram:PostalTradeAddress/ram:LineOne',
114
+ :string, nil,
115
+ basic_wl: '0..1',
116
+ basic: '0..1',
117
+ en16931: '0..1',
118
+ extended: '0..1'
119
+ ),
120
+ Facturx::TermDeclarations::Declaration.term(
121
+ 'BT-36', :address, :line_two, 'BG-5',
122
+ '/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement' \
123
+ '/ram:SellerTradeParty/ram:PostalTradeAddress/ram:LineTwo',
124
+ :string, nil,
125
+ basic_wl: '0..1',
126
+ basic: '0..1',
127
+ en16931: '0..1',
128
+ extended: '0..1'
129
+ ),
130
+ Facturx::TermDeclarations::Declaration.term(
131
+ 'BT-162', :address, :line_three, 'BG-5',
132
+ '/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement' \
133
+ '/ram:SellerTradeParty/ram:PostalTradeAddress/ram:LineThree',
134
+ :string, nil,
135
+ basic_wl: '0..1',
136
+ basic: '0..1',
137
+ en16931: '0..1',
138
+ extended: '0..1'
139
+ ),
140
+ Facturx::TermDeclarations::Declaration.term(
141
+ 'BT-37', :address, :city, 'BG-5',
142
+ '/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement' \
143
+ '/ram:SellerTradeParty/ram:PostalTradeAddress/ram:CityName',
144
+ :string, nil,
145
+ basic_wl: '0..1',
146
+ basic: '0..1',
147
+ en16931: '0..1',
148
+ extended: '0..1'
149
+ ),
150
+ Facturx::TermDeclarations::Declaration.term(
151
+ 'BT-40', :address, :country_code, 'BG-5',
152
+ '/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement' \
153
+ '/ram:SellerTradeParty/ram:PostalTradeAddress/ram:CountryID',
154
+ :string, nil,
155
+ minimum: '1..1',
156
+ basic_wl: '1..1',
157
+ basic: '1..1',
158
+ en16931: '1..1',
159
+ extended: '1..1'
160
+ ),
161
+ Facturx::TermDeclarations::Declaration.term(
162
+ 'BT-39', :address, :country_subdivision, 'BG-5',
163
+ '/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement' \
164
+ '/ram:SellerTradeParty/ram:PostalTradeAddress/ram:CountrySubDivisionName',
165
+ :string, nil,
166
+ basic_wl: '0..1',
167
+ basic: '0..1',
168
+ en16931: '0..1',
169
+ extended: '0..1'
170
+ ),
171
+ Facturx::TermDeclarations::Declaration.term(
172
+ 'BT-34', :party, :electronic_address, 'BG-4',
173
+ '/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement' \
174
+ '/ram:SellerTradeParty/ram:URIUniversalCommunication/ram:URIID',
175
+ :string, nil,
176
+ basic_wl: '0..1',
177
+ basic: '0..1',
178
+ en16931: '0..1',
179
+ extended: '0..1'
180
+ ),
181
+ Facturx::TermDeclarations::Declaration.term(
182
+ 'BT-34-1', :party, :electronic_address, 'BG-4',
183
+ '/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement' \
184
+ '/ram:SellerTradeParty/ram:URIUniversalCommunication/ram:URIID/@schemeID',
185
+ :string, nil,
186
+ basic_wl: '1..1',
187
+ basic: '1..1',
188
+ en16931: '1..1',
189
+ extended: '1..1'
190
+ ),
191
+ Facturx::TermDeclarations::Declaration.term(
192
+ 'BT-31', :party, :vat_identifier, 'BG-4',
193
+ '/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement' \
194
+ '/ram:SellerTradeParty/ram:SpecifiedTaxRegistration/ram:ID',
195
+ :string, nil,
196
+ minimum: '0..1',
197
+ basic_wl: '0..1',
198
+ basic: '0..1',
199
+ en16931: '0..1',
200
+ extended: '0..1'
201
+ ),
202
+ Facturx::TermDeclarations::Declaration.term(
203
+ 'BT-32', :party, :tax_identifier, 'BG-4',
204
+ '/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement' \
205
+ '/ram:SellerTradeParty/ram:SpecifiedTaxRegistration/ram:ID',
206
+ :string, nil,
207
+ minimum: '0..1',
208
+ basic_wl: '0..1',
209
+ basic: '0..1',
210
+ en16931: '0..1',
211
+ extended: '0..1'
212
+ ),
213
+ Facturx::TermDeclarations::Declaration.term(
214
+ 'BT-46', :party, :identifiers, 'BG-7',
215
+ '/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement' \
216
+ '/ram:BuyerTradeParty/ram:ID',
217
+ :string, nil,
218
+ basic_wl: '0..1',
219
+ basic: '0..1',
220
+ en16931: '0..1',
221
+ extended: '0..1'
222
+ ),
223
+ Facturx::TermDeclarations::Declaration.term(
224
+ 'BT-46-1', :party, :identifiers, 'BG-7',
225
+ '/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement' \
226
+ '/ram:BuyerTradeParty/ram:GlobalID/@schemeID',
227
+ :string, nil,
228
+ basic_wl: '0..1',
229
+ basic: '0..1',
230
+ en16931: '0..1',
231
+ extended: '0..1'
232
+ ),
233
+ Facturx::TermDeclarations::Declaration.term(
234
+ 'BT-44', :party, :name, 'BG-7',
235
+ '/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement' \
236
+ '/ram:BuyerTradeParty/ram:Name',
237
+ :string, nil,
238
+ minimum: '1..1',
239
+ basic_wl: '1..1',
240
+ basic: '1..1',
241
+ en16931: '1..1',
242
+ extended: '1..1'
243
+ ),
244
+ Facturx::TermDeclarations::Declaration.term(
245
+ 'BT-47', :party, :legal_registration, 'BG-7',
246
+ '/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement' \
247
+ '/ram:BuyerTradeParty/ram:SpecifiedLegalOrganization/ram:ID',
248
+ :string, nil,
249
+ minimum: '0..1',
250
+ basic_wl: '0..1',
251
+ basic: '0..1',
252
+ en16931: '0..1',
253
+ extended: '0..1'
254
+ ),
255
+ Facturx::TermDeclarations::Declaration.term(
256
+ 'BT-47-1', :party, :legal_registration, 'BG-7',
257
+ '/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement' \
258
+ '/ram:BuyerTradeParty/ram:SpecifiedLegalOrganization/ram:ID/@schemeID',
259
+ :string, nil,
260
+ minimum: '0..1',
261
+ basic_wl: '0..1',
262
+ basic: '0..1',
263
+ en16931: '0..1',
264
+ extended: '0..1'
265
+ ),
266
+ Facturx::TermDeclarations::Declaration.term(
267
+ 'BT-45', :party, :trading_name, 'BG-7',
268
+ '/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement' \
269
+ '/ram:BuyerTradeParty/ram:SpecifiedLegalOrganization/ram:TradingBusinessName',
270
+ :string, nil,
271
+ en16931: '0..1',
272
+ extended: '0..1'
273
+ ),
274
+ Facturx::TermDeclarations::Declaration.term(
275
+ 'BT-56', :contact, :name, 'BG-9',
276
+ '/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement' \
277
+ '/ram:BuyerTradeParty/ram:DefinedTradeContact/ram:PersonName',
278
+ :string, nil,
279
+ en16931: '0..1',
280
+ extended: '0..1'
281
+ ),
282
+ Facturx::TermDeclarations::Declaration.term(
283
+ 'BT-57', :contact, :telephone, 'BG-9',
284
+ '/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement' \
285
+ '/ram:BuyerTradeParty/ram:DefinedTradeContact/ram:TelephoneUniversalCommunication' \
286
+ '/ram:CompleteNumber',
287
+ :string, nil,
288
+ en16931: '0..1',
289
+ extended: '0..1'
290
+ ),
291
+ Facturx::TermDeclarations::Declaration.term(
292
+ 'BT-58', :contact, :email, 'BG-9',
293
+ '/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement' \
294
+ '/ram:BuyerTradeParty/ram:DefinedTradeContact/ram:EmailURIUniversalCommunication/ram:URIID',
295
+ :string, nil,
296
+ en16931: '0..1',
297
+ extended: '0..1'
298
+ ),
299
+ Facturx::TermDeclarations::Declaration.term(
300
+ 'BT-53', :address, :postcode, 'BG-8',
301
+ '/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement' \
302
+ '/ram:BuyerTradeParty/ram:PostalTradeAddress/ram:PostcodeCode',
303
+ :string, nil,
304
+ basic_wl: '0..1',
305
+ basic: '0..1',
306
+ en16931: '0..1',
307
+ extended: '0..1'
308
+ ),
309
+ Facturx::TermDeclarations::Declaration.term(
310
+ 'BT-50', :address, :line_one, 'BG-8',
311
+ '/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement' \
312
+ '/ram:BuyerTradeParty/ram:PostalTradeAddress/ram:LineOne',
313
+ :string, nil,
314
+ basic_wl: '0..1',
315
+ basic: '0..1',
316
+ en16931: '0..1',
317
+ extended: '0..1'
318
+ ),
319
+ Facturx::TermDeclarations::Declaration.term(
320
+ 'BT-51', :address, :line_two, 'BG-8',
321
+ '/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement' \
322
+ '/ram:BuyerTradeParty/ram:PostalTradeAddress/ram:LineTwo',
323
+ :string, nil,
324
+ basic_wl: '0..1',
325
+ basic: '0..1',
326
+ en16931: '0..1',
327
+ extended: '0..1'
328
+ ),
329
+ Facturx::TermDeclarations::Declaration.term(
330
+ 'BT-163', :address, :line_three, 'BG-8',
331
+ '/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement' \
332
+ '/ram:BuyerTradeParty/ram:PostalTradeAddress/ram:LineThree',
333
+ :string, nil,
334
+ basic_wl: '0..1',
335
+ basic: '0..1',
336
+ en16931: '0..1',
337
+ extended: '0..1'
338
+ ),
339
+ Facturx::TermDeclarations::Declaration.term(
340
+ 'BT-52', :address, :city, 'BG-8',
341
+ '/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement' \
342
+ '/ram:BuyerTradeParty/ram:PostalTradeAddress/ram:CityName',
343
+ :string, nil,
344
+ basic_wl: '0..1',
345
+ basic: '0..1',
346
+ en16931: '0..1',
347
+ extended: '0..1'
348
+ ),
349
+ Facturx::TermDeclarations::Declaration.term(
350
+ 'BT-55', :address, :country_code, 'BG-8',
351
+ '/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement' \
352
+ '/ram:BuyerTradeParty/ram:PostalTradeAddress/ram:CountryID',
353
+ :string, nil,
354
+ basic_wl: '1..1',
355
+ basic: '1..1',
356
+ en16931: '1..1',
357
+ extended: '1..1'
358
+ ),
359
+ Facturx::TermDeclarations::Declaration.term(
360
+ 'BT-54', :address, :country_subdivision, 'BG-8',
361
+ '/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement' \
362
+ '/ram:BuyerTradeParty/ram:PostalTradeAddress/ram:CountrySubDivisionName',
363
+ :string, nil,
364
+ basic_wl: '0..1',
365
+ basic: '0..1',
366
+ en16931: '0..1',
367
+ extended: '0..1'
368
+ ),
369
+ Facturx::TermDeclarations::Declaration.term(
370
+ 'BT-49', :party, :electronic_address, 'BG-7',
371
+ '/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement' \
372
+ '/ram:BuyerTradeParty/ram:URIUniversalCommunication/ram:URIID',
373
+ :string, nil,
374
+ basic_wl: '0..1',
375
+ basic: '0..1',
376
+ en16931: '0..1',
377
+ extended: '0..1'
378
+ ),
379
+ Facturx::TermDeclarations::Declaration.term(
380
+ 'BT-49-1', :party, :electronic_address, 'BG-7',
381
+ '/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement' \
382
+ '/ram:BuyerTradeParty/ram:URIUniversalCommunication/ram:URIID/@schemeID',
383
+ :string, nil,
384
+ basic_wl: '1..1',
385
+ basic: '1..1',
386
+ en16931: '1..1',
387
+ extended: '1..1'
388
+ ),
389
+ Facturx::TermDeclarations::Declaration.term(
390
+ 'BT-48', :party, :vat_identifier, 'BG-7',
391
+ '/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement' \
392
+ '/ram:BuyerTradeParty/ram:SpecifiedTaxRegistration/ram:ID',
393
+ :string, nil,
394
+ basic_wl: '0..1',
395
+ basic: '0..1',
396
+ en16931: '0..1',
397
+ extended: '0..1'
398
+ ),
399
+ Facturx::TermDeclarations::Declaration.term(
400
+ 'BT-62', :party, :name, 'BG-11',
401
+ '/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement' \
402
+ '/ram:SellerTaxRepresentativeTradeParty/ram:Name',
403
+ :string, nil,
404
+ basic_wl: '1..1',
405
+ basic: '1..1',
406
+ en16931: '1..1',
407
+ extended: '1..1'
408
+ ),
409
+ Facturx::TermDeclarations::Declaration.term(
410
+ 'BT-67', :address, :postcode, 'BG-12',
411
+ '/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement' \
412
+ '/ram:SellerTaxRepresentativeTradeParty/ram:PostalTradeAddress/ram:PostcodeCode',
413
+ :string, nil,
414
+ basic_wl: '0..1',
415
+ basic: '0..1',
416
+ en16931: '0..1',
417
+ extended: '0..1'
418
+ ),
419
+ Facturx::TermDeclarations::Declaration.term(
420
+ 'BT-64', :address, :line_one, 'BG-12',
421
+ '/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement' \
422
+ '/ram:SellerTaxRepresentativeTradeParty/ram:PostalTradeAddress/ram:LineOne',
423
+ :string, nil,
424
+ basic_wl: '0..1',
425
+ basic: '0..1',
426
+ en16931: '0..1',
427
+ extended: '0..1'
428
+ ),
429
+ Facturx::TermDeclarations::Declaration.term(
430
+ 'BT-65', :address, :line_two, 'BG-12',
431
+ '/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement' \
432
+ '/ram:SellerTaxRepresentativeTradeParty/ram:PostalTradeAddress/ram:LineTwo',
433
+ :string, nil,
434
+ basic_wl: '0..1',
435
+ basic: '0..1',
436
+ en16931: '0..1',
437
+ extended: '0..1'
438
+ ),
439
+ Facturx::TermDeclarations::Declaration.term(
440
+ 'BT-164', :address, :line_three, 'BG-12',
441
+ '/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement' \
442
+ '/ram:SellerTaxRepresentativeTradeParty/ram:PostalTradeAddress/ram:LineThree',
443
+ :string, nil,
444
+ basic_wl: '0..1',
445
+ basic: '0..1',
446
+ en16931: '0..1',
447
+ extended: '0..1'
448
+ ),
449
+ Facturx::TermDeclarations::Declaration.term(
450
+ 'BT-66', :address, :city, 'BG-12',
451
+ '/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement' \
452
+ '/ram:SellerTaxRepresentativeTradeParty/ram:PostalTradeAddress/ram:CityName',
453
+ :string, nil,
454
+ basic_wl: '0..1',
455
+ basic: '0..1',
456
+ en16931: '0..1',
457
+ extended: '0..1'
458
+ ),
459
+ Facturx::TermDeclarations::Declaration.term(
460
+ 'BT-69', :address, :country_code, 'BG-12',
461
+ '/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement' \
462
+ '/ram:SellerTaxRepresentativeTradeParty/ram:PostalTradeAddress/ram:CountryID',
463
+ :string, nil,
464
+ basic_wl: '1..1',
465
+ basic: '1..1',
466
+ en16931: '1..1',
467
+ extended: '1..1'
468
+ ),
469
+ Facturx::TermDeclarations::Declaration.term(
470
+ 'BT-68', :address, :country_subdivision, 'BG-12',
471
+ '/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement' \
472
+ '/ram:SellerTaxRepresentativeTradeParty/ram:PostalTradeAddress/ram:CountrySubDivisionName',
473
+ :string, nil,
474
+ basic_wl: '0..1',
475
+ basic: '0..1',
476
+ en16931: '0..1',
477
+ extended: '0..1'
478
+ ),
479
+ Facturx::TermDeclarations::Declaration.term(
480
+ 'BT-63', :party, :vat_identifier, 'BG-11',
481
+ '/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement' \
482
+ '/ram:SellerTaxRepresentativeTradeParty/ram:SpecifiedTaxRegistration/ram:ID',
483
+ :string, nil,
484
+ basic_wl: '1..1',
485
+ basic: '1..1',
486
+ en16931: '1..1',
487
+ extended: '1..1'
488
+ ),
489
+ Facturx::TermDeclarations::Declaration.term(
490
+ 'BT-78', :address, :postcode, 'BG-15',
491
+ '/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeDelivery' \
492
+ '/ram:ShipToTradeParty/ram:PostalTradeAddress/ram:PostcodeCode',
493
+ :string, nil,
494
+ basic_wl: '0..1',
495
+ basic: '0..1',
496
+ en16931: '0..1',
497
+ extended: '0..1'
498
+ ),
499
+ Facturx::TermDeclarations::Declaration.term(
500
+ 'BT-75', :address, :line_one, 'BG-15',
501
+ '/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeDelivery' \
502
+ '/ram:ShipToTradeParty/ram:PostalTradeAddress/ram:LineOne',
503
+ :string, nil,
504
+ basic_wl: '0..1',
505
+ basic: '0..1',
506
+ en16931: '0..1',
507
+ extended: '0..1'
508
+ ),
509
+ Facturx::TermDeclarations::Declaration.term(
510
+ 'BT-76', :address, :line_two, 'BG-15',
511
+ '/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeDelivery' \
512
+ '/ram:ShipToTradeParty/ram:PostalTradeAddress/ram:LineTwo',
513
+ :string, nil,
514
+ basic_wl: '0..1',
515
+ basic: '0..1',
516
+ en16931: '0..1',
517
+ extended: '0..1'
518
+ ),
519
+ Facturx::TermDeclarations::Declaration.term(
520
+ 'BT-165', :address, :line_three, 'BG-15',
521
+ '/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeDelivery' \
522
+ '/ram:ShipToTradeParty/ram:PostalTradeAddress/ram:LineThree',
523
+ :string, nil,
524
+ basic_wl: '0..1',
525
+ basic: '0..1',
526
+ en16931: '0..1',
527
+ extended: '0..1'
528
+ ),
529
+ Facturx::TermDeclarations::Declaration.term(
530
+ 'BT-77', :address, :city, 'BG-15',
531
+ '/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeDelivery' \
532
+ '/ram:ShipToTradeParty/ram:PostalTradeAddress/ram:CityName',
533
+ :string, nil,
534
+ basic_wl: '0..1',
535
+ basic: '0..1',
536
+ en16931: '0..1',
537
+ extended: '0..1'
538
+ ),
539
+ Facturx::TermDeclarations::Declaration.term(
540
+ 'BT-80', :address, :country_code, 'BG-15',
541
+ '/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeDelivery' \
542
+ '/ram:ShipToTradeParty/ram:PostalTradeAddress/ram:CountryID',
543
+ :string, nil,
544
+ basic_wl: '1..1',
545
+ basic: '1..1',
546
+ en16931: '1..1',
547
+ extended: '1..1'
548
+ ),
549
+ Facturx::TermDeclarations::Declaration.term(
550
+ 'BT-79', :address, :country_subdivision, 'BG-15',
551
+ '/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeDelivery' \
552
+ '/ram:ShipToTradeParty/ram:PostalTradeAddress/ram:CountrySubDivisionName',
553
+ :string, nil,
554
+ basic_wl: '0..1',
555
+ basic: '0..1',
556
+ en16931: '0..1',
557
+ extended: '0..1'
558
+ ),
559
+ Facturx::TermDeclarations::Declaration.term(
560
+ 'BT-60', :party, :identifiers, 'BG-10',
561
+ '/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement' \
562
+ '/ram:PayeeTradeParty/ram:ID',
563
+ :string, nil,
564
+ basic_wl: '0..1',
565
+ basic: '0..1',
566
+ en16931: '0..1',
567
+ extended: '0..1'
568
+ ),
569
+ Facturx::TermDeclarations::Declaration.term(
570
+ 'BT-60-1', :party, :identifiers, 'BG-10',
571
+ '/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement' \
572
+ '/ram:PayeeTradeParty/ram:GlobalID/@schemeID',
573
+ :string, nil,
574
+ basic_wl: '0..1',
575
+ basic: '0..1',
576
+ en16931: '0..1',
577
+ extended: '0..1'
578
+ ),
579
+ Facturx::TermDeclarations::Declaration.term(
580
+ 'BT-59', :party, :name, 'BG-10',
581
+ '/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement' \
582
+ '/ram:PayeeTradeParty/ram:Name',
583
+ :string, nil,
584
+ basic_wl: '1..1',
585
+ basic: '1..1',
586
+ en16931: '1..1',
587
+ extended: '1..1'
588
+ ),
589
+ Facturx::TermDeclarations::Declaration.term(
590
+ 'BT-61', :party, :legal_registration, 'BG-10',
591
+ '/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement' \
592
+ '/ram:PayeeTradeParty/ram:SpecifiedLegalOrganization/ram:ID',
593
+ :string, nil,
594
+ basic_wl: '0..1',
595
+ basic: '0..1',
596
+ en16931: '0..1',
597
+ extended: '0..1'
598
+ ),
599
+ Facturx::TermDeclarations::Declaration.term(
600
+ 'BT-61-1', :party, :legal_registration, 'BG-10',
601
+ '/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement' \
602
+ '/ram:PayeeTradeParty/ram:SpecifiedLegalOrganization/ram:ID/@schemeID',
603
+ :string, nil,
604
+ basic_wl: '0..1',
605
+ basic: '0..1',
606
+ en16931: '0..1',
607
+ extended: '0..1'
608
+ )
609
+ ].freeze