gobl 0.3.3 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (80) hide show
  1. checksums.yaml +4 -4
  2. data/data/tax/CO.json +9891 -99
  3. data/lib/gobl/bill/advances.rb +1 -1
  4. data/lib/gobl/bill/charge.rb +1 -1
  5. data/lib/gobl/bill/delivery.rb +1 -1
  6. data/lib/gobl/bill/discount.rb +1 -1
  7. data/lib/gobl/bill/exchange_rates.rb +1 -1
  8. data/lib/gobl/bill/invoice.rb +4 -4
  9. data/lib/gobl/bill/invoice_type.rb +1 -1
  10. data/lib/gobl/bill/line.rb +1 -1
  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 +1 -1
  15. data/lib/gobl/bill/payment.rb +1 -1
  16. data/lib/gobl/bill/preceding.rb +14 -9
  17. data/lib/gobl/bill/scheme_keys.rb +1 -1
  18. data/lib/gobl/bill/tax.rb +1 -1
  19. data/lib/gobl/bill/totals.rb +1 -1
  20. data/lib/gobl/cal/date.rb +1 -1
  21. data/lib/gobl/cal/period.rb +1 -1
  22. data/lib/gobl/currency/code.rb +1 -1
  23. data/lib/gobl/currency/exchange_rate.rb +1 -1
  24. data/lib/gobl/document.rb +1 -1
  25. data/lib/gobl/dsig/digest.rb +1 -1
  26. data/lib/gobl/dsig/signature.rb +1 -1
  27. data/lib/gobl/envelope.rb +1 -1
  28. data/lib/gobl/header.rb +3 -3
  29. data/lib/gobl/i18n/string.rb +1 -1
  30. data/lib/gobl/l10n/code.rb +1 -1
  31. data/lib/gobl/l10n/country_code.rb +1 -1
  32. data/lib/gobl/note/message.rb +1 -1
  33. data/lib/gobl/org/address.rb +1 -1
  34. data/lib/gobl/org/code.rb +1 -1
  35. data/lib/gobl/org/coordinates.rb +1 -1
  36. data/lib/gobl/org/email.rb +1 -1
  37. data/lib/gobl/org/inbox.rb +1 -1
  38. data/lib/gobl/org/item.rb +1 -1
  39. data/lib/gobl/org/item_code.rb +1 -1
  40. data/lib/gobl/org/key.rb +1 -1
  41. data/lib/gobl/org/meta.rb +1 -1
  42. data/lib/gobl/org/name.rb +1 -1
  43. data/lib/gobl/org/note.rb +1 -1
  44. data/lib/gobl/org/note_key.rb +1 -1
  45. data/lib/gobl/org/party.rb +1 -1
  46. data/lib/gobl/org/person.rb +1 -1
  47. data/lib/gobl/org/registration.rb +1 -1
  48. data/lib/gobl/org/source_key.rb +1 -1
  49. data/lib/gobl/org/stamp.rb +29 -0
  50. data/lib/gobl/org/tax_identity.rb +5 -5
  51. data/lib/gobl/org/telephone.rb +1 -1
  52. data/lib/gobl/org/unit.rb +1 -1
  53. data/lib/gobl/pay/advance.rb +1 -1
  54. data/lib/gobl/pay/card.rb +1 -1
  55. data/lib/gobl/pay/credit_transfer.rb +1 -1
  56. data/lib/gobl/pay/direct_debit.rb +1 -1
  57. data/lib/gobl/pay/due_date.rb +1 -1
  58. data/lib/gobl/pay/instructions.rb +1 -1
  59. data/lib/gobl/pay/method_key.rb +1 -1
  60. data/lib/gobl/pay/online.rb +1 -1
  61. data/lib/gobl/pay/term_key.rb +1 -1
  62. data/lib/gobl/pay/terms.rb +1 -1
  63. data/lib/gobl/tax/category.rb +1 -1
  64. data/lib/gobl/tax/category_total.rb +1 -1
  65. data/lib/gobl/tax/combo.rb +1 -1
  66. data/lib/gobl/tax/localities.rb +1 -1
  67. data/lib/gobl/tax/locality.rb +1 -1
  68. data/lib/gobl/tax/rate.rb +1 -1
  69. data/lib/gobl/tax/rate_total.rb +1 -1
  70. data/lib/gobl/tax/rate_total_surcharge.rb +1 -1
  71. data/lib/gobl/tax/rate_value.rb +1 -1
  72. data/lib/gobl/tax/region.rb +3 -3
  73. data/lib/gobl/tax/scheme.rb +1 -1
  74. data/lib/gobl/tax/schemes.rb +1 -1
  75. data/lib/gobl/tax/set.rb +1 -1
  76. data/lib/gobl/tax/total.rb +1 -1
  77. data/lib/gobl/uuid/uuid.rb +1 -1
  78. data/lib/gobl/version.rb +1 -1
  79. metadata +3 -3
  80. data/lib/gobl/stamp.rb +0 -27
