e-invoice-api 0.24.1 → 0.26.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.
Files changed (49) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +25 -0
  3. data/README.md +1 -1
  4. data/lib/e_invoice_api/internal/util.rb +31 -0
  5. data/lib/e_invoice_api/models/document_delete_params.rb +7 -1
  6. data/lib/e_invoice_api/models/document_retrieve_params.rb +7 -1
  7. data/lib/e_invoice_api/models/document_send_params.rb +7 -1
  8. data/lib/e_invoice_api/models/document_validate_params.rb +7 -1
  9. data/lib/e_invoice_api/models/documents/attachment_add_params.rb +7 -1
  10. data/lib/e_invoice_api/models/documents/attachment_delete_params.rb +7 -1
  11. data/lib/e_invoice_api/models/documents/attachment_list_params.rb +7 -1
  12. data/lib/e_invoice_api/models/documents/attachment_retrieve_params.rb +7 -1
  13. data/lib/e_invoice_api/models/documents/ubl_get_params.rb +7 -1
  14. data/lib/e_invoice_api/models/webhook_delete_params.rb +7 -1
  15. data/lib/e_invoice_api/models/webhook_retrieve_params.rb +7 -1
  16. data/lib/e_invoice_api/models/webhook_update_params.rb +7 -1
  17. data/lib/e_invoice_api/resources/documents.rb +8 -5
  18. data/lib/e_invoice_api/resources/inbox.rb +6 -3
  19. data/lib/e_invoice_api/resources/lookup.rb +4 -2
  20. data/lib/e_invoice_api/resources/outbox.rb +4 -2
  21. data/lib/e_invoice_api/resources/validate.rb +2 -1
  22. data/lib/e_invoice_api/version.rb +1 -1
  23. data/rbi/e_invoice_api/internal/util.rbi +20 -0
  24. data/rbi/e_invoice_api/models/document_delete_params.rbi +13 -5
  25. data/rbi/e_invoice_api/models/document_retrieve_params.rbi +13 -5
  26. data/rbi/e_invoice_api/models/document_send_params.rbi +6 -0
  27. data/rbi/e_invoice_api/models/document_validate_params.rbi +13 -5
  28. data/rbi/e_invoice_api/models/documents/attachment_add_params.rbi +6 -1
  29. data/rbi/e_invoice_api/models/documents/attachment_delete_params.rbi +6 -1
  30. data/rbi/e_invoice_api/models/documents/attachment_list_params.rbi +14 -5
  31. data/rbi/e_invoice_api/models/documents/attachment_retrieve_params.rbi +6 -1
  32. data/rbi/e_invoice_api/models/documents/ubl_get_params.rbi +14 -5
  33. data/rbi/e_invoice_api/models/webhook_delete_params.rbi +13 -5
  34. data/rbi/e_invoice_api/models/webhook_retrieve_params.rbi +13 -5
  35. data/rbi/e_invoice_api/models/webhook_update_params.rbi +12 -1
  36. data/sig/e_invoice_api/internal/util.rbs +10 -0
  37. data/sig/e_invoice_api/models/document_delete_params.rbs +11 -3
  38. data/sig/e_invoice_api/models/document_retrieve_params.rbs +11 -3
  39. data/sig/e_invoice_api/models/document_send_params.rbs +5 -0
  40. data/sig/e_invoice_api/models/document_validate_params.rbs +11 -3
  41. data/sig/e_invoice_api/models/documents/attachment_add_params.rbs +5 -1
  42. data/sig/e_invoice_api/models/documents/attachment_delete_params.rbs +5 -1
  43. data/sig/e_invoice_api/models/documents/attachment_list_params.rbs +12 -3
  44. data/sig/e_invoice_api/models/documents/attachment_retrieve_params.rbs +5 -1
  45. data/sig/e_invoice_api/models/documents/ubl_get_params.rbs +12 -3
  46. data/sig/e_invoice_api/models/webhook_delete_params.rbs +11 -3
  47. data/sig/e_invoice_api/models/webhook_retrieve_params.rbs +11 -3
  48. data/sig/e_invoice_api/models/webhook_update_params.rbs +10 -1
  49. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4c2c8e5c769136bc7e8492fa77e8b91ad3b7a3b60b962792127f0c04c03af8aa
4
- data.tar.gz: ca84a3157c67d189bdaf24abe0d5b73d4a23fe86e5cb79ef3288b491187e82be
3
+ metadata.gz: db0a02b2fdcf8bc2e9194f4410092ecef52ac1b6de8a2c94bd6b4d3ed81faae6
4
+ data.tar.gz: 51379e84106bbaa07fea49a9e46bee139d94d7bcd49fbf56581ce88bed163c05
5
5
  SHA512:
