gobl 0.10.0 → 0.11.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (82) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +7 -13
  3. data/data/regimes/es.json +55 -3
  4. data/data/regimes/it.json +1707 -0
  5. data/data/regimes/pt.json +272 -7
  6. data/lib/{gobl → generated/gobl}/bill/charge.rb +1 -1
  7. data/lib/{gobl → generated/gobl}/bill/delivery.rb +1 -1
  8. data/lib/{gobl → generated/gobl}/bill/discount.rb +1 -1
  9. data/lib/{gobl → generated/gobl}/bill/document_reference.rb +1 -1
  10. data/lib/{gobl → generated/gobl}/bill/invoice.rb +1 -1
  11. data/lib/{gobl → generated/gobl}/bill/line.rb +1 -1
  12. data/lib/{gobl → generated/gobl}/bill/line_charge.rb +1 -1
  13. data/lib/{gobl → generated/gobl}/bill/line_discount.rb +1 -1
  14. data/lib/{gobl → generated/gobl}/bill/ordering.rb +1 -1
  15. data/lib/{gobl → generated/gobl}/bill/outlay.rb +1 -1
  16. data/lib/{gobl → generated/gobl}/bill/payment.rb +1 -1
  17. data/lib/{gobl → generated/gobl}/bill/preceding.rb +1 -2
  18. data/lib/{gobl → generated/gobl}/bill/tax.rb +1 -1
  19. data/lib/{gobl → generated/gobl}/bill/totals.rb +1 -1
  20. data/lib/{gobl → generated/gobl}/cal/date.rb +1 -1
  21. data/lib/{gobl → generated/gobl}/cal/period.rb +1 -1
  22. data/lib/{gobl → generated/gobl}/cbc/code.rb +1 -1
  23. data/lib/{gobl → generated/gobl}/cbc/key.rb +1 -1
  24. data/lib/{gobl → generated/gobl}/cbc/meta.rb +1 -1
  25. data/lib/generated/gobl/cbc/note.rb +68 -0
  26. data/lib/{gobl → generated/gobl}/cbc/stamp.rb +1 -1
  27. data/lib/{gobl → generated/gobl}/currency/code.rb +1 -1
  28. data/lib/{gobl → generated/gobl}/currency/exchange_rate.rb +1 -1
  29. data/lib/{gobl → generated/gobl}/document.rb +2 -2
  30. data/lib/{gobl → generated/gobl}/dsig/digest.rb +1 -1
  31. data/lib/{gobl → generated/gobl}/dsig/signature.rb +1 -1
  32. data/lib/{gobl → generated/gobl}/envelope.rb +1 -1
  33. data/lib/{gobl → generated/gobl}/header.rb +1 -1
  34. data/lib/{gobl → generated/gobl}/i18n/string.rb +1 -1
  35. data/lib/{gobl → generated/gobl}/l10n/code.rb +1 -1
  36. data/lib/{gobl → generated/gobl}/l10n/country_code.rb +1 -1
  37. data/lib/{gobl → generated/gobl}/note/message.rb +1 -1
  38. data/lib/{gobl → generated/gobl}/org/address.rb +1 -1
  39. data/lib/{gobl → generated/gobl}/org/coordinates.rb +1 -1
  40. data/lib/{gobl → generated/gobl}/org/email.rb +1 -1
  41. data/lib/{gobl → generated/gobl}/org/identity.rb +1 -1
  42. data/lib/{gobl → generated/gobl}/org/image.rb +1 -1
  43. data/lib/{gobl → generated/gobl}/org/inbox.rb +1 -1
  44. data/lib/{gobl → generated/gobl}/org/item.rb +1 -1
  45. data/lib/{gobl → generated/gobl}/org/name.rb +1 -1
  46. data/lib/{gobl → generated/gobl}/org/party.rb +1 -1
  47. data/lib/{gobl → generated/gobl}/org/person.rb +1 -1
  48. data/lib/{gobl → generated/gobl}/org/registration.rb +1 -1
  49. data/lib/{gobl → generated/gobl}/org/telephone.rb +1 -1
  50. data/lib/{gobl → generated/gobl}/org/unit.rb +1 -1
  51. data/lib/{gobl → generated/gobl}/org/website.rb +1 -1
  52. data/lib/{gobl → generated/gobl}/pay/advance.rb +1 -1
  53. data/lib/{gobl → generated/gobl}/pay/card.rb +1 -1
  54. data/lib/{gobl → generated/gobl}/pay/credit_transfer.rb +1 -1
  55. data/lib/{gobl → generated/gobl}/pay/direct_debit.rb +1 -1
  56. data/lib/{gobl → generated/gobl}/pay/due_date.rb +1 -1
  57. data/lib/{gobl → generated/gobl}/pay/instructions.rb +1 -1
  58. data/lib/{gobl → generated/gobl}/pay/online.rb +1 -1
  59. data/lib/{gobl → generated/gobl}/pay/terms.rb +1 -1
  60. data/lib/{gobl → generated/gobl}/tax/category.rb +1 -1
  61. data/lib/{gobl → generated/gobl}/tax/category_total.rb +1 -1
  62. data/lib/{gobl → generated/gobl}/tax/combo.rb +1 -1
  63. data/lib/{gobl → generated/gobl}/tax/identity.rb +4 -14
  64. data/lib/generated/gobl/tax/identity_type.rb +33 -0
  65. data/lib/{gobl → generated/gobl}/tax/key_definition.rb +1 -1
  66. data/lib/{gobl → generated/gobl}/tax/preceding_definitions.rb +1 -1
  67. data/lib/{gobl → generated/gobl}/tax/rate.rb +1 -1
  68. data/lib/{gobl → generated/gobl}/tax/rate_total.rb +1 -1
  69. data/lib/{gobl → generated/gobl}/tax/rate_total_surcharge.rb +1 -1
  70. data/lib/{gobl → generated/gobl}/tax/rate_value.rb +1 -1
  71. data/lib/{gobl → generated/gobl}/tax/regime.rb +6 -1
  72. data/lib/{gobl → generated/gobl}/tax/scenario.rb +1 -1
  73. data/lib/{gobl → generated/gobl}/tax/scenario_set.rb +1 -1
  74. data/lib/{gobl → generated/gobl}/tax/set.rb +1 -1
  75. data/lib/{gobl → generated/gobl}/tax/tag.rb +1 -1
  76. data/lib/{gobl → generated/gobl}/tax/total.rb +1 -1
  77. data/lib/{gobl → generated/gobl}/tax/zone.rb +1 -1
  78. data/lib/{gobl → generated/gobl}/uuid/uuid.rb +1 -1
  79. data/lib/gobl/version.rb +1 -1
  80. data/lib/gobl.rb +1 -0
  81. metadata +75 -74
  82. data/lib/gobl/cbc/note.rb +0 -38
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.10.0
4
+ version: 0.11.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: 2023-03-17 00:00:00.000000000 Z
13
+ date: 2023-03-28 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: activesupport
@@ -68,94 +68,95 @@ files:
68
68
  - data/regimes/it.json
