gobl 0.20.0 → 0.21.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (104) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/data/regimes/at.json +155 -0
  4. data/data/regimes/be.json +164 -0
  5. data/data/regimes/ca.json +9 -0
  6. data/data/regimes/ch.json +153 -0
  7. data/data/regimes/co.json +80 -122
  8. data/data/regimes/de.json +2 -2
  9. data/data/regimes/es.json +71 -62
  10. data/data/regimes/fr.json +2 -2
  11. data/data/regimes/gb.json +8 -0
  12. data/data/regimes/gr.json +591 -0
  13. data/data/regimes/it.json +37 -22
  14. data/data/regimes/mx.json +15 -3
  15. data/data/regimes/nl.json +8 -0
  16. data/data/regimes/pl.json +65 -8
  17. data/data/regimes/pt.json +50 -39
  18. data/data/regimes/us.json +9 -0
  19. data/lib/generated/gobl/bill/charge.rb +6 -7
  20. data/lib/generated/gobl/bill/correction_options.rb +5 -1
  21. data/lib/generated/gobl/bill/delivery.rb +0 -1
  22. data/lib/generated/gobl/bill/discount.rb +5 -6
  23. data/lib/generated/gobl/bill/document_reference.rb +2 -3
  24. data/lib/generated/gobl/bill/invoice.rb +4 -5
  25. data/lib/generated/gobl/bill/line.rb +3 -4
  26. data/lib/generated/gobl/bill/line_charge.rb +0 -1
  27. data/lib/generated/gobl/bill/line_discount.rb +0 -1
  28. data/lib/generated/gobl/bill/ordering.rb +0 -1
  29. data/lib/generated/gobl/bill/outlay.rb +3 -4
  30. data/lib/generated/gobl/bill/payment.rb +0 -1
  31. data/lib/generated/gobl/bill/preceding.rb +4 -5
  32. data/lib/generated/gobl/bill/tax.rb +5 -1
  33. data/lib/generated/gobl/bill/totals.rb +0 -1
  34. data/lib/generated/gobl/cal/date.rb +0 -1
  35. data/lib/generated/gobl/cal/date_time.rb +0 -1
  36. data/lib/generated/gobl/cal/period.rb +0 -1
  37. data/lib/generated/gobl/cbc/code.rb +0 -1
  38. data/lib/generated/gobl/cbc/code_definition.rb +0 -1
  39. data/lib/generated/gobl/cbc/code_map.rb +0 -1
  40. data/lib/generated/gobl/cbc/key.rb +0 -1
  41. data/lib/generated/gobl/cbc/key_definition.rb +0 -1
  42. data/lib/generated/gobl/cbc/meta.rb +0 -1
  43. data/lib/generated/gobl/cbc/note.rb +0 -1
  44. data/lib/generated/gobl/currency/amount.rb +33 -0
  45. data/lib/generated/gobl/currency/code.rb +118 -105
  46. data/lib/generated/gobl/currency/exchange_rate.rb +17 -7
  47. data/lib/generated/gobl/dsig/digest.rb +0 -1
  48. data/lib/generated/gobl/dsig/signature.rb +0 -1
  49. data/lib/generated/gobl/envelope.rb +0 -1
  50. data/lib/generated/gobl/head/header.rb +2 -3
  51. data/lib/generated/gobl/head/stamp.rb +0 -1
  52. data/lib/generated/gobl/i18n/string.rb +0 -1
  53. data/lib/generated/gobl/l10n/code.rb +0 -1
  54. data/lib/generated/gobl/l10n/country_code.rb +0 -1
  55. data/lib/generated/gobl/note/message.rb +5 -1
  56. data/lib/generated/gobl/org/address.rb +3 -4
  57. data/lib/generated/gobl/org/coordinates.rb +0 -1
  58. data/lib/generated/gobl/org/email.rb +3 -4
  59. data/lib/generated/gobl/org/identity.rb +3 -4
  60. data/lib/generated/gobl/org/image.rb +3 -4
  61. data/lib/generated/gobl/org/inbox.rb +3 -4
  62. data/lib/generated/gobl/org/item.rb +8 -4
  63. data/lib/generated/gobl/org/name.rb +3 -4
  64. data/lib/generated/gobl/org/party.rb +8 -4
  65. data/lib/generated/gobl/org/person.rb +3 -4
  66. data/lib/generated/gobl/org/registration.rb +7 -3
  67. data/lib/generated/gobl/org/telephone.rb +3 -4
  68. data/lib/generated/gobl/org/unit.rb +0 -1
  69. data/lib/generated/gobl/org/website.rb +4 -5
  70. data/lib/generated/gobl/pay/advance.rb +3 -4
  71. data/lib/generated/gobl/pay/card.rb +0 -1
  72. data/lib/generated/gobl/pay/credit_transfer.rb +0 -1
  73. data/lib/generated/gobl/pay/direct_debit.rb +0 -1
  74. data/lib/generated/gobl/pay/due_date.rb +0 -1
  75. data/lib/generated/gobl/pay/instructions.rb +0 -1
  76. data/lib/generated/gobl/pay/online.rb +12 -8
  77. data/lib/generated/gobl/pay/terms.rb +0 -1
  78. data/lib/generated/gobl/regimes/mx/food_vouchers.rb +0 -1
  79. data/lib/generated/gobl/regimes/mx/food_vouchers_employee.rb +0 -1
  80. data/lib/generated/gobl/regimes/mx/food_vouchers_line.rb +0 -1
  81. data/lib/generated/gobl/regimes/mx/fuel_account_balance.rb +0 -1
  82. data/lib/generated/gobl/regimes/mx/fuel_account_item.rb +0 -1
  83. data/lib/generated/gobl/regimes/mx/fuel_account_line.rb +0 -2
  84. data/lib/generated/gobl/regimes/mx/fuel_account_tax.rb +11 -9
  85. data/lib/generated/gobl/schema/object.rb +0 -1
  86. data/lib/generated/gobl/tax/category.rb +1 -2
  87. data/lib/generated/gobl/tax/category_total.rb +0 -1
  88. data/lib/generated/gobl/tax/combo.rb +1 -2
  89. data/lib/generated/gobl/tax/correction_definition.rb +0 -1
  90. data/lib/generated/gobl/tax/extensions.rb +0 -1
  91. data/lib/generated/gobl/tax/identity.rb +10 -16
  92. data/lib/generated/gobl/tax/rate.rb +0 -1
  93. data/lib/generated/gobl/tax/rate_total.rb +1 -2
  94. data/lib/generated/gobl/tax/rate_total_surcharge.rb +0 -1
  95. data/lib/generated/gobl/tax/rate_value.rb +5 -1
  96. data/lib/generated/gobl/tax/regime.rb +15 -11
  97. data/lib/generated/gobl/tax/scenario.rb +0 -1
  98. data/lib/generated/gobl/tax/scenario_set.rb +0 -1
  99. data/lib/generated/gobl/tax/set.rb +0 -1
  100. data/lib/generated/gobl/tax/source.rb +0 -1
  101. data/lib/generated/gobl/tax/total.rb +0 -1
  102. data/lib/gobl/version.rb +1 -1
  103. metadata +7 -3
  104. data/lib/generated/gobl/uuid/uuid.rb +0 -17
