stripe/model/connect_embedded_payments_features.rs
1use serde::{Serialize, Deserialize};
2///
3#[derive(Debug, Clone, Serialize, Deserialize, Default)]
4pub struct ConnectEmbeddedPaymentsFeatures {
5 ///Whether to allow capturing and cancelling payment intents. This is `true` by default.
6 pub capture_payments: bool,
7 ///Whether to allow responding to disputes, including submitting evidence and accepting disputes. This is `true` by default.
8 pub dispute_management: bool,
9 ///Whether to allow sending refunds. This is `true` by default.
10 pub refund_management: bool,
11}
12impl std::fmt::Display for ConnectEmbeddedPaymentsFeatures {
13 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
14 write!(f, "{}", serde_json::to_string(self).unwrap())
15 }
16}