e-invoice-api 0.26.3 → 0.27.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 +4 -4
- data/CHANGELOG.md +16 -0
- data/README.md +1 -1
- data/lib/e_invoice_api/internal/util.rb +3 -1
- data/lib/e_invoice_api/models/validate_validate_peppol_id_response.rb +11 -11
- data/lib/e_invoice_api/version.rb +1 -1
- data/rbi/e_invoice_api/models/validate_validate_peppol_id_response.rbi +20 -20
- data/sig/e_invoice_api/models/validate_validate_peppol_id_response.rbs +5 -5
- 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: 26427e70c15e36bded9fc25c208dd6405b692d787b9c3107a9dff50511a9b6cb
|
|
4
|
+
data.tar.gz: 2370d670c9c229245c5a8d490d4d95f5f0c14420be6e1662a8c3f23dca95dafa
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: bf6c1599d39a03c995c673e76bb220717771fa8e482dca59a9e68a10fb10c67b17e7c2e0164341ca1e9491484b75f713000a61abfe13e85bbfc14a191e12b4fe
|
|
7
|
+
data.tar.gz: 7eabebb79bf5aaa642862cef384a0bb4359f39777c96ea4de115e4ed85f6fa00dee0e8a575d0cf34569d3aebca3b5e364eb1129d46a037c301fd9e45ec3e0364
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.27.0 (2026-04-09)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v0.26.4...v0.27.0](https://github.com/e-invoice-be/e-invoice-rb/compare/v0.26.4...v0.27.0)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* **api:** api update ([cce625e](https://github.com/e-invoice-be/e-invoice-rb/commit/cce625e688607b6e42b33cc380d7868eabf5da2f))
|
|
10
|
+
|
|
11
|
+
## 0.26.4 (2026-04-09)
|
|
12
|
+
|
|
13
|
+
Full Changelog: [v0.26.3...v0.26.4](https://github.com/e-invoice-be/e-invoice-rb/compare/v0.26.3...v0.26.4)
|
|
14
|
+
|
|
15
|
+
### Bug Fixes
|
|
16
|
+
|
|
17
|
+
* multipart encoding for file arrays ([77874cb](https://github.com/e-invoice-be/e-invoice-rb/commit/77874cb9a28df936f4e019d601874c8f15108349))
|
|
18
|
+
|
|
3
19
|
## 0.26.3 (2026-04-01)
|
|
4
20
|
|
|
5
21
|
Full Changelog: [v0.26.2...v0.26.3](https://github.com/e-invoice-be/e-invoice-rb/compare/v0.26.2...v0.26.3)
|
data/README.md
CHANGED
|
@@ -610,6 +610,7 @@ module EInvoiceAPI
|
|
|
610
610
|
#
|
|
611
611
|
# @return [Array(String, Enumerable<String>)]
|
|
612
612
|
private def encode_multipart_streaming(body)
|
|
613
|
+
# rubocop:disable Style/CaseEquality
|
|
613
614
|
# RFC 1521 Section 7.2.1 says we should have 70 char maximum for boundary length
|
|
614
615
|
boundary = SecureRandom.urlsafe_base64(46)
|
|
615
616
|
|
|
@@ -619,7 +620,7 @@ module EInvoiceAPI
|
|
|
619
620
|
in Hash
|
|
620
621
|
body.each do |key, val|
|
|
621
622
|
case val
|
|
622
|
-
in Array if val.all? { primitive?(_1) }
|
|
623
|
+
in Array if val.all? { primitive?(_1) || EInvoiceAPI::Internal::Type::FileInput === _1 }
|
|
623
624
|
val.each do |v|
|
|
624
625
|
write_multipart_chunk(y, boundary: boundary, key: key, val: v, closing: closing)
|
|
625
626
|
end
|
|
@@ -635,6 +636,7 @@ module EInvoiceAPI
|
|
|
635
636
|
|
|
636
637
|
fused_io = fused_enum(strio) { closing.each(&:call) }
|
|
637
638
|
[boundary, fused_io]
|
|
639
|
+
# rubocop:enable Style/CaseEquality
|
|
638
640
|
end
|
|
639
641
|
|
|
640
642
|
# @api private
|
|
@@ -4,14 +4,6 @@ module EInvoiceAPI
|
|
|
4
4
|
module Models
|
|
5
5
|
# @see EInvoiceAPI::Resources::Validate#validate_peppol_id
|
|
6
6
|
class ValidateValidatePeppolIDResponse < EInvoiceAPI::Internal::Type::BaseModel
|
|
7
|
-
# @!attribute business_card
|
|
8
|
-
# Business card information for the Peppol ID
|
|
9
|
-
#
|
|
10
|
-
# @return [EInvoiceAPI::Models::ValidateValidatePeppolIDResponse::BusinessCard, nil]
|
|
11
|
-
required :business_card,
|
|
12
|
-
-> { EInvoiceAPI::Models::ValidateValidatePeppolIDResponse::BusinessCard },
|
|
13
|
-
nil?: true
|
|
14
|
-
|
|
15
7
|
# @!attribute business_card_valid
|
|
16
8
|
# Whether a business card is set at the SMP
|
|
17
9
|
#
|
|
@@ -30,25 +22,33 @@ module EInvoiceAPI
|
|
|
30
22
|
# @return [Boolean]
|
|
31
23
|
required :is_valid, EInvoiceAPI::Internal::Type::Boolean
|
|
32
24
|
|
|
25
|
+
# @!attribute business_card
|
|
26
|
+
# Business card information for the Peppol ID
|
|
27
|
+
#
|
|
28
|
+
# @return [EInvoiceAPI::Models::ValidateValidatePeppolIDResponse::BusinessCard, nil]
|
|
29
|
+
optional :business_card,
|
|
30
|
+
-> { EInvoiceAPI::Models::ValidateValidatePeppolIDResponse::BusinessCard },
|
|
31
|
+
nil?: true
|
|
32
|
+
|
|
33
33
|
# @!attribute supported_document_types
|
|
34
34
|
#
|
|
35
35
|
# @return [Array<String>, nil]
|
|
36
36
|
optional :supported_document_types, EInvoiceAPI::Internal::Type::ArrayOf[String]
|
|
37
37
|
|
|
38
|
-
# @!method initialize(
|
|
38
|
+
# @!method initialize(business_card_valid:, dns_valid:, is_valid:, business_card: nil, supported_document_types: nil)
|
|
39
39
|
# Response for a Peppol ID validation request.
|
|
40
40
|
#
|
|
41
41
|
# This model represents the validation result of a Peppol ID in the Peppol
|
|
42
42
|
# network, including whether the ID is valid and what document types it supports.
|
|
43
43
|
#
|
|
44
|
-
# @param business_card [EInvoiceAPI::Models::ValidateValidatePeppolIDResponse::BusinessCard, nil] Business card information for the Peppol ID
|
|
45
|
-
#
|
|
46
44
|
# @param business_card_valid [Boolean] Whether a business card is set at the SMP
|
|
47
45
|
#
|
|
48
46
|
# @param dns_valid [Boolean] Whether the DNS resolves to a valid SMP
|
|
49
47
|
#
|
|
50
48
|
# @param is_valid [Boolean] Whether the Peppol ID is valid and registered in the Peppol network
|
|
51
49
|
#
|
|
50
|
+
# @param business_card [EInvoiceAPI::Models::ValidateValidatePeppolIDResponse::BusinessCard, nil] Business card information for the Peppol ID
|
|
51
|
+
#
|
|
52
52
|
# @param supported_document_types [Array<String>]
|
|
53
53
|
|
|
54
54
|
# @see EInvoiceAPI::Models::ValidateValidatePeppolIDResponse#business_card
|
|
@@ -11,6 +11,18 @@ module EInvoiceAPI
|
|
|
11
11
|
)
|
|
12
12
|
end
|
|
13
13
|
|
|
14
|
+
# Whether a business card is set at the SMP
|
|
15
|
+
sig { returns(T::Boolean) }
|
|
16
|
+
attr_accessor :business_card_valid
|
|
17
|
+
|
|
18
|
+
# Whether the DNS resolves to a valid SMP
|
|
19
|
+
sig { returns(T::Boolean) }
|
|
20
|
+
attr_accessor :dns_valid
|
|
21
|
+
|
|
22
|
+
# Whether the Peppol ID is valid and registered in the Peppol network
|
|
23
|
+
sig { returns(T::Boolean) }
|
|
24
|
+
attr_accessor :is_valid
|
|
25
|
+
|
|
14
26
|
# Business card information for the Peppol ID
|
|
15
27
|
sig do
|
|
16
28
|
returns(
|
|
@@ -31,18 +43,6 @@ module EInvoiceAPI
|
|
|
31
43
|
end
|
|
32
44
|
attr_writer :business_card
|
|
33
45
|
|
|
34
|
-
# Whether a business card is set at the SMP
|
|
35
|
-
sig { returns(T::Boolean) }
|
|
36
|
-
attr_accessor :business_card_valid
|
|
37
|
-
|
|
38
|
-
# Whether the DNS resolves to a valid SMP
|
|
39
|
-
sig { returns(T::Boolean) }
|
|
40
|
-
attr_accessor :dns_valid
|
|
41
|
-
|
|
42
|
-
# Whether the Peppol ID is valid and registered in the Peppol network
|
|
43
|
-
sig { returns(T::Boolean) }
|
|
44
|
-
attr_accessor :is_valid
|
|
45
|
-
|
|
46
46
|
sig { returns(T.nilable(T::Array[String])) }
|
|
47
47
|
attr_reader :supported_document_types
|
|
48
48
|
|
|
@@ -55,25 +55,25 @@ module EInvoiceAPI
|
|
|
55
55
|
# network, including whether the ID is valid and what document types it supports.
|
|
56
56
|
sig do
|
|
57
57
|
params(
|
|
58
|
+
business_card_valid: T::Boolean,
|
|
59
|
+
dns_valid: T::Boolean,
|
|
60
|
+
is_valid: T::Boolean,
|
|
58
61
|
business_card:
|
|
59
62
|
T.nilable(
|
|
60
63
|
EInvoiceAPI::Models::ValidateValidatePeppolIDResponse::BusinessCard::OrHash
|
|
61
64
|
),
|
|
62
|
-
business_card_valid: T::Boolean,
|
|
63
|
-
dns_valid: T::Boolean,
|
|
64
|
-
is_valid: T::Boolean,
|
|
65
65
|
supported_document_types: T::Array[String]
|
|
66
66
|
).returns(T.attached_class)
|
|
67
67
|
end
|
|
68
68
|
def self.new(
|
|
69
|
-
# Business card information for the Peppol ID
|
|
70
|
-
business_card:,
|
|
71
69
|
# Whether a business card is set at the SMP
|
|
72
70
|
business_card_valid:,
|
|
73
71
|
# Whether the DNS resolves to a valid SMP
|
|
74
72
|
dns_valid:,
|
|
75
73
|
# Whether the Peppol ID is valid and registered in the Peppol network
|
|
76
74
|
is_valid:,
|
|
75
|
+
# Business card information for the Peppol ID
|
|
76
|
+
business_card: nil,
|
|
77
77
|
supported_document_types: nil
|
|
78
78
|
)
|
|
79
79
|
end
|
|
@@ -81,13 +81,13 @@ module EInvoiceAPI
|
|
|
81
81
|
sig do
|
|
82
82
|
override.returns(
|
|
83
83
|
{
|
|
84
|
+
business_card_valid: T::Boolean,
|
|
85
|
+
dns_valid: T::Boolean,
|
|
86
|
+
is_valid: T::Boolean,
|
|
84
87
|
business_card:
|
|
85
88
|
T.nilable(
|
|
86
89
|
EInvoiceAPI::Models::ValidateValidatePeppolIDResponse::BusinessCard
|
|
87
90
|
),
|
|
88
|
-
business_card_valid: T::Boolean,
|
|
89
|
-
dns_valid: T::Boolean,
|
|
90
|
-
is_valid: T::Boolean,
|
|
91
91
|
supported_document_types: T::Array[String]
|
|
92
92
|
}
|
|
93
93
|
)
|
|
@@ -2,39 +2,39 @@ module EInvoiceAPI
|
|
|
2
2
|
module Models
|
|
3
3
|
type validate_validate_peppol_id_response =
|
|
4
4
|
{
|
|
5
|
-
business_card: EInvoiceAPI::Models::ValidateValidatePeppolIDResponse::BusinessCard?,
|
|
6
5
|
business_card_valid: bool,
|
|
7
6
|
dns_valid: bool,
|
|
8
7
|
is_valid: bool,
|
|
8
|
+
business_card: EInvoiceAPI::Models::ValidateValidatePeppolIDResponse::BusinessCard?,
|
|
9
9
|
supported_document_types: ::Array[String]
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
class ValidateValidatePeppolIDResponse < EInvoiceAPI::Internal::Type::BaseModel
|
|
13
|
-
attr_accessor business_card: EInvoiceAPI::Models::ValidateValidatePeppolIDResponse::BusinessCard?
|
|
14
|
-
|
|
15
13
|
attr_accessor business_card_valid: bool
|
|
16
14
|
|
|
17
15
|
attr_accessor dns_valid: bool
|
|
18
16
|
|
|
19
17
|
attr_accessor is_valid: bool
|
|
20
18
|
|
|
19
|
+
attr_accessor business_card: EInvoiceAPI::Models::ValidateValidatePeppolIDResponse::BusinessCard?
|
|
20
|
+
|
|
21
21
|
attr_reader supported_document_types: ::Array[String]?
|
|
22
22
|
|
|
23
23
|
def supported_document_types=: (::Array[String]) -> ::Array[String]
|
|
24
24
|
|
|
25
25
|
def initialize: (
|
|
26
|
-
business_card: EInvoiceAPI::Models::ValidateValidatePeppolIDResponse::BusinessCard?,
|
|
27
26
|
business_card_valid: bool,
|
|
28
27
|
dns_valid: bool,
|
|
29
28
|
is_valid: bool,
|
|
29
|
+
?business_card: EInvoiceAPI::Models::ValidateValidatePeppolIDResponse::BusinessCard?,
|
|
30
30
|
?supported_document_types: ::Array[String]
|
|
31
31
|
) -> void
|
|
32
32
|
|
|
33
33
|
def to_hash: -> {
|
|
34
|
-
business_card: EInvoiceAPI::Models::ValidateValidatePeppolIDResponse::BusinessCard?,
|
|
35
34
|
business_card_valid: bool,
|
|
36
35
|
dns_valid: bool,
|
|
37
36
|
is_valid: bool,
|
|
37
|
+
business_card: EInvoiceAPI::Models::ValidateValidatePeppolIDResponse::BusinessCard?,
|
|
38
38
|
supported_document_types: ::Array[String]
|
|
39
39
|
}
|
|
40
40
|
|
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.27.0
|
|
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-04-
|
|
11
|
+
date: 2026-04-09 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: cgi
|