gobl 0.10.1 → 0.11.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (79) hide show
  1. checksums.yaml +4 -4
  2. data/data/regimes/es.json +55 -3
  3. data/data/regimes/it.json +1707 -0
  4. data/data/regimes/pt.json +272 -7
  5. data/lib/generated/gobl/bill/charge.rb +1 -1
  6. data/lib/generated/gobl/bill/delivery.rb +1 -1
  7. data/lib/generated/gobl/bill/discount.rb +1 -1
  8. data/lib/generated/gobl/bill/document_reference.rb +1 -1
  9. data/lib/generated/gobl/bill/invoice.rb +1 -1
  10. data/lib/generated/gobl/bill/line.rb +1 -1
  11. data/lib/generated/gobl/bill/line_charge.rb +1 -1
  12. data/lib/generated/gobl/bill/line_discount.rb +1 -1
  13. data/lib/generated/gobl/bill/ordering.rb +1 -1
  14. data/lib/generated/gobl/bill/outlay.rb +1 -1
  15. data/lib/generated/gobl/bill/payment.rb +1 -1
  16. data/lib/generated/gobl/bill/preceding.rb +1 -2
  17. data/lib/generated/gobl/bill/tax.rb +1 -1
  18. data/lib/generated/gobl/bill/totals.rb +1 -1
  19. data/lib/generated/gobl/cal/date.rb +1 -1
  20. data/lib/generated/gobl/cal/period.rb +1 -1
  21. data/lib/generated/gobl/cbc/code.rb +1 -1
  22. data/lib/generated/gobl/cbc/key.rb +1 -1
  23. data/lib/generated/gobl/cbc/meta.rb +1 -1
  24. data/lib/generated/gobl/cbc/note.rb +31 -1
  25. data/lib/generated/gobl/cbc/stamp.rb +1 -1
  26. data/lib/generated/gobl/currency/code.rb +1 -1
  27. data/lib/generated/gobl/currency/exchange_rate.rb +1 -1
  28. data/lib/generated/gobl/document.rb +2 -2
  29. data/lib/generated/gobl/dsig/digest.rb +1 -1
  30. data/lib/generated/gobl/dsig/signature.rb +1 -1
  31. data/lib/generated/gobl/envelope.rb +1 -1
  32. data/lib/generated/gobl/header.rb +1 -1
  33. data/lib/generated/gobl/i18n/string.rb +1 -1
  34. data/lib/generated/gobl/l10n/code.rb +1 -1
  35. data/lib/generated/gobl/l10n/country_code.rb +1 -1
  36. data/lib/generated/gobl/note/message.rb +1 -1
  37. data/lib/generated/gobl/org/address.rb +1 -1
  38. data/lib/generated/gobl/org/coordinates.rb +1 -1
  39. data/lib/generated/gobl/org/email.rb +1 -1
  40. data/lib/generated/gobl/org/identity.rb +1 -1
  41. data/lib/generated/gobl/org/image.rb +1 -1
  42. data/lib/generated/gobl/org/inbox.rb +1 -1
  43. data/lib/generated/gobl/org/item.rb +1 -1
  44. data/lib/generated/gobl/org/name.rb +1 -1
  45. data/lib/generated/gobl/org/party.rb +1 -1
  46. data/lib/generated/gobl/org/person.rb +1 -1
  47. data/lib/generated/gobl/org/registration.rb +1 -1
  48. data/lib/generated/gobl/org/telephone.rb +1 -1
  49. data/lib/generated/gobl/org/unit.rb +1 -1
  50. data/lib/generated/gobl/org/website.rb +1 -1
  51. data/lib/generated/gobl/pay/advance.rb +1 -1
  52. data/lib/generated/gobl/pay/card.rb +1 -1
  53. data/lib/generated/gobl/pay/credit_transfer.rb +1 -1
  54. data/lib/generated/gobl/pay/direct_debit.rb +1 -1
  55. data/lib/generated/gobl/pay/due_date.rb +1 -1
  56. data/lib/generated/gobl/pay/instructions.rb +1 -1
  57. data/lib/generated/gobl/pay/online.rb +1 -1
  58. data/lib/generated/gobl/pay/terms.rb +1 -1
  59. data/lib/generated/gobl/tax/category.rb +1 -1
  60. data/lib/generated/gobl/tax/category_total.rb +1 -1
  61. data/lib/generated/gobl/tax/combo.rb +1 -1
  62. data/lib/generated/gobl/tax/identity.rb +4 -14
  63. data/lib/generated/gobl/tax/identity_type.rb +33 -0
  64. data/lib/generated/gobl/tax/key_definition.rb +1 -1
  65. data/lib/generated/gobl/tax/preceding_definitions.rb +1 -1
  66. data/lib/generated/gobl/tax/rate.rb +1 -1
  67. data/lib/generated/gobl/tax/rate_total.rb +1 -1
  68. data/lib/generated/gobl/tax/rate_total_surcharge.rb +1 -1
  69. data/lib/generated/gobl/tax/rate_value.rb +1 -1
  70. data/lib/generated/gobl/tax/regime.rb +6 -1
  71. data/lib/generated/gobl/tax/scenario.rb +1 -1
  72. data/lib/generated/gobl/tax/scenario_set.rb +1 -1
  73. data/lib/generated/gobl/tax/set.rb +1 -1
  74. data/lib/generated/gobl/tax/tag.rb +1 -1
  75. data/lib/generated/gobl/tax/total.rb +1 -1
  76. data/lib/generated/gobl/tax/zone.rb +1 -1
  77. data/lib/generated/gobl/uuid/uuid.rb +1 -1
  78. data/lib/gobl/version.rb +1 -1
  79. metadata +3 -2
