gobl 0.19.0 → 0.20.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (93) hide show
  1. checksums.yaml +4 -4
  2. data/data/regimes/co.json +11 -14575
  3. data/data/regimes/es.json +28 -499
  4. data/data/regimes/it.json +9 -644
  5. data/data/regimes/mx.json +14 -2
  6. data/data/regimes/pt.json +34 -194
  7. data/lib/generated/gobl/bill/charge.rb +1 -1
  8. data/lib/generated/gobl/bill/correction_options.rb +3 -3
  9. data/lib/generated/gobl/bill/delivery.rb +1 -1
  10. data/lib/generated/gobl/bill/discount.rb +1 -1
  11. data/lib/generated/gobl/bill/document_reference.rb +1 -1
  12. data/lib/generated/gobl/bill/invoice.rb +4 -3
  13. data/lib/generated/gobl/bill/line.rb +1 -1
  14. data/lib/generated/gobl/bill/line_charge.rb +1 -1
  15. data/lib/generated/gobl/bill/line_discount.rb +1 -1
  16. data/lib/generated/gobl/bill/ordering.rb +1 -1
  17. data/lib/generated/gobl/bill/outlay.rb +1 -1
  18. data/lib/generated/gobl/bill/payment.rb +1 -1
  19. data/lib/generated/gobl/bill/preceding.rb +14 -3
  20. data/lib/generated/gobl/bill/tax.rb +1 -1
  21. data/lib/generated/gobl/bill/totals.rb +1 -1
  22. data/lib/generated/gobl/cal/date.rb +1 -1
  23. data/lib/generated/gobl/cal/date_time.rb +1 -1
  24. data/lib/generated/gobl/cal/period.rb +1 -1
  25. data/lib/generated/gobl/cbc/code.rb +1 -1
  26. data/lib/generated/gobl/{tax → cbc}/code_definition.rb +8 -3
  27. data/lib/generated/gobl/cbc/code_map.rb +1 -1
  28. data/lib/generated/gobl/cbc/key.rb +1 -1
  29. data/lib/generated/gobl/{tax → cbc}/key_definition.rb +17 -7
  30. data/lib/generated/gobl/cbc/meta.rb +1 -1
  31. data/lib/generated/gobl/cbc/note.rb +1 -1
  32. data/lib/generated/gobl/currency/code.rb +1 -1
  33. data/lib/generated/gobl/currency/exchange_rate.rb +1 -1
  34. data/lib/generated/gobl/dsig/digest.rb +1 -1
  35. data/lib/generated/gobl/dsig/signature.rb +1 -1
  36. data/lib/generated/gobl/envelope.rb +1 -1
  37. data/lib/generated/gobl/head/header.rb +1 -1
  38. data/lib/generated/gobl/head/stamp.rb +1 -1
  39. data/lib/generated/gobl/i18n/string.rb +1 -1
  40. data/lib/generated/gobl/l10n/code.rb +1 -1
  41. data/lib/generated/gobl/l10n/country_code.rb +1 -1
  42. data/lib/generated/gobl/note/message.rb +1 -1
  43. data/lib/generated/gobl/org/address.rb +1 -1
  44. data/lib/generated/gobl/org/coordinates.rb +1 -1
  45. data/lib/generated/gobl/org/email.rb +1 -1
  46. data/lib/generated/gobl/org/identity.rb +1 -1
  47. data/lib/generated/gobl/org/image.rb +1 -1
  48. data/lib/generated/gobl/org/inbox.rb +1 -1
  49. data/lib/generated/gobl/org/item.rb +3 -3
  50. data/lib/generated/gobl/org/name.rb +1 -1
  51. data/lib/generated/gobl/org/party.rb +3 -3
  52. data/lib/generated/gobl/org/person.rb +1 -1
  53. data/lib/generated/gobl/org/registration.rb +1 -1
  54. data/lib/generated/gobl/org/telephone.rb +1 -1
  55. data/lib/generated/gobl/org/unit.rb +1 -1
  56. data/lib/generated/gobl/org/website.rb +1 -1
  57. data/lib/generated/gobl/pay/advance.rb +1 -1
  58. data/lib/generated/gobl/pay/card.rb +1 -1
  59. data/lib/generated/gobl/pay/credit_transfer.rb +1 -1
  60. data/lib/generated/gobl/pay/direct_debit.rb +1 -1
  61. data/lib/generated/gobl/pay/due_date.rb +1 -1
  62. data/lib/generated/gobl/pay/instructions.rb +1 -1
  63. data/lib/generated/gobl/pay/online.rb +1 -1
  64. data/lib/generated/gobl/pay/terms.rb +1 -1
  65. data/lib/generated/gobl/regimes/mx/food_vouchers.rb +1 -1
  66. data/lib/generated/gobl/regimes/mx/food_vouchers_employee.rb +1 -1
  67. data/lib/generated/gobl/regimes/mx/food_vouchers_line.rb +1 -1
  68. data/lib/generated/gobl/regimes/mx/fuel_account_balance.rb +1 -1
  69. data/lib/generated/gobl/regimes/mx/fuel_account_item.rb +1 -1
  70. data/lib/generated/gobl/regimes/mx/fuel_account_line.rb +1 -1
  71. data/lib/generated/gobl/regimes/mx/fuel_account_tax.rb +1 -1
  72. data/lib/generated/gobl/schema/object.rb +1 -1
  73. data/lib/generated/gobl/tax/category.rb +1 -1
  74. data/lib/generated/gobl/tax/category_total.rb +1 -1
  75. data/lib/generated/gobl/tax/combo.rb +3 -3
  76. data/lib/generated/gobl/tax/correction_definition.rb +1 -1
  77. data/lib/generated/gobl/tax/{ext_map.rb → extensions.rb} +3 -3
  78. data/lib/generated/gobl/tax/identity.rb +1 -6
  79. data/lib/generated/gobl/tax/rate.rb +1 -1
  80. data/lib/generated/gobl/tax/rate_total.rb +3 -3
  81. data/lib/generated/gobl/tax/rate_total_surcharge.rb +1 -1
  82. data/lib/generated/gobl/tax/rate_value.rb +5 -5
  83. data/lib/generated/gobl/tax/regime.rb +13 -18
  84. data/lib/generated/gobl/tax/scenario.rb +1 -1
  85. data/lib/generated/gobl/tax/scenario_set.rb +1 -1
  86. data/lib/generated/gobl/tax/set.rb +1 -1
  87. data/lib/generated/gobl/tax/source.rb +1 -1
  88. data/lib/generated/gobl/tax/total.rb +1 -1
  89. data/lib/generated/gobl/uuid/uuid.rb +1 -1
  90. data/lib/gobl/operations/validation_result.rb +1 -3
  91. data/lib/gobl/version.rb +1 -1
  92. metadata +5 -6
  93. data/lib/generated/gobl/tax/zone.rb +0 -48
