e-invoice-api 0.25.0 → 0.26.1

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 (59) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +23 -0
  3. data/README.md +1 -1
  4. data/lib/e_invoice_api/internal/util.rb +1 -2
  5. data/lib/e_invoice_api/models/document_create.rb +9 -1
  6. data/lib/e_invoice_api/models/document_create_from_pdf_response.rb +9 -1
  7. data/lib/e_invoice_api/models/document_create_params.rb +13 -1
  8. data/lib/e_invoice_api/models/document_response.rb +16 -1
  9. data/lib/e_invoice_api/models/document_type.rb +2 -0
  10. data/lib/e_invoice_api/models/inbox_list_credit_notes_params.rb +44 -1
  11. data/lib/e_invoice_api/models/inbox_list_invoices_params.rb +44 -1
  12. data/lib/e_invoice_api/models/inbox_list_params.rb +45 -10
  13. data/lib/e_invoice_api/models/lookup_retrieve_response.rb +17 -1
  14. data/lib/e_invoice_api/models/me_retrieve_response.rb +17 -17
  15. data/lib/e_invoice_api/models/outbox_list_draft_documents_params.rb +68 -1
  16. data/lib/e_invoice_api/models/outbox_list_received_documents_params.rb +57 -10
  17. data/lib/e_invoice_api/models/paginated_document_response.rb +7 -1
  18. data/lib/e_invoice_api/resources/documents/attachments.rb +4 -2
  19. data/lib/e_invoice_api/resources/documents.rb +63 -51
  20. data/lib/e_invoice_api/resources/inbox.rb +16 -6
  21. data/lib/e_invoice_api/resources/outbox.rb +26 -6
  22. data/lib/e_invoice_api/resources/validate.rb +3 -1
  23. data/lib/e_invoice_api/version.rb +1 -1
  24. data/rbi/e_invoice_api/models/document_create.rbi +8 -0
  25. data/rbi/e_invoice_api/models/document_create_from_pdf_response.rbi +8 -0
  26. data/rbi/e_invoice_api/models/document_create_params.rbi +26 -5
  27. data/rbi/e_invoice_api/models/document_response.rbi +14 -0
  28. data/rbi/e_invoice_api/models/document_type.rbi +4 -0
  29. data/rbi/e_invoice_api/models/inbox_list_credit_notes_params.rbi +132 -0
  30. data/rbi/e_invoice_api/models/inbox_list_invoices_params.rbi +126 -0
  31. data/rbi/e_invoice_api/models/inbox_list_params.rbi +100 -11
  32. data/rbi/e_invoice_api/models/lookup_retrieve_response.rbi +19 -3
  33. data/rbi/e_invoice_api/models/me_retrieve_response.rbi +30 -18
  34. data/rbi/e_invoice_api/models/outbox_list_draft_documents_params.rbi +163 -0
  35. data/rbi/e_invoice_api/models/outbox_list_received_documents_params.rbi +156 -11
  36. data/rbi/e_invoice_api/models/paginated_document_response.rbi +6 -1
  37. data/rbi/e_invoice_api/resources/documents/attachments.rbi +4 -2
  38. data/rbi/e_invoice_api/resources/documents.rbi +78 -56
  39. data/rbi/e_invoice_api/resources/inbox.rbi +21 -5
  40. data/rbi/e_invoice_api/resources/outbox.rbi +33 -6
  41. data/rbi/e_invoice_api/resources/validate.rbi +3 -0
  42. data/sig/e_invoice_api/models/document_create.rbs +5 -0
  43. data/sig/e_invoice_api/models/document_create_from_pdf_response.rbs +5 -0
  44. data/sig/e_invoice_api/models/document_create_params.rbs +13 -3
  45. data/sig/e_invoice_api/models/document_response.rbs +10 -0
  46. data/sig/e_invoice_api/models/document_type.rbs +8 -1
  47. data/sig/e_invoice_api/models/inbox_list_credit_notes_params.rbs +56 -1
  48. data/sig/e_invoice_api/models/inbox_list_invoices_params.rbs +56 -1
  49. data/sig/e_invoice_api/models/inbox_list_params.rbs +51 -4
  50. data/sig/e_invoice_api/models/lookup_retrieve_response.rbs +13 -3
  51. data/sig/e_invoice_api/models/me_retrieve_response.rbs +16 -10
  52. data/sig/e_invoice_api/models/outbox_list_draft_documents_params.rbs +71 -1
  53. data/sig/e_invoice_api/models/outbox_list_received_documents_params.rbs +56 -4
  54. data/sig/e_invoice_api/models/paginated_document_response.rbs +5 -0
  55. data/sig/e_invoice_api/resources/documents.rbs +2 -0
  56. data/sig/e_invoice_api/resources/inbox.rbs +6 -1
  57. data/sig/e_invoice_api/resources/outbox.rbs +8 -1
  58. data/sig/e_invoice_api/resources/validate.rbs +1 -0
  59. metadata +2 -2
