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,19 +11,9 @@ module EInvoiceAPI
11
11
  )
12
12
  end
13
13
 
14
- # Credit balance of the tenant
15
- sig { returns(Integer) }
16
- attr_accessor :credit_balance
17
-
18
14
  sig { returns(String) }
19
15
  attr_accessor :name
20
16
 
21
- # Plan of the tenant
22
- sig do
23
- returns(EInvoiceAPI::Models::MeRetrieveResponse::Plan::TaggedSymbol)
24
- end
25
- attr_accessor :plan
26
-
27
17
  # BCC recipient email to deliver documents
28
18
  sig { returns(T.nilable(String)) }
29
19
  attr_accessor :bcc_recipient_email
@@ -63,6 +53,13 @@ module EInvoiceAPI
63
53
  sig { returns(T.nilable(String)) }
64
54
  attr_accessor :company_zip
65
55
 
56
+ # Credit balance of the tenant
57
+ sig { returns(T.nilable(Integer)) }
58
+ attr_reader :credit_balance
59
+
60
+ sig { params(credit_balance: Integer).void }
61
+ attr_writer :credit_balance
62
+
66
63
  sig { returns(T.nilable(String)) }
67
64
  attr_accessor :description
68
65
 
@@ -74,6 +71,21 @@ module EInvoiceAPI
74
71
  sig { returns(T.nilable(T::Array[String])) }
75
72
  attr_accessor :peppol_ids
76
73
 
74
+ # Plan of the tenant
75
+ sig do
76
+ returns(
77
+ T.nilable(EInvoiceAPI::Models::MeRetrieveResponse::Plan::TaggedSymbol)
78
+ )
79
+ end
80
+ attr_reader :plan
81
+
82
+ sig do
83
+ params(
84
+ plan: EInvoiceAPI::Models::MeRetrieveResponse::Plan::OrSymbol
85
+ ).void
86
+ end
87
+ attr_writer :plan
88
+
77
89
  # Whether the tenant is registered on our SMP
78
90
  sig { returns(T.nilable(T::Boolean)) }
79
91
  attr_accessor :smp_registration
@@ -84,9 +96,7 @@ module EInvoiceAPI
84
96
 
85
97
  sig do
86
98
  params(
87
- credit_balance: Integer,
88
99
  name: String,
89
- plan: EInvoiceAPI::Models::MeRetrieveResponse::Plan::OrSymbol,
90
100
  bcc_recipient_email: T.nilable(String),
91
101
  company_address: T.nilable(String),
92
102
  company_city: T.nilable(String),
@@ -96,19 +106,17 @@ module EInvoiceAPI
96
106
  company_number: T.nilable(String),
97
107
  company_tax_id: T.nilable(String),
98
108
  company_zip: T.nilable(String),
109
+ credit_balance: Integer,
99
110
  description: T.nilable(String),
100
111
  ibans: T.nilable(T::Array[String]),
101
112
  peppol_ids: T.nilable(T::Array[String]),
113
+ plan: EInvoiceAPI::Models::MeRetrieveResponse::Plan::OrSymbol,
102
114
  smp_registration: T.nilable(T::Boolean),
103
115
  smp_registration_date: T.nilable(Time)
104
116
  ).returns(T.attached_class)
105
117
  end
