use serde::{Deserialize, Serialize};
#[derive(Clone, Debug, PartialEq, Deserialize, Serialize)]
pub struct CreditExhaustedRuleInvoiceVariant {
pub r#type: String,
#[serde(flatten)]
pub extra: serde_json::Map<String, serde_json::Value>,
}
impl CreditExhaustedRuleInvoiceVariant {
#[must_use]
pub fn new() -> Self {
Self {
r#type: "invoice".into(),
extra: serde_json::Map::new(),
}
}
}
impl Default for CreditExhaustedRuleInvoiceVariant {
fn default() -> Self {
Self {
r#type: "invoice".into(),
extra: serde_json::Map::new(),
}
}
}