square_api_client/models/
customer_preferences.rs

1//! Model struct for CustomerPreferences type
2
3use serde::{Deserialize, Serialize};
4
5/// Represents communication preferences for the customer profile.
6#[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)]
7pub struct CustomerPreferences {
8    /// Indicates whether the customer has unsubscribed from marketing campaign emails. A value of
9    /// `true` means that the customer chose to opt out of email marketing from the current Square
10    /// seller or from all Square sellers. This value is read-only from the Customers API.
11    pub email_unsubscribed: bool,
12}