gobl 0.4.0 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (90) hide show
  1. checksums.yaml +4 -4
  2. data/lib/extensions.rb +1 -1
  3. data/lib/gobl/bill/advances.rb +1 -1
  4. data/lib/gobl/bill/charge.rb +3 -3
  5. data/lib/gobl/bill/delivery.rb +1 -1
  6. data/lib/gobl/bill/discount.rb +3 -3
  7. data/lib/gobl/bill/exchange_rates.rb +1 -1
  8. data/lib/gobl/bill/invoice.rb +5 -5
  9. data/lib/gobl/bill/invoice_type.rb +1 -1
  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 +1 -1
  15. data/lib/gobl/bill/payment.rb +1 -1
  16. data/lib/gobl/bill/preceding.rb +5 -5
  17. data/lib/gobl/bill/scheme_keys.rb +2 -2
  18. data/lib/gobl/bill/tax.rb +5 -5
  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/{org → cbc}/code.rb +3 -3
  23. data/lib/gobl/{org → cbc}/key.rb +3 -3
  24. data/lib/gobl/{org → cbc}/meta.rb +2 -2
  25. data/lib/gobl/{org → cbc}/note.rb +3 -3
  26. data/lib/gobl/{org → cbc}/note_key.rb +3 -3
  27. data/lib/gobl/{org → cbc}/stamp.rb +5 -5
  28. data/lib/gobl/currency/code.rb +1 -1
  29. data/lib/gobl/currency/exchange_rate.rb +1 -1
  30. data/lib/gobl/document.rb +1 -1
  31. data/lib/gobl/dsig/digest.rb +1 -1
  32. data/lib/gobl/dsig/signature.rb +1 -1
  33. data/lib/gobl/envelope.rb +1 -1
  34. data/lib/gobl/header.rb +5 -5
  35. data/lib/gobl/i18n/string.rb +1 -1
  36. data/lib/gobl/l10n/code.rb +1 -1
  37. data/lib/gobl/l10n/country_code.rb +1 -1
  38. data/lib/gobl/map.rb +5 -1
  39. data/lib/gobl/note/message.rb +3 -3
  40. data/lib/gobl/org/address.rb +5 -6
  41. data/lib/gobl/org/coordinates.rb +1 -1
  42. data/lib/gobl/org/email.rb +3 -3
  43. data/lib/gobl/org/inbox.rb +5 -5
  44. data/lib/gobl/org/item.rb +3 -3
  45. data/lib/gobl/org/item_code.rb +1 -1
  46. data/lib/gobl/org/name.rb +3 -3
  47. data/lib/gobl/org/party.rb +5 -5
  48. data/lib/gobl/org/person.rb +3 -3
  49. data/lib/gobl/org/registration.rb +1 -1
  50. data/lib/gobl/org/telephone.rb +1 -1
  51. data/lib/gobl/org/unit.rb +1 -1
  52. data/lib/gobl/pay/advance.rb +1 -1
  53. data/lib/gobl/pay/card.rb +1 -1
  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 +1 -1
  57. data/lib/gobl/pay/instructions.rb +3 -3
  58. data/lib/gobl/pay/method_key.rb +1 -1
  59. data/lib/gobl/pay/online.rb +1 -1
  60. data/lib/gobl/pay/term_key.rb +1 -1
  61. data/lib/gobl/pay/terms.rb +1 -1
  62. data/lib/gobl/tax/category.rb +4 -4
  63. data/lib/gobl/tax/category_total.rb +3 -3
  64. data/lib/gobl/tax/combo.rb +5 -5
  65. data/lib/gobl/{org/tax_identity.rb → tax/identity.rb} +11 -11
  66. data/lib/gobl/tax/rate.rb +4 -4
  67. data/lib/gobl/tax/rate_total.rb +3 -3
  68. data/lib/gobl/tax/rate_total_surcharge.rb +1 -1
  69. data/lib/gobl/tax/rate_value.rb +2 -2
  70. data/lib/gobl/tax/{region.rb → regime.rb} +14 -14
  71. data/lib/gobl/tax/scheme.rb +8 -8
  72. data/lib/gobl/tax/schemes.rb +1 -1
  73. data/lib/gobl/tax/set.rb +1 -1
  74. data/lib/gobl/{org → tax}/source_key.rb +3 -3
  75. data/lib/gobl/tax/total.rb +1 -1
  76. data/lib/gobl/tax/zone.rb +43 -0
  77. data/lib/gobl/uuid/uuid.rb +1 -1
  78. data/lib/gobl/value.rb +19 -0
  79. data/lib/gobl/version.rb +1 -1
  80. data/lib/gobl.rb +2 -1
  81. data/lib/gobl_extensions/tax/regime_helper.rb +35 -0
  82. metadata +14 -20
  83. data/data/tax/CO.json +0 -10212
  84. data/data/tax/ES.json +0 -902
  85. data/data/tax/FR.json +0 -47
  86. data/data/tax/GB.json +0 -56
  87. data/data/tax/NL.json +0 -60
  88. data/lib/gobl/tax/localities.rb +0 -14
  89. data/lib/gobl/tax/locality.rb +0 -34
  90. 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: b66cd52e71bcf9cf6aa84d4e65a3b46281840d413297c31879eaf7f01aeffba9
