diff --git a/cloudflare/src/endpoints/plan.rs b/cloudflare/src/endpoints/plan.rs index 8b21246c..96e80dfb 100644 --- a/cloudflare/src/endpoints/plan.rs +++ b/cloudflare/src/endpoints/plan.rs @@ -1,5 +1,6 @@ #[derive(Deserialize, Debug)] #[serde(rename_all = "lowercase")] +/// Free plans won't have a Frequency, so most responses should accept Option instead. pub enum Frequency { Weekly, Monthly, @@ -18,7 +19,7 @@ pub struct Plan { /// The monetary unit in which pricing information is displayed currency: String, /// The frequency at which you will be billed for this plan - frequency: Frequency, + frequency: Option, /// A 'friendly' identifier to indicate to the UI what plan the object is legacy_id: String, /// If the zone is subscribed to this plan