square_rust/api/models/objects/customer_preferences.rs
1//! Models for CustomerPreferences
2use serde::{Deserialize, Serialize};
3
4/// Represents general customer preferences.
5#[derive(Clone, Debug, Deserialize, Serialize)]
6pub struct CustomerPreferences {
7 /// Indicates whether the customer has unsubscribed from marketing campaign emails. A value of true means that the customer chose to opt out of email marketing from the current Square seller or from all Square sellers. This value is read-only from the Customers API.
8 pub email_unsubscribed: Option<bool>,
9}