printnanny_api_client/models/
stripe_confirmation_method.rs

1/*
2 * printnanny-api-client
3 *
4 * Official API client library for printnanny.ai
5 *
6 * The version of the OpenAPI document: 0.135.1
7 * Contact: leigh@printnanny.ai
8 * Generated by: https://openapi-generator.tech
9 */
10
11/// StripeConfirmationMethod : * `automatic` - Automatic * `manual` - Manual
12
13/// * `automatic` - Automatic * `manual` - Manual
14#[derive(Clone, Copy, clap::ValueEnum, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
15pub enum StripeConfirmationMethod {
16    #[serde(rename = "automatic")]
17    Automatic,
18    #[serde(rename = "manual")]
19    Manual,
20
21}
22
23impl ToString for StripeConfirmationMethod {
24    fn to_string(&self) -> String {
25        match self {
26            Self::Automatic => String::from("automatic"),
27            Self::Manual => String::from("manual"),
28        }
29    }
30}
31
32impl Default for StripeConfirmationMethod {
33    fn default() -> StripeConfirmationMethod {
34        Self::Automatic
35    }
36}
37
38
39
40