gobl 0.15.2 → 0.16.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 +18 -17
  3. data/data/regimes/es.json +95 -96
  4. data/data/regimes/fr.json +1 -0
  5. data/data/regimes/gb.json +1 -0
  6. data/data/regimes/it.json +816 -1944
  7. data/data/regimes/mx.json +576 -0
  8. data/data/regimes/nl.json +1 -0
  9. data/data/regimes/pt.json +206 -317
  10. data/data/regimes/us.json +1 -0
  11. data/lib/generated/gobl/bill/charge.rb +1 -1
  12. data/lib/generated/gobl/bill/correction_options.rb +52 -0
  13. data/lib/generated/gobl/bill/delivery.rb +1 -1
  14. data/lib/generated/gobl/bill/discount.rb +1 -1
  15. data/lib/generated/gobl/bill/document_reference.rb +1 -1
  16. data/lib/generated/gobl/bill/invoice.rb +31 -34
  17. data/lib/generated/gobl/bill/line.rb +1 -1
  18. data/lib/generated/gobl/bill/line_charge.rb +1 -1
  19. data/lib/generated/gobl/bill/line_discount.rb +1 -1
  20. data/lib/generated/gobl/bill/ordering.rb +1 -1
  21. data/lib/generated/gobl/bill/outlay.rb +1 -1
  22. data/lib/generated/gobl/bill/payment.rb +1 -1
  23. data/lib/generated/gobl/bill/preceding.rb +1 -1
  24. data/lib/generated/gobl/bill/tax.rb +1 -1
  25. data/lib/generated/gobl/bill/totals.rb +1 -1
  26. data/lib/generated/gobl/cal/date.rb +1 -1
  27. data/lib/generated/gobl/cal/period.rb +1 -1
  28. data/lib/generated/gobl/cbc/code.rb +1 -1
  29. data/lib/generated/gobl/cbc/code_map.rb +15 -0
  30. data/lib/generated/gobl/cbc/key.rb +1 -1
  31. data/lib/generated/gobl/cbc/meta.rb +1 -1
  32. data/lib/generated/gobl/cbc/note.rb +1 -1
  33. data/lib/generated/gobl/cbc/stamp.rb +1 -1
  34. data/lib/generated/gobl/currency/code.rb +1 -1
  35. data/lib/generated/gobl/currency/exchange_rate.rb +1 -1
  36. data/lib/generated/gobl/document.rb +1 -1
  37. data/lib/generated/gobl/dsig/digest.rb +1 -1
  38. data/lib/generated/gobl/dsig/signature.rb +1 -1
  39. data/lib/generated/gobl/envelope.rb +1 -1
  40. data/lib/generated/gobl/header.rb +1 -1
  41. data/lib/generated/gobl/i18n/string.rb +1 -1
  42. data/lib/generated/gobl/l10n/code.rb +1 -1
  43. data/lib/generated/gobl/l10n/country_code.rb +1 -1
  44. data/lib/generated/gobl/note/message.rb +1 -1
  45. data/lib/generated/gobl/org/address.rb +1 -1
  46. data/lib/generated/gobl/org/coordinates.rb +2 -2
  47. data/lib/generated/gobl/org/email.rb +1 -1
  48. data/lib/generated/gobl/org/identity.rb +7 -2
  49. data/lib/generated/gobl/org/image.rb +1 -1
  50. data/lib/generated/gobl/org/inbox.rb +1 -1
  51. data/lib/generated/gobl/org/item.rb +8 -3
  52. data/lib/generated/gobl/org/name.rb +1 -1
  53. data/lib/generated/gobl/org/party.rb +18 -13
  54. data/lib/generated/gobl/org/person.rb +1 -1
  55. data/lib/generated/gobl/org/registration.rb +1 -1
  56. data/lib/generated/gobl/org/telephone.rb +1 -1
  57. data/lib/generated/gobl/org/unit.rb +4 -1
  58. data/lib/generated/gobl/org/website.rb +2 -2
  59. data/lib/generated/gobl/pay/advance.rb +1 -1
  60. data/lib/generated/gobl/pay/card.rb +1 -1
  61. data/lib/generated/gobl/pay/credit_transfer.rb +1 -1
  62. data/lib/generated/gobl/pay/direct_debit.rb +1 -1
  63. data/lib/generated/gobl/pay/due_date.rb +1 -1
  64. data/lib/generated/gobl/pay/instructions.rb +1 -1
  65. data/lib/generated/gobl/pay/online.rb +1 -1
  66. data/lib/generated/gobl/pay/terms.rb +2 -3
  67. data/lib/generated/gobl/tax/category.rb +10 -5
  68. data/lib/generated/gobl/tax/category_total.rb +1 -1
  69. data/lib/generated/gobl/tax/code_definition.rb +33 -0
  70. data/lib/generated/gobl/tax/combo.rb +6 -1
  71. data/lib/generated/gobl/tax/identity.rb +1 -1
  72. data/lib/generated/gobl/tax/key_definition.rb +8 -8
  73. data/lib/generated/gobl/tax/preceding_definitions.rb +1 -1
  74. data/lib/generated/gobl/tax/rate.rb +10 -5
  75. data/lib/generated/gobl/tax/rate_total.rb +6 -1
  76. data/lib/generated/gobl/tax/rate_total_surcharge.rb +1 -1
  77. data/lib/generated/gobl/tax/rate_value.rb +1 -1
  78. data/lib/generated/gobl/tax/regime.rb +12 -1
  79. data/lib/generated/gobl/tax/scenario.rb +3 -3
  80. data/lib/generated/gobl/tax/scenario_set.rb +1 -1
  81. data/lib/generated/gobl/tax/set.rb +1 -1
  82. data/lib/generated/gobl/tax/total.rb +1 -1
  83. data/lib/generated/gobl/tax/zone.rb +3 -3
  84. data/lib/generated/gobl/uuid/uuid.rb +1 -1
  85. data/lib/gobl/operations.rb +2 -3
  86. data/lib/gobl/version.rb +1 -1
  87. metadata +5 -2
