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

[codegen] Multiple API changes #2250

Merged
merged 1 commit into from
Nov 17, 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
8 changes: 4 additions & 4 deletions src/Stripe.net/Entities/Cards/Card.cs
Original file line number Diff line number Diff line change
Expand Up @@ -188,8 +188,8 @@ public Customer Customer
public bool? Deleted { get; set; }

/// <summary>
/// Card description. (For internal use only and not typically available in standard API
/// requests.).
/// A high-level description of the type of cards issued in this range. (For internal use
/// only and not typically available in standard API requests.).
/// </summary>
[JsonProperty("description")]
public string Description { get; set; }
Expand Down Expand Up @@ -236,8 +236,8 @@ public Customer Customer
public string Iin { get; set; }

/// <summary>
/// Issuer bank name of the card. (For internal use only and not typically available in
/// standard API requests.).
/// The name of the card's issuing bank. (For internal use only and not typically available
/// in standard API requests.).
/// </summary>
[JsonProperty("issuer")]
public string Issuer { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ public class ChargePaymentMethodDetailsCard : StripeEntity<ChargePaymentMethodDe
public string Country { get; set; }

/// <summary>
/// Card description. (For internal use only and not typically available in standard API
/// requests.).
/// A high-level description of the type of cards issued in this range. (For internal use
/// only and not typically available in standard API requests.).
/// </summary>
[JsonProperty("description")]
public string Description { get; set; }
Expand Down Expand Up @@ -77,8 +77,8 @@ public class ChargePaymentMethodDetailsCard : StripeEntity<ChargePaymentMethodDe
public ChargePaymentMethodDetailsCardInstallments Installments { get; set; }

/// <summary>
/// Issuer bank name of the card. (For internal use only and not typically available in
/// standard API requests.).
/// The name of the card's issuing bank. (For internal use only and not typically available
/// in standard API requests.).
/// </summary>
[JsonProperty("issuer")]
public string Issuer { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ public class ChargePaymentMethodDetailsCardPresent : StripeEntity<ChargePaymentM
public string Country { get; set; }

/// <summary>
/// Card description. (For internal use only and not typically available in standard API
/// requests.).
/// A high-level description of the type of cards issued in this range. (For internal use
/// only and not typically available in standard API requests.).
/// </summary>
[JsonProperty("description")]
public string Description { get; set; }
Expand Down Expand Up @@ -84,8 +84,8 @@ public class ChargePaymentMethodDetailsCardPresent : StripeEntity<ChargePaymentM
public string Iin { get; set; }

/// <summary>
/// Issuer bank name of the card. (For internal use only and not typically available in
/// standard API requests.).
/// The name of the card's issuing bank. (For internal use only and not typically available
/// in standard API requests.).
/// </summary>
[JsonProperty("issuer")]
public string Issuer { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ public class ChargePaymentMethodDetailsInteracPresent : StripeEntity<ChargePayme
public string Country { get; set; }

/// <summary>
/// Card description. (For internal use only and not typically available in standard API
/// requests.).
/// A high-level description of the type of cards issued in this range. (For internal use
/// only and not typically available in standard API requests.).
/// </summary>
[JsonProperty("description")]
public string Description { get; set; }
Expand Down Expand Up @@ -84,8 +84,8 @@ public class ChargePaymentMethodDetailsInteracPresent : StripeEntity<ChargePayme
public string Iin { get; set; }

/// <summary>
/// Issuer bank name of the card. (For internal use only and not typically available in
/// standard API requests.).
/// The name of the card's issuing bank. (For internal use only and not typically available
/// in standard API requests.).
/// </summary>
[JsonProperty("issuer")]
public string Issuer { get; set; }
Expand Down
14 changes: 9 additions & 5 deletions src/Stripe.net/Entities/PaymentIntents/PaymentIntent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,12 @@ public Application Application
#endregion

/// <summary>
/// The amount of the application fee (if any) requested for the resulting payment. See the
/// PaymentIntents <a href="https://stripe.com/docs/payments/connected-accounts">use case
/// for connected accounts</a> for details.
/// The amount of the application fee (if any) that will be requested to be applied to the
/// payment and transferred to the application owner's Stripe account. The amount of the
/// application fee collected will be capped at the total payment amount. For more
/// information, see the PaymentIntents <a
/// href="https://stripe.com/docs/payments/connected-accounts">use case for connected
/// accounts</a>.
/// </summary>
[JsonProperty("application_fee_amount")]
public long? ApplicationFeeAmount { get; set; }
Expand Down Expand Up @@ -123,8 +126,9 @@ public Application Application
/// stored, logged, embedded in URLs, or exposed to anyone other than the customer. Make
/// sure that you have TLS enabled on any page that includes the client secret.
///
/// Refer to our docs to <a href="https://stripe.com/docs/payments/accept-a-payment">accept
/// a payment</a> and learn about how <c>client_secret</c> should be handled.
/// Refer to our docs to <a
/// href="https://stripe.com/docs/payments/accept-a-payment?integration=elements">accept a
/// payment</a> and learn about how <c>client_secret</c> should be handled.
/// </summary>
[JsonProperty("client_secret")]
public string ClientSecret { get; set; }
Expand Down
8 changes: 4 additions & 4 deletions src/Stripe.net/Entities/PaymentMethods/PaymentMethodCard.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ public class PaymentMethodCard : StripeEntity<PaymentMethodCard>
public string Country { get; set; }

/// <summary>
/// Card description. (For internal use only and not typically available in standard API
/// requests.).
/// A high-level description of the type of cards issued in this range. (For internal use
/// only and not typically available in standard API requests.).
/// </summary>
[JsonProperty("description")]
public string Description { get; set; }
Expand Down Expand Up @@ -68,8 +68,8 @@ public class PaymentMethodCard : StripeEntity<PaymentMethodCard>
public string Iin { get; set; }

/// <summary>
/// Issuer bank name of the card. (For internal use only and not typically available in
/// standard API requests.).
/// The name of the card's issuing bank. (For internal use only and not typically available
/// in standard API requests.).
/// </summary>
[JsonProperty("issuer")]
public string Issuer { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,8 @@ public class SetupIntentPaymentMethodOptions : StripeEntity<SetupIntentPaymentMe
{
[JsonProperty("card")]
public SetupIntentPaymentMethodOptionsCard Card { get; set; }

[JsonProperty("sepa_debit")]
public SetupIntentPaymentMethodOptionsSepaDebit SepaDebit { get; set; }
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
// File generated from our OpenAPI spec
namespace Stripe
{
public class SetupIntentPaymentMethodOptionsSepaDebit : StripeEntity<SetupIntentPaymentMethodOptionsSepaDebit>
{
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,12 @@ public class SetupIntentPaymentMethodOptionsOptions : INestedOptions
/// </summary>
[JsonProperty("card")]
public SetupIntentPaymentMethodOptionsCardOptions Card { get; set; }

/// <summary>
/// If this is a <c>sepa_debit</c> SetupIntent, this sub-hash contains details about the
/// Sepa Debit payment method options.
/// </summary>
[JsonProperty("sepa_debit")]
public SetupIntentPaymentMethodOptionsSepaDebitOptions SepaDebit { get; set; }
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
// File generated from our OpenAPI spec
namespace Stripe
{
public class SetupIntentPaymentMethodOptionsSepaDebitOptions : INestedOptions
{
}
}