6
- metadata.gz: f3345929b2e3382165d0c69d7fb136bc9e627b2de6ce2248406d7dac53c87cecf96c1be1b55c4a4bf8c123808084613c141b8330c26ff645867e277d209d310a
7
- data.tar.gz: 919d37b39c9746f491216d50ea68eba174f9a2da1fae2d26946f39f0eba7d42c014e95549b99e5405675a4a76eb83393503d95f8e06afa9d370059c8942c6cfe
6
+ metadata.gz: 133f69f5b73d45f428075b58be94fd16f854f5d859a852411179930f589bdbce45019258bea0635bb3f713b941e3a1c32b8cac0efc977a54a8f240ed9f144bec
7
+ data.tar.gz: 9a20feb042e5c91652a6cadaec249738ec6fbc48202e4d25c38ad84879fbe21f0a1a2e202dfdbc49886c174d22ebf1e04dca00b73362c0203249324185034c83
data/CHANGELOG.md CHANGED
@@ -1,5 +1,30 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.26.0 (2026-03-09)
4
+
5
+ Full Changelog: [v0.25.0...v0.26.0](https://github.com/e-invoice-be/e-invoice-rb/compare/v0.25.0...v0.26.0)
6
+
7
+ ### Features
8
+
9
+ * **api:** api update ([c5bd692](https://github.com/e-invoice-be/e-invoice-rb/commit/c5bd6924ff66c6733b751e6145ba325f62175931))
10
+
11
+ ## 0.25.0 (2026-03-09)
12
+
13
+ Full Changelog: [v0.24.1...v0.25.0](https://github.com/e-invoice-be/e-invoice-rb/compare/v0.24.1...v0.25.0)
14
+
15
+ ### Features
16
+
17
+ * **api:** api update ([1ddf3a7](https://github.com/e-invoice-be/e-invoice-rb/commit/1ddf3a7ff1a45ec8bf41330acda0fd423e106ae4))
18
+
19
+
20
+ ### Chores
21
+
22
+ * **ci:** add build step ([b48f5ff](https://github.com/e-invoice-be/e-invoice-rb/commit/b48f5fffbbf62a14f99c8773657e7290de5cc3b8))
23
+ * **ci:** skip uploading artifacts on stainless-internal branches ([24d4e8b](https://github.com/e-invoice-be/e-invoice-rb/commit/24d4e8b599b40467668c0b2546316f56da852a24))
24
+ * **internal:** codegen related update ([413ebdf](https://github.com/e-invoice-be/e-invoice-rb/commit/413ebdf6f0651dc190507f8dac2f0613cbc577e4))
25
+ * **internal:** codegen related update ([90aacdf](https://github.com/e-invoice-be/e-invoice-rb/commit/90aacdf2d72161fd78bed080d67362d317e262d0))
26
+ * update placeholder string ([ba061b0](https://github.com/e-invoice-be/e-invoice-rb/commit/ba061b082989675ed4c4dbcf79e3c6fc429ba7cd))
27
+
3
28
  ## 0.24.1 (2026-02-27)
4
29
 
5
30
  Full Changelog: [v0.24.0...v0.24.1](https://github.com/e-invoice-be/e-invoice-rb/compare/v0.24.0...v0.24.1)
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.24.1"
29
+ gem "e-invoice-api", "~> 0.26.0"
30
30
  ```
31
31
 
32
32
  <!-- x-release-please-end -->
@@ -490,6 +490,37 @@ module EInvoiceAPI
490
490
  JSONL_CONTENT = %r{^application/(:?x-(?:n|l)djson)|(:?(?:x-)?jsonl)}
491
491
 
492
492
  class << self
493
+ # @api private
494
+ #
495
+ # @param query [Hash{Symbol=>Object}]
496
+ #
497
+ # @return [Hash{Symbol=>Object}]
498
+ def encode_query_params(query)
499
+ out = {}
500
+ query.each { write_query_param_element!(out, _1, _2) }
501
+ out
502
+ end
503
+
504
+ # @api private
505
+ #
506
+ # @param collection [Hash{Symbol=>Object}]
507
+ # @param key [String]
508
+ # @param element [Object]
509
+ #
510
+ # @return [nil]
511
+ private def write_query_param_element!(collection, key, element)
512
+ case element
513
+ in Hash
514
+ element.each do |name, value|
515
+ write_query_param_element!(collection, "#{key}[#{name}]", value)
516
+ end
517
+ in Array
518
+ collection[key] = element.map(&:to_s).join(",")
519
+ else
520
+ collection[key] = element.to_s
521
+ end
522
+ end
523
+
493
524
  # @api private
494
525
  #
495
526
  # @param y [Enumerator::Yielder]
@@ -7,7 +7,13 @@ module EInvoiceAPI
7
7
  extend EInvoiceAPI::Internal::Type::RequestParameters::Converter
8
8
  include EInvoiceAPI::Internal::Type::RequestParameters
9
9
 
10
- # @!method initialize(request_options: {})
10
+ # @!attribute document_id
11
+ #
12
+ # @return [String]
13
+ required :document_id, String
14
+
15
+ # @!method initialize(document_id:, request_options: {})
16
+ # @param document_id [String]
11
17
  # @param request_options [EInvoiceAPI::RequestOptions, Hash{Symbol=>Object}]
12
18
  end
13
19
  end
@@ -7,7 +7,13 @@ module EInvoiceAPI
7
7
  extend EInvoiceAPI::Internal::Type::RequestParameters::Converter
8
8
  include EInvoiceAPI::Internal::Type::RequestParameters
9
9
 
10
- # @!method initialize(request_options: {})
10
+ # @!attribute document_id
11
+ #
12
+ # @return [String]
13
+ required :document_id, String
14
+
15
+ # @!method initialize(document_id:, request_options: {})
16
+ # @param document_id [String]
11
17
  # @param request_options [EInvoiceAPI::RequestOptions, Hash{Symbol=>Object}]
12
18
  end
13
19
  end
@@ -7,6 +7,11 @@ module EInvoiceAPI
7
7
  extend EInvoiceAPI::Internal::Type::RequestParameters::Converter
8
8
  include EInvoiceAPI::Internal::Type::RequestParameters
9
9
 
10
+ # @!attribute document_id
11
+ #
12
+ # @return [String]
13
+ required :document_id, String
14
+
10
15
  # @!attribute email
11
16
  #
12
17
  # @return [String, nil]
@@ -32,7 +37,8 @@ module EInvoiceAPI
32
37
  # @return [String, nil]
33
38
  optional :sender_peppol_scheme, String, nil?: true
34
39
 
35
- # @!method initialize(email: nil, receiver_peppol_id: nil, receiver_peppol_scheme: nil, sender_peppol_id: nil, sender_peppol_scheme: nil, request_options: {})
40
+ # @!method initialize(document_id:, email: nil, receiver_peppol_id: nil, receiver_peppol_scheme: nil, sender_peppol_id: nil, sender_peppol_scheme: nil, request_options: {})
41
+ # @param document_id [String]
36
42
  # @param email [String, nil]
37
43
  # @param receiver_peppol_id [String, nil]
38
44
  # @param receiver_peppol_scheme [String, nil]
@@ -7,7 +7,13 @@ module EInvoiceAPI
7
7
  extend EInvoiceAPI::Internal::Type::RequestParameters::Converter
8
8
  include EInvoiceAPI::Internal::Type::RequestParameters
9
9
 
10
- # @!method initialize(request_options: {})
10
+ # @!attribute document_id
11
+ #
12
+ # @return [String]
13
+ required :document_id, String
14
+
15
+ # @!method initialize(document_id:, request_options: {})
16
+ # @param document_id [String]
11
17
  # @param request_options [EInvoiceAPI::RequestOptions, Hash{Symbol=>Object}]
12
18
  end
13
19
  end
@@ -8,12 +8,18 @@ module EInvoiceAPI
8
8
  extend EInvoiceAPI::Internal::Type::RequestParameters::Converter
9
9
  include EInvoiceAPI::Internal::Type::RequestParameters
10
10
 
11
+ # @!attribute document_id
12
+ #
13
+ # @return [String]
14
+ required :document_id, String
15
+
11
16
  # @!attribute file
12
17
  #
13
18
  # @return [Pathname, StringIO, IO, String, EInvoiceAPI::FilePart]
14
19
  required :file, EInvoiceAPI::Internal::Type::FileInput
15
20
 
16
- # @!method initialize(file:, request_options: {})
21
+ # @!method initialize(document_id:, file:, request_options: {})
22
+ # @param document_id [String]
17
23
  # @param file [Pathname, StringIO, IO, String, EInvoiceAPI::FilePart]
18
24
  # @param request_options [EInvoiceAPI::RequestOptions, Hash{Symbol=>Object}]
19
25
  end
@@ -13,8 +13,14 @@ module EInvoiceAPI
13
13
  # @return [String]
14
14
  required :document_id, String
15
15
 
16
- # @!method initialize(document_id:, request_options: {})
16
+ # @!attribute attachment_id
17
+ #
18
+ # @return [String]
19
+ required :attachment_id, String
20
+
21
+ # @!method initialize(document_id:, attachment_id:, request_options: {})
17
22
  # @param document_id [String]
23
+ # @param attachment_id [String]
18
24
  # @param request_options [EInvoiceAPI::RequestOptions, Hash{Symbol=>Object}]
19
25
  end
20
26
  end
@@ -8,7 +8,13 @@ module EInvoiceAPI
8
8
  extend EInvoiceAPI::Internal::Type::RequestParameters::Converter
9
9
  include EInvoiceAPI::Internal::Type::RequestParameters
10
10
 
11
- # @!method initialize(request_options: {})
11
+ # @!attribute document_id
12
+ #
13
+ # @return [String]
14
+ required :document_id, String
15
+
16
+ # @!method initialize(document_id:, request_options: {})
17
+ # @param document_id [String]
12
18
  # @param request_options [EInvoiceAPI::RequestOptions, Hash{Symbol=>Object}]
13
19
  end
14
20
  end
@@ -13,8 +13,14 @@ module EInvoiceAPI
13
13
  # @return [String]
14
14
  required :document_id, String
15
15
 
16
- # @!method initialize(document_id:, request_options: {})
16
+ # @!attribute attachment_id
17
+ #
18
+ # @return [String]
19
+ required :attachment_id, String
20
+
21
+ # @!method initialize(document_id:, attachment_id:, request_options: {})
17
22
  # @param document_id [String]
23
+ # @param attachment_id [String]
18
24
  # @param request_options [EInvoiceAPI::RequestOptions, Hash{Symbol=>Object}]
19
25
  end
20
26
  end
@@ -8,7 +8,13 @@ module EInvoiceAPI
8
8
  extend EInvoiceAPI::Internal::Type::RequestParameters::Converter
9
9
  include EInvoiceAPI::Internal::Type::RequestParameters
10
10
 
11
- # @!method initialize(request_options: {})
11
+ # @!attribute document_id
12
+ #
13
+ # @return [String]
14
+ required :document_id, String
15
+
16
+ # @!method initialize(document_id:, request_options: {})
17
+ # @param document_id [String]
12
18
  # @param request_options [EInvoiceAPI::RequestOptions, Hash{Symbol=>Object}]
13
19
  end
14
20
  end
@@ -7,7 +7,13 @@ module EInvoiceAPI
7
7
  extend EInvoiceAPI::Internal::Type::RequestParameters::Converter
8
8
  include EInvoiceAPI::Internal::Type::RequestParameters
9
9
 
10
- # @!method initialize(request_options: {})
10
+ # @!attribute webhook_id
11
+ #
12
+ # @return [String]
13
+ required :webhook_id, String
14
+
15
+ # @!method initialize(webhook_id:, request_options: {})
16
+ # @param webhook_id [String]
11
17
  # @param request_options [EInvoiceAPI::RequestOptions, Hash{Symbol=>Object}]
12
18
  end
13
19
  end
@@ -7,7 +7,13 @@ module EInvoiceAPI
7
7
  extend EInvoiceAPI::Internal::Type::RequestParameters::Converter
8
8
  include EInvoiceAPI::Internal::Type::RequestParameters
9
9
 
10
- # @!method initialize(request_options: {})
10
+ # @!attribute webhook_id
11
+ #
12
+ # @return [String]
13
+ required :webhook_id, String
14
+
15
+ # @!method initialize(webhook_id:, request_options: {})
16
+ # @param webhook_id [String]
11
17
  # @param request_options [EInvoiceAPI::RequestOptions, Hash{Symbol=>Object}]
12
18
  end
13
19
  end
@@ -7,6 +7,11 @@ module EInvoiceAPI
7
7
  extend EInvoiceAPI::Internal::Type::RequestParameters::Converter
8
8
  include EInvoiceAPI::Internal::Type::RequestParameters
9
9
 
10
+ # @!attribute webhook_id
11
+ #
12
+ # @return [String]
13
+ required :webhook_id, String
14
+
10
15
  # @!attribute enabled
11
16
  #
12
17
  # @return [Boolean, nil]
@@ -22,7 +27,8 @@ module EInvoiceAPI
22
27
  # @return [String, nil]
23
28
  optional :url, String, nil?: true
24
29
 
25
- # @!method initialize(enabled: nil, events: nil, url: nil, request_options: {})
30
+ # @!method initialize(webhook_id:, enabled: nil, events: nil, url: nil, request_options: {})
31
+ # @param webhook_id [String]
26
32
  # @param enabled [Boolean, nil]
27
33
  # @param events [Array<String>, nil]
28
34
  # @param url [String, nil]
@@ -122,12 +122,13 @@ module EInvoiceAPI
122
122
  #
123
123
  # @see EInvoiceAPI::Models::DocumentCreateParams
124
124
  def create(params = {})
125
- parsed, options = EInvoiceAPI::DocumentCreateParams.dump_request(params)
126
125
  query_params = [:construct_pdf]
126
+ parsed, options = EInvoiceAPI::DocumentCreateParams.dump_request(params)
127
+ query = EInvoiceAPI::Internal::Util.encode_query_params(parsed.slice(*query_params))
127
128
  @client.request(
128
129
  method: :post,
129
130
  path: "api/documents/",
130
- query: parsed.slice(*query_params),
131
+ query: query,
131
132
  body: parsed.except(*query_params),
132
133
  model: EInvoiceAPI::DocumentResponse,
133
134
  options: options
@@ -192,12 +193,13 @@ module EInvoiceAPI
192
193
  #
193
194
  # @see EInvoiceAPI::Models::DocumentCreateFromPdfParams
194
195
  def create_from_pdf(params)
195
- parsed, options = EInvoiceAPI::DocumentCreateFromPdfParams.dump_request(params)
196
196
  query_params = [:customer_tax_id, :vendor_tax_id]
197
+ parsed, options = EInvoiceAPI::DocumentCreateFromPdfParams.dump_request(params)
198
+ query = EInvoiceAPI::Internal::Util.encode_query_params(parsed.slice(*query_params))
197
199
  @client.request(
198
200
  method: :post,
199
201
  path: "api/documents/pdf",
200
- query: parsed.slice(*query_params),
202
+ query: query,
201
203
  headers: {"content-type" => "multipart/form-data"},
202
204
  body: parsed.except(*query_params),
203
205
  model: EInvoiceAPI::Models::DocumentCreateFromPdfResponse,
@@ -227,10 +229,11 @@ module EInvoiceAPI
227
229
  # @see EInvoiceAPI::Models::DocumentSendParams
228
230
  def send_(document_id, params = {})
229
231
  parsed, options = EInvoiceAPI::DocumentSendParams.dump_request(params)
232
+ query = EInvoiceAPI::Internal::Util.encode_query_params(parsed)
230
233
  @client.request(
231
234
  method: :post,
232
235
  path: ["api/documents/%1$s/send", document_id],
233
- query: parsed,
236
+ query: query,
234
237
  model: EInvoiceAPI::DocumentResponse,
235
238
  options: options
236
239
  )
@@ -33,10 +33,11 @@ module EInvoiceAPI
33
33
  # @see EInvoiceAPI::Models::InboxListParams
34
34
  def list(params = {})
35
35
  parsed, options = EInvoiceAPI::InboxListParams.dump_request(params)
36
+ query = EInvoiceAPI::Internal::Util.encode_query_params(parsed)
36
37
  @client.request(
37
38
  method: :get,
38
39
  path: "api/inbox/",
39
- query: parsed,
40
+ query: query,
40
41
  page: EInvoiceAPI::Internal::DocumentsNumberPage,
41
42
  model: EInvoiceAPI::DocumentResponse,
42
43
  options: options
@@ -62,10 +63,11 @@ module EInvoiceAPI
62
63
  # @see EInvoiceAPI::Models::InboxListCreditNotesParams
63
64
  def list_credit_notes(params = {})
64
65
  parsed, options = EInvoiceAPI::InboxListCreditNotesParams.dump_request(params)
66
+ query = EInvoiceAPI::Internal::Util.encode_query_params(parsed)
65
67
  @client.request(
66
68
  method: :get,
67
69
  path: "api/inbox/credit-notes",
68
- query: parsed,
70
+ query: query,
69
71
  page: EInvoiceAPI::Internal::DocumentsNumberPage,
70
72
  model: EInvoiceAPI::DocumentResponse,
71
73
  options: options
@@ -91,10 +93,11 @@ module EInvoiceAPI
91
93
  # @see EInvoiceAPI::Models::InboxListInvoicesParams
92
94
  def list_invoices(params = {})
93
95
  parsed, options = EInvoiceAPI::InboxListInvoicesParams.dump_request(params)
96
+ query = EInvoiceAPI::Internal::Util.encode_query_params(parsed)
94
97
  @client.request(
95
98
  method: :get,
96
99
  path: "api/inbox/invoices",
97
- query: parsed,
100
+ query: query,
98
101
  page: EInvoiceAPI::Internal::DocumentsNumberPage,
99
102
  model: EInvoiceAPI::DocumentResponse,
100
103
  options: options
@@ -23,10 +23,11 @@ module EInvoiceAPI
23
23
  # @see EInvoiceAPI::Models::LookupRetrieveParams
24
24
  def retrieve(params)
25
25
  parsed, options = EInvoiceAPI::LookupRetrieveParams.dump_request(params)
26
+ query = EInvoiceAPI::Internal::Util.encode_query_params(parsed)
26
27
  @client.request(
27
28
  method: :get,
28
29
  path: "api/lookup",
29
- query: parsed,
30
+ query: query,
30
31
  model: EInvoiceAPI::Models::LookupRetrieveResponse,
31
32
  options: options
32
33
  )
@@ -51,10 +52,11 @@ module EInvoiceAPI
51
52
  # @see EInvoiceAPI::Models::LookupRetrieveParticipantsParams
52
53
  def retrieve_participants(params)
53
54
  parsed, options = EInvoiceAPI::LookupRetrieveParticipantsParams.dump_request(params)
55
+ query = EInvoiceAPI::Internal::Util.encode_query_params(parsed)
54
56
  @client.request(
55
57
  method: :get,
56
58
  path: "api/lookup/participants",
57
- query: parsed,
59
+ query: query,
58
60
  model: EInvoiceAPI::Models::LookupRetrieveParticipantsResponse,
59
61
  options: options
60
62
  )
@@ -31,10 +31,11 @@ module EInvoiceAPI
31
31
  # @see EInvoiceAPI::Models::OutboxListDraftDocumentsParams
32
32
  def list_draft_documents(params = {})
33
33
  parsed, options = EInvoiceAPI::OutboxListDraftDocumentsParams.dump_request(params)
34
+ query = EInvoiceAPI::Internal::Util.encode_query_params(parsed)
34
35
  @client.request(
35
36
  method: :get,
36
37
  path: "api/outbox/drafts",
37
- query: parsed,
38
+ query: query,
38
39
  page: EInvoiceAPI::Internal::DocumentsNumberPage,
39
40
  model: EInvoiceAPI::DocumentResponse,
40
41
  options: options
@@ -76,10 +77,11 @@ module EInvoiceAPI
76
77
  # @see EInvoiceAPI::Models::OutboxListReceivedDocumentsParams
77
78
  def list_received_documents(params = {})
78
79
  parsed, options = EInvoiceAPI::OutboxListReceivedDocumentsParams.dump_request(params)
80
+ query = EInvoiceAPI::Internal::Util.encode_query_params(parsed)
79
81
  @client.request(
80
82
  method: :get,
81
83
  path: "api/outbox/",
82
- query: parsed,
84
+ query: query,
83
85
  page: EInvoiceAPI::Internal::DocumentsNumberPage,
84
86
  model: EInvoiceAPI::DocumentResponse,
85
87
  options: options
@@ -145,10 +145,11 @@ module EInvoiceAPI
145
145
  # @see EInvoiceAPI::Models::ValidateValidatePeppolIDParams
146
146
  def validate_peppol_id(params)
147
147
  parsed, options = EInvoiceAPI::ValidateValidatePeppolIDParams.dump_request(params)
148
+ query = EInvoiceAPI::Internal::Util.encode_query_params(parsed)
148
149
  @client.request(
149
150
  method: :get,
150
151
  path: "api/validate/peppol-id",
151
- query: parsed,
152
+ query: query,
152
153
  model: EInvoiceAPI::Models::ValidateValidatePeppolIDResponse,
153
154
  options: options
154
155
  )
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module EInvoiceAPI
4
- VERSION = "0.24.1"
4
+ VERSION = "0.26.0"
5
5
  end
@@ -301,6 +301,26 @@ module EInvoiceAPI
301
301
  T.let(%r{^application/(:?x-(?:n|l)djson)|(:?(?:x-)?jsonl)}, Regexp)
302
302
 
303
303
  class << self
304
+ # @api private
305
+ sig do
306
+ params(query: EInvoiceAPI::Internal::AnyHash).returns(
307
+ EInvoiceAPI::Internal::AnyHash
308
+ )
309
+ end
310
+ def encode_query_params(query)
311
+ end
312
+
313
+ # @api private
314
+ sig do
315
+ params(
316
+ collection: EInvoiceAPI::Internal::AnyHash,
317
+ key: String,
318
+ element: T.anything
319
+ ).void
320
+ end
321
+ private def write_query_param_element!(collection, key, element)
322
+ end
323
+
304
324
  # @api private
305
325
  sig do
306
326
  params(
@@ -14,15 +14,23 @@ module EInvoiceAPI
14
14
  )
15
15
  end
16
16
 
17
+ sig { returns(String) }
18
+ attr_accessor :document_id
19
+
17
20
  sig do
18
- params(request_options: EInvoiceAPI::RequestOptions::OrHash).returns(
19
- T.attached_class
20
- )
21
+ params(
22
+ document_id: String,
23
+ request_options: EInvoiceAPI::RequestOptions::OrHash
24
+ ).returns(T.attached_class)
21
25
  end
22
- def self.new(request_options: {})
26
+ def self.new(document_id:, request_options: {})
23
27
  end
24
28
 
25
- sig { override.returns({ request_options: EInvoiceAPI::RequestOptions }) }
29
+ sig do
30
+ override.returns(
31
+ { document_id: String, request_options: EInvoiceAPI::RequestOptions }
32
+ )
33
+ end
26
34
  def to_hash
27
35
  end
28
36
  end
@@ -14,15 +14,23 @@ module EInvoiceAPI
14
14
  )
15
15
  end
16
16
 
17
+ sig { returns(String) }
18
+ attr_accessor :document_id
19
+
17
20
  sig do
18
- params(request_options: EInvoiceAPI::RequestOptions::OrHash).returns(
19
- T.attached_class
20
- )
21
+ params(
22
+ document_id: String,
23
+ request_options: EInvoiceAPI::RequestOptions::OrHash
24
+ ).returns(T.attached_class)
21
25
  end
22
- def self.new(request_options: {})
26
+ def self.new(document_id:, request_options: {})
23
27
  end
24
28
 
25
- sig { override.returns({ request_options: EInvoiceAPI::RequestOptions }) }
29
+ sig do
30
+ override.returns(
31
+ { document_id: String, request_options: EInvoiceAPI::RequestOptions }
32
+ )
33
+ end
26
34
  def to_hash
27
35
  end
28
36
  end
@@ -11,6 +11,9 @@ module EInvoiceAPI
11
11
  T.any(EInvoiceAPI::DocumentSendParams, EInvoiceAPI::Internal::AnyHash)
12
12
  end
13
13
 
14
+ sig { returns(String) }
15
+ attr_accessor :document_id
16
+
14
17
  sig { returns(T.nilable(String)) }
15
18
  attr_accessor :email
16
19
 
@@ -28,6 +31,7 @@ module EInvoiceAPI
28
31
 
29
32
  sig do
30
33
  params(
34
+ document_id: String,
31
35
  email: T.nilable(String),
32
36
  receiver_peppol_id: T.nilable(String),
33
37
  receiver_peppol_scheme: T.nilable(String),
@@ -37,6 +41,7 @@ module EInvoiceAPI
37
41
  ).returns(T.attached_class)
38
42
  end
39
43
  def self.new(
44
+ document_id:,
40
45
  email: nil,
41
46
  receiver_peppol_id: nil,
42
47
  receiver_peppol_scheme: nil,
@@ -49,6 +54,7 @@ module EInvoiceAPI
49
54
  sig do
50
55
  override.returns(
51
56
  {
57
+ document_id: String,
52
58
  email: T.nilable(String),
53
59
  receiver_peppol_id: T.nilable(String),
54
60
  receiver_peppol_scheme: T.nilable(String),
@@ -14,15 +14,23 @@ module EInvoiceAPI
14
14
  )
15
15
  end
16
16
 
17
+ sig { returns(String) }
18
+ attr_accessor :document_id
19
+
17
20
  sig do
18
- params(request_options: EInvoiceAPI::RequestOptions::OrHash).returns(
19
- T.attached_class
20
- )
21
+ params(
22
+ document_id: String,
23
+ request_options: EInvoiceAPI::RequestOptions::OrHash
24
+ ).returns(T.attached_class)
21
25
  end
22
- def self.new(request_options: {})
26
+ def self.new(document_id:, request_options: {})
23
27
  end
24
28
 
25
- sig { override.returns({ request_options: EInvoiceAPI::RequestOptions }) }
29
+ sig do
30
+ override.returns(
31
+ { document_id: String, request_options: EInvoiceAPI::RequestOptions }
32
+ )
33
+ end
26
34
  def to_hash
27
35
  end
28
36
  end
@@ -15,21 +15,26 @@ module EInvoiceAPI
15
15
  )
16
16
  end
17
17
 
18
+ sig { returns(String) }
19
+ attr_accessor :document_id
20
+
18
21
  sig { returns(EInvoiceAPI::Internal::FileInput) }
19
22
  attr_accessor :file
20
23
 
21
24
  sig do
22
25
  params(
26
+ document_id: String,
23
27
  file: EInvoiceAPI::Internal::FileInput,
24
28
  request_options: EInvoiceAPI::RequestOptions::OrHash
25
29
  ).returns(T.attached_class)
26
30
  end
27
- def self.new(file:, request_options: {})
31
+ def self.new(document_id:, file:, request_options: {})
28
32
  end
29
33
 
30
34
  sig do
31
35
  override.returns(
32
36
  {
37
+ document_id: String,
33
38
  file: EInvoiceAPI::Internal::FileInput,
34
39
  request_options: EInvoiceAPI::RequestOptions
35
40
  }
@@ -18,19 +18,24 @@ module EInvoiceAPI
18
18
  sig { returns(String) }
19
19
  attr_accessor :document_id
20
20
 
21
+ sig { returns(String) }
22
+ attr_accessor :attachment_id
23
+
21
24
  sig do
22
25
  params(
23
26
  document_id: String,
27
+ attachment_id: String,
24
28
  request_options: EInvoiceAPI::RequestOptions::OrHash
25
29
  ).returns(T.attached_class)
26
30
  end
27
- def self.new(document_id:, request_options: {})
31
+ def self.new(document_id:, attachment_id:, request_options: {})
28
32
  end
29
33
 
30
34
  sig do
31
35
  override.returns(
32
36
  {
33
37
  document_id: String,
38
+ attachment_id: String,
34
39
  request_options: EInvoiceAPI::RequestOptions
35
40
  }
36
41
  )
@@ -15,16 +15,25 @@ module EInvoiceAPI
15
15
  )
16
16
  end
17
17
 
18
+ sig { returns(String) }
19
+ attr_accessor :document_id
20
+
18
21
  sig do
19
- params(request_options: EInvoiceAPI::RequestOptions::OrHash).returns(
20
- T.attached_class
21
- )
22
+ params(
23
+ document_id: String,
24
+ request_options: EInvoiceAPI::RequestOptions::OrHash
25
+ ).returns(T.attached_class)
22
26
  end
23
- def self.new(request_options: {})
27
+ def self.new(document_id:, request_options: {})
24
28
  end
25
29
 
26
30
  sig do
27
- override.returns({ request_options: EInvoiceAPI::RequestOptions })
31
+ override.returns(
32
+ {
33
+ document_id: String,
34
+ request_options: EInvoiceAPI::RequestOptions
35
+ }
36
+ )
28
37
  end
29
38
  def to_hash
30
39
  end
@@ -18,19 +18,24 @@ module EInvoiceAPI
18
18
  sig { returns(String) }
19
19
  attr_accessor :document_id
20
20
 
21
+ sig { returns(String) }
22
+ attr_accessor :attachment_id
23
+
21
24
  sig do
22
25
  params(
23
26
  document_id: String,
27
+ attachment_id: String,
24
28
  request_options: EInvoiceAPI::RequestOptions::OrHash
25
29
  ).returns(T.attached_class)
26
30
  end
27
- def self.new(document_id:, request_options: {})
31
+ def self.new(document_id:, attachment_id:, request_options: {})
28
32
  end
29
33
 
30
34
  sig do
31
35
  override.returns(
32
36
  {
33
37
  document_id: String,
38
+ attachment_id: String,
34
39
  request_options: EInvoiceAPI::RequestOptions
35
40
  }
36
41
  )
@@ -15,16 +15,25 @@ module EInvoiceAPI
15
15
  )
16
16
  end
17
17
 
18
+ sig { returns(String) }
19
+ attr_accessor :document_id
20
+
18
21
  sig do
19
- params(request_options: EInvoiceAPI::RequestOptions::OrHash).returns(
20
- T.attached_class
21
- )
22
+ params(
23
+ document_id: String,
24
+ request_options: EInvoiceAPI::RequestOptions::OrHash
25
+ ).returns(T.attached_class)
22
26
  end
23
- def self.new(request_options: {})
27
+ def self.new(document_id:, request_options: {})
24
28
  end
25
29
 
26
30
  sig do
27
- override.returns({ request_options: EInvoiceAPI::RequestOptions })
31
+ override.returns(
32
+ {
33
+ document_id: String,
34
+ request_options: EInvoiceAPI::RequestOptions
35
+ }
36
+ )
28
37
  end
29
38
  def to_hash
30
39
  end
@@ -14,15 +14,23 @@ module EInvoiceAPI
14
14
  )
15
15
  end
16
16
 
17
+ sig { returns(String) }
18
+ attr_accessor :webhook_id
19
+
17
20
  sig do
18
- params(request_options: EInvoiceAPI::RequestOptions::OrHash).returns(
19
- T.attached_class
20
- )
21
+ params(
22
+ webhook_id: String,
23
+ request_options: EInvoiceAPI::RequestOptions::OrHash
24
+ ).returns(T.attached_class)
21
25
  end
22
- def self.new(request_options: {})
26
+ def self.new(webhook_id:, request_options: {})
23
27
  end
24
28
 
25
- sig { override.returns({ request_options: EInvoiceAPI::RequestOptions }) }
29
+ sig do
30
+ override.returns(
31
+ { webhook_id: String, request_options: EInvoiceAPI::RequestOptions }
32
+ )
33
+ end
26
34
  def to_hash
27
35
  end
28
36
  end
@@ -14,15 +14,23 @@ module EInvoiceAPI
14
14
  )
15
15
  end
16
16
 
17
+ sig { returns(String) }
18
+ attr_accessor :webhook_id
19
+
17
20
  sig do
18
- params(request_options: EInvoiceAPI::RequestOptions::OrHash).returns(
19
- T.attached_class
20
- )
21
+ params(
22
+ webhook_id: String,
23
+ request_options: EInvoiceAPI::RequestOptions::OrHash
24
+ ).returns(T.attached_class)
21
25
  end
22
- def self.new(request_options: {})
26
+ def self.new(webhook_id:, request_options: {})
23
27
  end
24
28
 
25
- sig { override.returns({ request_options: EInvoiceAPI::RequestOptions }) }
29
+ sig do
30
+ override.returns(
31
+ { webhook_id: String, request_options: EInvoiceAPI::RequestOptions }
32
+ )
33
+ end
26
34
  def to_hash
27
35
  end
28
36
  end
@@ -14,6 +14,9 @@ module EInvoiceAPI
14
14
  )
15
15
  end
16
16
 
17
+ sig { returns(String) }
18
+ attr_accessor :webhook_id
19
+
17
20
  sig { returns(T.nilable(T::Boolean)) }
18
21
  attr_accessor :enabled
19
22
 
@@ -25,18 +28,26 @@ module EInvoiceAPI
25
28
 
26
29
  sig do
27
30
  params(
31
+ webhook_id: String,
28
32
  enabled: T.nilable(T::Boolean),
29
33
  events: T.nilable(T::Array[String]),
30
34
  url: T.nilable(String),
31
35
  request_options: EInvoiceAPI::RequestOptions::OrHash
32
36
  ).returns(T.attached_class)
33
37
  end
34
- def self.new(enabled: nil, events: nil, url: nil, request_options: {})
38
+ def self.new(
39
+ webhook_id:,
40
+ enabled: nil,
41
+ events: nil,
42
+ url: nil,
43
+ request_options: {}
44
+ )
35
45
  end
36
46
 
37
47
  sig do
38
48
  override.returns(
39
49
  {
50
+ webhook_id: String,
40
51
  enabled: T.nilable(T::Boolean),
41
52
  events: T.nilable(T::Array[String]),
42
53
  url: T.nilable(String),
@@ -106,6 +106,16 @@ module EInvoiceAPI
106
106
  JSON_CONTENT: Regexp
107
107
  JSONL_CONTENT: Regexp
108
108
 
109
+ def encode_query_params: (
110
+ ::Hash[Symbol, top] query
111
+ ) -> ::Hash[Symbol, top]
112
+
113
+ private def write_query_param_element!: (
114
+ ::Hash[Symbol, top] collection,
115
+ String key,
116
+ top element
117
+ ) -> nil
118
+
109
119
  def self?.write_multipart_content: (
110
120
  Enumerator::Yielder y,
111
121
  val: top,
@@ -1,15 +1,23 @@
1
1
  module EInvoiceAPI
2
2
  module Models
3
3
  type document_delete_params =
4
- { } & EInvoiceAPI::Internal::Type::request_parameters
4
+ { document_id: String } & EInvoiceAPI::Internal::Type::request_parameters
5
5
 
6
6
  class DocumentDeleteParams < EInvoiceAPI::Internal::Type::BaseModel
7
7
  extend EInvoiceAPI::Internal::Type::RequestParameters::Converter
8
8
  include EInvoiceAPI::Internal::Type::RequestParameters
9
9
 
10
- def initialize: (?request_options: EInvoiceAPI::request_opts) -> void
10
+ attr_accessor document_id: String
11
11
 
12
- def to_hash: -> { request_options: EInvoiceAPI::RequestOptions }
12
+ def initialize: (
13
+ document_id: String,
14
+ ?request_options: EInvoiceAPI::request_opts
15
+ ) -> void
16
+
17
+ def to_hash: -> {
18
+ document_id: String,
19
+ request_options: EInvoiceAPI::RequestOptions
20
+ }
13
21
  end
14
22
  end
15
23
  end
@@ -1,15 +1,23 @@
1
1
  module EInvoiceAPI
2
2
  module Models
3
3
  type document_retrieve_params =
4
- { } & EInvoiceAPI::Internal::Type::request_parameters
4
+ { document_id: String } & EInvoiceAPI::Internal::Type::request_parameters
5
5
 
6
6
  class DocumentRetrieveParams < EInvoiceAPI::Internal::Type::BaseModel
7
7
  extend EInvoiceAPI::Internal::Type::RequestParameters::Converter
8
8
  include EInvoiceAPI::Internal::Type::RequestParameters
9
9
 
10
- def initialize: (?request_options: EInvoiceAPI::request_opts) -> void
10
+ attr_accessor document_id: String
11
11
 
12
- def to_hash: -> { request_options: EInvoiceAPI::RequestOptions }
12
+ def initialize: (
13
+ document_id: String,
14
+ ?request_options: EInvoiceAPI::request_opts
15
+ ) -> void
16
+
17
+ def to_hash: -> {
18
+ document_id: String,
19
+ request_options: EInvoiceAPI::RequestOptions
20
+ }
13
21
  end
14
22
  end
15
23
  end
@@ -2,6 +2,7 @@ module EInvoiceAPI
2
2
  module Models
3
3
  type document_send_params =
4
4
  {
5
+ document_id: String,
5
6
  email: String?,
6
7
  receiver_peppol_id: String?,
7
8
  receiver_peppol_scheme: String?,
@@ -14,6 +15,8 @@ module EInvoiceAPI
14
15
  extend EInvoiceAPI::Internal::Type::RequestParameters::Converter
15
16
  include EInvoiceAPI::Internal::Type::RequestParameters
16
17
 
18
+ attr_accessor document_id: String
19
+
17
20
  attr_accessor email: String?
18
21
 
19
22
  attr_accessor receiver_peppol_id: String?
@@ -25,6 +28,7 @@ module EInvoiceAPI
25
28
  attr_accessor sender_peppol_scheme: String?
26
29
 
27
30
  def initialize: (
31
+ document_id: String,
28
32
  ?email: String?,
29
33
  ?receiver_peppol_id: String?,
30
34
  ?receiver_peppol_scheme: String?,
@@ -34,6 +38,7 @@ module EInvoiceAPI
34
38
  ) -> void
35
39
 
36
40
  def to_hash: -> {
41
+ document_id: String,
37
42
  email: String?,
38
43
  receiver_peppol_id: String?,
39
44
  receiver_peppol_scheme: String?,
@@ -1,15 +1,23 @@
1
1
  module EInvoiceAPI
2
2
  module Models
3
3
  type document_validate_params =
4
- { } & EInvoiceAPI::Internal::Type::request_parameters
4
+ { document_id: String } & EInvoiceAPI::Internal::Type::request_parameters
5
5
 
6
6
  class DocumentValidateParams < EInvoiceAPI::Internal::Type::BaseModel
7
7
  extend EInvoiceAPI::Internal::Type::RequestParameters::Converter
8
8
  include EInvoiceAPI::Internal::Type::RequestParameters
9
9
 
10
- def initialize: (?request_options: EInvoiceAPI::request_opts) -> void
10
+ attr_accessor document_id: String
11
11
 
12
- def to_hash: -> { request_options: EInvoiceAPI::RequestOptions }
12
+ def initialize: (
13
+ document_id: String,
14
+ ?request_options: EInvoiceAPI::request_opts
15
+ ) -> void
16
+
17
+ def to_hash: -> {
18
+ document_id: String,
19
+ request_options: EInvoiceAPI::RequestOptions
20
+ }
13
21
  end
14
22
  end
15
23
  end
@@ -2,21 +2,25 @@ module EInvoiceAPI
2
2
  module Models
3
3
  module Documents
4
4
  type attachment_add_params =
5
- { file: EInvoiceAPI::Internal::file_input }
5
+ { document_id: String, file: EInvoiceAPI::Internal::file_input }
6
6
  & EInvoiceAPI::Internal::Type::request_parameters
7
7
 
8
8
  class AttachmentAddParams < EInvoiceAPI::Internal::Type::BaseModel
9
9
  extend EInvoiceAPI::Internal::Type::RequestParameters::Converter
10
10
  include EInvoiceAPI::Internal::Type::RequestParameters
11
11
 
12
+ attr_accessor document_id: String
13
+
12
14
  attr_accessor file: EInvoiceAPI::Internal::file_input
13
15
 
14
16
  def initialize: (
17
+ document_id: String,
15
18
  file: EInvoiceAPI::Internal::file_input,
16
19
  ?request_options: EInvoiceAPI::request_opts
17
20
  ) -> void
18
21
 
19
22
  def to_hash: -> {
23
+ document_id: String,
20
24
  file: EInvoiceAPI::Internal::file_input,
21
25
  request_options: EInvoiceAPI::RequestOptions
22
26
  }
@@ -2,7 +2,7 @@ module EInvoiceAPI
2
2
  module Models
3
3
  module Documents
4
4
  type attachment_delete_params =
5
- { document_id: String }
5
+ { document_id: String, attachment_id: String }
6
6
  & EInvoiceAPI::Internal::Type::request_parameters
7
7
 
8
8
  class AttachmentDeleteParams < EInvoiceAPI::Internal::Type::BaseModel
@@ -11,13 +11,17 @@ module EInvoiceAPI
11
11
 
12
12
  attr_accessor document_id: String
13
13
 
14
+ attr_accessor attachment_id: String
15
+
14
16
  def initialize: (
15
17
  document_id: String,
18
+ attachment_id: String,
16
19
  ?request_options: EInvoiceAPI::request_opts
17
20
  ) -> void
18
21
 
19
22
  def to_hash: -> {
20
23
  document_id: String,
24
+ attachment_id: String,
21
25
  request_options: EInvoiceAPI::RequestOptions
22
26
  }
23
27
  end
@@ -2,15 +2,24 @@ module EInvoiceAPI
2
2
  module Models
3
3
  module Documents
4
4
  type attachment_list_params =
5
- { } & EInvoiceAPI::Internal::Type::request_parameters
5
+ { document_id: String }
6
+ & EInvoiceAPI::Internal::Type::request_parameters
6
7
 
7
8
  class AttachmentListParams < EInvoiceAPI::Internal::Type::BaseModel
8
9
  extend EInvoiceAPI::Internal::Type::RequestParameters::Converter
9
10
  include EInvoiceAPI::Internal::Type::RequestParameters
10
11
 
11
- def initialize: (?request_options: EInvoiceAPI::request_opts) -> void
12
+ attr_accessor document_id: String
12
13
 
13
- def to_hash: -> { request_options: EInvoiceAPI::RequestOptions }
14
+ def initialize: (
15
+ document_id: String,
16
+ ?request_options: EInvoiceAPI::request_opts
17
+ ) -> void
18
+
19
+ def to_hash: -> {
20
+ document_id: String,
21
+ request_options: EInvoiceAPI::RequestOptions
22
+ }
14
23
  end
15
24
  end
16
25
  end
@@ -2,7 +2,7 @@ module EInvoiceAPI
2
2
  module Models
3
3
  module Documents
4
4
  type attachment_retrieve_params =
5
- { document_id: String }
5
+ { document_id: String, attachment_id: String }
6
6
  & EInvoiceAPI::Internal::Type::request_parameters
7
7
 
8
8
  class AttachmentRetrieveParams < EInvoiceAPI::Internal::Type::BaseModel
@@ -11,13 +11,17 @@ module EInvoiceAPI
11
11
 
12
12
  attr_accessor document_id: String
13
13
 
14
+ attr_accessor attachment_id: String
15
+
14
16
  def initialize: (
15
17
  document_id: String,
18
+ attachment_id: String,
16
19
  ?request_options: EInvoiceAPI::request_opts
17
20
  ) -> void
18
21
 
19
22
  def to_hash: -> {
20
23
  document_id: String,
24
+ attachment_id: String,
21
25
  request_options: EInvoiceAPI::RequestOptions
22
26
  }
23
27
  end
@@ -2,15 +2,24 @@ module EInvoiceAPI
2
2
  module Models
3
3
  module Documents
4
4
  type ubl_get_params =
5
- { } & EInvoiceAPI::Internal::Type::request_parameters
5
+ { document_id: String }
6
+ & EInvoiceAPI::Internal::Type::request_parameters
6
7
 
7
8
  class UblGetParams < EInvoiceAPI::Internal::Type::BaseModel
8
9
  extend EInvoiceAPI::Internal::Type::RequestParameters::Converter
9
10
  include EInvoiceAPI::Internal::Type::RequestParameters
10
11
 
11
- def initialize: (?request_options: EInvoiceAPI::request_opts) -> void
12
+ attr_accessor document_id: String
12
13
 
13
- def to_hash: -> { request_options: EInvoiceAPI::RequestOptions }
14
+ def initialize: (
15
+ document_id: String,
16
+ ?request_options: EInvoiceAPI::request_opts
17
+ ) -> void
18
+
19
+ def to_hash: -> {
20
+ document_id: String,
21
+ request_options: EInvoiceAPI::RequestOptions
22
+ }
14
23
  end
15
24
  end
16
25
  end
@@ -1,15 +1,23 @@
1
1
  module EInvoiceAPI
2
2
  module Models
3
3
  type webhook_delete_params =
4
- { } & EInvoiceAPI::Internal::Type::request_parameters
4
+ { webhook_id: String } & EInvoiceAPI::Internal::Type::request_parameters
5
5
 
6
6
  class WebhookDeleteParams < EInvoiceAPI::Internal::Type::BaseModel
7
7
  extend EInvoiceAPI::Internal::Type::RequestParameters::Converter
8
8
  include EInvoiceAPI::Internal::Type::RequestParameters
9
9
 
10
- def initialize: (?request_options: EInvoiceAPI::request_opts) -> void
10
+ attr_accessor webhook_id: String
11
11
 
12
- def to_hash: -> { request_options: EInvoiceAPI::RequestOptions }
12
+ def initialize: (
13
+ webhook_id: String,
14
+ ?request_options: EInvoiceAPI::request_opts
15
+ ) -> void
16
+
17
+ def to_hash: -> {
18
+ webhook_id: String,
19
+ request_options: EInvoiceAPI::RequestOptions
20
+ }
13
21
  end
14
22
  end
15
23
  end
@@ -1,15 +1,23 @@
1
1
  module EInvoiceAPI
2
2
  module Models
3
3
  type webhook_retrieve_params =
4
- { } & EInvoiceAPI::Internal::Type::request_parameters
4
+ { webhook_id: String } & EInvoiceAPI::Internal::Type::request_parameters
5
5
 
6
6
  class WebhookRetrieveParams < EInvoiceAPI::Internal::Type::BaseModel
7
7
  extend EInvoiceAPI::Internal::Type::RequestParameters::Converter
8
8
  include EInvoiceAPI::Internal::Type::RequestParameters
9
9
 
10
- def initialize: (?request_options: EInvoiceAPI::request_opts) -> void
10
+ attr_accessor webhook_id: String
11
11
 
12
- def to_hash: -> { request_options: EInvoiceAPI::RequestOptions }
12
+ def initialize: (
13
+ webhook_id: String,
14
+ ?request_options: EInvoiceAPI::request_opts
15
+ ) -> void
16
+
17
+ def to_hash: -> {
18
+ webhook_id: String,
19
+ request_options: EInvoiceAPI::RequestOptions
20
+ }
13
21
  end
14
22
  end
15
23
  end
@@ -1,13 +1,20 @@
1
1
  module EInvoiceAPI
2
2
  module Models
3
3
  type webhook_update_params =
4
- { enabled: bool?, events: ::Array[String]?, url: String? }
4
+ {
5
+ webhook_id: String,
6
+ enabled: bool?,
7
+ events: ::Array[String]?,
8
+ url: String?
9
+ }
5
10
  & EInvoiceAPI::Internal::Type::request_parameters
6
11
 
7
12
  class WebhookUpdateParams < EInvoiceAPI::Internal::Type::BaseModel
8
13
  extend EInvoiceAPI::Internal::Type::RequestParameters::Converter
9
14
  include EInvoiceAPI::Internal::Type::RequestParameters
10
15
 
16
+ attr_accessor webhook_id: String
17
+
11
18
  attr_accessor enabled: bool?
12
19
 
13
20
  attr_accessor events: ::Array[String]?
@@ -15,6 +22,7 @@ module EInvoiceAPI
15
22
  attr_accessor url: String?
16
23
 
17
24
  def initialize: (
25
+ webhook_id: String,
18
26
  ?enabled: bool?,
19
27
  ?events: ::Array[String]?,
20
28
  ?url: String?,
@@ -22,6 +30,7 @@ module EInvoiceAPI
22
30
  ) -> void
23
31
 
24
32
  def to_hash: -> {
33
+ webhook_id: String,
25
34
  enabled: bool?,
26
35
  events: ::Array[String]?,
27
36
  url: String?,
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.24.1
4
+ version: 0.26.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-02-27 00:00:00.000000000 Z
11
+ date: 2026-03-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cgi