1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
/*
* 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};
/// 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.
/// 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.
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
#[cfg_attr(feature = "utoipa", derive(utoipa::ToSchema))]
pub enum BackOfficeStatus {
#[serde(rename = "INITIATED")]
Initiated,
#[serde(rename = "EVALUATING")]
Evaluating,
#[serde(rename = "DECIDED")]
Decided,
#[serde(rename = "SETTLED")]
Settled,
#[serde(rename = "INFORMATION_MISSING")]
InformationMissing,
#[serde(rename = "REQUEST_UPDATED")]
RequestUpdated,
}
impl std::fmt::Display for BackOfficeStatus {
fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
match self {
Self::Initiated => write!(f, "INITIATED"),
Self::Evaluating => write!(f, "EVALUATING"),
Self::Decided => write!(f, "DECIDED"),
Self::Settled => write!(f, "SETTLED"),
Self::InformationMissing => write!(f, "INFORMATION_MISSING"),
Self::RequestUpdated => write!(f, "REQUEST_UPDATED"),
}
}
}
impl Default for BackOfficeStatus {
fn default() -> BackOfficeStatus {
Self::Initiated
}
}