e-invoice-api 0.2.5 → 0.2.6
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 +13 -0
- data/README.md +1 -1
- data/lib/e_invoice_api/internal/transport/pooled_net_requester.rb +1 -9
- data/lib/e_invoice_api/internal/type/base_model.rb +1 -8
- data/lib/e_invoice_api/internal/util.rb +1 -1
- data/lib/e_invoice_api/version.rb +1 -1
- data/rbi/e_invoice_api/errors.rbi +2 -2
- data/rbi/e_invoice_api/models/document_create.rbi +1 -1
- data/rbi/e_invoice_api/models/document_response.rbi +1 -1
- 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: 5bcf4f70ae56e3c0b8007abe353cced563090d43d8e4269e899682b93219dde7
|
4
|
+
data.tar.gz: fbf100155144b66424fcd1deb72daec9100d0f9dc7588422d0894a8250206b21
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f3ac9c1149d6b66acae920e0f5065939342a71f898c66cf9af900bb578dd411639f982331f7865fe969712e69be6f6567932243dcf81bfb5cfb580cc06f5a55c
|
7
|
+
data.tar.gz: 3cc18f15ee911189bfdfd0f457d705c30612b670249f87b19229282ddd411df013415f231eb2768dd22b3a146177b7ff6ffc37e991e1d482a2c1a08125558522
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,18 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## 0.2.6 (2025-08-20)
|
4
|
+
|
5
|
+
Full Changelog: [v0.2.5...v0.2.6](https://github.com/e-invoice-be/e-invoice-rb/compare/v0.2.5...v0.2.6)
|
6
|
+
|
7
|
+
### Bug Fixes
|
8
|
+
|
9
|
+
* bump sorbet version and fix new type errors from the breaking change ([1ecacc2](https://github.com/e-invoice-be/e-invoice-rb/commit/1ecacc2376f4afd0bc8403e97b06e788a73b51ec))
|
10
|
+
|
11
|
+
|
12
|
+
### Chores
|
13
|
+
|
14
|
+
* **internal:** codegen related update ([990de02](https://github.com/e-invoice-be/e-invoice-rb/commit/990de02fea066ce8beb7a0b8648ff2f0cfd726e5))
|
15
|
+
|
3
16
|
## 0.2.5 (2025-08-10)
|
4
17
|
|
5
18
|
Full Changelog: [v0.2.4...v0.2.5](https://github.com/e-invoice-be/e-invoice-rb/compare/v0.2.4...v0.2.5)
|
data/README.md
CHANGED
@@ -193,15 +193,7 @@ module EInvoiceAPI
|
|
193
193
|
end
|
194
194
|
|
195
195
|
define_sorbet_constant!(:Request) do
|
196
|
-
T.type_alias
|
197
|
-
{
|
198
|
-
method: Symbol,
|
199
|
-
url: URI::Generic,
|
200
|
-
headers: T::Hash[String, String],
|
201
|
-
body: T.anything,
|
202
|
-
deadline: Float
|
203
|
-
}
|
204
|
-
end
|
196
|
+
T.type_alias { {method: Symbol, url: URI::Generic, headers: T::Hash[String, String], body: T.anything, deadline: Float} }
|
205
197
|
end
|
206
198
|
end
|
207
199
|
end
|
@@ -64,14 +64,7 @@ module EInvoiceAPI
|
|
64
64
|
setter = :"#{name_sym}="
|
65
65
|
api_name = info.fetch(:api_name, name_sym)
|
66
66
|
nilable = info.fetch(:nil?, false)
|
67
|
-
const =
|
68
|
-
info.fetch(
|
69
|
-
:const,
|
70
|
-
EInvoiceAPI::Internal::OMIT
|
71
|
-
)
|
72
|
-
else
|
73
|
-
EInvoiceAPI::Internal::OMIT
|
74
|
-
end
|
67
|
+
const = required && !nilable ? info.fetch(:const, EInvoiceAPI::Internal::OMIT) : EInvoiceAPI::Internal::OMIT
|
75
68
|
|
76
69
|
[name_sym, setter].each { undef_method(_1) } if known_fields.key?(name_sym)
|
77
70
|
|
@@ -244,7 +244,7 @@ module EInvoiceAPI
|
|
244
244
|
#
|
245
245
|
# @return [String]
|
246
246
|
def uri_origin(uri)
|
247
|
-
"#{uri.scheme}://#{uri.host}#{uri.port
|
247
|
+
"#{uri.scheme}://#{uri.host}#{":#{uri.port}" unless uri.port == uri.default_port}"
|
248
248
|
end
|
249
249
|
|
250
250
|
# @api private
|
@@ -59,10 +59,10 @@ module EInvoiceAPI
|
|
59
59
|
end
|
60
60
|
|
61
61
|
class APIConnectionError < EInvoiceAPI::Errors::APIError
|
62
|
-
sig {
|
62
|
+
sig { returns(NilClass) }
|
63
63
|
attr_accessor :status
|
64
64
|
|
65
|
-
sig {
|
65
|
+
sig { returns(NilClass) }
|
66
66
|
attr_accessor :body
|
67
67
|
|
68
68
|
# @api private
|
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.2.
|
4
|
+
version: 0.2.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- e-invoice
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-08-
|
11
|
+
date: 2025-08-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: connection_pool
|