Skip to main content

fattureincloud_rs/models/
issued_document_pre_create_info_default_values.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/// IssuedDocumentPreCreateInfoDefaultValues : Issued document default values
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct IssuedDocumentPreCreateInfoDefaultValues {
16    #[serde(rename = "default_template", skip_serializing_if = "Option::is_none")]
17    pub default_template: Option<Box<models::DocumentTemplate>>,
18    #[serde(rename = "dn_template", skip_serializing_if = "Option::is_none")]
19    pub dn_template: Option<Box<models::DocumentTemplate>>,
20    #[serde(rename = "ai_template", skip_serializing_if = "Option::is_none")]
21    pub ai_template: Option<Box<models::DocumentTemplate>>,
22    /// Default notes.
23    #[serde(rename = "notes", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
24    pub notes: Option<Option<String>>,
25    /// Default rivalsa percentage.
26    #[serde(rename = "rivalsa", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
27    pub rivalsa: Option<Option<f64>>,
28    /// Default cassa percentage.
29    #[serde(rename = "cassa", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
30    pub cassa: Option<Option<f64>>,
31    /// Default withholding tax percentage.
32    #[serde(rename = "withholding_tax", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
33    pub withholding_tax: Option<Option<f64>>,
34    /// Default withholding tax taxable percentage.
35    #[serde(rename = "withholding_tax_taxable", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
36    pub withholding_tax_taxable: Option<Option<f64>>,
37    /// Default other withholding tax percentage.
38    #[serde(rename = "other_withholding_tax", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
39    pub other_withholding_tax: Option<Option<f64>>,
40    /// Use gross price by default.
41    #[serde(rename = "use_gross_prices", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
42    pub use_gross_prices: Option<Option<bool>>,
43    #[serde(rename = "payment_method", skip_serializing_if = "Option::is_none")]
44    pub payment_method: Option<Box<models::PaymentMethod>>,
45}
46
47impl IssuedDocumentPreCreateInfoDefaultValues {
48    /// Issued document default values
49    pub fn new() -> IssuedDocumentPreCreateInfoDefaultValues {
50        IssuedDocumentPreCreateInfoDefaultValues {
51            default_template: None,
52            dn_template: None,
53            ai_template: None,
54            notes: None,
55            rivalsa: None,
56            cassa: None,
57            withholding_tax: None,
58            withholding_tax_taxable: None,
59            other_withholding_tax: None,
60            use_gross_prices: None,
61            payment_method: None,
62        }
63    }
64}
65