data/data/regimes/mx.json CHANGED
@@ -61,6 +61,18 @@
61
61
  }
62
62
  ],
63
63
  "extensions": [
64
+ {
65
+ "key": "mx-cfdi-issue-place",
66
+ "name": {
67
+ "en": "Place of Issue",
68
+ "es": "Lugar de Expedición"
69
+ },
70
+ "desc": {
71
+ "en": "Post code of where the invoice was issued. In CFDI, this translates to the 'LugarExpedicion'.",
72
+ "es": "Código postal de donde se emitió la factura. En CFDI se traduce a 'LugarExpedicion'."
73
+ },
74
+ "pattern": "^[0-9]{5}$"
75
+ },
64
76
  {
65
77
  "key": "mx-cfdi-post-code",
66
78
  "name": {
@@ -68,8 +80,8 @@
68
80
  "es": "Código Postal"
69
81
  },
70
82
  "desc": {
71
- "en": "Post code of where the invoice was issued.\nIn CFDI, this translates to the 'LugarExpedicion' in the case of the supplier\nand 'DomicilioFiscalReceptor' for customers.\nExample value: '01000'.",
72
- "es": "Código postal de donde se emitió la factura.\nEn CFDI se traduce a 'LugarExpedicion' en el caso del emisor, y\n'DomicilioFiscalReceptor' para el receptor.\nValor de ejemplor: '01000'."
83
+ "en": "Post code of a supplier or customer to use instead of an address. Example: \"01000\".",
84
+ "es": "Código postal de un emisor o receptor para usar en lugar de una dirección. Ejemplo: \"01000\"."
73
85
  },
74
86
  "pattern": "^[0-9]{5}$"
75
87
  },
@@ -393,7 +405,7 @@
393
405
  ]
