Skip to main content

autogen_squareup/models/
fulfillment_type.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/// FulfillmentType : The type of fulfillment.
15/// The type of fulfillment.
16#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
17pub enum FulfillmentType {
18    #[serde(rename = "PICKUP")]
19    Pickup,
20    #[serde(rename = "SHIPMENT")]
21    Shipment,
22    #[serde(rename = "DELIVERY")]
23    Delivery,
24    #[serde(rename = "IN_STORE")]
25    InStore,
26
27}
28
29impl std::fmt::Display for FulfillmentType {
30    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
31        match self {
32            Self::Pickup => write!(f, "PICKUP"),
33            Self::Shipment => write!(f, "SHIPMENT"),
34            Self::Delivery => write!(f, "DELIVERY"),
35            Self::InStore => write!(f, "IN_STORE"),
36        }
37    }
38}
39
40impl Default for FulfillmentType {
41    fn default() -> FulfillmentType {
42        Self::Pickup
43    }
44}
45