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
|
@@ -7,6 +7,7 @@ module EInvoiceAPI
|
|
|
7
7
|
attachments: ::Array[EInvoiceAPI::DocumentAttachmentCreate]?,
|
|
8
8
|
billing_address: String?,
|
|
9
9
|
billing_address_recipient: String?,
|
|
10
|
+
buyer_reference: String?,
|
|
10
11
|
charges: ::Array[EInvoiceAPI::Charge]?,
|
|
11
12
|
currency: EInvoiceAPI::Models::currency_code,
|
|
12
13
|
customer_address: String?,
|
|
@@ -16,6 +17,7 @@ module EInvoiceAPI
|
|
|
16
17
|
customer_id: String?,
|
|
17
18
|
customer_name: String?,
|
|
18
19
|
customer_peppol_id: String?,
|
|
20
|
+
customer_phone: String?,
|
|
19
21
|
customer_tax_id: String?,
|
|
20
22
|
direction: EInvoiceAPI::Models::document_direction,
|
|
21
23
|
document_type: EInvoiceAPI::Models::document_type,
|
|
@@ -29,9 +31,13 @@ module EInvoiceAPI
|
|
|
29
31
|
note: String?,
|
|
30
32
|
payment_details: ::Array[EInvoiceAPI::PaymentDetailCreate]?,
|
|
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?,
|
|
@@ -42,9 +48,11 @@ module EInvoiceAPI
|
|
|
42
48
|
subtotal: String?,
|
|
43
49
|
success: bool,
|
|
44
50
|
tax_code: EInvoiceAPI::Models::DocumentCreateFromPdfResponse::tax_code,
|
|
51
|
+
tax_currency: String?,
|
|
45
52
|
tax_details: ::Array[EInvoiceAPI::Models::DocumentCreateFromPdfResponse::TaxDetail]?,
|
|
46
53
|
total_discount: String?,
|
|
47
54
|
total_tax: String?,
|
|
55
|
+
total_tax_in_tax_currency: String?,
|
|
48
56
|
ubl_document: String?,
|
|
49
57
|
vatex: EInvoiceAPI::Models::DocumentCreateFromPdfResponse::vatex?,
|
|
50
58
|
vatex_note: String?,
|
|
@@ -53,6 +61,7 @@ module EInvoiceAPI
|
|
|
53
61
|
vendor_company_id: String?,
|
|
54
62
|
vendor_email: String?,
|
|
55
63
|
vendor_name: String?,
|
|
64
|
+
vendor_phone: String?,
|
|
56
65
|
vendor_tax_id: String?
|
|
57
66
|
}
|
|
58
67
|
|
|
@@ -67,6 +76,8 @@ module EInvoiceAPI
|
|
|
67
76
|
|
|
68
77
|
attr_accessor billing_address_recipient: String?
|
|
69
78
|
|
|
79
|
+
attr_accessor buyer_reference: String?
|
|
80
|
+
|
|
70
81
|
attr_accessor charges: ::Array[EInvoiceAPI::Charge]?
|
|
71
82
|
|
|
72
83
|
attr_reader currency: EInvoiceAPI::Models::currency_code?
|
|
@@ -89,6 +100,8 @@ module EInvoiceAPI
|
|
|
89
100
|
|
|
90
101
|
attr_accessor customer_peppol_id: String?
|
|
91
102
|
|
|
103
|
+
attr_accessor customer_phone: String?
|
|
104
|
+
|
|
92
105
|
attr_accessor customer_tax_id: String?
|
|
93
106
|
|
|
94
107
|
attr_reader direction: EInvoiceAPI::Models::document_direction?
|
|
@@ -127,12 +140,20 @@ module EInvoiceAPI
|
|
|
127
140
|
|
|
128
141
|
attr_accessor payment_term: String?
|
|
129
142
|
|
|
143
|
+
attr_accessor preceding_invoice_date: Date?
|
|
144
|
+
|
|
145
|
+
attr_accessor preceding_invoice_id: String?
|
|
146
|
+
|
|
130
147
|
attr_accessor purchase_order: String?
|
|
131
148
|
|
|
132
149
|
attr_accessor remittance_address: String?
|
|
133
150
|
|
|
134
151
|
attr_accessor remittance_address_recipient: String?
|
|
135
152
|
|
|
153
|
+
attr_accessor rounding_amount: String?
|
|
154
|
+
|
|
155
|
+
attr_accessor sales_order: String?
|
|
156
|
+
|
|
136
157
|
attr_accessor service_address: String?
|
|
137
158
|
|
|
138
159
|
attr_accessor service_address_recipient: String?
|
|
@@ -163,12 +184,16 @@ module EInvoiceAPI
|
|
|
163
184
|
EInvoiceAPI::Models::DocumentCreateFromPdfResponse::tax_code
|
|
164
185
|
) -> EInvoiceAPI::Models::DocumentCreateFromPdfResponse::tax_code
|
|
165
186
|
|
|
187
|
+
attr_accessor tax_currency: String?
|
|
188
|
+
|
|
166
189
|
attr_accessor tax_details: ::Array[EInvoiceAPI::Models::DocumentCreateFromPdfResponse::TaxDetail]?
|
|
167
190
|
|
|
168
191
|
attr_accessor total_discount: String?
|
|
169
192
|
|
|
170
193
|
attr_accessor total_tax: String?
|
|
171
194
|
|
|
195
|
+
attr_accessor total_tax_in_tax_currency: String?
|
|
196
|
+
|
|
172
197
|
attr_accessor ubl_document: String?
|
|
173
198
|
|
|
174
199
|
attr_accessor vatex: EInvoiceAPI::Models::DocumentCreateFromPdfResponse::vatex?
|
|
@@ -185,6 +210,8 @@ module EInvoiceAPI
|
|
|
185
210
|
|
|
186
211
|
attr_accessor vendor_name: String?
|
|
187
212
|
|
|
213
|
+
attr_accessor vendor_phone: String?
|
|
214
|
+
|
|
188
215
|
attr_accessor vendor_tax_id: String?
|
|
189
216
|
|
|
190
217
|
def initialize: (
|
|
@@ -193,6 +220,7 @@ module EInvoiceAPI
|
|
|
193
220
|
?attachments: ::Array[EInvoiceAPI::DocumentAttachmentCreate]?,
|
|
194
221
|
?billing_address: String?,
|
|
195
222
|
?billing_address_recipient: String?,
|
|
223
|
+
?buyer_reference: String?,
|
|
196
224
|
?charges: ::Array[EInvoiceAPI::Charge]?,
|
|
197
225
|
?currency: EInvoiceAPI::Models::currency_code,
|
|
198
226
|
?customer_address: String?,
|
|
@@ -202,6 +230,7 @@ module EInvoiceAPI
|
|
|
202
230
|
?customer_id: String?,
|
|
203
231
|
?customer_name: String?,
|
|
204
232
|
?customer_peppol_id: String?,
|
|
233
|
+
?customer_phone: String?,
|
|
205
234
|
?customer_tax_id: String?,
|
|
206
235
|
?direction: EInvoiceAPI::Models::document_direction,
|
|
207
236
|
?document_type: EInvoiceAPI::Models::document_type,
|
|
@@ -215,9 +244,13 @@ module EInvoiceAPI
|
|
|
215
244
|
?note: String?,
|
|
216
245
|
?payment_details: ::Array[EInvoiceAPI::PaymentDetailCreate]?,
|
|
217
246
|
?payment_term: String?,
|
|
247
|
+
?preceding_invoice_date: Date?,
|
|
248
|
+
?preceding_invoice_id: String?,
|
|
218
249
|
?purchase_order: String?,
|
|
219
250
|
?remittance_address: String?,
|
|
220
251
|
?remittance_address_recipient: String?,
|
|
252
|
+
?rounding_amount: String?,
|
|
253
|
+
?sales_order: String?,
|
|
221
254
|
?service_address: String?,
|
|
222
255
|
?service_address_recipient: String?,
|
|
223
256
|
?service_end_date: Date?,
|
|
@@ -228,9 +261,11 @@ module EInvoiceAPI
|
|
|
228
261
|
?subtotal: String?,
|
|
229
262
|
?success: bool,
|
|
230
263
|
?tax_code: EInvoiceAPI::Models::DocumentCreateFromPdfResponse::tax_code,
|
|
264
|
+
?tax_currency: String?,
|
|
231
265
|
?tax_details: ::Array[EInvoiceAPI::Models::DocumentCreateFromPdfResponse::TaxDetail]?,
|
|
232
266
|
?total_discount: String?,
|
|
233
267
|
?total_tax: String?,
|
|
268
|
+
?total_tax_in_tax_currency: String?,
|
|
234
269
|
?ubl_document: String?,
|
|
235
270
|
?vatex: EInvoiceAPI::Models::DocumentCreateFromPdfResponse::vatex?,
|
|
236
271
|
?vatex_note: String?,
|
|
@@ -239,6 +274,7 @@ module EInvoiceAPI
|
|
|
239
274
|
?vendor_company_id: String?,
|
|
240
275
|
?vendor_email: String?,
|
|
241
276
|
?vendor_name: String?,
|
|
277
|
+
?vendor_phone: String?,
|
|
242
278
|
?vendor_tax_id: String?
|
|
243
279
|
) -> void
|
|
244
280
|
|
|
@@ -248,6 +284,7 @@ module EInvoiceAPI
|
|
|
248
284
|
attachments: ::Array[EInvoiceAPI::DocumentAttachmentCreate]?,
|
|
249
285
|
billing_address: String?,
|
|
250
286
|
billing_address_recipient: String?,
|
|
287
|
+
buyer_reference: String?,
|
|
251
288
|
charges: ::Array[EInvoiceAPI::Charge]?,
|
|
252
289
|
currency: EInvoiceAPI::Models::currency_code,
|
|
253
290
|
customer_address: String?,
|
|
@@ -257,6 +294,7 @@ module EInvoiceAPI
|
|
|
257
294
|
customer_id: String?,
|
|
258
295
|
customer_name: String?,
|
|
259
296
|
customer_peppol_id: String?,
|
|
297
|
+
customer_phone: String?,
|
|
260
298
|
customer_tax_id: String?,
|
|
261
299
|
direction: EInvoiceAPI::Models::document_direction,
|
|
262
300
|
document_type: EInvoiceAPI::Models::document_type,
|
|
@@ -270,9 +308,13 @@ module EInvoiceAPI
|
|
|
270
308
|
note: String?,
|
|
271
309
|
payment_details: ::Array[EInvoiceAPI::PaymentDetailCreate]?,
|
|
272
310
|
payment_term: String?,
|
|
311
|
+
preceding_invoice_date: Date?,
|
|
312
|
+
preceding_invoice_id: String?,
|
|
273
313
|
purchase_order: String?,
|
|
274
314
|
remittance_address: String?,
|
|
275
315
|
remittance_address_recipient: String?,
|
|
316
|
+
rounding_amount: String?,
|
|
317
|
+
sales_order: String?,
|
|
276
318
|
service_address: String?,
|
|
277
319
|
service_address_recipient: String?,
|
|
278
320
|
service_end_date: Date?,
|
|
@@ -283,9 +325,11 @@ module EInvoiceAPI
|
|
|
283
325
|
subtotal: String?,
|
|
284
326
|
success: bool,
|
|
285
327
|
tax_code: EInvoiceAPI::Models::DocumentCreateFromPdfResponse::tax_code,
|
|
328
|
+
tax_currency: String?,
|
|
286
329
|
tax_details: ::Array[EInvoiceAPI::Models::DocumentCreateFromPdfResponse::TaxDetail]?,
|
|
287
330
|
total_discount: String?,
|
|
288
331
|
total_tax: String?,
|
|
332
|
+
total_tax_in_tax_currency: String?,
|
|
289
333
|
ubl_document: String?,
|
|
290
334
|
vatex: EInvoiceAPI::Models::DocumentCreateFromPdfResponse::vatex?,
|
|
291
335
|
vatex_note: String?,
|
|
@@ -294,6 +338,7 @@ module EInvoiceAPI
|
|
|
294
338
|
vendor_company_id: String?,
|
|
295
339
|
vendor_email: String?,
|
|
296
340
|
vendor_name: String?,
|
|
341
|
+
vendor_phone: String?,
|
|
297
342
|
vendor_tax_id: String?
|
|
298
343
|
}
|
|
299
344
|
|
|
@@ -302,9 +347,11 @@ module EInvoiceAPI
|
|
|
302
347
|
allowances: ::Array[EInvoiceAPI::Allowance]?,
|
|
303
348
|
amount: String?,
|
|
304
349
|
charges: ::Array[EInvoiceAPI::Charge]?,
|
|
305
|
-
date:
|
|
350
|
+
date: Date?,
|
|
306
351
|
description: String?,
|
|
307
352
|
item_attributes: ::Array[EInvoiceAPI::Models::DocumentCreateFromPdfResponse::Item::ItemAttribute]?,
|
|
353
|
+
name: String?,
|
|
354
|
+
price_base_quantity: String,
|
|
308
355
|
product_code: String?,
|
|
309
356
|
quantity: String?,
|
|
310
357
|
tax: String?,
|
|
@@ -320,12 +367,18 @@ module EInvoiceAPI
|
|
|
320
367
|
|
|
321
368
|
attr_accessor charges: ::Array[EInvoiceAPI::Charge]?
|
|
322
369
|
|
|
323
|
-
attr_accessor date:
|
|
370
|
+
attr_accessor date: Date?
|
|
324
371
|
|
|
325
372
|
attr_accessor description: String?
|
|
326
373
|
|
|
327
374
|
attr_accessor item_attributes: ::Array[EInvoiceAPI::Models::DocumentCreateFromPdfResponse::Item::ItemAttribute]?
|
|
328
375
|
|
|
376
|
+
attr_accessor name: String?
|
|
377
|
+
|
|
378
|
+
attr_reader price_base_quantity: String?
|
|
379
|
+
|
|
380
|
+
def price_base_quantity=: (String) -> String
|
|
381
|
+
|
|
329
382
|
attr_accessor product_code: String?
|
|
330
383
|
|
|
331
384
|
attr_accessor quantity: String?
|
|
@@ -342,9 +395,11 @@ module EInvoiceAPI
|
|
|
342
395
|
?allowances: ::Array[EInvoiceAPI::Allowance]?,
|
|
343
396
|
?amount: String?,
|
|
344
397
|
?charges: ::Array[EInvoiceAPI::Charge]?,
|
|
345
|
-
?date:
|
|
398
|
+
?date: Date?,
|
|
346
399
|
?description: String?,
|
|
347
400
|
?item_attributes: ::Array[EInvoiceAPI::Models::DocumentCreateFromPdfResponse::Item::ItemAttribute]?,
|
|
401
|
+
?name: String?,
|
|
402
|
+
?price_base_quantity: String,
|
|
348
403
|
?product_code: String?,
|
|
349
404
|
?quantity: String?,
|
|
350
405
|
?tax: String?,
|
|
@@ -357,9 +412,11 @@ module EInvoiceAPI
|
|
|
357
412
|
allowances: ::Array[EInvoiceAPI::Allowance]?,
|
|
358
413
|
amount: String?,
|
|
359
414
|
charges: ::Array[EInvoiceAPI::Charge]?,
|
|
360
|
-
date:
|
|
415
|
+
date: Date?,
|
|
361
416
|
description: String?,
|
|
362
417
|
item_attributes: ::Array[EInvoiceAPI::Models::DocumentCreateFromPdfResponse::Item::ItemAttribute]?,
|
|
418
|
+
name: String?,
|
|
419
|
+
price_base_quantity: String,
|
|
363
420
|
product_code: String?,
|
|
364
421
|
quantity: String?,
|
|
365
422
|
tax: String?,
|
|
@@ -432,6 +489,7 @@ module EInvoiceAPI
|
|
|
432
489
|
| :"VATEX-EU-132-1O"
|
|
433
490
|
| :"VATEX-EU-132-1P"
|
|
434
491
|
| :"VATEX-EU-132-1Q"
|
|
492
|
+
| :"VATEX-EU-135-1"
|
|
435
493
|
| :"VATEX-EU-143"
|
|
436
494
|
| :"VATEX-EU-143-1A"
|
|
437
495
|
| :"VATEX-EU-143-1B"
|
|
@@ -463,6 +521,7 @@ module EInvoiceAPI
|
|
|
463
521
|
| :"VATEX-EU-151-1C"
|
|
464
522
|
| :"VATEX-EU-151-1D"
|
|
465
523
|
| :"VATEX-EU-151-1E"
|
|
524
|
+
| :"VATEX-EU-153"
|
|
466
525
|
| :"VATEX-EU-159"
|
|
467
526
|
| :"VATEX-EU-309"
|
|
468
527
|
| :"VATEX-EU-AE"
|
|
@@ -473,6 +532,30 @@ module EInvoiceAPI
|
|
|
473
532
|
| :"VATEX-EU-IC"
|
|
474
533
|
| :"VATEX-EU-O"
|
|
475
534
|
| :"VATEX-EU-J"
|
|
535
|
+
| :"VATEX-FR-298SEXDECIESA"
|
|
536
|
+
| :"VATEX-FR-AE"
|
|
537
|
+
| :"VATEX-FR-CGI261-1"
|
|
538
|
+
| :"VATEX-FR-CGI261-2"
|
|
539
|
+
| :"VATEX-FR-CGI261-3"
|
|
540
|
+
| :"VATEX-FR-CGI261-4"
|
|
541
|
+
| :"VATEX-FR-CGI261-5"
|
|
542
|
+
| :"VATEX-FR-CGI261-7"
|
|
543
|
+
| :"VATEX-FR-CGI261-8"
|
|
544
|
+
| :"VATEX-FR-CGI261A"
|
|
545
|
+
| :"VATEX-FR-CGI261B"
|
|
546
|
+
| :"VATEX-FR-CGI261C-1"
|
|
547
|
+
| :"VATEX-FR-CGI261C-2"
|
|
548
|
+
| :"VATEX-FR-CGI261C-3"
|
|
549
|
+
| :"VATEX-FR-CGI261D-1"
|
|
550
|
+
| :"VATEX-FR-CGI261D-1BIS"
|
|
551
|
+
| :"VATEX-FR-CGI261D-2"
|
|
552
|
+
| :"VATEX-FR-CGI261D-3"
|
|
553
|
+
| :"VATEX-FR-CGI261D-4"
|
|
554
|
+
| :"VATEX-FR-CGI261E-1"
|
|
555
|
+
| :"VATEX-FR-CGI261E-2"
|
|
556
|
+
| :"VATEX-FR-CGI275"
|
|
557
|
+
| :"VATEX-FR-CGI277A"
|
|
558
|
+
| :"VATEX-FR-CGI295"
|
|
476
559
|
| :"VATEX-FR-FRANCHISE"
|
|
477
560
|
| :"VATEX-FR-CNWVAT"
|
|
478
561
|
|
|
@@ -498,6 +581,7 @@ module EInvoiceAPI
|
|
|
498
581
|
VATEX_EU_132_1_O: :"VATEX-EU-132-1O"
|
|
499
582
|
VATEX_EU_132_1_P: :"VATEX-EU-132-1P"
|
|
500
583
|
VATEX_EU_132_1_Q: :"VATEX-EU-132-1Q"
|
|
584
|
+
VATEX_EU_135_1: :"VATEX-EU-135-1"
|
|
501
585
|
VATEX_EU_143: :"VATEX-EU-143"
|
|
502
586
|
VATEX_EU_143_1_A: :"VATEX-EU-143-1A"
|
|
503
587
|
VATEX_EU_143_1_B: :"VATEX-EU-143-1B"
|
|
@@ -529,6 +613,7 @@ module EInvoiceAPI
|
|
|
529
613
|
VATEX_EU_151_1_C: :"VATEX-EU-151-1C"
|
|
530
614
|
VATEX_EU_151_1_D: :"VATEX-EU-151-1D"
|
|
531
615
|
VATEX_EU_151_1_E: :"VATEX-EU-151-1E"
|
|
616
|
+
VATEX_EU_153: :"VATEX-EU-153"
|
|
532
617
|
VATEX_EU_159: :"VATEX-EU-159"
|
|
533
618
|
VATEX_EU_309: :"VATEX-EU-309"
|
|
534
619
|
VATEX_EU_AE: :"VATEX-EU-AE"
|
|
@@ -539,6 +624,30 @@ module EInvoiceAPI
|
|
|
539
624
|
VATEX_EU_IC: :"VATEX-EU-IC"
|
|
540
625
|
VATEX_EU_O: :"VATEX-EU-O"
|
|
541
626
|
VATEX_EU_J: :"VATEX-EU-J"
|
|
627
|
+
VATEX_FR_298_SEXDECIESA: :"VATEX-FR-298SEXDECIESA"
|
|
628
|
+
VATEX_FR_AE: :"VATEX-FR-AE"
|
|
629
|
+
VATEX_FR_CGI261_1: :"VATEX-FR-CGI261-1"
|
|
630
|
+
VATEX_FR_CGI261_2: :"VATEX-FR-CGI261-2"
|
|
631
|
+
VATEX_FR_CGI261_3: :"VATEX-FR-CGI261-3"
|
|
632
|
+
VATEX_FR_CGI261_4: :"VATEX-FR-CGI261-4"
|
|
633
|
+
VATEX_FR_CGI261_5: :"VATEX-FR-CGI261-5"
|
|
634
|
+
VATEX_FR_CGI261_7: :"VATEX-FR-CGI261-7"
|
|
635
|
+
VATEX_FR_CGI261_8: :"VATEX-FR-CGI261-8"
|
|
636
|
+
VATEX_FR_CGI261A: :"VATEX-FR-CGI261A"
|
|
637
|
+
VATEX_FR_CGI261B: :"VATEX-FR-CGI261B"
|
|
638
|
+
VATEX_FR_CGI261C_1: :"VATEX-FR-CGI261C-1"
|
|
639
|
+
VATEX_FR_CGI261C_2: :"VATEX-FR-CGI261C-2"
|
|
640
|
+
VATEX_FR_CGI261C_3: :"VATEX-FR-CGI261C-3"
|
|
641
|
+
VATEX_FR_CGI261D_1: :"VATEX-FR-CGI261D-1"
|
|
642
|
+
VATEX_FR_CGI261D_1_BIS: :"VATEX-FR-CGI261D-1BIS"
|
|
643
|
+
VATEX_FR_CGI261D_2: :"VATEX-FR-CGI261D-2"
|
|
644
|
+
VATEX_FR_CGI261D_3: :"VATEX-FR-CGI261D-3"
|
|
645
|
+
VATEX_FR_CGI261D_4: :"VATEX-FR-CGI261D-4"
|
|
646
|
+
VATEX_FR_CGI261E_1: :"VATEX-FR-CGI261E-1"
|
|
647
|
+
VATEX_FR_CGI261E_2: :"VATEX-FR-CGI261E-2"
|
|
648
|
+
VATEX_FR_CGI275: :"VATEX-FR-CGI275"
|
|
649
|
+
VATEX_FR_CGI277A: :"VATEX-FR-CGI277A"
|
|
650
|
+
VATEX_FR_CGI295: :"VATEX-FR-CGI295"
|
|
542
651
|
VATEX_FR_FRANCHISE: :"VATEX-FR-FRANCHISE"
|
|
543
652
|
VATEX_FR_CNWVAT: :"VATEX-FR-CNWVAT"
|
|
544
653
|
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
module EInvoiceAPI
|
|
2
|
+
module Models
|
|
3
|
+
type document_lifecycle_params =
|
|
4
|
+
{ document_id: String } & EInvoiceAPI::Internal::Type::request_parameters
|
|
5
|
+
|
|
6
|
+
class DocumentLifecycleParams < 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,151 @@
|
|
|
1
|
+
module EInvoiceAPI
|
|
2
|
+
module Models
|
|
3
|
+
type document_lifecycle_response =
|
|
4
|
+
{
|
|
5
|
+
document_id: String,
|
|
6
|
+
events: ::Array[EInvoiceAPI::Models::DocumentLifecycleResponse::Event]
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
class DocumentLifecycleResponse < EInvoiceAPI::Internal::Type::BaseModel
|
|
10
|
+
attr_accessor document_id: String
|
|
11
|
+
|
|
12
|
+
attr_accessor events: ::Array[EInvoiceAPI::Models::DocumentLifecycleResponse::Event]
|
|
13
|
+
|
|
14
|
+
def initialize: (
|
|
15
|
+
document_id: String,
|
|
16
|
+
events: ::Array[EInvoiceAPI::Models::DocumentLifecycleResponse::Event]
|
|
17
|
+
) -> void
|
|
18
|
+
|
|
19
|
+
def to_hash: -> {
|
|
20
|
+
document_id: String,
|
|
21
|
+
events: ::Array[EInvoiceAPI::Models::DocumentLifecycleResponse::Event]
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
type event =
|
|
25
|
+
{
|
|
26
|
+
canonical_status: EInvoiceAPI::Models::DocumentLifecycleResponse::Event::canonical_status?,
|
|
27
|
+
direction: EInvoiceAPI::Models::DocumentLifecycleResponse::Event::direction,
|
|
28
|
+
level: EInvoiceAPI::Models::DocumentLifecycleResponse::Event::level,
|
|
29
|
+
native_code: String?,
|
|
30
|
+
occurred_at: Time,
|
|
31
|
+
reason: String?,
|
|
32
|
+
reason_code: String?,
|
|
33
|
+
source: EInvoiceAPI::Models::DocumentLifecycleResponse::Event::source
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
class Event < EInvoiceAPI::Internal::Type::BaseModel
|
|
37
|
+
attr_accessor canonical_status: EInvoiceAPI::Models::DocumentLifecycleResponse::Event::canonical_status?
|
|
38
|
+
|
|
39
|
+
attr_accessor direction: EInvoiceAPI::Models::DocumentLifecycleResponse::Event::direction
|
|
40
|
+
|
|
41
|
+
attr_accessor level: EInvoiceAPI::Models::DocumentLifecycleResponse::Event::level
|
|
42
|
+
|
|
43
|
+
attr_accessor native_code: String?
|
|
44
|
+
|
|
45
|
+
attr_accessor occurred_at: Time
|
|
46
|
+
|
|
47
|
+
attr_accessor reason: String?
|
|
48
|
+
|
|
49
|
+
attr_accessor reason_code: String?
|
|
50
|
+
|
|
51
|
+
attr_accessor source: EInvoiceAPI::Models::DocumentLifecycleResponse::Event::source
|
|
52
|
+
|
|
53
|
+
def initialize: (
|
|
54
|
+
canonical_status: EInvoiceAPI::Models::DocumentLifecycleResponse::Event::canonical_status?,
|
|
55
|
+
direction: EInvoiceAPI::Models::DocumentLifecycleResponse::Event::direction,
|
|
56
|
+
level: EInvoiceAPI::Models::DocumentLifecycleResponse::Event::level,
|
|
57
|
+
native_code: String?,
|
|
58
|
+
occurred_at: Time,
|
|
59
|
+
reason: String?,
|
|
60
|
+
reason_code: String?,
|
|
61
|
+
source: EInvoiceAPI::Models::DocumentLifecycleResponse::Event::source
|
|
62
|
+
) -> void
|
|
63
|
+
|
|
64
|
+
def to_hash: -> {
|
|
65
|
+
canonical_status: EInvoiceAPI::Models::DocumentLifecycleResponse::Event::canonical_status?,
|
|
66
|
+
direction: EInvoiceAPI::Models::DocumentLifecycleResponse::Event::direction,
|
|
67
|
+
level: EInvoiceAPI::Models::DocumentLifecycleResponse::Event::level,
|
|
68
|
+
native_code: String?,
|
|
69
|
+
occurred_at: Time,
|
|
70
|
+
reason: String?,
|
|
71
|
+
reason_code: String?,
|
|
72
|
+
source: EInvoiceAPI::Models::DocumentLifecycleResponse::Event::source
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
type canonical_status =
|
|
76
|
+
:deposited
|
|
77
|
+
| :emitted
|
|
78
|
+
| :delivered
|
|
79
|
+
| :rejected
|
|
80
|
+
| :acknowledged
|
|
81
|
+
| :approved
|
|
82
|
+
| :partially_approved
|
|
83
|
+
| :disputed
|
|
84
|
+
| :on_hold
|
|
85
|
+
| :refused
|
|
86
|
+
| :payment_sent
|
|
87
|
+
| :paid
|
|
88
|
+
|
|
89
|
+
module CanonicalStatus
|
|
90
|
+
extend EInvoiceAPI::Internal::Type::Enum
|
|
91
|
+
|
|
92
|
+
DEPOSITED: :deposited
|
|
93
|
+
EMITTED: :emitted
|
|
94
|
+
DELIVERED: :delivered
|
|
95
|
+
REJECTED: :rejected
|
|
96
|
+
ACKNOWLEDGED: :acknowledged
|
|
97
|
+
APPROVED: :approved
|
|
98
|
+
PARTIALLY_APPROVED: :partially_approved
|
|
99
|
+
DISPUTED: :disputed
|
|
100
|
+
ON_HOLD: :on_hold
|
|
101
|
+
REFUSED: :refused
|
|
102
|
+
PAYMENT_SENT: :payment_sent
|
|
103
|
+
PAID: :paid
|
|
104
|
+
|
|
105
|
+
def self?.values: -> ::Array[EInvoiceAPI::Models::DocumentLifecycleResponse::Event::canonical_status]
|
|
106
|
+
end
|
|
107
|
+
|
|
108
|
+
type direction = :in | :out
|
|
109
|
+
|
|
110
|
+
module Direction
|
|
111
|
+
extend EInvoiceAPI::Internal::Type::Enum
|
|
112
|
+
|
|
113
|
+
IN: :in
|
|
114
|
+
OUT: :out
|
|
115
|
+
|
|
116
|
+
def self?.values: -> ::Array[EInvoiceAPI::Models::DocumentLifecycleResponse::Event::direction]
|
|
117
|
+
end
|
|
118
|
+
|
|
119
|
+
type level = :transport | :business
|
|
120
|
+
|
|
121
|
+
module Level
|
|
122
|
+
extend EInvoiceAPI::Internal::Type::Enum
|
|
123
|
+
|
|
124
|
+
TRANSPORT: :transport
|
|
125
|
+
BUSINESS: :business
|
|
126
|
+
|
|
127
|
+
def self?.values: -> ::Array[EInvoiceAPI::Models::DocumentLifecycleResponse::Event::level]
|
|
128
|
+
end
|
|
129
|
+
|
|
130
|
+
type source =
|
|
131
|
+
:"peppol:mlr"
|
|
132
|
+
| :"peppol:mls"
|
|
133
|
+
| :"peppol:imr"
|
|
134
|
+
| :"fr:superpdp"
|
|
135
|
+
| :local
|
|
136
|
+
|
|
137
|
+
module Source
|
|
138
|
+
extend EInvoiceAPI::Internal::Type::Enum
|
|
139
|
+
|
|
140
|
+
PEPPOL_MLR: :"peppol:mlr"
|
|
141
|
+
PEPPOL_MLS: :"peppol:mls"
|
|
142
|
+
PEPPOL_IMR: :"peppol:imr"
|
|
143
|
+
FR_SUPERPDP: :"fr:superpdp"
|
|
144
|
+
LOCAL: :local
|
|
145
|
+
|
|
146
|
+
def self?.values: -> ::Array[EInvoiceAPI::Models::DocumentLifecycleResponse::Event::source]
|
|
147
|
+
end
|
|
148
|
+
end
|
|
149
|
+
end
|
|
150
|
+
end
|
|
151
|
+
end
|