@@ -3,7 +3,7 @@
3
3
  ##
4
4
  ## DO NOT EDIT - This file was generated automatically.
5
5
  ##
6
- ## Generated with GOBL v0.30.4
6
+ ## Generated with GOBL v0.32.0
7
7
  ##
8
8
 
9
9
  module GOBL
@@ -3,7 +3,7 @@
3
3
  ##
4
4
  ## DO NOT EDIT - This file was generated automatically.
5
5
  ##
6
- ## Generated with GOBL v0.30.4
6
+ ## Generated with GOBL v0.32.0
7
7
  ##
8
8
 
9
9
  module GOBL
@@ -3,7 +3,7 @@
3
3
  ##
4
4
  ## DO NOT EDIT - This file was generated automatically.
5
5
  ##
6
- ## Generated with GOBL v0.30.4
6
+ ## Generated with GOBL v0.32.0
7
7
  ##
8
8
 
9
9
  module GOBL
@@ -3,7 +3,7 @@
3
3
  ##
4
4
  ## DO NOT EDIT - This file was generated automatically.
5
5
  ##
6
- ## Generated with GOBL v0.30.4
6
+ ## Generated with GOBL v0.32.0
7
7
  ##
8
8
 
9
9
  module GOBL
@@ -3,7 +3,7 @@
3
3
  ##
4
4
  ## DO NOT EDIT - This file was generated automatically.
5
5
  ##
6
- ## Generated with GOBL v0.30.4
6
+ ## Generated with GOBL v0.32.0
7
7
  ##
8
8
 
9
9
  module GOBL
@@ -3,7 +3,7 @@
3
3
  ##
4
4
  ## DO NOT EDIT - This file was generated automatically.
5
5
  ##
6
- ## Generated with GOBL v0.30.4
6
+ ## Generated with GOBL v0.32.0
7
7
  ##
8
8
 
9
9
  module GOBL
@@ -3,7 +3,7 @@
3
3
  ##
4
4
  ## DO NOT EDIT - This file was generated automatically.
5
5
  ##
6
- ## Generated with GOBL v0.30.4
6
+ ## Generated with GOBL v0.32.0
7
7
  ##
8
8
 
9
9
  module GOBL
@@ -3,7 +3,7 @@
3
3
  ##
4
4
  ## DO NOT EDIT - This file was generated automatically.
5
5
  ##
6
- ## Generated with GOBL v0.30.4
6
+ ## Generated with GOBL v0.32.0
7
7
  ##
8
8
 
9
9
  module GOBL
@@ -3,7 +3,7 @@
3
3
  ##
4
4
  ## DO NOT EDIT - This file was generated automatically.
5
5
  ##
6
- ## Generated with GOBL v0.30.4
6
+ ## Generated with GOBL v0.32.0
7
7
  ##
8
8
 
9
9
  module GOBL
@@ -3,7 +3,7 @@
3
3
  ##
4
4
  ## DO NOT EDIT - This file was generated automatically.
5
5
  ##
6
- ## Generated with GOBL v0.30.4
6
+ ## Generated with GOBL v0.32.0
7
7
  ##
8
8
 
9
9
  module GOBL
@@ -3,7 +3,7 @@
3
3
  ##
4
4
  ## DO NOT EDIT - This file was generated automatically.
5
5
  ##
6
- ## Generated with GOBL v0.30.4
6
+ ## Generated with GOBL v0.32.0
7
7
  ##
8
8
 
9
9
  module GOBL
data/lib/gobl/tax/rate.rb CHANGED
@@ -3,7 +3,7 @@
3
3
  ##
4
4
  ## DO NOT EDIT - This file was generated automatically.
5
5
  ##
6
- ## Generated with GOBL v0.30.4
6
+ ## Generated with GOBL v0.32.0
7
7
  ##
8
8
 
9
9
  module GOBL
@@ -3,7 +3,7 @@
3
3
  ##
4
4
  ## DO NOT EDIT - This file was generated automatically.
5
5
  ##
6
- ## Generated with GOBL v0.30.4
6
+ ## Generated with GOBL v0.32.0
7
7
  ##
8
8
 
9
9
  module GOBL
@@ -3,7 +3,7 @@
3
3
  ##
4
4
  ## DO NOT EDIT - This file was generated automatically.
5
5
  ##
6
- ## Generated with GOBL v0.30.4
6
+ ## Generated with GOBL v0.32.0
7
7
  ##
8
8
 
9
9
  module GOBL
@@ -3,7 +3,7 @@
3
3
  ##
