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

API Updates #2302

Merged
merged 1 commit into from
Apr 2, 2021
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
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ public class ConfigurationFeatures : StripeEntity<ConfigurationFeatures>
[JsonProperty("subscription_cancel")]
public ConfigurationFeaturesSubscriptionCancel SubscriptionCancel { get; set; }

[JsonProperty("subscription_pause")]
public ConfigurationFeaturesSubscriptionPause SubscriptionPause { get; set; }

[JsonProperty("subscription_update")]
public ConfigurationFeaturesSubscriptionUpdate SubscriptionUpdate { get; set; }
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
// File generated from our OpenAPI spec
namespace Stripe.BillingPortal
{
using Newtonsoft.Json;

public class ConfigurationFeaturesSubscriptionPause : StripeEntity<ConfigurationFeaturesSubscriptionPause>
{
/// <summary>
/// Whether the feature is enabled.
/// </summary>
[JsonProperty("enabled")]
public bool Enabled { get; set; }
}
}
3 changes: 3 additions & 0 deletions src/Stripe.net/Entities/Cards/Card.cs
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,9 @@ public Customer Customer
/// whether two customers who’ve signed up with you are using the same card number, for
/// example. For payment methods that tokenize card information (Apple Pay, Google Pay), the
/// tokenized number might be provided instead of the underlying card number.
///
/// <em>Starting May 1, 2021, card fingerprint in India for Connect will change to allow two
/// fingerprints for the same card --- one for India and one for the rest of the world.</em>.
/// </summary>
[JsonProperty("fingerprint")]
public string Fingerprint { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@ public class ChargePaymentMethodDetailsCard : StripeEntity<ChargePaymentMethodDe
/// whether two customers who’ve signed up with you are using the same card number, for
/// example. For payment methods that tokenize card information (Apple Pay, Google Pay), the
/// tokenized number might be provided instead of the underlying card number.
///
/// <em>Starting May 1, 2021, card fingerprint in India for Connect will change to allow two
/// fingerprints for the same card --- one for India and one for the rest of the world.</em>.
/// </summary>
[JsonProperty("fingerprint")]
public string Fingerprint { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@ public class ChargePaymentMethodDetailsCardPresent : StripeEntity<ChargePaymentM
/// whether two customers who’ve signed up with you are using the same card number, for
/// example. For payment methods that tokenize card information (Apple Pay, Google Pay), the
/// tokenized number might be provided instead of the underlying card number.
///
/// <em>Starting May 1, 2021, card fingerprint in India for Connect will change to allow two
/// fingerprints for the same card --- one for India and one for the rest of the world.</em>.
/// </summary>
[JsonProperty("fingerprint")]
public string Fingerprint { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@ public class ChargePaymentMethodDetailsInteracPresent : StripeEntity<ChargePayme
/// whether two customers who’ve signed up with you are using the same card number, for
/// example. For payment methods that tokenize card information (Apple Pay, Google Pay), the
/// tokenized number might be provided instead of the underlying card number.
///
/// <em>Starting May 1, 2021, card fingerprint in India for Connect will change to allow two
/// fingerprints for the same card --- one for India and one for the rest of the world.</em>.
/// </summary>
[JsonProperty("fingerprint")]
public string Fingerprint { get; set; }
Expand Down
3 changes: 3 additions & 0 deletions src/Stripe.net/Entities/PaymentMethods/PaymentMethodCard.cs
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@ public class PaymentMethodCard : StripeEntity<PaymentMethodCard>
/// whether two customers who’ve signed up with you are using the same card number, for
/// example. For payment methods that tokenize card information (Apple Pay, Google Pay), the
/// tokenized number might be provided instead of the underlying card number.
///
/// <em>Starting May 1, 2021, card fingerprint in India for Connect will change to allow two
/// fingerprints for the same card --- one for India and one for the rest of the world.</em>.
/// </summary>
[JsonProperty("fingerprint")]
public string Fingerprint { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,12 @@ public class ConfigurationFeaturesOptions : INestedOptions
[JsonProperty("subscription_cancel")]
public ConfigurationFeaturesSubscriptionCancelOptions SubscriptionCancel { get; set; }

/// <summary>
/// Information about pausing subscriptions in the portal.
/// </summary>
[JsonProperty("subscription_pause")]
public ConfigurationFeaturesSubscriptionPauseOptions SubscriptionPause { get; set; }

/// <summary>
/// Information about updating subscriptions in the portal.
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
// File generated from our OpenAPI spec
namespace Stripe.BillingPortal
{
using Newtonsoft.Json;

public class ConfigurationFeaturesSubscriptionPauseOptions : INestedOptions
{
/// <summary>
/// Whether the feature is enabled.
/// </summary>
[JsonProperty("enabled")]
public bool? Enabled { get; set; }
}
}