gobl 0.14.1 → 0.15.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (83) hide show
  1. checksums.yaml +4 -4
  2. data/data/regimes/co.json +1143 -1148
  3. data/data/regimes/es.json +181 -176
  4. data/data/regimes/it.json +649 -349
  5. data/data/regimes/pt.json +159 -38
  6. data/data/regimes/us.json +1 -2
  7. data/lib/generated/gobl/bill/charge.rb +1 -1
  8. data/lib/generated/gobl/bill/delivery.rb +1 -1
  9. data/lib/generated/gobl/bill/discount.rb +1 -1
  10. data/lib/generated/gobl/bill/document_reference.rb +1 -1
  11. data/lib/generated/gobl/bill/invoice.rb +1 -1
  12. data/lib/generated/gobl/bill/line.rb +1 -1
  13. data/lib/generated/gobl/bill/line_charge.rb +1 -1
  14. data/lib/generated/gobl/bill/line_discount.rb +1 -1
  15. data/lib/generated/gobl/bill/ordering.rb +1 -1
  16. data/lib/generated/gobl/bill/outlay.rb +1 -1
  17. data/lib/generated/gobl/bill/payment.rb +1 -1
  18. data/lib/generated/gobl/bill/preceding.rb +1 -1
  19. data/lib/generated/gobl/bill/tax.rb +1 -1
  20. data/lib/generated/gobl/bill/totals.rb +1 -1
  21. data/lib/generated/gobl/cal/date.rb +1 -1
  22. data/lib/generated/gobl/cal/period.rb +1 -1
  23. data/lib/generated/gobl/cbc/code.rb +1 -1
  24. data/lib/generated/gobl/cbc/code_set.rb +15 -0
  25. data/lib/generated/gobl/cbc/key.rb +1 -1
  26. data/lib/generated/gobl/cbc/meta.rb +1 -1
  27. data/lib/generated/gobl/cbc/note.rb +1 -1
  28. data/lib/generated/gobl/cbc/stamp.rb +1 -1
  29. data/lib/generated/gobl/currency/code.rb +1 -1
  30. data/lib/generated/gobl/currency/exchange_rate.rb +1 -1
  31. data/lib/generated/gobl/document.rb +1 -1
  32. data/lib/generated/gobl/dsig/digest.rb +1 -1
  33. data/lib/generated/gobl/dsig/signature.rb +1 -1
  34. data/lib/generated/gobl/envelope.rb +1 -1
  35. data/lib/generated/gobl/header.rb +1 -1
  36. data/lib/generated/gobl/i18n/string.rb +1 -1
  37. data/lib/generated/gobl/l10n/code.rb +1 -1
  38. data/lib/generated/gobl/l10n/country_code.rb +1 -1
  39. data/lib/generated/gobl/note/message.rb +1 -1
  40. data/lib/generated/gobl/org/address.rb +1 -1
  41. data/lib/generated/gobl/org/coordinates.rb +1 -1
  42. data/lib/generated/gobl/org/email.rb +1 -1
  43. data/lib/generated/gobl/org/identity.rb +1 -1
  44. data/lib/generated/gobl/org/image.rb +1 -1
  45. data/lib/generated/gobl/org/inbox.rb +1 -1
  46. data/lib/generated/gobl/org/item.rb +6 -1
  47. data/lib/generated/gobl/org/name.rb +1 -1
  48. data/lib/generated/gobl/org/party.rb +1 -1
  49. data/lib/generated/gobl/org/person.rb +1 -1
  50. data/lib/generated/gobl/org/registration.rb +3 -3
  51. data/lib/generated/gobl/org/telephone.rb +1 -1
  52. data/lib/generated/gobl/org/unit.rb +1 -1
  53. data/lib/generated/gobl/org/website.rb +1 -1
  54. data/lib/generated/gobl/pay/advance.rb +22 -1
  55. data/lib/generated/gobl/pay/card.rb +1 -1
  56. data/lib/generated/gobl/pay/credit_transfer.rb +1 -1
  57. data/lib/generated/gobl/pay/direct_debit.rb +1 -1
  58. data/lib/generated/gobl/pay/due_date.rb +1 -1
  59. data/lib/generated/gobl/pay/instructions.rb +8 -7
  60. data/lib/generated/gobl/pay/online.rb +1 -1
  61. data/lib/generated/gobl/pay/terms.rb +1 -1
  62. data/lib/generated/gobl/tax/category.rb +10 -6
  63. data/lib/generated/gobl/tax/category_total.rb +1 -6
  64. data/lib/generated/gobl/tax/combo.rb +1 -6
  65. data/lib/generated/gobl/tax/identity.rb +1 -1
  66. data/lib/generated/gobl/tax/key_definition.rb +7 -2
  67. data/lib/generated/gobl/tax/preceding_definitions.rb +1 -1
  68. data/lib/generated/gobl/tax/rate.rb +11 -2
  69. data/lib/generated/gobl/tax/rate_total.rb +9 -6
  70. data/lib/generated/gobl/tax/rate_total_surcharge.rb +1 -1
  71. data/lib/generated/gobl/tax/rate_value.rb +1 -1
  72. data/lib/generated/gobl/tax/regime.rb +17 -7
  73. data/lib/generated/gobl/tax/scenario.rb +11 -1
  74. data/lib/generated/gobl/tax/scenario_set.rb +1 -1
  75. data/lib/generated/gobl/tax/set.rb +1 -1
  76. data/lib/generated/gobl/tax/total.rb +1 -1
  77. data/lib/generated/gobl/tax/zone.rb +6 -1
  78. data/lib/generated/gobl/uuid/uuid.rb +1 -1
  79. data/lib/gobl/extensions/bill/scenario_summary.rb +4 -4
  80. data/lib/gobl/version.rb +1 -1
  81. metadata +3 -4
  82. data/lib/generated/gobl/tax/identity_type.rb +0 -33
  83. data/lib/generated/gobl/tax/tag.rb +0 -33
