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

Multiple API changes #2232

Merged
merged 1 commit into from
Oct 26, 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
4 changes: 2 additions & 2 deletions src/Stripe.net/Entities/Subscriptions/Subscription.cs
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ public class Subscription : StripeEntity<Subscription>, IHasId, IHasMetadata, IH
/// <summary>
/// If the subscription has been canceled, the date of that cancellation. If the
/// subscription was canceled with <c>cancel_at_period_end</c>, <c>canceled_at</c> will
/// still reflect the date of the initial cancellation request, not the end of the
/// subscription period when the subscription is automatically moved to a canceled state.
/// reflect the time of the most recent update request, not the end of the subscription
/// period when the subscription is automatically moved to a canceled state.
/// </summary>
[JsonProperty("canceled_at")]
[JsonConverter(typeof(UnixDateTimeConverter))]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,14 @@ namespace Stripe

public class PaymentIntentPaymentMethodOptionsCardOptions : INestedOptions
{
/// <summary>
/// A single-use <c>cvc_update</c> Token that represents a card CVC value. When provided,
/// the CVC value will be verified during the card payment attempt. This parameter can only
/// be provided during confirmation.
/// </summary>
[JsonProperty("cvc_token")]
public string CvcToken { get; set; }

/// <summary>
/// Installment configuration for payments attempted on this PaymentIntent (Mexico Only).
///
Expand Down
6 changes: 6 additions & 0 deletions src/Stripe.net/Services/Tokens/TokenCreateOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,12 @@ public class TokenCreateOptions : BaseOptions
[JsonProperty("customer")]
public string Customer { get; set; }

/// <summary>
/// The updated CVC value this token will represent.
/// </summary>
[JsonProperty("cvc_update")]
public TokenCvcUpdateOptions CvcUpdate { get; set; }

/// <summary>
/// Information for the person this token will represent.
/// </summary>
Expand Down
14 changes: 14 additions & 0 deletions src/Stripe.net/Services/Tokens/TokenCvcUpdateOptions.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
// File generated from our OpenAPI spec
namespace Stripe
{
using Newtonsoft.Json;

public class TokenCvcUpdateOptions : INestedOptions
{
/// <summary>
/// The CVC value, in string form.
/// </summary>
[JsonProperty("cvc")]
public string Cvc { get; set; }
}
}