4
4
  ## DO NOT EDIT - This file was generated automatically.
5
5
  ##
6
- ## Generated with GOBL v0.30.4
6
+ ## Generated with GOBL v0.32.0
7
7
  ##
8
8
 
9
9
  module GOBL
@@ -3,7 +3,7 @@
3
3
  ##
4
4
  ## DO NOT EDIT - This file was generated automatically.
5
5
  ##
6
- ## Generated with GOBL v0.30.4
6
+ ## Generated with GOBL v0.32.0
7
7
  ##
8
8
 
9
9
  module GOBL
@@ -32,8 +32,8 @@ module GOBL
32
32
 
33
33
  # @!attribute [r] localities
34
34
  # List of sub-localities inside a region.
35
- # @return [Localities]
36
- property :localities, Localities
35
+ # @return [Array<Locality>]
36
+ property :localities, [Locality]
37
37
 
38
38
  # @!attribute [r] currency
39
39
  # Currency used by the region for tax purposes.
@@ -3,7 +3,7 @@
3
3
  ##
4
4
  ## DO NOT EDIT - This file was generated automatically.
5
5
  ##
6
- ## Generated with GOBL v0.30.4
6
+ ## Generated with GOBL v0.32.0
7
7
  ##
8
8
 
9
9
  module GOBL
@@ -3,7 +3,7 @@
3
3
  ##
4
4
  ## DO NOT EDIT - This file was generated automatically.
5
5
  ##
6
- ## Generated with GOBL v0.30.4
6
+ ## Generated with GOBL v0.32.0
7
7
  ##
8
8
 
9
9
  module GOBL
data/lib/gobl/tax/set.rb CHANGED
@@ -3,7 +3,7 @@
3
3
  ##
4
4
  ## DO NOT EDIT - This file was generated automatically.
5
5
  ##
6
- ## Generated with GOBL v0.30.4
6
+ ## Generated with GOBL v0.32.0
7
7
  ##
8
8
 
9
9
  module GOBL
@@ -3,7 +3,7 @@
3
3
  ##
4
4
  ## DO NOT EDIT - This file was generated automatically.
5
5
  ##
6
- ## Generated with GOBL v0.30.4
6
+ ## Generated with GOBL v0.32.0
7
7
  ##
8
8
 
9
9
  module GOBL
@@ -3,7 +3,7 @@
3
3
  ##
4
4
  ## DO NOT EDIT - This file was generated automatically.
5
5
  ##
6
- ## Generated with GOBL v0.30.4
6
+ ## Generated with GOBL v0.32.0
7
7
  ##
8
8
 
9
9
  module GOBL
data/lib/gobl/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module GOBL
4
- VERSION = '0.3.3'
4
+ VERSION = '0.4.0'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gobl
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.3
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Lilue
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2022-11-24 00:00:00.000000000 Z
13
+ date: 2022-11-30 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: activesupport
@@ -138,6 +138,7 @@ files:
138
138
  - lib/gobl/org/person.rb
139
139
  - lib/gobl/org/registration.rb
140
140
  - lib/gobl/org/source_key.rb
141
+ - lib/gobl/org/stamp.rb
141
142
  - lib/gobl/org/tax_identity.rb
142
143
  - lib/gobl/org/telephone.rb
143
144
  - lib/gobl/org/unit.rb
@@ -151,7 +152,6 @@ files:
151
152
  - lib/gobl/pay/online.rb
152
153
  - lib/gobl/pay/term_key.rb
153
154
  - lib/gobl/pay/terms.rb
154
- - lib/gobl/stamp.rb
155
155
  - lib/gobl/struct.rb
156
156
  - lib/gobl/tax/category.rb
157
157
  - lib/gobl/tax/category_total.rb
data/lib/gobl/stamp.rb DELETED
@@ -1,27 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- ##
4
- ## DO NOT EDIT - This file was generated automatically.
5
- ##
6
- ## Generated with GOBL v0.30.4
7
- ##
8
-
9
- module GOBL
10
- # Stamp defines an official seal of approval from a third party like a governmental agency or intermediary and should thus be included in any official envelopes.
11
- class Stamp < GOBL::Object
12
- # The Schema ID of the GOBL Stamp structure
13
- SCHEMA_ID = 'https://gobl.org/draft-0/envelope#/$defs/Stamp'
14
-
15
- # @!attribute [r] prv
16
- # Identity of the agency used to create the stamp usually defined by each region.
17
- # @return [GOBL::Org::Key]
18
- property :prv, GOBL::Org::Key
19
- validates :prv, presence: true
20
-
21
- # @!attribute [r] val
22
- # The serialized stamp value generated for or by the external agency
23
- # @return [String]
24
- property :val, String
25
- validates :val, presence: true
26
- end
27
- end