e-invoice-api 0.30.0 → 0.31.1
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 +4 -4
- data/CHANGELOG.md +16 -0
- data/README.md +1 -1
- data/lib/e_invoice_api/internal/transport/base_client.rb +4 -1
- data/lib/e_invoice_api/models/validate_validate_peppol_id_response.rb +9 -8
- data/lib/e_invoice_api/version.rb +1 -1
- data/rbi/e_invoice_api/models/validate_validate_peppol_id_response.rbi +11 -12
- data/sig/e_invoice_api/models/validate_validate_peppol_id_response.rbs +8 -10
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 150e64b69c4558895305765b5f3c9edf1354b9a8a862368474b0126932e8ef72
|
|
4
|
+
data.tar.gz: 7ce359c594dbf38d8a463b489b8789698f27bb08f8cedd5a25376351a4552253
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2b2e0e9f91301f915fbc9c216e9bd5b043a280db5adec803a31f7ede557a31adf47f9486c4bde7cff06438f275c4620ef228202bfb2562a4ae36413f474f9f17
|
|
7
|
+
data.tar.gz: 613cb2fa3783439ca3fdc2c95304171c918a5dd596c4c68c8992c029db4cf265873e0b7e4b5f7133d8ffb9d3893e2d7091fa3dfe58044e215885c2384004e6b0
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.31.1 (2026-06-17)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v0.31.0...v0.31.1](https://github.com/e-invoice-be/e-invoice-rb/compare/v0.31.0...v0.31.1)
|
|
6
|
+
|
|
7
|
+
### Bug Fixes
|
|
8
|
+
|
|
9
|
+
* **client:** send content-type header for requests with an omitted optional body ([3e19758](https://github.com/e-invoice-be/e-invoice-rb/commit/3e19758ffc22a9ea8f7d413b65ba12b4fab22104))
|
|
10
|
+
|
|
11
|
+
## 0.31.0 (2026-05-20)
|
|
12
|
+
|
|
13
|
+
Full Changelog: [v0.30.0...v0.31.0](https://github.com/e-invoice-be/e-invoice-rb/compare/v0.30.0...v0.31.0)
|
|
14
|
+
|
|
15
|
+
### Features
|
|
16
|
+
|
|
17
|
+
* **api:** api update ([e573579](https://github.com/e-invoice-be/e-invoice-rb/commit/e573579bfb81de4e29cf6af00307030e013441b3))
|
|
18
|
+
|
|
3
19
|
## 0.30.0 (2026-05-20)
|
|
4
20
|
|
|
5
21
|
Full Changelog: [v0.29.0...v0.30.0](https://github.com/e-invoice-be/e-invoice-rb/compare/v0.29.0...v0.30.0)
|
data/README.md
CHANGED
|
@@ -306,7 +306,10 @@ module EInvoiceAPI
|
|
|
306
306
|
EInvoiceAPI::Internal::Util.deep_merge(*[req[:body], opts[:extra_body]].compact)
|
|
307
307
|
end
|
|
308
308
|
|
|
309
|
-
|
|
309
|
+
# Generated methods always pass `req[:body]` for operations that define a
|
|
310
|
+
# request body, so only elide the content-type header when the operation
|
|
311
|
+
# has no body at all, not when an optional body param was omitted.
|
|
312
|
+
headers.delete("content-type") if body.nil? && !req.key?(:body)
|
|
310
313
|
|
|
311
314
|
url = EInvoiceAPI::Internal::Util.join_parsed_uri(
|
|
312
315
|
@base_url_components,
|
|
@@ -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
|
-
# @!
|
|
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
|
|
51
|
+
# @param supported_document_types [Array<String>] List of document types that this Peppol ID supports
|
|
51
52
|
#
|
|
52
|
-
# @param
|
|
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
|
|
@@ -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
|
|
@@ -5,8 +5,8 @@ module EInvoiceAPI
|
|
|
5
5
|
business_card_valid: bool,
|
|
6
6
|
dns_valid: bool,
|
|
7
7
|
is_valid: bool,
|
|
8
|
-
|
|
9
|
-
|
|
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
|
|
20
|
-
|
|
21
|
-
attr_reader supported_document_types: ::Array[String]?
|
|
19
|
+
attr_accessor supported_document_types: ::Array[String]
|
|
22
20
|
|
|
23
|
-
|
|
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
|
-
|
|
30
|
-
?
|
|
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
|
-
|
|
38
|
-
|
|
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,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: e-invoice-api
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.31.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- e-invoice
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-
|
|
11
|
+
date: 2026-06-17 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: cgi
|