stripe/model/
payment_pages_checkout_session_custom_text.rs

1use serde::{Serialize, Deserialize};
2///
3#[derive(Debug, Clone, Serialize, Deserialize, Default)]
4pub struct PaymentPagesCheckoutSessionCustomText {
5    ///Custom text that should be displayed after the payment confirmation button.
6    #[serde(skip_serializing_if = "Option::is_none")]
7    pub after_submit: Option<serde_json::Value>,
8    ///Custom text that should be displayed alongside shipping address collection.
9    #[serde(skip_serializing_if = "Option::is_none")]
10    pub shipping_address: Option<serde_json::Value>,
11    ///Custom text that should be displayed alongside the payment confirmation button.
12    #[serde(skip_serializing_if = "Option::is_none")]
13    pub submit: Option<serde_json::Value>,
14    ///Custom text that should be displayed in place of the default terms of service agreement text.
15    #[serde(skip_serializing_if = "Option::is_none")]
16    pub terms_of_service_acceptance: Option<serde_json::Value>,
17}
18impl std::fmt::Display for PaymentPagesCheckoutSessionCustomText {
19    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
20        write!(f, "{}", serde_json::to_string(self).unwrap())
21    }
22}