Skip to content

Commit

Permalink
Remove more deprecated stuff (#1802)
Browse files Browse the repository at this point in the history
  • Loading branch information
ob-stripe committed Oct 8, 2019
1 parent 501cf81 commit b1f26dd
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 59 deletions.
4 changes: 0 additions & 4 deletions src/Stripe.net/Entities/Issuing/Cards/Card.cs
Original file line number Diff line number Diff line change
Expand Up @@ -139,9 +139,5 @@ public Card ReplacementFor
/// </summary>
[JsonProperty("type")]
public string Type { get; set; }

[Obsolete("This property has never been filled and should be ignored.")]
[JsonProperty("billing")]
public Billing Billing { get; set; }
}
}
8 changes: 0 additions & 8 deletions src/Stripe.net/Entities/Plans/PlanTier.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,5 @@ public class PlanTier : StripeEntity<PlanTier>
/// </summary>
[JsonProperty("up_to")]
public long? UpTo { get; set; }

[Obsolete("Use UnitAmountDecimal instead")]
[JsonIgnore]
public decimal? UnitAmountDecinal
{
get => this.UnitAmountDecimal;
set => this.UnitAmountDecimal = value;
}
}
}
8 changes: 0 additions & 8 deletions src/Stripe.net/Entities/Sources/SourceAuBecsDebit.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,12 @@ namespace Stripe

public class SourceAuBecsDebit : StripeEntity<SourceAuBecsDebit>
{
[Obsolete("This property is deprecated, Account Number will not be returned from Stripe API.")]
[JsonProperty("account_number")]
public string AccountNumber { get; set; }

[JsonProperty("bsb_number")]
public string BsbNumber { get; set; }

[JsonProperty("fingerprint")]
public string Fingerprint { get; set; }

[Obsolete("This property is deprecated, please use Last4 going forward.")]
[JsonProperty("last3")]
public string Last3 { get; set; }

[JsonProperty("last4")]
public string Last4 { get; set; }
}
Expand Down
20 changes: 0 additions & 20 deletions src/Stripe.net/Infrastructure/Public/StripeResponse.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,26 +45,6 @@ public StripeResponse(HttpStatusCode statusCode, HttpResponseHeaders headers, st
/// <value>The ID of the request, as returned by Stripe.</value>
public string RequestId => MaybeGetHeader(this.Headers, "Request-Id");

/// <summary>
/// Gets the body of the response.
/// This method is deprecated and will be removed in a future version, please use the
/// <see cref="Content"/> property getter instead.
/// </summary>
/// <value>The body of the response.</value>
// TODO: remove this in a future a major version
[Obsolete("Use Content instead")]
public string ResponseJson => this.Content;

/// <summary>
/// Gets the date of the request, as returned by Stripe.
/// This method is deprecated and will be removed in a future version, please use the
/// <see cref="Date"/> property getter instead.
/// </summary>
/// <value>The date of the request, as returned by Stripe.</value>
// TODO: remove this in a future a major version
[Obsolete("Use Date instead")]
public DateTime RequestDate => this.Date?.DateTime ?? default(DateTime);

internal int NumRetries { get; set; }

/// <summary>Returns a string that represents the <see cref="StripeResponse"/>.</summary>
Expand Down
18 changes: 0 additions & 18 deletions src/Stripe.net/Services/_common/RequestOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,24 +23,6 @@ public class RequestOptions
/// </summary>
public string StripeAccount { get; set; }

/// <summary>
/// <para>
/// Get or sets the
/// <a href="https://stripe.com/docs/connect/authentication#authentication-via-the-stripe-account-header">ID
/// of the connected account</a> to use for the request.
/// </para>
/// <para>
/// This property is deprecated and will be removed in a future version, please use the
/// <see cref="StripeAccount"/> property accessors instead.
/// </para>
/// </summary>
[Obsolete("Use StripeAccount instead.")]
public string StripeConnectAccountId
{
get => this.StripeAccount;
set => this.StripeAccount = value;
}

/// <summary>Gets or sets the base URL for the request.</summary>
/// <remarks>
/// This is an internal property. It is set by services or individual request methods when
Expand Down
1 change: 0 additions & 1 deletion src/StripeTests/Entities/Plans/PlanTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ public void DeserializePlanTier()
Assert.NotNull(plan.Id);
Assert.Equal("plan", plan.Object);
Assert.Equal(199, plan.Tiers[0].UnitAmountDecimal);
Assert.Equal(199, plan.Tiers[0].UnitAmountDecinal);
}
}
}

0 comments on commit b1f26dd

Please sign in to comment.