e-invoice-api 0.13.0 → 0.15.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9f1aa76dde526bb3a6037077c94486fce371fbfc3163f35870d8e2e030105fe8
4
- data.tar.gz: 14a5e513da3ce3c5821cb1331aeffd5da50d8bc728fae006d9bef2ceaa87e71e
3
+ metadata.gz: 6806a73bf19c4feac04787dab466cba830537ad4cf174efd330d5769127afe46
4
+ data.tar.gz: 421b24bb08ef0d92593b707e36dd8254532eaa9104a125ad261df9eb3c7c768a
5
5
  SHA512:
6
- metadata.gz: c994a981f4a6be764b24708a6c994f4f78a2b138e1643c4cb17a593cb7bb0f942eabf5ea9b5bb2c8a0b053200c3cdba6fc3ab7c5c2c14ab3c2fc0e0e8c5da5f8
7
- data.tar.gz: 6afca35923c60ee4183a94712ab4f1c3145794d6718f8c04ffa273a81d4fca02d284334f01b6ec78bb35f008baf1510194076cc2a230ee8ac98d24cdd86f1eee
6
+ metadata.gz: 6d28f0f4deea82ed2df056a4e86db84dbb6a865bc33bc82bd6b165eee393c2dd8ac81329a17ffa3110d37f9f07cb60bddbe12184de9ced18e1aa777a150c3dbd
7
+ data.tar.gz: 4c292c98f552ca007a0e343ea325d37dbf4256d56ddb90efbb678cfa1b3ee2cb7facf9a2f42ab1c00c6982541aec340fe625d7f049985271309a87e9dd4591c9
data/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.15.0 (2025-11-18)
4
+
5
+ Full Changelog: [v0.14.0...v0.15.0](https://github.com/e-invoice-be/e-invoice-rb/compare/v0.14.0...v0.15.0)
6
+
7
+ ### Features
8
+
9
+ * **api:** api update ([63a4434](https://github.com/e-invoice-be/e-invoice-rb/commit/63a44344752f9354a461795cb68398f0b0208c4d))
10
+
11
+ ## 0.14.0 (2025-11-16)
12
+
13
+ Full Changelog: [v0.13.0...v0.14.0](https://github.com/e-invoice-be/e-invoice-rb/compare/v0.13.0...v0.14.0)
14
+
15
+ ### Features
16
+
17
+ * **api:** api update ([865df03](https://github.com/e-invoice-be/e-invoice-rb/commit/865df0361a2add108f9b47763666b3c8b822de6f))
18
+
3
19
  ## 0.13.0 (2025-11-14)
4
20
 
5
21
  Full Changelog: [v0.12.0...v0.13.0](https://github.com/e-invoice-be/e-invoice-rb/compare/v0.12.0...v0.13.0)
data/README.md CHANGED
@@ -17,7 +17,7 @@ To use this gem, install via Bundler by adding the following to your application
17
17
  <!-- x-release-please-start-version -->
18
18
 
19
19
  ```ruby
20
- gem "e-invoice-api", "~> 0.13.0"
20
+ gem "e-invoice-api", "~> 0.15.0"
21
21
  ```
22
22
 
23
23
  <!-- x-release-please-end -->
@@ -18,7 +18,8 @@ module EInvoiceAPI
18
18
 
19
19
  # @!attribute multiplier_factor
20
20
  # The percentage that may be used, in conjunction with the allowance base amount,
21
- # to calculate the allowance amount. To state 20%, use value 20
21
+ # to calculate the allowance amount. To state 20%, use value 20. Must be rounded
22
+ # to maximum 2 decimals
22
23
  #
23
24
  # @return [String, nil]
24
25
  optional :multiplier_factor, String, nil?: true
@@ -30,21 +31,20 @@ module EInvoiceAPI
30
31
  optional :reason, String, nil?: true
31
32
 
32
33
  # @!attribute reason_code
33
- # The code for the allowance reason
34
+ # Allowance reason codes for invoice discounts and charges
34
35
  #
35
- # @return [String, nil]
36
- optional :reason_code, String, nil?: true
36
+ # @return [Symbol, EInvoiceAPI::Models::Allowance::ReasonCode, nil]
37
+ optional :reason_code, enum: -> { EInvoiceAPI::Allowance::ReasonCode }, nil?: true
37
38
 
38
39
  # @!attribute tax_code
39
- # Duty or tax or fee category codes (Subset of UNCL5305)
40
- #
41
- # Agency: UN/CEFACT Version: D.16B Subset: OpenPEPPOL
40
+ # The VAT category code that applies to the allowance
42
41
  #
43
42
  # @return [Symbol, EInvoiceAPI::Models::Allowance::TaxCode, nil]
44
- optional :tax_code, enum: -> { EInvoiceAPI::Allowance::TaxCode }, nil?: true
43
+ optional :tax_code, enum: -> { EInvoiceAPI::Allowance::TaxCode }
45
44
 
46
45
  # @!attribute tax_rate
47
- # The VAT rate, represented as percentage that applies to the allowance
46
+ # The VAT rate, represented as percentage that applies to the allowance. Must be
47
+ # rounded to maximum 2 decimals
48
48
  #
49
49
  # @return [String, nil]
50
50
  optional :tax_rate, String, nil?: true
@@ -63,15 +63,43 @@ module EInvoiceAPI
63
63
  #
64
64
  # @param reason [String, nil] The reason for the allowance
65
65
  #
66
- # @param reason_code [String, nil] The code for the allowance reason
66
+ # @param reason_code [Symbol, EInvoiceAPI::Models::Allowance::ReasonCode, nil] Allowance reason codes for invoice discounts and charges
67
67
  #
68
- # @param tax_code [Symbol, EInvoiceAPI::Models::Allowance::TaxCode, nil] Duty or tax or fee category codes (Subset of UNCL5305)
68
+ # @param tax_code [Symbol, EInvoiceAPI::Models::Allowance::TaxCode] The VAT category code that applies to the allowance
69
69
  #
70
- # @param tax_rate [String, nil] The VAT rate, represented as percentage that applies to the allowance
70
+ # @param tax_rate [String, nil] The VAT rate, represented as percentage that applies to the allowance. Must be r
71
71
 
72
- # Duty or tax or fee category codes (Subset of UNCL5305)
72
+ # Allowance reason codes for invoice discounts and charges
73
73
  #
74
- # Agency: UN/CEFACT Version: D.16B Subset: OpenPEPPOL
74
+ # @see EInvoiceAPI::Models::Allowance#reason_code
75
+ module ReasonCode
76
+ extend EInvoiceAPI::Internal::Type::Enum
77
+
78
+ REASON_CODE_41 = :"41"
79
+ REASON_CODE_42 = :"42"
80
+ REASON_CODE_60 = :"60"
81
+ REASON_CODE_62 = :"62"
82
+ REASON_CODE_63 = :"63"
83
+ REASON_CODE_64 = :"64"
84
+ REASON_CODE_65 = :"65"
85
+ REASON_CODE_66 = :"66"
86
+ REASON_CODE_67 = :"67"
87
+ REASON_CODE_68 = :"68"
88
+ REASON_CODE_70 = :"70"
89
+ REASON_CODE_71 = :"71"
90
+ REASON_CODE_88 = :"88"
91
+ REASON_CODE_95 = :"95"
92
+ REASON_CODE_100 = :"100"
93
+ REASON_CODE_102 = :"102"
94
+ REASON_CODE_103 = :"103"
95
+ REASON_CODE_104 = :"104"
96
+ REASON_CODE_105 = :"105"
97
+
98
+ # @!method self.values
99
+ # @return [Array<Symbol>]
100
+ end
101
+
102
+ # The VAT category code that applies to the allowance
75
103
  #
76
104
  # @see EInvoiceAPI::Models::Allowance#tax_code
77
105
  module TaxCode
@@ -30,10 +30,10 @@ module EInvoiceAPI
30
30
  optional :reason, String, nil?: true
31
31
 
32
32
  # @!attribute reason_code
33
- # The code for the charge reason
33
+ # Charge reason codes for invoice charges and fees
34
34
  #
35
- # @return [String, nil]
36
- optional :reason_code, String, nil?: true
35
+ # @return [Symbol, EInvoiceAPI::Models::Charge::ReasonCode, nil]
36
+ optional :reason_code, enum: -> { EInvoiceAPI::Charge::ReasonCode }, nil?: true
37
37
 
38
38
  # @!attribute tax_code
39
39
  # Duty or tax or fee category codes (Subset of UNCL5305)
@@ -63,12 +63,201 @@ module EInvoiceAPI
63
63
  #
64
64
  # @param reason [String, nil] The reason for the charge
65
65
  #
66
- # @param reason_code [String, nil] The code for the charge reason
66
+ # @param reason_code [Symbol, EInvoiceAPI::Models::Charge::ReasonCode, nil] Charge reason codes for invoice charges and fees
67
67
  #
68
68
  # @param tax_code [Symbol, EInvoiceAPI::Models::Charge::TaxCode, nil] Duty or tax or fee category codes (Subset of UNCL5305)
69
69
  #
70
70
  # @param tax_rate [String, nil] The VAT rate, represented as percentage that applies to the charge
71
71
 
72
+ # Charge reason codes for invoice charges and fees
73
+ #
74
+ # @see EInvoiceAPI::Models::Charge#reason_code
75
+ module ReasonCode
76
+ extend EInvoiceAPI::Internal::Type::Enum
77
+
78
+ AA = :AA
79
+ AAA = :AAA
80
+ AAC = :AAC
81
+ AAD = :AAD
82
+ AAE = :AAE
83
+ AAF = :AAF
84
+ AAH = :AAH
85
+ AAI = :AAI
86
+ AAS = :AAS
87
+ AAT = :AAT
88
+ AAV = :AAV
89
+ AAY = :AAY
90
+ AAZ = :AAZ
91
+ ABA = :ABA
92
+ ABB = :ABB
93
+ ABC = :ABC
94
+ ABD = :ABD
95
+ ABF = :ABF
96
+ ABK = :ABK
97
+ ABL = :ABL
98
+ ABN = :ABN
99
+ ABR = :ABR
100
+ ABS = :ABS
101
+ ABT = :ABT
102
+ ABU = :ABU
103
+ ACF = :ACF
104
+ ACG = :ACG
105
+ ACH = :ACH
106
+ ACI = :ACI
107
+ ACJ = :ACJ
108
+ ACK = :ACK
109
+ ACL = :ACL
110
+ ACM = :ACM
111
+ ACS = :ACS
112
+ ADC = :ADC
113
+ ADE = :ADE
114
+ ADJ = :ADJ
115
+ ADK = :ADK
116
+ ADL = :ADL
117
+ ADM = :ADM
118
+ ADN = :ADN
119
+ ADO = :ADO
120
+ ADP = :ADP
121
+ ADQ = :ADQ
122
+ ADR = :ADR
123
+ ADT = :ADT
124
+ ADW = :ADW
125
+ ADY = :ADY
126
+ ADZ = :ADZ
127
+ AEA = :AEA
128
+ AEB = :AEB
129
+ AEC = :AEC
130
+ AED = :AED
131
+ AEF = :AEF
132
+ AEH = :AEH
133
+ AEI = :AEI
134
+ AEJ = :AEJ
135
+ AEK = :AEK
136
+ AEL = :AEL
137
+ AEM = :AEM
138
+ AEN = :AEN
139
+ AEO = :AEO
140
+ AEP = :AEP
141
+ AES = :AES
142
+ AET = :AET
143
+ AEU = :AEU
144
+ AEV = :AEV
145
+ AEW = :AEW
146
+ AEX = :AEX
147
+ AEY = :AEY
148
+ AEZ = :AEZ
149
+ AJ = :AJ
150
+ AU = :AU
151
+ CA = :CA
152
+ CAB = :CAB
153
+ CAD = :CAD
154
+ CAE = :CAE
155
+ CAF = :CAF
156
+ CAI = :CAI
157
+ CAJ = :CAJ
158
+ CAK = :CAK
159
+ CAL = :CAL
160
+ CAM = :CAM
161
+ CAN = :CAN
162
+ CAO = :CAO
163
+ CAP = :CAP
164
+ CAQ = :CAQ
165
+ CAR = :CAR
166
+ CAS = :CAS
167
+ CAT = :CAT
168
+ CAU = :CAU
169
+ CAV = :CAV
170
+ CAW = :CAW
171
+ CAX = :CAX
172
+ CAY = :CAY
173
+ CAZ = :CAZ
174
+ CD = :CD
175
+ CG = :CG
176
+ CS = :CS
177
+ CT = :CT
178
+ DAB = :DAB
179
+ DAC = :DAC
180
+ DAD = :DAD
181
+ DAF = :DAF
182
+ DAG = :DAG
183
+ DAH = :DAH
184
+ DAI = :DAI
185
+ DAJ = :DAJ
186
+ DAK = :DAK
187
+ DAL = :DAL
188
+ DAM = :DAM
189
+ DAN = :DAN
190
+ DAO = :DAO
191
+ DAP = :DAP
192
+ DAQ = :DAQ
193
+ DL = :DL
194
+ EG = :EG
195
+ EP = :EP
196
+ ER = :ER
197
+ FAA = :FAA
198
+ FAB = :FAB
199
+ FAC = :FAC
200
+ FC = :FC
201
+ FH = :FH
202
+ FI = :FI
203
+ GAA = :GAA
204
+ HAA = :HAA
205
+ HD = :HD
206
+ HH = :HH
207
+ IAA = :IAA
208
+ IAB = :IAB
209
+ ID = :ID
210
+ IF = :IF
211
+ IR = :IR
212
+ IS = :IS
213
+ KO = :KO
214
+ L1 = :L1
215
+ LA = :LA
216
+ LAA = :LAA
217
+ LAB = :LAB
218
+ LF = :LF
219
+ MAE = :MAE
220
+ MI = :MI
221
+ ML = :ML
222
+ NAA = :NAA
223
+ OA = :OA
224
+ PA = :PA
225
+ PAA = :PAA
226
+ PC = :PC
227
+ PL = :PL
228
+ PRV = :PRV
229
+ RAB = :RAB
230
+ RAC = :RAC
231
+ RAD = :RAD
232
+ RAF = :RAF
233
+ RE = :RE
234
+ RF = :RF
235
+ RH = :RH
236
+ RV = :RV
237
+ SA = :SA
238
+ SAA = :SAA
239
+ SAD = :SAD
240
+ SAE = :SAE
241
+ SAI = :SAI
242
+ SG = :SG
243
+ SH = :SH
244
+ SM = :SM
245
+ SU = :SU
246
+ TAB = :TAB
247
+ TAC = :TAC
248
+ TT = :TT
249
+ TV = :TV
250
+ V1 = :V1
251
+ V2 = :V2
252
+ WH = :WH
253
+ XAA = :XAA
254
+ YY = :YY
255
+ ZZZ = :ZZZ
256
+
257
+ # @!method self.values
258
+ # @return [Array<Symbol>]
259
+ end
260
+
72
261
  # Duty or tax or fee category codes (Subset of UNCL5305)
73
262
  #
74
263
  # Agency: UN/CEFACT Version: D.16B Subset: OpenPEPPOL