e-invoice-api 0.29.0 → 0.31.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: 944e77d94844bca83b4632b605a4e3e2aa52fa45fd463598990998143fcb10c6
4
+ data.tar.gz: 06ada41bd76346b16b4a762b9ec6f98ea95339e77bc270942c35c20d7e3fb906
5
5
  SHA512:
6
- metadata.gz: 9eb86eeb920d41d1f14b36de3187b18fa49b23f432c867636d0d3fbf55e9cfa21e87e5de64853cdd466159b6436fbd391868a4f58b56268063b45e8eb49371e8
7
- data.tar.gz: 30bd136e0b1de720818dd6bad6a1a872a3191c536d96a7972301398de8dfbcaf5733c477192ead1bf1a896ba34c8b06c4aa8b4df8d21d0dc66762b825e2b8212
6
+ metadata.gz: 416f1899158d12cf7b713e165d70b8a50ec12f21bdf917fa589ffcbb2378ab624309aedb29ddbfa55f90999801c7ea0179e561379794b206abc1e6c770456bd8
7
+ data.tar.gz: eaba15af19f415974f0ab6f72184f7acddace0da300a7c1b19d64f6a986c955b6a9591f9ed8fe0edbba0dc26db74ffd09b89cb1a398f9296161a054e64084c74
data/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.31.0 (2026-05-20)
4
+
5
+ Full Changelog: [v0.30.0...v0.31.0](https://github.com/e-invoice-be/e-invoice-rb/compare/v0.30.0...v0.31.0)
6
+
7
+ ### Features
8
+
9
+ * **api:** api update ([e573579](https://github.com/e-invoice-be/e-invoice-rb/commit/e573579bfb81de4e29cf6af00307030e013441b3))
10
+
11
+ ## 0.30.0 (2026-05-20)
12
+
13
+ Full Changelog: [v0.29.0...v0.30.0](https://github.com/e-invoice-be/e-invoice-rb/compare/v0.29.0...v0.30.0)
14
+
15
+ ### Features
16
+
17
+ * **api:** api update ([f78359a](https://github.com/e-invoice-be/e-invoice-rb/commit/f78359a02579a27e3aa505319e8ad3b1da4b969a))
18
+
3
19
  ## 0.29.0 (2026-05-20)
4
20
 
5
21
  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.31.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
  #
@@ -22,6 +22,12 @@ module EInvoiceAPI
22
22
  # @return [Boolean]
23
23
  required :is_valid, EInvoiceAPI::Internal::Type::Boolean
24
24
 
25
+ # @!attribute supported_document_types
26
+ # List of document types that this Peppol ID supports
27
+ #
28
+ # @return [Array<String>]
29
+ required :supported_document_types, EInvoiceAPI::Internal::Type::ArrayOf[String]
30
+
25
31
  # @!attribute business_card
26
32
  # Business card information for the Peppol ID
27
33
  #
@@ -30,12 +36,7 @@ module EInvoiceAPI
30
36
  -> { EInvoiceAPI::Models::ValidateValidatePeppolIDResponse::BusinessCard },
31
37
  nil?: true
32
38
 
33
- # @!attribute supported_document_types
34
- #
35
- # @return [Array<String>, nil]
36
- optional :supported_document_types, EInvoiceAPI::Internal::Type::ArrayOf[String]
37
-
38
- # @!method initialize(business_card_valid:, dns_valid:, is_valid:, business_card: nil, supported_document_types: nil)
39
+ # @!method initialize(business_card_valid:, dns_valid:, is_valid:, supported_document_types:, business_card: nil)
39
40
  # Response for a Peppol ID validation request.
40
41
  #
41
42
  # This model represents the validation result of a Peppol ID in the Peppol
@@ -47,9 +48,9 @@ module EInvoiceAPI
47
48
  #
48
49
  # @param is_valid [Boolean] Whether the Peppol ID is valid and registered in the Peppol network
49
50
  #
50
- # @param business_card [EInvoiceAPI::Models::ValidateValidatePeppolIDResponse::BusinessCard, nil] Business card information for the Peppol ID
51
+ # @param supported_document_types [Array<String>] List of document types that this Peppol ID supports
51
52
  #
52
- # @param supported_document_types [Array<String>]
53
+ # @param business_card [EInvoiceAPI::Models::ValidateValidatePeppolIDResponse::BusinessCard, nil] Business card information for the Peppol ID
53
54
 
54
55
  # @see EInvoiceAPI::Models::ValidateValidatePeppolIDResponse#business_card
55
56
  class BusinessCard < EInvoiceAPI::Internal::Type::BaseModel
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module EInvoiceAPI
4
- VERSION = "0.29.0"
4
+ VERSION = "0.31.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),
@@ -23,6 +23,10 @@ module EInvoiceAPI
23
23
  sig { returns(T::Boolean) }
24
24
  attr_accessor :is_valid
25
25
 
26
+ # List of document types that this Peppol ID supports
27
+ sig { returns(T::Array[String]) }
28
+ attr_accessor :supported_document_types
29
+
26
30
  # Business card information for the Peppol ID
27
31
  sig do
28
32
  returns(
@@ -43,12 +47,6 @@ module EInvoiceAPI
43
47
  end
44
48
  attr_writer :business_card
45
49
 
46
- sig { returns(T.nilable(T::Array[String])) }
47
- attr_reader :supported_document_types
48
-
49
- sig { params(supported_document_types: T::Array[String]).void }
50
- attr_writer :supported_document_types
51
-
52
50
  # Response for a Peppol ID validation request.
53
51
  #
54
52
  # This model represents the validation result of a Peppol ID in the Peppol
@@ -58,11 +56,11 @@ module EInvoiceAPI
58
56
  business_card_valid: T::Boolean,
59
57
  dns_valid: T::Boolean,
60
58
  is_valid: T::Boolean,
59
+ supported_document_types: T::Array[String],
61
60
  business_card:
62
61
  T.nilable(
63
62
  EInvoiceAPI::Models::ValidateValidatePeppolIDResponse::BusinessCard::OrHash
64
- ),
65
- supported_document_types: T::Array[String]
63
+ )
66
64
  ).returns(T.attached_class)
67
65
  end
68
66
  def self.new(
@@ -72,9 +70,10 @@ module EInvoiceAPI
72
70
  dns_valid:,
73
71
  # Whether the Peppol ID is valid and registered in the Peppol network
74
72
  is_valid:,
73
+ # List of document types that this Peppol ID supports
74
+ supported_document_types:,
75
75
  # Business card information for the Peppol ID
76
- business_card: nil,
77
- supported_document_types: nil
76
+ business_card: nil
78
77
  )
79
78
  end
80
79
 
@@ -84,11 +83,11 @@ module EInvoiceAPI
84
83
  business_card_valid: T::Boolean,
85
84
  dns_valid: T::Boolean,
86
85
  is_valid: T::Boolean,
86
+ supported_document_types: T::Array[String],
87
87
  business_card:
88
88
  T.nilable(
89
89
  EInvoiceAPI::Models::ValidateValidatePeppolIDResponse::BusinessCard
90
- ),
91
- supported_document_types: T::Array[String]
90
+ )
92
91
  }
93
92
  )
94
93
  end
@@ -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?,
@@ -5,8 +5,8 @@ module EInvoiceAPI
5
5
  business_card_valid: bool,
6
6
  dns_valid: bool,
7
7
  is_valid: bool,
8
- business_card: EInvoiceAPI::Models::ValidateValidatePeppolIDResponse::BusinessCard?,
9
- supported_document_types: ::Array[String]
8
+ supported_document_types: ::Array[String],
9
+ business_card: EInvoiceAPI::Models::ValidateValidatePeppolIDResponse::BusinessCard?
10
10
  }
11
11
 
12
12
  class ValidateValidatePeppolIDResponse < EInvoiceAPI::Internal::Type::BaseModel
@@ -16,26 +16,24 @@ module EInvoiceAPI
16
16
 
17
17
  attr_accessor is_valid: bool
18
18
 
19
- attr_accessor business_card: EInvoiceAPI::Models::ValidateValidatePeppolIDResponse::BusinessCard?
20
-
21
- attr_reader supported_document_types: ::Array[String]?
19
+ attr_accessor supported_document_types: ::Array[String]
22
20
 
23
- def supported_document_types=: (::Array[String]) -> ::Array[String]
21
+ attr_accessor business_card: EInvoiceAPI::Models::ValidateValidatePeppolIDResponse::BusinessCard?
24
22
 
25
23
  def initialize: (
26
24
  business_card_valid: bool,
27
25
  dns_valid: bool,
28
26
  is_valid: bool,
29
- ?business_card: EInvoiceAPI::Models::ValidateValidatePeppolIDResponse::BusinessCard?,
30
- ?supported_document_types: ::Array[String]
27
+ supported_document_types: ::Array[String],
28
+ ?business_card: EInvoiceAPI::Models::ValidateValidatePeppolIDResponse::BusinessCard?
31
29
  ) -> void
32
30
 
33
31
  def to_hash: -> {
34
32
  business_card_valid: bool,
35
33
  dns_valid: bool,
36
34
  is_valid: bool,
37
- business_card: EInvoiceAPI::Models::ValidateValidatePeppolIDResponse::BusinessCard?,
38
- supported_document_types: ::Array[String]
35
+ supported_document_types: ::Array[String],
36
+ business_card: EInvoiceAPI::Models::ValidateValidatePeppolIDResponse::BusinessCard?
39
37
  }
40
38
 
41
39
  type business_card =
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.31.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - e-invoice