gobl 0.8.0 → 0.10.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (87) hide show
  1. checksums.yaml +4 -4
  2. data/data/regimes/co.json +55 -1
  3. data/data/regimes/es.json +570 -64
  4. data/data/regimes/it.json +1182 -0
  5. data/lib/gobl/bill/charge.rb +1 -1
  6. data/lib/gobl/bill/delivery.rb +1 -1
  7. data/lib/gobl/bill/discount.rb +1 -1
  8. data/lib/gobl/bill/document_reference.rb +1 -1
  9. data/lib/gobl/bill/invoice.rb +19 -8
  10. data/lib/gobl/bill/line.rb +3 -3
  11. data/lib/gobl/bill/line_charge.rb +1 -1
  12. data/lib/gobl/bill/line_discount.rb +1 -1
  13. data/lib/gobl/bill/ordering.rb +1 -1
  14. data/lib/gobl/bill/outlay.rb +3 -3
  15. data/lib/gobl/bill/payment.rb +1 -1
  16. data/lib/gobl/bill/preceding.rb +23 -23
  17. data/lib/gobl/bill/tax.rb +4 -4
  18. data/lib/gobl/bill/totals.rb +5 -5
  19. data/lib/gobl/cal/date.rb +2 -2
  20. data/lib/gobl/cal/period.rb +3 -3
  21. data/lib/gobl/cbc/code.rb +3 -3
  22. data/lib/gobl/cbc/key.rb +2 -2
  23. data/lib/gobl/cbc/meta.rb +1 -1
  24. data/lib/gobl/cbc/note.rb +6 -6
  25. data/lib/gobl/cbc/stamp.rb +3 -3
  26. data/lib/gobl/currency/code.rb +4 -3
  27. data/lib/gobl/currency/exchange_rate.rb +3 -3
  28. data/lib/gobl/document.rb +5 -2
  29. data/lib/gobl/dsig/digest.rb +3 -3
  30. data/lib/gobl/dsig/signature.rb +2 -2
  31. data/lib/gobl/enum.rb +9 -67
  32. data/lib/gobl/envelope.rb +5 -5
  33. data/lib/gobl/header.rb +4 -4
  34. data/lib/gobl/i18n/string.rb +1 -1
  35. data/lib/gobl/l10n/code.rb +2 -2
  36. data/lib/gobl/l10n/country_code.rb +4 -3
  37. data/lib/gobl/note/message.rb +4 -4
  38. data/lib/gobl/org/address.rb +2 -2
  39. data/lib/gobl/org/coordinates.rb +1 -1
  40. data/lib/gobl/org/email.rb +2 -2
  41. data/lib/gobl/org/identity.rb +38 -0
  42. data/lib/gobl/org/image.rb +1 -1
  43. data/lib/gobl/org/inbox.rb +3 -3
  44. data/lib/gobl/org/item.rb +10 -10
  45. data/lib/gobl/org/name.rb +3 -3
  46. data/lib/gobl/org/party.rb +7 -7
  47. data/lib/gobl/org/person.rb +2 -7
  48. data/lib/gobl/org/registration.rb +1 -1
  49. data/lib/gobl/org/telephone.rb +2 -2
  50. data/lib/gobl/org/unit.rb +8 -3
  51. data/lib/gobl/org/website.rb +2 -2
  52. data/lib/gobl/pay/advance.rb +3 -3
  53. data/lib/gobl/pay/card.rb +3 -3
  54. data/lib/gobl/pay/credit_transfer.rb +1 -1
  55. data/lib/gobl/pay/direct_debit.rb +1 -1
  56. data/lib/gobl/pay/due_date.rb +3 -3
  57. data/lib/gobl/pay/instructions.rb +19 -4
  58. data/lib/gobl/pay/online.rb +2 -2
  59. data/lib/gobl/pay/terms.rb +19 -4
  60. data/lib/gobl/tax/category.rb +14 -4
  61. data/lib/gobl/tax/category_total.rb +5 -5
  62. data/lib/gobl/tax/combo.rb +7 -2
  63. data/lib/gobl/tax/identity.rb +16 -6
  64. data/lib/gobl/tax/key_definition.rb +38 -0
  65. data/lib/gobl/tax/preceding_definitions.rb +27 -0
  66. data/lib/gobl/tax/rate.rb +11 -4
  67. data/lib/gobl/tax/rate_total.rb +4 -4
  68. data/lib/gobl/tax/rate_total_surcharge.rb +3 -3
  69. data/lib/gobl/tax/rate_value.rb +2 -2
  70. data/lib/gobl/tax/regime.rb +19 -9
  71. data/lib/gobl/tax/scenario.rb +37 -0
  72. data/lib/gobl/tax/scenario_set.rb +29 -0
  73. data/lib/gobl/tax/set.rb +1 -1
  74. data/lib/gobl/tax/tag.rb +33 -0
  75. data/lib/gobl/tax/total.rb +2 -2
  76. data/lib/gobl/tax/zone.rb +2 -2
  77. data/lib/gobl/uuid/uuid.rb +2 -2
  78. data/lib/gobl/version.rb +1 -1
  79. metadata +10 -11
  80. data/lib/gobl/bill/invoice_type.rb +0 -32
  81. data/lib/gobl/cbc/note_key.rb +0 -50
  82. data/lib/gobl/org/item_code.rb +0 -28
  83. data/lib/gobl/pay/method_key.rb +0 -32
  84. data/lib/gobl/pay/term_key.rb +0 -35
  85. data/lib/gobl/tax/scheme.rb +0 -44
  86. data/lib/gobl/tax/source_key.rb +0 -30
  87. data/lib/gobl/value.rb +0 -77
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2ee8e2de79cf9e57ae8187c6877157c5028b39f6230578b07bef5cdb308f1860
4
- data.tar.gz: d11b23074bf2e2bd1510ffb0275f9e709a4e1c9abd1ed98fb0740fadba02a720
3
+ metadata.gz: 411d128fa9ef6abe37669b9cef151f814220c867e52a6293ba0d79ffd1b840fd
4
+ data.tar.gz: 7580b135c8bba421d242f09c6273cc9ab12a29aaef1b5766a4b2cd47b8cb6e28
5
5
  SHA512:
6
- metadata.gz: 15918f8e090b12328ad922cecb2b2ec5352c795683571ab83d2b27982f0c8c3928e6c7c7f15d4fee5f3f8a13a6846df3c964d938639c970d9b4e2ff696291380
7
- data.tar.gz: 568f54e8d72ad88f613736de1bc79c1787def71fc4592690f5ec884282b7f8fc335c6cc8dd767805875d6bdd5d5fadf84ba49ee0e9ec95cccf51eda039e751e6
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": "Zero"
14654
+ "es": "Cero"
14601
14655
  },
14602
14656
  "values": [
14603
14657
  {