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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ed62418ed97c47a321bf9f4ea7dd00d908646d19d8cc28f77657335e82f33a8b
4
- data.tar.gz: a90427a28cbafc1d8df8001325657f97862aeebaa8d1041d06df7e59a64072d7
3
+ metadata.gz: 26427e70c15e36bded9fc25c208dd6405b692d787b9c3107a9dff50511a9b6cb
4
+ data.tar.gz: 2370d670c9c229245c5a8d490d4d95f5f0c14420be6e1662a8c3f23dca95dafa
5
5
  SHA512:
6
- metadata.gz: a7eabdb33dec0e12ba0dcfca8d505c41696d3914043e4e86a74fdebd4fcf82779a5c35e6f45e5cc0c0281d1116e45f9f8478322e6b9fcfb6801ad0ce1e9eaa43
7
- data.tar.gz: 2d9bd76ecdaf1e86c10b4c399e4520ff405098b0c7ad7dcf2dc3125757b5f0fcdcda361a138f2518720b25955ae32a82651d7baa4df7aabd9edd8763aac8a68d
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
@@ -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.26.3"
29
+ gem "e-invoice-api", "~> 0.27.0"
30
30
  ```
31
31
 
32
32
  <!-- x-release-please-end -->
@@ -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(business_card:, business_card_valid:, dns_valid:, is_valid:, supported_document_types: nil)
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module EInvoiceAPI
4
- VERSION = "0.26.3"
4
+ VERSION = "0.27.0"
5
5
  end
@@ -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.26.3
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-01 00:00:00.000000000 Z
11
+ date: 2026-04-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cgi