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

Fix all classes not inheriting from the generic version of StripeEntity #1788

Merged
merged 1 commit into from
Sep 20, 2019
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
2 changes: 1 addition & 1 deletion src/Stripe.net/Entities/Capabilities/Capability.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ namespace Stripe
using Newtonsoft.Json;
using Stripe.Infrastructure;

public class Capability : StripeEntity, IHasId, IHasObject
public class Capability : StripeEntity<Capability>, IHasId, IHasObject
{
/// <summary>
/// Unique identifier for the object.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ namespace Stripe
using Newtonsoft.Json;
using Stripe.Infrastructure;

public class CapabilityRequirements : StripeEntity
public class CapabilityRequirements : StripeEntity<CapabilityRequirements>
{
/// <summary>
/// The date the fields in <c>currently_due</c> must be collected by to keep the capability
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ namespace Stripe
using Newtonsoft.Json;
using Stripe.Infrastructure;

public class ChargePaymentMethodDetails : StripeEntity
public class ChargePaymentMethodDetails : StripeEntity<ChargePaymentMethodDetails>
{
[JsonProperty("ach_credit_transfer")]
public ChargePaymentMethodDetailsAchCreditTransfer AchCreditTransfer { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ namespace Stripe
using Newtonsoft.Json;
using Stripe.Infrastructure;

public class ChargePaymentMethodDetailsAchCreditTransfer : StripeEntity
public class ChargePaymentMethodDetailsAchCreditTransfer : StripeEntity<ChargePaymentMethodDetailsAchCreditTransfer>
{
[JsonProperty("account_number")]
public string AccountNumber { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ namespace Stripe
using Newtonsoft.Json;
using Stripe.Infrastructure;

public class ChargePaymentMethodDetailsAchDebit : StripeEntity
public class ChargePaymentMethodDetailsAchDebit : StripeEntity<ChargePaymentMethodDetailsAchDebit>
{
[JsonProperty("account_holder_type")]
public string AccountHolderType { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ namespace Stripe
using Newtonsoft.Json;
using Stripe.Infrastructure;

public class ChargePaymentMethodDetailsAcssDebit : StripeEntity
public class ChargePaymentMethodDetailsAcssDebit : StripeEntity<ChargePaymentMethodDetailsAcssDebit>
{
[JsonProperty("country")]
public string Country { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ namespace Stripe
using Newtonsoft.Json;
using Stripe.Infrastructure;

public class ChargePaymentMethodDetailsAlipay : StripeEntity
public class ChargePaymentMethodDetailsAlipay : StripeEntity<ChargePaymentMethodDetailsAlipay>
{
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ namespace Stripe
using Newtonsoft.Json;
using Stripe.Infrastructure;

public class ChargePaymentMethodDetailsBancontact : StripeEntity
public class ChargePaymentMethodDetailsBancontact : StripeEntity<ChargePaymentMethodDetailsBancontact>
{
[JsonProperty("bank_code")]
public string BankCode { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ namespace Stripe
using Newtonsoft.Json;
using Stripe.Infrastructure;

public class ChargePaymentMethodDetailsBitcoin : StripeEntity
public class ChargePaymentMethodDetailsBitcoin : StripeEntity<ChargePaymentMethodDetailsBitcoin>
{
[JsonProperty("address")]
public string Address { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ namespace Stripe
using Newtonsoft.Json;
using Stripe.Infrastructure;

public class ChargePaymentMethodDetailsCard : StripeEntity
public class ChargePaymentMethodDetailsCard : StripeEntity<ChargePaymentMethodDetailsCard>
{
/// <summary>
/// Card brand. Can be <c>amex</c>, <c>diners</c>, <c>discover</c>, <c>jcb</c>,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ namespace Stripe
{
using Newtonsoft.Json;

public class ChargePaymentMethodDetailsCardChecks : StripeEntity
public class ChargePaymentMethodDetailsCardChecks : StripeEntity<ChargePaymentMethodDetailsCardChecks>
{
[JsonProperty("address_line1_check")]
public string AddressLine1Check { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ namespace Stripe
using Newtonsoft.Json;
using Stripe.Infrastructure;

public class ChargePaymentMethodDetailsCardPresent : StripeEntity
public class ChargePaymentMethodDetailsCardPresent : StripeEntity<ChargePaymentMethodDetailsCardPresent>
{
[JsonProperty("brand")]
public string Brand { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ namespace Stripe
using Newtonsoft.Json;
using Stripe.Infrastructure;

public class ChargePaymentMethodDetailsCardPresentReceipt : StripeEntity
public class ChargePaymentMethodDetailsCardPresentReceipt : StripeEntity<ChargePaymentMethodDetailsCardPresentReceipt>
{
[JsonProperty("application_cryptogram")]
public string ApplicationCryptogram { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ namespace Stripe
using Newtonsoft.Json;
using Stripe.Infrastructure;

public class ChargePaymentMethodDetailsCardThreeDSecure : StripeEntity
public class ChargePaymentMethodDetailsCardThreeDSecure : StripeEntity<ChargePaymentMethodDetailsCardThreeDSecure>
{
/// <summary>
/// Whether or not authentication was performed. 3D Secure will succeed without
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ namespace Stripe
using Newtonsoft.Json;
using Stripe.Infrastructure;

public class ChargePaymentMethodDetailsCardWallet : StripeEntity
public class ChargePaymentMethodDetailsCardWallet : StripeEntity<ChargePaymentMethodDetailsCardWallet>
{
[JsonProperty("amex_express_checkout")]
public ChargePaymentMethodDetailsCardWalletAmexExpressCheckout AmexExpressCheckout { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ namespace Stripe
using Newtonsoft.Json;
using Stripe.Infrastructure;

public class ChargePaymentMethodDetailsCardWalletAmexExpressCheckout : StripeEntity
public class ChargePaymentMethodDetailsCardWalletAmexExpressCheckout : StripeEntity<ChargePaymentMethodDetailsCardWalletAmexExpressCheckout>
{
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ namespace Stripe
using Newtonsoft.Json;
using Stripe.Infrastructure;

public class ChargePaymentMethodDetailsCardWalletApplePay : StripeEntity
public class ChargePaymentMethodDetailsCardWalletApplePay : StripeEntity<ChargePaymentMethodDetailsCardWalletApplePay>
{
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ namespace Stripe
using Newtonsoft.Json;
using Stripe.Infrastructure;

public class ChargePaymentMethodDetailsCardWalletGooglePay : StripeEntity
public class ChargePaymentMethodDetailsCardWalletGooglePay : StripeEntity<ChargePaymentMethodDetailsCardWalletGooglePay>
{
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ namespace Stripe
using Newtonsoft.Json;
using Stripe.Infrastructure;

public class ChargePaymentMethodDetailsCardWalletMasterpass : StripeEntity
public class ChargePaymentMethodDetailsCardWalletMasterpass : StripeEntity<ChargePaymentMethodDetailsCardWalletMasterpass>
{
[JsonProperty("billing_address")]
public Address BillingAddress { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ namespace Stripe
using Newtonsoft.Json;
using Stripe.Infrastructure;

public class ChargePaymentMethodDetailsCardWalletSamsungPay : StripeEntity
public class ChargePaymentMethodDetailsCardWalletSamsungPay : StripeEntity<ChargePaymentMethodDetailsCardWalletSamsungPay>
{
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ namespace Stripe
using Newtonsoft.Json;
using Stripe.Infrastructure;

public class ChargePaymentMethodDetailsCardWalletVisaCheckout : StripeEntity
public class ChargePaymentMethodDetailsCardWalletVisaCheckout : StripeEntity<ChargePaymentMethodDetailsCardWalletVisaCheckout>
{
[JsonProperty("billing_address")]
public Address BillingAddress { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ namespace Stripe
using Newtonsoft.Json;
using Stripe.Infrastructure;

public class ChargePaymentMethodDetailsEps : StripeEntity
public class ChargePaymentMethodDetailsEps : StripeEntity<ChargePaymentMethodDetailsEps>
{
[JsonProperty("verified_name")]
public string VerifiedName { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ namespace Stripe
using Newtonsoft.Json;
using Stripe.Infrastructure;

public class ChargePaymentMethodDetailsGiropay : StripeEntity
public class ChargePaymentMethodDetailsGiropay : StripeEntity<ChargePaymentMethodDetailsGiropay>
{
[JsonProperty("bank_code")]
public string BankCode { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ namespace Stripe
using Newtonsoft.Json;
using Stripe.Infrastructure;

public class ChargePaymentMethodDetailsIdeal : StripeEntity
public class ChargePaymentMethodDetailsIdeal : StripeEntity<ChargePaymentMethodDetailsIdeal>
{
[JsonProperty("bank")]
public string BankCode { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ namespace Stripe
using Newtonsoft.Json;
using Stripe.Infrastructure;

public class ChargePaymentMethodDetailsKlarna : StripeEntity
public class ChargePaymentMethodDetailsKlarna : StripeEntity<ChargePaymentMethodDetailsKlarna>
{
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ namespace Stripe
using Newtonsoft.Json;
using Stripe.Infrastructure;

public class ChargePaymentMethodDetailsMultibanco : StripeEntity
public class ChargePaymentMethodDetailsMultibanco : StripeEntity<ChargePaymentMethodDetailsMultibanco>
{
[JsonProperty("entity")]
public string Entity { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ namespace Stripe
using Newtonsoft.Json;
using Stripe.Infrastructure;

public class ChargePaymentMethodDetailsP24 : StripeEntity
public class ChargePaymentMethodDetailsP24 : StripeEntity<ChargePaymentMethodDetailsP24>
{
[JsonProperty("reference")]
public string Reference { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ namespace Stripe
using Newtonsoft.Json;
using Stripe.Infrastructure;

public class ChargePaymentMethodDetailsSepaDebit : StripeEntity
public class ChargePaymentMethodDetailsSepaDebit : StripeEntity<ChargePaymentMethodDetailsSepaDebit>
{
[JsonProperty("bank_code")]
public string BankCode { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ namespace Stripe
using Newtonsoft.Json;
using Stripe.Infrastructure;

public class ChargePaymentMethodDetailsSofort : StripeEntity
public class ChargePaymentMethodDetailsSofort : StripeEntity<ChargePaymentMethodDetailsSofort>
{
[JsonProperty("bank_code")]
public string BankCode { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ namespace Stripe
using Newtonsoft.Json;
using Stripe.Infrastructure;

public class ChargePaymentMethodDetailsStripeAccount : StripeEntity
public class ChargePaymentMethodDetailsStripeAccount : StripeEntity<ChargePaymentMethodDetailsStripeAccount>
{
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ namespace Stripe
using Newtonsoft.Json;
using Stripe.Infrastructure;

public class ChargePaymentMethodDetailsWechat : StripeEntity
public class ChargePaymentMethodDetailsWechat : StripeEntity<ChargePaymentMethodDetailsWechat>
{
}
}
2 changes: 1 addition & 1 deletion src/Stripe.net/Entities/Checkout/Sessions/Session.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ namespace Stripe.Checkout
using Newtonsoft.Json;
using Stripe.Infrastructure;

public class Session : StripeEntity, IHasId, IHasObject
public class Session : StripeEntity<Session>, IHasId, IHasObject
{
/// <summary>
/// Unique identifier for the object.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ namespace Stripe
{
using Newtonsoft.Json;

public class SessionDisplayItem : StripeEntity
public class SessionDisplayItem : StripeEntity<SessionDisplayItem>
{
/// <summary>
/// Amount for the display item.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ namespace Stripe
using System.Collections.Generic;
using Newtonsoft.Json;

public class SessionDisplayItemCustom : StripeEntity
public class SessionDisplayItemCustom : StripeEntity<SessionDisplayItemCustom>
{
/// <summary>
/// The description of the line item.
Expand Down
2 changes: 1 addition & 1 deletion src/Stripe.net/Entities/CreditNote.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ namespace Stripe
using Newtonsoft.Json;
using Stripe.Infrastructure;

public class CreditNote : StripeEntity, IHasId, IHasMetadata, IHasObject
public class CreditNote : StripeEntity<CreditNote>, IHasId, IHasMetadata, IHasObject
{
/// <summary>
/// Unique identifier for the object.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ namespace Stripe
using Newtonsoft.Json;
using Stripe.Infrastructure;

public class CustomerBalanceTransaction : StripeEntity, IHasId, IHasMetadata, IHasObject
public class CustomerBalanceTransaction : StripeEntity<CustomerBalanceTransaction>, IHasId, IHasMetadata, IHasObject
{
/// <summary>
/// Unique identifier for the object.
Expand Down
2 changes: 1 addition & 1 deletion src/Stripe.net/Entities/Invoices/InvoiceCustomerTaxId.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ namespace Stripe
using Newtonsoft.Json;
using Stripe.Infrastructure;

public class InvoiceCustomerTaxId : StripeEntity
public class InvoiceCustomerTaxId : StripeEntity<InvoiceCustomerTaxId>
{
/// <summary>
/// Type of the tax ID, one of <c>eu_vat</c>, <c>nz_gst</c>, <c>au_abn</c>, or
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ namespace Stripe
using Newtonsoft.Json;
using Stripe.Infrastructure;

public class InvoiceStatusTransitions : StripeEntity
public class InvoiceStatusTransitions : StripeEntity<InvoiceStatusTransitions>
{
[JsonProperty("finalized_at")]
[JsonConverter(typeof(DateTimeConverter))]
Expand Down
2 changes: 1 addition & 1 deletion src/Stripe.net/Entities/Invoices/InvoiceTaxAmount.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ namespace Stripe
using Newtonsoft.Json;
using Stripe.Infrastructure;

public class InvoiceTaxAmount : StripeEntity
public class InvoiceTaxAmount : StripeEntity<InvoiceTaxAmount>
{
/// <summary>
/// The amount, in cents, of the tax.
Expand Down
2 changes: 1 addition & 1 deletion src/Stripe.net/Entities/PaymentMethods/BillingDetails.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ namespace Stripe
{
using Newtonsoft.Json;

public class BillingDetails : StripeEntity
public class BillingDetails : StripeEntity<BillingDetails>
{
[JsonProperty("address")]
public Address Address { get; set; }
Expand Down
2 changes: 1 addition & 1 deletion src/Stripe.net/Entities/PaymentMethods/PaymentMethod.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ namespace Stripe
using Newtonsoft.Json;
using Stripe.Infrastructure;

public class PaymentMethod : StripeEntity, IHasId, IHasMetadata, IHasObject
public class PaymentMethod : StripeEntity<PaymentMethod>, IHasId, IHasMetadata, IHasObject
{
[JsonProperty("id")]
public string Id { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ namespace Stripe
{
using Newtonsoft.Json;

public class PaymentMethodCard : StripeEntity
public class PaymentMethodCard : StripeEntity<PaymentMethodCard>
{
[JsonProperty("brand")]
public string Brand { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ namespace Stripe
{
using Newtonsoft.Json;

public class PaymentMethodCardChecks : StripeEntity
public class PaymentMethodCardChecks : StripeEntity<PaymentMethodCardChecks>
{
[JsonProperty("address_line1_check")]
public string AddressLine1Check { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ namespace Stripe
{
using Newtonsoft.Json;

public class PaymentMethodCardPresent : StripeEntity
public class PaymentMethodCardPresent : StripeEntity<PaymentMethodCardPresent>
{
}
}
Loading