Class UpdateZoneSubscriptionRequest
- Namespace
- Cloudflare.NET.Subscriptions.Models
- Assembly
- Cloudflare.NET.dll
Request to update a zone subscription.
Updates may affect billing. Only specified fields will be changed; null fields are left unchanged.
public record UpdateZoneSubscriptionRequest : IEquatable<UpdateZoneSubscriptionRequest>
- Inheritance
-
UpdateZoneSubscriptionRequest
- Implements
- Inherited Members
Examples
// Downgrade to Pro from Business
var request = new UpdateZoneSubscriptionRequest(
RatePlan: new RatePlanReference("pro"));
var updated = await client.Subscriptions.UpdateZoneSubscriptionAsync(zoneId, request);
Constructors
UpdateZoneSubscriptionRequest(RatePlanReference?, SubscriptionFrequency?, IReadOnlyList<SubscriptionComponentValue>?)
Request to update a zone subscription.
Updates may affect billing. Only specified fields will be changed; null fields are left unchanged.
public UpdateZoneSubscriptionRequest(RatePlanReference? RatePlan = null, SubscriptionFrequency? Frequency = null, IReadOnlyList<SubscriptionComponentValue>? ComponentValues = null)
Parameters
RatePlanRatePlanReferenceOptional new rate plan reference.
FrequencySubscriptionFrequency?Optional new billing frequency.
ComponentValuesIReadOnlyList<SubscriptionComponentValue>Optional new component values.
Examples
// Downgrade to Pro from Business
var request = new UpdateZoneSubscriptionRequest(
RatePlan: new RatePlanReference("pro"));
var updated = await client.Subscriptions.UpdateZoneSubscriptionAsync(zoneId, request);
Properties
ComponentValues
Optional new component values.
[JsonPropertyName("component_values")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public IReadOnlyList<SubscriptionComponentValue>? ComponentValues { get; init; }
Property Value
Frequency
Optional new billing frequency.
[JsonPropertyName("frequency")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public SubscriptionFrequency? Frequency { get; init; }
Property Value
RatePlan
Optional new rate plan reference.
[JsonPropertyName("rate_plan")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public RatePlanReference? RatePlan { get; init; }