e-invoice-api 0.29.0 → 0.30.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: 338628785cf857da4ad086ccff3882098b0792afc39dc369e71e9f1ac17490cb
4
- data.tar.gz: cd3f20e5d19d1ae3b5123467d63be8420fcede349cd436a9229ba1b18566e0a3
3
+ metadata.gz: 2fb8f1d708c80706271cf0abbbcdf7b45655a71de2e59657c83f78005dbe02f7
4
+ data.tar.gz: d9ff793207fe902f706a48375c52fd185b790f36a0a77d7db9b319601f93e67e
5
5
  SHA512:
6
- metadata.gz: 9eb86eeb920d41d1f14b36de3187b18fa49b23f432c867636d0d3fbf55e9cfa21e87e5de64853cdd466159b6436fbd391868a4f58b56268063b45e8eb49371e8
7
- data.tar.gz: 30bd136e0b1de720818dd6bad6a1a872a3191c536d96a7972301398de8dfbcaf5733c477192ead1bf1a896ba34c8b06c4aa8b4df8d21d0dc66762b825e2b8212
6
+ metadata.gz: '0479fabc21a4a90e1372e9185e2ef6879e7cac6475cc2afba3a6cd0ce41ac413f27d49db4527d0a23a723f4f56c87baf265a669e5140fcea4afbb3abff5d3acc'
7
+ data.tar.gz: 2cac69c0db219e1d15504a7d89b07049c216b11e6b5b00f5368d0e4cb1d981436cdb44a44b878b011d4f2a55d5df6390d812748c023b2f47975c2e0e3fd4792c
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.30.0 (2026-05-20)
4
+
5
+ Full Changelog: [v0.29.0...v0.30.0](https://github.com/e-invoice-be/e-invoice-rb/compare/v0.29.0...v0.30.0)
6
+
7
+ ### Features
8
+
9
+ * **api:** api update ([f78359a](https://github.com/e-invoice-be/e-invoice-rb/commit/f78359a02579a27e3aa505319e8ad3b1da4b969a))
10
+
3
11
  ## 0.29.0 (2026-05-20)
4
12
 
5
13
  Full Changelog: [v0.28.1...v0.29.0](https://github.com/e-invoice-be/e-invoice-rb/compare/v0.28.1...v0.29.0)
data/README.md CHANGED
@@ -26,7 +26,7 @@ To use this gem, install via Bundler by adding the following to your application
26
26
  <!-- x-release-please-start-version -->
27
27
 
28
28
  ```ruby
29
- gem "e-invoice-api", "~> 0.29.0"
29
+ gem "e-invoice-api", "~> 0.30.0"
30
30
  ```
31
31
 
32
32
  <!-- x-release-please-end -->
@@ -113,6 +113,18 @@ module EInvoiceAPI
113
113
  # @return [Date, nil]
114
114
  optional :due_date, Date, nil?: true
115
115
 
116
+ # @!attribute error_message
117
+ # Error message when success is False
118
+ #
119
+ # @return [String, nil]
120
+ optional :error_message, String, nil?: true
121
+
122
+ # @!attribute error_type
123
+ # Error type/category when success is False
124
+ #
125
+ # @return [String, nil]
126
+ optional :error_type, String, nil?: true
127
+
116
128
  # @!attribute invoice_date
117
129
  # The date when the invoice was issued
118
130
  #
@@ -133,7 +145,7 @@ module EInvoiceAPI
133
145
  optional :invoice_total, String, nil?: true
134
146
 
135
147
  # @!attribute items
136
- # At least one line item is required
148
+ # Line items (may be empty for failed conversions)
137
149
  #
138
150
  # @return [Array<EInvoiceAPI::Models::DocumentCreateFromPdfResponse::Item>, nil]
139
151
  optional :items,
@@ -319,7 +331,7 @@ module EInvoiceAPI
319
331
  # @return [String, nil]
320
332
  optional :vendor_tax_id, String, nil?: true
321
333
 
322
- # @!method initialize(allowances: nil, amount_due: nil, attachments: nil, billing_address: nil, billing_address_recipient: nil, charges: nil, currency: nil, customer_address: nil, customer_address_recipient: nil, customer_company_id: nil, customer_email: nil, customer_id: nil, customer_name: nil, customer_peppol_id: nil, customer_tax_id: nil, direction: nil, document_type: nil, due_date: nil, invoice_date: nil, invoice_id: nil, invoice_total: nil, items: nil, note: nil, payment_details: nil, payment_term: nil, purchase_order: nil, remittance_address: nil, remittance_address_recipient: nil, service_address: nil, service_address_recipient: nil, service_end_date: nil, service_start_date: nil, shipping_address: nil, shipping_address_recipient: nil, state: nil, subtotal: nil, success: nil, tax_code: nil, tax_details: nil, total_discount: nil, total_tax: nil, ubl_document: nil, vatex: nil, vatex_note: nil, vendor_address: nil, vendor_address_recipient: nil, vendor_company_id: nil, vendor_email: nil, vendor_name: nil, vendor_tax_id: nil)
334
+ # @!method initialize(allowances: nil, amount_due: nil, attachments: nil, billing_address: nil, billing_address_recipient: nil, charges: nil, currency: nil, customer_address: nil, customer_address_recipient: nil, customer_company_id: nil, customer_email: nil, customer_id: nil, customer_name: nil, customer_peppol_id: nil, customer_tax_id: nil, direction: nil, document_type: nil, due_date: nil, error_message: nil, error_type: nil, invoice_date: nil, invoice_id: nil, invoice_total: nil, items: nil, note: nil, payment_details: nil, payment_term: nil, purchase_order: nil, remittance_address: nil, remittance_address_recipient: nil, service_address: nil, service_address_recipient: nil, service_end_date: nil, service_start_date: nil, shipping_address: nil, shipping_address_recipient: nil, state: nil, subtotal: nil, success: nil, tax_code: nil, tax_details: nil, total_discount: nil, total_tax: nil, ubl_document: nil, vatex: nil, vatex_note: nil, vendor_address: nil, vendor_address_recipient: nil, vendor_company_id: nil, vendor_email: nil, vendor_name: nil, vendor_tax_id: nil)
323
335
  # Some parameter documentations has been truncated, see
324
336
  # {EInvoiceAPI::Models::DocumentCreateFromPdfResponse} for more details.
325
337
  #
@@ -359,13 +371,17 @@ module EInvoiceAPI
359
371
  #
360
372
  # @param due_date [Date, nil] The date when payment is due
361
373
  #
374
+ # @param error_message [String, nil] Error message when success is False
375
+ #
376
+ # @param error_type [String, nil] Error type/category when success is False
377
+ #
362
378
  # @param invoice_date [Date, nil] The date when the invoice was issued
363
379
  #
364
380
  # @param invoice_id [String, nil] The unique invoice identifier/number
365
381
  #
366
382
  # @param invoice_total [String, nil] The total amount of the invoice including tax (invoice*total = subtotal + total*
367
383
  #
368
- # @param items [Array<EInvoiceAPI::Models::DocumentCreateFromPdfResponse::Item>] At least one line item is required
384
+ # @param items [Array<EInvoiceAPI::Models::DocumentCreateFromPdfResponse::Item>] Line items (may be empty for failed conversions)
369
385
  #
370
386
  # @param note [String, nil] Additional notes or comments for the invoice
371
387
  #
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module EInvoiceAPI
4
- VERSION = "0.29.0"
4
+ VERSION = "0.30.0"
5
5
  end
@@ -93,6 +93,14 @@ module EInvoiceAPI
93
93
  sig { returns(T.nilable(Date)) }
94
94
  attr_accessor :due_date
95
95
 
96
+ # Error message when success is False
97
+ sig { returns(T.nilable(String)) }
98
+ attr_accessor :error_message
99
+
100
+ # Error type/category when success is False
101
+ sig { returns(T.nilable(String)) }
102
+ attr_accessor :error_type
103
+
96
104
  # The date when the invoice was issued
97
105
  sig { returns(T.nilable(Date)) }
98
106
  attr_accessor :invoice_date
@@ -106,7 +114,7 @@ module EInvoiceAPI
106
114
  sig { returns(T.nilable(String)) }
107
115
  attr_accessor :invoice_total
108
116
 
109
- # At least one line item is required
117
+ # Line items (may be empty for failed conversions)
110
118
  sig do
111
119
  returns(
112
120
  T.nilable(
@@ -301,6 +309,8 @@ module EInvoiceAPI
301
309
  direction: EInvoiceAPI::DocumentDirection::OrSymbol,
302
310
  document_type: EInvoiceAPI::DocumentType::OrSymbol,
303
311
  due_date: T.nilable(Date),
312
+ error_message: T.nilable(String),
313
+ error_type: T.nilable(String),
304
314
  invoice_date: T.nilable(Date),
305
315
  invoice_id: T.nilable(String),
306
316
  invoice_total: T.nilable(String),
@@ -384,6 +394,10 @@ module EInvoiceAPI
384
394
  document_type: nil,
385
395
  # The date when payment is due
386
396
  due_date: nil,
397
+ # Error message when success is False
398
+ error_message: nil,
399
+ # Error type/category when success is False
400
+ error_type: nil,
387
401
  # The date when the invoice was issued
388
402
  invoice_date: nil,
389
403
  # The unique invoice identifier/number
@@ -391,7 +405,7 @@ module EInvoiceAPI
391
405
  # The total amount of the invoice including tax (invoice_total = subtotal +
392
406
  # total_tax + total_discount). Must be positive and rounded to maximum 2 decimals
393
407
  invoice_total: nil,
394
- # At least one line item is required
408
+ # Line items (may be empty for failed conversions)
395
409
  items: nil,
396
410
  # Additional notes or comments for the invoice
397
411
  note: nil,
@@ -482,6 +496,8 @@ module EInvoiceAPI
482
496
  direction: EInvoiceAPI::DocumentDirection::TaggedSymbol,
483
497
  document_type: EInvoiceAPI::DocumentType::TaggedSymbol,
484
498
  due_date: T.nilable(Date),
499
+ error_message: T.nilable(String),
500
+ error_type: T.nilable(String),
485
501
  invoice_date: T.nilable(Date),
486
502
  invoice_id: T.nilable(String),
487
503
  invoice_total: T.nilable(String),
@@ -20,6 +20,8 @@ module EInvoiceAPI
20
20
  direction: EInvoiceAPI::Models::document_direction,
21
21
  document_type: EInvoiceAPI::Models::document_type,
22
22
  due_date: Date?,
23
+ error_message: String?,
24
+ error_type: String?,
23
25
  invoice_date: Date?,
24
26
  invoice_id: String?,
25
27
  invoice_total: String?,
@@ -103,6 +105,10 @@ module EInvoiceAPI
103
105
 
104
106
  attr_accessor due_date: Date?
105
107
 
108
+ attr_accessor error_message: String?
109
+
110
+ attr_accessor error_type: String?
111
+
106
112
  attr_accessor invoice_date: Date?
107
113
 
108
114
  attr_accessor invoice_id: String?
@@ -200,6 +206,8 @@ module EInvoiceAPI
200
206
  ?direction: EInvoiceAPI::Models::document_direction,
201
207
  ?document_type: EInvoiceAPI::Models::document_type,
202
208
  ?due_date: Date?,
209
+ ?error_message: String?,
210
+ ?error_type: String?,
203
211
  ?invoice_date: Date?,
204
212
  ?invoice_id: String?,
205
213
  ?invoice_total: String?,
@@ -253,6 +261,8 @@ module EInvoiceAPI
253
261
  direction: EInvoiceAPI::Models::document_direction,
254
262
  document_type: EInvoiceAPI::Models::document_type,
255
263
  due_date: Date?,
264
+ error_message: String?,
265
+ error_type: String?,
256
266
  invoice_date: Date?,
257
267
  invoice_id: String?,
258
268
  invoice_total: String?,
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: e-invoice-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.29.0
4
+ version: 0.30.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - e-invoice