osdm-sys 0.1.0-alpha.3

Specifications for the OSDM API standard. The OSDM specification supports two modes of operation: Retailer Mode and Distributor Mode. The API works identically in both modes, except that in distributor mode the API also returns fare information. The following resources are key to get started: - [Processes](https://osdm.io/spec/processes/) - [Models](https://osdm.io/spec/models/) - [Getting started](https://osdm.io/spec/getting-started/)
Documentation
/*
 * UIC 90918-10 - OSDM
 *
 * Specifications for the OSDM API standard. The OSDM specification supports two modes of operation: Retailer Mode and Distributor Mode. The API works identically in both modes, except that in distributor mode the API also returns fare information.  The following resources are key to get started:    -  [Processes](https://osdm.io/spec/processes/)   -  [Models](https://osdm.io/spec/models/)   -  [Getting started](https://osdm.io/spec/getting-started/) 
 *
 * The version of the OpenAPI document: 3.7.0
 * Contact: osdm@uic.org
 * Generated by: https://openapi-generator.tech
 */

use crate::models;
use serde::{Deserialize, Serialize};

/// CustomerComplaint : complaint details provided by the passengers 
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
#[cfg_attr(feature = "utoipa", derive(utoipa::ToSchema))]
pub struct CustomerComplaint {
    /// date and time when the claim was made. This starts the legal time line to process the claim 
    #[serde(rename = "applicationTime", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
    pub application_time: Option<Option<String>>,
    #[serde(rename = "journeyDetails", skip_serializing_if = "Option::is_none")]
    pub journey_details: Option<Box<models::ClaimedJourneyDetails>>,
    #[serde(rename = "claimManager", skip_serializing_if = "Option::is_none")]
    pub claim_manager: Option<Box<models::PersonDetail>>,
    #[serde(rename = "affectedPassengers", skip_serializing_if = "Option::is_none")]
    pub affected_passengers: Option<Vec<models::Passenger>>,
    #[serde(rename = "supportingDocuments", skip_serializing_if = "Option::is_none")]
    pub supporting_documents: Option<Vec<models::SupportingDocument>>,
    /// list of booking Ids 
    #[serde(rename = "bookingIds", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
    pub booking_ids: Option<Option<Vec<String>>>,
    /// list of ticket control number (visible ticket identification for the customer) 
    #[serde(rename = "ticketControlNumber", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
    pub ticket_control_number: Option<Option<Vec<String>>>,
    #[serde(rename = "requestedPaymentType", skip_serializing_if = "Option::is_none")]
    pub requested_payment_type: Option<String>,
    #[serde(rename = "bankAccount", skip_serializing_if = "Option::is_none")]
    pub bank_account: Option<Box<models::BankAccountReference>>,
}

impl CustomerComplaint {
    /// complaint details provided by the passengers 
    pub fn new() -> CustomerComplaint {
        CustomerComplaint {
            application_time: None,
            journey_details: None,
            claim_manager: None,
            affected_passengers: None,
            supporting_documents: None,
            booking_ids: None,
            ticket_control_number: None,
            requested_payment_type: None,
            bank_account: None,
        }
    }
}