Renamed 'RenewFrequency' enum to 'Frequency'
This commit is contained in:
@@ -8,7 +8,7 @@ namespace AMWD.Net.Api.Cloudflare
|
|||||||
/// <see href="https://github.com/cloudflare/cloudflare-typescript/blob/v4.4.1/src/resources/shared.ts#L730">Source</see>
|
/// <see href="https://github.com/cloudflare/cloudflare-typescript/blob/v4.4.1/src/resources/shared.ts#L730">Source</see>
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[JsonConverter(typeof(StringEnumConverter))]
|
[JsonConverter(typeof(StringEnumConverter))]
|
||||||
public enum RenewFrequency
|
public enum Frequency
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Weekly
|
/// Weekly
|
||||||
@@ -37,7 +37,7 @@ namespace AMWD.Net.Api.Cloudflare
|
|||||||
/// How often the subscription is renewed automatically.
|
/// How often the subscription is renewed automatically.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[JsonProperty("frequency")]
|
[JsonProperty("frequency")]
|
||||||
public RenewFrequency? Frequency { get; set; }
|
public Frequency? Frequency { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The price of the subscription that will be billed, in US dollars.
|
/// The price of the subscription that will be billed, in US dollars.
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
internal class InternalCreateZoneSubscriptionRequest
|
internal class InternalCreateZoneSubscriptionRequest
|
||||||
{
|
{
|
||||||
[JsonProperty("frequency")]
|
[JsonProperty("frequency")]
|
||||||
public RenewFrequency? Frequency { get; set; }
|
public Frequency? Frequency { get; set; }
|
||||||
|
|
||||||
[JsonProperty("rate_plan")]
|
[JsonProperty("rate_plan")]
|
||||||
public RatePlan? RatePlan { get; set; }
|
public RatePlan? RatePlan { get; set; }
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
internal class InternalUpdateZoneSubscriptionRequest
|
internal class InternalUpdateZoneSubscriptionRequest
|
||||||
{
|
{
|
||||||
[JsonProperty("frequency")]
|
[JsonProperty("frequency")]
|
||||||
public RenewFrequency? Frequency { get; set; }
|
public Frequency? Frequency { get; set; }
|
||||||
|
|
||||||
[JsonProperty("rate_plan")]
|
[JsonProperty("rate_plan")]
|
||||||
public RatePlan? RatePlan { get; set; }
|
public RatePlan? RatePlan { get; set; }
|
||||||
|
|||||||
@@ -34,7 +34,7 @@
|
|||||||
/// The frequency at which you will be billed for this plan.
|
/// The frequency at which you will be billed for this plan.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[JsonProperty("frequency")]
|
[JsonProperty("frequency")]
|
||||||
public RenewFrequency? Frequency { get; set; }
|
public Frequency? Frequency { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Indicates whether you are currently subscribed to this plan.
|
/// Indicates whether you are currently subscribed to this plan.
|
||||||
|
|||||||
@@ -309,7 +309,7 @@ namespace AMWD.Net.Api.Cloudflare.Zones
|
|||||||
/// How often the customer is billed.
|
/// How often the customer is billed.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[JsonProperty("frequency")]
|
[JsonProperty("frequency")]
|
||||||
public RenewFrequency? Frequency { get; set; }
|
public Frequency? Frequency { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// States if the subscription active.
|
/// States if the subscription active.
|
||||||
|
|||||||
@@ -22,7 +22,7 @@
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// How often the subscription is renewed automatically.
|
/// How often the subscription is renewed automatically.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public RenewFrequency? Frequency { get; set; }
|
public Frequency? Frequency { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The rate plan applied to the subscription.
|
/// The rate plan applied to the subscription.
|
||||||
|
|||||||
@@ -22,7 +22,7 @@
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// How often the subscription is renewed automatically.
|
/// How often the subscription is renewed automatically.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public RenewFrequency? Frequency { get; set; }
|
public Frequency? Frequency { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The rate plan applied to the subscription.
|
/// The rate plan applied to the subscription.
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ namespace AMWD.Net.Api.Cloudflare.Zones
|
|||||||
/// The frequency at which you will be billed for this plan.
|
/// The frequency at which you will be billed for this plan.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[JsonProperty("frequency")]
|
[JsonProperty("frequency")]
|
||||||
public RenewFrequency? Frequency { get; set; }
|
public Frequency? Frequency { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The plan name.
|
/// The plan name.
|
||||||
|
|||||||
@@ -40,7 +40,7 @@ namespace Cloudflare.Zones.Tests.ZoneSubscriptionsExtensions
|
|||||||
|
|
||||||
_request = new CreateZoneSubscriptionRequest(ZoneId)
|
_request = new CreateZoneSubscriptionRequest(ZoneId)
|
||||||
{
|
{
|
||||||
Frequency = RenewFrequency.Quarterly,
|
Frequency = Frequency.Quarterly,
|
||||||
RatePlan = new RatePlan
|
RatePlan = new RatePlan
|
||||||
{
|
{
|
||||||
Id = RatePlanId.Business,
|
Id = RatePlanId.Business,
|
||||||
|
|||||||
@@ -40,7 +40,7 @@ namespace Cloudflare.Zones.Tests.ZoneSubscriptionsExtensions
|
|||||||
|
|
||||||
_request = new UpdateZoneSubscriptionRequest(ZoneId)
|
_request = new UpdateZoneSubscriptionRequest(ZoneId)
|
||||||
{
|
{
|
||||||
Frequency = RenewFrequency.Quarterly,
|
Frequency = Frequency.Quarterly,
|
||||||
RatePlan = new RatePlan
|
RatePlan = new RatePlan
|
||||||
{
|
{
|
||||||
Id = RatePlanId.Business,
|
Id = RatePlanId.Business,
|
||||||
|
|||||||
Reference in New Issue
Block a user