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.
Files changed (96) hide show
  1. checksums.yaml +4 -4
  2. data/data/addons/br-nfe-v4.json +481 -0
  3. data/data/addons/br-nfse-v1.json +235 -0
  4. data/data/addons/co-dian-v2.json +311 -0
  5. data/data/addons/de-xrechnung-v3.json +16 -0
  6. data/data/addons/de-zugferd-v2.json +16 -0
  7. data/data/addons/es-facturae-v3.json +359 -0
  8. data/data/addons/es-tbai-v1.json +225 -0
  9. data/data/addons/es-verifactu-v1.json +609 -0
  10. data/data/addons/eu-en16931-v2017.json +92 -0
  11. data/data/addons/fr-choruspro-v1.json +260 -0
  12. data/data/addons/fr-facturx-v1.json +16 -0
  13. data/data/addons/gr-mydata-v1.json +1495 -0
  14. data/data/addons/it-sdi-v1.json +1570 -0
  15. data/data/addons/it-ticket-v1.json +144 -0
  16. data/data/addons/mx-cfdi-v4.json +908 -0
  17. data/data/addons/pl-favat-v2.json +235 -0
  18. data/data/addons/pt-saft-v1.json +950 -0
  19. data/data/catalogues/cef.json +374 -0
  20. data/data/catalogues/iso.json +19 -0
  21. data/data/catalogues/untdid.json +10669 -0
  22. data/data/currency/iso.json +2378 -0
  23. data/data/currency/non-iso.json +128 -0
  24. data/data/schemas/bill/charge.json +125 -0
  25. data/data/schemas/bill/correction-options.json +54 -0
  26. data/data/schemas/bill/delivery-details.json +41 -0
  27. data/data/schemas/bill/delivery.json +412 -0
  28. data/data/schemas/bill/discount.json +137 -0
  29. data/data/schemas/bill/invoice.json +423 -0
  30. data/data/schemas/bill/line.json +433 -0
  31. data/data/schemas/bill/order.json +401 -0
  32. data/data/schemas/bill/ordering.json +107 -0
  33. data/data/schemas/bill/payment-details.json +36 -0
  34. data/data/schemas/bill/payment.json +424 -0
  35. data/data/schemas/bill/tax.json +45 -0
  36. data/data/schemas/bill/totals.json +84 -0
  37. data/data/schemas/cal/date-time.json +13 -0
  38. data/data/schemas/cal/date.json +13 -0
  39. data/data/schemas/cal/period.json +32 -0
  40. data/data/schemas/cal/time.json +13 -0
  41. data/data/schemas/cbc/code-map.json +16 -0
  42. data/data/schemas/cbc/code.json +15 -0
  43. data/data/schemas/cbc/definition.json +67 -0
  44. data/data/schemas/cbc/key.json +15 -0
  45. data/data/schemas/cbc/meta.json +16 -0
  46. data/data/schemas/cbc/source.json +37 -0
  47. data/data/schemas/currency/amount.json +32 -0
  48. data/data/schemas/currency/code.json +734 -0
  49. data/data/schemas/currency/exchange-rate.json +43 -0
  50. data/data/schemas/dsig/digest.json +27 -0
  51. data/data/schemas/dsig/signature.json +12 -0
  52. data/data/schemas/envelope.json +41 -0
  53. data/data/schemas/head/header.json +62 -0
  54. data/data/schemas/head/link.json +42 -0
  55. data/data/schemas/head/stamp.json +27 -0
  56. data/data/schemas/i18n/string.json +18 -0
  57. data/data/schemas/l10n/code.json +13 -0
  58. data/data/schemas/l10n/iso-country-code.json +1010 -0
  59. data/data/schemas/l10n/tax-country-code.json +1022 -0
  60. data/data/schemas/note/message.json +43 -0
  61. data/data/schemas/num/amount.json +13 -0
  62. data/data/schemas/num/percentage.json +13 -0
  63. data/data/schemas/org/address.json +105 -0
  64. data/data/schemas/org/attachment.json +58 -0
  65. data/data/schemas/org/coordinates.json +33 -0
  66. data/data/schemas/org/document-ref.json +117 -0
  67. data/data/schemas/org/email.json +37 -0
  68. data/data/schemas/org/identity.json +57 -0
  69. data/data/schemas/org/image.json +70 -0
  70. data/data/schemas/org/inbox.json +49 -0
  71. data/data/schemas/org/item.json +96 -0
  72. data/data/schemas/org/name.json +59 -0
  73. data/data/schemas/org/note.json +184 -0
  74. data/data/schemas/org/party.json +129 -0
  75. data/data/schemas/org/person.json +90 -0
  76. data/data/schemas/org/registration.json +66 -0
  77. data/data/schemas/org/telephone.json +32 -0
  78. data/data/schemas/org/unit.json +350 -0
  79. data/data/schemas/org/website.json +38 -0
  80. data/data/schemas/pay/advance.json +211 -0
  81. data/data/schemas/pay/instructions.json +245 -0
  82. data/data/schemas/pay/terms.json +128 -0
  83. data/data/schemas/regimes/mx/food-vouchers.json +111 -0
  84. data/data/schemas/regimes/mx/fuel-account-balance.json +179 -0
  85. data/data/schemas/schema/object.json +12 -0
  86. data/data/schemas/tax/addon-def.json +288 -0
  87. data/data/schemas/tax/catalogue-def.json +37 -0
  88. data/data/schemas/tax/extensions.json +16 -0
  89. data/data/schemas/tax/identity.json +45 -0
  90. data/data/schemas/tax/regime-def.json +513 -0
  91. data/data/schemas/tax/set.json +139 -0
  92. data/data/schemas/tax/total.json +135 -0
  93. data/lib/gobl/extensions/tax/addon_helper.rb +37 -0
  94. data/lib/gobl/version.rb +1 -1
  95. data/lib/gobl.rb +1 -0
  96. metadata +93 -1