4
- data.tar.gz: f3bc7db46a2af0206e3eedaff0e181b2d3b5ce39ebd9b013ab55f90f47e81600
3
+ metadata.gz: 8a5bd8be31f227612ec43575b6ca52880a1f257efbdac62dd00ac6a9c8926959
4
+ data.tar.gz: 5c777dc2f00a5bbfbda46f78004ce4df13b7f5bbdfa32dd7d377afa7ca67a886
5
5
  SHA512:
6
- metadata.gz: ea33a787604ca58d7c0eb1ce24818c681c0c8379186b5705c3677377d84a11c1447329e0acb6682f0badf8b4cb5a65a1f7327f6d05812e0cab2f81d6a530ddb3
7
- data.tar.gz: 3d14b5a8257fd4fef38467eb5f8fe236aca6bd8d9ba11359d745831368d3f53f5883c4ac7cb87ebb91b1489ae2b48774ae64ff373640c2fe5fc4071bc87dd8d1
6
+ metadata.gz: c5efb407ffb854b756dbabb5557cbac4743f9aac982eb284669067bec3cd8b05e424fd7bd2e35179d161861e39732049eee54896e10808a5a1d4d8ea880b6255
7
+ data.tar.gz: 73d0476ca14e771539ab08df7167163e7f2e9f9d1de19e6ca91b943ae1cee396199ebe5bf6e29db52d1e3baa8be364ea8458d4c2ebdf903d1580d704353eee9a
data/lib/extensions.rb CHANGED
@@ -9,4 +9,4 @@ GOBL::I18n::String.include GOBLExtensions::I18n::ValueKeysHelper
9
9
  GOBL::Document.include GOBLExtensions::DocumentHelper
10
10
  GOBL::Document.extend GOBLExtensions::DocumentHelper::ClassMethods
11
11
  GOBL::Envelope.include GOBLExtensions::EnvelopeHelper
12
- GOBL::Tax::Region.extend GOBLExtensions::Tax::RegionHelper::ClassMethods
12
+ GOBL::Tax::Regime.extend GOBLExtensions::Tax::RegimeHelper::ClassMethods
@@ -3,7 +3,7 @@
3
3
  ##
4
4
  ## DO NOT EDIT - This file was generated automatically.
5
5
  ##
6
- ## Generated with GOBL v0.32.0
6
+ ## Generated with GOBL v0.34.1
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.32.0
6
+ ## Generated with GOBL v0.34.1
7
7
  ##
8
8
 
9
9
  module GOBL
@@ -60,8 +60,8 @@ module GOBL
60
60
 
61
61
  # @!attribute [r] meta
62
62
  # Additional semi-structured information.
63
- # @return [GOBL::Org::Meta]
64
- property :meta, GOBL::Org::Meta
63
+ # @return [GOBL::CBC::Meta]
64
+ property :meta, GOBL::CBC::Meta
65
65
  end
66
66
  end
67
67
  end
@@ -3,7 +3,7 @@
3
3
  ##
4
4
  ## DO NOT EDIT - This file was generated automatically.
5
5
  ##
6
- ## Generated with GOBL v0.32.0
6
+ ## Generated with GOBL v0.34.1
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.32.0
6
+ ## Generated with GOBL v0.34.1
7
7
  ##
8
8
 
9
9
  module GOBL
@@ -60,8 +60,8 @@ module GOBL
60
60
 
61
61
  # @!attribute [r] meta
62
62
  # Additional semi-structured information.