106
118
  def self.new(
107
- # Credit balance of the tenant
108
- credit_balance:,
109
119
  name:,
110
- # Plan of the tenant
111
- plan:,
112
120
  # BCC recipient email to deliver documents
113
121
  bcc_recipient_email: nil,
114
122
  # Address of the company. Must be in the form of `Street Name Street Number`
@@ -130,11 +138,15 @@ module EInvoiceAPI
130
138
  company_tax_id: nil,
131
139
  # Zip code of the company
132
140
  company_zip: nil,
141
+ # Credit balance of the tenant
142
+ credit_balance: nil,
133
143
  description: nil,
134
144
  # IBANs of the tenant
135
145
  ibans: nil,
136
146
  # Peppol IDs of the tenant
137
147
  peppol_ids: nil,
148
+ # Plan of the tenant
149
+ plan: nil,
138
150
  # Whether the tenant is registered on our SMP
139
151
  smp_registration: nil,
140
152
  # Date when the tenant was registered on SMP
@@ -145,9 +157,7 @@ module EInvoiceAPI
145
157
  sig do
146
158
  override.returns(
147
159
  {
148
- credit_balance: Integer,
149
160
  name: String,
150
- plan: EInvoiceAPI::Models::MeRetrieveResponse::Plan::TaggedSymbol,
151
161
  bcc_recipient_email: T.nilable(String),
152
162
  company_address: T.nilable(String),
153
163
  company_city: T.nilable(String),
@@ -157,9 +167,11 @@ module EInvoiceAPI
157
167
  company_number: T.nilable(String),
158
168
  company_tax_id: T.nilable(String),
159
169
  company_zip: T.nilable(String),
170
+ credit_balance: Integer,
160
171
  description: T.nilable(String),
161
172
  ibans: T.nilable(T::Array[String]),
162
173
  peppol_ids: T.nilable(T::Array[String]),
174
+ plan: EInvoiceAPI::Models::MeRetrieveResponse::Plan::TaggedSymbol,
163
175
  smp_registration: T.nilable(T::Boolean),
164
176
  smp_registration_date: T.nilable(Time)
165
177
  }
@@ -28,10 +28,64 @@ module EInvoiceAPI
28
28
  sig { params(page_size: Integer).void }
29
29
  attr_writer :page_size
30
30
 
31
+ # Search in invoice number, seller/buyer names
32
+ sig { returns(T.nilable(String)) }
33
+ attr_accessor :search
34
+
35
+ # Field to sort by
36
+ sig do
37
+ returns(
38
+ T.nilable(
39
+ EInvoiceAPI::OutboxListDraftDocumentsParams::SortBy::OrSymbol
40
+ )
41
+ )
42
+ end
43
+ attr_reader :sort_by
44
+
45
+ sig do
46
+ params(
47
+ sort_by: EInvoiceAPI::OutboxListDraftDocumentsParams::SortBy::OrSymbol
48
+ ).void
49
+ end
50
+ attr_writer :sort_by
51
+
52
+ # Sort direction (asc/desc)
53
+ sig do
54
+ returns(
55
+ T.nilable(
56
+ EInvoiceAPI::OutboxListDraftDocumentsParams::SortOrder::OrSymbol
57
+ )
58
+ )
59
+ end
60
+ attr_reader :sort_order
61
+
62
+ sig do
63
+ params(
64
+ sort_order:
65
+ EInvoiceAPI::OutboxListDraftDocumentsParams::SortOrder::OrSymbol
66
+ ).void
67
+ end
68
+ attr_writer :sort_order
69
+
70
+ # Filter by document state
71
+ sig { returns(T.nilable(EInvoiceAPI::DocumentState::OrSymbol)) }
72
+ attr_accessor :state
73
+
74
+ # Filter by document type
75
+ sig { returns(T.nilable(EInvoiceAPI::DocumentType::OrSymbol)) }
76
+ attr_accessor :type
77
+
31
78
  sig do
32
79
  params(
33
80
  page: Integer,
34
81
  page_size: Integer,
82
+ search: T.nilable(String),
83
+ sort_by:
84
+ EInvoiceAPI::OutboxListDraftDocumentsParams::SortBy::OrSymbol,
85
+ sort_order:
86
+ EInvoiceAPI::OutboxListDraftDocumentsParams::SortOrder::OrSymbol,
87
+ state: T.nilable(EInvoiceAPI::DocumentState::OrSymbol),
88
+ type: T.nilable(EInvoiceAPI::DocumentType::OrSymbol),
35
89
  request_options: EInvoiceAPI::RequestOptions::OrHash
36
90
  ).returns(T.attached_class)
37
91
  end
@@ -40,6 +94,16 @@ module EInvoiceAPI
40
94
  page: nil,
41
95
  # Number of items per page
42
96
  page_size: nil,
97
+ # Search in invoice number, seller/buyer names
98
+ search: nil,
99
+ # Field to sort by
100
+ sort_by: nil,
101
+ # Sort direction (asc/desc)
102
+ sort_order: nil,
103
+ # Filter by document state
104
+ state: nil,
105
+ # Filter by document type
106
+ type: nil,
43
107
  request_options: {}
44
108
  )
45
109
  end
@@ -49,12 +113,111 @@ module EInvoiceAPI
49
113
  {
50
114
  page: Integer,
51
115
  page_size: Integer,
116
+ search: T.nilable(String),
117
+ sort_by:
118
+ EInvoiceAPI::OutboxListDraftDocumentsParams::SortBy::OrSymbol,
119
+ sort_order:
120
+ EInvoiceAPI::OutboxListDraftDocumentsParams::SortOrder::OrSymbol,
121
+ state: T.nilable(EInvoiceAPI::DocumentState::OrSymbol),
122
+ type: T.nilable(EInvoiceAPI::DocumentType::OrSymbol),
52
123
  request_options: EInvoiceAPI::RequestOptions
53
124
  }
54
125
  )
