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,245 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://gobl.org/draft-0/pay/instructions",
|
|
4
|
+
"$ref": "#/$defs/Instructions",
|
|
5
|
+
"$defs": {
|
|
6
|
+
"Card": {
|
|
7
|
+
"properties": {
|
|
8
|
+
"first6": {
|
|
9
|
+
"type": "string",
|
|
10
|
+
"title": "First 6",
|
|
11
|
+
"description": "First 6 digits of the card's Primary Account Number (PAN)."
|
|
12
|
+
},
|
|
13
|
+
"last4": {
|
|
14
|
+
"type": "string",
|
|
15
|
+
"title": "Last 4",
|
|
16
|
+
"description": "Last 4 digits of the card's Primary Account Number (PAN)."
|
|
17
|
+
},
|
|
18
|
+
"holder": {
|
|
19
|
+
"type": "string",
|
|
20
|
+
"title": "Holder Name",
|
|
21
|
+
"description": "Name of the person whom the card belongs to."
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
"type": "object",
|
|
25
|
+
"description": "Card contains simplified card holder data as a reference for the customer."
|
|
26
|
+
},
|
|
27
|
+
"CreditTransfer": {
|
|
28
|
+
"properties": {
|
|
29
|
+
"iban": {
|
|
30
|
+
"type": "string",
|
|
31
|
+
"title": "IBAN",
|
|
32
|
+
"description": "International Bank Account Number"
|
|
33
|
+
},
|
|
34
|
+
"bic": {
|
|
35
|
+
"type": "string",
|
|
36
|
+
"title": "BIC",
|
|
37
|
+
"description": "Bank Identifier Code used for international transfers."
|
|
38
|
+
},
|
|
39
|
+
"number": {
|
|
40
|
+
"type": "string",
|
|
41
|
+
"title": "Number",
|
|
42
|
+
"description": "Account number, if IBAN not available."
|
|
43
|
+
},
|
|
44
|
+
"name": {
|
|
45
|
+
"type": "string",
|
|
46
|
+
"title": "Name",
|
|
47
|
+
"description": "Name of the bank."
|
|
48
|
+
},
|
|
49
|
+
"branch": {
|
|
50
|
+
"$ref": "https://gobl.org/draft-0/org/address",
|
|
51
|
+
"title": "Branch",
|
|
52
|
+
"description": "Bank office branch address, not normally required."
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
"type": "object",
|
|
56
|
+
"description": "CreditTransfer contains fields that can be used for making payments via a bank transfer or wire."
|
|
57
|
+
},
|
|
58
|
+
"DirectDebit": {
|
|
59
|
+
"properties": {
|
|
60
|
+
"ref": {
|
|
61
|
+
"type": "string",
|
|
62
|
+
"title": "Mandate Reference",
|
|
63
|
+
"description": "Unique identifier assigned by the payee for referencing the direct debit."
|
|
64
|
+
},
|
|
65
|
+
"creditor": {
|
|
66
|
+
"type": "string",
|
|
67
|
+
"title": "Creditor ID",
|
|
68
|
+
"description": "Unique banking reference that identifies the payee or seller assigned by the bank."
|
|
69
|
+
},
|
|
70
|
+
"account": {
|
|
71
|
+
"type": "string",
|
|
72
|
+
"title": "Account",
|
|
73
|
+
"description": "Account identifier to be debited by the direct debit."
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
"type": "object",
|
|
77
|
+
"description": "DirectDebit defines the data that will be used to make the direct debit."
|
|
78
|
+
},
|
|
79
|
+
"Instructions": {
|
|
80
|
+
"properties": {
|
|
81
|
+
"key": {
|
|
82
|
+
"$ref": "https://gobl.org/draft-0/cbc/key",
|
|
83
|
+
"anyOf": [
|
|
84
|
+
{
|
|
85
|
+
"const": "any",
|
|
86
|
+
"title": "Any",
|
|
87
|
+
"description": "Any method available, no preference."
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
"const": "card",
|
|
91
|
+
"title": "Card",
|
|
92
|
+
"description": "Payment card."
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
"const": "credit-transfer",
|
|
96
|
+
"title": "Credit Transfer",
|
|
97
|
+
"description": "Sender initiated bank or wire transfer."
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
"const": "credit-transfer+sepa",
|
|
101
|
+
"title": "SEPA Credit Transfer",
|
|
102
|
+
"description": "Sender initiated bank or wire transfer via SEPA."
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
"const": "debit-transfer",
|
|
106
|
+
"title": "Debit Transfer",
|
|
107
|
+
"description": "Receiver initiated bank or wire transfer."
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
"const": "cash",
|
|
111
|
+
"title": "Cash",
|
|
112
|
+
"description": "Cash in hand."
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
"const": "cheque",
|
|
116
|
+
"title": "Cheque",
|
|
117
|
+
"description": "Cheque from bank."
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
"const": "bank-draft",
|
|
121
|
+
"title": "Draft",
|
|
122
|
+
"description": "Bankers Draft or Bank Cheque."
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
"const": "direct-debit",
|
|
126
|
+
"title": "Direct Debit",
|
|
127
|
+
"description": "Direct debit from the customers bank account."
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
"const": "direct-debit+sepa",
|
|
131
|
+
"title": "SEPA Direct Debit",
|
|
132
|
+
"description": "Direct debit from the customers bank account via SEPA."
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
"const": "online",
|
|
136
|
+
"title": "Online",
|
|
137
|
+
"description": "Online or web payment."
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
"const": "promissory-note",
|
|
141
|
+
"title": "Promissory Note",
|
|
142
|
+
"description": "Promissory note contract."
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
"const": "netting",
|
|
146
|
+
"title": "Netting",
|
|
147
|
+
"description": "Intercompany clearing or clearing between partners."
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
"const": "other",
|
|
151
|
+
"title": "Other",
|
|
152
|
+
"description": "Other or mutually defined means of payment."
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
"pattern": "^(?:[a-z]|[a-z0-9][a-z0-9-+]*[a-z0-9])$",
|
|
156
|
+
"title": "Regime Specific Key"
|
|
157
|
+
}
|
|
158
|
+
],
|
|
159
|
+
"title": "Key",
|
|
160
|
+
"description": "The payment means expected or that have been arranged to be used to make the payment."
|
|
161
|
+
},
|
|
162
|
+
"detail": {
|
|
163
|
+
"type": "string",
|
|
164
|
+
"title": "Detail",
|
|
165
|
+
"description": "Optional text description of the payment method"
|
|
166
|
+
},
|
|
167
|
+
"ref": {
|
|
168
|
+
"$ref": "https://gobl.org/draft-0/cbc/code",
|
|
169
|
+
"title": "Reference",
|
|
170
|
+
"description": "Remittance information or concept, a code value used to link the payment with the invoice."
|
|
171
|
+
},
|
|
172
|
+
"credit_transfer": {
|
|
173
|
+
"items": {
|
|
174
|
+
"$ref": "#/$defs/CreditTransfer"
|
|
175
|
+
},
|
|
176
|
+
"type": "array",
|
|
177
|
+
"title": "Credit Transfer",
|
|
178
|
+
"description": "Instructions for sending payment via a bank transfer."
|
|
179
|
+
},
|
|
180
|
+
"card": {
|
|
181
|
+
"$ref": "#/$defs/Card",
|
|
182
|
+
"title": "Card",
|
|
183
|
+
"description": "Details of the payment that will be made via a credit or debit card."
|
|
184
|
+
},
|
|
185
|
+
"direct_debit": {
|
|
186
|
+
"$ref": "#/$defs/DirectDebit",
|
|
187
|
+
"title": "Direct Debit",
|
|
188
|
+
"description": "A group of terms that can be used by the customer or payer to consolidate direct debit payments."
|
|
189
|
+
},
|
|
190
|
+
"online": {
|
|
191
|
+
"items": {
|
|
192
|
+
"$ref": "#/$defs/Online"
|
|
193
|
+
},
|
|
194
|
+
"type": "array",
|
|
195
|
+
"title": "Online",
|
|
196
|
+
"description": "Array of online payment options"
|
|
197
|
+
},
|
|
198
|
+
"notes": {
|
|
199
|
+
"type": "string",
|
|
200
|
+
"title": "Notes",
|
|
201
|
+
"description": "Any additional instructions that may be required to make the payment."
|
|
202
|
+
},
|
|
203
|
+
"ext": {
|
|
204
|
+
"$ref": "https://gobl.org/draft-0/tax/extensions",
|
|
205
|
+
"title": "Extensions",
|
|
206
|
+
"description": "Extension key-pairs values defined by a tax regime."
|
|
207
|
+
},
|
|
208
|
+
"meta": {
|
|
209
|
+
"$ref": "https://gobl.org/draft-0/cbc/meta",
|
|
210
|
+
"title": "Meta",
|
|
211
|
+
"description": "Non-structured additional data that may be useful."
|
|
212
|
+
}
|
|
213
|
+
},
|
|
214
|
+
"type": "object",
|
|
215
|
+
"required": [
|
|
216
|
+
"key"
|
|
217
|
+
],
|
|
218
|
+
"description": "Instructions determine how the payment has or should be made."
|
|
219
|
+
},
|
|
220
|
+
"Online": {
|
|
221
|
+
"properties": {
|
|
222
|
+
"key": {
|
|
223
|
+
"$ref": "https://gobl.org/draft-0/cbc/key",
|
|
224
|
+
"title": "Key",
|
|
225
|
+
"description": "Key identifier for this online payment method."
|
|
226
|
+
},
|
|
227
|
+
"label": {
|
|
228
|
+
"type": "string",
|
|
229
|
+
"title": "Label",
|
|
230
|
+
"description": "Descriptive label for the online provider."
|
|
231
|
+
},
|
|
232
|
+
"url": {
|
|
233
|
+
"type": "string",
|
|
234
|
+
"title": "URL",
|
|
235
|
+
"description": "URL to be used for payment."
|
|
236
|
+
}
|
|
237
|
+
},
|
|
238
|
+
"type": "object",
|
|
239
|
+
"required": [
|
|
240
|
+
"url"
|
|
241
|
+
],
|
|
242
|
+
"description": "Online provides the details required to make a payment online using a website"
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
}
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://gobl.org/draft-0/pay/terms",
|
|
4
|
+
"$ref": "#/$defs/Terms",
|
|
5
|
+
"$defs": {
|
|
6
|
+
"DueDate": {
|
|
7
|
+
"properties": {
|
|
8
|
+
"date": {
|
|
9
|
+
"$ref": "https://gobl.org/draft-0/cal/date",
|
|
10
|
+
"title": "Date",
|
|
11
|
+
"description": "When the payment is due."
|
|
12
|
+
},
|
|
13
|
+
"notes": {
|
|
14
|
+
"type": "string",
|
|
15
|
+
"title": "Notes",
|
|
16
|
+
"description": "Other details to take into account for the due date."
|
|
17
|
+
},
|
|
18
|
+
"amount": {
|
|
19
|
+
"$ref": "https://gobl.org/draft-0/num/amount",
|
|
20
|
+
"title": "Amount",
|
|
21
|
+
"description": "How much needs to be paid by the date."
|
|
22
|
+
},
|
|
23
|
+
"percent": {
|
|
24
|
+
"$ref": "https://gobl.org/draft-0/num/percentage",
|
|
25
|
+
"title": "Percent",
|
|
26
|
+
"description": "Percentage of the total that should be paid by the date."
|
|
27
|
+
},
|
|
28
|
+
"currency": {
|
|
29
|
+
"$ref": "https://gobl.org/draft-0/currency/code",
|
|
30
|
+
"title": "Currency",
|
|
31
|
+
"description": "If different from the parent document's base currency."
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
"type": "object",
|
|
35
|
+
"required": [
|
|
36
|
+
"date",
|
|
37
|
+
"amount"
|
|
38
|
+
],
|
|
39
|
+
"description": "DueDate contains an amount that should be paid by the given date."
|
|
40
|
+
},
|
|
41
|
+
"Terms": {
|
|
42
|
+
"properties": {
|
|
43
|
+
"key": {
|
|
44
|
+
"$ref": "https://gobl.org/draft-0/cbc/key",
|
|
45
|
+
"oneOf": [
|
|
46
|
+
{
|
|
47
|
+
"const": "end-of-month",
|
|
48
|
+
"title": "End of Month",
|
|
49
|
+
"description": "End of month"
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"const": "due-date",
|
|
53
|
+
"title": "Due Date",
|
|
54
|
+
"description": "Due on a specific date"
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"const": "deferred",
|
|
58
|
+
"title": "Deferred",
|
|
59
|
+
"description": "Deferred until after the due date"
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"const": "proximo",
|
|
63
|
+
"title": "Proximo",
|
|
64
|
+
"description": "Month after the present"
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"const": "instant",
|
|
68
|
+
"title": "Instant",
|
|
69
|
+
"description": "On receipt of invoice"
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"const": "elective",
|
|
73
|
+
"title": "Elective",
|
|
74
|
+
"description": "Chosen by the buyer"
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"const": "pending",
|
|
78
|
+
"title": "Pending",
|
|
79
|
+
"description": "Seller to advise buyer in separate transaction"
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
"const": "advanced",
|
|
83
|
+
"title": "Advanced",
|
|
84
|
+
"description": "Payment made in advance"
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
"const": "delivery",
|
|
88
|
+
"title": "Delivery",
|
|
89
|
+
"description": "Payment on Delivery"
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
"const": "undefined",
|
|
93
|
+
"title": "Undefined",
|
|
94
|
+
"description": "Not yet defined"
|
|
95
|
+
}
|
|
96
|
+
],
|
|
97
|
+
"title": "Key",
|
|
98
|
+
"description": "Type of terms to be applied."
|
|
99
|
+
},
|
|
100
|
+
"detail": {
|
|
101
|
+
"type": "string",
|
|
102
|
+
"title": "Detail",
|
|
103
|
+
"description": "Text detail of the chosen payment terms."
|
|
104
|
+
},
|
|
105
|
+
"due_dates": {
|
|
106
|
+
"items": {
|
|
107
|
+
"$ref": "#/$defs/DueDate"
|
|
108
|
+
},
|
|
109
|
+
"type": "array",
|
|
110
|
+
"title": "Due Dates",
|
|
111
|
+
"description": "Set of dates for agreed payments."
|
|
112
|
+
},
|
|
113
|
+
"notes": {
|
|
114
|
+
"type": "string",
|
|
115
|
+
"title": "Notes",
|
|
116
|
+
"description": "Description of the conditions for payment."
|
|
117
|
+
},
|
|
118
|
+
"ext": {
|
|
119
|
+
"$ref": "https://gobl.org/draft-0/tax/extensions",
|
|
120
|
+
"title": "Extensions",
|
|
121
|
+
"description": "Extensions to the terms for local codes."
|
|
122
|
+
}
|
|
123
|
+
},
|
|
124
|
+
"type": "object",
|
|
125
|
+
"description": "Terms defines when we expect the customer to pay, or have paid, for the contents of the document."
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
}
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://gobl.org/draft-0/regimes/mx/food-vouchers",
|
|
4
|
+
"$ref": "#/$defs/FoodVouchers",
|
|
5
|
+
"$defs": {
|
|
6
|
+
"FoodVouchers": {
|
|
7
|
+
"properties": {
|
|
8
|
+
"employer_registration": {
|
|
9
|
+
"type": "string",
|
|
10
|
+
"title": "Employer Registration",
|
|
11
|
+
"description": "Customer's employer registration number (maps to `registroPatronal`)."
|
|
12
|
+
},
|
|
13
|
+
"account_number": {
|
|
14
|
+
"type": "string",
|
|
15
|
+
"title": "Account Number",
|
|
16
|
+
"description": "Customer's account number (maps to `numeroDeCuenta`)."
|
|
17
|
+
},
|
|
18
|
+
"total": {
|
|
19
|
+
"$ref": "https://gobl.org/draft-0/num/amount",
|
|
20
|
+
"title": "Total",
|
|
21
|
+
"description": "Sum of all line amounts (calculated, maps to `total`).",
|
|
22
|
+
"calculated": true
|
|
23
|
+
},
|
|
24
|
+
"lines": {
|
|
25
|
+
"items": {
|
|
26
|
+
"$ref": "#/$defs/FoodVouchersLine"
|
|
27
|
+
},
|
|
28
|
+
"type": "array",
|
|
29
|
+
"title": "Lines",
|
|
30
|
+
"description": "List of food vouchers issued to the customer's employees (maps to `Conceptos`)."
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
"type": "object",
|
|
34
|
+
"required": [
|
|
35
|
+
"account_number",
|
|
36
|
+
"total",
|
|
37
|
+
"lines"
|
|
38
|
+
],
|
|
39
|
+
"description": "FoodVouchers carries the data to produce a CFDI's \"Complemento de Vales de Despensa\" (version 1.0) providing detailed information about food vouchers issued by an e-wallet supplier to its customer's employees."
|
|
40
|
+
},
|
|
41
|
+
"FoodVouchersEmployee": {
|
|
42
|
+
"properties": {
|
|
43
|
+
"tax_code": {
|
|
44
|
+
"$ref": "https://gobl.org/draft-0/cbc/code",
|
|
45
|
+
"title": "Employee's Tax Identity Code",
|
|
46
|
+
"description": "Employee's tax identity code (maps to `rfc`)."
|
|
47
|
+
},
|
|
48
|
+
"curp": {
|
|
49
|
+
"$ref": "https://gobl.org/draft-0/cbc/code",
|
|
50
|
+
"title": "Employee's CURP",
|
|
51
|
+
"description": "Employee's CURP (\"Clave Única de Registro de Población\", maps to `curp`)."
|
|
52
|
+
},
|
|
53
|
+
"name": {
|
|
54
|
+
"type": "string",
|
|
55
|
+
"title": "Employee's Name",
|
|
56
|
+
"description": "Employee's name (maps to `nombre`)."
|
|
57
|
+
},
|
|
58
|
+
"social_security": {
|
|
59
|
+
"$ref": "https://gobl.org/draft-0/cbc/code",
|
|
60
|
+
"title": "Employee's Social Security Number",
|
|
61
|
+
"description": "Employee's Social Security Number (maps to `numSeguridadSocial`)."
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
"type": "object",
|
|
65
|
+
"required": [
|
|
66
|
+
"tax_code",
|
|
67
|
+
"curp",
|
|
68
|
+
"name"
|
|
69
|
+
],
|
|
70
|
+
"description": "FoodVouchersEmployee represents an employee that received a food voucher."
|
|
71
|
+
},
|
|
72
|
+
"FoodVouchersLine": {
|
|
73
|
+
"properties": {
|
|
74
|
+
"i": {
|
|
75
|
+
"type": "integer",
|
|
76
|
+
"title": "Index",
|
|
77
|
+
"description": "Line number starting from 1 (calculated).",
|
|
78
|
+
"calculated": true
|
|
79
|
+
},
|
|
80
|
+
"e_wallet_id": {
|
|
81
|
+
"$ref": "https://gobl.org/draft-0/cbc/code",
|
|
82
|
+
"title": "E-wallet Identifier",
|
|
83
|
+
"description": "Identifier of the e-wallet that received the food voucher (maps to `Identificador`)."
|
|
84
|
+
},
|
|
85
|
+
"issue_date_time": {
|
|
86
|
+
"$ref": "https://gobl.org/draft-0/cal/date-time",
|
|
87
|
+
"title": "Issue Date and Time",
|
|
88
|
+
"description": "Date and time of the food voucher's issue (maps to `Fecha`)."
|
|
89
|
+
},
|
|
90
|
+
"employee": {
|
|
91
|
+
"$ref": "#/$defs/FoodVouchersEmployee",
|
|
92
|
+
"title": "Employee",
|
|
93
|
+
"description": "Employee that received the food voucher."
|
|
94
|
+
},
|
|
95
|
+
"amount": {
|
|
96
|
+
"$ref": "https://gobl.org/draft-0/num/amount",
|
|
97
|
+
"title": "Amount",
|
|
98
|
+
"description": "Amount of the food voucher (maps to `importe`)."
|
|
99
|
+
}
|
|
100
|
+
},
|
|
101
|
+
"type": "object",
|
|
102
|
+
"required": [
|
|
103
|
+
"i",
|
|
104
|
+
"e_wallet_id",
|
|
105
|
+
"issue_date_time",
|
|
106
|
+
"amount"
|
|
107
|
+
],
|
|
108
|
+
"description": "FoodVouchersLine represents a single food voucher issued to the e-wallet of one of the customer's employees."
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
}
|
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://gobl.org/draft-0/regimes/mx/fuel-account-balance",
|
|
4
|
+
"$ref": "#/$defs/FuelAccountBalance",
|
|
5
|
+
"$defs": {
|
|
6
|
+
"FuelAccountBalance": {
|
|
7
|
+
"properties": {
|
|
8
|
+
"account_number": {
|
|
9
|
+
"type": "string",
|
|
10
|
+
"title": "Account Number",
|
|
11
|
+
"description": "Customer's account number (maps to `NumeroDeCuenta`)."
|
|
12
|
+
},
|
|
13
|
+
"subtotal": {
|
|
14
|
+
"$ref": "https://gobl.org/draft-0/num/amount",
|
|
15
|
+
"title": "Subtotal",
|
|
16
|
+
"description": "Sum of all line totals (i.e. taxes not included) (calculated, maps to `SubTotal`).",
|
|
17
|
+
"calculated": true
|
|
18
|
+
},
|
|
19
|
+
"total": {
|
|
20
|
+
"$ref": "https://gobl.org/draft-0/num/amount",
|
|
21
|
+
"title": "Total",
|
|
22
|
+
"description": "Grand total after taxes have been applied (calculated, maps to `Total`).",
|
|
23
|
+
"calculated": true
|
|
24
|
+
},
|
|
25
|
+
"lines": {
|
|
26
|
+
"items": {
|
|
27
|
+
"$ref": "#/$defs/FuelAccountLine"
|
|
28
|
+
},
|
|
29
|
+
"type": "array",
|
|
30
|
+
"title": "Lines",
|
|
31
|
+
"description": "List of fuel purchases made with the customer's e-wallets (maps to `Conceptos`)."
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
"type": "object",
|
|
35
|
+
"required": [
|
|
36
|
+
"account_number",
|
|
37
|
+
"subtotal",
|
|
38
|
+
"total",
|
|
39
|
+
"lines"
|
|
40
|
+
],
|
|
41
|
+
"description": "FuelAccountBalance carries the data to produce a CFDI's \"Complemento de Estado de Cuenta de Combustibles para Monederos Electrónicos\" (version 1.2 revision B) providing detailed information about fuel purchases made with electronic wallets."
|
|
42
|
+
},
|
|
43
|
+
"FuelAccountItem": {
|
|
44
|
+
"properties": {
|
|
45
|
+
"type": {
|
|
46
|
+
"$ref": "https://gobl.org/draft-0/cbc/code",
|
|
47
|
+
"title": "Type",
|
|
48
|
+
"description": "Type of fuel (one of `c_ClaveTipoCombustible` codes, maps to `TipoCombustible`)."
|
|
49
|
+
},
|
|
50
|
+
"unit": {
|
|
51
|
+
"$ref": "https://gobl.org/draft-0/org/unit",
|
|
52
|
+
"title": "Unit",
|
|
53
|
+
"description": "Reference unit of measure used in the price and the quantity (maps to `Unidad`)."
|
|
54
|
+
},
|
|
55
|
+
"name": {
|
|
56
|
+
"type": "string",
|
|
57
|
+
"title": "Name",
|
|
58
|
+
"description": "Name of the fuel (maps to `NombreCombustible`)."
|
|
59
|
+
},
|
|
60
|
+
"price": {
|
|
61
|
+
"$ref": "https://gobl.org/draft-0/num/amount",
|
|
62
|
+
"title": "Price",
|
|
63
|
+
"description": "Base price of a single unit of the fuel without taxes (maps to `ValorUnitario`)."
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
"type": "object",
|
|
67
|
+
"required": [
|
|
68
|
+
"type",
|
|
69
|
+
"name",
|
|
70
|
+
"price"
|
|
71
|
+
],
|
|
72
|
+
"description": "FuelAccountItem provides the details of a fuel purchase."
|
|
73
|
+
},
|
|
74
|
+
"FuelAccountLine": {
|
|
75
|
+
"properties": {
|
|
76
|
+
"i": {
|
|
77
|
+
"type": "integer",
|
|
78
|
+
"title": "Index",
|
|
79
|
+
"description": "Index of the line starting from 1 (calculated)",
|
|
80
|
+
"calculated": true
|
|
81
|
+
},
|
|
82
|
+
"e_wallet_id": {
|
|
83
|
+
"$ref": "https://gobl.org/draft-0/cbc/code",
|
|
84
|
+
"title": "E-wallet Identifier",
|
|
85
|
+
"description": "Identifier of the e-wallet used to make the purchase (maps to `Identificador`)."
|
|
86
|
+
},
|
|
87
|
+
"purchase_date_time": {
|
|
88
|
+
"$ref": "https://gobl.org/draft-0/cal/date-time",
|
|
89
|
+
"title": "Purchase Date and Time",
|
|
90
|
+
"description": "Date and time of the purchase (maps to `Fecha`)."
|
|
91
|
+
},
|
|
92
|
+
"vendor_tax_code": {
|
|
93
|
+
"$ref": "https://gobl.org/draft-0/cbc/code",
|
|
94
|
+
"title": "Vendor's Tax Identity Code",
|
|
95
|
+
"description": "Tax Identity Code of the fuel's vendor (maps to `Rfc`)"
|
|
96
|
+
},
|
|
97
|
+
"service_station_code": {
|
|
98
|
+
"$ref": "https://gobl.org/draft-0/cbc/code",
|
|
99
|
+
"title": "Service Station Code",
|
|
100
|
+
"description": "Code of the service station where the purchase was made (maps to `ClaveEstacion`)."
|
|
101
|
+
},
|
|
102
|
+
"quantity": {
|
|
103
|
+
"$ref": "https://gobl.org/draft-0/num/amount",
|
|
104
|
+
"title": "Quantity",
|
|
105
|
+
"description": "Amount of fuel units purchased (maps to `Cantidad`)"
|
|
106
|
+
},
|
|
107
|
+
"item": {
|
|
108
|
+
"$ref": "#/$defs/FuelAccountItem",
|
|
109
|
+
"title": "Item",
|
|
110
|
+
"description": "Details of the fuel purchased."
|
|
111
|
+
},
|
|
112
|
+
"purchase_code": {
|
|
113
|
+
"$ref": "https://gobl.org/draft-0/cbc/code",
|
|
114
|
+
"title": "Purchase Code",
|
|
115
|
+
"description": "Identifier of the purchase (maps to `FolioOperacion`)."
|
|
116
|
+
},
|
|
117
|
+
"total": {
|
|
118
|
+
"$ref": "https://gobl.org/draft-0/num/amount",
|
|
119
|
+
"title": "Total",
|
|
120
|
+
"description": "Result of quantity multiplied by the unit price (maps to `Importe`).",
|
|
121
|
+
"calculated": true
|
|
122
|
+
},
|
|
123
|
+
"taxes": {
|
|
124
|
+
"items": {
|
|
125
|
+
"$ref": "#/$defs/FuelAccountTax"
|
|
126
|
+
},
|
|
127
|
+
"type": "array",
|
|
128
|
+
"title": "Taxes",
|
|
129
|
+
"description": "Map of taxes applied to the purchase (maps to `Traslados`)."
|
|
130
|
+
}
|
|
131
|
+
},
|
|
132
|
+
"type": "object",
|
|
133
|
+
"required": [
|
|
134
|
+
"i",
|
|
135
|
+
"e_wallet_id",
|
|
136
|
+
"purchase_date_time",
|
|
137
|
+
"vendor_tax_code",
|
|
138
|
+
"service_station_code",
|
|
139
|
+
"quantity",
|
|
140
|
+
"item",
|
|
141
|
+
"purchase_code",
|
|
142
|
+
"total",
|
|
143
|
+
"taxes"
|
|
144
|
+
],
|
|
145
|
+
"description": "FuelAccountLine represents a single fuel purchase made with an e-wallet issued by the invoice's supplier."
|
|
146
|
+
},
|
|
147
|
+
"FuelAccountTax": {
|
|
148
|
+
"properties": {
|
|
149
|
+
"cat": {
|
|
150
|
+
"$ref": "https://gobl.org/draft-0/cbc/code",
|
|
151
|
+
"title": "Category",
|
|
152
|
+
"description": "Category that identifies the tax (\"VAT\" or \"IEPS\", maps to `Impuesto`)"
|
|
153
|
+
},
|
|
154
|
+
"percent": {
|
|
155
|
+
"$ref": "https://gobl.org/draft-0/num/percentage",
|
|
156
|
+
"title": "Percent",
|
|
157
|
+
"description": "Percent applicable to the line total (tasa) to use instead of Rate (maps to `TasaoCuota`)"
|
|
158
|
+
},
|
|
159
|
+
"rate": {
|
|
160
|
+
"$ref": "https://gobl.org/draft-0/num/amount",
|
|
161
|
+
"title": "Rate",
|
|
162
|
+
"description": "Rate is a fixed fee to apply to the line quantity (cuota) (maps to `TasaOCuota`)"
|
|
163
|
+
},
|
|
164
|
+
"amount": {
|
|
165
|
+
"$ref": "https://gobl.org/draft-0/num/amount",
|
|
166
|
+
"title": "Amount",
|
|
167
|
+
"description": "Total amount of the tax once the percent or rate has been applied (maps to `Importe`).",
|
|
168
|
+
"calculated": true
|
|
169
|
+
}
|
|
170
|
+
},
|
|
171
|
+
"type": "object",
|
|
172
|
+
"required": [
|
|
173
|
+
"cat",
|
|
174
|
+
"amount"
|
|
175
|
+
],
|
|
176
|
+
"description": "FuelAccountTax represents a single tax applied to a fuel purchase."
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://gobl.org/draft-0/schema/object",
|
|
4
|
+
"$ref": "#/$defs/Object",
|
|
5
|
+
"$defs": {
|
|
6
|
+
"Object": {
|
|
7
|
+
"type": "object",
|
|
8
|
+
"title": "Object",
|
|
9
|
+
"description": "Data object whose type is determined from the \u003ccode\u003e$schema\u003c/code\u003e property."
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
}
|