Skip to content

Commit

Permalink
Merge pull request #2302 from stripe/latest-codegen
Browse files Browse the repository at this point in the history
API Updates
  • Loading branch information
richardm-stripe authored Apr 2, 2021
2 parents 3c702b0 + 4637a48 commit a98b1be
Show file tree
Hide file tree
Showing 9 changed files with 52 additions and 0 deletions.
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; }
}
}

0 comments on commit a98b1be

Please sign in to comment.