gobl 0.4.1 → 0.5.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (89) hide show
  1. checksums.yaml +4 -4
  2. data/data/regimes/co.json +14696 -0
  3. data/data/{tax/ES.json → regimes/es.json} +57 -57
  4. data/data/{tax/FR.json → regimes/fr.json} +1 -1
  5. data/data/{tax/GB.json → regimes/gb.json} +1 -1
  6. data/data/{tax/NL.json → regimes/nl.json} +1 -1
  7. data/lib/extensions.rb +1 -1
  8. data/lib/gobl/bill/advances.rb +1 -1
  9. data/lib/gobl/bill/charge.rb +3 -3
  10. data/lib/gobl/bill/delivery.rb +1 -1
  11. data/lib/gobl/bill/discount.rb +3 -3
  12. data/lib/gobl/bill/exchange_rates.rb +1 -1
  13. data/lib/gobl/bill/invoice.rb +5 -5
  14. data/lib/gobl/bill/invoice_type.rb +1 -1
  15. data/lib/gobl/bill/line.rb +3 -3
  16. data/lib/gobl/bill/line_charge.rb +1 -1
  17. data/lib/gobl/bill/line_discount.rb +1 -1
  18. data/lib/gobl/bill/ordering.rb +1 -1
  19. data/lib/gobl/bill/outlay.rb +1 -1
  20. data/lib/gobl/bill/payment.rb +1 -1
  21. data/lib/gobl/bill/preceding.rb +5 -5
  22. data/lib/gobl/bill/scheme_keys.rb +2 -2
  23. data/lib/gobl/bill/tax.rb +5 -5
  24. data/lib/gobl/bill/totals.rb +1 -1
  25. data/lib/gobl/cal/date.rb +1 -1
  26. data/lib/gobl/cal/period.rb +1 -1
  27. data/lib/gobl/{org → cbc}/code.rb +3 -3
  28. data/lib/gobl/{org → cbc}/key.rb +3 -3
  29. data/lib/gobl/{org → cbc}/meta.rb +2 -2
  30. data/lib/gobl/{org → cbc}/note.rb +3 -3
  31. data/lib/gobl/{org → cbc}/note_key.rb +3 -3
  32. data/lib/gobl/{org → cbc}/stamp.rb +5 -5
  33. data/lib/gobl/currency/code.rb +1 -1
  34. data/lib/gobl/currency/exchange_rate.rb +1 -1
  35. data/lib/gobl/document.rb +1 -1
  36. data/lib/gobl/dsig/digest.rb +1 -1
  37. data/lib/gobl/dsig/signature.rb +1 -1
  38. data/lib/gobl/envelope.rb +1 -1
  39. data/lib/gobl/header.rb +5 -5
  40. data/lib/gobl/i18n/string.rb +1 -1
  41. data/lib/gobl/l10n/code.rb +1 -1
  42. data/lib/gobl/l10n/country_code.rb +1 -1
  43. data/lib/gobl/note/message.rb +3 -3
  44. data/lib/gobl/org/address.rb +5 -6
  45. data/lib/gobl/org/coordinates.rb +1 -1
  46. data/lib/gobl/org/email.rb +3 -3
  47. data/lib/gobl/org/inbox.rb +5 -5
  48. data/lib/gobl/org/item.rb +3 -3
  49. data/lib/gobl/org/item_code.rb +1 -1
  50. data/lib/gobl/org/name.rb +3 -3
  51. data/lib/gobl/org/party.rb +5 -5
  52. data/lib/gobl/org/person.rb +3 -3
  53. data/lib/gobl/org/registration.rb +1 -1
  54. data/lib/gobl/org/telephone.rb +1 -1
  55. data/lib/gobl/org/unit.rb +1 -1
  56. data/lib/gobl/pay/advance.rb +1 -1
  57. data/lib/gobl/pay/card.rb +1 -1
  58. data/lib/gobl/pay/credit_transfer.rb +1 -1
  59. data/lib/gobl/pay/direct_debit.rb +1 -1
  60. data/lib/gobl/pay/due_date.rb +1 -1
  61. data/lib/gobl/pay/instructions.rb +3 -3
  62. data/lib/gobl/pay/method_key.rb +1 -1
  63. data/lib/gobl/pay/online.rb +1 -1
  64. data/lib/gobl/pay/term_key.rb +1 -1
  65. data/lib/gobl/pay/terms.rb +1 -1
  66. data/lib/gobl/tax/category.rb +4 -4
  67. data/lib/gobl/tax/category_total.rb +3 -3
  68. data/lib/gobl/tax/combo.rb +5 -5
  69. data/lib/gobl/{org/tax_identity.rb → tax/identity.rb} +11 -11
  70. data/lib/gobl/tax/rate.rb +4 -4
  71. data/lib/gobl/tax/rate_total.rb +3 -3
  72. data/lib/gobl/tax/rate_total_surcharge.rb +1 -1
  73. data/lib/gobl/tax/rate_value.rb +2 -2
  74. data/lib/gobl/tax/{region.rb → regime.rb} +14 -14
  75. data/lib/gobl/tax/scheme.rb +8 -8
  76. data/lib/gobl/tax/schemes.rb +1 -1
  77. data/lib/gobl/tax/set.rb +1 -1
  78. data/lib/gobl/{org → tax}/source_key.rb +3 -3
  79. data/lib/gobl/tax/total.rb +1 -1
  80. data/lib/gobl/tax/zone.rb +43 -0
  81. data/lib/gobl/uuid/uuid.rb +1 -1
  82. data/lib/gobl/version.rb +1 -1
  83. data/lib/gobl.rb +2 -1
  84. data/lib/gobl_extensions/tax/regime_helper.rb +35 -0
  85. metadata +18 -19
  86. data/data/tax/CO.json +0 -10212
  87. data/lib/gobl/tax/localities.rb +0 -14
  88. data/lib/gobl/tax/locality.rb +0 -34
  89. data/lib/gobl_extensions/tax/region_helper.rb +0 -35
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 594b838941c29e9ce2bfe2747abbb937e2c767fe214b77d76ad3ffb2020f8d63
4
- data.tar.gz: aeb80a2111b5f5461ab8400cd6e5750f14c2844ddf573f6e5c5eff2a692126c5
3
+ metadata.gz: b479ee62ef32dbaa2e66cb78e435f94aebac4c7de6e88123a6199ebda6a9b736
4
+ data.tar.gz: a992cf731f0e831f9bd55d9e0c22fb5eb121aadac9b4fc5c9b8ae4b9f186a153
5
5
  SHA512:
6
- metadata.gz: 33a72c1f33a5105707b03f5fecaa43dd12b2d98992326c7c439e99caf25a482506843f93fe651df63a075f8e14bb57d5c8cb5b4c0476836bb3c58cd7a5282031
7
- data.tar.gz: 9364242fea9d335b1a82f5c056215aaf25008b2ee9b5c39c1d16d127eab52d71655d0ed4d6b71a28dcb376e684c46c67dc411cc6647382354cfa8a0976eea322
6
+ metadata.gz: 054074531fd9c7cd66603102f09fc208a6c901d4428bf01dd1e2ce64a3d1124cca4d1822170acec6e6581ea48d8ab26acc3d5c9de054bb4e34566432b43cfc97
7
+ data.tar.gz: b6d64640d208536688c65487c9ad7ac38420ff0c57edfb8043c02daaaa99bfa98b2e55b794a20bd3fdf161f9d162015b3d1e0fdc39fb8f93ccdba7504f76f6e9