55
126
  end
56
127
  def to_hash
57
128
  end
129
+
130
+ # Field to sort by
131
+ module SortBy
132
+ extend EInvoiceAPI::Internal::Type::Enum
133
+
134
+ TaggedSymbol =
135
+ T.type_alias do
136
+ T.all(Symbol, EInvoiceAPI::OutboxListDraftDocumentsParams::SortBy)
137
+ end
138
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
139
+
140
+ CREATED_AT =
141
+ T.let(
142
+ :created_at,
143
+ EInvoiceAPI::OutboxListDraftDocumentsParams::SortBy::TaggedSymbol
144
+ )
145
+ INVOICE_DATE =
146
+ T.let(
147
+ :invoice_date,
148
+ EInvoiceAPI::OutboxListDraftDocumentsParams::SortBy::TaggedSymbol
149
+ )
150
+ DUE_DATE =
151
+ T.let(
152
+ :due_date,
153
+ EInvoiceAPI::OutboxListDraftDocumentsParams::SortBy::TaggedSymbol
154
+ )
155
+ INVOICE_TOTAL =
156
+ T.let(
157
+ :invoice_total,
158
+ EInvoiceAPI::OutboxListDraftDocumentsParams::SortBy::TaggedSymbol
159
+ )
160
+ CUSTOMER_NAME =
161
+ T.let(
162
+ :customer_name,
163
+ EInvoiceAPI::OutboxListDraftDocumentsParams::SortBy::TaggedSymbol
164
+ )
165
+ VENDOR_NAME =
166
+ T.let(
167
+ :vendor_name,
168
+ EInvoiceAPI::OutboxListDraftDocumentsParams::SortBy::TaggedSymbol
169
+ )
170
+ INVOICE_ID =
171
+ T.let(
172
+ :invoice_id,
173
+ EInvoiceAPI::OutboxListDraftDocumentsParams::SortBy::TaggedSymbol
174
+ )
175
+
176
+ sig do
177
+ override.returns(
178
+ T::Array[
179
+ EInvoiceAPI::OutboxListDraftDocumentsParams::SortBy::TaggedSymbol
180
+ ]
181
+ )
182
+ end
183
+ def self.values
184
+ end
185
+ end
186
+
187
+ # Sort direction (asc/desc)
188
+ module SortOrder
189
+ extend EInvoiceAPI::Internal::Type::Enum
190
+
191
+ TaggedSymbol =
192
+ T.type_alias do
193
+ T.all(
194
+ Symbol,
195
+ EInvoiceAPI::OutboxListDraftDocumentsParams::SortOrder
196
+ )
197
+ end
198
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
199
+
200
+ ASC =
201
+ T.let(
202
+ :asc,
203
+ EInvoiceAPI::OutboxListDraftDocumentsParams::SortOrder::TaggedSymbol
204
+ )
205
+ DESC =
206
+ T.let(
207
+ :desc,
208
+ EInvoiceAPI::OutboxListDraftDocumentsParams::SortOrder::TaggedSymbol
209
+ )
210
+
211
+ sig do
212
+ override.returns(
213
+ T::Array[
214
+ EInvoiceAPI::OutboxListDraftDocumentsParams::SortOrder::TaggedSymbol
215
+ ]
216
+ )
217
+ end
218
+ def self.values
219
+ end
220
+ end
58
221
  end
59
222
  end
60
223
  end
@@ -36,19 +36,56 @@ module EInvoiceAPI
36
36
  sig { params(page_size: Integer).void }
37
37
  attr_writer :page_size
38
38
 
39
+ # Filter by receiver (customer_name, customer_email, customer_tax_id,
40
+ # customer_company_id, customer_id)
41
+ sig { returns(T.nilable(String)) }
42
+ attr_accessor :receiver
43
+
39
44
  # Search in invoice number, seller/buyer names
40
45
  sig { returns(T.nilable(String)) }
41
46
  attr_accessor :search
42
47
 
43
- # Filter by sender ID
48
+ # (Deprecated) Filter by sender ID
44
49
  sig { returns(T.nilable(String)) }
45
50
  attr_accessor :sender
46
51
 