data/data/regimes/pt.json CHANGED
@@ -154,13 +154,6 @@
154
154
  "since": "2011-01-01",
155
155
  "percent": "16.0%"
156
156
  },
157
- {
158
- "zones": [
159
- "20"
160
- ],
161
- "since": "2011-01-01",
162
- "percent": "18.0%"
163
- },
164
157
  {
165
158
  "zones": [
166
159
  "30"
@@ -228,6 +221,278 @@
228
221
  }
229
222
  ]
230
223
  }
224
+ ],
225
+ "tags": [
226
+ {
227
+ "key": "exempt+outlay",
228
+ "name": {
229
+ "en": "Article 16, No. 6 of the VAT code",
230
+ "pt": "Artigo 16.°, n.° 6 do CIVA"
231
+ },
232
+ "meta": {
233
+ "at-tax-exemption-code": "M01"
234
+ }
235
+ },
236
+ {
237
+ "key": "exempt+intrastate-export",
238
+ "name": {
239
+ "en": "Article 6 of the Decree-Law 198/90 of 19th June",
240
+ "pt": "Artigo 6.° do Decreto-Lei n.° 198/90, de 19 de junho"
241
+ },
242
+ "meta": {
243
+ "at-tax-exemption-code": "M02"
244
+ }
245
+ },
246
+ {
247
+ "key": "exempt+imports",
248
+ "name": {
249
+ "en": "Exempt pursuant to article 13 of the VAT code",
250
+ "pt": "Isento artigo 13.° do CIVA"
251
+ },
252
+ "meta": {
253
+ "at-tax-exemption-code": "M04"
254
+ }
255
+ },
256
+ {
257
+ "key": "exempt+exports",
258
+ "name": {
259
+ "en": "Exempt pursuant to article 14 of the VAT code",
260
+ "pt": "Isento artigo 14.° do CIVA"
261
+ },
262
+ "meta": {
263
+ "at-tax-exemption-code": "M05"
264
+ }
265
+ },
266
+ {
267
+ "key": "exempt+suspension-scheme",
268
+ "name": {
269
+ "en": "Exempt pursuant to article 15 of the VAT code",
270
+ "pt": "Isento artigo 15.° do CIVA"
271
+ },
272
+ "meta": {
273
+ "at-tax-exemption-code": "M06"
274
+ }
275
+ },
276
+ {
277
+ "key": "exempt+internal-operations",
278
+ "name": {
279
+ "en": "Exempt pursuant to article 9 of the VAT code",
280
+ "pt": "Isento artigo 9.° do CIVA"
281
+ },
282
+ "meta": {
283
+ "at-tax-exemption-code": "M07"
284
+ }
285
+ },
286
+ {
287
+ "key": "exempt+small-retail-scheme",
288
+ "name": {
289
+ "en": "VAT - does not confer right to deduct / Article 62 paragraph b) of the VAT code",
290
+ "pt": "IVA - não confere direito a dedução / Artigo 62.° alínea b) do CIVA"
291
+ },
292
+ "meta": {
293
+ "at-tax-exemption-code": "M09"
294
+ }
295
+ },
296
+ {
297
+ "key": "exempt+exempt-scheme",
298
+ "name": {
299
+ "en": "VAT - exemption scheme / Article 57 of the VAT code",
300
+ "pt": "IVA - regime de isenção / Artigo 57.° do CIVA"
301
+ },
302
+ "meta": {
303
+ "at-tax-exemption-code": "M10"
304
+ }
305
+ },
306
+ {
307
+ "key": "exempt+tobacco-scheme",
308
+ "name": {
309
+ "en": "Special scheme for tobacco / Decree-Law No. 346/85 of 23rd August",
310
+ "pt": "Regime particular do tabaco / Decreto-Lei n.° 346/85, de 23 de agosto"
311
+ },
312
+ "meta": {
313
+ "at-tax-exemption-code": "M11"
314
+ }
315
+ },
316
+ {
317
+ "key": "exempt+margin-scheme+travel",
318
+ "name": {
319
+ "en": "Margin scheme - Travel agencies / Decree-Law No. 221/85 of 3rd July",
320
+ "pt": "Regime da margem de lucro - Agências de viagens / Decreto-Lei n.° 221/85, de 3 de julho"
321
+ },
322
+ "meta": {
323
+ "at-tax-exemption-code": "M12"
324
+ }
325
+ },
326
+ {
327
+ "key": "exempt+margin-scheme+second-hand",
328
+ "name": {
329
+ "en": "Margin scheme - Second-hand goods / Decree-Law No. 199/96 of 18th October",
330
+ "pt": "Regime da margem de lucro - Bens em segunda mão / Decreto-Lei n.° 199/96, de 18 de outubro"
331
+ },
332
+ "meta": {
333
+ "at-tax-exemption-code": "M13"
334
+ }
335
+ },
336
+ {
337
+ "key": "exempt+margin-scheme+art",
338
+ "name": {
339
+ "en": "Margin scheme - Works of art / Decree-Law No. 199/96 of 18th October",
340
+ "pt": "Regime da margem de lucro - Objetos de arte / Decreto-Lei n.° 199/96, de 18 de outubro"
341
+ },
342
+ "meta": {
343
+ "at-tax-exemption-code": "M14"
344
+ }
345
+ },
346
+ {
347
+ "key": "exempt+margin-scheme+antiques",
348
+ "name": {
349
+ "en": "Margin scheme - Collector’s items and antiques / Decree-Law No. 199/96 of 18th October",
350
+ "pt": "Regime da margem de lucro - Objetos de coleção e antiguidades / Decreto-Lei n.° 199/96, de 18 de outubro"
351
+ },
352
+ "meta": {
353
+ "at-tax-exemption-code": "M15"
354
+ }
355
+ },
356
+ {
357
+ "key": "exempt+goods-transmission",
358
+ "name": {
359
+ "en": "Exempt pursuant to Article 14 of the RITI",
360
+ "pt": "Isento artigo 14.° do RITI"
361
+ },
362
+ "meta": {
363
+ "at-tax-exemption-code": "M16"
364
+ }
365
+ },
366
+ {
367
+ "key": "exempt+other",
368
+ "name": {
369
+ "en": "Other exemptions - Temporary exemptions determined by specific legislation",
370
+ "pt": "Outras isenções - Isenções temporárias determinadas em diploma próprio"
371
+ },
372
+ "meta": {
373
+ "at-tax-exemption-code": "M19"
374
+ }
375
+ },
376
+ {
377
+ "key": "exempt+flat-rate-scheme",
378
+ "name": {
379
+ "en": "VAT - flat-rate scheme / Article 59-D No. 2 of the VAT code",
380
+ "pt": "IVA - regime forfetário / Artigo 59.°-D n.°2 do CIVA"
381
+ },
382
+ "meta": {
383
+ "at-tax-exemption-code": "M20"
384
+ }
385
+ },
386
+ {
387
+ "key": "exempt+non-deductible",
388
+ "name": {
389
+ "en": "VAT - does not confer right to deduct (or similar) - Article 72 No. 4 of the VAT code",
390
+ "pt": "IVA - não confere direito à dedução (ou expressão similar) - Artigo 72.° n.° 4 do CIVA"
391
+ },
392
+ "meta": {
393
+ "at-tax-exemption-code": "M21"
394
+ }
395
+ },
396
+ {
397
+ "key": "exempt+consignment-goods",
398
+ "name": {
399
+ "en": "Consignment goods - Article 38 No. 1 paragraph a) of the VAT code",
400
+ "pt": "Mercadorias à consignação - Artigo 38.° n.° 1 alínea a) do CIVA"
401
+ },
402
+ "meta": {
403
+ "at-tax-exemption-code": "M25"
404
+ }
405
+ },
406
+ {
407
+ "key": "exempt+reverse-charge+waste",
408
+ "name": {
409
+ "en": "VAT - reverse charge / Article 2 No. 1 paragraph i) of the VAT code",
410
+ "pt": "IVA - autoliquidação / Artigo 2.° n.° 1 alínea i) do CIVA"
411
+ },
412
+ "meta": {
413
+ "at-tax-exemption-code": "M30"
414
+ }
415
+ },
416
+ {
417
+ "key": "exempt+reverse-charge+civil-eng",
418
+ "name": {
419
+ "en": "VAT - reverse charge / Article 2 No. 1 paragraph j) of the VAT code",
420
+ "pt": "IVA - autoliquidação / Artigo 2.° n.° 1 alínea j) do CIVA"
421
+ },
422
+ "meta": {
423
+ "at-tax-exemption-code": "M31"
424
+ }
425
+ },
426
+ {
427
+ "key": "exempt+reverse-charge+greenhouse",
428
+ "name": {
429
+ "en": "VAT - reverse charge / Article 2 No. 1 paragraph l) of the VAT code",
430
+ "pt": "IVA - autoliquidação / Artigo 2.° n.° 1 alínea I) do CIVA"
431
+ },
432
+ "meta": {
433
+ "at-tax-exemption-code": "M32"
434
+ }
435
+ },
436
+ {
437
+ "key": "exempt+reverse-charge+woods",
438
+ "name": {
439
+ "en": "VAT - reverse charge / Article 2 No. 1 paragraph m) of the VAT code",
440
+ "pt": "IVA - autoliquidação / Artigo 2.° n.° 1 alínea m) do CIVA"
441
+ },
442
+ "meta": {
443
+ "at-tax-exemption-code": "M33"
444
+ }
445
+ },
446
+ {
447
+ "key": "exempt+reverse-charge+b2b",
448
+ "name": {
449
+ "en": "VAT - reverse charge / Article 6 No. 6 paragraph a) of the VAT code, to the contrary",
450
+ "pt": "IVA - autoliquidação / Artigo 6.° n.° 6 alínea a) do CIVA, a contrário"
451
+ },
452
+ "meta": {
453
+ "at-tax-exemption-code": "M40"
454
+ }
455
+ },
456
+ {
457
+ "key": "exempt+reverse-charge+intraeu",
458
+ "name": {
459
+ "en": "VAT - reverse charge / Article 8 No. 3 of the RITI",
460
+ "pt": "IVA - autoliquidação / Artigo 8.° n.° 3 do RITI"
461
+ },
462
+ "meta": {
463
+ "at-tax-exemption-code": "M41"
464
+ }
465
+ },
466
+ {
467
+ "key": "exempt+reverse-charge+real-estate",
468
+ "name": {
469
+ "en": "VAT - reverse charge / Decree-Law No. 21/2007 of 29 January",
470
+ "pt": "IVA - autoliquidação / Decreto-Lei n.° 21/2007, de 29 de janeiro"
471
+ },
472
+ "meta": {
473
+ "at-tax-exemption-code": "M42"
474
+ }
475
+ },
476
+ {
477
+ "key": "exempt+reverse-charge+gold",
478
+ "name": {
479
+ "en": "VAT - reverse charge / Decree-Law No. 362/99 of 16th September",
480
+ "pt": "IVA - autoliquidação / Decreto-Lei n.° 362/99, de 16 de setembro"
481
+ },
482
+ "meta": {
483
+ "at-tax-exemption-code": "M43"
484
+ }
485
+ },
486
+ {
487
+ "key": "exempt+non-taxable",
488
+ "name": {
489
+ "en": "Not subject to tax or not taxed",
490
+ "pt": "Não sujeito ou não tributado"
491
+ },
492
+ "meta": {
493
+ "at-tax-exemption-code": "M99"
494
+ }
495
+ }
231
496
  ]
