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,350 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://gobl.org/draft-0/org/unit",
|
|
4
|
+
"$ref": "#/$defs/Unit",
|
|
5
|
+
"$defs": {
|
|
6
|
+
"Unit": {
|
|
7
|
+
"oneOf": [
|
|
8
|
+
{
|
|
9
|
+
"const": "mg",
|
|
10
|
+
"title": "Milligrams"
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"const": "g",
|
|
14
|
+
"title": "Metric grams"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"const": "kg",
|
|
18
|
+
"title": "Metric kilograms"
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"const": "t",
|
|
22
|
+
"title": "Metric tons"
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"const": "mm",
|
|
26
|
+
"title": "Milimetres"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"const": "cm",
|
|
30
|
+
"title": "Centimetres"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"const": "dm",
|
|
34
|
+
"title": "Decimetres",
|
|
35
|
+
"description": "A unit of length equal to one-tenth of a metre."
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"const": "m",
|
|
39
|
+
"title": "Metres"
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"const": "km",
|
|
43
|
+
"title": "Kilometers"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"const": "in",
|
|
47
|
+
"title": "Inches"
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"const": "ft",
|
|
51
|
+
"title": "Feet"
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"const": "mm2",
|
|
55
|
+
"title": "Square millimetres"
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"const": "cm2",
|
|
59
|
+
"title": "Square centimetres"
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"const": "dm2",
|
|
63
|
+
"title": "Square decimetres"
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"const": "m2",
|
|
67
|
+
"title": "Square metres"
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"const": "ac",
|
|
71
|
+
"title": "Acres",
|
|
72
|
+
"description": "A unit of area equal to 43,560 square feet."
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"const": "ha",
|
|
76
|
+
"title": "Hectares",
|
|
77
|
+
"description": "A unit of area equal to 10,000 square metres."
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
"const": "mm3",
|
|
81
|
+
"title": "Cubic millimetres"
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
"const": "cm3",
|
|
85
|
+
"title": "Cubic centimetres"
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"const": "dm3",
|
|
89
|
+
"title": "Cubic decimetres"
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
"const": "m3",
|
|
93
|
+
"title": "Cubic metres"
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
"const": "ml",
|
|
97
|
+
"title": "Millilitres"
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
"const": "cl",
|
|
101
|
+
"title": "Centilitres"
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
"const": "l",
|
|
105
|
+
"title": "Litres"
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
"const": "w",
|
|
109
|
+
"title": "Watts"
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
"const": "kw",
|
|
113
|
+
"title": "Kilowatts"
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
"const": "kwh",
|
|
117
|
+
"title": "Kilowatt Hours"
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
"const": "rate",
|
|
121
|
+
"title": "Rate",
|
|
122
|
+
"description": "A unit of quantity expressed as a rate for usage of a facility or service."
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
"const": "mon",
|
|
126
|
+
"title": "Months",
|
|
127
|
+
"description": "Unit of time equal to 1/12 of a year of 365,25 days."
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
"const": "day",
|
|
131
|
+
"title": "Days"
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
"const": "s",
|
|
135
|
+
"title": "Seconds"
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
"const": "h",
|
|
139
|
+
"title": "Hours"
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
"const": "min",
|
|
143
|
+
"title": "Minutes"
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
"const": "piece",
|
|
147
|
+
"title": "Pieces",
|
|
148
|
+
"description": "A unit of count defining the number of pieces (piece: a single item, article or exemplar)."
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
"const": "item",
|
|
152
|
+
"title": "Items",
|
|
153
|
+
"description": " A unit of count defining the number of items regarded as separate units."
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
"const": "pair",
|
|
157
|
+
"title": "Pairs",
|
|
158
|
+
"description": "A unit of count defining the number of pairs (pair: item described by two's)."
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
"const": "dozen",
|
|
162
|
+
"title": "Dozens",
|
|
163
|
+
"description": "A unit of count defining the number of units in multiples of 12."
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
"const": "assortment",
|
|
167
|
+
"title": "Assortments",
|
|
168
|
+
"description": "A unit of count defining the number of assortments (assortment: a collection of items or components of a single product packaged together)."
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
"const": "service",
|
|
172
|
+
"title": "Service Units",
|
|
173
|
+
"description": "A unit of count defining the number of service units (service unit: defined period / property / facility / utility of supply)."
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
"const": "job",
|
|
177
|
+
"title": "Jobs",
|
|
178
|
+
"description": "A unit of count defining the number of jobs."
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
"const": "activity",
|
|
182
|
+
"title": "Activities",
|
|
183
|
+
"description": "A unit of count defining the number of activities (activity: a unit of work or action)."
|
|
184
|
+
},
|
|
185
|
+
{
|
|
186
|
+
"const": "trip",
|
|
187
|
+
"title": "Trips",
|
|
188
|
+
"description": "A unit of count defining the number of trips (trip: a journey to a place and back again)."
|
|
189
|
+
},
|
|
190
|
+
{
|
|
191
|
+
"const": "group",
|
|
192
|
+
"title": "Groups",
|
|
193
|
+
"description": "A unit of count defining the number of groups (group: set of items classified together)."
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
"const": "outfit",
|
|
197
|
+
"title": "Outfits",
|
|
198
|
+
"description": "A unit of count defining the number of outfits (outfit: a complete set of equipment / materials / objects used for a specific purpose)."
|
|
199
|
+
},
|
|
200
|
+
{
|
|
201
|
+
"const": "kit",
|
|
202
|
+
"title": "Kits",
|
|
203
|
+
"description": "A unit of count defining the number of kits (kit: tub, barrel or pail)."
|
|
204
|
+
},
|
|
205
|
+
{
|
|
206
|
+
"const": "basebox",
|
|
207
|
+
"title": "Base Boxes",
|
|
208
|
+
"description": "A unit of area of 112 sheets of tin mil products (tin plate, tin free steel or black plate) 14 by 20 inches, or 31,360 square inches."
|
|
209
|
+
},
|
|
210
|
+
{
|
|
211
|
+
"const": "pk",
|
|
212
|
+
"title": "Bulk Packs",
|
|
213
|
+
"description": "A unit of count defining the number of items per bulk pack."
|
|
214
|
+
},
|
|
215
|
+
{
|
|
216
|
+
"const": "one",
|
|
217
|
+
"title": "One",
|
|
218
|
+
"description": "A single generic unit of a service or product."
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
"const": "bag",
|
|
222
|
+
"title": "Bags"
|
|
223
|
+
},
|
|
224
|
+
{
|
|
225
|
+
"const": "box",
|
|
226
|
+
"title": "Boxes"
|
|
227
|
+
},
|
|
228
|
+
{
|
|
229
|
+
"const": "bin",
|
|
230
|
+
"title": "Bins"
|
|
231
|
+
},
|
|
232
|
+
{
|
|
233
|
+
"const": "can",
|
|
234
|
+
"title": "Cans"
|
|
235
|
+
},
|
|
236
|
+
{
|
|
237
|
+
"const": "tub",
|
|
238
|
+
"title": "Tubs"
|
|
239
|
+
},
|
|
240
|
+
{
|
|
241
|
+
"const": "case",
|
|
242
|
+
"title": "Cases"
|
|
243
|
+
},
|
|
244
|
+
{
|
|
245
|
+
"const": "tray",
|
|
246
|
+
"title": "Trays"
|
|
247
|
+
},
|
|
248
|
+
{
|
|
249
|
+
"const": "portion",
|
|
250
|
+
"title": "Portions"
|
|
251
|
+
},
|
|
252
|
+
{
|
|
253
|
+
"const": "set",
|
|
254
|
+
"title": "Sets",
|
|
255
|
+
"description": "A unit of count defining the number of sets (set: a number of objects grouped together)."
|
|
256
|
+
},
|
|
257
|
+
{
|
|
258
|
+
"const": "roll",
|
|
259
|
+
"title": "Rolls"
|
|
260
|
+
},
|
|
261
|
+
{
|
|
262
|
+
"const": "carton",
|
|
263
|
+
"title": "Cartons"
|
|
264
|
+
},
|
|
265
|
+
{
|
|
266
|
+
"const": "cylinder",
|
|
267
|
+
"title": "Cylinders"
|
|
268
|
+
},
|
|
269
|
+
{
|
|
270
|
+
"const": "barrel",
|
|
271
|
+
"title": "Barrels"
|
|
272
|
+
},
|
|
273
|
+
{
|
|
274
|
+
"const": "jerrican",
|
|
275
|
+
"title": "Jerricans",
|
|
276
|
+
"description": "Jerrican, cylindrical"
|
|
277
|
+
},
|
|
278
|
+
{
|
|
279
|
+
"const": "carboy",
|
|
280
|
+
"title": "Carboys"
|
|
281
|
+
},
|
|
282
|
+
{
|
|
283
|
+
"const": "demijohn",
|
|
284
|
+
"title": "Demijohn"
|
|
285
|
+
},
|
|
286
|
+
{
|
|
287
|
+
"const": "bottle",
|
|
288
|
+
"title": "Bottles"
|
|
289
|
+
},
|
|
290
|
+
{
|
|
291
|
+
"const": "6pack",
|
|
292
|
+
"title": "Six Packs"
|
|
293
|
+
},
|
|
294
|
+
{
|
|
295
|
+
"const": "canister",
|
|
296
|
+
"title": "Canisters"
|
|
297
|
+
},
|
|
298
|
+
{
|
|
299
|
+
"const": "pkg",
|
|
300
|
+
"title": "Packages",
|
|
301
|
+
"description": "Standard packaging unit."
|
|
302
|
+
},
|
|
303
|
+
{
|
|
304
|
+
"const": "bunch",
|
|
305
|
+
"title": "Bunches"
|
|
306
|
+
},
|
|
307
|
+
{
|
|
308
|
+
"const": "tetrabrik",
|
|
309
|
+
"title": "Tetra-Briks"
|
|
310
|
+
},
|
|
311
|
+
{
|
|
312
|
+
"const": "pallet",
|
|
313
|
+
"title": "Pallets"
|
|
314
|
+
},
|
|
315
|
+
{
|
|
316
|
+
"const": "reel",
|
|
317
|
+
"title": "Reels"
|
|
318
|
+
},
|
|
319
|
+
{
|
|
320
|
+
"const": "sack",
|
|
321
|
+
"title": "Sacks"
|
|
322
|
+
},
|
|
323
|
+
{
|
|
324
|
+
"const": "sheet",
|
|
325
|
+
"title": "Sheets"
|
|
326
|
+
},
|
|
327
|
+
{
|
|
328
|
+
"const": "envelope",
|
|
329
|
+
"title": "Envelopes"
|
|
330
|
+
},
|
|
331
|
+
{
|
|
332
|
+
"const": "lot",
|
|
333
|
+
"title": "Lot"
|
|
334
|
+
},
|
|
335
|
+
{
|
|
336
|
+
"const": "unit",
|
|
337
|
+
"title": "Unit",
|
|
338
|
+
"description": "A type of package composed of a single item or object, not otherwise specified as a unit of transport equipment."
|
|
339
|
+
},
|
|
340
|
+
{
|
|
341
|
+
"pattern": "^[A-Z0-9]{2,3}$",
|
|
342
|
+
"description": "UN/ECE Unit Code from Recommendations 20 and 21"
|
|
343
|
+
}
|
|
344
|
+
],
|
|
345
|
+
"type": "string",
|
|
346
|
+
"title": "Unit",
|
|
347
|
+
"description": "Unit defines how the quantity of the product should be interpreted either using a GOBL lower-case key (e.g. 'kg'), or UN/ECE code upper-case code (e.g. 'KGM')."
|
|
348
|
+
}
|
|
349
|
+
}
|
|
350
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://gobl.org/draft-0/org/website",
|
|
4
|
+
"$ref": "#/$defs/Website",
|
|
5
|
+
"$defs": {
|
|
6
|
+
"Website": {
|
|
7
|
+
"properties": {
|
|
8
|
+
"uuid": {
|
|
9
|
+
"type": "string",
|
|
10
|
+
"format": "uuid",
|
|
11
|
+
"title": "UUID",
|
|
12
|
+
"description": "Universally Unique Identifier."
|
|
13
|
+
},
|
|
14
|
+
"label": {
|
|
15
|
+
"type": "string",
|
|
16
|
+
"title": "Label",
|
|
17
|
+
"description": "Label for the website to show alongside the URL."
|
|
18
|
+
},
|
|
19
|
+
"title": {
|
|
20
|
+
"type": "string",
|
|
21
|
+
"title": "Title",
|
|
22
|
+
"description": "Title of the website to help distinguish between this and other links."
|
|
23
|
+
},
|
|
24
|
+
"url": {
|
|
25
|
+
"type": "string",
|
|
26
|
+
"format": "uri",
|
|
27
|
+
"title": "URL",
|
|
28
|
+
"description": "URL for the website."
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
"type": "object",
|
|
32
|
+
"required": [
|
|
33
|
+
"url"
|
|
34
|
+
],
|
|
35
|
+
"description": "Website describes what is expected for a web address."
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
@@ -0,0 +1,211 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://gobl.org/draft-0/pay/advance",
|
|
4
|
+
"$ref": "#/$defs/Advance",
|
|
5
|
+
"$defs": {
|
|
6
|
+
"Advance": {
|
|
7
|
+
"properties": {
|
|
8
|
+
"uuid": {
|
|
9
|
+
"type": "string",
|
|
10
|
+
"format": "uuid",
|
|
11
|
+
"title": "UUID",
|
|
12
|
+
"description": "Universally Unique Identifier."
|
|
13
|
+
},
|
|
14
|
+
"date": {
|
|
15
|
+
"$ref": "https://gobl.org/draft-0/cal/date",
|
|
16
|
+
"title": "Date",
|
|
17
|
+
"description": "When the advance was made."
|
|
18
|
+
},
|
|
19
|
+
"key": {
|
|
20
|
+
"$ref": "https://gobl.org/draft-0/cbc/key",
|
|
21
|
+
"anyOf": [
|
|
22
|
+
{
|
|
23
|
+
"const": "any",
|
|
24
|
+
"title": "Any",
|
|
25
|
+
"description": "Any method available, no preference."
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"const": "card",
|
|
29
|
+
"title": "Card",
|
|
30
|
+
"description": "Payment card."
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"const": "credit-transfer",
|
|
34
|
+
"title": "Credit Transfer",
|
|
35
|
+
"description": "Sender initiated bank or wire transfer."
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"const": "credit-transfer+sepa",
|
|
39
|
+
"title": "SEPA Credit Transfer",
|
|
40
|
+
"description": "Sender initiated bank or wire transfer via SEPA."
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"const": "debit-transfer",
|
|
44
|
+
"title": "Debit Transfer",
|
|
45
|
+
"description": "Receiver initiated bank or wire transfer."
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"const": "cash",
|
|
49
|
+
"title": "Cash",
|
|
50
|
+
"description": "Cash in hand."
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"const": "cheque",
|
|
54
|
+
"title": "Cheque",
|
|
55
|
+
"description": "Cheque from bank."
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"const": "bank-draft",
|
|
59
|
+
"title": "Draft",
|
|
60
|
+
"description": "Bankers Draft or Bank Cheque."
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"const": "direct-debit",
|
|
64
|
+
"title": "Direct Debit",
|
|
65
|
+
"description": "Direct debit from the customers bank account."
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"const": "direct-debit+sepa",
|
|
69
|
+
"title": "SEPA Direct Debit",
|
|
70
|
+
"description": "Direct debit from the customers bank account via SEPA."
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"const": "online",
|
|
74
|
+
"title": "Online",
|
|
75
|
+
"description": "Online or web payment."
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
"const": "promissory-note",
|
|
79
|
+
"title": "Promissory Note",
|
|
80
|
+
"description": "Promissory note contract."
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"const": "netting",
|
|
84
|
+
"title": "Netting",
|
|
85
|
+
"description": "Intercompany clearing or clearing between partners."
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"const": "other",
|
|
89
|
+
"title": "Other",
|
|
90
|
+
"description": "Other or mutually defined means of payment."
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
"pattern": "^(?:[a-z]|[a-z0-9][a-z0-9-+]*[a-z0-9])$",
|
|
94
|
+
"title": "Regime Specific Key"
|
|
95
|
+
}
|
|
96
|
+
],
|
|
97
|
+
"title": "Key",
|
|
98
|
+
"description": "The payment means used to make the advance."
|
|
99
|
+
},
|
|
100
|
+
"ref": {
|
|
101
|
+
"type": "string",
|
|
102
|
+
"title": "Reference",
|
|
103
|
+
"description": "ID or reference for the advance."
|
|
104
|
+
},
|
|
105
|
+
"grant": {
|
|
106
|
+
"type": "boolean",
|
|
107
|
+
"title": "Grant",
|
|
108
|
+
"description": "If this \"advance\" payment has come from a public grant or subsidy, set this to true."
|
|
109
|
+
},
|
|
110
|
+
"description": {
|
|
111
|
+
"type": "string",
|
|
112
|
+
"title": "Description",
|
|
113
|
+
"description": "Details about the advance."
|
|
114
|
+
},
|
|
115
|
+
"percent": {
|
|
116
|
+
"$ref": "https://gobl.org/draft-0/num/percentage",
|
|
117
|
+
"title": "Percent",
|
|
118
|
+
"description": "Percentage of the total amount payable that was paid. Note that\nmultiple advances with percentages may lead to rounding errors,\nespecially when the total advances sums to 100%. We recommend only\nincluding one advance with a percent value per document."
|
|
119
|
+
},
|
|
120
|
+
"amount": {
|
|
121
|
+
"$ref": "https://gobl.org/draft-0/num/amount",
|
|
122
|
+
"title": "Amount",
|
|
123
|
+
"description": "How much was paid."
|
|
124
|
+
},
|
|
125
|
+
"currency": {
|
|
126
|
+
"$ref": "https://gobl.org/draft-0/currency/code",
|
|
127
|
+
"title": "Currency",
|
|
128
|
+
"description": "If different from the parent document's base currency."
|
|
129
|
+
},
|
|
130
|
+
"card": {
|
|
131
|
+
"$ref": "#/$defs/Card",
|
|
132
|
+
"title": "Card",
|
|
133
|
+
"description": "Details of the payment that was made via a credit or debit card."
|
|
134
|
+
},
|
|
135
|
+
"credit_transfer": {
|
|
136
|
+
"$ref": "#/$defs/CreditTransfer",
|
|
137
|
+
"title": "Credit Transfer",
|
|
138
|
+
"description": "Details about how the payment was made by credit (bank) transfer."
|
|
139
|
+
},
|
|
140
|
+
"ext": {
|
|
141
|
+
"$ref": "https://gobl.org/draft-0/tax/extensions",
|
|
142
|
+
"title": "Extensions",
|
|
143
|
+
"description": "Tax extensions required by tax regimes or addons."
|
|
144
|
+
},
|
|
145
|
+
"meta": {
|
|
146
|
+
"$ref": "https://gobl.org/draft-0/cbc/meta",
|
|
147
|
+
"title": "Meta",
|
|
148
|
+
"description": "Additional details useful for the parties involved."
|
|
149
|
+
}
|
|
150
|
+
},
|
|
151
|
+
"type": "object",
|
|
152
|
+
"required": [
|
|
153
|
+
"description",
|
|
154
|
+
"amount"
|
|
155
|
+
],
|
|
156
|
+
"description": "Advance represents a single payment that has been made already, such as a deposit on an intent to purchase, or as credit from a previous invoice which was later corrected or cancelled."
|
|
157
|
+
},
|
|
158
|
+
"Card": {
|
|
159
|
+
"properties": {
|
|
160
|
+
"first6": {
|
|
161
|
+
"type": "string",
|
|
162
|
+
"title": "First 6",
|
|
163
|
+
"description": "First 6 digits of the card's Primary Account Number (PAN)."
|
|
164
|
+
},
|
|
165
|
+
"last4": {
|
|
166
|
+
"type": "string",
|
|
167
|
+
"title": "Last 4",
|
|
168
|
+
"description": "Last 4 digits of the card's Primary Account Number (PAN)."
|
|
169
|
+
},
|
|
170
|
+
"holder": {
|
|
171
|
+
"type": "string",
|
|
172
|
+
"title": "Holder Name",
|
|
173
|
+
"description": "Name of the person whom the card belongs to."
|
|
174
|
+
}
|
|
175
|
+
},
|
|
176
|
+
"type": "object",
|
|
177
|
+
"description": "Card contains simplified card holder data as a reference for the customer."
|
|
178
|
+
},
|
|
179
|
+
"CreditTransfer": {
|
|
180
|
+
"properties": {
|
|
181
|
+
"iban": {
|
|
182
|
+
"type": "string",
|
|
183
|
+
"title": "IBAN",
|
|
184
|
+
"description": "International Bank Account Number"
|
|
185
|
+
},
|
|
186
|
+
"bic": {
|
|
187
|
+
"type": "string",
|
|
188
|
+
"title": "BIC",
|
|
189
|
+
"description": "Bank Identifier Code used for international transfers."
|
|
190
|
+
},
|
|
191
|
+
"number": {
|
|
192
|
+
"type": "string",
|
|
193
|
+
"title": "Number",
|
|
194
|
+
"description": "Account number, if IBAN not available."
|
|
195
|
+
},
|
|
196
|
+
"name": {
|
|
197
|
+
"type": "string",
|
|
198
|
+
"title": "Name",
|
|
199
|
+
"description": "Name of the bank."
|
|
200
|
+
},
|
|
201
|
+
"branch": {
|
|
202
|
+
"$ref": "https://gobl.org/draft-0/org/address",
|
|
203
|
+
"title": "Branch",
|
|
204
|
+
"description": "Bank office branch address, not normally required."
|
|
205
|
+
}
|
|
206
|
+
},
|
|
207
|
+
"type": "object",
|
|
208
|
+
"description": "CreditTransfer contains fields that can be used for making payments via a bank transfer or wire."
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
}
|