394
406
  }
395
407
  ],
396
- "payment_means": [
408
+ "payment_means_keys": [
397
409
  {
398
410
  "key": "cash",
399
411
  "name": {
data/data/regimes/nl.json CHANGED
@@ -77,6 +77,14 @@
77
77
  ]
78
78
  }
79
79
  ],
80
+ "corrections": [
81
+ {
82
+ "schema": "bill/invoice",
83
+ "types": [
84
+ "credit-note"
85
+ ]
86
+ }
87
+ ],
80
88
  "categories": [
81
89
  {
82
90
  "code": "VAT",
data/data/regimes/pl.json CHANGED
@@ -116,9 +116,51 @@
116
116
  }
117
117
  }
118
118
  ]
119
+ },
120
+ {
121
+ "key": "pl-ksef-effective-date",
122
+ "name": {
123
+ "en": "Effective date code.",
124
+ "pl": "Kod daty wejścia w życie."
125
+ },
126
+ "codes": [
127
+ {
128
+ "code": "1",
129
+ "name": {
130
+ "en": "Original",
131
+ "pl": "Pierwotna"
132
+ },
133
+ "desc": {
134
+ "en": "Effective according to date of the original invoice.",
135
+ "pl": "Faktura skutkująca w dacie ujęcia faktury pierwotnej."
136
+ }
137
+ },
138
+ {
139
+ "code": "2",
140
+ "name": {
141
+ "en": "Correction",
142
+ "pl": "Korygująca"
143
+ },
144
+ "desc": {
145
+ "en": "Effective according to date of correction.",
146
+ "pl": "Faktura skutkująca w dacie ujęcia faktury korygującej."
147
+ }
148
+ },
149
+ {
150
+ "code": "3",
151
+ "name": {
152
+ "en": "Other",
153
+ "pl": "Inna"
154
+ },
155
+ "desc": {
156
+ "en": "Correction has legal consequences in another date or the dates are different for different position on the invoice",
157
+ "pl": "Faktura skutkująca w innej dacie. W tym gdy dla różnych pozycji faktury korygującej data jest różna."
158
+ }
159
+ }
160
+ ]
119
161
  }
120
162
  ],