232
497
  }
233
498
  ]
@@ -3,7 +3,7 @@
3
3
  ##
4
4
  ## DO NOT EDIT - This file was generated automatically.
5
5
  ##
6
- ## Generated with GOBL v0.38.0
6
+ ## Generated with GOBL v0.39.0
7
7
  ##
8
8
 
9
9
  module GOBL
@@ -3,7 +3,7 @@
3
3
  ##
4
4
  ## DO NOT EDIT - This file was generated automatically.
5
5
  ##
6
- ## Generated with GOBL v0.38.0
6
+ ## Generated with GOBL v0.39.0
7
7
  ##
8
8
 
9
9
  module GOBL
@@ -3,7 +3,7 @@
3
3
  ##
4
4
  ## DO NOT EDIT - This file was generated automatically.
5
5
  ##
6
- ## Generated with GOBL v0.38.0
6
+ ## Generated with GOBL v0.39.0
7
7
  ##
8
8
 
9
9
  module GOBL
@@ -3,7 +3,7 @@
3
3
  ##
4
4
  ## DO NOT EDIT - This file was generated automatically.
5
5
  ##
6
- ## Generated with GOBL v0.38.0
6
+ ## Generated with GOBL v0.39.0
7
7
  ##
8
8
 
9
9
  module GOBL
