Skip to main content

osdm_sys/models/
customer_complaint.rs

1/*
2 * UIC 90918-10 - OSDM
3 *
4 * 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/) 
5 *
6 * The version of the OpenAPI document: 3.7.0
7 * Contact: osdm@uic.org
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// CustomerComplaint : complaint details provided by the passengers 
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16#[cfg_attr(feature = "utoipa", derive(utoipa::ToSchema))]
17pub struct CustomerComplaint {
18    /// date and time when the claim was made. This starts the legal time line to process the claim 
19    #[serde(rename = "applicationTime", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
20    pub application_time: Option<Option<String>>,
21    #[serde(rename = "journeyDetails", skip_serializing_if = "Option::is_none")]
22    pub journey_details: Option<Box<models::ClaimedJourneyDetails>>,
23    #[serde(rename = "claimManager", skip_serializing_if = "Option::is_none")]
24    pub claim_manager: Option<Box<models::PersonDetail>>,
25    #[serde(rename = "affectedPassengers", skip_serializing_if = "Option::is_none")]
26    pub affected_passengers: Option<Vec<models::Passenger>>,
27    #[serde(rename = "supportingDocuments", skip_serializing_if = "Option::is_none")]
28    pub supporting_documents: Option<Vec<models::SupportingDocument>>,
29    /// list of booking Ids 
30    #[serde(rename = "bookingIds", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
31    pub booking_ids: Option<Option<Vec<String>>>,
32    /// list of ticket control number (visible ticket identification for the customer) 
33    #[serde(rename = "ticketControlNumber", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
34    pub ticket_control_number: Option<Option<Vec<String>>>,
35    #[serde(rename = "requestedPaymentType", skip_serializing_if = "Option::is_none")]
36    pub requested_payment_type: Option<String>,
37    #[serde(rename = "bankAccount", skip_serializing_if = "Option::is_none")]
38    pub bank_account: Option<Box<models::BankAccountReference>>,
39}
40
41impl CustomerComplaint {
42    /// complaint details provided by the passengers 
43    pub fn new() -> CustomerComplaint {
44        CustomerComplaint {
45            application_time: None,
46            journey_details: None,
47            claim_manager: None,
48            affected_passengers: None,
49            supporting_documents: None,
50            booking_ids: None,
51            ticket_control_number: None,
52            requested_payment_type: None,
53            bank_account: None,
54        }
55    }
56}
57