stripe/model/
payment_method_domain_resource_payment_method_status.rs

1use serde::{Serialize, Deserialize};
2use super::PaymentMethodDomainResourcePaymentMethodStatusDetails;
3///Indicates the status of a specific payment method on a payment method domain.
4#[derive(Debug, Clone, Serialize, Deserialize, Default)]
5pub struct PaymentMethodDomainResourcePaymentMethodStatus {
6    ///The status of the payment method on the domain.
7    pub status: String,
8    ///Contains additional details about the status of a payment method for a specific payment method domain.
9    #[serde(skip_serializing_if = "Option::is_none")]
10    pub status_details: Option<PaymentMethodDomainResourcePaymentMethodStatusDetails>,
11}
12impl std::fmt::Display for PaymentMethodDomainResourcePaymentMethodStatus {
13    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
14        write!(f, "{}", serde_json::to_string(self).unwrap())
15    }
16}