@@ -3,7 +3,7 @@
3
3
  ##
4
4
  ## DO NOT EDIT - This file was generated automatically.
5
5
  ##
6
- ## Generated with GOBL v0.38.0
6
+ ## Generated with GOBL v0.39.0
7
7
  ##
8
8
 
9
9
  module GOBL
@@ -3,7 +3,7 @@
3
3
  ##
4
4
  ## DO NOT EDIT - This file was generated automatically.
5
5
  ##
6
- ## Generated with GOBL v0.38.0
6
+ ## Generated with GOBL v0.39.0
7
7
  ##
8
8
 
9
9
  module GOBL
@@ -3,7 +3,7 @@
3
3
  ##
4
4
  ## DO NOT EDIT - This file was generated automatically.
5
5
  ##
6
- ## Generated with GOBL v0.38.0
6
+ ## Generated with GOBL v0.39.0
7
7
  ##
8
8
 
9
9
  module GOBL
@@ -3,7 +3,7 @@
3
3
  ##
4
4
  ## DO NOT EDIT - This file was generated automatically.
5
5
  ##
6
- ## Generated with GOBL v0.38.0
6
+ ## Generated with GOBL v0.39.0
7
7
  ##
8
8
 
9
9
  module GOBL
@@ -3,7 +3,7 @@
3
3
  ##