63
- # @return [GOBL::Org::Meta]
64
- property :meta, GOBL::Org::Meta
63
+ # @return [GOBL::CBC::Meta]
64
+ property :meta, GOBL::CBC::Meta
65
65
  end
66
66
  end
67
67
  end
@@ -3,7 +3,7 @@
3
3
  ##
4
4
  ## DO NOT EDIT - This file was generated automatically.
5
5
  ##
6
- ## Generated with GOBL v0.32.0
6
+ ## Generated with GOBL v0.34.1
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.32.0
6
+ ## Generated with GOBL v0.34.1
7
7
  ##
8
8
 
9
9
  module GOBL
@@ -121,13 +121,13 @@ module GOBL
121
121
 
122
122
  # @!attribute [r] notes
123
123
  # Unstructured information that is relevant to the invoice, such as correction or additional legal details.
124
- # @return [Array<GOBL::Org::Note>]
125
- property :notes, [GOBL::Org::Note]
124
+ # @return [Array<GOBL::CBC::Note>]
125
+ property :notes, [GOBL::CBC::Note]
126
126
 
127
127
  # @!attribute [r] meta
128
128
  # Additional semi-structured data that doesn't fit into the body of the invoice.
129
- # @return [GOBL::Org::Meta]
130
- property :meta, GOBL::Org::Meta
129
+ # @return [GOBL::CBC::Meta]
130
+ property :meta, GOBL::CBC::Meta
131
131
  end
132
132
  end
133
133
  end
@@ -3,7 +3,7 @@
3
3
  ##
4
4
  ## DO NOT EDIT - This file was generated automatically.
5
5
  ##
6
- ## Generated with GOBL v0.32.0
6
+ ## Generated with GOBL v0.34.1
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.32.0
6
+ ## Generated with GOBL v0.34.1
7
7
  ##
8
8
 
9
9
  module GOBL
@@ -62,8 +62,8 @@ module GOBL
62
62
 
63
63
  # @!attribute [r] notes
64
64
  # Set of specific notes for this line that may be required for clarification.
65
- # @return [Array<GOBL::Org::Note>]
66
- property :notes, [GOBL::Org::Note]
65
+ # @return [Array<GOBL::CBC::Note>]
66
+ property :notes, [GOBL::CBC::Note]
67
67
  end
68
68
  end
69
69
  end
@@ -3,7 +3,7 @@
3
3
  ##
4
4
  ## DO NOT EDIT - This file was generated automatically.
5
5
  ##
6
- ## Generated with GOBL v0.32.0
6
+ ## Generated with GOBL v0.34.1
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.32.0
6
+ ## Generated with GOBL v0.34.1
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.32.0
6
+ ## Generated with GOBL v0.34.1
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.32.0
6
+ ## Generated with GOBL v0.34.1
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.32.0
6
+ ## Generated with GOBL v0.34.1
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.32.0
6
+ ## Generated with GOBL v0.34.1
7
7
  ##
8
8
 
9
9
  module GOBL
@@ -52,8 +52,8 @@ module GOBL
52
52
 
53
53
  # @!attribute [r] stamps
54
54
  # Seals of approval from other organisations.
55
- # @return [Array<GOBL::Org::Stamp>]
56
- property :stamps, [GOBL::Org::Stamp]
55
+ # @return [Array<GOBL::CBC::Stamp>]
56
+ property :stamps, [GOBL::CBC::Stamp]
57
57
 
58
58
  # @!attribute [r] notes
59
59
  # Additional details regarding preceding invoice
@@ -62,8 +62,8 @@ module GOBL
62
62
 
63
63
  # @!attribute [r] meta
64
64
  # Additional semi-structured data that may be useful in specific regions
65
- # @return [GOBL::Org::Meta]
66
- property :meta, GOBL::Org::Meta
65
+ # @return [GOBL::CBC::Meta]
66
+ property :meta, GOBL::CBC::Meta
67
67
  end
68
68
  end
69
69
  end
@@ -3,12 +3,12 @@
3
3
  ##
4
4
  ## DO NOT EDIT - This file was generated automatically.
5
5
  ##
6
- ## Generated with GOBL v0.32.0
6
+ ## Generated with GOBL v0.34.1
7
7
  ##
8
8
 
9
9
  module GOBL
10
10
  module Bill
11
11
  # SchemeKeys stores a list of keys that makes it easier to perform matches.
