// this file is @generated
use serde::{Deserialize, Serialize};
use super::calendar_unit::CalendarUnit;
/// Resets on calendar boundaries (e.g. the 1st of every month) — not tied to subscription start date.
#[derive(Clone, Debug, PartialEq, Deserialize, Serialize)]
pub struct CalendarResetPeriod {
pub interval: i32,
pub r#type: String,
pub unit: CalendarUnit,
/// Properties this version of the SDK does not know, sent back as received.
#[serde(flatten)]
pub extra: serde_json::Map<String, serde_json::Value>,
}
impl CalendarResetPeriod {
/// Creates a value from its required fields.
#[must_use]
pub fn new(interval: i32, unit: CalendarUnit) -> Self {
Self {
interval,
r#type: "CALENDAR".into(),
unit,
extra: serde_json::Map::new(),
}
}
}