47
- # Filter by document state
48
- sig { returns(T.nilable(EInvoiceAPI::DocumentState::OrSymbol)) }
49
- attr_accessor :state
52
+ # Field to sort by
53
+ sig do
54
+ returns(
55
+ T.nilable(
56
+ EInvoiceAPI::OutboxListReceivedDocumentsParams::SortBy::OrSymbol
57
+ )
58
+ )
59
+ end
60
+ attr_reader :sort_by
61
+
62
+ sig do
63
+ params(
64
+ sort_by:
65
+ EInvoiceAPI::OutboxListReceivedDocumentsParams::SortBy::OrSymbol
66
+ ).void
67
+ end
68
+ attr_writer :sort_by
69
+
70
+ # Sort direction (asc/desc)
71
+ sig do
72
+ returns(
73
+ T.nilable(
74
+ EInvoiceAPI::OutboxListReceivedDocumentsParams::SortOrder::OrSymbol
75
+ )
76
+ )
77
+ end
78
+ attr_reader :sort_order
50
79
 
51
- # Filter by document type
80
+ sig do
81
+ params(
82
+ sort_order:
83
+ EInvoiceAPI::OutboxListReceivedDocumentsParams::SortOrder::OrSymbol
84
+ ).void
85
+ end
86
+ attr_writer :sort_order
87
+
88
+ # Filter by document type. If not provided, returns all types.
52
89
  sig { returns(T.nilable(EInvoiceAPI::DocumentType::OrSymbol)) }
53
90
  attr_accessor :type
54
91
 
@@ -58,9 +95,13 @@ module EInvoiceAPI
58
95
  date_to: T.nilable(Time),
59
96
  page: Integer,
60
97
  page_size: Integer,
98
+ receiver: T.nilable(String),
61
99
  search: T.nilable(String),
62
100
  sender: T.nilable(String),
63
- state: T.nilable(EInvoiceAPI::DocumentState::OrSymbol),
101
+ sort_by:
102
+ EInvoiceAPI::OutboxListReceivedDocumentsParams::SortBy::OrSymbol,
103
+ sort_order:
104
+ EInvoiceAPI::OutboxListReceivedDocumentsParams::SortOrder::OrSymbol,
64
105
  type: T.nilable(EInvoiceAPI::DocumentType::OrSymbol),
65
106
  request_options: EInvoiceAPI::RequestOptions::OrHash
66
107
  ).returns(T.attached_class)
@@ -74,13 +115,18 @@ module EInvoiceAPI
74
115
  page: nil,
75
116
  # Number of items per page
76
117
  page_size: nil,
118
+ # Filter by receiver (customer_name, customer_email, customer_tax_id,
119
+ # customer_company_id, customer_id)
120
+ receiver: nil,
77
121
  # Search in invoice number, seller/buyer names
78
122
  search: nil,
79
- # Filter by sender ID
123
+ # (Deprecated) Filter by sender ID
80
124
  sender: nil,
81
- # Filter by document state
82
- state: nil,
83
- # Filter by document type
125
+ # Field to sort by
126
+ sort_by: nil,
127
+ # Sort direction (asc/desc)
128
+ sort_order: nil,
129
+ # Filter by document type. If not provided, returns all types.
84
130
  type: nil,
85
131
  request_options: {}
86
132
  )
@@ -93,9 +139,13 @@ module EInvoiceAPI
93
139
  date_to: T.nilable(Time),
94
140
  page: Integer,
95
141
  page_size: Integer,
142
+ receiver: T.nilable(String),
96
143
  search: T.nilable(String),
97
144
  sender: T.nilable(String),
98
- state: T.nilable(EInvoiceAPI::DocumentState::OrSymbol),
145
+ sort_by:
146
+ EInvoiceAPI::OutboxListReceivedDocumentsParams::SortBy::OrSymbol,
147
+ sort_order:
148
+ EInvoiceAPI::OutboxListReceivedDocumentsParams::SortOrder::OrSymbol,
99
149
  type: T.nilable(EInvoiceAPI::DocumentType::OrSymbol),
100
150
  request_options: EInvoiceAPI::RequestOptions
101
151
  }
@@ -103,6 +153,101 @@ module EInvoiceAPI
103
153
  end
104
154
  def to_hash
105
155
  end