69
69
  - data/regimes/nl.json
70
70
  - data/regimes/pt.json
71
+ - lib/generated/gobl/bill/charge.rb
72
+ - lib/generated/gobl/bill/delivery.rb
73
+ - lib/generated/gobl/bill/discount.rb
74
+ - lib/generated/gobl/bill/document_reference.rb
75
+ - lib/generated/gobl/bill/invoice.rb
76
+ - lib/generated/gobl/bill/line.rb
77
+ - lib/generated/gobl/bill/line_charge.rb
78
+ - lib/generated/gobl/bill/line_discount.rb
79
+ - lib/generated/gobl/bill/ordering.rb
80
+ - lib/generated/gobl/bill/outlay.rb
81
+ - lib/generated/gobl/bill/payment.rb
82
+ - lib/generated/gobl/bill/preceding.rb
83
+ - lib/generated/gobl/bill/tax.rb
84
+ - lib/generated/gobl/bill/totals.rb
85
+ - lib/generated/gobl/cal/date.rb
86
+ - lib/generated/gobl/cal/period.rb
87
+ - lib/generated/gobl/cbc/code.rb
88
+ - lib/generated/gobl/cbc/key.rb
89
+ - lib/generated/gobl/cbc/meta.rb
90
+ - lib/generated/gobl/cbc/note.rb
91
+ - lib/generated/gobl/cbc/stamp.rb
92
+ - lib/generated/gobl/currency/code.rb
93
+ - lib/generated/gobl/currency/exchange_rate.rb
94
+ - lib/generated/gobl/document.rb
95
+ - lib/generated/gobl/dsig/digest.rb
96
+ - lib/generated/gobl/dsig/signature.rb
97
+ - lib/generated/gobl/envelope.rb
98
+ - lib/generated/gobl/header.rb
99
+ - lib/generated/gobl/i18n/string.rb
100
+ - lib/generated/gobl/l10n/code.rb
101
+ - lib/generated/gobl/l10n/country_code.rb
102
+ - lib/generated/gobl/note/message.rb
103
+ - lib/generated/gobl/org/address.rb
104
+ - lib/generated/gobl/org/coordinates.rb
105
+ - lib/generated/gobl/org/email.rb
106
+ - lib/generated/gobl/org/identity.rb
107
+ - lib/generated/gobl/org/image.rb
108
+ - lib/generated/gobl/org/inbox.rb
109
+ - lib/generated/gobl/org/item.rb
110
+ - lib/generated/gobl/org/name.rb
111
+ - lib/generated/gobl/org/party.rb
112
+ - lib/generated/gobl/org/person.rb
113
+ - lib/generated/gobl/org/registration.rb
114
+ - lib/generated/gobl/org/telephone.rb
115
+ - lib/generated/gobl/org/unit.rb
116
+ - lib/generated/gobl/org/website.rb
117
+ - lib/generated/gobl/pay/advance.rb
118
+ - lib/generated/gobl/pay/card.rb
119
+ - lib/generated/gobl/pay/credit_transfer.rb
120
+ - lib/generated/gobl/pay/direct_debit.rb
121
+ - lib/generated/gobl/pay/due_date.rb
122
+ - lib/generated/gobl/pay/instructions.rb
123
+ - lib/generated/gobl/pay/online.rb
124
+ - lib/generated/gobl/pay/terms.rb
125
+ - lib/generated/gobl/tax/category.rb
126
+ - lib/generated/gobl/tax/category_total.rb
127
+ - lib/generated/gobl/tax/combo.rb
128
+ - lib/generated/gobl/tax/identity.rb
129
+ - lib/generated/gobl/tax/identity_type.rb
130
+ - lib/generated/gobl/tax/key_definition.rb
131
+ - lib/generated/gobl/tax/preceding_definitions.rb
132
+ - lib/generated/gobl/tax/rate.rb
133
+ - lib/generated/gobl/tax/rate_total.rb
134
+ - lib/generated/gobl/tax/rate_total_surcharge.rb
135
+ - lib/generated/gobl/tax/rate_value.rb
136
+ - lib/generated/gobl/tax/regime.rb
137
+ - lib/generated/gobl/tax/scenario.rb
138
+ - lib/generated/gobl/tax/scenario_set.rb
139
+ - lib/generated/gobl/tax/set.rb
140
+ - lib/generated/gobl/tax/tag.rb
141
+ - lib/generated/gobl/tax/total.rb
142
+ - lib/generated/gobl/tax/zone.rb
143
+ - lib/generated/gobl/uuid/uuid.rb
71
144
  - lib/gobl.rb