@@ -11,6 +11,9 @@ module EInvoiceAPI
11
11
  sig { returns(String) }
12
12
  attr_accessor :id
13
13
 
14
+ sig { returns(Time) }
15
+ attr_accessor :created_at
16
+
14
17
  sig do
15
18
  returns(T.nilable(T::Array[EInvoiceAPI::DocumentResponse::Allowance]))
16
19
  end
@@ -70,6 +73,10 @@ module EInvoiceAPI
70
73
  sig { returns(T.nilable(String)) }
71
74
  attr_accessor :customer_name
72
75
 
76
+ # Customer Peppol ID
77
+ sig { returns(T.nilable(String)) }
78
+ attr_accessor :customer_peppol_id
79
+
73
80
  # Customer tax ID. For Belgium this is the VAT number. Must include the country
74
81
  # prefix
75
82
  sig { returns(T.nilable(String)) }
@@ -242,6 +249,7 @@ module EInvoiceAPI
242
249
  sig do
243
250
  params(
244
251
  id: String,
252
+ created_at: Time,
245
253
  allowances:
246
254
  T.nilable(
247
255
  T::Array[EInvoiceAPI::DocumentResponse::Allowance::OrHash]
@@ -262,6 +270,7 @@ module EInvoiceAPI
262
270
  customer_email: T.nilable(String),
263
271
  customer_id: T.nilable(String),
264
272
  customer_name: T.nilable(String),
273
+ customer_peppol_id: T.nilable(String),
265
274
  customer_tax_id: T.nilable(String),
266
275
  direction: EInvoiceAPI::DocumentDirection::OrSymbol,
267
276
  document_type: EInvoiceAPI::DocumentType::OrSymbol,
@@ -307,6 +316,7 @@ module EInvoiceAPI
307
316
  end
308
317
  def self.new(
309
318
  id:,
319
+ created_at:,
310
320
  allowances: nil,
311
321
  # The amount due for payment. Must be positive and rounded to maximum 2 decimals
312
322
  amount_due: nil,
@@ -331,6 +341,8 @@ module EInvoiceAPI
331
341
  customer_id: nil,
332
342
  # The company name of the customer/buyer
333
343
  customer_name: nil,
344
+ # Customer Peppol ID
345
+ customer_peppol_id: nil,
334
346
  # Customer tax ID. For Belgium this is the VAT number. Must include the country
335
347
  # prefix
336
348
  customer_tax_id: nil,
@@ -415,6 +427,7 @@ module EInvoiceAPI
415
427
  override.returns(
416
428
  {
417
429
  id: String,
430
+ created_at: Time,
418
431
  allowances:
419
432
  T.nilable(T::Array[EInvoiceAPI::DocumentResponse::Allowance]),
420
433
  amount_due: T.nilable(String),
@@ -430,6 +443,7 @@ module EInvoiceAPI
430
443
  customer_email: T.nilable(String),
431
444
  customer_id: T.nilable(String),
432
445
  customer_name: T.nilable(String),
446
+ customer_peppol_id: T.nilable(String),
433
447
  customer_tax_id: T.nilable(String),
434
448
  direction: EInvoiceAPI::DocumentDirection::TaggedSymbol,
435
449
  document_type: EInvoiceAPI::DocumentType::TaggedSymbol,
@@ -11,6 +11,10 @@ module EInvoiceAPI
11
11
  INVOICE = T.let(:INVOICE, EInvoiceAPI::DocumentType::TaggedSymbol)
12
12
  CREDIT_NOTE = T.let(:CREDIT_NOTE, EInvoiceAPI::DocumentType::TaggedSymbol)
13
13
  DEBIT_NOTE = T.let(:DEBIT_NOTE, EInvoiceAPI::DocumentType::TaggedSymbol)
14
+ SELFBILLING_INVOICE =
15
+ T.let(:SELFBILLING_INVOICE, EInvoiceAPI::DocumentType::TaggedSymbol)
16
+ SELFBILLING_CREDIT_NOTE =
17
+ T.let(:SELFBILLING_CREDIT_NOTE, EInvoiceAPI::DocumentType::TaggedSymbol)
14
18
 
15
19
  sig do
16
20
  override.returns(T::Array[EInvoiceAPI::DocumentType::TaggedSymbol])
@@ -28,10 +28,46 @@ module EInvoiceAPI
28
28
  sig { params(page_size: Integer).void }
29
29
  attr_writer :page_size
30
30
 
31
+ # Field to sort by
32
+ sig do
33
+ returns(
34
+ T.nilable(EInvoiceAPI::InboxListCreditNotesParams::SortBy::OrSymbol)
35
+ )
36
+ end
37
+ attr_reader :sort_by
38
+
39
+ sig do
40
+ params(
41
+ sort_by: EInvoiceAPI::InboxListCreditNotesParams::SortBy::OrSymbol
42
+ ).void
43
+ end
44
+ attr_writer :sort_by
45
+
46
+ # Sort direction (asc/desc)
47
+ sig do
48
+ returns(
49
+ T.nilable(
50
+ EInvoiceAPI::InboxListCreditNotesParams::SortOrder::OrSymbol
51
+ )
52
+ )
53
+ end
54
+ attr_reader :sort_order
55
+
56
+ sig do
57
+ params(
58
+ sort_order:
59
+ EInvoiceAPI::InboxListCreditNotesParams::SortOrder::OrSymbol
60
+ ).void
61
+ end
62
+ attr_writer :sort_order
63
+
31
64
  sig do
32
65
  params(
33
66
  page: Integer,
34
67
  page_size: Integer,
68
+ sort_by: EInvoiceAPI::InboxListCreditNotesParams::SortBy::OrSymbol,
69
+ sort_order:
70
+ EInvoiceAPI::InboxListCreditNotesParams::SortOrder::OrSymbol,
35
71
  request_options: EInvoiceAPI::RequestOptions::OrHash
36
72
  ).returns(T.attached_class)
37
73
  end
@@ -40,6 +76,10 @@ module EInvoiceAPI
40
76
  page: nil,
41
77
  # Number of items per page
42
78
  page_size: nil,
79
+ # Field to sort by
80
+ sort_by: nil,
81
+ # Sort direction (asc/desc)
82
+ sort_order: nil,
43
83
  request_options: {}
44
84
  )
45
85
  end
@@ -49,12 +89,104 @@ module EInvoiceAPI
49
89
  {
50
90
  page: Integer,
51
91
  page_size: Integer,
92
+ sort_by: EInvoiceAPI::InboxListCreditNotesParams::SortBy::OrSymbol,
93
+ sort_order:
94
+ EInvoiceAPI::InboxListCreditNotesParams::SortOrder::OrSymbol,
52
95
  request_options: EInvoiceAPI::RequestOptions
53
96
  }
54
97
  )
55
98
  end
56
99
  def to_hash
57
100
  end
101
+
102
+ # Field to sort by
103
+ module SortBy
104
+ extend EInvoiceAPI::Internal::Type::Enum
105
+
106
+ TaggedSymbol =
107
+ T.type_alias do
108
+ T.all(Symbol, EInvoiceAPI::InboxListCreditNotesParams::SortBy)
109
+ end
110
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
111
+
112
+ CREATED_AT =
113
+ T.let(
114
+ :created_at,
115
+ EInvoiceAPI::InboxListCreditNotesParams::SortBy::TaggedSymbol
116
+ )
117
+ INVOICE_DATE =
118
+ T.let(
119
+ :invoice_date,
120
+ EInvoiceAPI::InboxListCreditNotesParams::SortBy::TaggedSymbol
121
+ )
122
+ DUE_DATE =
123
+ T.let(
124
+ :due_date,
125
+ EInvoiceAPI::InboxListCreditNotesParams::SortBy::TaggedSymbol
126
+ )
127
+ INVOICE_TOTAL =
128
+ T.let(
129
+ :invoice_total,
130
+ EInvoiceAPI::InboxListCreditNotesParams::SortBy::TaggedSymbol
131
+ )
132
+ CUSTOMER_NAME =
133
+ T.let(
134
+ :customer_name,
135
+ EInvoiceAPI::InboxListCreditNotesParams::SortBy::TaggedSymbol
136
+ )
137
+ VENDOR_NAME =
138
+ T.let(
139
+ :vendor_name,
140
+ EInvoiceAPI::InboxListCreditNotesParams::SortBy::TaggedSymbol
141
+ )
142
+ INVOICE_ID =
143
+ T.let(
144
+ :invoice_id,
145
+ EInvoiceAPI::InboxListCreditNotesParams::SortBy::TaggedSymbol
146
+ )
147
+
148
+ sig do
149
+ override.returns(
150
+ T::Array[
151
+ EInvoiceAPI::InboxListCreditNotesParams::SortBy::TaggedSymbol
152
+ ]
153
+ )
154
+ end
155
+ def self.values
156
+ end
157
+ end
158
+
159
+ # Sort direction (asc/desc)
160
+ module SortOrder
161
+ extend EInvoiceAPI::Internal::Type::Enum
162
+
163
+ TaggedSymbol =
164
+ T.type_alias do
165
+ T.all(Symbol, EInvoiceAPI::InboxListCreditNotesParams::SortOrder)
166
+ end
167
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
168
+
169
+ ASC =
170
+ T.let(
171
+ :asc,
172
+ EInvoiceAPI::InboxListCreditNotesParams::SortOrder::TaggedSymbol
173
+ )
174
+ DESC =
175
+ T.let(
176
+ :desc,
177
+ EInvoiceAPI::InboxListCreditNotesParams::SortOrder::TaggedSymbol
178
+ )
179
+
180
+ sig do
181
+ override.returns(
182
+ T::Array[
183
+ EInvoiceAPI::InboxListCreditNotesParams::SortOrder::TaggedSymbol
184
+ ]
185
+ )
186
+ end
187
+ def self.values
188
+ end
189
+ end
58
190
  end
59
191
  end
60
192
  end
@@ -28,10 +28,42 @@ module EInvoiceAPI
28
28
  sig { params(page_size: Integer).void }
29
29
  attr_writer :page_size
30
30
 
31
+ # Field to sort by
32
+ sig do
33
+ returns(
34
+ T.nilable(EInvoiceAPI::InboxListInvoicesParams::SortBy::OrSymbol)
35
+ )
36
+ end
37
+ attr_reader :sort_by
38
+
39
+ sig do
40
+ params(
41
+ sort_by: EInvoiceAPI::InboxListInvoicesParams::SortBy::OrSymbol
42
+ ).void
43
+ end
44
+ attr_writer :sort_by
45
+
46
+ # Sort direction (asc/desc)
47
+ sig do
48
+ returns(
49
+ T.nilable(EInvoiceAPI::InboxListInvoicesParams::SortOrder::OrSymbol)
50
+ )
51
+ end
52
+ attr_reader :sort_order
53
+
54
+ sig do
55
+ params(
56
+ sort_order: EInvoiceAPI::InboxListInvoicesParams::SortOrder::OrSymbol
57
+ ).void
58
+ end
59
+ attr_writer :sort_order
60
+
31
61
  sig do
32
62
  params(
33
63
  page: Integer,
34
64
  page_size: Integer,
65
+ sort_by: EInvoiceAPI::InboxListInvoicesParams::SortBy::OrSymbol,
66
+ sort_order: EInvoiceAPI::InboxListInvoicesParams::SortOrder::OrSymbol,
35
67
  request_options: EInvoiceAPI::RequestOptions::OrHash
36
68
  ).returns(T.attached_class)
37
69
  end
@@ -40,6 +72,10 @@ module EInvoiceAPI
40
72
  page: nil,
41
73
  # Number of items per page
42
74
  page_size: nil,
75
+ # Field to sort by
76
+ sort_by: nil,
77
+ # Sort direction (asc/desc)
78
+ sort_order: nil,
43
79
  request_options: {}
44
80
  )
45
81
  end
@@ -49,12 +85,102 @@ module EInvoiceAPI
49
85
  {
50
86
  page: Integer,
51
87
  page_size: Integer,
88
+ sort_by: EInvoiceAPI::InboxListInvoicesParams::SortBy::OrSymbol,
89
+ sort_order:
90
+ EInvoiceAPI::InboxListInvoicesParams::SortOrder::OrSymbol,
52
91
  request_options: EInvoiceAPI::RequestOptions
53
92
  }
54
93
  )
55
94
  end
56
95
  def to_hash
57
96
  end
97
+
98
+ # Field to sort by
99
+ module SortBy
100
+ extend EInvoiceAPI::Internal::Type::Enum
101
+
102
+ TaggedSymbol =
103
+ T.type_alias do
104
+ T.all(Symbol, EInvoiceAPI::InboxListInvoicesParams::SortBy)
105
+ end
106
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
107
+
108
+ CREATED_AT =
109
+ T.let(
110
+ :created_at,
111
+ EInvoiceAPI::InboxListInvoicesParams::SortBy::TaggedSymbol
112
+ )
113
+ INVOICE_DATE =
114
+ T.let(
115
+ :invoice_date,
116
+ EInvoiceAPI::InboxListInvoicesParams::SortBy::TaggedSymbol
117
+ )
118
+ DUE_DATE =
119
+ T.let(
120
+ :due_date,
121
+ EInvoiceAPI::InboxListInvoicesParams::SortBy::TaggedSymbol
122
+ )
123
+ INVOICE_TOTAL =
124
+ T.let(
125
+ :invoice_total,
126
+ EInvoiceAPI::InboxListInvoicesParams::SortBy::TaggedSymbol
127
+ )
128
+ CUSTOMER_NAME =
129
+ T.let(
130
+ :customer_name,
131
+ EInvoiceAPI::InboxListInvoicesParams::SortBy::TaggedSymbol
132
+ )
133
+ VENDOR_NAME =
134
+ T.let(
135
+ :vendor_name,
136
+ EInvoiceAPI::InboxListInvoicesParams::SortBy::TaggedSymbol
137
+ )
138
+ INVOICE_ID =
139
+ T.let(
140
+ :invoice_id,
141
+ EInvoiceAPI::InboxListInvoicesParams::SortBy::TaggedSymbol
142
+ )
143
+
144
+ sig do
145
+ override.returns(
146
+ T::Array[EInvoiceAPI::InboxListInvoicesParams::SortBy::TaggedSymbol]
147
+ )
148
+ end
149
+ def self.values
150
+ end
151
+ end
152
+
153
+ # Sort direction (asc/desc)
154
+ module SortOrder
155
+ extend EInvoiceAPI::Internal::Type::Enum
156
+
157
+ TaggedSymbol =
158
+ T.type_alias do
159
+ T.all(Symbol, EInvoiceAPI::InboxListInvoicesParams::SortOrder)
160
+ end
161
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
162
+
163
+ ASC =
164
+ T.let(
165
+ :asc,
166
+ EInvoiceAPI::InboxListInvoicesParams::SortOrder::TaggedSymbol
167
+ )
168
+ DESC =
169
+ T.let(
170
+ :desc,
171
+ EInvoiceAPI::InboxListInvoicesParams::SortOrder::TaggedSymbol
172
+ )
173
+
174
+ sig do
175
+ override.returns(
176
+ T::Array[
177
+ EInvoiceAPI::InboxListInvoicesParams::SortOrder::TaggedSymbol
178
+ ]
179
+ )
180
+ end
181
+ def self.values
182
+ end
183
+ end
58
184
  end
59
185
  end
60
186
  end
@@ -37,15 +37,33 @@ module EInvoiceAPI
37
37
  sig { returns(T.nilable(String)) }
38
38
  attr_accessor :search
39
39
 
40
- # Filter by sender ID
40
+ # Filter by sender (vendor_name, vendor_email, vendor_tax_id, vendor_company_id)
41
41
  sig { returns(T.nilable(String)) }
42
42
  attr_accessor :sender
43
43
 
44
- # Filter by document state
45
- sig { returns(T.nilable(EInvoiceAPI::DocumentState::OrSymbol)) }
46
- attr_accessor :state
44
+ # Field to sort by
45
+ sig { returns(T.nilable(EInvoiceAPI::InboxListParams::SortBy::OrSymbol)) }
46
+ attr_reader :sort_by
47
47
 
48
- # Filter by document type
48
+ sig do
49
+ params(sort_by: EInvoiceAPI::InboxListParams::SortBy::OrSymbol).void
50
+ end
51
+ attr_writer :sort_by
52
+
53
+ # Sort direction (asc/desc)
54
+ sig do
55
+ returns(T.nilable(EInvoiceAPI::InboxListParams::SortOrder::OrSymbol))
56
+ end
57
+ attr_reader :sort_order
58
+
59
+ sig do
60
+ params(
61
+ sort_order: EInvoiceAPI::InboxListParams::SortOrder::OrSymbol
62
+ ).void
63
+ end
64
+ attr_writer :sort_order
65
+
66
+ # Filter by document type. If not provided, returns all types.
49
67
  sig { returns(T.nilable(EInvoiceAPI::DocumentType::OrSymbol)) }
50
68
  attr_accessor :type
51
69
 
@@ -57,7 +75,8 @@ module EInvoiceAPI
57
75
  page_size: Integer,
58
76
  search: T.nilable(String),
59
77
  sender: T.nilable(String),
60
- state: T.nilable(EInvoiceAPI::DocumentState::OrSymbol),
78
+ sort_by: EInvoiceAPI::InboxListParams::SortBy::OrSymbol,
79
+ sort_order: EInvoiceAPI::InboxListParams::SortOrder::OrSymbol,
61
80
  type: T.nilable(EInvoiceAPI::DocumentType::OrSymbol),
62
81
  request_options: EInvoiceAPI::RequestOptions::OrHash
63
82
  ).returns(T.attached_class)
