Skip to content

Commit

Permalink
Move to API version 2019-10-17
Browse files Browse the repository at this point in the history
Remove `RenewalBehavior` and `RenewalInterval` on `SubscriptionSchedule`
and pin the library to API version 2019-10-17
  • Loading branch information
remi-stripe committed Oct 18, 2019
1 parent 61de33e commit c5b9417
Show file tree
Hide file tree
Showing 7 changed files with 4 additions and 76 deletions.
2 changes: 1 addition & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ environment:
COVERALLS_REPO_TOKEN:
secure: T0PmP8uyzCseacBCDRBlti2y9Tz5DL6fknea0MKWvbPYrzADmLY2/5kOTfYIsPUk
# If you bump this, don't forget to bump `MinimumMockVersion` in `StripeMockFixture.cs` as well.
STRIPE_MOCK_VERSION: 0.68.0
STRIPE_MOCK_VERSION: 0.69.0

deploy:
- provider: NuGet
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -188,22 +188,9 @@ public IPaymentSource DefaultSource
[JsonProperty("released_subscription")]
public string ReleasedSubscriptionId { get; set; }

/// <summary>
/// Behavior of the subscription schedule and underlying subscription when it ends.
/// </summary>
[JsonProperty("renewal_behavior")]
public string RenewalBehavior { get; set; }

/// <summary>
/// Interval and duration at which the subscription schedule renews for when it ends if
/// <c>renewal_behavior</c> is <c>renew</c>.
/// </summary>
[JsonProperty("renewal_interval")]
public SubscriptionScheduleRenewalInterval RenewalInterval { get; set; }

/// <summary>
/// Possible values are <c>active</c>, <c>canceled</c>, <c>completed</c>,
/// <c>not_started</c>, <c>released</c> and <c>renewal_behavior</c>.
/// <c>not_started</c> and <c>released</c>.
/// </summary>
[JsonProperty("status")]
public string Status { get; set; }
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ static StripeConfiguration()
}

/// <summary>API version used by Stripe.net.</summary>
public static string ApiVersion => "2019-10-08";
public static string ApiVersion => "2019-10-17";

#if NET45 || NETSTANDARD2_0
/// <summary>Gets or sets the API key.</summary>
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -64,24 +64,5 @@ public abstract class SubscriptionScheduleSharedOptions : BaseOptions, IHasMetad
/// </summary>
[JsonProperty("phases")]
public List<SubscriptionSchedulePhaseOptions> Phases { get; set; }

/// <summary>
/// Configures how the subscription schedule behaves when it ends. Possible values are
/// <c>none</c>, <c>release</c>, or <c>renew</c>. <c>renew</c> will
/// create a new subscription schedule revision by adding a new phase using the most recent
/// phase’s plans applied to a duration set by <c>renewal_interval</c>.
/// <c>none</c> will stop the subscription schedule and cancel the underlying
/// subscription. <c>release</c> will stop the subscription schedule, but keep the
/// underlying subscription running.
/// </summary>
[JsonProperty("renewal_behavior")]
public string RenewalBehavior { get; set; }

/// <summary>
/// Configuration for renewing the subscription schedule when it ends. Must be set if
/// <c>renewal_behavior</c> is <c>renew</c>. Otherwise, must not be set.
/// </summary>
[JsonProperty("renewal_interval")]
public SubscriptionScheduleRenewalIntervalOptions RenewalInterval { get; set; }
}
}
2 changes: 1 addition & 1 deletion src/StripeTests/StripeMockFixture.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public class StripeMockFixture : IDisposable
/// If you bump this, don't forget to bump <c>STRIPE_MOCK_VERSION</c> in <c>appveyor.yml</c>
/// as well.
/// </remarks>
private const string MockMinimumVersion = "0.68.0";
private const string MockMinimumVersion = "0.69.0";

private readonly string port;

Expand Down

0 comments on commit c5b9417

Please sign in to comment.