72
- - lib/gobl/bill/charge.rb
73
- - lib/gobl/bill/delivery.rb
74
- - lib/gobl/bill/discount.rb
75
- - lib/gobl/bill/document_reference.rb
76
- - lib/gobl/bill/invoice.rb
77
- - lib/gobl/bill/line.rb
78
- - lib/gobl/bill/line_charge.rb
79
- - lib/gobl/bill/line_discount.rb
80
- - lib/gobl/bill/ordering.rb
81
- - lib/gobl/bill/outlay.rb
82
- - lib/gobl/bill/payment.rb
83
- - lib/gobl/bill/preceding.rb
84
- - lib/gobl/bill/tax.rb
85
- - lib/gobl/bill/totals.rb
86
- - lib/gobl/cal/date.rb
87
- - lib/gobl/cal/period.rb
88
- - lib/gobl/cbc/code.rb
89
- - lib/gobl/cbc/key.rb
90
- - lib/gobl/cbc/meta.rb
91
- - lib/gobl/cbc/note.rb
92
- - lib/gobl/cbc/stamp.rb
93
145
  - lib/gobl/config.rb
94
- - lib/gobl/currency/code.rb
95
- - lib/gobl/currency/exchange_rate.rb
96
- - lib/gobl/document.rb
97
- - lib/gobl/dsig/digest.rb
98
- - lib/gobl/dsig/signature.rb
99
146
  - lib/gobl/enum.rb
100
- - lib/gobl/envelope.rb
101
147
  - lib/gobl/extensions/document_helper.rb
