Skip to content

Commit 1102da7

Browse files
committed
Remove deprecated features
Remove deprecated API features * Remove `Percentage` filter when listing `TaxRate` as this does not work * Remove `Country` and `RoutingNumber` from `ChargePaymentMethodDetailsAcssDebit` * Remove `RenewalInterval` on `SubscriptionSchedule` * Rename `Parameters` to `ReportRunParameters` on `ReportRun`
1 parent 4ff93af commit 1102da7

File tree

6 files changed

+2
-43
lines changed

6 files changed

+2
-43
lines changed

src/Stripe.net/Entities/Charges/ChargePaymentMethodDetails/ChargePaymentMethodDetailsAcssDebit.cs

-6
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,10 @@ namespace Stripe
55

66
public class ChargePaymentMethodDetailsAcssDebit : StripeEntity<ChargePaymentMethodDetailsAcssDebit>
77
{
8-
[JsonProperty("country")]
9-
public string Country { get; set; }
10-
118
[JsonProperty("fingerprint")]
129
public string Fingerprint { get; set; }
1310

1411
[JsonProperty("last4")]
1512
public string Last4 { get; set; }
16-
17-
[JsonProperty("routing_number")]
18-
public string RoutingNumber { get; set; }
1913
}
2014
}

src/Stripe.net/Entities/Reporting/ReportRuns/ReportRun.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public class ReportRun : StripeEntity<ReportRun>, IHasId, IHasObject
2424
public bool Livemode { get; set; }
2525

2626
[JsonProperty("parameters")]
27-
public Parameters Parameters { get; set; }
27+
public ReportRunParameters Parameters { get; set; }
2828

2929
[JsonProperty("report_type")]
3030
public string ReportType { get; set; }

src/Stripe.net/Entities/Reporting/ReportRuns/Parameters.cs src/Stripe.net/Entities/Reporting/ReportRuns/ReportRunParameters.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ namespace Stripe.Reporting
55
using Newtonsoft.Json;
66
using Stripe.Infrastructure;
77

8-
public class Parameters : StripeEntity<Parameters>
8+
public class ReportRunParameters : StripeEntity<ReportRunParameters>
99
{
1010
[JsonProperty("columns")]
1111
public List<string> Columns { get; set; }

src/Stripe.net/Entities/SubscriptionSchedules/SubscriptionSchedule.cs

-7
Original file line numberDiff line numberDiff line change
@@ -123,13 +123,6 @@ public Customer Customer
123123
[JsonProperty("released_subscription")]
124124
public string ReleasedSubscriptionId { get; set; }
125125

126-
/// <summary>
127-
/// Interval and duration at which the subscription schedule renews for when it ends if
128-
/// <c>renewal_behavior</c> is <c>renew</c>.
129-
/// </summary>
130-
[JsonProperty("renewal_interval")]
131-
public SubscriptionScheduleRenewalInterval RenewalInterval { get; set; }
132-
133126
/// <summary>
134127
/// Possible values are <c>active</c>, <c>canceled</c>, <c>completed</c>,
135128
/// <c>not_started</c> and <c>released</c>.

src/Stripe.net/Entities/SubscriptionSchedules/SubscriptionScheduleRenewalInterval.cs

-20
This file was deleted.

src/Stripe.net/Services/TaxRates/TaxRateListOptions.cs

-8
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,5 @@ public class TaxRateListOptions : ListOptionsWithCreated
1616
/// </summary>
1717
[JsonProperty("inclusive")]
1818
public bool? Inclusive { get; set; }
19-
20-
/// <summary>
21-
/// A filter on the list based on the object <c>percentage</c> field. The value can be a
22-
/// <see cref="decimal"/> or a <see cref="TaxRatePercentageRangeOptions"/>.
23-
/// </summary>
24-
[JsonProperty("percentage")]
25-
[JsonConverter(typeof(AnyOfConverter))]
26-
public AnyOf<decimal?, TaxRatePercentageRangeOptions> Percentage { get; set; }
2719
}
2820
}

0 commit comments

Comments
 (0)