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,96 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://gobl.org/draft-0/org/item",
4
+ "$ref": "#/$defs/Item",
5
+ "$defs": {
6
+ "Item": {
7
+ "properties": {
8
+ "uuid": {
9
+ "type": "string",
10
+ "format": "uuid",
11
+ "title": "UUID",
12
+ "description": "Universally Unique Identifier."
13
+ },
14
+ "ref": {
15
+ "$ref": "https://gobl.org/draft-0/cbc/code",
16
+ "title": "Ref",
17
+ "description": "Primary reference code that identifies this item.\nAdditional codes can be provided in the 'identities' property."
18
+ },
19
+ "key": {
20
+ "$ref": "https://gobl.org/draft-0/cbc/key",
21
+ "title": "Key",
22
+ "description": "Special key used to classify the item sometimes required by some regimes."
23
+ },
24
+ "name": {
25
+ "type": "string",
26
+ "title": "Name",
27
+ "description": "Brief name of the item"
28
+ },
29
+ "identities": {
30
+ "items": {
31
+ "$ref": "https://gobl.org/draft-0/org/identity"
32
+ },
33
+ "type": "array",
34
+ "title": "Identities",
35
+ "description": "List of additional codes, IDs, or SKUs which can be used to identify the item. They should be agreed upon between supplier and customer."
36
+ },
37
+ "description": {
38
+ "type": "string",
39
+ "title": "Description",
40
+ "description": "Detailed description of the item."
41
+ },
42
+ "images": {
43
+ "items": {
44
+ "$ref": "https://gobl.org/draft-0/org/image"
45
+ },
46
+ "type": "array",
47
+ "title": "Images",
48
+ "description": "Images associated with the item."
49
+ },
50
+ "currency": {
51
+ "$ref": "https://gobl.org/draft-0/currency/code",
52
+ "title": "Currency",
53
+ "description": "Currency used for the item's price."
54
+ },
55
+ "price": {
56
+ "$ref": "https://gobl.org/draft-0/num/amount",
57
+ "title": "Price",
58
+ "description": "Base price of a single unit to be sold."
59
+ },
60
+ "alt_prices": {
61
+ "items": {
62
+ "$ref": "https://gobl.org/draft-0/currency/amount"
63
+ },
64
+ "type": "array",
65
+ "title": "Alternative Prices",
66
+ "description": "AltPrices defines a list of prices with their currencies that may be used\nas an alternative to the item's base price."
67
+ },
68
+ "unit": {
69
+ "$ref": "https://gobl.org/draft-0/org/unit",
70
+ "title": "Unit",
71
+ "description": "Unit of measure."
72
+ },
73
+ "origin": {
74
+ "$ref": "https://gobl.org/draft-0/l10n/iso-country-code",
75
+ "title": "Country of Origin",
76
+ "description": "Country code of where this item was from originally."
77
+ },
78
+ "ext": {
79
+ "$ref": "https://gobl.org/draft-0/tax/extensions",
80
+ "title": "Extensions",
81
+ "description": "Extension code map for any additional regime specific codes that may be required."
82
+ },
83
+ "meta": {
84
+ "$ref": "https://gobl.org/draft-0/cbc/meta",
85
+ "title": "Meta",
86
+ "description": "Additional meta information that may be useful"
87
+ }
88
+ },
89
+ "type": "object",
90
+ "required": [
91
+ "name"
92
+ ],
93
+ "description": "Item is used to describe a single product or service."
94
+ }
95
+ }
96
+ }
@@ -0,0 +1,59 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://gobl.org/draft-0/org/name",
4
+ "$ref": "#/$defs/Name",
5
+ "$defs": {
6
+ "Name": {
7
+ "properties": {
8
+ "uuid": {
9
+ "type": "string",
10
+ "format": "uuid",
11
+ "title": "UUID",
12
+ "description": "Universally Unique Identifier."
13
+ },
14
+ "alias": {
15
+ "type": "string",
16
+ "title": "Alias",
17
+ "description": "What the person would like to be called"
18
+ },
19
+ "prefix": {
20
+ "type": "string",
21
+ "title": "Prefix",
22
+ "description": "Additional prefix to add to name, like Mrs. or Mr."
23
+ },
24
+ "given": {
25
+ "type": "string",
26
+ "title": "Given",
27
+ "description": "Person's given or first name"
28
+ },
29
+ "middle": {
30
+ "type": "string",
31
+ "title": "Middle",
32
+ "description": "Middle names or initials"
33
+ },
34
+ "surname": {
35
+ "type": "string",
36
+ "title": "Surname",
37
+ "description": "Second or Family name."
38
+ },
39
+ "surname2": {
40
+ "type": "string",
41
+ "title": "Second Surname",
42
+ "description": "Additional second of family name."
43
+ },
44
+ "suffix": {
45
+ "type": "string",
46
+ "title": "Suffix",
47
+ "description": "Titles to include after the name."
48
+ },
49
+ "meta": {
50
+ "$ref": "https://gobl.org/draft-0/cbc/meta",
51
+ "title": "Meta",
52
+ "description": "Any additional useful data."
53
+ }
54
+ },
55
+ "type": "object",
56
+ "description": "Name represents what a human is called."
57
+ }
58
+ }
59
+ }
@@ -0,0 +1,184 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://gobl.org/draft-0/org/note",
4
+ "$ref": "#/$defs/Note",
5
+ "$defs": {
6
+ "Note": {
7
+ "properties": {
8
+ "uuid": {
9
+ "type": "string",
10
+ "format": "uuid",
11
+ "title": "UUID",
12
+ "description": "Universally Unique Identifier."
13
+ },
14
+ "key": {
15
+ "$ref": "https://gobl.org/draft-0/cbc/key",
16
+ "oneOf": [
17
+ {
18
+ "const": "goods",
19
+ "title": "Goods",
20
+ "description": "Goods Description"
21
+ },
22
+ {
23
+ "const": "payment",
24
+ "title": "Payment",
25
+ "description": "Terms of Payment"
26
+ },
27
+ {
28
+ "const": "legal",
29
+ "title": "Legal",
30
+ "description": "Legal or regulatory information"
31
+ },
32
+ {
33
+ "const": "dangerous-goods",
34
+ "title": "Dangerous Goods",
35
+ "description": "Dangerous goods additional information"
36
+ },
37
+ {
38
+ "const": "ack",
39
+ "title": "Acknowledgement",
40
+ "description": "Acknowledgement Description"
41
+ },
42
+ {
43
+ "const": "rate",
44
+ "title": "Rate",
45
+ "description": "Rate additional information"
46
+ },
47
+ {
48
+ "const": "reason",
49
+ "title": "Reason",
50
+ "description": "Explanation of something relevant to the document"
51
+ },
52
+ {
53
+ "const": "dispute",
54
+ "title": "Dispute",
55
+ "description": "Details on a dispute."
56
+ },
57
+ {
58
+ "const": "customer",
59
+ "title": "Customer",
60
+ "description": "Customer remarks"
61
+ },
62
+ {
63
+ "const": "glossary",
64
+ "title": "Glossary",
65
+ "description": "Glossary of terms"
66
+ },
67
+ {
68
+ "const": "customs",
69
+ "title": "Customs",
70
+ "description": "Customs declaration information"
71
+ },
72
+ {
73
+ "const": "general",
74
+ "title": "General",
75
+ "description": "General information"
76
+ },
77
+ {
78
+ "const": "handling",
79
+ "title": "Handling",
80
+ "description": "Handling instructions"
81
+ },
82
+ {
83
+ "const": "packaging",
84
+ "title": "Packaging",
85
+ "description": "Packaging information"
86
+ },
87
+ {
88
+ "const": "loading",
89
+ "title": "Loading",
90
+ "description": "Loading instructions"
91
+ },
92
+ {
93
+ "const": "price",
94
+ "title": "Price",
95
+ "description": "Price conditions"
96
+ },
97
+ {
98
+ "const": "priority",
99
+ "title": "Priority",
100
+ "description": "Priority information"
101
+ },
102
+ {
103
+ "const": "regulatory",
104
+ "title": "Regulatory",
105
+ "description": "Regulatory information"
106
+ },
107
+ {
108
+ "const": "safety",
109
+ "title": "Safety",
110
+ "description": "Safety instructions"
111
+ },
112
+ {
113
+ "const": "ship-line",
114
+ "title": "Ship Line",
115
+ "description": "Ship line"
116
+ },
117
+ {
118
+ "const": "supplier",
119
+ "title": "Supplier",
120
+ "description": "Supplier remarks"
121
+ },
122
+ {
123
+ "const": "transport",
124
+ "title": "Transport",
125
+ "description": "Transportation information"
126
+ },
127
+ {
128
+ "const": "delivery",
129
+ "title": "Delivery",
130
+ "description": "Delivery information"
131
+ },
132
+ {
133
+ "const": "quarantine",
134
+ "title": "Quarantine",
135
+ "description": "Quarantine information"
136
+ },
137
+ {
138
+ "const": "tax",
139
+ "title": "Tax",
140
+ "description": "Tax declaration"
141
+ },
142
+ {
143
+ "const": "other",
144
+ "title": "Other",
145
+ "description": "Mutually defined"
146
+ }
147
+ ],
148
+ "title": "Key",
149
+ "description": "Key specifying subject of the text"
150
+ },
151
+ "code": {
152
+ "$ref": "https://gobl.org/draft-0/cbc/code",
153
+ "title": "Code",
154
+ "description": "Code used for additional data that may be required to identify the note."
155
+ },
156
+ "src": {
157
+ "$ref": "https://gobl.org/draft-0/cbc/key",
158
+ "title": "Source",
159
+ "description": "Source of this note, especially useful when auto-generated."
160
+ },
161
+ "text": {
162
+ "type": "string",
163
+ "title": "Text",
164
+ "description": "The contents of the note"
165
+ },
166
+ "meta": {
167
+ "$ref": "https://gobl.org/draft-0/cbc/meta",
168
+ "title": "Meta",
169
+ "description": "Additional information about the note"
170
+ },
171
+ "ext": {
172
+ "$ref": "https://gobl.org/draft-0/tax/extensions",
173
+ "title": "Extensions",
174
+ "description": "Extension data"
175
+ }
176
+ },
177
+ "type": "object",
178
+ "required": [
179
+ "text"
180
+ ],
181
+ "description": "Note represents a free text of additional information that may be added to a document."
182
+ }
183
+ }
184
+ }
@@ -0,0 +1,129 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://gobl.org/draft-0/org/party",
4
+ "$ref": "#/$defs/Party",
5
+ "$defs": {
6
+ "Party": {
7
+ "properties": {
8
+ "$regime": {
9
+ "$ref": "https://gobl.org/draft-0/l10n/tax-country-code",
10
+ "title": "Tax Regime"
11
+ },
12
+ "uuid": {
13
+ "type": "string",
14
+ "format": "uuid",
15
+ "title": "UUID",
16
+ "description": "Universally Unique Identifier."
17
+ },
18
+ "label": {
19
+ "type": "string",
20
+ "title": "Label",
21
+ "description": "Label can be used to provide a custom label for the party in a given\ncontext in a single language, for example \"Supplier\", \"Host\", or similar.",
22
+ "examples": [
23
+ "Supplier"
24
+ ]
25
+ },
26
+ "name": {
27
+ "type": "string",
28
+ "title": "Name",
29
+ "description": "Legal name or representation of the organization."
30
+ },
31
+ "alias": {
32
+ "type": "string",
33
+ "title": "Alias",
34
+ "description": "Alternate short name."
35
+ },
36
+ "tax_id": {
37
+ "$ref": "https://gobl.org/draft-0/tax/identity",
38
+ "title": "Tax Identity",
39
+ "description": "The entity's legal ID code used for tax purposes. They may have other numbers, but we're only interested in those valid for tax purposes."
40
+ },
41
+ "identities": {
42
+ "items": {
43
+ "$ref": "https://gobl.org/draft-0/org/identity"
44
+ },
45
+ "type": "array",
46
+ "title": "Identities",
47
+ "description": "Set of codes used to identify the party in other systems."
48
+ },
49
+ "people": {
50
+ "items": {
51
+ "$ref": "https://gobl.org/draft-0/org/person"
52
+ },
53
+ "type": "array",
54
+ "title": "People",
55
+ "description": "Details of physical people who represent the party."
56
+ },
57
+ "inboxes": {
58
+ "items": {
59
+ "$ref": "https://gobl.org/draft-0/org/inbox"
60
+ },
61
+ "type": "array",
62
+ "title": "Inboxes",
63
+ "description": "Digital inboxes used for forwarding electronic versions of documents"
64
+ },
65
+ "addresses": {
66
+ "items": {
67
+ "$ref": "https://gobl.org/draft-0/org/address"
68
+ },
69
+ "type": "array",
70
+ "title": "Postal Addresses",
71
+ "description": "Regular post addresses for where information should be sent if needed."
72
+ },
73
+ "emails": {
74
+ "items": {
75
+ "$ref": "https://gobl.org/draft-0/org/email"
76
+ },
77
+ "type": "array",
78
+ "title": "Email Addresses",
79
+ "description": "Electronic mail addresses"
80
+ },
81
+ "websites": {
82
+ "items": {
83
+ "$ref": "https://gobl.org/draft-0/org/website"
84
+ },
85
+ "type": "array",
86
+ "title": "Websites",
87
+ "description": "Public websites that provide further information about the party."
88
+ },
89
+ "telephones": {
90
+ "items": {
91
+ "$ref": "https://gobl.org/draft-0/org/telephone"
92
+ },
93
+ "type": "array",
94
+ "title": "Telephone Numbers",
95
+ "description": "Regular telephone numbers"
96
+ },
97
+ "registration": {
98
+ "$ref": "https://gobl.org/draft-0/org/registration",
99
+ "title": "Registration",
100
+ "description": "Additional registration details about the company that may need to be included in a document."
101
+ },
102
+ "logos": {
103
+ "items": {
104
+ "$ref": "https://gobl.org/draft-0/org/image"
105
+ },
106
+ "type": "array",
107
+ "title": "Logos",
108
+ "description": "Images that can be used to identify the party visually."
109
+ },
110
+ "ext": {
111
+ "$ref": "https://gobl.org/draft-0/tax/extensions",
112
+ "title": "Extensions",
113
+ "description": "Extension code map for any additional regime specific codes that may be required."
114
+ },
115
+ "meta": {
116
+ "$ref": "https://gobl.org/draft-0/cbc/meta",
117
+ "title": "Meta",
118
+ "description": "Any additional semi-structured information that does not fit into the rest of the party."
119
+ }
120
+ },
121
+ "type": "object",
122
+ "description": "Party represents a person or business entity.",
123
+ "recommended": [
124
+ "name",
125
+ "tax_id"
126
+ ]
127
+ }
128
+ }
129
+ }
@@ -0,0 +1,90 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://gobl.org/draft-0/org/person",
4
+ "$ref": "#/$defs/Person",
5
+ "$defs": {
6
+ "Person": {
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 can be used to identify the person in a given context in a single\nlanguage, for example \"Attn\", \"Contact\", \"Responsible\", etc.",
18
+ "examples": [
19
+ "Attn"
20
+ ]
21
+ },
22
+ "key": {
23
+ "$ref": "https://gobl.org/draft-0/cbc/key",
24
+ "title": "Key",
25
+ "description": "Key used to identify the role of the person inside the context of the object."
26
+ },
27
+ "name": {
28
+ "$ref": "https://gobl.org/draft-0/org/name",
29
+ "title": "Name",
30
+ "description": "Complete details on the name of the person."
31
+ },
32
+ "role": {
33
+ "type": "string",
34
+ "title": "Role",
35
+ "description": "Role or job title of the responsibilities of the person within an organization."
36
+ },
37
+ "identities": {
38
+ "items": {
39
+ "$ref": "https://gobl.org/draft-0/org/identity"
40
+ },
41
+ "type": "array",
42
+ "title": "Identities",
43
+ "description": "Set of codes used to identify the person, such as ID numbers, social security,\ndriving licenses, etc. that can be attributed to the individual."
44
+ },
45
+ "addresses": {
46
+ "items": {
47
+ "$ref": "https://gobl.org/draft-0/org/address"
48
+ },
49
+ "type": "array",
50
+ "title": "Postal Addresses",
51
+ "description": "Regular post addresses for where information should be sent if needed."
52
+ },
53
+ "emails": {
54
+ "items": {
55
+ "$ref": "https://gobl.org/draft-0/org/email"
56
+ },
57
+ "type": "array",
58
+ "title": "Email Addresses",
59
+ "description": "Electronic mail addresses that belong to the person."
60
+ },
61
+ "telephones": {
62
+ "items": {
63
+ "$ref": "https://gobl.org/draft-0/org/telephone"
64
+ },
65
+ "type": "array",
66
+ "title": "Telephone Numbers",
67
+ "description": "Regular phone or mobile numbers"
68
+ },
69
+ "avatars": {
70
+ "items": {
71
+ "$ref": "https://gobl.org/draft-0/org/image"
72
+ },
73
+ "type": "array",
74
+ "title": "Avatars",
75
+ "description": "Avatars provider links to images or photos or the person."
76
+ },
77
+ "meta": {
78
+ "$ref": "https://gobl.org/draft-0/cbc/meta",
79
+ "title": "Meta",
80
+ "description": "Data about the data."
81
+ }
82
+ },
83
+ "type": "object",
84
+ "required": [
85
+ "name"
86
+ ],
87
+ "description": "Person represents a human, and how to contact them electronically."
88
+ }
89
+ }
90
+ }
@@ -0,0 +1,66 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://gobl.org/draft-0/org/registration",
4
+ "$ref": "#/$defs/Registration",
5
+ "$defs": {
6
+ "Registration": {
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
+ "examples": [
18
+ "Registration"
19
+ ]
20
+ },
21
+ "capital": {
22
+ "$ref": "https://gobl.org/draft-0/num/amount",
23
+ "title": "Capital"
24
+ },
25
+ "currency": {
26
+ "$ref": "https://gobl.org/draft-0/currency/code",
27
+ "title": "Currency"
28
+ },
29
+ "office": {
30
+ "type": "string",
31
+ "title": "Office"
32
+ },
33
+ "book": {
34
+ "type": "string",
35
+ "title": "Book"
36
+ },
37
+ "volume": {
38
+ "type": "string",
39
+ "title": "Volume"
40
+ },
41
+ "sheet": {
42
+ "type": "string",
43
+ "title": "Sheet"
44
+ },
45
+ "section": {
46
+ "type": "string",
47
+ "title": "Section"
48
+ },
49
+ "page": {
50
+ "type": "string",
51
+ "title": "Page"
52
+ },
53
+ "entry": {
54
+ "type": "string",
55
+ "title": "Entry"
56
+ },
57
+ "other": {
58
+ "type": "string",
59
+ "title": "Other"
60
+ }
61
+ },
62
+ "type": "object",
63
+ "description": "Registration is used in countries that require additional information to be associated with a company usually related to a specific registration office."
64
+ }
65
+ }
66
+ }
@@ -0,0 +1,32 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://gobl.org/draft-0/org/telephone",
4
+ "$ref": "#/$defs/Telephone",
5
+ "$defs": {
6
+ "Telephone": {
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": "Identifier for this number."
18
+ },
19
+ "num": {
20
+ "type": "string",
21
+ "title": "Number",
22
+ "description": "Free-text string that represents the telephone number."
23
+ }
24
+ },
25
+ "type": "object",
26
+ "required": [
27
+ "num"
28
+ ],
29
+ "description": "Telephone describes what is expected for a telephone number."
30
+ }
31
+ }
32
+ }