gobl 0.20.0 → 0.21.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/data/regimes/at.json +155 -0
- data/data/regimes/be.json +164 -0
- data/data/regimes/ca.json +9 -0
- data/data/regimes/ch.json +153 -0
- data/data/regimes/co.json +80 -122
- data/data/regimes/de.json +2 -2
- data/data/regimes/es.json +71 -62
- data/data/regimes/fr.json +2 -2
- data/data/regimes/gb.json +8 -0
- data/data/regimes/gr.json +591 -0
- data/data/regimes/it.json +37 -22
- data/data/regimes/mx.json +15 -3
- data/data/regimes/nl.json +8 -0
- data/data/regimes/pl.json +65 -8
- data/data/regimes/pt.json +50 -39
- data/data/regimes/us.json +9 -0
- data/lib/generated/gobl/bill/charge.rb +6 -7
- data/lib/generated/gobl/bill/correction_options.rb +5 -1
- data/lib/generated/gobl/bill/delivery.rb +0 -1
- data/lib/generated/gobl/bill/discount.rb +5 -6
- data/lib/generated/gobl/bill/document_reference.rb +2 -3
- data/lib/generated/gobl/bill/invoice.rb +4 -5
- data/lib/generated/gobl/bill/line.rb +3 -4
- data/lib/generated/gobl/bill/line_charge.rb +0 -1
- data/lib/generated/gobl/bill/line_discount.rb +0 -1
- data/lib/generated/gobl/bill/ordering.rb +0 -1
- data/lib/generated/gobl/bill/outlay.rb +3 -4
- data/lib/generated/gobl/bill/payment.rb +0 -1
- data/lib/generated/gobl/bill/preceding.rb +4 -5
- data/lib/generated/gobl/bill/tax.rb +5 -1
- data/lib/generated/gobl/bill/totals.rb +0 -1
- data/lib/generated/gobl/cal/date.rb +0 -1
- data/lib/generated/gobl/cal/date_time.rb +0 -1
- data/lib/generated/gobl/cal/period.rb +0 -1
- data/lib/generated/gobl/cbc/code.rb +0 -1
- data/lib/generated/gobl/cbc/code_definition.rb +0 -1
- data/lib/generated/gobl/cbc/code_map.rb +0 -1
- data/lib/generated/gobl/cbc/key.rb +0 -1
- data/lib/generated/gobl/cbc/key_definition.rb +0 -1
- data/lib/generated/gobl/cbc/meta.rb +0 -1
- data/lib/generated/gobl/cbc/note.rb +0 -1
- data/lib/generated/gobl/currency/amount.rb +33 -0
- data/lib/generated/gobl/currency/code.rb +118 -105
- data/lib/generated/gobl/currency/exchange_rate.rb +17 -7
- data/lib/generated/gobl/dsig/digest.rb +0 -1
- data/lib/generated/gobl/dsig/signature.rb +0 -1
- data/lib/generated/gobl/envelope.rb +0 -1
- data/lib/generated/gobl/head/header.rb +2 -3
- data/lib/generated/gobl/head/stamp.rb +0 -1
- data/lib/generated/gobl/i18n/string.rb +0 -1
- data/lib/generated/gobl/l10n/code.rb +0 -1
- data/lib/generated/gobl/l10n/country_code.rb +0 -1
- data/lib/generated/gobl/note/message.rb +5 -1
- data/lib/generated/gobl/org/address.rb +3 -4
- data/lib/generated/gobl/org/coordinates.rb +0 -1
- data/lib/generated/gobl/org/email.rb +3 -4
- data/lib/generated/gobl/org/identity.rb +3 -4
- data/lib/generated/gobl/org/image.rb +3 -4
- data/lib/generated/gobl/org/inbox.rb +3 -4
- data/lib/generated/gobl/org/item.rb +8 -4
- data/lib/generated/gobl/org/name.rb +3 -4
- data/lib/generated/gobl/org/party.rb +8 -4
- data/lib/generated/gobl/org/person.rb +3 -4
- data/lib/generated/gobl/org/registration.rb +7 -3
- data/lib/generated/gobl/org/telephone.rb +3 -4
- data/lib/generated/gobl/org/unit.rb +0 -1
- data/lib/generated/gobl/org/website.rb +4 -5
- data/lib/generated/gobl/pay/advance.rb +3 -4
- data/lib/generated/gobl/pay/card.rb +0 -1
- data/lib/generated/gobl/pay/credit_transfer.rb +0 -1
- data/lib/generated/gobl/pay/direct_debit.rb +0 -1
- data/lib/generated/gobl/pay/due_date.rb +0 -1
- data/lib/generated/gobl/pay/instructions.rb +0 -1
- data/lib/generated/gobl/pay/online.rb +12 -8
- data/lib/generated/gobl/pay/terms.rb +0 -1
- data/lib/generated/gobl/regimes/mx/food_vouchers.rb +0 -1
- data/lib/generated/gobl/regimes/mx/food_vouchers_employee.rb +0 -1
- data/lib/generated/gobl/regimes/mx/food_vouchers_line.rb +0 -1
- data/lib/generated/gobl/regimes/mx/fuel_account_balance.rb +0 -1
- data/lib/generated/gobl/regimes/mx/fuel_account_item.rb +0 -1
- data/lib/generated/gobl/regimes/mx/fuel_account_line.rb +0 -2
- data/lib/generated/gobl/regimes/mx/fuel_account_tax.rb +11 -9
- data/lib/generated/gobl/schema/object.rb +0 -1
- data/lib/generated/gobl/tax/category.rb +1 -2
- data/lib/generated/gobl/tax/category_total.rb +0 -1
- data/lib/generated/gobl/tax/combo.rb +1 -2
- data/lib/generated/gobl/tax/correction_definition.rb +0 -1
- data/lib/generated/gobl/tax/extensions.rb +0 -1
- data/lib/generated/gobl/tax/identity.rb +10 -16
- data/lib/generated/gobl/tax/rate.rb +0 -1
- data/lib/generated/gobl/tax/rate_total.rb +1 -2
- data/lib/generated/gobl/tax/rate_total_surcharge.rb +0 -1
- data/lib/generated/gobl/tax/rate_value.rb +5 -1
- data/lib/generated/gobl/tax/regime.rb +15 -11
- data/lib/generated/gobl/tax/scenario.rb +0 -1
- data/lib/generated/gobl/tax/scenario_set.rb +0 -1
- data/lib/generated/gobl/tax/set.rb +0 -1
- data/lib/generated/gobl/tax/source.rb +0 -1
- data/lib/generated/gobl/tax/total.rb +0 -1
- data/lib/gobl/version.rb +1 -1
- metadata +7 -3
- 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
|
72
|
-
"es": "Código postal de
|
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
|
-
"
|
408
|
+
"payment_means_keys": [
|
397
409
|
{
|
398
410
|
"key": "cash",
|
399
411
|
"name": {
|
data/data/regimes/nl.json
CHANGED
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
|
-
"
|
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
|
-
"
|
298
|
+
"credit-note"
|
257
299
|
],
|
258
300
|
"name": {
|
259
|
-
"en": "
|
260
|
-
"pl": "Faktura
|
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
|
-
"
|
310
|
+
"credit-note"
|
269
311
|
],
|
270
312
|
"tags": [
|
271
313
|
"partial"
|
272
314
|
],
|
273
315
|
"name": {
|
274
|
-
"en": "
|
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
|
-
"
|
325
|
+
"credit-note"
|
284
326
|
],
|
285
327
|
"tags": [
|
286
328
|
"settlement"
|
287
329
|
],
|
288
330
|
"name": {
|
289
|
-
"en": "
|
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": "
|
72
|
+
"key": "pt-region",
|
71
73
|
"name": {
|
72
|
-
"en": "
|
73
|
-
"pt": "
|
74
|
+
"en": "Region Code",
|
75
|
+
"pt": "Código da Região"
|
74
76
|
},
|
75
|
-
"
|
76
|
-
|
77
|
-
|
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
|
-
"
|
385
|
-
"
|
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
|
-
"
|
392
|
-
"
|
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
|
-
"
|
415
|
-
"
|
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
|
-
"
|
422
|
-
"
|
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
|
-
"
|
445
|
-
"
|
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
|
-
"
|
452
|
-
"
|
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
@@ -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
|
18
|
-
# @return [
|
19
|
-
property :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
|
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
|
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
|
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
|
@@ -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
|
18
|
-
# @return [
|
19
|
-
property :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
|
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
|
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 [
|
19
|
-
property :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
|
18
|
-
# @return [
|
19
|
-
property :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
|
18
|
-
# @return [
|
19
|
-
property :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
|
@@ -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
|
18
|
-
# @return [
|
19
|
-
property :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
|
@@ -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
|
18
|
-
# @return [
|
19
|
-
property :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]
|