e-invoice-api 0.33.0 → 0.35.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 +4 -4
- data/CHANGELOG.md +31 -0
- data/LICENSE +201 -0
- data/README.md +18 -7
- data/SECURITY.md +6 -16
- data/lib/e_invoice_api/client.rb +16 -0
- data/lib/e_invoice_api/internal/transport/base_client.rb +43 -78
- data/lib/e_invoice_api/internal/transport/pooled_net_requester.rb +8 -8
- data/lib/e_invoice_api/internal/type/array_of.rb +12 -12
- data/lib/e_invoice_api/internal/type/base_model.rb +18 -18
- data/lib/e_invoice_api/internal/type/boolean.rb +6 -6
- data/lib/e_invoice_api/internal/type/converter.rb +24 -24
- data/lib/e_invoice_api/internal/type/enum.rb +6 -6
- data/lib/e_invoice_api/internal/type/file_input.rb +6 -6
- data/lib/e_invoice_api/internal/type/hash_of.rb +12 -12
- data/lib/e_invoice_api/internal/type/request_parameters.rb +1 -1
- data/lib/e_invoice_api/internal/type/union.rb +10 -10
- data/lib/e_invoice_api/internal/type/unknown.rb +6 -6
- data/lib/e_invoice_api/internal/util.rb +15 -57
- data/lib/e_invoice_api/models/conversion/document_create_from_pdf_task.rb +43 -0
- data/lib/e_invoice_api/models/conversion/pdf_create_params.rb +22 -0
- data/lib/e_invoice_api/models/conversion/pdf_result_params.rb +22 -0
- data/lib/e_invoice_api/models/conversion/pdf_retrieve_params.rb +22 -0
- data/lib/e_invoice_api/models/document_create.rb +203 -17
- data/lib/e_invoice_api/models/document_create_from_pdf_response.rb +153 -17
- data/lib/e_invoice_api/models/document_lifecycle_params.rb +20 -0
- data/lib/e_invoice_api/models/document_lifecycle_response.rb +134 -0
- data/lib/e_invoice_api/models/document_response.rb +161 -21
- data/lib/e_invoice_api/models/document_timeline_params.rb +20 -0
- data/lib/e_invoice_api/models/document_timeline_response.rb +71 -0
- data/lib/e_invoice_api/models/draft_list_params.rb +113 -0
- data/lib/e_invoice_api/models/inbound_email_response.rb +129 -0
- data/lib/e_invoice_api/models/mailbox_download_attachment_params.rb +26 -0
- data/lib/e_invoice_api/models/mailbox_list_params.rb +129 -0
- data/lib/e_invoice_api/models/mailbox_reprocess_params.rb +20 -0
- data/lib/e_invoice_api/models/mailbox_retrieve_params.rb +20 -0
- data/lib/e_invoice_api/models/me_retrieve_response.rb +8 -7
- data/lib/e_invoice_api/models/payment_detail_create.rb +8 -4
- data/lib/e_invoice_api/models/stats_retrieve_params.rb +55 -0
- data/lib/e_invoice_api/models/stats_retrieve_response.rb +141 -0
- data/lib/e_invoice_api/models/ubl_document_validation.rb +10 -1
- data/lib/e_invoice_api/models/unit_of_measure_code.rb +1349 -0
- data/lib/e_invoice_api/models/webhook_history_params.rb +20 -0
- data/lib/e_invoice_api/models/webhook_history_response.rb +17 -0
- data/lib/e_invoice_api/models/webhook_test_params.rb +37 -0
- data/lib/e_invoice_api/models/webhook_test_response.rb +35 -0
- data/lib/e_invoice_api/models.rb +24 -0
- data/lib/e_invoice_api/resources/conversion/pdf.rb +76 -0
- data/lib/e_invoice_api/resources/conversion.rb +18 -0
- data/lib/e_invoice_api/resources/documents/attachments.rb +11 -11
- data/lib/e_invoice_api/resources/documents/ubl.rb +4 -4
- data/lib/e_invoice_api/resources/documents.rb +130 -69
- data/lib/e_invoice_api/resources/drafts.rb +55 -0
- data/lib/e_invoice_api/resources/inbox.rb +20 -20
- data/lib/e_invoice_api/resources/lookup.rb +5 -5
- data/lib/e_invoice_api/resources/mailbox.rb +123 -0
- data/lib/e_invoice_api/resources/me.rb +1 -1
- data/lib/e_invoice_api/resources/outbox.rb +19 -19
- data/lib/e_invoice_api/resources/stats.rb +47 -0
- data/lib/e_invoice_api/resources/validate.rb +76 -56
- data/lib/e_invoice_api/resources/webhooks.rb +59 -14
- data/lib/e_invoice_api/version.rb +1 -1
- data/lib/e_invoice_api.rb +25 -1
- data/rbi/e_invoice_api/client.rbi +12 -0
- data/rbi/e_invoice_api/internal/transport/base_client.rbi +2 -10
- data/rbi/e_invoice_api/internal/util.rbi +0 -12
- data/rbi/e_invoice_api/models/conversion/document_create_from_pdf_task.rbi +108 -0
- data/rbi/e_invoice_api/models/conversion/pdf_create_params.rbi +43 -0
- data/rbi/e_invoice_api/models/conversion/pdf_result_params.rbi +40 -0
- data/rbi/e_invoice_api/models/conversion/pdf_retrieve_params.rbi +40 -0
- data/rbi/e_invoice_api/models/document_create.rbi +366 -15
- data/rbi/e_invoice_api/models/document_create_from_pdf_response.rbi +280 -15
- data/rbi/e_invoice_api/models/document_lifecycle_params.rbi +38 -0
- data/rbi/e_invoice_api/models/document_lifecycle_response.rbi +353 -0
- data/rbi/e_invoice_api/models/document_response.rbi +292 -19
- data/rbi/e_invoice_api/models/document_timeline_params.rbi +38 -0
- data/rbi/e_invoice_api/models/document_timeline_response.rbi +168 -0
- data/rbi/e_invoice_api/models/draft_list_params.rbi +194 -0
- data/rbi/e_invoice_api/models/inbound_email_response.rbi +189 -0
- data/rbi/e_invoice_api/models/mailbox_download_attachment_params.rbi +46 -0
- data/rbi/e_invoice_api/models/mailbox_list_params.rbi +218 -0
- data/rbi/e_invoice_api/models/mailbox_reprocess_params.rbi +41 -0
- data/rbi/e_invoice_api/models/mailbox_retrieve_params.rbi +41 -0
- data/rbi/e_invoice_api/models/me_retrieve_response.rbi +10 -8
- data/rbi/e_invoice_api/models/payment_detail_create.rbi +12 -4
- data/rbi/e_invoice_api/models/stats_retrieve_params.rbi +111 -0
- data/rbi/e_invoice_api/models/stats_retrieve_response.rbi +251 -0
- data/rbi/e_invoice_api/models/ubl_document_validation.rbi +11 -1
- data/rbi/e_invoice_api/models/unit_of_measure_code.rbi +1349 -0
- data/rbi/e_invoice_api/models/webhook_history_params.rbi +38 -0
- data/rbi/e_invoice_api/models/webhook_history_response.rbi +32 -0
- data/rbi/e_invoice_api/models/webhook_test_params.rbi +57 -0
- data/rbi/e_invoice_api/models/webhook_test_response.rbi +57 -0
- data/rbi/e_invoice_api/models.rbi +25 -0
- data/rbi/e_invoice_api/resources/conversion/pdf.rbi +44 -0
- data/rbi/e_invoice_api/resources/conversion.rbi +15 -0
- data/rbi/e_invoice_api/resources/documents.rbi +77 -5
- data/rbi/e_invoice_api/resources/drafts.rbi +55 -0
- data/rbi/e_invoice_api/resources/mailbox.rbi +93 -0
- data/rbi/e_invoice_api/resources/stats.rbi +38 -0
- data/rbi/e_invoice_api/resources/validate.rbi +52 -6
- data/rbi/e_invoice_api/resources/webhooks.rbi +29 -0
- data/sig/e_invoice_api/client.rbs +8 -0
- data/sig/e_invoice_api/internal/transport/base_client.rbs +1 -4
- data/sig/e_invoice_api/internal/util.rbs +0 -4
- data/sig/e_invoice_api/models/conversion/document_create_from_pdf_task.rbs +45 -0
- data/sig/e_invoice_api/models/conversion/pdf_create_params.rbs +26 -0
- data/sig/e_invoice_api/models/conversion/pdf_result_params.rbs +25 -0
- data/sig/e_invoice_api/models/conversion/pdf_retrieve_params.rbs +25 -0
- data/sig/e_invoice_api/models/document_create.rbs +139 -4
- data/sig/e_invoice_api/models/document_create_from_pdf_response.rbs +113 -4
- data/sig/e_invoice_api/models/document_lifecycle_params.rbs +23 -0
- data/sig/e_invoice_api/models/document_lifecycle_response.rbs +151 -0
- data/sig/e_invoice_api/models/document_response.rbs +113 -4
- data/sig/e_invoice_api/models/document_timeline_params.rbs +23 -0
- data/sig/e_invoice_api/models/document_timeline_response.rbs +84 -0
- data/sig/e_invoice_api/models/draft_list_params.rbs +112 -0
- data/sig/e_invoice_api/models/inbound_email_response.rbs +126 -0
- data/sig/e_invoice_api/models/mailbox_download_attachment_params.rbs +28 -0
- data/sig/e_invoice_api/models/mailbox_list_params.rbs +112 -0
- data/sig/e_invoice_api/models/mailbox_reprocess_params.rbs +24 -0
- data/sig/e_invoice_api/models/mailbox_retrieve_params.rbs +24 -0
- data/sig/e_invoice_api/models/stats_retrieve_params.rbs +48 -0
- data/sig/e_invoice_api/models/stats_retrieve_response.rbs +107 -0
- data/sig/e_invoice_api/models/unit_of_measure_code.rbs +2698 -0
- data/sig/e_invoice_api/models/webhook_history_params.rbs +23 -0
- data/sig/e_invoice_api/models/webhook_history_response.rbs +13 -0
- data/sig/e_invoice_api/models/webhook_test_params.rbs +32 -0
- data/sig/e_invoice_api/models/webhook_test_response.rbs +30 -0
- data/sig/e_invoice_api/models.rbs +24 -0
- data/sig/e_invoice_api/resources/conversion/pdf.rbs +24 -0
- data/sig/e_invoice_api/resources/conversion.rbs +9 -0
- data/sig/e_invoice_api/resources/documents.rbs +19 -0
- data/sig/e_invoice_api/resources/drafts.rbs +20 -0
- data/sig/e_invoice_api/resources/mailbox.rbs +36 -0
- data/sig/e_invoice_api/resources/stats.rbs +14 -0
- data/sig/e_invoice_api/resources/validate.rbs +9 -0
- data/sig/e_invoice_api/resources/webhooks.rbs +12 -0
- metadata +102 -7
|
@@ -9,6 +9,7 @@ module EInvoiceAPI
|
|
|
9
9
|
attachments: ::Array[EInvoiceAPI::Documents::DocumentAttachment]?,
|
|
10
10
|
billing_address: String?,
|
|
11
11
|
billing_address_recipient: String?,
|
|
12
|
+
buyer_reference: String?,
|
|
12
13
|
charges: ::Array[EInvoiceAPI::DocumentResponse::Charge]?,
|
|
13
14
|
currency: EInvoiceAPI::Models::currency_code,
|
|
14
15
|
customer_address: String?,
|
|
@@ -18,6 +19,7 @@ module EInvoiceAPI
|
|
|
18
19
|
customer_id: String?,
|
|
19
20
|
customer_name: String?,
|
|
20
21
|
customer_peppol_id: String?,
|
|
22
|
+
customer_phone: String?,
|
|
21
23
|
customer_tax_id: String?,
|
|
22
24
|
direction: EInvoiceAPI::Models::document_direction,
|
|
23
25
|
document_type: EInvoiceAPI::Models::document_type,
|
|
@@ -29,9 +31,13 @@ module EInvoiceAPI
|
|
|
29
31
|
note: String?,
|
|
30
32
|
payment_details: ::Array[EInvoiceAPI::DocumentResponse::PaymentDetail]?,
|
|
31
33
|
payment_term: String?,
|
|
34
|
+
preceding_invoice_date: Date?,
|
|
35
|
+
preceding_invoice_id: String?,
|
|
32
36
|
purchase_order: String?,
|
|
33
37
|
remittance_address: String?,
|
|
34
38
|
remittance_address_recipient: String?,
|
|
39
|
+
rounding_amount: String?,
|
|
40
|
+
sales_order: String?,
|
|
35
41
|
service_address: String?,
|
|
36
42
|
service_address_recipient: String?,
|
|
37
43
|
service_end_date: Date?,
|
|
@@ -41,9 +47,11 @@ module EInvoiceAPI
|
|
|
41
47
|
state: EInvoiceAPI::Models::document_state,
|
|
42
48
|
subtotal: String?,
|
|
43
49
|
tax_code: EInvoiceAPI::Models::DocumentResponse::tax_code,
|
|
50
|
+
tax_currency: String?,
|
|
44
51
|
tax_details: ::Array[EInvoiceAPI::DocumentResponse::TaxDetail]?,
|
|
45
52
|
total_discount: String?,
|
|
46
53
|
total_tax: String?,
|
|
54
|
+
total_tax_in_tax_currency: String?,
|
|
47
55
|
vatex: EInvoiceAPI::Models::DocumentResponse::vatex?,
|
|
48
56
|
vatex_note: String?,
|
|
49
57
|
vendor_address: String?,
|
|
@@ -51,6 +59,7 @@ module EInvoiceAPI
|
|
|
51
59
|
vendor_company_id: String?,
|
|
52
60
|
vendor_email: String?,
|
|
53
61
|
vendor_name: String?,
|
|
62
|
+
vendor_phone: String?,
|
|
54
63
|
vendor_tax_id: String?
|
|
55
64
|
}
|
|
56
65
|
|
|
@@ -69,6 +78,8 @@ module EInvoiceAPI
|
|
|
69
78
|
|
|
70
79
|
attr_accessor billing_address_recipient: String?
|
|
71
80
|
|
|
81
|
+
attr_accessor buyer_reference: String?
|
|
82
|
+
|
|
72
83
|
attr_accessor charges: ::Array[EInvoiceAPI::DocumentResponse::Charge]?
|
|
73
84
|
|
|
74
85
|
attr_reader currency: EInvoiceAPI::Models::currency_code?
|
|
@@ -91,6 +102,8 @@ module EInvoiceAPI
|
|
|
91
102
|
|
|
92
103
|
attr_accessor customer_peppol_id: String?
|
|
93
104
|
|
|
105
|
+
attr_accessor customer_phone: String?
|
|
106
|
+
|
|
94
107
|
attr_accessor customer_tax_id: String?
|
|
95
108
|
|
|
96
109
|
attr_reader direction: EInvoiceAPI::Models::document_direction?
|
|
@@ -121,12 +134,20 @@ module EInvoiceAPI
|
|
|
121
134
|
|
|
122
135
|
attr_accessor payment_term: String?
|
|
123
136
|
|
|
137
|
+
attr_accessor preceding_invoice_date: Date?
|
|
138
|
+
|
|
139
|
+
attr_accessor preceding_invoice_id: String?
|
|
140
|
+
|
|
124
141
|
attr_accessor purchase_order: String?
|
|
125
142
|
|
|
126
143
|
attr_accessor remittance_address: String?
|
|
127
144
|
|
|
128
145
|
attr_accessor remittance_address_recipient: String?
|
|
129
146
|
|
|
147
|
+
attr_accessor rounding_amount: String?
|
|
148
|
+
|
|
149
|
+
attr_accessor sales_order: String?
|
|
150
|
+
|
|
130
151
|
attr_accessor service_address: String?
|
|
131
152
|
|
|
132
153
|
attr_accessor service_address_recipient: String?
|
|
@@ -153,12 +174,16 @@ module EInvoiceAPI
|
|
|
153
174
|
EInvoiceAPI::Models::DocumentResponse::tax_code
|
|
154
175
|
) -> EInvoiceAPI::Models::DocumentResponse::tax_code
|
|
155
176
|
|
|
177
|
+
attr_accessor tax_currency: String?
|
|
178
|
+
|
|
156
179
|
attr_accessor tax_details: ::Array[EInvoiceAPI::DocumentResponse::TaxDetail]?
|
|
157
180
|
|
|
158
181
|
attr_accessor total_discount: String?
|
|
159
182
|
|
|
160
183
|
attr_accessor total_tax: String?
|
|
161
184
|
|
|
185
|
+
attr_accessor total_tax_in_tax_currency: String?
|
|
186
|
+
|
|
162
187
|
attr_accessor vatex: EInvoiceAPI::Models::DocumentResponse::vatex?
|
|
163
188
|
|
|
164
189
|
attr_accessor vatex_note: String?
|
|
@@ -173,6 +198,8 @@ module EInvoiceAPI
|
|
|
173
198
|
|
|
174
199
|
attr_accessor vendor_name: String?
|
|
175
200
|
|
|
201
|
+
attr_accessor vendor_phone: String?
|
|
202
|
+
|
|
176
203
|
attr_accessor vendor_tax_id: String?
|
|
177
204
|
|
|
178
205
|
def initialize: (
|
|
@@ -183,6 +210,7 @@ module EInvoiceAPI
|
|
|
183
210
|
?attachments: ::Array[EInvoiceAPI::Documents::DocumentAttachment]?,
|
|
184
211
|
?billing_address: String?,
|
|
185
212
|
?billing_address_recipient: String?,
|
|
213
|
+
?buyer_reference: String?,
|
|
186
214
|
?charges: ::Array[EInvoiceAPI::DocumentResponse::Charge]?,
|
|
187
215
|
?currency: EInvoiceAPI::Models::currency_code,
|
|
188
216
|
?customer_address: String?,
|
|
@@ -192,6 +220,7 @@ module EInvoiceAPI
|
|
|
192
220
|
?customer_id: String?,
|
|
193
221
|
?customer_name: String?,
|
|
194
222
|
?customer_peppol_id: String?,
|
|
223
|
+
?customer_phone: String?,
|
|
195
224
|
?customer_tax_id: String?,
|
|
196
225
|
?direction: EInvoiceAPI::Models::document_direction,
|
|
197
226
|
?document_type: EInvoiceAPI::Models::document_type,
|
|
@@ -203,9 +232,13 @@ module EInvoiceAPI
|
|
|
203
232
|
?note: String?,
|
|
204
233
|
?payment_details: ::Array[EInvoiceAPI::DocumentResponse::PaymentDetail]?,
|
|
205
234
|
?payment_term: String?,
|
|
235
|
+
?preceding_invoice_date: Date?,
|
|
236
|
+
?preceding_invoice_id: String?,
|
|
206
237
|
?purchase_order: String?,
|
|
207
238
|
?remittance_address: String?,
|
|
208
239
|
?remittance_address_recipient: String?,
|
|
240
|
+
?rounding_amount: String?,
|
|
241
|
+
?sales_order: String?,
|
|
209
242
|
?service_address: String?,
|
|
210
243
|
?service_address_recipient: String?,
|
|
211
244
|
?service_end_date: Date?,
|
|
@@ -215,9 +248,11 @@ module EInvoiceAPI
|
|
|
215
248
|
?state: EInvoiceAPI::Models::document_state,
|
|
216
249
|
?subtotal: String?,
|
|
217
250
|
?tax_code: EInvoiceAPI::Models::DocumentResponse::tax_code,
|
|
251
|
+
?tax_currency: String?,
|
|
218
252
|
?tax_details: ::Array[EInvoiceAPI::DocumentResponse::TaxDetail]?,
|
|
219
253
|
?total_discount: String?,
|
|
220
254
|
?total_tax: String?,
|
|
255
|
+
?total_tax_in_tax_currency: String?,
|
|
221
256
|
?vatex: EInvoiceAPI::Models::DocumentResponse::vatex?,
|
|
222
257
|
?vatex_note: String?,
|
|
223
258
|
?vendor_address: String?,
|
|
@@ -225,6 +260,7 @@ module EInvoiceAPI
|
|
|
225
260
|
?vendor_company_id: String?,
|
|
226
261
|
?vendor_email: String?,
|
|
227
262
|
?vendor_name: String?,
|
|
263
|
+
?vendor_phone: String?,
|
|
228
264
|
?vendor_tax_id: String?
|
|
229
265
|
) -> void
|
|
230
266
|
|
|
@@ -236,6 +272,7 @@ module EInvoiceAPI
|
|
|
236
272
|
attachments: ::Array[EInvoiceAPI::Documents::DocumentAttachment]?,
|
|
237
273
|
billing_address: String?,
|
|
238
274
|
billing_address_recipient: String?,
|
|
275
|
+
buyer_reference: String?,
|
|
239
276
|
charges: ::Array[EInvoiceAPI::DocumentResponse::Charge]?,
|
|
240
277
|
currency: EInvoiceAPI::Models::currency_code,
|
|
241
278
|
customer_address: String?,
|
|
@@ -245,6 +282,7 @@ module EInvoiceAPI
|
|
|
245
282
|
customer_id: String?,
|
|
246
283
|
customer_name: String?,
|
|
247
284
|
customer_peppol_id: String?,
|
|
285
|
+
customer_phone: String?,
|
|
248
286
|
customer_tax_id: String?,
|
|
249
287
|
direction: EInvoiceAPI::Models::document_direction,
|
|
250
288
|
document_type: EInvoiceAPI::Models::document_type,
|
|
@@ -256,9 +294,13 @@ module EInvoiceAPI
|
|
|
256
294
|
note: String?,
|
|
257
295
|
payment_details: ::Array[EInvoiceAPI::DocumentResponse::PaymentDetail]?,
|
|
258
296
|
payment_term: String?,
|
|
297
|
+
preceding_invoice_date: Date?,
|
|
298
|
+
preceding_invoice_id: String?,
|
|
259
299
|
purchase_order: String?,
|
|
260
300
|
remittance_address: String?,
|
|
261
301
|
remittance_address_recipient: String?,
|
|
302
|
+
rounding_amount: String?,
|
|
303
|
+
sales_order: String?,
|
|
262
304
|
service_address: String?,
|
|
263
305
|
service_address_recipient: String?,
|
|
264
306
|
service_end_date: Date?,
|
|
@@ -268,9 +310,11 @@ module EInvoiceAPI
|
|
|
268
310
|
state: EInvoiceAPI::Models::document_state,
|
|
269
311
|
subtotal: String?,
|
|
270
312
|
tax_code: EInvoiceAPI::Models::DocumentResponse::tax_code,
|
|
313
|
+
tax_currency: String?,
|
|
271
314
|
tax_details: ::Array[EInvoiceAPI::DocumentResponse::TaxDetail]?,
|
|
272
315
|
total_discount: String?,
|
|
273
316
|
total_tax: String?,
|
|
317
|
+
total_tax_in_tax_currency: String?,
|
|
274
318
|
vatex: EInvoiceAPI::Models::DocumentResponse::vatex?,
|
|
275
319
|
vatex_note: String?,
|
|
276
320
|
vendor_address: String?,
|
|
@@ -278,6 +322,7 @@ module EInvoiceAPI
|
|
|
278
322
|
vendor_company_id: String?,
|
|
279
323
|
vendor_email: String?,
|
|
280
324
|
vendor_name: String?,
|
|
325
|
+
vendor_phone: String?,
|
|
281
326
|
vendor_tax_id: String?
|
|
282
327
|
}
|
|
283
328
|
|
|
@@ -834,9 +879,11 @@ module EInvoiceAPI
|
|
|
834
879
|
allowances: ::Array[EInvoiceAPI::Allowance]?,
|
|
835
880
|
amount: String?,
|
|
836
881
|
charges: ::Array[EInvoiceAPI::Charge]?,
|
|
837
|
-
date:
|
|
882
|
+
date: Date?,
|
|
838
883
|
description: String?,
|
|
839
884
|
item_attributes: ::Array[EInvoiceAPI::DocumentResponse::Item::ItemAttribute]?,
|
|
885
|
+
name: String?,
|
|
886
|
+
price_base_quantity: String,
|
|
840
887
|
product_code: String?,
|
|
841
888
|
quantity: String?,
|
|
842
889
|
tax: String?,
|
|
@@ -852,12 +899,18 @@ module EInvoiceAPI
|
|
|
852
899
|
|
|
853
900
|
attr_accessor charges: ::Array[EInvoiceAPI::Charge]?
|
|
854
901
|
|
|
855
|
-
attr_accessor date:
|
|
902
|
+
attr_accessor date: Date?
|
|
856
903
|
|
|
857
904
|
attr_accessor description: String?
|
|
858
905
|
|
|
859
906
|
attr_accessor item_attributes: ::Array[EInvoiceAPI::DocumentResponse::Item::ItemAttribute]?
|
|
860
907
|
|
|
908
|
+
attr_accessor name: String?
|
|
909
|
+
|
|
910
|
+
attr_reader price_base_quantity: String?
|
|
911
|
+
|
|
912
|
+
def price_base_quantity=: (String) -> String
|
|
913
|
+
|
|
861
914
|
attr_accessor product_code: String?
|
|
862
915
|
|
|
863
916
|
attr_accessor quantity: String?
|
|
@@ -874,9 +927,11 @@ module EInvoiceAPI
|
|
|
874
927
|
?allowances: ::Array[EInvoiceAPI::Allowance]?,
|
|
875
928
|
?amount: String?,
|
|
876
929
|
?charges: ::Array[EInvoiceAPI::Charge]?,
|
|
877
|
-
?date:
|
|
930
|
+
?date: Date?,
|
|
878
931
|
?description: String?,
|
|
879
932
|
?item_attributes: ::Array[EInvoiceAPI::DocumentResponse::Item::ItemAttribute]?,
|
|
933
|
+
?name: String?,
|
|
934
|
+
?price_base_quantity: String,
|
|
880
935
|
?product_code: String?,
|
|
881
936
|
?quantity: String?,
|
|
882
937
|
?tax: String?,
|
|
@@ -889,9 +944,11 @@ module EInvoiceAPI
|
|
|
889
944
|
allowances: ::Array[EInvoiceAPI::Allowance]?,
|
|
890
945
|
amount: String?,
|
|
891
946
|
charges: ::Array[EInvoiceAPI::Charge]?,
|
|
892
|
-
date:
|
|
947
|
+
date: Date?,
|
|
893
948
|
description: String?,
|
|
894
949
|
item_attributes: ::Array[EInvoiceAPI::DocumentResponse::Item::ItemAttribute]?,
|
|
950
|
+
name: String?,
|
|
951
|
+
price_base_quantity: String,
|
|
895
952
|
product_code: String?,
|
|
896
953
|
quantity: String?,
|
|
897
954
|
tax: String?,
|
|
@@ -996,6 +1053,7 @@ module EInvoiceAPI
|
|
|
996
1053
|
| :"VATEX-EU-132-1O"
|
|
997
1054
|
| :"VATEX-EU-132-1P"
|
|
998
1055
|
| :"VATEX-EU-132-1Q"
|
|
1056
|
+
| :"VATEX-EU-135-1"
|
|
999
1057
|
| :"VATEX-EU-143"
|
|
1000
1058
|
| :"VATEX-EU-143-1A"
|
|
1001
1059
|
| :"VATEX-EU-143-1B"
|
|
@@ -1027,6 +1085,7 @@ module EInvoiceAPI
|
|
|
1027
1085
|
| :"VATEX-EU-151-1C"
|
|
1028
1086
|
| :"VATEX-EU-151-1D"
|
|
1029
1087
|
| :"VATEX-EU-151-1E"
|
|
1088
|
+
| :"VATEX-EU-153"
|
|
1030
1089
|
| :"VATEX-EU-159"
|
|
1031
1090
|
| :"VATEX-EU-309"
|
|
1032
1091
|
| :"VATEX-EU-AE"
|
|
@@ -1037,6 +1096,30 @@ module EInvoiceAPI
|
|
|
1037
1096
|
| :"VATEX-EU-IC"
|
|
1038
1097
|
| :"VATEX-EU-O"
|
|
1039
1098
|
| :"VATEX-EU-J"
|
|
1099
|
+
| :"VATEX-FR-298SEXDECIESA"
|
|
1100
|
+
| :"VATEX-FR-AE"
|
|
1101
|
+
| :"VATEX-FR-CGI261-1"
|
|
1102
|
+
| :"VATEX-FR-CGI261-2"
|
|
1103
|
+
| :"VATEX-FR-CGI261-3"
|
|
1104
|
+
| :"VATEX-FR-CGI261-4"
|
|
1105
|
+
| :"VATEX-FR-CGI261-5"
|
|
1106
|
+
| :"VATEX-FR-CGI261-7"
|
|
1107
|
+
| :"VATEX-FR-CGI261-8"
|
|
1108
|
+
| :"VATEX-FR-CGI261A"
|
|
1109
|
+
| :"VATEX-FR-CGI261B"
|
|
1110
|
+
| :"VATEX-FR-CGI261C-1"
|
|
1111
|
+
| :"VATEX-FR-CGI261C-2"
|
|
1112
|
+
| :"VATEX-FR-CGI261C-3"
|
|
1113
|
+
| :"VATEX-FR-CGI261D-1"
|
|
1114
|
+
| :"VATEX-FR-CGI261D-1BIS"
|
|
1115
|
+
| :"VATEX-FR-CGI261D-2"
|
|
1116
|
+
| :"VATEX-FR-CGI261D-3"
|
|
1117
|
+
| :"VATEX-FR-CGI261D-4"
|
|
1118
|
+
| :"VATEX-FR-CGI261E-1"
|
|
1119
|
+
| :"VATEX-FR-CGI261E-2"
|
|
1120
|
+
| :"VATEX-FR-CGI275"
|
|
1121
|
+
| :"VATEX-FR-CGI277A"
|
|
1122
|
+
| :"VATEX-FR-CGI295"
|
|
1040
1123
|
| :"VATEX-FR-FRANCHISE"
|
|
1041
1124
|
| :"VATEX-FR-CNWVAT"
|
|
1042
1125
|
|
|
@@ -1062,6 +1145,7 @@ module EInvoiceAPI
|
|
|
1062
1145
|
VATEX_EU_132_1_O: :"VATEX-EU-132-1O"
|
|
1063
1146
|
VATEX_EU_132_1_P: :"VATEX-EU-132-1P"
|
|
1064
1147
|
VATEX_EU_132_1_Q: :"VATEX-EU-132-1Q"
|
|
1148
|
+
VATEX_EU_135_1: :"VATEX-EU-135-1"
|
|
1065
1149
|
VATEX_EU_143: :"VATEX-EU-143"
|
|
1066
1150
|
VATEX_EU_143_1_A: :"VATEX-EU-143-1A"
|
|
1067
1151
|
VATEX_EU_143_1_B: :"VATEX-EU-143-1B"
|
|
@@ -1093,6 +1177,7 @@ module EInvoiceAPI
|
|
|
1093
1177
|
VATEX_EU_151_1_C: :"VATEX-EU-151-1C"
|
|
1094
1178
|
VATEX_EU_151_1_D: :"VATEX-EU-151-1D"
|
|
1095
1179
|
VATEX_EU_151_1_E: :"VATEX-EU-151-1E"
|
|
1180
|
+
VATEX_EU_153: :"VATEX-EU-153"
|
|
1096
1181
|
VATEX_EU_159: :"VATEX-EU-159"
|
|
1097
1182
|
VATEX_EU_309: :"VATEX-EU-309"
|
|
1098
1183
|
VATEX_EU_AE: :"VATEX-EU-AE"
|
|
@@ -1103,6 +1188,30 @@ module EInvoiceAPI
|
|
|
1103
1188
|
VATEX_EU_IC: :"VATEX-EU-IC"
|
|
1104
1189
|
VATEX_EU_O: :"VATEX-EU-O"
|
|
1105
1190
|
VATEX_EU_J: :"VATEX-EU-J"
|
|
1191
|
+
VATEX_FR_298_SEXDECIESA: :"VATEX-FR-298SEXDECIESA"
|
|
1192
|
+
VATEX_FR_AE: :"VATEX-FR-AE"
|
|
1193
|
+
VATEX_FR_CGI261_1: :"VATEX-FR-CGI261-1"
|
|
1194
|
+
VATEX_FR_CGI261_2: :"VATEX-FR-CGI261-2"
|
|
1195
|
+
VATEX_FR_CGI261_3: :"VATEX-FR-CGI261-3"
|
|
1196
|
+
VATEX_FR_CGI261_4: :"VATEX-FR-CGI261-4"
|
|
1197
|
+
VATEX_FR_CGI261_5: :"VATEX-FR-CGI261-5"
|
|
1198
|
+
VATEX_FR_CGI261_7: :"VATEX-FR-CGI261-7"
|
|
1199
|
+
VATEX_FR_CGI261_8: :"VATEX-FR-CGI261-8"
|
|
1200
|
+
VATEX_FR_CGI261A: :"VATEX-FR-CGI261A"
|
|
1201
|
+
VATEX_FR_CGI261B: :"VATEX-FR-CGI261B"
|
|
1202
|
+
VATEX_FR_CGI261C_1: :"VATEX-FR-CGI261C-1"
|
|
1203
|
+
VATEX_FR_CGI261C_2: :"VATEX-FR-CGI261C-2"
|
|
1204
|
+
VATEX_FR_CGI261C_3: :"VATEX-FR-CGI261C-3"
|
|
1205
|
+
VATEX_FR_CGI261D_1: :"VATEX-FR-CGI261D-1"
|
|
1206
|
+
VATEX_FR_CGI261D_1_BIS: :"VATEX-FR-CGI261D-1BIS"
|
|
1207
|
+
VATEX_FR_CGI261D_2: :"VATEX-FR-CGI261D-2"
|
|
1208
|
+
VATEX_FR_CGI261D_3: :"VATEX-FR-CGI261D-3"
|
|
1209
|
+
VATEX_FR_CGI261D_4: :"VATEX-FR-CGI261D-4"
|
|
1210
|
+
VATEX_FR_CGI261E_1: :"VATEX-FR-CGI261E-1"
|
|
1211
|
+
VATEX_FR_CGI261E_2: :"VATEX-FR-CGI261E-2"
|
|
1212
|
+
VATEX_FR_CGI275: :"VATEX-FR-CGI275"
|
|
1213
|
+
VATEX_FR_CGI277A: :"VATEX-FR-CGI277A"
|
|
1214
|
+
VATEX_FR_CGI295: :"VATEX-FR-CGI295"
|
|
1106
1215
|
VATEX_FR_FRANCHISE: :"VATEX-FR-FRANCHISE"
|
|
1107
1216
|
VATEX_FR_CNWVAT: :"VATEX-FR-CNWVAT"
|
|
1108
1217
|
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
module EInvoiceAPI
|
|
2
|
+
module Models
|
|
3
|
+
type document_timeline_params =
|
|
4
|
+
{ document_id: String } & EInvoiceAPI::Internal::Type::request_parameters
|
|
5
|
+
|
|
6
|
+
class DocumentTimelineParams < EInvoiceAPI::Internal::Type::BaseModel
|
|
7
|
+
extend EInvoiceAPI::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include EInvoiceAPI::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
attr_accessor document_id: String
|
|
11
|
+
|
|
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
|
+
}
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
module EInvoiceAPI
|
|
2
|
+
module Models
|
|
3
|
+
type document_timeline_response =
|
|
4
|
+
{
|
|
5
|
+
document_id: String,
|
|
6
|
+
events: ::Array[EInvoiceAPI::Models::DocumentTimelineResponse::Event]
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
class DocumentTimelineResponse < EInvoiceAPI::Internal::Type::BaseModel
|
|
10
|
+
attr_accessor document_id: String
|
|
11
|
+
|
|
12
|
+
attr_accessor events: ::Array[EInvoiceAPI::Models::DocumentTimelineResponse::Event]
|
|
13
|
+
|
|
14
|
+
def initialize: (
|
|
15
|
+
document_id: String,
|
|
16
|
+
events: ::Array[EInvoiceAPI::Models::DocumentTimelineResponse::Event]
|
|
17
|
+
) -> void
|
|
18
|
+
|
|
19
|
+
def to_hash: -> {
|
|
20
|
+
document_id: String,
|
|
21
|
+
events: ::Array[EInvoiceAPI::Models::DocumentTimelineResponse::Event]
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
type event =
|
|
25
|
+
{
|
|
26
|
+
event_type: EInvoiceAPI::Models::DocumentTimelineResponse::Event::event_type,
|
|
27
|
+
timestamp: Time,
|
|
28
|
+
id: String?,
|
|
29
|
+
details: ::Hash[Symbol, top]?
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
class Event < EInvoiceAPI::Internal::Type::BaseModel
|
|
33
|
+
attr_accessor event_type: EInvoiceAPI::Models::DocumentTimelineResponse::Event::event_type
|
|
34
|
+
|
|
35
|
+
attr_accessor timestamp: Time
|
|
36
|
+
|
|
37
|
+
attr_accessor id: String?
|
|
38
|
+
|
|
39
|
+
attr_accessor details: ::Hash[Symbol, top]?
|
|
40
|
+
|
|
41
|
+
def initialize: (
|
|
42
|
+
event_type: EInvoiceAPI::Models::DocumentTimelineResponse::Event::event_type,
|
|
43
|
+
timestamp: Time,
|
|
44
|
+
?id: String?,
|
|
45
|
+
?details: ::Hash[Symbol, top]?
|
|
46
|
+
) -> void
|
|
47
|
+
|
|
48
|
+
def to_hash: -> {
|
|
49
|
+
event_type: EInvoiceAPI::Models::DocumentTimelineResponse::Event::event_type,
|
|
50
|
+
timestamp: Time,
|
|
51
|
+
id: String?,
|
|
52
|
+
details: ::Hash[Symbol, top]?
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
type event_type =
|
|
56
|
+
:email_received
|
|
57
|
+
| :email_processed
|
|
58
|
+
| :document_created
|
|
59
|
+
| :send_attempted
|
|
60
|
+
| :send_failed
|
|
61
|
+
| :send_success
|
|
62
|
+
| :receive_success
|
|
63
|
+
| :mlr_received
|
|
64
|
+
| :imr_received
|
|
65
|
+
|
|
66
|
+
module EventType
|
|
67
|
+
extend EInvoiceAPI::Internal::Type::Enum
|
|
68
|
+
|
|
69
|
+
EMAIL_RECEIVED: :email_received
|
|
70
|
+
EMAIL_PROCESSED: :email_processed
|
|
71
|
+
DOCUMENT_CREATED: :document_created
|
|
72
|
+
SEND_ATTEMPTED: :send_attempted
|
|
73
|
+
SEND_FAILED: :send_failed
|
|
74
|
+
SEND_SUCCESS: :send_success
|
|
75
|
+
RECEIVE_SUCCESS: :receive_success
|
|
76
|
+
MLR_RECEIVED: :mlr_received
|
|
77
|
+
IMR_RECEIVED: :imr_received
|
|
78
|
+
|
|
79
|
+
def self?.values: -> ::Array[EInvoiceAPI::Models::DocumentTimelineResponse::Event::event_type]
|
|
80
|
+
end
|
|
81
|
+
end
|
|
82
|
+
end
|
|
83
|
+
end
|
|
84
|
+
end
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
module EInvoiceAPI
|
|
2
|
+
module Models
|
|
3
|
+
type draft_list_params =
|
|
4
|
+
{
|
|
5
|
+
date_from: Time?,
|
|
6
|
+
date_to: Time?,
|
|
7
|
+
page: Integer,
|
|
8
|
+
page_size: Integer,
|
|
9
|
+
search: String?,
|
|
10
|
+
sort_by: EInvoiceAPI::Models::DraftListParams::sort_by,
|
|
11
|
+
sort_order: EInvoiceAPI::Models::DraftListParams::sort_order,
|
|
12
|
+
state: EInvoiceAPI::Models::document_state?,
|
|
13
|
+
type: EInvoiceAPI::Models::document_type?
|
|
14
|
+
}
|
|
15
|
+
& EInvoiceAPI::Internal::Type::request_parameters
|
|
16
|
+
|
|
17
|
+
class DraftListParams < EInvoiceAPI::Internal::Type::BaseModel
|
|
18
|
+
extend EInvoiceAPI::Internal::Type::RequestParameters::Converter
|
|
19
|
+
include EInvoiceAPI::Internal::Type::RequestParameters
|
|
20
|
+
|
|
21
|
+
attr_accessor date_from: Time?
|
|
22
|
+
|
|
23
|
+
attr_accessor date_to: Time?
|
|
24
|
+
|
|
25
|
+
attr_reader page: Integer?
|
|
26
|
+
|
|
27
|
+
def page=: (Integer) -> Integer
|
|
28
|
+
|
|
29
|
+
attr_reader page_size: Integer?
|
|
30
|
+
|
|
31
|
+
def page_size=: (Integer) -> Integer
|
|
32
|
+
|
|
33
|
+
attr_accessor search: String?
|
|
34
|
+
|
|
35
|
+
attr_reader sort_by: EInvoiceAPI::Models::DraftListParams::sort_by?
|
|
36
|
+
|
|
37
|
+
def sort_by=: (
|
|
38
|
+
EInvoiceAPI::Models::DraftListParams::sort_by
|
|
39
|
+
) -> EInvoiceAPI::Models::DraftListParams::sort_by
|
|
40
|
+
|
|
41
|
+
attr_reader sort_order: EInvoiceAPI::Models::DraftListParams::sort_order?
|
|
42
|
+
|
|
43
|
+
def sort_order=: (
|
|
44
|
+
EInvoiceAPI::Models::DraftListParams::sort_order
|
|
45
|
+
) -> EInvoiceAPI::Models::DraftListParams::sort_order
|
|
46
|
+
|
|
47
|
+
attr_accessor state: EInvoiceAPI::Models::document_state?
|
|
48
|
+
|
|
49
|
+
attr_accessor type: EInvoiceAPI::Models::document_type?
|
|
50
|
+
|
|
51
|
+
def initialize: (
|
|
52
|
+
?date_from: Time?,
|
|
53
|
+
?date_to: Time?,
|
|
54
|
+
?page: Integer,
|
|
55
|
+
?page_size: Integer,
|
|
56
|
+
?search: String?,
|
|
57
|
+
?sort_by: EInvoiceAPI::Models::DraftListParams::sort_by,
|
|
58
|
+
?sort_order: EInvoiceAPI::Models::DraftListParams::sort_order,
|
|
59
|
+
?state: EInvoiceAPI::Models::document_state?,
|
|
60
|
+
?type: EInvoiceAPI::Models::document_type?,
|
|
61
|
+
?request_options: EInvoiceAPI::request_opts
|
|
62
|
+
) -> void
|
|
63
|
+
|
|
64
|
+
def to_hash: -> {
|
|
65
|
+
date_from: Time?,
|
|
66
|
+
date_to: Time?,
|
|
67
|
+
page: Integer,
|
|
68
|
+
page_size: Integer,
|
|
69
|
+
search: String?,
|
|
70
|
+
sort_by: EInvoiceAPI::Models::DraftListParams::sort_by,
|
|
71
|
+
sort_order: EInvoiceAPI::Models::DraftListParams::sort_order,
|
|
72
|
+
state: EInvoiceAPI::Models::document_state?,
|
|
73
|
+
type: EInvoiceAPI::Models::document_type?,
|
|
74
|
+
request_options: EInvoiceAPI::RequestOptions
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
type sort_by =
|
|
78
|
+
:created_at
|
|
79
|
+
| :invoice_date
|
|
80
|
+
| :due_date
|
|
81
|
+
| :invoice_total
|
|
82
|
+
| :customer_name
|
|
83
|
+
| :vendor_name
|
|
84
|
+
| :invoice_id
|
|
85
|
+
|
|
86
|
+
module SortBy
|
|
87
|
+
extend EInvoiceAPI::Internal::Type::Enum
|
|
88
|
+
|
|
89
|
+
CREATED_AT: :created_at
|
|
90
|
+
INVOICE_DATE: :invoice_date
|
|
91
|
+
DUE_DATE: :due_date
|
|
92
|
+
INVOICE_TOTAL: :invoice_total
|
|
93
|
+
CUSTOMER_NAME: :customer_name
|
|
94
|
+
VENDOR_NAME: :vendor_name
|
|
95
|
+
INVOICE_ID: :invoice_id
|
|
96
|
+
|
|
97
|
+
def self?.values: -> ::Array[EInvoiceAPI::Models::DraftListParams::sort_by]
|
|
98
|
+
end
|
|
99
|
+
|
|
100
|
+
type sort_order = :asc | :desc
|
|
101
|
+
|
|
102
|
+
module SortOrder
|
|
103
|
+
extend EInvoiceAPI::Internal::Type::Enum
|
|
104
|
+
|
|
105
|
+
ASC: :asc
|
|
106
|
+
DESC: :desc
|
|
107
|
+
|
|
108
|
+
def self?.values: -> ::Array[EInvoiceAPI::Models::DraftListParams::sort_order]
|
|
109
|
+
end
|
|
110
|
+
end
|
|
111
|
+
end
|
|
112
|
+
end
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
module EInvoiceAPI
|
|
2
|
+
module Models
|
|
3
|
+
type inbound_email_response =
|
|
4
|
+
{
|
|
5
|
+
id: String,
|
|
6
|
+
created_at: Time,
|
|
7
|
+
message_id: String,
|
|
8
|
+
sender_email: String,
|
|
9
|
+
attachment_count: Integer,
|
|
10
|
+
attachments: ::Array[EInvoiceAPI::InboundEmailResponse::Attachment],
|
|
11
|
+
bcc_addresses: String?,
|
|
12
|
+
cc_addresses: String?,
|
|
13
|
+
document_id: String?,
|
|
14
|
+
error_message: String?,
|
|
15
|
+
processed: bool,
|
|
16
|
+
processed_at: Time?,
|
|
17
|
+
received_at: Time?,
|
|
18
|
+
sender_name: String?,
|
|
19
|
+
subject: String?,
|
|
20
|
+
to_addresses: String?
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
class InboundEmailResponse < EInvoiceAPI::Internal::Type::BaseModel
|
|
24
|
+
attr_accessor id: String
|
|
25
|
+
|
|
26
|
+
attr_accessor created_at: Time
|
|
27
|
+
|
|
28
|
+
attr_accessor message_id: String
|
|
29
|
+
|
|
30
|
+
attr_accessor sender_email: String
|
|
31
|
+
|
|
32
|
+
attr_reader attachment_count: Integer?
|
|
33
|
+
|
|
34
|
+
def attachment_count=: (Integer) -> Integer
|
|
35
|
+
|
|
36
|
+
attr_reader attachments: ::Array[EInvoiceAPI::InboundEmailResponse::Attachment]?
|
|
37
|
+
|
|
38
|
+
def attachments=: (
|
|
39
|
+
::Array[EInvoiceAPI::InboundEmailResponse::Attachment]
|
|
40
|
+
) -> ::Array[EInvoiceAPI::InboundEmailResponse::Attachment]
|
|
41
|
+
|
|
42
|
+
attr_accessor bcc_addresses: String?
|
|
43
|
+
|
|
44
|
+
attr_accessor cc_addresses: String?
|
|
45
|
+
|
|
46
|
+
attr_accessor document_id: String?
|
|
47
|
+
|
|
48
|
+
attr_accessor error_message: String?
|
|
49
|
+
|
|
50
|
+
attr_reader processed: bool?
|
|
51
|
+
|
|
52
|
+
def processed=: (bool) -> bool
|
|
53
|
+
|
|
54
|
+
attr_accessor processed_at: Time?
|
|
55
|
+
|
|
56
|
+
attr_accessor received_at: Time?
|
|
57
|
+
|
|
58
|
+
attr_accessor sender_name: String?
|
|
59
|
+
|
|
60
|
+
attr_accessor subject: String?
|
|
61
|
+
|
|
62
|
+
attr_accessor to_addresses: String?
|
|
63
|
+
|
|
64
|
+
def initialize: (
|
|
65
|
+
id: String,
|
|
66
|
+
created_at: Time,
|
|
67
|
+
message_id: String,
|
|
68
|
+
sender_email: String,
|
|
69
|
+
?attachment_count: Integer,
|
|
70
|
+
?attachments: ::Array[EInvoiceAPI::InboundEmailResponse::Attachment],
|
|
71
|
+
?bcc_addresses: String?,
|
|
72
|
+
?cc_addresses: String?,
|
|
73
|
+
?document_id: String?,
|
|
74
|
+
?error_message: String?,
|
|
75
|
+
?processed: bool,
|
|
76
|
+
?processed_at: Time?,
|
|
77
|
+
?received_at: Time?,
|
|
78
|
+
?sender_name: String?,
|
|
79
|
+
?subject: String?,
|
|
80
|
+
?to_addresses: String?
|
|
81
|
+
) -> void
|
|
82
|
+
|
|
83
|
+
def to_hash: -> {
|
|
84
|
+
id: String,
|
|
85
|
+
created_at: Time,
|
|
86
|
+
message_id: String,
|
|
87
|
+
sender_email: String,
|
|
88
|
+
attachment_count: Integer,
|
|
89
|
+
attachments: ::Array[EInvoiceAPI::InboundEmailResponse::Attachment],
|
|
90
|
+
bcc_addresses: String?,
|
|
91
|
+
cc_addresses: String?,
|
|
92
|
+
document_id: String?,
|
|
93
|
+
error_message: String?,
|
|
94
|
+
processed: bool,
|
|
95
|
+
processed_at: Time?,
|
|
96
|
+
received_at: Time?,
|
|
97
|
+
sender_name: String?,
|
|
98
|
+
subject: String?,
|
|
99
|
+
to_addresses: String?
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
type attachment =
|
|
103
|
+
{ filename: String, content_type: String?, size: Integer? }
|
|
104
|
+
|
|
105
|
+
class Attachment < EInvoiceAPI::Internal::Type::BaseModel
|
|
106
|
+
attr_accessor filename: String
|
|
107
|
+
|
|
108
|
+
attr_accessor content_type: String?
|
|
109
|
+
|
|
110
|
+
attr_accessor size: Integer?
|
|
111
|
+
|
|
112
|
+
def initialize: (
|
|
113
|
+
filename: String,
|
|
114
|
+
?content_type: String?,
|
|
115
|
+
?size: Integer?
|
|
116
|
+
) -> void
|
|
117
|
+
|
|
118
|
+
def to_hash: -> {
|
|
119
|
+
filename: String,
|
|
120
|
+
content_type: String?,
|
|
121
|
+
size: Integer?
|
|
122
|
+
}
|
|
123
|
+
end
|
|
124
|
+
end
|
|
125
|
+
end
|
|
126
|
+
end
|