stripe/model/payment_pages_checkout_session_phone_number_collection.rs
1use serde::{Serialize, Deserialize};
2///
3#[derive(Debug, Clone, Serialize, Deserialize, Default)]
4pub struct PaymentPagesCheckoutSessionPhoneNumberCollection {
5 ///Indicates whether phone number collection is enabled for the session
6 pub enabled: bool,
7}
8impl std::fmt::Display for PaymentPagesCheckoutSessionPhoneNumberCollection {
9 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
10 write!(f, "{}", serde_json::to_string(self).unwrap())
11 }
12}