gobl 0.8.0 → 0.10.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/data/regimes/co.json +55 -1
- data/data/regimes/es.json +570 -64
- data/data/regimes/it.json +1182 -0
- data/lib/gobl/bill/charge.rb +1 -1
- data/lib/gobl/bill/delivery.rb +1 -1
- data/lib/gobl/bill/discount.rb +1 -1
- data/lib/gobl/bill/document_reference.rb +1 -1
- data/lib/gobl/bill/invoice.rb +19 -8
- data/lib/gobl/bill/line.rb +3 -3
- data/lib/gobl/bill/line_charge.rb +1 -1
- data/lib/gobl/bill/line_discount.rb +1 -1
- data/lib/gobl/bill/ordering.rb +1 -1
- data/lib/gobl/bill/outlay.rb +3 -3
- data/lib/gobl/bill/payment.rb +1 -1
- data/lib/gobl/bill/preceding.rb +23 -23
- data/lib/gobl/bill/tax.rb +4 -4
- data/lib/gobl/bill/totals.rb +5 -5
- data/lib/gobl/cal/date.rb +2 -2
- data/lib/gobl/cal/period.rb +3 -3
- data/lib/gobl/cbc/code.rb +3 -3
- data/lib/gobl/cbc/key.rb +2 -2
- data/lib/gobl/cbc/meta.rb +1 -1
- data/lib/gobl/cbc/note.rb +6 -6
- data/lib/gobl/cbc/stamp.rb +3 -3
- data/lib/gobl/currency/code.rb +4 -3
- data/lib/gobl/currency/exchange_rate.rb +3 -3
- data/lib/gobl/document.rb +5 -2
- data/lib/gobl/dsig/digest.rb +3 -3
- data/lib/gobl/dsig/signature.rb +2 -2
- data/lib/gobl/enum.rb +9 -67
- data/lib/gobl/envelope.rb +5 -5
- data/lib/gobl/header.rb +4 -4
- data/lib/gobl/i18n/string.rb +1 -1
- data/lib/gobl/l10n/code.rb +2 -2
- data/lib/gobl/l10n/country_code.rb +4 -3
- data/lib/gobl/note/message.rb +4 -4
- data/lib/gobl/org/address.rb +2 -2
- data/lib/gobl/org/coordinates.rb +1 -1
- data/lib/gobl/org/email.rb +2 -2
- data/lib/gobl/org/identity.rb +38 -0
- data/lib/gobl/org/image.rb +1 -1
- data/lib/gobl/org/inbox.rb +3 -3
- data/lib/gobl/org/item.rb +10 -10
- data/lib/gobl/org/name.rb +3 -3
- data/lib/gobl/org/party.rb +7 -7
- data/lib/gobl/org/person.rb +2 -7
- data/lib/gobl/org/registration.rb +1 -1
- data/lib/gobl/org/telephone.rb +2 -2
- data/lib/gobl/org/unit.rb +8 -3
- data/lib/gobl/org/website.rb +2 -2
- data/lib/gobl/pay/advance.rb +3 -3
- data/lib/gobl/pay/card.rb +3 -3
- data/lib/gobl/pay/credit_transfer.rb +1 -1
- data/lib/gobl/pay/direct_debit.rb +1 -1
- data/lib/gobl/pay/due_date.rb +3 -3
- data/lib/gobl/pay/instructions.rb +19 -4
- data/lib/gobl/pay/online.rb +2 -2
- data/lib/gobl/pay/terms.rb +19 -4
- data/lib/gobl/tax/category.rb +14 -4
- data/lib/gobl/tax/category_total.rb +5 -5
- data/lib/gobl/tax/combo.rb +7 -2
- data/lib/gobl/tax/identity.rb +16 -6
- data/lib/gobl/tax/key_definition.rb +38 -0
- data/lib/gobl/tax/preceding_definitions.rb +27 -0
- data/lib/gobl/tax/rate.rb +11 -4
- data/lib/gobl/tax/rate_total.rb +4 -4
- data/lib/gobl/tax/rate_total_surcharge.rb +3 -3
- data/lib/gobl/tax/rate_value.rb +2 -2
- data/lib/gobl/tax/regime.rb +19 -9
- data/lib/gobl/tax/scenario.rb +37 -0
- data/lib/gobl/tax/scenario_set.rb +29 -0
- data/lib/gobl/tax/set.rb +1 -1
- data/lib/gobl/tax/tag.rb +33 -0
- data/lib/gobl/tax/total.rb +2 -2
- data/lib/gobl/tax/zone.rb +2 -2
- data/lib/gobl/uuid/uuid.rb +2 -2
- data/lib/gobl/version.rb +1 -1
- metadata +10 -11
- data/lib/gobl/bill/invoice_type.rb +0 -32
- data/lib/gobl/cbc/note_key.rb +0 -50
- data/lib/gobl/org/item_code.rb +0 -28
- data/lib/gobl/pay/method_key.rb +0 -32
- data/lib/gobl/pay/term_key.rb +0 -35
- data/lib/gobl/tax/scheme.rb +0 -44
- data/lib/gobl/tax/source_key.rb +0 -30
- data/lib/gobl/value.rb +0 -77
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 411d128fa9ef6abe37669b9cef151f814220c867e52a6293ba0d79ffd1b840fd
|
4
|
+
data.tar.gz: 7580b135c8bba421d242f09c6273cc9ab12a29aaef1b5766a4b2cd47b8cb6e28
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 90592d49b7ca8e7e52092c3c378770868efb59c07661dba09301df3bd33fab5653f3bd5ff9e9d35100d421a2894584a13221eb84e8b02fce675701aeace261eb
|
7
|
+
data.tar.gz: b703c64f4c26d39dc24576c9875af0aaa4e25bfd42d46c19a6d322bc738d8d3c2aff31ddbd3e57ab4276bd2eae5aae1872622abc99f038dd7d5abf16a155ff49
|
data/data/regimes/co.json
CHANGED
@@ -14581,6 +14581,60 @@
|
|
14581
14581
|
}
|
14582
14582
|
],
|
14583
14583
|
"currency": "COP",
|
14584
|
+
"preceding": {
|
14585
|
+
"correction_methods": [
|
14586
|
+
{
|
14587
|
+
"key": "partial",
|
14588
|
+
"desc": {
|
14589
|
+
"en": "Partial refund of part of the goods or services.",
|
14590
|
+
"es": "Devolución de parte de los bienes; no aceptación de partes del servicio."
|
14591
|
+
},
|
14592
|
+
"meta": {
|
14593
|
+
"dian": "1"
|
14594
|
+
}
|
14595
|
+
},
|
14596
|
+
{
|
14597
|
+
"key": "revoked",
|
14598
|
+
"desc": {
|
14599
|
+
"en": "Previous document has been completely cancelled.",
|
14600
|
+
"es": "Anulación de la factura anterior."
|
14601
|
+
},
|
14602
|
+
"meta": {
|
14603
|
+
"dian": "2"
|
14604
|
+
}
|
14605
|
+
},
|
14606
|
+
{
|
14607
|
+
"key": "discount",
|
14608
|
+
"desc": {
|
14609
|
+
"en": "Partial or total discount.",
|
14610
|
+
"es": "Rebaja o descuento parcial o total."
|
14611
|
+
},
|
14612
|
+
"meta": {
|
14613
|
+
"dian": "3"
|
14614
|
+
}
|
14615
|
+
},
|
14616
|
+
{
|
14617
|
+
"key": "price-adjustment",
|
14618
|
+
"desc": {
|
14619
|
+
"en": "Ajuste de precio.",
|
14620
|
+
"es": "Price adjustment."
|
14621
|
+
},
|
14622
|
+
"meta": {
|
14623
|
+
"dian": "4"
|
14624
|
+
}
|
14625
|
+
},
|
14626
|
+
{
|
14627
|
+
"key": "other",
|
14628
|
+
"desc": {
|
14629
|
+
"en": "Otros.",
|
14630
|
+
"es": "Other."
|
14631
|
+
},
|
14632
|
+
"meta": {
|
14633
|
+
"dian": "5"
|
14634
|
+
}
|
14635
|
+
}
|
14636
|
+
]
|
14637
|
+
},
|
14584
14638
|
"categories": [
|
14585
14639
|
{
|
14586
14640
|
"code": "VAT",
|
@@ -14597,7 +14651,7 @@
|
|
14597
14651
|
"key": "zero",
|
14598
14652
|
"name": {
|
14599
14653
|
"en": "Zero Rate",
|
14600
|
-
"es": "
|
14654
|
+
"es": "Cero"
|
14601
14655
|
},
|
14602
14656
|
"values": [
|
14603
14657
|
{
|