@@ -3,7 +3,7 @@
3
3
  ##
4
4
  ## DO NOT EDIT - This file was generated automatically.
5
5
  ##
6
- ## Generated with GOBL v0.42.8
6
+ ## Generated with GOBL v0.50.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.42.8
6
+ ## Generated with GOBL v0.50.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.42.8
6
+ ## Generated with GOBL v0.50.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.42.8
6
+ ## Generated with GOBL v0.50.1
7
7
  ##
8
8
 
9
9
  module GOBL
@@ -0,0 +1,15 @@
1
+ # frozen_string_literal: true
2
+
3
+ ##
4
+ ## DO NOT EDIT - This file was generated automatically.
5
+ ##
6
+ ## Generated with GOBL v0.50.1
7
+ ##
8
+
9
+ module GOBL
10
+ module CBC
11
+ # CodeSet is a map of keys to specific codes, useful to determine regime specific codes from their key counterparts.
12
+ class CodeSet < GOBL::Map
13
+ end
14
+ end
15
+ end
@@ -3,7 +3,7 @@
3
3
  ##
4
4
  ## DO NOT EDIT - This file was generated automatically.
5
5
  ##
6
- ## Generated with GOBL v0.42.8
6
+ ## Generated with GOBL v0.50.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.42.8
6
+ ## Generated with GOBL v0.50.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.42.8
6
+ ## Generated with GOBL v0.50.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.42.8
6
+ ## Generated with GOBL v0.50.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.42.8
6
+ ## Generated with GOBL v0.50.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.42.8
6
+ ## Generated with GOBL v0.50.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.42.8
6
+ ## Generated with GOBL v0.50.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.42.8
6
+ ## Generated with GOBL v0.50.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.42.8
6
+ ## Generated with GOBL v0.50.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.42.8
6
+ ## Generated with GOBL v0.50.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.42.8
6
+ ## Generated with GOBL v0.50.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.42.8
6
+ ## Generated with GOBL v0.50.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.42.8
6
+ ## Generated with GOBL v0.50.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.42.8
6
+ ## Generated with GOBL v0.50.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.42.8
6
+ ## Generated with GOBL v0.50.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.42.8
6
+ ## Generated with GOBL v0.50.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.42.8
6
+ ## Generated with GOBL v0.50.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.42.8
6
+ ## Generated with GOBL v0.50.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.42.8
6
+ ## Generated with GOBL v0.50.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.42.8
6
+ ## Generated with GOBL v0.50.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.42.8
6
+ ## Generated with GOBL v0.50.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.42.8
6
+ ## Generated with GOBL v0.50.1
7
7
  ##
