Skip to content

Commit

Permalink
Merge pull request #1937 from stripe/remi-add-new-api-version
Browse files Browse the repository at this point in the history
Move to API version `2020-03-02` and remove deprecated properties
  • Loading branch information
remi-stripe authored Mar 3, 2020
2 parents 47acaca + 623c817 commit 3fff04f
Show file tree
Hide file tree
Showing 7 changed files with 3 additions and 27 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.82.0
STRIPE_MOCK_VERSION: 0.83.0

deploy:
- provider: NuGet
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,14 +61,6 @@ public class ChargePaymentMethodDetailsCardPresent : StripeEntity<ChargePaymentM
[JsonProperty("generated_card")]
public string GeneratedCard { get; set; }

[Obsolete("Use GeneratedCard instead.")]
[JsonIgnore]
public string GeneratedCardId
{
get => this.GeneratedCard;
set => this.GeneratedCardId = value;
}

/// <summary>
/// The last four digits of the card.
/// </summary>
Expand Down
8 changes: 0 additions & 8 deletions src/Stripe.net/Entities/WebhookEndpoints/WebhookEndpoint.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,6 @@ public class WebhookEndpoint : StripeEntity<WebhookEndpoint>, IHasId, IHasObject
[JsonProperty("application")]
public string Application { get; set; }

[Obsolete("Use Application instead")]
[JsonIgnore]
public string ApplicationId
{
get => this.Application;
set => this.Application = value;
}

[Obsolete("This property was never returned. Use Application instead")]
[JsonProperty("connect")]
public bool Connect { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ static StripeConfiguration()
}

/// <summary>API version used by Stripe.net.</summary>
public static string ApiVersion => "2019-12-03";
public static string ApiVersion => "2020-03-02";

/// <summary>Gets or sets the API key.</summary>
/// <remarks>
Expand Down
4 changes: 0 additions & 4 deletions src/Stripe.net/Services/Charges/ChargeListOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,6 @@ public class ChargeListOptions : ListOptionsWithCreated
[JsonProperty("payment_intent")]
public string PaymentIntent { get; set; }

[Obsolete("This parameter is deprecated. Filter the returned list of charges instead.")]
[JsonProperty("source")]
public ChargeSourceListOptions Source { get; set; }

/// <summary>
/// Only return charges for this transfer group.
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,6 @@ public class AuthorizationControlsOptions : INestedOptions
[JsonProperty("blocked_categories")]
public List<string> BlockedCategories { get; set; }

[Obsolete("Use SpendingLimits instead.")]
[JsonProperty("max_amount")]
public long? MaxAmount { get; set; }

/// <summary>
/// Maximum count of approved authorizations on this card. Counts all authorizations
/// retroactively.
Expand Down
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.82.0";
private const string MockMinimumVersion = "0.83.0";

private readonly string port;

Expand Down

0 comments on commit 3fff04f

Please sign in to comment.