121
- "payment_means": [
163
+ "payment_means_keys": [
122
164
  {
123
165
  "key": "cash",
124
166
  "name": {
@@ -253,11 +295,11 @@
253
295
  },
254
296
  {
255
297
  "type": [
256
- "corrective"
298
+ "credit-note"
257
299
  ],
258
300
  "name": {
259
- "en": "Corrective Invoice",
260
- "pl": "Faktura Korygująca"
301
+ "en": "Credit note",
302
+ "pl": "Faktura korygująca"
261
303
  },
262
304
  "codes": {
263
305
  "favat-rodzaj-faktury": "KOR"
@@ -265,13 +307,13 @@
265
307
  },
266
308
  {
267
309
  "type": [
268
- "corrective"
310
+ "credit-note"
269
311
  ],
270
312
  "tags": [
271
313
  "partial"
272
314
  ],
273
315
  "name": {
274
- "en": "Corrective Prepayment Invoice",
316
+ "en": "Prepayment credit note",
275
317
  "pl": "Faktura korygująca fakturę zaliczkową"
276
318
  },
277
319
  "codes": {
@@ -280,13 +322,13 @@
280
322
  },
281
323
  {
282
324
  "type": [
283
- "corrective"
325
+ "credit-note"
284
326
  ],
285
327
  "tags": [
286
328
  "settlement"
287
329
  ],
288
330
  "name": {
289
- "en": "Corrective Settlement Invoice",
331
+ "en": "Settlement credit note",
290
332
  "pl": "Faktura korygująca fakturę rozliczeniową"
291
333
  },
292
334
  "codes": {
@@ -296,6 +338,21 @@
296
338
  ]
297
339
  }
298
340
  ],
341
+ "corrections": [
342
+ {
343
+ "schema": "bill/invoice",
344
+ "types": [
345
+ "credit-note"
346
+ ],
347
+ "extensions": [
348
+ "pl-ksef-effective-date"
349
+ ],
350
+ "reason_required": true,
351
+ "stamps": [
352
+ "ksef-id"
353
+ ]
354
+ }
355
+ ],
299
356
  "categories": [
300
357
  {
301
358
  "code": "VAT",
data/data/regimes/pt.json CHANGED
@@ -65,31 +65,39 @@
65
65
  "en": "Invoice-receipt",
66
66
  "pt": "Fatura-recibo"
67
67
  }
68
- },
68
+ }
69
+ ],
70
+ "extensions": [
69
71
  {
70
- "key": "azores",
72
+ "key": "pt-region",
71
73
  "name": {
72
- "en": "Azores",
73
- "pt": "Açores"
74
+ "en": "Region Code",
75
+ "pt": "Código da Região"
74
76
  },
75
- "desc": {
76
- "en": "Tag for use when the invoice is issued in the Azores region with special local rates.",
77
- "pt": "Tag para uso quando a fatura é emitida na região dos Açores com taxas locais especiais."
78
- }
77
+ "codes": [
78
+ {
79
+ "code": "PT",
80
+ "name": {
81
+ "en": "Mainland Portugal",
82
+ "pt": "Portugal Continental"
83
+ }
84
+ },
85
+ {
86
+ "code": "PT-AC",
87
+ "name": {
88
+ "en": "Azores",
89
+ "pt": "Açores"
90
+ }
91
+ },
92
+ {
93
+ "code": "PT-MA",
94
+ "name": {
95
+ "en": "Madeira",
96
+ "pt": "Madeira"
97
+ }
98
+ }
99
+ ]
79
100
  },
80
- {
81
- "key": "madeira",
82
- "name": {
83
- "en": "Madeira",
84
- "pt": "Madeira"
85
- },
86
- "desc": {
87
- "en": "Tag for use when the invoice is issued in the Madeira region with special local rates.",
88
- "pt": "Tag para uso quando a fatura é emitida na região da Madeira com taxas locais especiais."
89
- }
90
- }
91
- ],
92
- "extensions": [
93
101
  {
94
102
  "key": "pt-exemption-code",
95
103
  "name": {
@@ -381,16 +389,16 @@
381
389
  },
382
390
  "values": [
383
391
  {
384
- "tags": [
385
- "azores"
386
- ],
392
+ "ext": {
393
+ "pt-region": "PT-AC"
394
+ },
387
395
  "since": "2011-01-01",
388
396
  "percent": "16.0%"
389
397
  },
390
398
  {
391
- "tags": [
392
- "madeira"
393
- ],
399
+ "ext": {
400
+ "pt-region": "PT-MA"
401
+ },
394
402
  "since": "2011-01-01",
395
403
  "percent": "22.0%"
396
404
  },
@@ -411,16 +419,16 @@
411
419
  },
412
420
  "values": [
413
421
  {
414
- "tags": [
415
- "azores"
416
- ],
422
+ "ext": {
423
+ "pt-region": "PT-AC"
424
+ },
417
425
  "since": "2011-01-01",
418
426
  "percent": "9.0%"
419
427
  },
420
428
  {
421
- "tags": [
422
- "madeira"
423
- ],
429
+ "ext": {
430
+ "pt-region": "PT-MA"
431
+ },
424
432
  "since": "2011-01-01",
425
433
  "percent": "12.0%"
426
434
  },
@@ -441,16 +449,16 @@
441
449
  },
442
450
  "values": [
443
451
  {
444
- "tags": [
445
- "azores"
446
- ],
452
+ "ext": {
453
+ "pt-region": "PT-AC"
454
+ },
447
455
  "since": "2011-01-01",
448
456
  "percent": "4.0%"
449
457
  },
450
458
  {
451
- "tags": [
452
- "madeira"
453
- ],
459
+ "ext": {
460
+ "pt-region": "PT-MA"
461
+ },
454
462
  "since": "2011-01-01",
455
463
  "percent": "5.0%"
456
464
  },
@@ -477,6 +485,9 @@
477
485
  "at-tax-code": "ISE"
478
486
  }
479
487
  }
488
+ ],
489
+ "extensions": [
490
+ "pt-region"
480
491
  ]
481
492
  }
482
493
  ]
