Skip to main content

fattureincloud_rs/models/
issued_document.rs

1/*
2 * Fatture in Cloud API v2 - API Reference
3 *
4 * Connect your software with Fatture in Cloud, the invoicing platform chosen by more than 500.000 businesses in Italy.   The Fatture in Cloud API is based on REST, and makes possible to interact with the user related data prior authorization via OAuth2 protocol.
5 *
6 * The version of the OpenAPI document: 2.0.32
7 * Contact: info@fattureincloud.it
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12
13#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
14pub struct IssuedDocument {
15    /// Issued document id
16    #[serde(rename = "id", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
17    pub id: Option<Option<i32>>,
18    #[serde(rename = "entity", skip_serializing_if = "Option::is_none")]
19    pub entity: Option<Box<models::Entity>>,
20    /// Issued document type
21    #[serde(rename = "type", skip_serializing_if = "Option::is_none")]
22    pub r#type: Option<Type>,
23    /// Issued document number [If not specified, next number is used]
24    #[serde(rename = "number", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
25    pub number: Option<Option<i32>>,
26    /// Issued document numeration [Not available if type=delivery_note]
27    #[serde(rename = "numeration", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
28    pub numeration: Option<Option<String>>,
29    /// Issued document date [defaults to today's date]
30    #[serde(rename = "date", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
31    pub date: Option<Option<String>>,
32    /// Issued document year
33    #[serde(rename = "year", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
34    pub year: Option<Option<i32>>,
35    #[serde(rename = "currency", skip_serializing_if = "Option::is_none")]
36    pub currency: Option<Box<models::Currency>>,
37    #[serde(rename = "language", skip_serializing_if = "Option::is_none")]
38    pub language: Option<Box<models::Language>>,
39    /// Issued document subject
40    #[serde(rename = "subject", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
41    pub subject: Option<Option<String>>,
42    /// Issued document visible subject
43    #[serde(rename = "visible_subject", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
44    pub visible_subject: Option<Option<String>>,
45    /// Issued document revenue center [or cost center if type=supplier_order].
46    #[serde(rename = "rc_center", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
47    pub rc_center: Option<Option<String>>,
48    /// Issued document extra notes
49    #[serde(rename = "notes", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
50    pub notes: Option<Option<String>>,
51    /// Issued document \"Rivalsa INPS\" percentual value
52    #[serde(rename = "rivalsa", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
53    pub rivalsa: Option<Option<f64>>,
54    /// Issued document \"Cassa previdenziale\" percentual value
55    #[serde(rename = "cassa", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
56    pub cassa: Option<Option<f64>>,
57    /// [Read Only] Issued document cassa amount.
58    #[serde(rename = "amount_cassa", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
59    pub amount_cassa: Option<Option<f64>>,
60    /// Issued document cassa taxable percentage
61    #[serde(rename = "cassa_taxable", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
62    pub cassa_taxable: Option<Option<f64>>,
63    /// [Can be set only if cassa_taxable is NULL] Issued document cassa taxable amount
64    #[serde(rename = "amount_cassa_taxable", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
65    pub amount_cassa_taxable: Option<Option<f64>>,
66    /// Issued document \"Cassa previdenziale 2\" percentual value
67    #[serde(rename = "cassa2", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
68    pub cassa2: Option<Option<f64>>,
69    /// [Read Only] Issued document cassa2 amount
70    #[serde(rename = "amount_cassa2", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
71    pub amount_cassa2: Option<Option<f64>>,
72    /// Issued document cassa2 taxable percentage
73    #[serde(rename = "cassa2_taxable", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
74    pub cassa2_taxable: Option<Option<f64>>,
75    /// [Can be set only if cassa2_taxable is NULL] Issued document cassa2 taxable amount
76    #[serde(rename = "amount_cassa2_taxable", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
77    pub amount_cassa2_taxable: Option<Option<f64>>,
78    /// Issued document global cassa taxable percentage
79    #[serde(rename = "global_cassa_taxable", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
80    pub global_cassa_taxable: Option<Option<f64>>,
81    /// [Can be set only if global_cassa_taxable is NULL] Issued document global cassa taxable amount
82    #[serde(rename = "amount_global_cassa_taxable", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
83    pub amount_global_cassa_taxable: Option<Option<f64>>,
84    /// Issued document withholding tax (ritenuta d'acconto) percentual value
85    #[serde(rename = "withholding_tax", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
86    pub withholding_tax: Option<Option<f64>>,
87    /// Issued document withholding tax taxable (imponibile) percentual value
88    #[serde(rename = "withholding_tax_taxable", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
89    pub withholding_tax_taxable: Option<Option<f64>>,
90    /// Issued document other withholding tax (altra ritenuta) percentual value
91    #[serde(rename = "other_withholding_tax", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
92    pub other_withholding_tax: Option<Option<f64>>,
93    /// Issued document stamp duty value [0 if not present]
94    #[serde(rename = "stamp_duty", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
95    pub stamp_duty: Option<Option<f64>>,
96    #[serde(rename = "payment_method", skip_serializing_if = "Option::is_none")]
97    pub payment_method: Option<Box<models::PaymentMethod>>,
98    /// Issued document uses split payment
99    #[serde(rename = "use_split_payment", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
100    pub use_split_payment: Option<Option<bool>>,
101    /// Issued document uses gross prices
102    #[serde(rename = "use_gross_prices", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
103    pub use_gross_prices: Option<Option<bool>>,
104    /// Issued document is an e-invoice.
105    #[serde(rename = "e_invoice", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
106    pub e_invoice: Option<Option<bool>>,
107    #[serde(rename = "ei_data", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
108    pub ei_data: Option<Option<Box<models::IssuedDocumentEiData>>>,
109    /// E-invoice cassa type
110    #[serde(rename = "ei_cassa_type", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
111    pub ei_cassa_type: Option<Option<String>>,
112    /// E-invoice cassa2 type
113    #[serde(rename = "ei_cassa2_type", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
114    pub ei_cassa2_type: Option<Option<String>>,
115    /// E-invoice withholding tax causal
116    #[serde(rename = "ei_withholding_tax_causal", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
117    pub ei_withholding_tax_causal: Option<Option<String>>,
118    /// E-invoice other withholding tax type
119    #[serde(rename = "ei_other_withholding_tax_type", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
120    pub ei_other_withholding_tax_type: Option<Option<String>>,
121    /// E-invoice other withholding tax causal
122    #[serde(rename = "ei_other_withholding_tax_causal", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
123    pub ei_other_withholding_tax_causal: Option<Option<String>>,
124    #[serde(rename = "items_list", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
125    pub items_list: Option<Option<Vec<models::IssuedDocumentItemsListItem>>>,
126    #[serde(rename = "payments_list", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
127    pub payments_list: Option<Option<Vec<models::IssuedDocumentPaymentsListItem>>>,
128    #[serde(rename = "template", skip_serializing_if = "Option::is_none")]
129    pub template: Option<Box<models::DocumentTemplate>>,
130    #[serde(rename = "delivery_note_template", skip_serializing_if = "Option::is_none")]
131    pub delivery_note_template: Option<Box<models::DocumentTemplate>>,
132    #[serde(rename = "acc_inv_template", skip_serializing_if = "Option::is_none")]
133    pub acc_inv_template: Option<Box<models::DocumentTemplate>>,
134    /// Issued document PDF horizontal margins
135    #[serde(rename = "h_margins", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
136    pub h_margins: Option<Option<i32>>,
137    /// Issued document PDF vertical margins
138    #[serde(rename = "v_margins", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
139    pub v_margins: Option<Option<i32>>,
140    /// Show the expiration dates of the payments on the document
141    #[serde(rename = "show_payments", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
142    pub show_payments: Option<Option<bool>>,
143    /// Show the payment method details on the document
144    #[serde(rename = "show_payment_method", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
145    pub show_payment_method: Option<Option<bool>>,
146    /// Show totals mode
147    #[serde(rename = "show_totals", skip_serializing_if = "Option::is_none")]
148    pub show_totals: Option<ShowTotals>,
149    /// Show notification button in the PDF
150    #[serde(rename = "show_notification_button", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
151    pub show_notification_button: Option<Option<bool>>,
152    /// Show ts pay button in the PDF
153    #[serde(rename = "show_tspay_button", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
154    pub show_tspay_button: Option<Option<bool>>,
155    /// Issued document has delivery note
156    #[serde(rename = "delivery_note", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
157    pub delivery_note: Option<Option<bool>>,
158    /// Issued document has an accompanying invoice
159    #[serde(rename = "accompanying_invoice", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
160    pub accompanying_invoice: Option<Option<bool>>,
161    /// Issued document attached delivery note number
162    #[serde(rename = "dn_number", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
163    pub dn_number: Option<Option<i32>>,
164    /// Issued document attached delivery note date
165    #[serde(rename = "dn_date", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
166    pub dn_date: Option<Option<String>>,
167    /// Issued document attached delivery note number of packages
168    #[serde(rename = "dn_ai_packages_number", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
169    pub dn_ai_packages_number: Option<Option<String>>,
170    /// Issued document attached delivery note package weight
171    #[serde(rename = "dn_ai_weight", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
172    pub dn_ai_weight: Option<Option<String>>,
173    /// Issued document attached delivery note causal
174    #[serde(rename = "dn_ai_causal", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
175    pub dn_ai_causal: Option<Option<String>>,
176    /// Issued document attached delivery note destination
177    #[serde(rename = "dn_ai_destination", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
178    pub dn_ai_destination: Option<Option<String>>,
179    /// Issued document attached delivery note transporter
180    #[serde(rename = "dn_ai_transporter", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
181    pub dn_ai_transporter: Option<Option<String>>,
182    /// Issued document attached delivery note notes
183    #[serde(rename = "dn_ai_notes", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
184    pub dn_ai_notes: Option<Option<String>>,
185    /// Issued document is marked
186    #[serde(rename = "is_marked", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
187    pub is_marked: Option<Option<bool>>,
188    /// [Read only] Issued document total net amount
189    #[serde(rename = "amount_net", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
190    pub amount_net: Option<Option<f64>>,
191    /// [Read Only] Issued document total vat amount
192    #[serde(rename = "amount_vat", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
193    pub amount_vat: Option<Option<f64>>,
194    /// [Read Only] Issued document total gross amount
195    #[serde(rename = "amount_gross", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
196    pub amount_gross: Option<Option<f64>>,
197    /// Issued document amount due discount
198    #[serde(rename = "amount_due_discount", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
199    pub amount_due_discount: Option<Option<f64>>,
200    /// [Read Only] Issued document rivalsa amount
201    #[serde(rename = "amount_rivalsa", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
202    pub amount_rivalsa: Option<Option<f64>>,
203    /// Issued document taxable rivalsa amount
204    #[serde(rename = "amount_rivalsa_taxable", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
205    pub amount_rivalsa_taxable: Option<Option<f64>>,
206    /// [Read Only] Issued document withholding tax amount (ritenuta d'acconto).
207    #[serde(rename = "amount_withholding_tax", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
208    pub amount_withholding_tax: Option<Option<f64>>,
209    /// Issued document taxable withholding tax amount
210    #[serde(rename = "amount_withholding_tax_taxable", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
211    pub amount_withholding_tax_taxable: Option<Option<f64>>,
212    /// [Read Only] Issued document other withholding tax amount (altra ritenuta)
213    #[serde(rename = "amount_other_withholding_tax", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
214    pub amount_other_withholding_tax: Option<Option<f64>>,
215    /// Issued document taxable other withholding tax amount
216    #[serde(rename = "amount_other_withholding_tax_taxable", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
217    pub amount_other_withholding_tax_taxable: Option<Option<f64>>,
218    /// Issued document taxable enasarco amount
219    #[serde(rename = "amount_enasarco_taxable", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
220    pub amount_enasarco_taxable: Option<Option<f64>>,
221    #[serde(rename = "extra_data", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
222    pub extra_data: Option<Option<Box<models::IssuedDocumentExtraData>>>,
223    /// Issued document seen date
224    #[serde(rename = "seen_date", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
225    pub seen_date: Option<Option<String>>,
226    /// Issued document date of the next not paid payment
227    #[serde(rename = "next_due_date", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
228    pub next_due_date: Option<Option<String>>,
229    /// [Temporary] [Read Only] Issued document url of the document PDF file
230    #[serde(rename = "url", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
231    pub url: Option<Option<String>>,
232    /// [Temporary] [Read Only] Issued document url of the attached delivery note PDF file
233    #[serde(rename = "dn_url", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
234    pub dn_url: Option<Option<String>>,
235    /// [Temporary] [Read Only] Issued document url of the accompanying invoice PDF file
236    #[serde(rename = "ai_url", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
237    pub ai_url: Option<Option<String>>,
238    /// [Temporary] [Read Only] Issued document url of the attached file
239    #[serde(rename = "attachment_url", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
240    pub attachment_url: Option<Option<String>>,
241    /// [Write Only] Issued document attachment token returned by POST /issued_documents/attachment
242    #[serde(rename = "attachment_token", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
243    pub attachment_token: Option<Option<String>>,
244    /// Issued document advanced raw attributes for e-invoices
245    #[serde(rename = "ei_raw", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
246    pub ei_raw: Option<Option<serde_json::Value>>,
247    /// [Read only] Status of the e-invoice.   * **attempt** - We are trying to send the invoice, please wait up to 2 hours   * **missing** - The invoice is missing   * **not_sent** - The invoice has yet to be sent   * **sent** - The invoice was sent   * **pending** - The checks for the digital signature and sending are in progress   * **processing** - The SDI is delivering the invoice to the customer   * **error** - An error occurred while handling the invoice, please try to resend it or contact support   * **discarded** - The invoice has been rejected by the SDI, so it must be corrected and re-sent   * **not_delivered** - The SDI was unable to deliver the invoice   * **accepted** - The customer accepted the invoice   * **rejected** - The customer rejected the invoice, so it must be corrected   * **no_response** - A response has not yet been received whithin the deadline, contact the customer to ascertain the status of the invoice   * **manual_accepted** - The customer accepted the invoice   * **manual_rejected** - The customer rejected the invoice 
248    #[serde(rename = "ei_status", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
249    pub ei_status: Option<Option<EiStatus>>,
250    /// Issued Document can't be edited
251    #[serde(rename = "locked", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
252    pub locked: Option<Option<bool>>,
253    /// Issued document creation date
254    #[serde(rename = "created_at", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
255    pub created_at: Option<Option<String>>,
256    /// Issued document last update date
257    #[serde(rename = "updated_at", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
258    pub updated_at: Option<Option<String>>,
259}
260
261impl IssuedDocument {
262    pub fn new() -> IssuedDocument {
263        IssuedDocument {
264            id: None,
265            entity: None,
266            r#type: None,
267            number: None,
268            numeration: None,
269            date: None,
270            year: None,
271            currency: None,
272            language: None,
273            subject: None,
274            visible_subject: None,
275            rc_center: None,
276            notes: None,
277            rivalsa: None,
278            cassa: None,
279            amount_cassa: None,
280            cassa_taxable: None,
281            amount_cassa_taxable: None,
282            cassa2: None,
283            amount_cassa2: None,
284            cassa2_taxable: None,
285            amount_cassa2_taxable: None,
286            global_cassa_taxable: None,
287            amount_global_cassa_taxable: None,
288            withholding_tax: None,
289            withholding_tax_taxable: None,
290            other_withholding_tax: None,
291            stamp_duty: None,
292            payment_method: None,
293            use_split_payment: None,
294            use_gross_prices: None,
295            e_invoice: None,
296            ei_data: None,
297            ei_cassa_type: None,
298            ei_cassa2_type: None,
299            ei_withholding_tax_causal: None,
300            ei_other_withholding_tax_type: None,
301            ei_other_withholding_tax_causal: None,
302            items_list: None,
303            payments_list: None,
304            template: None,
305            delivery_note_template: None,
306            acc_inv_template: None,
307            h_margins: None,
308            v_margins: None,
309            show_payments: None,
310            show_payment_method: None,
311            show_totals: None,
312            show_notification_button: None,
313            show_tspay_button: None,
314            delivery_note: None,
315            accompanying_invoice: None,
316            dn_number: None,
317            dn_date: None,
318            dn_ai_packages_number: None,
319            dn_ai_weight: None,
320            dn_ai_causal: None,
321            dn_ai_destination: None,
322            dn_ai_transporter: None,
323            dn_ai_notes: None,
324            is_marked: None,
325            amount_net: None,
326            amount_vat: None,
327            amount_gross: None,
328            amount_due_discount: None,
329            amount_rivalsa: None,
330            amount_rivalsa_taxable: None,
331            amount_withholding_tax: None,
332            amount_withholding_tax_taxable: None,
333            amount_other_withholding_tax: None,
334            amount_other_withholding_tax_taxable: None,
335            amount_enasarco_taxable: None,
336            extra_data: None,
337            seen_date: None,
338            next_due_date: None,
339            url: None,
340            dn_url: None,
341            ai_url: None,
342            attachment_url: None,
343            attachment_token: None,
344            ei_raw: None,
345            ei_status: None,
346            locked: None,
347            created_at: None,
348            updated_at: None,
349        }
350    }
351}
352/// Issued document type
353#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
354pub enum Type {
355    #[serde(rename = "invoice")]
356    Invoice,
357    #[serde(rename = "quote")]
358    Quote,
359    #[serde(rename = "proforma")]
360    Proforma,
361    #[serde(rename = "receipt")]
362    Receipt,
363    #[serde(rename = "delivery_note")]
364    DeliveryNote,
365    #[serde(rename = "credit_note")]
366    CreditNote,
367    #[serde(rename = "order")]
368    Order,
369    #[serde(rename = "work_report")]
370    WorkReport,
371    #[serde(rename = "supplier_order")]
372    SupplierOrder,
373    #[serde(rename = "self_own_invoice")]
374    SelfOwnInvoice,
375    #[serde(rename = "self_supplier_invoice")]
376    SelfSupplierInvoice,
377}
378
379impl Default for Type {
380    fn default() -> Type {
381        Self::Invoice
382    }
383}
384/// Show totals mode
385#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
386pub enum ShowTotals {
387    #[serde(rename = "none")]
388    None,
389    #[serde(rename = "nets")]
390    Nets,
391    #[serde(rename = "all")]
392    All,
393}
394
395impl Default for ShowTotals {
396    fn default() -> ShowTotals {
397        Self::None
398    }
399}
400/// [Read only] Status of the e-invoice.   * **attempt** - We are trying to send the invoice, please wait up to 2 hours   * **missing** - The invoice is missing   * **not_sent** - The invoice has yet to be sent   * **sent** - The invoice was sent   * **pending** - The checks for the digital signature and sending are in progress   * **processing** - The SDI is delivering the invoice to the customer   * **error** - An error occurred while handling the invoice, please try to resend it or contact support   * **discarded** - The invoice has been rejected by the SDI, so it must be corrected and re-sent   * **not_delivered** - The SDI was unable to deliver the invoice   * **accepted** - The customer accepted the invoice   * **rejected** - The customer rejected the invoice, so it must be corrected   * **no_response** - A response has not yet been received whithin the deadline, contact the customer to ascertain the status of the invoice   * **manual_accepted** - The customer accepted the invoice   * **manual_rejected** - The customer rejected the invoice 
401#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
402pub enum EiStatus {
403    #[serde(rename = "attempt")]
404    Attempt,
405    #[serde(rename = "missing")]
406    Missing,
407    #[serde(rename = "not_sent")]
408    NotSent,
409    #[serde(rename = "sent")]
410    Sent,
411    #[serde(rename = "pending")]
412    Pending,
413    #[serde(rename = "processing")]
414    Processing,
415    #[serde(rename = "error")]
416    Error,
417    #[serde(rename = "discarded")]
418    Discarded,
419    #[serde(rename = "not_delivered")]
420    NotDelivered,
421    #[serde(rename = "accepted")]
422    Accepted,
423    #[serde(rename = "rejected")]
424    Rejected,
425    #[serde(rename = "no_response")]
426    NoResponse,
427    #[serde(rename = "manual_accepted")]
428    ManualAccepted,
429    #[serde(rename = "manual_rejected")]
430    ManualRejected,
431}
432
433impl Default for EiStatus {
434    fn default() -> EiStatus {
435        Self::Attempt
436    }
437}
438