@@ -3,7 +3,7 @@
3
3
  ##
4
4
  ## DO NOT EDIT - This file was generated automatically.
5
5
  ##
6
- ## Generated with GOBL v0.50.5
6
+ ## Generated with GOBL v0.55.0
7
7
  ##
8
8
 
9
9
  module GOBL
@@ -18,16 +18,6 @@ module GOBL
18
18
  # @return [GOBL::UUID::UUID]
19
19
  property :uuid, GOBL::UUID::UUID
20
20
 
21
- # @!attribute [r] tax_id
22
- # The entity's legal ID code used for tax purposes. They may have other numbers, but we're only interested in those valid for tax purposes.
23
- # @return [GOBL::Tax::Identity]
24
- property :tax_id, GOBL::Tax::Identity
25
-
26
- # @!attribute [r] identities
27
- # Set of codes used to identify the party in other systems.
28
- # @return [Array<GOBL::Org::Identity>]
29
- property :identities, [GOBL::Org::Identity]
30
-
31
21
  # @!attribute [r] name
32
22
  # Legal name or representation of the organization.
33
23
  # @return [String]
@@ -39,6 +29,16 @@ module GOBL
39
29
  # @return [String]
40
30
  property :alias, String
41
31
 
32
+ # @!attribute [r] tax_id
33
+ # The entity's legal ID code used for tax purposes. They may have other numbers, but we're only interested in those valid for tax purposes.
34
+ # @return [GOBL::Tax::Identity]
35
+ property :tax_id, GOBL::Tax::Identity
36
+
37
+ # @!attribute [r] identities
38
+ # Set of codes used to identify the party in other systems.
39
+ # @return [Array<GOBL::Org::Identity>]
40
+ property :identities, [GOBL::Org::Identity]
41
+
42
42
  # @!attribute [r] people
43
43
  # Details of physical people who represent the party.
44
44
  # @return [Array<GOBL::Org::Person>]
@@ -61,8 +61,8 @@ module GOBL
61
61
 
62
62
  # @!attribute [r] websites
63
63
  # Public websites that provide further information about the party.
