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
//! Model for Product enum.
use serde::{Deserialize, Serialize};
/// Indicates the Square product used to generate an inventory change.
#[derive(Clone, Debug, Deserialize, Eq, PartialEq, Serialize)]
#[serde(rename_all = "SCREAMING_SNAKE_CASE")]
pub enum Product {
/// Square Point of Sale application.
SquarePos,
/// Square Connect APIs (Transactions API, Checkout API).
ExternalApi,
/// A Square subscription (various products).
Billing,
/// Square Appointments.
Appointments,
/// Square Invoices.
Invoices,
/// Square Online Store.
OnlineStore,
/// Square Payroll.
Payroll,
/// Square Dashboard
Dashboard,
/// Item Library Import
ItemLibraryImport,
/// A Square product that does not match any other value.
Other,
}