osdm_sys/models/back_office_status.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/// BackOfficeStatus : Status of the request sent to the back office. Valid Values: - 'INITIATED' - 'EVALUATING' - 'DECIDED' - 'SETTLED' - 'INFORMATION_MISSING' - 'REQUEST_UPDATED': Additional information, i.e. documents have been provided which should trigger reevaluation.
15/// Status of the request sent to the back office. Valid Values: - 'INITIATED' - 'EVALUATING' - 'DECIDED' - 'SETTLED' - 'INFORMATION_MISSING' - 'REQUEST_UPDATED': Additional information, i.e. documents have been provided which should trigger reevaluation.
16#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
17pub enum BackOfficeStatus {
18 #[serde(rename = "INITIATED")]
19 Initiated,
20 #[serde(rename = "EVALUATING")]
21 Evaluating,
22 #[serde(rename = "DECIDED")]
23 Decided,
24 #[serde(rename = "SETTLED")]
25 Settled,
26 #[serde(rename = "INFORMATION_MISSING")]
27 InformationMissing,
28 #[serde(rename = "REQUEST_UPDATED")]
29 RequestUpdated,
30
31}
32
33impl std::fmt::Display for BackOfficeStatus {
34 fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
35 match self {
36 Self::Initiated => write!(f, "INITIATED"),
37 Self::Evaluating => write!(f, "EVALUATING"),
38 Self::Decided => write!(f, "DECIDED"),
39 Self::Settled => write!(f, "SETTLED"),
40 Self::InformationMissing => write!(f, "INFORMATION_MISSING"),
41 Self::RequestUpdated => write!(f, "REQUEST_UPDATED"),
42 }
43 }
44}
45
46impl Default for BackOfficeStatus {
47 fn default() -> BackOfficeStatus {
48 Self::Initiated
49 }
50}
51