64
- # @return [Array<Website>]
65
- property :websites, [Website]
64
+ # @return [Array<GOBL::Org::Website>]
65
+ property :websites, [GOBL::Org::Website]
66
66
 
67
67
  # @!attribute [r] telephones
68
68
  # Regular telephone numbers
@@ -79,6 +79,11 @@ module GOBL
79
79
  # @return [Array<GOBL::Org::Image>]
80
80
  property :logos, [GOBL::Org::Image]
81
81
 
82
+ # @!attribute [r] ext
83
+ # Extension code map for any additional regime specific codes that may be required.
84
+ # @return [GOBL::CBC::CodeMap]
85
+ property :ext, GOBL::CBC::CodeMap
86
+
82
87
  # @!attribute [r] meta
83
88
  # Any additional semi-structured information that does not fit into the rest of the party.
84
89
  # @return [GOBL::CBC::Meta]
@@ -3,7 +3,7 @@
3
3
  ##
4
4
  ## DO NOT EDIT - This file was generated automatically.
5
5
  ##
6
- ## Generated with GOBL v0.50.5
6
+ ## Generated with GOBL v0.55.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.50.5
6
+ ## Generated with GOBL v0.55.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.50.5
6
+ ## Generated with GOBL v0.55.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.50.5
6
+ ## Generated with GOBL v0.55.0
7
7
  ##
8
8
 
9
9
  module GOBL
@@ -37,6 +37,9 @@ module GOBL
37
37
  'h' => 'Hours',
38
38
  'min' => 'Minutes',
39
39
  'piece' => 'Pieces',
40
+ 'item' => 'Items',
41
+ 'service' => 'Service Units',
42
+ 'activity' => 'Activity',
40
43
  'bag' => 'Bags',
41
44
  'box' => 'Boxes',
42
45
  'bin' => 'Bins',
@@ -3,7 +3,7 @@
3
3
  ##
4
4
  ## DO NOT EDIT - This file was generated automatically.
5
5
  ##
6
- ## Generated with GOBL v0.50.5
6
+ ## Generated with GOBL v0.55.0
7
7
  ##
8
8
 
9
9
  module GOBL
@@ -11,7 +11,7 @@ module GOBL
11
11
  # Website describes what is expected for a web address.
12
12
  class Website < GOBL::Object
13
13
  # The Schema ID of the GOBL Website structure
14
- SCHEMA_ID = 'https://gobl.org/draft-0/org/party#/$defs/Website'
14
+ SCHEMA_ID = 'https://gobl.org/draft-0/org/website'
15
15
 
16
16
  # @!attribute [r] uuid
17
17
  # Unique identity code
@@ -3,7 +3,7 @@
3
3
  ##
4
4
  ## DO NOT EDIT - This file was generated automatically.
5
5
  ##
6
- ## Generated with GOBL v0.50.5
6
+ ## Generated with GOBL v0.55.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.50.5
6
+ ## Generated with GOBL v0.55.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.50.5
6
+ ## Generated with GOBL v0.55.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.50.5
6
+ ## Generated with GOBL v0.55.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.50.5
6
+ ## Generated with GOBL v0.55.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.50.5
6
+ ## Generated with GOBL v0.55.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.50.5
6
+ ## Generated with GOBL v0.55.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.50.5
6
+ ## Generated with GOBL v0.55.0
7
7
  ##
8
8
 
9
9
  module GOBL
@@ -31,8 +31,7 @@ module GOBL
31
31
  # Type of terms to be applied.
32
32
  # @return [GOBL::CBC::Key]
33
33
  property :key, GOBL::CBC::Key
34
- validates_presence_of :key
35
- validates_inclusion_of :key, in: KEY_ENUM.keys
34
+ validates_inclusion_of :key, in: KEY_ENUM.keys, allow_blank: true
36
35
 
37
36
  # @!attribute [r] detail
38
37
  # Text detail of the chosen payment terms.
@@ -3,7 +3,7 @@
3
3
  ##
4
4
  ## DO NOT EDIT - This file was generated automatically.
5
5
  ##
6
- ## Generated with GOBL v0.50.5
6
+ ## Generated with GOBL v0.55.0
7
7
  ##
