square_api_client/models/
customer_group.rs

1//! Model struct for CustomerGroup type
2
3use serde::{Deserialize, Serialize};
4
5use super::DateTime;
6
7/// Represents a group of customer profiles.
8///
9/// Customer groups can be created, be modified, and have their membership defined using the
10/// Customers API or within the Customer Directory in the Square Seller Dashboard or Point of Sale.
11#[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)]
12pub struct CustomerGroup {
13    /// **Read only** A unique Square-generated ID for the customer group.
14    pub id: Option<String>,
15    /// The name of the customer group.
16    pub name: String,
17    /// **Read only** The timestamp when the customer group was created.
18    pub created_at: Option<DateTime>,
19    /// **Read only** The timestamp when the customer group was last updated.
20    pub updated_at: Option<DateTime>,
21}