4
4
  ## DO NOT EDIT - This file was generated automatically.
5
5
  ##
6
- ## Generated with GOBL v0.38.0
6
+ ## Generated with GOBL v0.39.0
7
7
  ##
8
8
 
9
9
  module GOBL
@@ -3,7 +3,7 @@
3
3
  ##
4
4
  ## DO NOT EDIT - This file was generated automatically.
5
5
  ##
6
- ## Generated with GOBL v0.38.0
6
+ ## Generated with GOBL v0.39.0
7
7
  ##
8
8
 
9
9
  module GOBL
@@ -3,7 +3,7 @@
3
3
  ##
4
4
  ## DO NOT EDIT - This file was generated automatically.
5
5
  ##
6
- ## Generated with GOBL v0.38.0
6
+ ## Generated with GOBL v0.39.0
7
7
  ##
8
8
 
9
9
  module GOBL
@@ -3,7 +3,7 @@
3
3
  ##
4
4
  ## DO NOT EDIT - This file was generated automatically.
5
5
  ##
6
- ## Generated with GOBL v0.38.0
6
+ ## Generated with GOBL v0.39.0
7
7
  ##
8
8
 
9
9
  module GOBL
@@ -33,7 +33,6 @@ module GOBL
33
33
  # The issue date of the previous document.
34
34
  # @return [GOBL::Cal::Date]
35
35
  property :issue_date, GOBL::Cal::Date
36
- validates_presence_of :issue_date
37
36
 
38
37
  # @!attribute [r] reason