8
8
 
9
9
  module GOBL
@@ -23,6 +23,11 @@ module GOBL
23
23
  # @return [String]
24
24
  property :ref, String
25
25
 
26
+ # @!attribute [r] key
27
+ # Special key used to classify the item sometimes required by some regimes.
28
+ # @return [GOBL::CBC::Key]
29
+ property :key, GOBL::CBC::Key
30
+
26
31
  # @!attribute [r] name
27
32
  # Brief name of the item
28
33
  # @return [String]
@@ -3,7 +3,7 @@
3
3
  ##
4
4
  ## DO NOT EDIT - This file was generated automatically.
5
5
  ##
6
- ## Generated with GOBL v0.42.8
6
+ ## Generated with GOBL v0.50.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.42.8
6
+ ## Generated with GOBL v0.50.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.42.8
6
+ ## Generated with GOBL v0.50.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.42.8
6
+ ## Generated with GOBL v0.50.1
7
7
  ##
8
8
 
9
9
  module GOBL
@@ -17,9 +17,9 @@ module GOBL
17
17
  # @return [GOBL::UUID::UUID]
18
18
  property :uuid, GOBL::UUID::UUID
19
19
 
20
- # @!attribute [r] social_capital
20
+ # @!attribute [r] capital
21
21
  # @return [GOBL::Num::Amount]
22
- property :social_capital, GOBL::Num::Amount
22
+ property :capital, GOBL::Num::Amount
23
23
 
24
24
  # @!attribute [r] currency
25
25
  # @return [GOBL::Currency::Code]
@@ -3,7 +3,7 @@
3
3
  ##
4
4
  ## DO NOT EDIT - This file was generated automatically.
5
5
  ##
6
- ## Generated with GOBL v0.42.8
6
+ ## Generated with GOBL v0.50.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.42.8
6
+ ## Generated with GOBL v0.50.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.42.8
6
+ ## Generated with GOBL v0.50.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.42.8
6
+ ## Generated with GOBL v0.50.1
7
7
  ##
8
8
 
9
9
  module GOBL
@@ -23,6 +23,27 @@ module GOBL
23
23
  # @return [GOBL::Cal::Date]
24
24
  property :date, GOBL::Cal::Date
25
25
 
26
+ # Enumeration of possible values for {#key} with their corresponding descriptions
27
+ KEY_ENUM = {
28
+ 'any' => 'Any method available, no preference.',
29
+ 'card' => 'Payment card.',
30
+ 'credit-transfer' => 'Sender initiated bank or wire transfer.',
31
+ 'debit-transfer' => 'Receiver initiated bank or wire transfer.',
32
+ 'cash' => 'Cash in hand.',
33
+ 'cheque' => 'Cheque from bank.',
34
+ 'bank-draft' => 'Bankers Draft or Bank Cheque.',
35
+ 'direct-debit' => 'Direct debit from the customers bank account.',
36
+ 'online' => 'Online or web payment.',
37
+ 'promissory-note' => 'Promissory note contract.',
38
+ 'netting' => 'Intercompany clearing or clearing between partners.',
39
+ 'other' => 'Other or mutually defined means of payment.'
40
+ }.freeze
41
+
42
+ # @!attribute [r] key
43
+ # The payment means used to make the advance.
44
+ # @return [GOBL::CBC::Key]
45
+ property :key, GOBL::CBC::Key
46
+
26
47
  # @!attribute [r] ref
