Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removes unused imports, alphabetizes, and removes some comments #2112

Merged
merged 1 commit into from
Jul 13, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion src/Stripe.net/Entities/Accounts/AccountBusinessProfile.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
namespace Stripe
{
using Newtonsoft.Json;
using Stripe.Infrastructure;

public class AccountBusinessProfile : StripeEntity<AccountBusinessProfile>
{
Expand Down
3 changes: 0 additions & 3 deletions src/Stripe.net/Entities/Cards/Card.cs
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,6 @@ public Customer Customer
[JsonProperty("deleted", NullValueHandling = NullValueHandling.Ignore)]
public bool? Deleted { get; set; }

// This property is not returned as part of standard API requests.
[JsonProperty("description")]
public string Description { get; set; }

Expand All @@ -121,11 +120,9 @@ public Customer Customer
[JsonProperty("funding")]
public string Funding { get; set; }

// This property is not returned as part of standard API requests.
[JsonProperty("iin")]
public string Iin { get; set; }

// This property is not returned as part of standard API requests.
[JsonProperty("issuer")]
public string Issuer { get; set; }

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
namespace Stripe
{
using Newtonsoft.Json;
using Stripe.Infrastructure;

public class ChargePaymentMethodDetailsCard : StripeEntity<ChargePaymentMethodDetailsCard>
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
namespace Stripe
{
using Newtonsoft.Json;
using Stripe.Infrastructure;

public class ChargePaymentMethodDetailsCardPresent : StripeEntity<ChargePaymentMethodDetailsCardPresent>
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
namespace Stripe
{
using Newtonsoft.Json;
using Stripe.Infrastructure;

public class ChargePaymentMethodDetailsCardWalletMasterpass : StripeEntity<ChargePaymentMethodDetailsCardWalletMasterpass>
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
namespace Stripe
{
using Newtonsoft.Json;
using Stripe.Infrastructure;

public class ChargePaymentMethodDetailsCardWalletVisaCheckout : StripeEntity<ChargePaymentMethodDetailsCardWalletVisaCheckout>
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
namespace Stripe
{
using Newtonsoft.Json;
using Stripe.Infrastructure;

public class ChargePaymentMethodDetailsInteracPresent : StripeEntity<ChargePaymentMethodDetailsInteracPresent>
{
Expand Down
1 change: 0 additions & 1 deletion src/Stripe.net/Entities/Disputes/Dispute.cs
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ public Charge Charge
[JsonProperty("metadata")]
public Dictionary<string, string> Metadata { get; set; }

// This property is not returned as part of standard API requests.
[JsonProperty("network_reason_code")]
public string NetworkReasonCode { get; set; }

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
namespace Stripe
{
using Newtonsoft.Json;
using Stripe.Infrastructure;

public class PaymentIntentPaymentMethodOptionsCard : StripeEntity<PaymentIntentPaymentMethodOptionsCard>
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ namespace Stripe
{
using System.Collections.Generic;
using Newtonsoft.Json;
using Stripe.Infrastructure;

public class PaymentIntentPaymentMethodOptionsCardInstallments : StripeEntity<PaymentIntentPaymentMethodOptionsCardInstallments>
{
Expand Down
4 changes: 0 additions & 4 deletions src/Stripe.net/Entities/Sources/SourceAlipay.cs
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
namespace Stripe
{
using Newtonsoft.Json;

public class SourceAlipay : StripeEntity<SourceAlipay>
{
// The Alipay sources do not have any specific property today.
// The only ones available in the spec are used for mobile SDKs.
}
}
4 changes: 0 additions & 4 deletions src/Stripe.net/Entities/Sources/SourceEps.cs
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
namespace Stripe
{
using Newtonsoft.Json;

public class SourceEps : StripeEntity<SourceEps>
{
// The Eps sources do not have any specific property today.
// The only ones available in the spec are for private betas.
}
}
1 change: 0 additions & 1 deletion src/Stripe.net/Entities/Sources/SourceOwner.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
namespace Stripe
{
using Newtonsoft.Json;
using Stripe.Infrastructure;

public class SourceOwner : StripeEntity<SourceOwner>
{
Expand Down
1 change: 0 additions & 1 deletion src/Stripe.net/Services/Capabilities/CapabilityService.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
namespace Stripe
{
using System;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
namespace Stripe.Checkout
{
using System;
using Newtonsoft.Json;

public class SessionPaymentIntentTransferDataOptions : INestedOptions
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,6 @@ namespace Stripe

public class InvoiceSubscriptionItemOptions : BaseOptions, IHasId, IHasMetadata
{
/// <summary>
/// Subscription item to update.
/// </summary>
[JsonProperty("id")]
public string Id { get; set; }

/// <summary>
/// Define thresholds at which an invoice will be sent, and the subscription advanced to a
/// new billing period.
Expand All @@ -31,6 +25,12 @@ public class InvoiceSubscriptionItemOptions : BaseOptions, IHasId, IHasMetadata
[JsonProperty("deleted")]
public bool? Deleted { get; set; }

/// <summary>
/// Subscription item to update.
/// </summary>
[JsonProperty("id")]
public string Id { get; set; }

/// <summary>
/// A set of key/value pairs that you can attach to a charge object. It can be useful for
/// storing additional information about the customer in a structured format. It's often a
Expand Down
1 change: 0 additions & 1 deletion src/Stripe.net/Services/Persons/PersonService.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
namespace Stripe
{
using System;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
Expand Down
1 change: 0 additions & 1 deletion src/Stripe.net/Services/Skus/InventoryOptions.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
namespace Stripe
{
using System.Collections.Generic;
using Newtonsoft.Json;

public class InventoryOptions : INestedOptions
Expand Down
1 change: 0 additions & 1 deletion src/Stripe.net/Services/TaxIds/TaxIdService.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
namespace Stripe
{
using System;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
namespace Stripe
{
using System;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
Expand Down