@@ -73,11 +92,13 @@ module EInvoiceAPI
73
92
  page_size: nil,
74
93
  # Search in invoice number, seller/buyer names
75
94
  search: nil,
76
- # Filter by sender ID
95
+ # Filter by sender (vendor_name, vendor_email, vendor_tax_id, vendor_company_id)
77
96
  sender: nil,
78
- # Filter by document state
79
- state: nil,
80
- # Filter by document type
97
+ # Field to sort by
98
+ sort_by: nil,
99
+ # Sort direction (asc/desc)
100
+ sort_order: nil,
101
+ # Filter by document type. If not provided, returns all types.
81
102
  type: nil,
82
103
  request_options: {}
83
104
  )
@@ -92,7 +113,8 @@ module EInvoiceAPI
92
113
  page_size: Integer,
93
114
  search: T.nilable(String),
94
115
  sender: T.nilable(String),
95
- state: T.nilable(EInvoiceAPI::DocumentState::OrSymbol),
116
+ sort_by: EInvoiceAPI::InboxListParams::SortBy::OrSymbol,
117
+ sort_order: EInvoiceAPI::InboxListParams::SortOrder::OrSymbol,
96
118
  type: T.nilable(EInvoiceAPI::DocumentType::OrSymbol),
97
119
  request_options: EInvoiceAPI::RequestOptions