12
- SchemeKeys = [GOBL::Org::Key] # rubocop:disable Naming/ConstantName, Style/MutableConstant
12
+ SchemeKeys = [GOBL::CBC::Key] # rubocop:disable Naming/ConstantName, Style/MutableConstant
13
13
  end
14
14
  end
data/lib/gobl/bill/tax.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.32.0
6
+ ## Generated with GOBL v0.34.1
7
7
  ##
8
8
 
9
9
  module GOBL
@@ -15,8 +15,8 @@ module GOBL
15
15
 
16
16
  # @!attribute [r] prices_include
17
17
  # Category of the tax already included in the line item prices, especially useful for B2C retailers with customers who prefer final prices inclusive of tax.
18
- # @return [GOBL::Org::Code]
19
- property :prices_include, GOBL::Org::Code
18
+ # @return [GOBL::CBC::Code]
19
+ property :prices_include, GOBL::CBC::Code
20
20
 
21
21
  # @!attribute [r] schemes
22
22
  # Special tax schemes that apply to this invoice according to local requirements.
@@ -25,8 +25,8 @@ module GOBL
25
25
 
26
26
  # @!attribute [r] meta
27
27
  # Any additional data that may be required for processing, but should never be relied upon by recipients.
28
- # @return [GOBL::Org::Meta]
29
- property :meta, GOBL::Org::Meta
28
+ # @return [GOBL::CBC::Meta]
29
+ property :meta, GOBL::CBC::Meta
30
30
  end
31
31
  end
32
32
  end
@@ -3,7 +3,7 @@
3
3
  ##
4
4
  ## DO NOT EDIT - This file was generated automatically.
5
5
  ##
6
- ## Generated with GOBL v0.32.0
6
+ ## Generated with GOBL v0.34.1
7
7
  ##
8
8
 
9
9
  module GOBL
data/lib/gobl/cal/date.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.32.0
6
+ ## Generated with GOBL v0.34.1
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.32.0
6
+ ## Generated with GOBL v0.34.1
7
7
  ##
8
8
 
9
9
  module GOBL
@@ -3,15 +3,15 @@
3
3
  ##
4
4
  ## DO NOT EDIT - This file was generated automatically.
5
5
  ##
6
- ## Generated with GOBL v0.32.0
6
+ ## Generated with GOBL v0.34.1
7
7
  ##
8
8
 
9
9
  module GOBL
10
- module Org
10
+ module CBC
11
11
  # Short upper-case identifier.
12
12
  class Code < GOBL::Value
13
13
  # The Schema ID of the GOBL Code structure
14
- SCHEMA_ID = 'https://gobl.org/draft-0/org/code'
14
+ SCHEMA_ID = 'https://gobl.org/draft-0/cbc/code'
15
15
  end
16
16
  end
17
17
  end
@@ -3,15 +3,15 @@
3
3
  ##
4
4
  ## DO NOT EDIT - This file was generated automatically.
5
5
  ##
6
- ## Generated with GOBL v0.32.0
6
+ ## Generated with GOBL v0.34.1
7
7
  ##
8
8
 
9
9
  module GOBL
10
- module Org
10
+ module CBC
11
11
  # Text identifier to be used instead of a code for a more verbose but readable identifier.
12
12
  class Key < GOBL::Value
13
13
  # The Schema ID of the GOBL Key structure
14
- SCHEMA_ID = 'https://gobl.org/draft-0/org/key'
14
+ SCHEMA_ID = 'https://gobl.org/draft-0/cbc/key'
15
15
  end
16
16
  end
17
17
  end
@@ -3,11 +3,11 @@
3
3
  ##
4
4
  ## DO NOT EDIT - This file was generated automatically.
5
5
  ##
6
- ## Generated with GOBL v0.32.0
6
+ ## Generated with GOBL v0.34.1
7
7
  ##
8
8
 
9
9
  module GOBL
10
- module Org
10
+ module CBC
11
11
  # Meta defines a structure for data about the data being defined.
12
12
  class Meta < GOBL::Map
13
13
  end
@@ -3,15 +3,15 @@
3
3
  ##
4
4
  ## DO NOT EDIT - This file was generated automatically.
5
5
  ##
6
- ## Generated with GOBL v0.32.0
6
+ ## Generated with GOBL v0.34.1
7
7
  ##
8
8
 
9
9
  module GOBL
