Skip to main content

autogen_squareup/models/
v1_update_order_request_action.rs

1/*
2 * Square
3 *
4 * Use Square APIs to manage and run business including payment, customer, product, inventory, and employee management.
5 *
6 * The version of the OpenAPI document: 2.0
7 * Contact: developers@squareup.com
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// 
15#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
16pub enum V1UpdateOrderRequestAction {
17    #[serde(rename = "COMPLETE")]
18    Complete,
19    #[serde(rename = "CANCEL")]
20    Cancel,
21    #[serde(rename = "REFUND")]
22    Refund,
23
24}
25
26impl std::fmt::Display for V1UpdateOrderRequestAction {
27    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
28        match self {
29            Self::Complete => write!(f, "COMPLETE"),
30            Self::Cancel => write!(f, "CANCEL"),
31            Self::Refund => write!(f, "REFUND"),
32        }
33    }
34}
35
36impl Default for V1UpdateOrderRequestAction {
37    fn default() -> V1UpdateOrderRequestAction {
38        Self::Complete
39    }
40}
41