98
120
  }
@@ -100,6 +122,73 @@ module EInvoiceAPI
100
122
  end
101
123
  def to_hash
102
124
  end
125
+
126
+ # Field to sort by
127
+ module SortBy
128
+ extend EInvoiceAPI::Internal::Type::Enum
129
+
130
+ TaggedSymbol =
131
+ T.type_alias { T.all(Symbol, EInvoiceAPI::InboxListParams::SortBy) }
132
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
133
+
134
+ CREATED_AT =
135
+ T.let(:created_at, EInvoiceAPI::InboxListParams::SortBy::TaggedSymbol)
136
+ INVOICE_DATE =
137
+ T.let(
138
+ :invoice_date,
139
+ EInvoiceAPI::InboxListParams::SortBy::TaggedSymbol
140
+ )
141
+ DUE_DATE =
142
+ T.let(:due_date, EInvoiceAPI::InboxListParams::SortBy::TaggedSymbol)
143
+ INVOICE_TOTAL =
144
+ T.let(
145
+ :invoice_total,
146
+ EInvoiceAPI::InboxListParams::SortBy::TaggedSymbol
147
+ )
148
+ CUSTOMER_NAME =
149
+ T.let(
150
+ :customer_name,
151
+ EInvoiceAPI::InboxListParams::SortBy::TaggedSymbol
152
+ )
153
+ VENDOR_NAME =
154
+ T.let(
155
+ :vendor_name,
156
+ EInvoiceAPI::InboxListParams::SortBy::TaggedSymbol
157
+ )
158
+ INVOICE_ID =
159
+ T.let(:invoice_id, EInvoiceAPI::InboxListParams::SortBy::TaggedSymbol)
160
+
161
+ sig do
162
+ override.returns(
163
+ T::Array[EInvoiceAPI::InboxListParams::SortBy::TaggedSymbol]
164
+ )
165
+ end
166
+ def self.values
167
+ end
168
+ end
169
+
170
+ # Sort direction (asc/desc)
171
+ module SortOrder
172
+ extend EInvoiceAPI::Internal::Type::Enum
173
+
174
+ TaggedSymbol =
175
+ T.type_alias do
176
+ T.all(Symbol, EInvoiceAPI::InboxListParams::SortOrder)
177
+ end
178
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
179
+
180
+ ASC = T.let(:asc, EInvoiceAPI::InboxListParams::SortOrder::TaggedSymbol)
181
+ DESC =
182
+ T.let(:desc, EInvoiceAPI::InboxListParams::SortOrder::TaggedSymbol)
183
+
184
+ sig do
185
+ override.returns(
186
+ T::Array[EInvoiceAPI::InboxListParams::SortOrder::TaggedSymbol]
187
+ )
188
+ end
189
+ def self.values
190
+ end
191
+ end
103
192
  end