10
- module Org
10
+ module CBC
11
11
  # Note represents a free text of additional information that may be added to a document.
12
12
  class Note < GOBL::Object
13
13
  # The Schema ID of the GOBL Note structure
14
- SCHEMA_ID = 'https://gobl.org/draft-0/org/note'
14
+ SCHEMA_ID = 'https://gobl.org/draft-0/cbc/note'
15
15
 
16
16
  # @!attribute [r] key
17
17
  # Key specifying subject of the text
@@ -3,15 +3,15 @@
3
3
  ##
4
4
  ## DO NOT EDIT - This file was generated automatically.
5
5
  ##
6
- ## Generated with GOBL v0.32.0
6
+ ## Generated with GOBL v0.34.1
7
7
  ##
8
8
 
9
9
  module GOBL
10
- module Org
10
+ module CBC
11
11
  # NoteKey identifies the type of note being edited
12
12
  class NoteKey < GOBL::Enum
13
13
  # The Schema ID of the GOBL NoteKey structure
14
- SCHEMA_ID = 'https://gobl.org/draft-0/org/note#/$defs/NoteKey'
14
+ SCHEMA_ID = 'https://gobl.org/draft-0/cbc/note#/$defs/NoteKey'
15
15
 
16
16
  # The enumeration of values of the object and their descriptions (Values different to these are not allowed)
