stripe/model/payment_pages_checkout_session_custom_fields_option.rs
1use serde::{Serialize, Deserialize};
2///
3#[derive(Debug, Clone, Serialize, Deserialize, Default)]
4pub struct PaymentPagesCheckoutSessionCustomFieldsOption {
5 ///The label for the option, displayed to the customer. Up to 100 characters.
6 pub label: String,
7 ///The value for this option, not displayed to the customer, used by your integration to reconcile the option selected by the customer. Must be unique to this option, alphanumeric, and up to 100 characters.
8 pub value: String,
9}
10impl std::fmt::Display for PaymentPagesCheckoutSessionCustomFieldsOption {
11 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
12 write!(f, "{}", serde_json::to_string(self).unwrap())
13 }
14}