39
38
  # Human readable description on why the preceding invoice is being replaced.
@@ -3,7 +3,7 @@
3
3
  ##
4
4
  ## DO NOT EDIT - This file was generated automatically.
5
5
  ##
6
- ## Generated with GOBL v0.38.0
6
+ ## Generated with GOBL v0.39.0
7
7
  ##
8
8
 
9
9
  module GOBL
@@ -3,7 +3,7 @@
3
3
  ##
4
4
  ## DO NOT EDIT - This file was generated automatically.
5
5
  ##
6
- ## Generated with GOBL v0.38.0
6
+ ## Generated with GOBL v0.39.0
7
7
  ##
8
8
 
9
9
  module GOBL
@@ -3,7 +3,7 @@
3
3
  ##
4
4
  ## DO NOT EDIT - This file was generated automatically.
5
5
  ##
6
- ## Generated with GOBL v0.38.0
6
+ ## Generated with GOBL v0.39.0
7
7
  ##
8
8
 
9
9
  module GOBL
@@ -3,7 +3,7 @@
3
3
  ##
4
4
  ## DO NOT EDIT - This file was generated automatically.
5
5
  ##
6
- ## Generated with GOBL v0.38.0
6
+ ## Generated with GOBL v0.39.0
7
7
  ##
8
8
 
9
9
  module GOBL
@@ -3,7 +3,7 @@
3
3
  ##
4
4
  ## DO NOT EDIT - This file was generated automatically.
5
5
  ##
6
- ## Generated with GOBL v0.38.0
6
+ ## Generated with GOBL v0.39.0
7
7
  ##
8
8
 
9
9
  module GOBL
@@ -3,7 +3,7 @@
3
3
  ##
4
4
  ## DO NOT EDIT - This file was generated automatically.
5
5
  ##
6
- ## Generated with GOBL v0.38.0
6
+ ## Generated with GOBL v0.39.0
7
7
  ##
8
8
 
9
9
  module GOBL
@@ -3,7 +3,7 @@
3
3
  ##
4
4
  ## DO NOT EDIT - This file was generated automatically.
5
5
  ##
6
- ## Generated with GOBL v0.38.0
6
+ ## Generated with GOBL v0.39.0
7
7
  ##
8
8
 
9
9
  module GOBL
@@ -3,7 +3,7 @@
3
3
  ##
4
4
  ## DO NOT EDIT - This file was generated automatically.
5
5
  ##
6
- ## Generated with GOBL v0.38.0
6
+ ## Generated with GOBL v0.39.0
7
7
  ##
8
8
 
9
9
  module GOBL
@@ -13,10 +13,40 @@ module GOBL
13
13
  # The Schema ID of the GOBL Note structure
14
14
  SCHEMA_ID = 'https://gobl.org/draft-0/cbc/note'
15
15
 
16
+ # Enumeration of possible values for {#key} with their corresponding descriptions
17
+ KEY_ENUM = {
18
+ 'goods' => 'Goods Description',
19
+ 'payment' => 'Terms of Payment',
20
+ 'legal' => 'Legal or regulatory information',
21
+ 'dangerous-goods' => 'Dangerous goods additional information',
22
+ 'ack' => 'Acknowledgement Description',
23
+ 'rate' => 'Rate additional information',
24
+ 'reason' => 'Reason',
25
+ 'dispute' => 'Dispute',
26
+ 'customer' => 'Customer remarks',
27
+ 'glossary' => 'Glossary',
28
+ 'customs' => 'Customs declaration information',
29
+ 'general' => 'General information',
30
+ 'handling' => 'Handling instructions',
31
+ 'packaging' => 'Packaging information',
32
+ 'loading' => 'Loading instructions',
33
+ 'price' => 'Price conditions',
34
+ 'priority' => 'Priority information',
35
+ 'regulatory' => 'Regulatory information',
36
+ 'safety' => 'Safety instructions',
37
+ 'ship-line' => 'Ship line',
38
+ 'supplier' => 'Supplier remarks',
39
+ 'transport' => 'Transportation information',
40
+ 'delivery' => 'Delivery information',
41
+ 'quarantine' => 'Quarantine information',
42
+ 'tax' => 'Tax declaration'
43
+ }.freeze
44
+
16
45
  # @!attribute [r] key
17
46
  # Key specifying subject of the text