data/data/regimes/us.json CHANGED
@@ -59,6 +59,15 @@
59
59
  }
60
60
  }
61
61
  ],
62
+ "corrections": [
63
+ {
64
+ "schema": "bill/invoice",
65
+ "types": [
66
+ "credit-note",
67
+ "debit-note"
68
+ ]
69
+ }
70
+ ],
62
71
  "categories": [
63
72
  {
64
73
  "code": "ST",
@@ -3,7 +3,6 @@
3
3
  ##
4
4
  ## DO NOT EDIT - This file was generated automatically.
5
5
  ##
6
- ## Generated with GOBL v0.69.0
7
6
  ##
8
7
 
9
8
  module GOBL
@@ -14,9 +13,9 @@ module GOBL
14
13
  SCHEMA_ID = 'https://gobl.org/draft-0/bill/invoice#/$defs/Charge'
15
14
 
16
15
  # @!attribute [r] uuid
17
- # Unique identifying for the discount entry
18
- # @return [GOBL::UUID::UUID]
19
- property :uuid, GOBL::UUID::UUID
16
+ # Universally Unique Identifier.
17
+ # @return [String]
18
+ property :uuid, String
20
19
 
21
20
  # @!attribute [r] key
22
21
  # Key for grouping or identifying charges for tax purposes.
@@ -24,7 +23,7 @@ module GOBL
24
23
  property :key, GOBL::CBC::Key
25
24
 
26
25
  # @!attribute [r] i
27
- # Line number inside the list of discounts (calculated).
26
+ # Line number inside the list of charges (calculated).
28
27
  # @return [Integer]
29
28
  property :i, Integer
30
29
 
@@ -34,12 +33,12 @@ module GOBL
34
33
  property :ref, String
35
34
 
36
35
  # @!attribute [r] base
37
- # Base represents the value used as a base for percent calculations. If not already provided, we'll take the invoices sum before discounts.
36
+ # Base represents the value used as a base for percent calculations instead of the invoice's sum of lines.
38
37
  # @return [GOBL::Num::Amount]
39
38
  property :base, GOBL::Num::Amount
40
39
 
41
40
  # @!attribute [r] percent
42
- # Percentage to apply to the invoice's Sum
41
+ # Percentage to apply to the Base or Invoice Sum
43
42
  # @return [GOBL::Num::Percentage]
44
43
  property :percent, GOBL::Num::Percentage
45
44
 
@@ -3,7 +3,6 @@
3
3
  ##
4
4
  ## DO NOT EDIT - This file was generated automatically.
5
5
  ##
6
- ## Generated with GOBL v0.69.0
7
6
  ##
8
7
 
9
8
  module GOBL
@@ -24,6 +23,11 @@ module GOBL
24
23
  # @return [GOBL::Cal::Date]
25
24
  property :issue_date, GOBL::Cal::Date
26
25
 
26
+ # @!attribute [r] series
27
+ # Series to assign to the new corrective invoice.
28
+ # @return [String]
29
+ property :series, String
30
+
27
31
  # @!attribute [r] stamps
28
32
  # Stamps of the previous document to include in the preceding data.
29
33
  # @return [Array<GOBL::Head::Stamp>]
@@ -3,7 +3,6 @@
3
3
  ##
4
4
  ## DO NOT EDIT - This file was generated automatically.
5
5
  ##
6
- ## Generated with GOBL v0.69.0
7
6
  ##
8
7
 
9
8
  module GOBL
@@ -3,7 +3,6 @@
3
3
  ##
4
4
  ## DO NOT EDIT - This file was generated automatically.
5
5
  ##
6
- ## Generated with GOBL v0.69.0
7
6
  ##
8
7
 
9
8
  module GOBL
@@ -14,9 +13,9 @@ module GOBL
14
13
  SCHEMA_ID = 'https://gobl.org/draft-0/bill/invoice#/$defs/Discount'
15
14
 
16
15
  # @!attribute [r] uuid
17
- # Unique identifying for the discount entry
18
- # @return [GOBL::UUID::UUID]
19
- property :uuid, GOBL::UUID::UUID
16
+ # Universally Unique Identifier.
17
+ # @return [String]
18
+ property :uuid, String
20
19
 
21
20
  # @!attribute [r] i
22
21
  # Line number inside the list of discounts (calculated)
@@ -29,12 +28,12 @@ module GOBL
29
28
  property :ref, String
30
29
 
31
30
  # @!attribute [r] base
32
- # Base represents the value used as a base for percent calculations. If not already provided, we'll take the invoices sum.
31
+ # Base represents the value used as a base for percent calculations instead of the invoice's sum of lines.
33
32
  # @return [GOBL::Num::Amount]
34
33
  property :base, GOBL::Num::Amount
35
34
 
36
35
  # @!attribute [r] percent
37
- # Percentage to apply to the invoice's Sum.
36
+ # Percentage to apply to the base or invoice's sum.
38
37
  # @return [GOBL::Num::Percentage]
39
38
  property :percent, GOBL::Num::Percentage
40
39
 
@@ -3,7 +3,6 @@
3
3
  ##
4
4
  ## DO NOT EDIT - This file was generated automatically.
5
5
  ##
6
- ## Generated with GOBL v0.69.0
7
6
  ##
8
7
 
9
8
  module GOBL
@@ -15,8 +14,8 @@ module GOBL
15
14
 
16
15
  # @!attribute [r] uuid
17
16
  # Unique ID copied from the source document.
18
- # @return [GOBL::UUID::UUID]
19
- property :uuid, GOBL::UUID::UUID
17
+ # @return [String]
18
+ property :uuid, String
20
19
 
21
20
  # @!attribute [r] series
22
21
  # Series the reference document belongs to.
@@ -3,7 +3,6 @@
3
3
  ##
4
4
  ## DO NOT EDIT - This file was generated automatically.
5
5
  ##
6
- ## Generated with GOBL v0.69.0
7
6
  ##
8
7
 
9
8
  module GOBL
@@ -14,16 +13,16 @@ module GOBL
14
13
  SCHEMA_ID = 'https://gobl.org/draft-0/bill/invoice'
15
14
 
16
15
  # @!attribute [r] uuid
17
- # Unique document ID. Not required, but always recommended in addition to the Code.
18
- # @return [GOBL::UUID::UUID]
19
- property :uuid, GOBL::UUID::UUID
16
+ # Universally Unique Identifier.
17
+ # @return [String]
18
+ property :uuid, String
20
19
 
21
20
  # Enumeration of possible values for {#type} with their corresponding descriptions
22
21
  TYPE_ENUM = {
23
22
  'standard' => 'A regular commercial invoice document between a supplier and customer.',
24
23
  'proforma' => 'For a clients validation before sending a final invoice.',
25
24
  'corrective' => 'Corrected invoice that completely *replaces* the preceding document.',
26
- 'credit-note' => 'Reflects a refund either partial or complete of the preceding document. A
25
+ 'credit-note' => 'Reflects a refund either partial or complete of the preceding document. A
27
26
  credit note effectively *extends* the previous document.',
28
27
  'debit-note' => 'An additional set of charges to be added to the preceding document.'
29
28
  }.freeze
@@ -3,7 +3,6 @@
3
3
  ##
4
4
  ## DO NOT EDIT - This file was generated automatically.
5
5
  ##
6
- ## Generated with GOBL v0.69.0
7
6
  ##
8
7
 
9
8
  module GOBL
@@ -14,9 +13,9 @@ module GOBL
14
13
  SCHEMA_ID = 'https://gobl.org/draft-0/bill/invoice#/$defs/Line'
15
14
 
16
15
  # @!attribute [r] uuid
17
- # Unique identifier for this line
18
- # @return [GOBL::UUID::UUID]
19
- property :uuid, GOBL::UUID::UUID
16
+ # Universally Unique Identifier.
17
+ # @return [String]
18
+ property :uuid, String
20
19
 
21
20
  # @!attribute [r] i
22
21
  # Line number inside the parent (calculated)
@@ -3,7 +3,6 @@
3
3
  ##
4
4
  ## DO NOT EDIT - This file was generated automatically.
5
5
  ##
6
- ## Generated with GOBL v0.69.0
7
6
  ##
8
7
 
9
8
  module GOBL
@@ -3,7 +3,6 @@
3
3
  ##
4
4
  ## DO NOT EDIT - This file was generated automatically.
5
5
  ##
6
- ## Generated with GOBL v0.69.0
7
6
  ##
8
7
 
9
8
  module GOBL
@@ -3,7 +3,6 @@
3
3
  ##
4
4
  ## DO NOT EDIT - This file was generated automatically.
5
5
  ##
6
- ## Generated with GOBL v0.69.0
7
6
  ##
8
7
 
9
8
  module GOBL
@@ -3,7 +3,6 @@
3
3
  ##
4
4
  ## DO NOT EDIT - This file was generated automatically.
5
5
  ##
6
- ## Generated with GOBL v0.69.0
7
6
  ##
8
7
 
9
8
  module GOBL
@@ -14,9 +13,9 @@ module GOBL
14
13
  SCHEMA_ID = 'https://gobl.org/draft-0/bill/invoice#/$defs/Outlay'
15
14
 
16
15
  # @!attribute [r] uuid
17
- # Unique identity for this outlay.
18
- # @return [GOBL::UUID::UUID]
19
- property :uuid, GOBL::UUID::UUID
16
+ # Universally Unique Identifier.
17
+ # @return [String]
18
+ property :uuid, String
20
19
 
21
20
  # @!attribute [r] i
22
21
  # Outlay number index inside the invoice for ordering (calculated).
@@ -3,7 +3,6 @@
3
3
  ##
4
4
  ## DO NOT EDIT - This file was generated automatically.
5
5
  ##
6
- ## Generated with GOBL v0.69.0
7
6
  ##
8
7
 
9
8
  module GOBL
@@ -3,7 +3,6 @@
3
3
  ##
4
4
  ## DO NOT EDIT - This file was generated automatically.
5
5
  ##
6
- ## Generated with GOBL v0.69.0
7
6
  ##
8
7
 
9
8
  module GOBL
@@ -14,16 +13,16 @@ module GOBL
14
13
  SCHEMA_ID = 'https://gobl.org/draft-0/bill/invoice#/$defs/Preceding'
15
14
 
16
15
  # @!attribute [r] uuid
17
- # Preceding document's UUID if available can be useful for tracing.
18
- # @return [GOBL::UUID::UUID]
19
- property :uuid, GOBL::UUID::UUID
16
+ # Preceding document's UUID.
17
+ # @return [String]
18
+ property :uuid, String
20
19
 
21
20
  # Enumeration of possible values for {#type} with their corresponding descriptions
22
21
  TYPE_ENUM = {
23
22
  'standard' => 'A regular commercial invoice document between a supplier and customer.',
24
23
  'proforma' => 'For a clients validation before sending a final invoice.',
25
24
  'corrective' => 'Corrected invoice that completely *replaces* the preceding document.',
26
- 'credit-note' => 'Reflects a refund either partial or complete of the preceding document. A
25
+ 'credit-note' => 'Reflects a refund either partial or complete of the preceding document. A
27
26
  credit note effectively *extends* the previous document.',
28
27
  'debit-note' => 'An additional set of charges to be added to the preceding document.'
29
28
  }.freeze
@@ -3,7 +3,6 @@
3
3
  ##
4
4
  ## DO NOT EDIT - This file was generated automatically.
5
5
  ##
6
- ## Generated with GOBL v0.69.0
7
6
  ##
8
7
 
9
8
  module GOBL
@@ -23,6 +22,11 @@ module GOBL
23
22
  # @return [Array<GOBL::CBC::Key>]
24
23
  property :tags, [GOBL::CBC::Key]
25
24
 
25
+ # @!attribute [r] ext
26
+ # Additional extensions that are applied to the invoice as a whole as opposed to specific sections.
27
+ # @return [GOBL::Tax::Extensions]
28
+ property :ext, GOBL::Tax::Extensions
29
+
26
30
  # @!attribute [r] meta
27
31
  # Any additional data that may be required for processing, but should never be relied upon by recipients.
28
32
  # @return [GOBL::CBC::Meta]
@@ -3,7 +3,6 @@
3
3
  ##
4
4
  ## DO NOT EDIT - This file was generated automatically.
5
5
  ##
6
- ## Generated with GOBL v0.69.0
7
6
  ##
8
7
 
9
8
  module GOBL
@@ -3,7 +3,6 @@
3
3
  ##
4
4
  ## DO NOT EDIT - This file was generated automatically.
5
5
  ##
6
- ## Generated with GOBL v0.69.0
7
6
  ##
8
7
 
9
8
  module GOBL
@@ -3,7 +3,6 @@
3
3
  ##
4
4
  ## DO NOT EDIT - This file was generated automatically.
5
5
  ##
6
- ## Generated with GOBL v0.69.0
7
6
  ##
8
7
 
9
8
  module GOBL
@@ -3,7 +3,6 @@
3
3
  ##
4
4
  ## DO NOT EDIT - This file was generated automatically.
5
5
  ##
6
- ## Generated with GOBL v0.69.0
7
6
  ##
8
7
 
9
8
  module GOBL
@@ -3,7 +3,6 @@
3
3
  ##
4
4
  ## DO NOT EDIT - This file was generated automatically.
5
5
  ##
6
- ## Generated with GOBL v0.69.0
7
6
  ##
8
7
 
9
8
  module GOBL
@@ -3,7 +3,6 @@
3
3
  ##
4
4
  ## DO NOT EDIT - This file was generated automatically.
5
5
  ##
6
- ## Generated with GOBL v0.69.0
7
6
  ##
8
7
 
9
8
  module GOBL