27
48
  # ID or reference for the advance.
28
49
  # @return [String]
@@ -3,7 +3,7 @@
3
3
  ##
4
4
  ## DO NOT EDIT - This file was generated automatically.
5
5
  ##
6
- ## Generated with GOBL v0.42.8
6
+ ## Generated with GOBL v0.50.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.42.8
6
+ ## Generated with GOBL v0.50.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.42.8
6
+ ## Generated with GOBL v0.50.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.42.8
6
+ ## Generated with GOBL v0.50.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.42.8
6
+ ## Generated with GOBL v0.50.1
7
7
  ##
8
8
 
9
9
  module GOBL
@@ -16,23 +16,24 @@ module GOBL
16
16
  # Enumeration of possible values for {#key} with their corresponding descriptions
17
17
  KEY_ENUM = {
18
18
  'any' => 'Any method available, no preference.',
19
- 'card' => 'Credit or debit card.',
19
+ 'card' => 'Payment card.',
20
20
  'credit-transfer' => 'Sender initiated bank or wire transfer.',
21
21
  'debit-transfer' => 'Receiver initiated bank or wire transfer.',
22
22
  'cash' => 'Cash in hand.',
23
23
  'cheque' => 'Cheque from bank.',
24
- 'credit' => 'Using credit from previous transactions with the supplier.',
25
24
  'bank-draft' => 'Bankers Draft or Bank Cheque.',
26
25
  'direct-debit' => 'Direct debit from the customers bank account.',
27
- 'online' => 'Online or web payment.'
26
+ 'online' => 'Online or web payment.',
27
+ 'promissory-note' => 'Promissory note contract.',
28
+ 'netting' => 'Intercompany clearing or clearing between partners.',
29
+ 'other' => 'Other or mutually defined means of payment.'
28
30
  }.freeze
29
31
 
30
32
  # @!attribute [r] key
31
- # How payment is expected or has been arranged to be collected
33
+ # The payment means expected or that have been arranged to be used to make the payment.
32
34
  # @return [GOBL::CBC::Key]
33
35
  property :key, GOBL::CBC::Key
34
36
  validates_presence_of :key
35
- validates_inclusion_of :key, in: KEY_ENUM.keys
36
37
 
37
38
  # @!attribute [r] detail
38
39
  # Optional text description of the payment method
@@ -40,7 +41,7 @@ module GOBL
40
41
  property :detail, String
41
42
 
42
43
  # @!attribute [r] ref
43
- # Remittance information, a text value used to link the payment with the invoice.
44
+ # Remittance information or concept, a text value used to link the payment with the invoice.
44
45
  # @return [String]
45
46
  property :ref, String
46
47
 
@@ -3,7 +3,7 @@
3
3
  ##
4
4
  ## DO NOT EDIT - This file was generated automatically.
5
5
  ##
6
- ## Generated with GOBL v0.42.8
6
+ ## Generated with GOBL v0.50.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.42.8
6
+ ## Generated with GOBL v0.50.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.42.8
6
+ ## Generated with GOBL v0.50.1
7
7
  ##
8
8
 
9
9
  module GOBL
@@ -32,16 +32,20 @@ module GOBL
32
32
  # @return [Boolean]
33
33
  property :retained, Boolean
34
34
 
35
+ # @!attribute [r] rate_required
36
+ # RateRequired when true implies that when a tax combo is defined using this category that one of the rates must be defined.
37
+ # @return [Boolean]
38
+ property :rate_required, Boolean
39
+
35
40
  # @!attribute [r] rates
