square_api_client/models/enums/order_state.rs
1//! Model for OrderState enum
2
3use serde::{Deserialize, Serialize};
4
5/// The state of the order.
6#[derive(Clone, Debug, Deserialize, Eq, PartialEq, Serialize)]
7#[serde(rename_all = "SCREAMING_SNAKE_CASE")]
8pub enum OrderState {
9 /// Indicates that the order is open. Open orders can be updated.
10 Open,
11 /// Indicates that the order is completed. Completed orders are fully paid. This is a terminal
12 /// state.
13 Completed,
14 /// Indicates that the order is canceled. Canceled orders are not paid. This is a terminal
15 /// state.
16 Canceled,
17 /// Indicates that the order is in a draft state. Draft orders can be updated, but cannot be
18 /// paid or fulfilled. For more information, see
19 /// [Create Orders](https://developer.squareup.com/docs/orders-api/create-orders).
20 Draft,
21}