gobl 0.24.1 → 0.24.3
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.
- checksums.yaml +4 -4
- data/data/addons/br-nfe-v4.json +481 -0
- data/data/addons/br-nfse-v1.json +235 -0
- data/data/addons/co-dian-v2.json +311 -0
- data/data/addons/de-xrechnung-v3.json +16 -0
- data/data/addons/de-zugferd-v2.json +16 -0
- data/data/addons/es-facturae-v3.json +359 -0
- data/data/addons/es-tbai-v1.json +225 -0
- data/data/addons/es-verifactu-v1.json +609 -0
- data/data/addons/eu-en16931-v2017.json +92 -0
- data/data/addons/fr-choruspro-v1.json +260 -0
- data/data/addons/fr-facturx-v1.json +16 -0
- data/data/addons/gr-mydata-v1.json +1495 -0
- data/data/addons/it-sdi-v1.json +1570 -0
- data/data/addons/it-ticket-v1.json +144 -0
- data/data/addons/mx-cfdi-v4.json +908 -0
- data/data/addons/pl-favat-v2.json +235 -0
- data/data/addons/pt-saft-v1.json +950 -0
- data/data/catalogues/cef.json +374 -0
- data/data/catalogues/iso.json +19 -0
- data/data/catalogues/untdid.json +10669 -0
- data/data/currency/iso.json +2378 -0
- data/data/currency/non-iso.json +128 -0
- data/data/schemas/bill/charge.json +125 -0
- data/data/schemas/bill/correction-options.json +54 -0
- data/data/schemas/bill/delivery-details.json +41 -0
- data/data/schemas/bill/delivery.json +412 -0
- data/data/schemas/bill/discount.json +137 -0
- data/data/schemas/bill/invoice.json +423 -0
- data/data/schemas/bill/line.json +433 -0
- data/data/schemas/bill/order.json +401 -0
- data/data/schemas/bill/ordering.json +107 -0
- data/data/schemas/bill/payment-details.json +36 -0
- data/data/schemas/bill/payment.json +424 -0
- data/data/schemas/bill/tax.json +45 -0
- data/data/schemas/bill/totals.json +84 -0
- data/data/schemas/cal/date-time.json +13 -0
- data/data/schemas/cal/date.json +13 -0
- data/data/schemas/cal/period.json +32 -0
- data/data/schemas/cal/time.json +13 -0
- data/data/schemas/cbc/code-map.json +16 -0
- data/data/schemas/cbc/code.json +15 -0
- data/data/schemas/cbc/definition.json +67 -0
- data/data/schemas/cbc/key.json +15 -0
- data/data/schemas/cbc/meta.json +16 -0
- data/data/schemas/cbc/source.json +37 -0
- data/data/schemas/currency/amount.json +32 -0
- data/data/schemas/currency/code.json +734 -0
- data/data/schemas/currency/exchange-rate.json +43 -0
- data/data/schemas/dsig/digest.json +27 -0
- data/data/schemas/dsig/signature.json +12 -0
- data/data/schemas/envelope.json +41 -0
- data/data/schemas/head/header.json +62 -0
- data/data/schemas/head/link.json +42 -0
- data/data/schemas/head/stamp.json +27 -0
- data/data/schemas/i18n/string.json +18 -0
- data/data/schemas/l10n/code.json +13 -0
- data/data/schemas/l10n/iso-country-code.json +1010 -0
- data/data/schemas/l10n/tax-country-code.json +1022 -0
- data/data/schemas/note/message.json +43 -0
- data/data/schemas/num/amount.json +13 -0
- data/data/schemas/num/percentage.json +13 -0
- data/data/schemas/org/address.json +105 -0
- data/data/schemas/org/attachment.json +58 -0
- data/data/schemas/org/coordinates.json +33 -0
- data/data/schemas/org/document-ref.json +117 -0
- data/data/schemas/org/email.json +37 -0
- data/data/schemas/org/identity.json +57 -0
- data/data/schemas/org/image.json +70 -0
- data/data/schemas/org/inbox.json +49 -0
- data/data/schemas/org/item.json +96 -0
- data/data/schemas/org/name.json +59 -0
- data/data/schemas/org/note.json +184 -0
- data/data/schemas/org/party.json +129 -0
- data/data/schemas/org/person.json +90 -0
- data/data/schemas/org/registration.json +66 -0
- data/data/schemas/org/telephone.json +32 -0
- data/data/schemas/org/unit.json +350 -0
- data/data/schemas/org/website.json +38 -0
- data/data/schemas/pay/advance.json +211 -0
- data/data/schemas/pay/instructions.json +245 -0
- data/data/schemas/pay/terms.json +128 -0
- data/data/schemas/regimes/mx/food-vouchers.json +111 -0
- data/data/schemas/regimes/mx/fuel-account-balance.json +179 -0
- data/data/schemas/schema/object.json +12 -0
- data/data/schemas/tax/addon-def.json +288 -0
- data/data/schemas/tax/catalogue-def.json +37 -0
- data/data/schemas/tax/extensions.json +16 -0
- data/data/schemas/tax/identity.json +45 -0
- data/data/schemas/tax/regime-def.json +513 -0
- data/data/schemas/tax/set.json +139 -0
- data/data/schemas/tax/total.json +135 -0
- data/lib/gobl/extensions/tax/addon_helper.rb +37 -0
- data/lib/gobl/version.rb +1 -1
- data/lib/gobl.rb +1 -0
- metadata +93 -1
|
@@ -0,0 +1,423 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://gobl.org/draft-0/bill/invoice",
|
|
4
|
+
"$ref": "#/$defs/Invoice",
|
|
5
|
+
"$defs": {
|
|
6
|
+
"Invoice": {
|
|
7
|
+
"properties": {
|
|
8
|
+
"$regime": {
|
|
9
|
+
"$ref": "https://gobl.org/draft-0/l10n/tax-country-code",
|
|
10
|
+
"oneOf": [
|
|
11
|
+
{
|
|
12
|
+
"const": "AE",
|
|
13
|
+
"title": "United Arab Emirates"
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"const": "AT",
|
|
17
|
+
"title": "Austria"
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"const": "BE",
|
|
21
|
+
"title": "Belgium"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"const": "BR",
|
|
25
|
+
"title": "Brazil"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"const": "CA",
|
|
29
|
+
"title": "Canada"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"const": "CH",
|
|
33
|
+
"title": "Switzerland"
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"const": "CO",
|
|
37
|
+
"title": "Colombia"
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"const": "DE",
|
|
41
|
+
"title": "Germany"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"const": "EL",
|
|
45
|
+
"title": "Greece"
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"const": "ES",
|
|
49
|
+
"title": "Spain"
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"const": "FR",
|
|
53
|
+
"title": "France"
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"const": "GB",
|
|
57
|
+
"title": "United Kingdom"
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"const": "IE",
|
|
61
|
+
"title": "Ireland"
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"const": "IN",
|
|
65
|
+
"title": "India"
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"const": "IT",
|
|
69
|
+
"title": "Italy"
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"const": "MX",
|
|
73
|
+
"title": "Mexico"
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
"const": "NL",
|
|
77
|
+
"title": "The Netherlands"
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
"const": "PL",
|
|
81
|
+
"title": "Poland"
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
"const": "PT",
|
|
85
|
+
"title": "Portugal"
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"const": "SE",
|
|
89
|
+
"title": "Sweden"
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
"const": "SG",
|
|
93
|
+
"title": "Singapore"
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
"const": "US",
|
|
97
|
+
"title": "United States of America"
|
|
98
|
+
}
|
|
99
|
+
],
|
|
100
|
+
"title": "Tax Regime"
|
|
101
|
+
},
|
|
102
|
+
"$addons": {
|
|
103
|
+
"items": {
|
|
104
|
+
"$ref": "https://gobl.org/draft-0/cbc/key",
|
|
105
|
+
"oneOf": [
|
|
106
|
+
{
|
|
107
|
+
"const": "br-nfe-v4",
|
|
108
|
+
"title": "Brazil NF-e 4.00"
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
"const": "br-nfse-v1",
|
|
112
|
+
"title": "Brazil NFS-e 1.X"
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
"const": "co-dian-v2",
|
|
116
|
+
"title": "Colombia DIAN UBL 2.X"
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
"const": "de-xrechnung-v3",
|
|
120
|
+
"title": "German XRechnung 3.X"
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
"const": "de-zugferd-v2",
|
|
124
|
+
"title": "German ZUGFeRD 2.X"
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
"const": "es-facturae-v3",
|
|
128
|
+
"title": "Spain FacturaE"
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
"const": "es-tbai-v1",
|
|
132
|
+
"title": "Spain TicketBAI"
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
"const": "es-verifactu-v1",
|
|
136
|
+
"title": "Spain VERI*FACTU V1"
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
"const": "eu-en16931-v2017",
|
|
140
|
+
"title": "EN 16931-1:2017"
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
"const": "fr-choruspro-v1",
|
|
144
|
+
"title": "Chorus Pro"
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
"const": "fr-facturx-v1",
|
|
148
|
+
"title": "French Factur-X v1"
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
"const": "gr-mydata-v1",
|
|
152
|
+
"title": "Greece MyData v1.x"
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
"const": "it-sdi-v1",
|
|
156
|
+
"title": "Italy SDI FatturaPA v1.x"
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
"const": "it-ticket-v1",
|
|
160
|
+
"title": "Italy AdE ticket v1.x"
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
"const": "mx-cfdi-v4",
|
|
164
|
+
"title": "Mexican SAT CFDI v4.X"
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
"const": "pl-favat-v2",
|
|
168
|
+
"title": "Polish KSeF FA_VAT v2.x"
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
"const": "pt-saft-v1",
|
|
172
|
+
"title": "Portugal SAF-T"
|
|
173
|
+
}
|
|
174
|
+
]
|
|
175
|
+
},
|
|
176
|
+
"type": "array",
|
|
177
|
+
"title": "Addons",
|
|
178
|
+
"description": "Addons defines a list of keys used to identify tax addons that apply special\nnormalization, scenarios, and validation rules to a document."
|
|
179
|
+
},
|
|
180
|
+
"$tags": {
|
|
181
|
+
"items": {
|
|
182
|
+
"$ref": "https://gobl.org/draft-0/cbc/key",
|
|
183
|
+
"anyOf": [
|
|
184
|
+
{
|
|
185
|
+
"const": "simplified",
|
|
186
|
+
"title": "Simplified Invoice"
|
|
187
|
+
},
|
|
188
|
+
{
|
|
189
|
+
"const": "reverse-charge",
|
|
190
|
+
"title": "Reverse Charge"
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
"const": "self-billed",
|
|
194
|
+
"title": "Self-billed"
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
"const": "customer-rates",
|
|
198
|
+
"title": "Customer rates"
|
|
199
|
+
},
|
|
200
|
+
{
|
|
201
|
+
"const": "partial",
|
|
202
|
+
"title": "Partial"
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
"const": "bypass",
|
|
206
|
+
"title": "Bypass"
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
"pattern": "^(?:[a-z]|[a-z0-9][a-z0-9-+]*[a-z0-9])$",
|
|
210
|
+
"title": "Any"
|
|
211
|
+
}
|
|
212
|
+
]
|
|
213
|
+
},
|
|
214
|
+
"type": "array",
|
|
215
|
+
"title": "Tags",
|
|
216
|
+
"description": "Tags are used to help identify specific tax scenarios or requirements that may\napply changes to the contents of the document or imply a specific meaning.\nConverters may use tags to help identify specific situations that do not have\na specific extension, for example; self-billed or partial invoices may be\nidentified by their respective tags."
|
|
217
|
+
},
|
|
218
|
+
"uuid": {
|
|
219
|
+
"type": "string",
|
|
220
|
+
"format": "uuid",
|
|
221
|
+
"title": "UUID",
|
|
222
|
+
"description": "Universally Unique Identifier."
|
|
223
|
+
},
|
|
224
|
+
"type": {
|
|
225
|
+
"$ref": "https://gobl.org/draft-0/cbc/key",
|
|
226
|
+
"oneOf": [
|
|
227
|
+
{
|
|
228
|
+
"const": "standard",
|
|
229
|
+
"title": "Standard",
|
|
230
|
+
"description": "A regular commercial invoice document between a supplier and customer."
|
|
231
|
+
},
|
|
232
|
+
{
|
|
233
|
+
"const": "proforma",
|
|
234
|
+
"title": "Proforma",
|
|
235
|
+
"description": "For a clients validation before sending a final invoice."
|
|
236
|
+
},
|
|
237
|
+
{
|
|
238
|
+
"const": "corrective",
|
|
239
|
+
"title": "Corrective",
|
|
240
|
+
"description": "Corrected invoice that completely *replaces* the preceding document."
|
|
241
|
+
},
|
|
242
|
+
{
|
|
243
|
+
"const": "credit-note",
|
|
244
|
+
"title": "Credit Note",
|
|
245
|
+
"description": "Reflects a refund either partial or complete of the preceding document. A \ncredit note effectively *extends* the previous document."
|
|
246
|
+
},
|
|
247
|
+
{
|
|
248
|
+
"const": "debit-note",
|
|
249
|
+
"title": "Debit Note",
|
|
250
|
+
"description": "An additional set of charges to be added to the preceding document."
|
|
251
|
+
},
|
|
252
|
+
{
|
|
253
|
+
"const": "other",
|
|
254
|
+
"title": "Other",
|
|
255
|
+
"description": "Any other type of invoice that does not fit into the standard categories and implies\nthat any scenarios defined in tax regimes or addons will not be applied.\n\nThis is useful for being able to create invoices with custom types in extensions,\nbut is not recommend for general use."
|
|
256
|
+
}
|
|
257
|
+
],
|
|
258
|
+
"title": "Type",
|
|
259
|
+
"description": "Type of invoice document. May be restricted by local tax regime requirements.",
|
|
260
|
+
"calculated": true
|
|
261
|
+
},
|
|
262
|
+
"series": {
|
|
263
|
+
"$ref": "https://gobl.org/draft-0/cbc/code",
|
|
264
|
+
"title": "Series",
|
|
265
|
+
"description": "Series is used to identify groups of invoices by date, business area, project,\ntype of document, customer type, a combination of any or other company specific data.\nIf the output format does not support the series as a separate field, it will be\nprepended to the code for presentation with a dash (`-`) for separation."
|
|
266
|
+
},
|
|
267
|
+
"code": {
|
|
268
|
+
"$ref": "https://gobl.org/draft-0/cbc/code",
|
|
269
|
+
"title": "Code",
|
|
270
|
+
"description": "Code is a sequential identifier that uniquely identifies the invoice. The code can\nbe left empty initially, but is **required** to **sign** the invoice."
|
|
271
|
+
},
|
|
272
|
+
"issue_date": {
|
|
273
|
+
"$ref": "https://gobl.org/draft-0/cal/date",
|
|
274
|
+
"title": "Issue Date",
|
|
275
|
+
"description": "Issue date for when the invoice was created and issued. Todays date is used if\nnone is set. There are often legal restrictions on how far back or in the future an\ninvoice can be issued.",
|
|
276
|
+
"calculated": true
|
|
277
|
+
},
|
|
278
|
+
"issue_time": {
|
|
279
|
+
"$ref": "https://gobl.org/draft-0/cal/time",
|
|
280
|
+
"title": "Issue Time",
|
|
281
|
+
"description": "IssueTime is an optional field that may be useful to indicate the time of day when\nthe invoice was issued. Some regions and formats may require this field to be set.\nAn empty string will be automatically updated to reflect the current time, otherwise\nthe field can be left with a nil value.",
|
|
282
|
+
"calculated": true
|
|
283
|
+
},
|
|
284
|
+
"op_date": {
|
|
285
|
+
"$ref": "https://gobl.org/draft-0/cal/date",
|
|
286
|
+
"title": "Operation Date",
|
|
287
|
+
"description": "Date when the operation defined by the invoice became effective."
|
|
288
|
+
},
|
|
289
|
+
"value_date": {
|
|
290
|
+
"$ref": "https://gobl.org/draft-0/cal/date",
|
|
291
|
+
"title": "Value Date",
|
|
292
|
+
"description": "When the taxes of this invoice become accountable, if none set, the issue date is used."
|
|
293
|
+
},
|
|
294
|
+
"currency": {
|
|
295
|
+
"$ref": "https://gobl.org/draft-0/currency/code",
|
|
296
|
+
"title": "Currency",
|
|
297
|
+
"description": "Currency for all invoice amounts and totals, unless explicitly stated otherwise.",
|
|
298
|
+
"calculated": true
|
|
299
|
+
},
|
|
300
|
+
"exchange_rates": {
|
|
301
|
+
"items": {
|
|
302
|
+
"$ref": "https://gobl.org/draft-0/currency/exchange-rate"
|
|
303
|
+
},
|
|
304
|
+
"type": "array",
|
|
305
|
+
"title": "Exchange Rates",
|
|
306
|
+
"description": "Exchange rates to be used when converting the invoices monetary values into other currencies."
|
|
307
|
+
},
|
|
308
|
+
"preceding": {
|
|
309
|
+
"items": {
|
|
310
|
+
"$ref": "https://gobl.org/draft-0/org/document-ref"
|
|
311
|
+
},
|
|
312
|
+
"type": "array",
|
|
313
|
+
"title": "Preceding Details",
|
|
314
|
+
"description": "Document references for previous invoices that this document replaces or extends."
|
|
315
|
+
},
|
|
316
|
+
"tax": {
|
|
317
|
+
"$ref": "https://gobl.org/draft-0/bill/tax",
|
|
318
|
+
"title": "Tax",
|
|
319
|
+
"description": "Special billing tax configuration options."
|
|
320
|
+
},
|
|
321
|
+
"supplier": {
|
|
322
|
+
"$ref": "https://gobl.org/draft-0/org/party",
|
|
323
|
+
"title": "Supplier",
|
|
324
|
+
"description": "The entity supplying the goods or services and usually responsible for paying taxes."
|
|
325
|
+
},
|
|
326
|
+
"customer": {
|
|
327
|
+
"$ref": "https://gobl.org/draft-0/org/party",
|
|
328
|
+
"title": "Customer",
|
|
329
|
+
"description": "Legal entity receiving the goods or services, may be nil in certain circumstances\nsuch as simplified invoices."
|
|
330
|
+
},
|
|
331
|
+
"lines": {
|
|
332
|
+
"items": {
|
|
333
|
+
"$ref": "https://gobl.org/draft-0/bill/line"
|
|
334
|
+
},
|
|
335
|
+
"type": "array",
|
|
336
|
+
"title": "Lines",
|
|
337
|
+
"description": "List of invoice lines representing each of the items sold to the customer."
|
|
338
|
+
},
|
|
339
|
+
"discounts": {
|
|
340
|
+
"items": {
|
|
341
|
+
"$ref": "https://gobl.org/draft-0/bill/discount"
|
|
342
|
+
},
|
|
343
|
+
"type": "array",
|
|
344
|
+
"title": "Discounts",
|
|
345
|
+
"description": "Discounts or allowances applied to the complete invoice"
|
|
346
|
+
},
|
|
347
|
+
"charges": {
|
|
348
|
+
"items": {
|
|
349
|
+
"$ref": "https://gobl.org/draft-0/bill/charge"
|
|
350
|
+
},
|
|
351
|
+
"type": "array",
|
|
352
|
+
"title": "Charges",
|
|
353
|
+
"description": "Charges or surcharges applied to the complete invoice"
|
|
354
|
+
},
|
|
355
|
+
"ordering": {
|
|
356
|
+
"$ref": "https://gobl.org/draft-0/bill/ordering",
|
|
357
|
+
"title": "Ordering Details",
|
|
358
|
+
"description": "Ordering details including document references and buyer or seller parties."
|
|
359
|
+
},
|
|
360
|
+
"payment": {
|
|
361
|
+
"$ref": "https://gobl.org/draft-0/bill/payment-details",
|
|
362
|
+
"title": "Payment Details",
|
|
363
|
+
"description": "Information on when, how, and to whom the invoice should be paid."
|
|
364
|
+
},
|
|
365
|
+
"delivery": {
|
|
366
|
+
"$ref": "https://gobl.org/draft-0/bill/delivery-details",
|
|
367
|
+
"title": "Delivery Details",
|
|
368
|
+
"description": "Specific details on delivery of the goods referenced in the invoice."
|
|
369
|
+
},
|
|
370
|
+
"totals": {
|
|
371
|
+
"$ref": "https://gobl.org/draft-0/bill/totals",
|
|
372
|
+
"title": "Totals",
|
|
373
|
+
"description": "Summary of all the invoice totals, including taxes (calculated).",
|
|
374
|
+
"calculated": true
|
|
375
|
+
},
|
|
376
|
+
"notes": {
|
|
377
|
+
"items": {
|
|
378
|
+
"$ref": "https://gobl.org/draft-0/org/note"
|
|
379
|
+
},
|
|
380
|
+
"type": "array",
|
|
381
|
+
"title": "Notes",
|
|
382
|
+
"description": "Unstructured information that is relevant to the invoice, such as correction or additional\nlegal details."
|
|
383
|
+
},
|
|
384
|
+
"complements": {
|
|
385
|
+
"items": {
|
|
386
|
+
"$ref": "https://gobl.org/draft-0/schema/object"
|
|
387
|
+
},
|
|
388
|
+
"type": "array",
|
|
389
|
+
"title": "Complements",
|
|
390
|
+
"description": "Additional complementary objects that add relevant information to the invoice."
|
|
391
|
+
},
|
|
392
|
+
"meta": {
|
|
393
|
+
"$ref": "https://gobl.org/draft-0/cbc/meta",
|
|
394
|
+
"title": "Meta",
|
|
395
|
+
"description": "Additional semi-structured data that doesn't fit into the body of the invoice."
|
|
396
|
+
},
|
|
397
|
+
"attachments": {
|
|
398
|
+
"items": {
|
|
399
|
+
"$ref": "https://gobl.org/draft-0/org/attachment"
|
|
400
|
+
},
|
|
401
|
+
"type": "array",
|
|
402
|
+
"title": "Attachments",
|
|
403
|
+
"description": "Attachments provide additional information or supporting documents that are not included\nin the main document. It is important that attachments are not used for alternative\nversions of the PDF, for that, see \"links\" inside the envelope headers."
|
|
404
|
+
}
|
|
405
|
+
},
|
|
406
|
+
"type": "object",
|
|
407
|
+
"required": [
|
|
408
|
+
"type",
|
|
409
|
+
"issue_date",
|
|
410
|
+
"currency",
|
|
411
|
+
"supplier",
|
|
412
|
+
"totals"
|
|
413
|
+
],
|
|
414
|
+
"description": "Invoice represents a payment claim for goods or services supplied under conditions agreed between the supplier and the customer.",
|
|
415
|
+
"recommended": [
|
|
416
|
+
"$regime",
|
|
417
|
+
"series",
|
|
418
|
+
"code",
|
|
419
|
+
"lines"
|
|
420
|
+
]
|
|
421
|
+
}
|
|
422
|
+
}
|
|
423
|
+
}
|