102
148
  - lib/gobl/extensions/envelope_helper.rb
103
149
  - lib/gobl/extensions/i18n/value_keys_helper.rb
104
150
  - lib/gobl/extensions/tax/regime_helper.rb
105
- - lib/gobl/header.rb
106
- - lib/gobl/i18n/string.rb
107
151
  - lib/gobl/id.rb
108
- - lib/gobl/l10n/code.rb
109
- - lib/gobl/l10n/country_code.rb
110
152
  - lib/gobl/map.rb
111
- - lib/gobl/note/message.rb
112
153
  - lib/gobl/num/amount.rb
113
154
  - lib/gobl/num/percentage.rb
114
155
  - lib/gobl/object.rb
115
156
  - lib/gobl/operations.rb
116
157
  - lib/gobl/operations/service_error.rb
117
158
  - lib/gobl/operations/validation_result.rb
118
- - lib/gobl/org/address.rb
119
- - lib/gobl/org/coordinates.rb
120
- - lib/gobl/org/email.rb
121
- - lib/gobl/org/identity.rb
122
- - lib/gobl/org/image.rb
123
- - lib/gobl/org/inbox.rb
124
- - lib/gobl/org/item.rb
125
- - lib/gobl/org/name.rb
126
- - lib/gobl/org/party.rb
127
- - lib/gobl/org/person.rb
128
- - lib/gobl/org/registration.rb
129
- - lib/gobl/org/telephone.rb
130
- - lib/gobl/org/unit.rb
131
- - lib/gobl/org/website.rb
132
- - lib/gobl/pay/advance.rb
133
- - lib/gobl/pay/card.rb
134
- - lib/gobl/pay/credit_transfer.rb
135
- - lib/gobl/pay/direct_debit.rb
136
- - lib/gobl/pay/due_date.rb
137
- - lib/gobl/pay/instructions.rb
138
- - lib/gobl/pay/online.rb
139
- - lib/gobl/pay/terms.rb
140
159
  - lib/gobl/struct.rb
141
- - lib/gobl/tax/category.rb
142
- - lib/gobl/tax/category_total.rb
143
- - lib/gobl/tax/combo.rb
144
- - lib/gobl/tax/identity.rb
145
- - lib/gobl/tax/key_definition.rb
146
- - lib/gobl/tax/preceding_definitions.rb
147
- - lib/gobl/tax/rate.rb
148
- - lib/gobl/tax/rate_total.rb
149
- - lib/gobl/tax/rate_total_surcharge.rb
150
- - lib/gobl/tax/rate_value.rb
151
- - lib/gobl/tax/regime.rb
152
- - lib/gobl/tax/scenario.rb
153
- - lib/gobl/tax/scenario_set.rb
154
- - lib/gobl/tax/set.rb
155
- - lib/gobl/tax/tag.rb
156
- - lib/gobl/tax/total.rb
157
- - lib/gobl/tax/zone.rb
158
- - lib/gobl/uuid/uuid.rb
159
160
  - lib/gobl/version.rb
160
161
  homepage: https://github.com/invopop/gobl.ruby
161
162
  licenses:
data/lib/gobl/cbc/note.rb DELETED
@@ -1,38 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- ##
4
- ## DO NOT EDIT - This file was generated automatically.
5
- ##
6
- ## Generated with GOBL v0.38.0
7
- ##
8
-
9
- module GOBL
10
- module CBC
11
- # Note represents a free text of additional information that may be added to a document.
12
- class Note < GOBL::Object
13
- # The Schema ID of the GOBL Note structure
14
- SCHEMA_ID = 'https://gobl.org/draft-0/cbc/note'
15
-
16
- # @!attribute [r] key
17
- # Key specifying subject of the text
18
- # @return [GOBL::CBC::Key]
19
- property :key, GOBL::CBC::Key
20
-
21
- # @!attribute [r] code
22
- # Code used for additional data that may be required to identify the note.
23
- # @return [String]
24
- property :code, String
25
-
26
- # @!attribute [r] src
27
- # Source of this note, especially useful when auto-generated.
28
- # @return [GOBL::CBC::Key]
29
- property :src, GOBL::CBC::Key
30
-
31
- # @!attribute [r] text
32
- # The contents of the note
33
- # @return [String]
34
- property :text, String
35
- validates_presence_of :text
36
- end
37
- end
38
- end