@@ -0,0 +1,67 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://gobl.org/draft-0/cbc/definition",
4
+ "$ref": "#/$defs/Definition",
5
+ "$defs": {
6
+ "Definition": {
7
+ "properties": {
8
+ "key": {
9
+ "$ref": "https://gobl.org/draft-0/cbc/key",
10
+ "title": "Key",
11
+ "description": "Key being defined."
12
+ },
13
+ "code": {
14
+ "$ref": "https://gobl.org/draft-0/cbc/code",
15
+ "title": "Code",
16
+ "description": "Code this definition represents."
17
+ },
18
+ "name": {
19
+ "$ref": "https://gobl.org/draft-0/i18n/string",
20
+ "title": "Name",
21
+ "description": "Short name for the key."
22
+ },
23
+ "desc": {
24
+ "$ref": "https://gobl.org/draft-0/i18n/string",
25
+ "title": "Description",
26
+ "description": "Description offering more details about when the key should be used."
27
+ },
28
+ "meta": {
29
+ "$ref": "https://gobl.org/draft-0/cbc/meta",
30
+ "title": "Meta",
31
+ "description": "Meta defines any additional details that may be useful or associated\nwith the key."
32
+ },
33
+ "sources": {
34
+ "items": {
35
+ "$ref": "https://gobl.org/draft-0/cbc/source"
36
+ },
37
+ "type": "array",
38
+ "title": "Sources",
39
+ "description": "Where the information was sourced from."
40
+ },
41
+ "values": {
42
+ "items": {
43
+ "$ref": "https://gobl.org/draft-0/cbc/definition"
44
+ },
45
+ "type": "array",
46
+ "title": "Values",
47
+ "description": "Values defines the possible values associated with the key, which themselves will\neither be keys or codes depending on the context."
48
+ },
49
+ "pattern": {
50
+ "type": "string",
51
+ "title": "Pattern",
52
+ "description": "Pattern is used to validate the key value instead of using a fixed value\nfrom the code or key definitions."
53
+ },
54
+ "map": {
55
+ "$ref": "https://gobl.org/draft-0/cbc/code-map",
56
+ "title": "Code Map",
57
+ "description": "Map helps map local keys to specific codes, useful for converting the\ndescribed key into a local code."
58
+ }
59
+ },
60
+ "type": "object",
61
+ "required": [
62
+ "name"
63
+ ],
64
+ "description": "Definition defines properties of a key, code, or other value that has a specific meaning or utility."
65
+ }
66
+ }
67
+ }
@@ -0,0 +1,15 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://gobl.org/draft-0/cbc/key",
4
+ "$ref": "#/$defs/Key",
5
+ "$defs": {
6
+ "Key": {
7
+ "type": "string",
8
+ "maxLength": 64,
9
+ "minLength": 1,
10
+ "pattern": "^(?:[a-z]|[a-z0-9][a-z0-9-+]*[a-z0-9])$",
11
+ "title": "Key",
12
+ "description": "Text identifier to be used instead of a code for a more verbose but readable identifier."
13
+ }
14
+ }
15
+ }
@@ -0,0 +1,16 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://gobl.org/draft-0/cbc/meta",
4
+ "$ref": "#/$defs/Meta",
5
+ "$defs": {
6
+ "Meta": {
7
+ "patternProperties": {
8
+ "^(?:[a-z]|[a-z0-9][a-z0-9-+]*[a-z0-9])$": {
9
+ "type": "string"
10
+ }
11
+ },
12
+ "type": "object",
13
+ "description": "Meta defines a structure for data about the data being defined."
14
+ }
15
+ }
16
+ }
@@ -0,0 +1,37 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://gobl.org/draft-0/cbc/source",
4
+ "$ref": "#/$defs/Source",
5
+ "$defs": {
6
+ "Source": {
7
+ "properties": {
8
+ "title": {
9
+ "$ref": "https://gobl.org/draft-0/i18n/string",
10
+ "title": "Title",
11
+ "description": "Title stores the name of the source of information."
12
+ },
13
+ "url": {
14
+ "type": "string",
15
+ "format": "uri",
16
+ "title": "URL",
17
+ "description": "URL is the location of the source of information."
18
+ },
19
+ "content_type": {
20
+ "type": "string",
21
+ "title": "Content Type",
22
+ "description": "ContentType of the information expected at the URL."
23
+ },
24
+ "at": {
25
+ "$ref": "https://gobl.org/draft-0/cal/date-time",
26
+ "title": "At",
27
+ "description": "At is the date and time the information was retrieved."
28
+ }
29
+ },
30
+ "type": "object",
31
+ "required": [
32
+ "url"
33
+ ],
34
+ "description": "Source is used to identify a specific source of data."
35
+ }
36
+ }
37
+ }
@@ -0,0 +1,32 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://gobl.org/draft-0/currency/amount",
4
+ "$ref": "#/$defs/Amount",
5
+ "$defs": {
6
+ "Amount": {
7
+ "properties": {
8
+ "label": {
9
+ "type": "string",
10
+ "title": "Label",
11
+ "description": "Label allows for additional information to be added to the\ncurrency Amount that may be useful."
12
+ },
13
+ "currency": {
14
+ "$ref": "https://gobl.org/draft-0/currency/code",
15
+ "title": "Currency",
16
+ "description": "Code defines the currency for this amount."
17
+ },
18
+ "value": {
19
+ "$ref": "https://gobl.org/draft-0/num/amount",
20
+ "title": "Value",
21
+ "description": "Value is the amount in the currency."
22
+ }
23
+ },
24
+ "type": "object",
25
+ "required": [
26
+ "currency",
27
+ "value"
28
+ ],
29
+ "description": "An Amount represents a monetary value in a specific currency."
30
+ }
31
+ }
32
+ }