data/data/regimes/es.json CHANGED
@@ -80,6 +80,28 @@
80
80
  "es": "Contribuyente en régimen simplificado"
81
81
  }
82
82
  },
83
+ {
84
+ "key": "facturae",
85
+ "name": {
86
+ "en": "FacturaE",
87
+ "es": "FacturaE"
88
+ },
89
+ "desc": {
90
+ "en": "Invoice must comply with the FacturaE standard.",
91
+ "es": "La factura debe cumplir con el estándar FacturaE."
92
+ }
93
+ },
94
+ {
95
+ "key": "ticketbai",
96
+ "name": {
97
+ "en": "TicketBAI",
98
+ "es": "TicketBAI"
99
+ },
100
+ "desc": {
101
+ "en": "Invoice must comply with the TicketBAI specifications.",
102
+ "es": "La factura debe cumplir con el estándar TicketBAI."
103
+ }
104
+ },
83
105
  {
84
106
  "key": "travel-agency",
85
107
  "name": {
@@ -497,7 +519,9 @@
497
519
  {
498
520
  "type": [
499
521
  "standard",
500
- "corrective"
522
+ "corrective",
523
+ "credit-note",
524
+ "debit-note"
501
525
  ],
502
526
  "codes": {
503
527
  "facturae-invoice-document-type": "FC"
@@ -529,7 +553,9 @@
529
553
  },
530
554
  {
531
555
  "type": [
532
- "corrective"
556
+ "corrective",
557
+ "credit-note",
558
+ "debit-note"
533
559
  ],
534
560
  "codes": {
535
561
  "facturae-invoice-class": "OR"
@@ -989,502 +1015,5 @@
989
1015
  "facturae-tax-type-code": "04"
990
1016
  }
991
1017
  }
992
- ],
993
- "zones": [
994
- {
995
- "code": "VI",
996
- "region": {
997
- "es": "Ávila"
998
- },
999
- "codes": {
1000
- "post": "01"
1001
- }
1002
- },
1003
- {
1004
- "code": "AB",
1005
- "region": {
1006
- "es": "Albacete"
1007
- },
1008
- "codes": {
1009
- "post": "02"
1010
- }
1011
- },
1012
- {
1013
- "code": "A",
1014
- "region": {
1015
- "es": "Alicante"
1016
- },
1017
- "codes": {
1018
- "post": "03"
1019
- }
1020
- },
1021
- {
1022
- "code": "AL",
1023
- "region": {
1024
- "es": "Almería"
1025
- },
1026
- "codes": {
1027
- "post": "04"
1028
- }
1029
- },
1030
- {
1031
- "code": "AV",
1032
- "region": {
1033
- "es": "Ávila"
1034
- },
1035
- "codes": {
1036
- "post": "05"
1037
- }
1038
- },
1039
- {
1040
- "code": "BA",
1041
- "region": {
1042
- "es": "Badajoz"
1043
- },
1044
- "codes": {
1045
- "post": "06"
1046
- }
1047
- },
1048
- {
1049
- "code": "PM",
1050
- "region": {
1051
- "es": "Baleares"
1052
- },
1053
- "codes": {
1054
- "post": "07"
1055
- }
1056
- },
1057
- {
1058
- "code": "IB",
1059
- "region": {
1060
- "es": "Baleares"
1061
- },
1062
- "codes": {
1063
- "post": "07"
1064
- }
1065
- },
1066
- {
1067
- "code": "B",
1068
- "region": {
1069
- "es": "Barcelona"
1070
- },
1071
- "codes": {
1072
- "post": "08"
1073
- }
1074
- },
1075
- {
1076
- "code": "BU",
1077
- "region": {
1078
- "es": "Burgos"
1079
- },
1080
- "codes": {
1081
- "post": "09"
1082
- }
1083
- },
1084
- {
1085
- "code": "CC",
1086
- "region": {
1087
- "es": "Cáceres"
1088
- },
1089
- "codes": {
1090
- "post": "10"
1091
- }
1092
- },
1093
- {
1094
- "code": "CA",
1095
- "region": {
1096
- "es": "Cadiz"
1097
- },
1098
- "codes": {
1099
- "post": "11"
1100
- }
1101
- },
1102
- {
1103
- "code": "CS",
1104
- "region": {
1105
- "es": "Castellón"
1106
- },
1107
- "codes": {
1108
- "post": "12"
1109
- }
1110
- },
1111
- {
1112
- "code": "CR",
1113
- "region": {
1114
- "es": "Ciudad Real"
1115
- },
1116
- "codes": {
1117
- "post": "13"
1118
- }
1119
- },
1120
- {
1121
- "code": "CO",
1122
- "region": {
1123
- "es": "Cordoba"
1124
- },
1125
- "codes": {
1126
- "post": "14"
1127
- }
1128
- },
1129
- {
1130
- "code": "C",
1131
- "region": {
1132
- "es": "La Coruña"
1133
- },
1134
- "codes": {
1135
- "post": "15"
1136
- }
1137
- },
1138
- {
1139
- "code": "CU",
1140
- "region": {
1141
- "es": "Cuenca"
1142
- },
1143
- "codes": {
1144
- "post": "16"
1145
- }
1146
- },
1147
- {
1148
- "code": "GE",
1149
- "region": {
1150
- "es": "Gerona"
1151
- },
1152
- "codes": {
1153
- "post": "17"
1154
- }
1155
- },
1156
- {
1157
- "code": "GI",
1158
- "region": {
1159
- "es": "Girona"
1160
- },
1161
- "codes": {
1162
- "post": "17"
1163
- }
1164
- },
1165
- {
1166
- "code": "GR",
1167
- "region": {
1168
- "es": "Granada"
1169
- },
1170
- "codes": {
1171
- "post": "18"
1172
- }
1173
- },
1174
- {
1175
- "code": "GU",
1176
- "region": {
1177
- "es": "Guadalajara"
1178
- },
1179
- "codes": {
1180
- "post": "19"
1181
- }
1182
- },
1183
- {
1184
- "code": "SS",
1185
- "region": {
1186
- "es": "Guipúzcoa"
1187
- },
1188
- "codes": {
1189
- "post": "20"
1190
- }
1191
- },
1192
- {
1193
- "code": "H",
1194
- "region": {
1195
- "es": "Huelva"
1196
- },
1197
- "codes": {
1198
- "post": "21"
1199
- }
1200
- },
1201
- {
1202
- "code": "HU",
1203
- "region": {
1204
- "es": "Huesca"
1205
- },
1206
- "codes": {
1207
- "post": "22"
1208
- }
1209
- },
1210
- {
1211
- "code": "J",
1212
- "region": {
1213
- "es": "Jaén"
1214
- },
1215
- "codes": {
1216
- "post": "23"
1217
- }
1218
- },
1219
- {
1220
- "code": "LE",
1221
- "region": {
1222
- "es": "León"
1223
- },
1224
- "codes": {
1225
- "post": "24"
1226
- }
1227
- },
1228
- {
1229
- "code": "L",
1230
- "region": {
1231
- "es": "Lérida / Lleida"
1232
- },
1233
- "codes": {
1234
- "post": "25"
1235
- }
1236
- },
1237
- {
1238
- "code": "LO",
1239
- "region": {
1240
- "es": "La Rioja"
1241
- },
1242
- "codes": {
1243
- "post": "26"
1244
- }
1245
- },
1246
- {
1247
- "code": "LU",
1248
- "region": {
1249
- "es": "Lugo"
1250
- },
1251
- "codes": {
1252
- "post": "27"
1253
- }
1254
- },
1255
- {
1256
- "code": "M",
1257
- "region": {
1258
- "es": "Madrid"
1259
- },
1260
- "codes": {
1261
- "post": "28"
1262
- }
1263
- },
1264
- {
1265
- "code": "MA",
1266
- "region": {
1267
- "es": "Málaga"
1268
- },
1269
- "codes": {
1270
- "post": "29"
1271
- }
1272
- },
1273
- {
1274
- "code": "MU",
1275
- "region": {
1276
- "es": "Murcia"
1277
- },
1278
- "codes": {
1279
- "post": "30"
1280
- }
1281
- },
1282
- {
1283
- "code": "NA",
1284
- "region": {
1285
- "es": "Navarra"
1286
- },
1287
- "codes": {
1288
- "post": "31"
1289
- }
1290
- },
1291
- {
1292
- "code": "OR",
1293
- "region": {
1294
- "es": "Orense"
1295
- },
1296
- "codes": {
1297
- "post": "32"
1298
- }
1299
- },
1300
- {
1301
- "code": "OU",
1302
- "region": {
1303
- "es": "Orense"
1304
- },
1305
- "codes": {
1306
- "post": "32"
1307
- }
1308
- },
1309
- {
1310
- "code": "O",
1311
- "region": {
1312
- "es": "Asturias"
1313
- },
1314
- "codes": {
1315
- "post": "33"
1316
- }
1317
- },
1318
- {
1319
- "code": "P",
1320
- "region": {
1321
- "es": "Palencia"
1322
- },
1323
- "codes": {
1324
- "post": "34"
1325
- }
1326
- },
1327
- {
1328
- "code": "GC",
1329
- "region": {
1330
- "es": "Las Palmas"
1331
- },
1332
- "codes": {
1333
- "post": "35"
1334
- }
1335
- },
1336
- {
1337
- "code": "PO",
1338
- "region": {
1339
- "es": "Pontevedra"
1340
- },
1341
- "codes": {
1342
- "post": "36"
1343
- }
1344
- },
1345
- {
1346
- "code": "SA",
1347
- "region": {
1348
- "es": "Salamanca"
1349
- },
1350
- "codes": {
1351
- "post": "37"
1352
- }
1353
- },
1354
- {
1355
- "code": "TF",
1356
- "region": {
1357
- "es": "Santa Cruz de Tenerife"
1358
- },
1359
- "codes": {
1360
- "post": "38"
1361
- }
1362
- },
1363
- {
1364
- "code": "S",
1365
- "region": {
1366
- "es": "Cantabria"
1367
- },
1368
- "codes": {
1369
- "post": "39"
1370
- }
1371
- },
1372
- {
1373
- "code": "SG",
1374
- "region": {
1375
- "es": "Segovia"
1376
- },
1377
- "codes": {
1378
- "post": "40"
1379
- }
1380
- },
1381
- {
1382
- "code": "SE",
1383
- "region": {
1384
- "es": "Sevilla"
1385
- },
1386
- "codes": {
1387
- "post": "41"
1388
- }
1389
- },
1390
- {
1391
- "code": "SO",
1392
- "region": {
1393
- "es": "Soria"
1394
- },
1395
- "codes": {
1396
- "post": "42"
1397
- }
1398
- },
1399
- {
1400
- "code": "T",
1401
- "region": {
1402
- "es": "Tarragona"
1403
- },
1404
- "codes": {
1405
- "post": "43"
1406
- }
1407
- },
1408
- {
1409
- "code": "TE",
1410
- "region": {
1411
- "es": "Teruel"
1412
- },
1413
- "codes": {
1414
- "post": "44"
1415
- }
1416
- },
1417
- {
1418
- "code": "TO",
1419
- "region": {
1420
- "es": "Toledo"
1421
- },
1422
- "codes": {
1423
- "post": "45"
1424
- }
1425
- },
1426
- {
1427
- "code": "V",
1428
- "region": {
1429
- "es": "Valencia"
1430
- },
1431
- "codes": {
1432
- "post": "46"
1433
- }
1434
- },
1435
- {
1436
- "code": "VA",
1437
- "region": {
1438
- "es": "Valladolid"
1439
- },
1440
- "codes": {
1441
- "post": "47"
1442
- }
1443
- },
1444
- {
1445
- "code": "BI",
1446
- "region": {
1447
- "es": "Vizcaya"
1448
- },
1449
- "codes": {
1450
- "post": "48"
1451
- }
1452
- },
1453
- {
1454
- "code": "ZA",
1455
- "region": {
1456
- "es": "Zamora"
1457
- },
1458
- "codes": {
1459
- "post": "49"
1460
- }
1461
- },
1462
- {
1463
- "code": "Z",
1464
- "region": {
1465
- "es": "Zaragoza"
1466
- },
1467
- "codes": {
1468
- "post": "50"
1469
- }
1470
- },
1471
- {
1472
- "code": "CE",
1473
- "region": {
1474
- "es": "Ceuta"
1475
- },
1476
- "codes": {
1477
- "post": "51"
1478
- }
1479
- },
1480
- {
1481
- "code": "ML",
1482
- "region": {
1483
- "es": "Melilla"
1484
- },
1485
- "codes": {
1486
- "post": "52"
1487
- }
1488
- }
1489
1018
  ]
1490
1019
  }