Skip to main content

fattureincloud_rs/models/
issued_document_options.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 IssuedDocumentOptions {
15    /// Fixes your last payment amount to match your document total
16    #[serde(rename = "fix_payments", skip_serializing_if = "Option::is_none")]
17    pub fix_payments: Option<bool>,
18    /// Original documents ids [only for join/transform]
19    #[serde(rename = "create_from", skip_serializing_if = "Option::is_none")]
20    pub create_from: Option<Vec<String>>,
21    /// Tranform a document [only for transform]
22    #[serde(rename = "transform", skip_serializing_if = "Option::is_none")]
23    pub transform: Option<bool>,
24    /// Keep original document [only for transform]
25    #[serde(rename = "keep_copy", skip_serializing_if = "Option::is_none")]
26    pub keep_copy: Option<bool>,
27    /// Join type [only for join]
28    #[serde(rename = "join_type", skip_serializing_if = "Option::is_none")]
29    pub join_type: Option<String>,
30}
31
32impl IssuedDocumentOptions {
33    pub fn new() -> IssuedDocumentOptions {
34        IssuedDocumentOptions {
35            fix_payments: None,
36            create_from: None,
37            transform: None,
38            keep_copy: None,
39            join_type: None,
40        }
41    }
42}
43