stripe/model/
invoice_setting_customer_setting.rs

1use serde::{Serialize, Deserialize};
2use super::InvoiceSettingCustomField;
3///
4#[derive(Debug, Clone, Serialize, Deserialize, Default)]
5pub struct InvoiceSettingCustomerSetting {
6    ///Default custom fields to be displayed on invoices for this customer.
7    #[serde(skip_serializing_if = "Option::is_none")]
8    pub custom_fields: Option<Vec<InvoiceSettingCustomField>>,
9    ///ID of a payment method that's attached to the customer, to be used as the customer's default payment method for subscriptions and invoices.
10    #[serde(skip_serializing_if = "Option::is_none")]
11    pub default_payment_method: Option<serde_json::Value>,
12    ///Default footer to be displayed on invoices for this customer.
13    #[serde(skip_serializing_if = "Option::is_none")]
14    pub footer: Option<String>,
15    ///Default options for invoice PDF rendering for this customer.
16    #[serde(skip_serializing_if = "Option::is_none")]
17    pub rendering_options: Option<serde_json::Value>,
18}
19impl std::fmt::Display for InvoiceSettingCustomerSetting {
20    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
21        write!(f, "{}", serde_json::to_string(self).unwrap())
22    }
23}