8
8
 
9
9
  module GOBL
@@ -42,10 +42,15 @@ module GOBL
42
42
  # @return [Array<Rate>]
43
43
  property :rates, [Rate]
44
44
 
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
+ # @!attribute [r] extensions
46
+ # Extensions defines a list of keys for codes to use as an alternative to choosing a rate for the tax category. Every key must be defined in the Regime's extensions table.
47
+ # @return [Array<GOBL::CBC::Key>]
48
+ property :extensions, [GOBL::CBC::Key]
49
+
50
+ # @!attribute [r] map
51
+ # Map defines a set of regime specific code mappings.
52
+ # @return [GOBL::CBC::CodeMap]
53
+ property :map, GOBL::CBC::CodeMap
49
54
 
50
55
  # @!attribute [r] meta
51
56
  # 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.50.5
6
+ ## Generated with GOBL v0.55.0
7
7
  ##
8
8
 
9
9
  module GOBL
@@ -0,0 +1,33 @@
1
+ # frozen_string_literal: true
2
+
3
+ ##
4
+ ## DO NOT EDIT - This file was generated automatically.
5
+ ##
6
+ ## Generated with GOBL v0.55.0
7
+ ##
8
+
9
+ module GOBL
10
+ module Tax
11
+ # CodeDefinition describes a specific code and how it maps to a human name and description if appropriate.
12
+ class CodeDefinition < GOBL::Object
13
+ # The Schema ID of the GOBL CodeDefinition structure
14
+ SCHEMA_ID = 'https://gobl.org/draft-0/tax/regime#/$defs/CodeDefinition'
15
+
16
+ # @!attribute [r] code
17
+ # Code for which the definition is for.
18
+ # @return [GOBL::CBC::Code]
19
+ property :code, GOBL::CBC::Code
20
+ validates_presence_of :code
21
+
22
+ # @!attribute [r] name
23
+ # Short name for the code, if relevant.
24
+ # @return [GOBL::I18n::String]
25
+ property :name, GOBL::I18n::String
26
+
27
+ # @!attribute [r] desc
28
+ # Description offering more details about when the code should be used.
29
+ # @return [GOBL::I18n::String]
30
+ property :desc, GOBL::I18n::String
31
+ end
32
+ end
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.50.5
6
+ ## Generated with GOBL v0.55.0
7
7
  ##
8
8
 
9
9
  module GOBL
@@ -33,6 +33,11 @@ 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] ext
38
+ # Local codes that apply for a given rate or percentage that need to be identified and validated.
39
+ # @return [GOBL::CBC::CodeMap]
40
+ property :ext, GOBL::CBC::CodeMap
36
41
  end
37
42
  end
38
43
  end
@@ -3,7 +3,7 @@
3
3
  ##
4
4
  ## DO NOT EDIT - This file was generated automatically.
5
5
  ##
6
- ## Generated with GOBL v0.50.5
6
+ ## Generated with GOBL v0.55.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.50.5
6
+ ## Generated with GOBL v0.55.0
7
7
  ##
8
8
 
9
9
  module GOBL
@@ -30,14 +30,14 @@ module GOBL
30
30
  property :desc, GOBL::I18n::String
31
31
 
32
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
33
+ # Codes describes the list of codes that can be used alongside the Key, for example with identities.
34
+ # @return [Array<CodeDefinition>]
35
+ property :codes, [CodeDefinition]
36
36
 
37
- # @!attribute [r] meta
38
- # Any additional data that might be relevant in some regimes.
39
- # @return [GOBL::CBC::Meta]
40
- property :meta, GOBL::CBC::Meta
37
+ # @!attribute [r] map
38
+ # Map helps map local keys to specific codes, useful for converting the described key into a local code.
39
+ # @return [GOBL::CBC::CodeMap]
40
+ property :map, GOBL::CBC::CodeMap
41
41
  end
42
42
  end
43
43
  end
@@ -3,7 +3,7 @@
3
3
  ##
4
4
  ## DO NOT EDIT - This file was generated automatically.
5
5
  ##
