Table of Contents

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

Id string

The unique identifier of the plan.

Name string

The name of the plan (e.g., "Free", "Pro", "Business", "Enterprise").

Price decimal

The monthly price of the plan in the specified currency.

Currency string

The currency for the plan price (e.g., "USD").

Frequency string

The billing frequency (e.g., "monthly", "yearly").

IsSubscribed bool

Whether the zone is currently subscribed to this plan.

CanSubscribe bool

Whether the zone can subscribe to this plan.

LegacyId string

The legacy identifier for the plan.

LegacyDiscount bool

Whether a legacy discount applies.

ExternallyManaged bool

Whether 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

bool

Currency

The currency for the plan price (e.g., "USD").

[JsonPropertyName("currency")]
public string Currency { get; init; }

Property Value

string

ExternallyManaged

Whether the plan is managed externally (e.g., through a partner).

[JsonPropertyName("externally_managed")]
public bool ExternallyManaged { get; init; }

Property Value

bool

Frequency

The billing frequency (e.g., "monthly", "yearly").

[JsonPropertyName("frequency")]
public string? Frequency { get; init; }

Property Value

string

Id

The unique identifier of the plan.

[JsonPropertyName("id")]
public string Id { get; init; }

Property Value

string

IsSubscribed

Whether the zone is currently subscribed to this plan.

[JsonPropertyName("is_subscribed")]
public bool IsSubscribed { get; init; }

Property Value

bool

LegacyDiscount

Whether a legacy discount applies.

[JsonPropertyName("legacy_discount")]
public bool LegacyDiscount { get; init; }

Property Value

bool

LegacyId

The legacy identifier for the plan.

[JsonPropertyName("legacy_id")]
public string? LegacyId { get; init; }

Property Value

string

Name

The name of the plan (e.g., "Free", "Pro", "Business", "Enterprise").

[JsonPropertyName("name")]
public string Name { get; init; }

Property Value

string

Price

The monthly price of the plan in the specified currency.

[JsonPropertyName("price")]
public decimal Price { get; init; }

Property Value

decimal