17
17
  ENUM = {
@@ -3,20 +3,20 @@
3
3
  ##
4
4
  ## DO NOT EDIT - This file was generated automatically.
5
5
  ##
6
- ## Generated with GOBL v0.32.0
6
+ ## Generated with GOBL v0.34.1
7
7
  ##
8
8
 
9
9
  module GOBL
10
- module Org
10
+ module CBC
11
11
  # 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.
12
12
  class Stamp < GOBL::Object
13
13
  # The Schema ID of the GOBL Stamp structure
14
- SCHEMA_ID = 'https://gobl.org/draft-0/org/stamp'
14
+ SCHEMA_ID = 'https://gobl.org/draft-0/cbc/stamp'
15
15
 
16
16
  # @!attribute [r] prv
17
17
  # Identity of the agency used to create the stamp usually defined by each region.
18
- # @return [GOBL::Org::Key]
19
- property :prv, GOBL::Org::Key
18
+ # @return [GOBL::CBC::Key]
19
+ property :prv, GOBL::CBC::Key
20
20
  validates :prv, presence: true
21
21
 
22
22
  # @!attribute [r] val
@@ -3,7 +3,7 @@
3
3
  ##
4
4
  ## DO NOT EDIT - This file was generated automatically.
5
5
  ##
6
- ## Generated with GOBL v0.32.0
6
+ ## Generated with GOBL v0.34.1
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.32.0
6
+ ## Generated with GOBL v0.34.1
7
7
  ##
8
8
 
9
9
  module GOBL
data/lib/gobl/document.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.32.0
6
+ ## Generated with GOBL v0.34.1
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.32.0
6
+ ## Generated with GOBL v0.34.1
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.32.0
6
+ ## Generated with GOBL v0.34.1
7
7
  ##
8
8
 
9
9
  module GOBL
data/lib/gobl/envelope.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.32.0
6
+ ## Generated with GOBL v0.34.1
7
7
  ##
8
8
 
9
9
  module GOBL
data/lib/gobl/header.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.32.0
6
+ ## Generated with GOBL v0.34.1
7
7
  ##
8
8
 
9
9
  module GOBL
@@ -26,8 +26,8 @@ module GOBL
26
26
 
27
27
  # @!attribute [r] stamps
28
28
  # Seals of approval from other organisations.
29
- # @return [Array<GOBL::Org::Stamp>]
30
- property :stamps, [GOBL::Org::Stamp]
29
+ # @return [Array<GOBL::CBC::Stamp>]
30
+ property :stamps, [GOBL::CBC::Stamp]
31
31
 
32
32
  # @!attribute [r] tags
33
33
  # Set of labels that describe but have no influence on the data.
@@ -36,8 +36,8 @@ module GOBL
36
36
 
37
37
  # @!attribute [r] meta
38
38
  # Additional semi-structured information about this envelope.
39
- # @return [GOBL::Org::Meta]
40
- property :meta, GOBL::Org::Meta
39
+ # @return [GOBL::CBC::Meta]
40
+ property :meta, GOBL::CBC::Meta
41
41
 
42
42
  # @!attribute [r] notes
43
43
  # Any information that may be relevant to other humans about this envelope
@@ -3,7 +3,7 @@
3
3
  ##
4
4
  ## DO NOT EDIT - This file was generated automatically.
5
5
  ##
6
- ## Generated with GOBL v0.32.0
6
+ ## Generated with GOBL v0.34.1
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.32.0
6
+ ## Generated with GOBL v0.34.1
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.32.0
6
+ ## Generated with GOBL v0.34.1
7
7
  ##
8
8
 
9
9
  module GOBL
data/lib/gobl/map.rb CHANGED
@@ -48,6 +48,10 @@ module GOBL
48
48
  # Returns the number of entries in the map
49
49
  # @return [Integer] the number of entries in the map
50
50
  #
51
+ # @!method values
52
+ # Returns an array with the values in the map
53
+ # @return [Array] the values in the map
54
+ #
51
55
  # @!method each_key
52
56
  # Iterates over each key in the map
53
57
  # @overload each(&block)
@@ -57,6 +61,6 @@ module GOBL
57
61
  # @overload each
58
62
  # Returns an Enumerator that iterates over the keys in the map
59
63
  # @return [Enumerator] the enumerator of the keys
60
- def_delegators :_map, :[], :each, :empty?, :length, :each_key
64
+ def_delegators :_map, :[], :each, :empty?, :length, :each_key, :values
61
65
  end
62
66
  end
@@ -3,7 +3,7 @@
3
3
  ##
4
4
  ## DO NOT EDIT - This file was generated automatically.
5
5
  ##
6
- ## Generated with GOBL v0.32.0
6
+ ## Generated with GOBL v0.34.1
7
7
  ##
8
8
 
9
9
  module GOBL
@@ -26,8 +26,8 @@ module GOBL
26
26
 
27
27
  # @!attribute [r] meta
28
28
  # Any additional semi-structured data that might be useful.
29
- # @return [GOBL::Org::Meta]
30
- property :meta, GOBL::Org::Meta
29
+ # @return [GOBL::CBC::Meta]
30
+ property :meta, GOBL::CBC::Meta
31
31
  end
32
32
  end
33
33
  end
@@ -3,7 +3,7 @@
3
3
  ##
4
4
  ## DO NOT EDIT - This file was generated automatically.
5
5
  ##
6
- ## Generated with GOBL v0.32.0
6
+ ## Generated with GOBL v0.34.1
7
7
  ##
8
8
 
9
9
  module GOBL
@@ -59,16 +59,15 @@ module GOBL
59
59
  property :street_extra, String
60
60
 
61
61
  # @!attribute [r] locality
62
- # The village, town, district, or city.
62
+ # Village, town, district, or city, typically inside a region.
63
63
  # @return [String]
64
64
  property :locality, String
65
65
  validates :locality, presence: true
66
66
 
67
67
  # @!attribute [r] region
68
- # Province, County, or State.
68
+ # Province, county, or state, inside a country.
69
69
  # @return [String]
70
70
  property :region, String
71
- validates :region, presence: true
72
71
 
73
72
  # @!attribute [r] code
74
73
  # Post or ZIP code.
@@ -87,8 +86,8 @@ module GOBL
87
86
 
88
87
  # @!attribute [r] meta
89
88
  # Any additional semi-structure details about the address.
90
- # @return [GOBL::Org::Meta]
91
- property :meta, GOBL::Org::Meta
89
+ # @return [GOBL::CBC::Meta]
90
+ property :meta, GOBL::CBC::Meta
92
91
  end
93
92
  end
94
93
  end
@@ -3,7 +3,7 @@
3
3
  ##
4
4
  ## DO NOT EDIT - This file was generated automatically.
5
5
  ##
6
- ## Generated with GOBL v0.32.0
6
+ ## Generated with GOBL v0.34.1
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.32.0
6
+ ## Generated with GOBL v0.34.1
7
7
  ##
8
8
 
9
9
  module GOBL
@@ -31,8 +31,8 @@ module GOBL
31
31
 
32
32
  # @!attribute [r] meta
33
33
  # Additional fields.
34
- # @return [GOBL::Org::Meta]
35
- property :meta, GOBL::Org::Meta
34
+ # @return [GOBL::CBC::Meta]
35
+ property :meta, GOBL::CBC::Meta
36
36
  end
37
37
  end
38
38
  end