squareup/models/checkout_location_settings.rs
1//! Model struct for CheckoutLocationSettings type
2
3use serde::{Deserialize, Serialize};
4
5use super::{
6 CheckoutLocationSettingsBranding, CheckoutLocationSettingsCoupons,
7 CheckoutLocationSettingsPolicy, CheckoutLocationSettingsTipping, DateTime,
8};
9
10#[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)]
11pub struct CheckoutLocationSettings {
12 /// The ID of the location that these settings apply to.
13 pub location_id: Option<String>,
14 /// Indicates whether customers are allowed to leave notes at checkout.
15 pub customer_notes_enabled: Option<bool>,
16 /// Policy information is displayed at the bottom of the checkout pages. You can set a maximum of two policies.
17 /// Max Length 2
18 pub policies: Option<Vec<CheckoutLocationSettingsPolicy>>,
19 /// The branding settings for this location.
20 pub branding: Option<CheckoutLocationSettingsBranding>,
21 /// The tip settings for this location.
22 pub tipping: Option<CheckoutLocationSettingsTipping>,
23 /// The coupon settings for this location.
24 pub coupons: Option<CheckoutLocationSettingsCoupons>,
25 /// **Read only** The RFC 3339 timestamp specifying the most recent update time of this booking.
26 /// Examples for January 25th, 2020 6:25:34pm Pacific Standard Time: UTC: 2020-01-26T02:25:34Z
27 /// Pacific Standard Time with UTC offset: 2020-01-25T18:25:34-08:00
28 pub updated_at: Option<DateTime>,
29}