Table of Contents

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

RatePlan RatePlanReference

Optional new rate plan reference.

Frequency SubscriptionFrequency?

Optional new billing frequency.

ComponentValues IReadOnlyList<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

IReadOnlyList<SubscriptionComponentValue>

Frequency

Optional new billing frequency.

[JsonPropertyName("frequency")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public SubscriptionFrequency? Frequency { get; init; }

Property Value

SubscriptionFrequency?

RatePlan

Optional new rate plan reference.

[JsonPropertyName("rate_plan")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public RatePlanReference? RatePlan { get; init; }

Property Value

RatePlanReference