Skip to main content

fattureincloud_rs/models/
send_e_invoice_request_data.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 SendEInvoiceRequestData {
15    /// Value of TipoCassa used (optional, override the company default value).
16    #[serde(rename = "cassa_type", skip_serializing_if = "Option::is_none")]
17    pub cassa_type: Option<String>,
18    /// Value of CausalePagamento used (optional, override the company default value).
19    #[serde(rename = "withholding_tax_causal", skip_serializing_if = "Option::is_none")]
20    pub withholding_tax_causal: Option<String>,
21}
22
23impl SendEInvoiceRequestData {
24    pub fn new() -> SendEInvoiceRequestData {
25        SendEInvoiceRequestData {
26            cassa_type: None,
27            withholding_tax_causal: None,
28        }
29    }
30}
31