e-invoice-api 0.26.4 → 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: 578c3a59e0349ed164cab7de8cb2aba01ec90f1d42b97b4bfb202fbe0dbc727b
4
- data.tar.gz: 05c14fdb79d32927a05a0e101708de8fa85aa656a6447f5c5d893a0fd4d96a44
3
+ metadata.gz: 26427e70c15e36bded9fc25c208dd6405b692d787b9c3107a9dff50511a9b6cb
4
+ data.tar.gz: 2370d670c9c229245c5a8d490d4d95f5f0c14420be6e1662a8c3f23dca95dafa
5
5
  SHA512:
6
- metadata.gz: f645ec9563dd8adcd348ed9bf5820ff672d9aabf06dcc7aaaa8ba5f9a9f638011480aa80b867023521339f1eae89f61fe6c145a9a01c8c09a399656b7c1fbf5a
7
- data.tar.gz: 3fd14537d626916c42008cd72afb90c284378a02490bbfcc1b27050945a29d14254e9e1a7e01d69cd23625625707f8a6d6169ab1af31289c83e8fb7e0fdf584b
6
+ metadata.gz: bf6c1599d39a03c995c673e76bb220717771fa8e482dca59a9e68a10fb10c67b17e7c2e0164341ca1e9491484b75f713000a61abfe13e85bbfc14a191e12b4fe
7
+ data.tar.gz: 7eabebb79bf5aaa642862cef384a0bb4359f39777c96ea4de115e4ed85f6fa00dee0e8a575d0cf34569d3aebca3b5e364eb1129d46a037c301fd9e45ec3e0364
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
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
+
3
11
  ## 0.26.4 (2026-04-09)
4
12
 
5
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)
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.4"
29
+ gem "e-invoice-api", "~> 0.27.0"
30
30
  ```
31
31
 
32
32
  <!-- x-release-please-end -->
@@ -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.4"
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,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.26.4
4
+ version: 0.27.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - e-invoice