18
47
  # @return [GOBL::CBC::Key]
19
48
  property :key, GOBL::CBC::Key
49
+ validates_inclusion_of :key, in: KEY_ENUM.keys, allow_blank: true
20
50
 
21
51
  # @!attribute [r] code
22
52
  # Code used for additional data that may be required to identify the note.
@@ -3,7 +3,7 @@
3
3
  ##
4
4
  ## DO NOT EDIT - This file was generated automatically.
5
5
  ##
6
- ## Generated with GOBL v0.38.0
6
+ ## Generated with GOBL v0.39.0
7
7
  ##
8
8
 
9
9
  module GOBL
@@ -3,7 +3,7 @@
3
3
  ##
4
4
  ## DO NOT EDIT - This file was generated automatically.
5
5
  ##
6
- ## Generated with GOBL v0.38.0
6
+ ## Generated with GOBL v0.39.0
7
7
  ##
8
8
 
9
9
  module GOBL
@@ -3,7 +3,7 @@
3
3
  ##
4
4
  ## DO NOT EDIT - This file was generated automatically.
5
5
  ##
6
- ## Generated with GOBL v0.38.0
6
+ ## Generated with GOBL v0.39.0
7
7
  ##
8
8
 
9
9
  module GOBL
@@ -3,12 +3,12 @@
3
3
  ##
4
4
  ## DO NOT EDIT - This file was generated automatically.
5
5
  ##
6
- ## Generated with GOBL v0.38.0
6
+ ## Generated with GOBL v0.39.0
7
7
  ##
8
8
 
9
9
  module GOBL
10
10
  # Contains the document payload to be included inside an Envelope.
11
- #
11
+ #
12
12
  # The document must contain a `$schema` property that identifies
13
13
  # the data's structure otherwise it will be rejected.
14
14
  class Document < GOBL::Map
@@ -3,7 +3,7 @@
3
3
  ##
4
4
  ## DO NOT EDIT - This file was generated automatically.
5
5
  ##
6
- ## Generated with GOBL v0.38.0
6
+ ## Generated with GOBL v0.39.0
7
7
  ##
8
8
 
9
9
  module GOBL
@@ -3,7 +3,7 @@
3
3
  ##
4
4
  ## DO NOT EDIT - This file was generated automatically.
5
5
  ##
6
- ## Generated with GOBL v0.38.0
6
+ ## Generated with GOBL v0.39.0
7
7
  ##
8
8
 
9
9
  module GOBL
@@ -3,7 +3,7 @@
3
3
  ##
4
4
  ## DO NOT EDIT - This file was generated automatically.
5
5
  ##
6
- ## Generated with GOBL v0.38.0
6
+ ## Generated with GOBL v0.39.0
7
7
  ##
8
8
 
9
9
  module GOBL
@@ -3,7 +3,7 @@
3
3
  ##
4
4
  ## DO NOT EDIT - This file was generated automatically.
5
5
  ##
6
- ## Generated with GOBL v0.38.0
6
+ ## Generated with GOBL v0.39.0
7
7
  ##
8
8
 
9
9
  module GOBL
@@ -3,7 +3,7 @@
3
3
  ##
4
4
  ## DO NOT EDIT - This file was generated automatically.
5
5
  ##
6
- ## Generated with GOBL v0.38.0
6
+ ## Generated with GOBL v0.39.0
7
7
  ##
8
8
 
9
9
  module GOBL
@@ -3,7 +3,7 @@
3
3
  ##
4
4
  ## DO NOT EDIT - This file was generated automatically.
5
5
  ##
6
- ## Generated with GOBL v0.38.0
6
+ ## Generated with GOBL v0.39.0
7
7
  ##
8
8
 
9
9
  module GOBL
@@ -3,7 +3,7 @@
3
3
  ##
4
4
  ## DO NOT EDIT - This file was generated automatically.
5
5
  ##
6
- ## Generated with GOBL v0.38.0
6
+ ## Generated with GOBL v0.39.0
7
7
  ##
8
8
 
9
9
  module GOBL
@@ -3,7 +3,7 @@
3
3
  ##
4
4
  ## DO NOT EDIT - This file was generated automatically.
5
5
  ##
6
- ## Generated with GOBL v0.38.0
6
+ ## Generated with GOBL v0.39.0
7
7
  ##
8
8
 
9
9
  module GOBL