36
41
  # Specific tax definitions inside this category.
37
42
  # @return [Array<Rate>]
38
43
  property :rates, [Rate]
39
- validates_presence_of :rates
40
44
 
41
- # @!attribute [r] tags
42
- # Tags contains a set of tag definitions that can be applied for this tax category.
43
- # @return [Array<Tag>]
44
- property :tags, [Tag]
45
+ # @!attribute [r] codes
46
+ # Codes defines a set of regime specific code mappings.
47
+ # @return [GOBL::CBC::CodeSet]
48
+ property :codes, GOBL::CBC::CodeSet
45
49
 
46
50
  # @!attribute [r] meta
47
51
  # Meta contains additional information about the category that is relevant for local frequently used formats.
@@ -3,7 +3,7 @@
3
3
  ##
4
4
  ## DO NOT EDIT - This file was generated automatically.
5
5
  ##
6
- ## Generated with GOBL v0.42.8
6
+ ## Generated with GOBL v0.50.1
7
7
  ##
8
8
 
9
9
  module GOBL
@@ -27,11 +27,6 @@ module GOBL
27
27
  property :rates, [RateTotal]
28
28
  validates_presence_of :rates
29
29
 
30
- # @!attribute [r] base
31
- # @return [GOBL::Num::Amount]
32
- property :base, GOBL::Num::Amount
33
- validates_presence_of :base
34
-
35
30
  # @!attribute [r] amount
36
31
  # @return [GOBL::Num::Amount]
37
32
  property :amount, GOBL::Num::Amount
@@ -3,7 +3,7 @@
3
3
  ##
4
4
  ## DO NOT EDIT - This file was generated automatically.
5
5
  ##
6
- ## Generated with GOBL v0.42.8
6
+ ## Generated with GOBL v0.50.1
7
7
  ##
8
8
 
9
9
  module GOBL
@@ -33,11 +33,6 @@ module GOBL
33
33
  # Some countries require an additional surcharge (calculated if rate present).
34
34
  # @return [GOBL::Num::Percentage]
35
35
  property :surcharge, GOBL::Num::Percentage
36
-
37
- # @!attribute [r] tags
38
- # Additional data may be required in some regimes, the tags property helps reference them.
39
- # @return [Array<GOBL::CBC::Key>]
40
- property :tags, [GOBL::CBC::Key]
41
36
  end
42
37
  end
43
38
  end
@@ -3,7 +3,7 @@
3
3
  ##
4
4
  ## DO NOT EDIT - This file was generated automatically.
5
5
  ##
6
- ## Generated with GOBL v0.42.8
6
+ ## Generated with GOBL v0.50.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.42.8
6
+ ## Generated with GOBL v0.50.1
7
7
  ##
8
8
 
9
9
  module GOBL
@@ -29,8 +29,13 @@ module GOBL
29
29
  # @return [GOBL::I18n::String]
30
30
  property :desc, GOBL::I18n::String
31
31
 
32
+ # @!attribute [r] codes
33
+ # Codes defines a set of codes that may be used within a given regime or format that will help identify which key definition to use.
34
+ # @return [GOBL::CBC::CodeSet]
35
+ property :codes, GOBL::CBC::CodeSet
36
+
32
37
  # @!attribute [r] meta
33
- # Any additional data that might be relevant in some regimes?
38
+ # Any additional data that might be relevant in some regimes.
34
39
  # @return [GOBL::CBC::Meta]
35
40
  property :meta, GOBL::CBC::Meta
36
41
  end
@@ -3,7 +3,7 @@
3
3
  ##
4
4
  ## DO NOT EDIT - This file was generated automatically.
5
5
  ##
6
- ## Generated with GOBL v0.42.8
6
+ ## Generated with GOBL v0.50.1
7
7
  ##
8
8
 
9
9
  module GOBL