6
- ## Generated with GOBL v0.50.5
6
+ ## Generated with GOBL v0.55.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.50.5
6
+ ## Generated with GOBL v0.55.0
7
7
  ##
8
8
 
9
9
  module GOBL
@@ -40,10 +40,15 @@ module GOBL
40
40
  # @return [Array<RateValue>]
41
41
  property :values, [RateValue]
42
42
 
43
- # @!attribute [r] codes
44
- # Codes defines a set of regime specific code mappings.
45
- # @return [GOBL::CBC::CodeSet]
46
- property :codes, GOBL::CBC::CodeSet
43
+ # @!attribute [r] extensions
44
+ # Extensions defines a list of keys for codes that can or must be associated with the tax rate for it to be validated. Every key must be defined in the Regime's extensions.
45
+ # @return [Array<GOBL::CBC::Key>]
46
+ property :extensions, [GOBL::CBC::Key]
47
+
48
+ # @!attribute [r] map
49
+ # Map is used to associate specific codes with the chosen rate.
50
+ # @return [GOBL::CBC::CodeMap]
51
+ property :map, GOBL::CBC::CodeMap
47
52
 
48
53
  # @!attribute [r] meta
49
54
  # Meta contains additional information about the rate that is relevant for local frequently used implementations.
@@ -3,7 +3,7 @@
3
3
  ##
4
4
  ## DO NOT EDIT - This file was generated automatically.
5
5
  ##
6
- ## Generated with GOBL v0.50.5
6
+ ## Generated with GOBL v0.55.0
7
7
  ##
8
8
 
9
9
  module GOBL
@@ -18,6 +18,11 @@ module GOBL
18
18
  # @return [GOBL::CBC::Key]
19
19
  property :key, GOBL::CBC::Key
20
20
 
21
+ # @!attribute [r] ext
22
+ # If the rate is defined with extensions, they'll be used to group by also.
23
+ # @return [GOBL::CBC::CodeMap]
24
+ property :ext, GOBL::CBC::CodeMap
25
+
21
26
  # @!attribute [r] base
22
27
  # Base amount that the percentage is applied to.
23
28
  # @return [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.50.5
6
+ ## Generated with GOBL v0.55.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.50.5
6
+ ## Generated with GOBL v0.55.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.50.5
6
+ ## Generated with GOBL v0.55.0
7
7
  ##
8
8
 
9
9
  module GOBL
@@ -19,6 +19,12 @@ module GOBL
19
19
  property :name, GOBL::I18n::String
20
20
  validates_presence_of :name
21
21
 
22
+ # @!attribute [r] time_zone
23
+ # Location name for the country's central time zone. Accepted values from IANA Time Zone Database (https://iana.org/time-zones).
24
+ # @return [String]
25
+ property :time_zone, String
26
+ validates_presence_of :time_zone
27
+
22
28
  # @!attribute [r] country
23
29
  # Country code for the region
24
30
  # @return [GOBL::L10n::CountryCode]
@@ -51,6 +57,11 @@ module GOBL
51
57
  # @return [Array<KeyDefinition>]
52
58
  property :identity_types, [KeyDefinition]
53
59
 
60
+ # @!attribute [r] extensions
61
+ # Extensions defines the keys that can be used for extended or extra data inside the regime that is specific to the regime and cannot be easily determined from other GOBL structures. Typically these are used to define local codes for suppliers, customers, products, or tax rates.
62
+ # @return [Array<KeyDefinition>]
63
+ property :extensions, [KeyDefinition]
64
+
54
65
  # @!attribute [r] charge_types
55
66
  # Charge types specific for the regime and may be validated or used in the UI as suggestions
56
67
  # @return [Array<KeyDefinition>]
@@ -3,7 +3,7 @@
3
3
  ##
4
4
  ## DO NOT EDIT - This file was generated automatically.
5
5
  ##
6
- ## Generated with GOBL v0.50.5
6
+ ## Generated with GOBL v0.55.0
7
7
  ##
8
8
 
9
9
  module GOBL
@@ -35,8 +35,8 @@ module GOBL
35
35
 
36
36
  # @!attribute [r] codes
37
37
  # Codes is used to define additional codes for regime specific situations.
