Skip to content

Commit bfdf08b

Browse files
committed
Remove more deprecated stuff
1 parent 06e0756 commit bfdf08b

File tree

6 files changed

+0
-59
lines changed

6 files changed

+0
-59
lines changed

src/Stripe.net/Entities/Issuing/Cards/Card.cs

-4
Original file line numberDiff line numberDiff line change
@@ -139,9 +139,5 @@ public Card ReplacementFor
139139
/// </summary>
140140
[JsonProperty("type")]
141141
public string Type { get; set; }
142-
143-
[Obsolete("This property has never been filled and should be ignored.")]
144-
[JsonProperty("billing")]
145-
public Billing Billing { get; set; }
146142
}
147143
}

src/Stripe.net/Entities/Plans/PlanTier.cs

-8
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,5 @@ public class PlanTier : StripeEntity<PlanTier>
3636
/// </summary>
3737
[JsonProperty("up_to")]
3838
public long? UpTo { get; set; }
39-
40-
[Obsolete("Use UnitAmountDecimal instead")]
41-
[JsonIgnore]
42-
public decimal? UnitAmountDecinal
43-
{
44-
get => this.UnitAmountDecimal;
45-
set => this.UnitAmountDecimal = value;
46-
}
4739
}
4840
}

src/Stripe.net/Entities/Sources/SourceAuBecsDebit.cs

-8
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,12 @@ namespace Stripe
55

66
public class SourceAuBecsDebit : StripeEntity<SourceAuBecsDebit>
77
{
8-
[Obsolete("This property is deprecated, Account Number will not be returned from Stripe API.")]
9-
[JsonProperty("account_number")]
10-
public string AccountNumber { get; set; }
11-
128
[JsonProperty("bsb_number")]
139
public string BsbNumber { get; set; }
1410

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

18-
[Obsolete("This property is deprecated, please use Last4 going forward.")]
19-
[JsonProperty("last3")]
20-
public string Last3 { get; set; }
21-
2214
[JsonProperty("last4")]
2315
public string Last4 { get; set; }
2416
}

src/Stripe.net/Infrastructure/Public/StripeResponse.cs

-20
Original file line numberDiff line numberDiff line change
@@ -45,26 +45,6 @@ public StripeResponse(HttpStatusCode statusCode, HttpResponseHeaders headers, st
4545
/// <value>The ID of the request, as returned by Stripe.</value>
4646
public string RequestId => MaybeGetHeader(this.Headers, "Request-Id");
4747

48-
/// <summary>
49-
/// Gets the body of the response.
50-
/// This method is deprecated and will be removed in a future version, please use the
51-
/// <see cref="Content"/> property getter instead.
52-
/// </summary>
53-
/// <value>The body of the response.</value>
54-
// TODO: remove this in a future a major version
55-
[Obsolete("Use Content instead")]
56-
public string ResponseJson => this.Content;
57-
58-
/// <summary>
59-
/// Gets the date of the request, as returned by Stripe.
60-
/// This method is deprecated and will be removed in a future version, please use the
61-
/// <see cref="Date"/> property getter instead.
62-
/// </summary>
63-
/// <value>The date of the request, as returned by Stripe.</value>
64-
// TODO: remove this in a future a major version
65-
[Obsolete("Use Date instead")]
66-
public DateTime RequestDate => this.Date?.DateTime ?? default(DateTime);
67-
6848
internal int NumRetries { get; set; }
6949

7050
/// <summary>Returns a string that represents the <see cref="StripeResponse"/>.</summary>

src/Stripe.net/Services/_common/RequestOptions.cs

-18
Original file line numberDiff line numberDiff line change
@@ -23,24 +23,6 @@ public class RequestOptions
2323
/// </summary>
2424
public string StripeAccount { get; set; }
2525

26-
/// <summary>
27-
/// <para>
28-
/// Get or sets the
29-
/// <a href="https://stripe.com/docs/connect/authentication#authentication-via-the-stripe-account-header">ID
30-
/// of the connected account</a> to use for the request.
31-
/// </para>
32-
/// <para>
33-
/// This property is deprecated and will be removed in a future version, please use the
34-
/// <see cref="StripeAccount"/> property accessors instead.
35-
/// </para>
36-
/// </summary>
37-
[Obsolete("Use StripeAccount instead.")]
38-
public string StripeConnectAccountId
39-
{
40-
get => this.StripeAccount;
41-
set => this.StripeAccount = value;
42-
}
43-
4426
/// <summary>Gets or sets the base URL for the request.</summary>
4527
/// <remarks>
4628
/// This is an internal property. It is set by services or individual request methods when

src/StripeTests/Entities/Plans/PlanTest.cs

-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ public void DeserializePlanTier()
5353
Assert.NotNull(plan.Id);
5454
Assert.Equal("plan", plan.Object);
5555
Assert.Equal(199, plan.Tiers[0].UnitAmountDecimal);
56-
Assert.Equal(199, plan.Tiers[0].UnitAmountDecinal);
5756
}
5857
}
5958
}

0 commit comments

Comments
 (0)