e-invoice-api 0.30.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: 2fb8f1d708c80706271cf0abbbcdf7b45655a71de2e59657c83f78005dbe02f7
4
- data.tar.gz: d9ff793207fe902f706a48375c52fd185b790f36a0a77d7db9b319601f93e67e
3
+ metadata.gz: 944e77d94844bca83b4632b605a4e3e2aa52fa45fd463598990998143fcb10c6
4
+ data.tar.gz: 06ada41bd76346b16b4a762b9ec6f98ea95339e77bc270942c35c20d7e3fb906
5
5
  SHA512:
6
- metadata.gz: '0479fabc21a4a90e1372e9185e2ef6879e7cac6475cc2afba3a6cd0ce41ac413f27d49db4527d0a23a723f4f56c87baf265a669e5140fcea4afbb3abff5d3acc'
7
- data.tar.gz: 2cac69c0db219e1d15504a7d89b07049c216b11e6b5b00f5368d0e4cb1d981436cdb44a44b878b011d4f2a55d5df6390d812748c023b2f47975c2e0e3fd4792c
6
+ metadata.gz: 416f1899158d12cf7b713e165d70b8a50ec12f21bdf917fa589ffcbb2378ab624309aedb29ddbfa55f90999801c7ea0179e561379794b206abc1e6c770456bd8
7
+ data.tar.gz: eaba15af19f415974f0ab6f72184f7acddace0da300a7c1b19d64f6a986c955b6a9591f9ed8fe0edbba0dc26db74ffd09b89cb1a398f9296161a054e64084c74
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
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
+
3
11
  ## 0.30.0 (2026-05-20)
4
12
 
5
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)
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.30.0"
29
+ gem "e-invoice-api", "~> 0.31.0"
30
30
  ```
31
31
 
32
32
  <!-- x-release-please-end -->
@@ -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.30.0"
4
+ VERSION = "0.31.0"
5
5
  end
@@ -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
- 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.30.0
4
+ version: 0.31.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - e-invoice