38
- # @return [GOBL::CBC::CodeSet]
39
- property :codes, GOBL::CBC::CodeSet
38
+ # @return [GOBL::CBC::CodeMap]
39
+ property :codes, GOBL::CBC::CodeMap
40
40
 
41
41
  # @!attribute [r] meta
42
42
  # Any additional local meta data that may be useful in integrations.
@@ -3,7 +3,7 @@
3
3
  ##
4
4
  ## DO NOT EDIT - This file was generated automatically.
5
5
  ##
6
- ## Generated with GOBL v0.50.5
6
+ ## Generated with GOBL v0.55.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.50.5
6
+ ## Generated with GOBL v0.55.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.50.5
6
+ ## Generated with GOBL v0.55.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.50.5
6
+ ## Generated with GOBL v0.55.0
7
7
  ##
8
8
 
9
9
  module GOBL
@@ -36,8 +36,8 @@ module GOBL
36
36
 
37
37
  # @!attribute [r] codes
38
38
  # Codes defines a set of regime specific code mappings.
39
- # @return [GOBL::CBC::CodeSet]
40
- property :codes, GOBL::CBC::CodeSet
39
+ # @return [GOBL::CBC::CodeMap]
40
+ property :codes, GOBL::CBC::CodeMap
41
41
 
42
42
  # @!attribute [r] meta
43
43
  # Any additional information
@@ -3,7 +3,7 @@
3
3
  ##
4
4
  ## DO NOT EDIT - This file was generated automatically.
5
5
  ##
6
- ## Generated with GOBL v0.50.5
6
+ ## Generated with GOBL v0.55.0
7
7
  ##
8
8
 
9
9
  module GOBL
@@ -61,12 +61,11 @@ module GOBL
61
61
  # @example Build an envelope forcing it to be a non-draft.
62
62
  # envelope = GOBL::Envelop.from_json!(File.read('draft_envelope.json'))
63
63
  # GOBL.build(envelope, draft: false) #=> A new, non-draft GOBL::Envelope
64
- def build(struct, envelop: nil, draft: nil)
64
+ def build(struct, envelop: nil)
65
65
  check_struct_type struct, BUILDABLE_TYPES
66
66
 
67
67
  response = request_action(:build, struct: struct,
68
- envelop: envelop,
69
- draft: draft)
68
+ envelop: envelop)
70
69
 
71
70
  raise ServiceError, response['error'] if response['error'].present?
72
71
 
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.15.2'
4
+ VERSION = '0.16.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.15.2
4
+ version: 0.16.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Luismi Cavalle
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2023-06-14 00:00:00.000000000 Z
14
+ date: 2023-08-29 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: activesupport
@@ -72,6 +72,7 @@ files:
72
72
  - data/regimes/pt.json
73
73
  - data/regimes/us.json
74
74
  - lib/generated/gobl/bill/charge.rb
75
+ - lib/generated/gobl/bill/correction_options.rb
75
76
  - lib/generated/gobl/bill/delivery.rb
76
77
  - lib/generated/gobl/bill/discount.rb
77
78
  - lib/generated/gobl/bill/document_reference.rb
@@ -88,6 +89,7 @@ files:
88
89
  - lib/generated/gobl/cal/date.rb
89
90
  - lib/generated/gobl/cal/period.rb
90
91
  - lib/generated/gobl/cbc/code.rb
92
+ - lib/generated/gobl/cbc/code_map.rb
91
93
  - lib/generated/gobl/cbc/code_set.rb
92
94
  - lib/generated/gobl/cbc/key.rb
93
95
  - lib/generated/gobl/cbc/meta.rb
@@ -128,6 +130,7 @@ files:
128
130
  - lib/generated/gobl/pay/terms.rb
129
131
  - lib/generated/gobl/tax/category.rb
130
132
  - lib/generated/gobl/tax/category_total.rb
133
+ - lib/generated/gobl/tax/code_definition.rb
131
134
  - lib/generated/gobl/tax/combo.rb
132
135
  - lib/generated/gobl/tax/identity.rb
133
136
  - lib/generated/gobl/tax/key_definition.rb