104
193
  end
105
194
  end
@@ -306,6 +306,14 @@ module EInvoiceAPI
306
306
  sig { returns(T.nilable(String)) }
307
307
  attr_accessor :error
308
308
 
309
+ # DNS lookup method used: 'naptr' (new spec) or 'busdox' (legacy)
310
+ sig { returns(T.nilable(String)) }
311
+ attr_accessor :lookup_method
312
+
313
+ # Hostname of the SMP (Service Metadata Publisher) discovered via DNS
314
+ sig { returns(T.nilable(String)) }
315
+ attr_accessor :smp_hostname
316
+
309
317
  # Information about the DNS lookup performed
310
318
  sig do
311
319
  params(
@@ -315,7 +323,9 @@ module EInvoiceAPI
315
323
  ],
316
324
  sml_hostname: String,
317
325
  status: String,
318
- error: T.nilable(String)
326
+ error: T.nilable(String),
327
+ lookup_method: T.nilable(String),
328
+ smp_hostname: T.nilable(String)
319
329
  ).returns(T.attached_class)
320
330
  end
321
331
  def self.new(
@@ -326,7 +336,11 @@ module EInvoiceAPI
326
336
  # Status of the DNS lookup: 'success', 'error', or 'pending'
327
337
  status:,
328
338
  # Error message if the DNS lookup failed
329
- error: nil
339
+ error: nil,
340
+ # DNS lookup method used: 'naptr' (new spec) or 'busdox' (legacy)
341
+ lookup_method: nil,
342
+ # Hostname of the SMP (Service Metadata Publisher) discovered via DNS
343
+ smp_hostname: nil
330
344
  )
331
345
  end
332
346
 
@@ -339,7 +353,9 @@ module EInvoiceAPI
339
353
  ],
340
354
  sml_hostname: String,
341
355
  status: String,
342
- error: T.nilable(String)
356
+ error: T.nilable(String),
357
+ lookup_method: T.nilable(String),
358
+ smp_hostname: T.nilable(String)
343
359
  }
344
360
  )
345
361
  end