Class ZonePlan
- Namespace
- Cloudflare.NET.Zones.Models
- Assembly
- Cloudflare.NET.dll
Plan information for a Zone.
This represents the Cloudflare billing plan associated with the zone.
public record ZonePlan : IEquatable<ZonePlan>
- Inheritance
-
ZonePlan
- Implements
- Inherited Members
Constructors
ZonePlan(string, string, decimal, string, string?, bool, bool, string?, bool, bool)
Plan information for a Zone.
This represents the Cloudflare billing plan associated with the zone.
public ZonePlan(string Id, string Name, decimal Price, string Currency, string? Frequency, bool IsSubscribed, bool CanSubscribe, string? LegacyId, bool LegacyDiscount, bool ExternallyManaged)
Parameters
IdstringThe unique identifier of the plan.
NamestringThe name of the plan (e.g., "Free", "Pro", "Business", "Enterprise").
PricedecimalThe monthly price of the plan in the specified currency.
CurrencystringThe currency for the plan price (e.g., "USD").
FrequencystringThe billing frequency (e.g., "monthly", "yearly").
IsSubscribedboolWhether the zone is currently subscribed to this plan.
CanSubscribeboolWhether the zone can subscribe to this plan.
LegacyIdstringThe legacy identifier for the plan.
LegacyDiscountboolWhether a legacy discount applies.
ExternallyManagedboolWhether the plan is managed externally (e.g., through a partner).
Properties
CanSubscribe
Whether the zone can subscribe to this plan.
[JsonPropertyName("can_subscribe")]
public bool CanSubscribe { get; init; }
Property Value
Currency
The currency for the plan price (e.g., "USD").
[JsonPropertyName("currency")]
public string Currency { get; init; }
Property Value
ExternallyManaged
Whether the plan is managed externally (e.g., through a partner).
[JsonPropertyName("externally_managed")]
public bool ExternallyManaged { get; init; }
Property Value
Frequency
The billing frequency (e.g., "monthly", "yearly").
[JsonPropertyName("frequency")]
public string? Frequency { get; init; }
Property Value
Id
The unique identifier of the plan.
[JsonPropertyName("id")]
public string Id { get; init; }
Property Value
IsSubscribed
Whether the zone is currently subscribed to this plan.
[JsonPropertyName("is_subscribed")]
public bool IsSubscribed { get; init; }
Property Value
LegacyDiscount
Whether a legacy discount applies.
[JsonPropertyName("legacy_discount")]
public bool LegacyDiscount { get; init; }
Property Value
LegacyId
The legacy identifier for the plan.
[JsonPropertyName("legacy_id")]
public string? LegacyId { get; init; }
Property Value
Name
The name of the plan (e.g., "Free", "Pro", "Business", "Enterprise").
[JsonPropertyName("name")]
public string Name { get; init; }
Property Value
Price
The monthly price of the plan in the specified currency.
[JsonPropertyName("price")]
public decimal Price { get; init; }