156
+
157
+ # Field to sort by
158
+ module SortBy
159
+ extend EInvoiceAPI::Internal::Type::Enum
160
+
161
+ TaggedSymbol =
162
+ T.type_alias do
163
+ T.all(
164
+ Symbol,
165
+ EInvoiceAPI::OutboxListReceivedDocumentsParams::SortBy
166
+ )
167
+ end
168
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
169
+
170
+ CREATED_AT =
171
+ T.let(
172
+ :created_at,
173
+ EInvoiceAPI::OutboxListReceivedDocumentsParams::SortBy::TaggedSymbol
174
+ )
175
+ INVOICE_DATE =
176
+ T.let(
177
+ :invoice_date,
178
+ EInvoiceAPI::OutboxListReceivedDocumentsParams::SortBy::TaggedSymbol
179
+ )
180
+ DUE_DATE =
181
+ T.let(
182
+ :due_date,
183
+ EInvoiceAPI::OutboxListReceivedDocumentsParams::SortBy::TaggedSymbol
184
+ )
185
+ INVOICE_TOTAL =
186
+ T.let(
187
+ :invoice_total,
188
+ EInvoiceAPI::OutboxListReceivedDocumentsParams::SortBy::TaggedSymbol
189
+ )
190
+ CUSTOMER_NAME =
191
+ T.let(
192
+ :customer_name,
193
+ EInvoiceAPI::OutboxListReceivedDocumentsParams::SortBy::TaggedSymbol
194
+ )
195
+ VENDOR_NAME =
196
+ T.let(
197
+ :vendor_name,
198
+ EInvoiceAPI::OutboxListReceivedDocumentsParams::SortBy::TaggedSymbol
199
+ )
200
+ INVOICE_ID =
201
+ T.let(
202
+ :invoice_id,
203
+ EInvoiceAPI::OutboxListReceivedDocumentsParams::SortBy::TaggedSymbol
204
+ )
205
+
206
+ sig do
207
+ override.returns(
208
+ T::Array[
209
+ EInvoiceAPI::OutboxListReceivedDocumentsParams::SortBy::TaggedSymbol
210
+ ]
211
+ )
212
+ end
213
+ def self.values
214
+ end
215
+ end
216
+
217
+ # Sort direction (asc/desc)
218
+ module SortOrder
219
+ extend EInvoiceAPI::Internal::Type::Enum
220
+
221
+ TaggedSymbol =
222
+ T.type_alias do
223
+ T.all(
224
+ Symbol,
225
+ EInvoiceAPI::OutboxListReceivedDocumentsParams::SortOrder
226
+ )
227
+ end
228
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
229
+
230
+ ASC =
231
+ T.let(
232
+ :asc,
233
+ EInvoiceAPI::OutboxListReceivedDocumentsParams::SortOrder::TaggedSymbol
234
+ )
235
+ DESC =
236
+ T.let(
237
+ :desc,
238
+ EInvoiceAPI::OutboxListReceivedDocumentsParams::SortOrder::TaggedSymbol
239
+ )
240
+
241
+ sig do
242
+ override.returns(
243
+ T::Array[
244
+ EInvoiceAPI::OutboxListReceivedDocumentsParams::SortOrder::TaggedSymbol
245
+ ]
246
+ )
247
+ end
248
+ def self.values
249
+ end
250
+ end
106
251
  end
107
252
  end
108
253
  end
@@ -11,6 +11,9 @@ module EInvoiceAPI
11
11
  )
12
12
  end
13
13
 
14
+ sig { returns(T::Boolean) }
15
+ attr_accessor :has_next_page
16
+
14
17
  sig { returns(T::Array[EInvoiceAPI::DocumentResponse]) }
15
18
  attr_accessor :items
16
19
 
@@ -28,6 +31,7 @@ module EInvoiceAPI
28
31
 
29
32
  sig do
30
33
  params(
34
+ has_next_page: T::Boolean,
31
35
  items: T::Array[EInvoiceAPI::DocumentResponse::OrHash],
32
36
  page: Integer,
33
37
  page_size: Integer,
@@ -35,12 +39,13 @@ module EInvoiceAPI
35
39
  total: Integer
36
40
  ).returns(T.attached_class)
37
41
  end
38
- def self.new(items:, page:, page_size:, pages:, total:)
42
+ def self.new(has_next_page:, items:, page:, page_size:, pages:, total:)
39
43
  end
40
44
 
41
45
  sig do
42
46
  override.returns(
43
47
  {
48
+ has_next_page: T::Boolean,
44
49
  items: T::Array[EInvoiceAPI::DocumentResponse],
45
50
  page: Integer,
46
51
  page_size: Integer,
@@ -37,8 +37,10 @@ module EInvoiceAPI
37
37
  def delete(attachment_id, document_id:, request_options: {})
38
38
  end
39
39
 
40
- # Add one or more attachments when creating a new invoice or credit note via POST
41
- # /api/documents/
40
+ # Add one or more attachments to an invoice. Be careful: the attachments ARE NOT
41
+ # ADDED to the UBL! They are only stored in our database and can be downloaded
42
+ # later. To add attachments to the UBL, you need to add the attachment(s) via POST
43
+ # /api/documents
42
44
  sig do
43
45
  params(
44
46
  document_id: String,