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,43 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://gobl.org/draft-0/note/message",
|
|
4
|
+
"$ref": "#/$defs/Message",
|
|
5
|
+
"$defs": {
|
|
6
|
+
"Message": {
|
|
7
|
+
"properties": {
|
|
8
|
+
"uuid": {
|
|
9
|
+
"type": "string",
|
|
10
|
+
"format": "uuid",
|
|
11
|
+
"title": "UUID",
|
|
12
|
+
"description": "Universally Unique Identifier."
|
|
13
|
+
},
|
|
14
|
+
"title": {
|
|
15
|
+
"type": "string",
|
|
16
|
+
"title": "Title",
|
|
17
|
+
"description": "Summary of the message content"
|
|
18
|
+
},
|
|
19
|
+
"content": {
|
|
20
|
+
"type": "string",
|
|
21
|
+
"title": "Content",
|
|
22
|
+
"description": "Details of what exactly this message wants to communicate."
|
|
23
|
+
},
|
|
24
|
+
"meta": {
|
|
25
|
+
"$ref": "https://gobl.org/draft-0/cbc/meta",
|
|
26
|
+
"title": "Meta Data",
|
|
27
|
+
"description": "Any additional semi-structured data that might be useful."
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
"type": "object",
|
|
31
|
+
"required": [
|
|
32
|
+
"content"
|
|
33
|
+
],
|
|
34
|
+
"description": "Message represents a simple message object with a title and some content meant.",
|
|
35
|
+
"examples": [
|
|
36
|
+
{
|
|
37
|
+
"content": "This is an example message.",
|
|
38
|
+
"title": "Example Title"
|
|
39
|
+
}
|
|
40
|
+
]
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://gobl.org/draft-0/num/amount",
|
|
4
|
+
"$ref": "#/$defs/Amount",
|
|
5
|
+
"$defs": {
|
|
6
|
+
"Amount": {
|
|
7
|
+
"type": "string",
|
|
8
|
+
"pattern": "^\\-?[0-9]+(\\.[0-9]+)?$",
|
|
9
|
+
"title": "Amount",
|
|
10
|
+
"description": "Quantity with optional decimal places that determine accuracy."
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://gobl.org/draft-0/num/percentage",
|
|
4
|
+
"$ref": "#/$defs/Percentage",
|
|
5
|
+
"$defs": {
|
|
6
|
+
"Percentage": {
|
|
7
|
+
"type": "string",
|
|
8
|
+
"pattern": "^\\-?[0-9]+(\\.[0-9]+)?%$",
|
|
9
|
+
"title": "Percentage",
|
|
10
|
+
"description": "Similar to an Amount, but designed for percentages and includes % symbol in JSON output."
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://gobl.org/draft-0/org/address",
|
|
4
|
+
"$ref": "#/$defs/Address",
|
|
5
|
+
"$defs": {
|
|
6
|
+
"Address": {
|
|
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": "Useful identifier, such as home, work, etc.",
|
|
18
|
+
"examples": [
|
|
19
|
+
"Office"
|
|
20
|
+
]
|
|
21
|
+
},
|
|
22
|
+
"po_box": {
|
|
23
|
+
"type": "string",
|
|
24
|
+
"title": "Post Office Box",
|
|
25
|
+
"description": "Box number or code for the post office box located at the address."
|
|
26
|
+
},
|
|
27
|
+
"num": {
|
|
28
|
+
"type": "string",
|
|
29
|
+
"title": "Number",
|
|
30
|
+
"description": "House or building number in the street."
|
|
31
|
+
},
|
|
32
|
+
"floor": {
|
|
33
|
+
"type": "string",
|
|
34
|
+
"title": "Floor",
|
|
35
|
+
"description": "Floor number within the building."
|
|
36
|
+
},
|
|
37
|
+
"block": {
|
|
38
|
+
"type": "string",
|
|
39
|
+
"title": "Block",
|
|
40
|
+
"description": "Block number within the building."
|
|
41
|
+
},
|
|
42
|
+
"door": {
|
|
43
|
+
"type": "string",
|
|
44
|
+
"title": "Door",
|
|
45
|
+
"description": "Door number within the building."
|
|
46
|
+
},
|
|
47
|
+
"street": {
|
|
48
|
+
"type": "string",
|
|
49
|
+
"title": "Street",
|
|
50
|
+
"description": "First line of street."
|
|
51
|
+
},
|
|
52
|
+
"street_extra": {
|
|
53
|
+
"type": "string",
|
|
54
|
+
"title": "Extended Street",
|
|
55
|
+
"description": "Additional street address details."
|
|
56
|
+
},
|
|
57
|
+
"locality": {
|
|
58
|
+
"type": "string",
|
|
59
|
+
"title": "Locality",
|
|
60
|
+
"description": "Name of a village, town, district, or city, typically inside a region."
|
|
61
|
+
},
|
|
62
|
+
"region": {
|
|
63
|
+
"type": "string",
|
|
64
|
+
"title": "Region",
|
|
65
|
+
"description": "Name of a city, province, county, or state, inside a country."
|
|
66
|
+
},
|
|
67
|
+
"state": {
|
|
68
|
+
"$ref": "https://gobl.org/draft-0/cbc/code",
|
|
69
|
+
"title": "State",
|
|
70
|
+
"description": "State or province code for countries that require it."
|
|
71
|
+
},
|
|
72
|
+
"code": {
|
|
73
|
+
"$ref": "https://gobl.org/draft-0/cbc/code",
|
|
74
|
+
"title": "Code",
|
|
75
|
+
"description": "Post or ZIP code."
|
|
76
|
+
},
|
|
77
|
+
"country": {
|
|
78
|
+
"$ref": "https://gobl.org/draft-0/l10n/iso-country-code",
|
|
79
|
+
"title": "Country",
|
|
80
|
+
"description": "ISO country code."
|
|
81
|
+
},
|
|
82
|
+
"coords": {
|
|
83
|
+
"$ref": "https://gobl.org/draft-0/org/coordinates",
|
|
84
|
+
"title": "Coordinates",
|
|
85
|
+
"description": "When the postal address is not sufficient, coordinates help locate the address more precisely."
|
|
86
|
+
},
|
|
87
|
+
"meta": {
|
|
88
|
+
"$ref": "https://gobl.org/draft-0/cbc/meta",
|
|
89
|
+
"title": "Meta",
|
|
90
|
+
"description": "Any additional semi-structure details about the address."
|
|
91
|
+
}
|
|
92
|
+
},
|
|
93
|
+
"type": "object",
|
|
94
|
+
"description": "Address defines a globally acceptable set of attributes that describes a postal or fiscal address.",
|
|
95
|
+
"recommended": [
|
|
96
|
+
"number",
|
|
97
|
+
"street",
|
|
98
|
+
"locality",
|
|
99
|
+
"region",
|
|
100
|
+
"code",
|
|
101
|
+
"country"
|
|
102
|
+
]
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://gobl.org/draft-0/org/attachment",
|
|
4
|
+
"$ref": "#/$defs/Attachment",
|
|
5
|
+
"$defs": {
|
|
6
|
+
"Attachment": {
|
|
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
|
+
"title": "Key",
|
|
17
|
+
"description": "Key used to identify the attachment inside the document."
|
|
18
|
+
},
|
|
19
|
+
"code": {
|
|
20
|
+
"$ref": "https://gobl.org/draft-0/cbc/code",
|
|
21
|
+
"title": "Code",
|
|
22
|
+
"description": "Code used to identify the payload of the attachment."
|
|
23
|
+
},
|
|
24
|
+
"name": {
|
|
25
|
+
"type": "string",
|
|
26
|
+
"title": "Name",
|
|
27
|
+
"description": "Filename of the attachment."
|
|
28
|
+
},
|
|
29
|
+
"description": {
|
|
30
|
+
"type": "string",
|
|
31
|
+
"title": "Description",
|
|
32
|
+
"description": "Details of why the attachment is being included and details on\nwhat it contains."
|
|
33
|
+
},
|
|
34
|
+
"url": {
|
|
35
|
+
"type": "string",
|
|
36
|
+
"format": "uri",
|
|
37
|
+
"title": "URL",
|
|
38
|
+
"description": "URL of where to find the attachment. Prefer using this field\nover the Data field."
|
|
39
|
+
},
|
|
40
|
+
"digest": {
|
|
41
|
+
"$ref": "https://gobl.org/draft-0/dsig/digest",
|
|
42
|
+
"title": "Digest",
|
|
43
|
+
"description": "Digest is used to verify the integrity of the attachment\nwhen downloaded from the URL."
|
|
44
|
+
},
|
|
45
|
+
"mime": {
|
|
46
|
+
"type": "string",
|
|
47
|
+
"title": "MIME Type",
|
|
48
|
+
"description": "MIME type of the attachment."
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
"type": "object",
|
|
52
|
+
"required": [
|
|
53
|
+
"name"
|
|
54
|
+
],
|
|
55
|
+
"description": "An Attachment provides a structure to be used to attach documents inside a GOBL document, either as a reference via a URL, or directly as a base64 encoded string."
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://gobl.org/draft-0/org/coordinates",
|
|
4
|
+
"$ref": "#/$defs/Coordinates",
|
|
5
|
+
"$defs": {
|
|
6
|
+
"Coordinates": {
|
|
7
|
+
"properties": {
|
|
8
|
+
"lat": {
|
|
9
|
+
"type": "number",
|
|
10
|
+
"title": "Latitude",
|
|
11
|
+
"description": "Decimal latitude coordinate."
|
|
12
|
+
},
|
|
13
|
+
"lon": {
|
|
14
|
+
"type": "number",
|
|
15
|
+
"title": "Longitude",
|
|
16
|
+
"description": "Decimal longitude coordinate."
|
|
17
|
+
},
|
|
18
|
+
"w3w": {
|
|
19
|
+
"type": "string",
|
|
20
|
+
"title": "What 3 Words",
|
|
21
|
+
"description": "What 3 Words text coordinates."
|
|
22
|
+
},
|
|
23
|
+
"geohash": {
|
|
24
|
+
"type": "string",
|
|
25
|
+
"title": "Geohash",
|
|
26
|
+
"description": "Single string coordinate based on geohash standard."
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
"type": "object",
|
|
30
|
+
"description": "Coordinates describes an exact geographical location in the world."
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://gobl.org/draft-0/org/document-ref",
|
|
4
|
+
"$ref": "#/$defs/DocumentRef",
|
|
5
|
+
"$defs": {
|
|
6
|
+
"DocumentRef": {
|
|
7
|
+
"properties": {
|
|
8
|
+
"uuid": {
|
|
9
|
+
"type": "string",
|
|
10
|
+
"format": "uuid",
|
|
11
|
+
"title": "UUID",
|
|
12
|
+
"description": "Universally Unique Identifier."
|
|
13
|
+
},
|
|
14
|
+
"schema": {
|
|
15
|
+
"type": "string",
|
|
16
|
+
"title": "Schema",
|
|
17
|
+
"description": "Schema of the referenced document if different from that of the parent."
|
|
18
|
+
},
|
|
19
|
+
"type": {
|
|
20
|
+
"$ref": "https://gobl.org/draft-0/cbc/key",
|
|
21
|
+
"title": "Type",
|
|
22
|
+
"description": "Type of the document referenced according to the defined schema or that of the\nparent document."
|
|
23
|
+
},
|
|
24
|
+
"issue_date": {
|
|
25
|
+
"$ref": "https://gobl.org/draft-0/cal/date",
|
|
26
|
+
"title": "Issue Date",
|
|
27
|
+
"description": "IssueDate reflects the date the document was issued."
|
|
28
|
+
},
|
|
29
|
+
"series": {
|
|
30
|
+
"$ref": "https://gobl.org/draft-0/cbc/code",
|
|
31
|
+
"title": "Series",
|
|
32
|
+
"description": "Series the referenced document belongs to."
|
|
33
|
+
},
|
|
34
|
+
"code": {
|
|
35
|
+
"$ref": "https://gobl.org/draft-0/cbc/code",
|
|
36
|
+
"title": "Code",
|
|
37
|
+
"description": "Source document's code or other identifier."
|
|
38
|
+
},
|
|
39
|
+
"currency": {
|
|
40
|
+
"$ref": "https://gobl.org/draft-0/currency/code",
|
|
41
|
+
"title": "Currency",
|
|
42
|
+
"description": "Currency used in the document, if different from the parent's currency."
|
|
43
|
+
},
|
|
44
|
+
"lines": {
|
|
45
|
+
"items": {
|
|
46
|
+
"type": "integer"
|
|
47
|
+
},
|
|
48
|
+
"type": "array",
|
|
49
|
+
"title": "Lines",
|
|
50
|
+
"description": "Line index numbers inside the document, if relevant."
|
|
51
|
+
},
|
|
52
|
+
"identities": {
|
|
53
|
+
"items": {
|
|
54
|
+
"$ref": "https://gobl.org/draft-0/org/identity"
|
|
55
|
+
},
|
|
56
|
+
"type": "array",
|
|
57
|
+
"title": "Identities",
|
|
58
|
+
"description": "List of additional codes, IDs, or SKUs which can be used to identify the document or its contents, agreed upon by the supplier and customer."
|
|
59
|
+
},
|
|
60
|
+
"period": {
|
|
61
|
+
"$ref": "https://gobl.org/draft-0/cal/period",
|
|
62
|
+
"title": "Period",
|
|
63
|
+
"description": "Tax period in which the referred document had an effect required by some tax regimes and formats."
|
|
64
|
+
},
|
|
65
|
+
"reason": {
|
|
66
|
+
"type": "string",
|
|
67
|
+
"title": "Reason",
|
|
68
|
+
"description": "Human readable description on why this reference is here or needs to be used."
|
|
69
|
+
},
|
|
70
|
+
"description": {
|
|
71
|
+
"type": "string",
|
|
72
|
+
"title": "Description",
|
|
73
|
+
"description": "Additional details about the document."
|
|
74
|
+
},
|
|
75
|
+
"stamps": {
|
|
76
|
+
"items": {
|
|
77
|
+
"$ref": "https://gobl.org/draft-0/head/stamp"
|
|
78
|
+
},
|
|
79
|
+
"type": "array",
|
|
80
|
+
"title": "Stamps",
|
|
81
|
+
"description": "Seals of approval from other organizations that may need to be listed."
|
|
82
|
+
},
|
|
83
|
+
"url": {
|
|
84
|
+
"type": "string",
|
|
85
|
+
"format": "uri",
|
|
86
|
+
"title": "URL",
|
|
87
|
+
"description": "Link to the source document."
|
|
88
|
+
},
|
|
89
|
+
"tax": {
|
|
90
|
+
"$ref": "https://gobl.org/draft-0/tax/total",
|
|
91
|
+
"title": "Tax",
|
|
92
|
+
"description": "Tax total breakdown from the original document in the provided currency. Should\nonly be included if required by a specific tax regime or addon."
|
|
93
|
+
},
|
|
94
|
+
"payable": {
|
|
95
|
+
"$ref": "https://gobl.org/draft-0/num/amount",
|
|
96
|
+
"title": "Payable",
|
|
97
|
+
"description": "Payable is the total amount that is payable in the referenced document. Only needed\nfor specific tax regimes or addons. This may also be used in some scenarios\nto determine the proportion of the referenced document that has been paid, and\ncalculate the remaining amount due and taxes."
|
|
98
|
+
},
|
|
99
|
+
"ext": {
|
|
100
|
+
"$ref": "https://gobl.org/draft-0/tax/extensions",
|
|
101
|
+
"title": "Extensions",
|
|
102
|
+
"description": "Extensions for additional codes that may be required."
|
|
103
|
+
},
|
|
104
|
+
"meta": {
|
|
105
|
+
"$ref": "https://gobl.org/draft-0/cbc/meta",
|
|
106
|
+
"title": "Meta",
|
|
107
|
+
"description": "Meta contains additional information about the document."
|
|
108
|
+
}
|
|
109
|
+
},
|
|
110
|
+
"type": "object",
|
|
111
|
+
"required": [
|
|
112
|
+
"code"
|
|
113
|
+
],
|
|
114
|
+
"description": "DocumentRef is used to describe an existing document or a specific part of it's contents."
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://gobl.org/draft-0/org/email",
|
|
4
|
+
"$ref": "#/$defs/Email",
|
|
5
|
+
"$defs": {
|
|
6
|
+
"Email": {
|
|
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 the email."
|
|
18
|
+
},
|
|
19
|
+
"addr": {
|
|
20
|
+
"type": "string",
|
|
21
|
+
"title": "Address",
|
|
22
|
+
"description": "Electronic mailing address."
|
|
23
|
+
},
|
|
24
|
+
"meta": {
|
|
25
|
+
"$ref": "https://gobl.org/draft-0/cbc/meta",
|
|
26
|
+
"title": "Meta",
|
|
27
|
+
"description": "Additional fields."
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
"type": "object",
|
|
31
|
+
"required": [
|
|
32
|
+
"addr"
|
|
33
|
+
],
|
|
34
|
+
"description": "Email describes the electronic mailing details."
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://gobl.org/draft-0/org/identity",
|
|
4
|
+
"$ref": "#/$defs/Identity",
|
|
5
|
+
"$defs": {
|
|
6
|
+
"Identity": {
|
|
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": "Optional label useful for non-standard identities to give a bit more context."
|
|
18
|
+
},
|
|
19
|
+
"country": {
|
|
20
|
+
"$ref": "https://gobl.org/draft-0/l10n/iso-country-code",
|
|
21
|
+
"title": "Country",
|
|
22
|
+
"description": "Country from which the identity was issued."
|
|
23
|
+
},
|
|
24
|
+
"key": {
|
|
25
|
+
"$ref": "https://gobl.org/draft-0/cbc/key",
|
|
26
|
+
"title": "Key",
|
|
27
|
+
"description": "Uniquely classify this identity using a key instead of a type."
|
|
28
|
+
},
|
|
29
|
+
"type": {
|
|
30
|
+
"$ref": "https://gobl.org/draft-0/cbc/code",
|
|
31
|
+
"title": "Type",
|
|
32
|
+
"description": "The type of Code being represented and usually specific for\na particular context, country, or tax regime, and cannot be used\nalongside the key."
|
|
33
|
+
},
|
|
34
|
+
"code": {
|
|
35
|
+
"$ref": "https://gobl.org/draft-0/cbc/code",
|
|
36
|
+
"title": "Code",
|
|
37
|
+
"description": "The actual value of the identity code."
|
|
38
|
+
},
|
|
39
|
+
"description": {
|
|
40
|
+
"type": "string",
|
|
41
|
+
"title": "Description",
|
|
42
|
+
"description": "Description adds details about what the code could mean or imply"
|
|
43
|
+
},
|
|
44
|
+
"ext": {
|
|
45
|
+
"$ref": "https://gobl.org/draft-0/tax/extensions",
|
|
46
|
+
"title": "Extensions",
|
|
47
|
+
"description": "Ext provides a way to add additional information to the identity."
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
"type": "object",
|
|
51
|
+
"required": [
|
|
52
|
+
"code"
|
|
53
|
+
],
|
|
54
|
+
"description": "Identity is used to define a code for a specific context."
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://gobl.org/draft-0/org/image",
|
|
4
|
+
"$ref": "#/$defs/Image",
|
|
5
|
+
"$defs": {
|
|
6
|
+
"Image": {
|
|
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 to help identify the image."
|
|
18
|
+
},
|
|
19
|
+
"url": {
|
|
20
|
+
"type": "string",
|
|
21
|
+
"title": "URL",
|
|
22
|
+
"description": "URL of the image"
|
|
23
|
+
},
|
|
24
|
+
"data": {
|
|
25
|
+
"type": "string",
|
|
26
|
+
"contentEncoding": "base64",
|
|
27
|
+
"title": "Data",
|
|
28
|
+
"description": "As an alternative to the URL and only when the source data is small,\nlike an SVG, the raw data may be provided using Base64 encoding."
|
|
29
|
+
},
|
|
30
|
+
"mime": {
|
|
31
|
+
"type": "string",
|
|
32
|
+
"title": "MIME",
|
|
33
|
+
"description": "Format of the image."
|
|
34
|
+
},
|
|
35
|
+
"description": {
|
|
36
|
+
"type": "string",
|
|
37
|
+
"title": "Description",
|
|
38
|
+
"description": "Details of what the image represents."
|
|
39
|
+
},
|
|
40
|
+
"alt": {
|
|
41
|
+
"type": "string",
|
|
42
|
+
"title": "Alt",
|
|
43
|
+
"description": "Alternative text if the image cannot be shown."
|
|
44
|
+
},
|
|
45
|
+
"height": {
|
|
46
|
+
"type": "integer",
|
|
47
|
+
"title": "Height",
|
|
48
|
+
"description": "Height of the image in pixels."
|
|
49
|
+
},
|
|
50
|
+
"width": {
|
|
51
|
+
"type": "integer",
|
|
52
|
+
"title": "Width",
|
|
53
|
+
"description": "Width of the image in pixels."
|
|
54
|
+
},
|
|
55
|
+
"digest": {
|
|
56
|
+
"$ref": "https://gobl.org/draft-0/dsig/digest",
|
|
57
|
+
"title": "Digest",
|
|
58
|
+
"description": "Digest can be used to ensure the image contained at the URL\nis the same one as originally intended."
|
|
59
|
+
},
|
|
60
|
+
"meta": {
|
|
61
|
+
"$ref": "https://gobl.org/draft-0/cbc/meta",
|
|
62
|
+
"title": "Meta",
|
|
63
|
+
"description": "Meta contains additional information about the image."
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
"type": "object",
|
|
67
|
+
"description": "Image describes a logo or photo that represents an entity."
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://gobl.org/draft-0/org/inbox",
|
|
4
|
+
"$ref": "#/$defs/Inbox",
|
|
5
|
+
"$defs": {
|
|
6
|
+
"Inbox": {
|
|
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 inbox."
|
|
18
|
+
},
|
|
19
|
+
"key": {
|
|
20
|
+
"$ref": "https://gobl.org/draft-0/cbc/key",
|
|
21
|
+
"title": "Key",
|
|
22
|
+
"description": "Type of inbox being defined if required for clarification between multiple\ninboxes."
|
|
23
|
+
},
|
|
24
|
+
"scheme": {
|
|
25
|
+
"$ref": "https://gobl.org/draft-0/cbc/code",
|
|
26
|
+
"title": "Scheme",
|
|
27
|
+
"description": "Scheme ID of the code used to identify the inbox. This is context specific\nand usually an ISO 6523 code or CEF (Connecting Europe Facility) code."
|
|
28
|
+
},
|
|
29
|
+
"code": {
|
|
30
|
+
"$ref": "https://gobl.org/draft-0/cbc/code",
|
|
31
|
+
"title": "Code",
|
|
32
|
+
"description": "Code or ID that identifies the Inbox. Mutually exclusive with URL and Email."
|
|
33
|
+
},
|
|
34
|
+
"url": {
|
|
35
|
+
"type": "string",
|
|
36
|
+
"title": "URL",
|
|
37
|
+
"description": "URL of the inbox that includes the protocol, server, and path. May\nbe used instead of the Code to identify the inbox. Mutually exclusive with\nCode and Email."
|
|
38
|
+
},
|
|
39
|
+
"email": {
|
|
40
|
+
"type": "string",
|
|
41
|
+
"title": "Email",
|
|
42
|
+
"description": "Email address for the inbox. Mutually exclusive with Code and URL."
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
"type": "object",
|
|
46
|
+
"description": "Inbox is used to store data about a connection with a service that is responsible for automatically receiving copies of GOBL envelopes or other document formats."
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|