Skip to content

Commit

Permalink
Update generated code for v1472
Browse files Browse the repository at this point in the history
  • Loading branch information
stripe-openapi[bot] committed Feb 7, 2025
1 parent ffe836b commit 718b097
Show file tree
Hide file tree
Showing 35 changed files with 287 additions and 67 deletions.
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1469
v1472
14 changes: 14 additions & 0 deletions src/Stripe.net/Entities/Accounts/AccountRiskControls.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,19 @@ public class AccountRiskControls : StripeEntity<AccountRiskControls>
[STJS.JsonPropertyName("payouts")]
#endif
public AccountRiskControlsPayouts Payouts { get; set; }

/// <summary>
/// Represents the rejected reason of the account. Empty if account is not rejected, or
/// rejected by Stripe. Please see <a href="https://stripe.com/docs/connect/">this page for
/// more details</a>.
/// One of: <c>credit</c>, <c>fraud</c>, <c>fraud_no_intent_to_fulfill</c>,
/// <c>fraud_other</c>, <c>fraud_payment_method_casher</c>,
/// <c>fraud_payment_method_tester</c>, <c>other</c>, or <c>terms_of_service</c>.
/// </summary>
[JsonProperty("rejected_reason")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("rejected_reason")]
#endif
public string RejectedReason { get; set; }
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// File generated from our OpenAPI spec
namespace Stripe.Billing
{
using System.Collections.Generic;
using Newtonsoft.Json;
#if NET6_0_OR_GREATER
using STJS = System.Text.Json.Serialization;
Expand All @@ -18,5 +19,16 @@ public class CreditGrantApplicabilityConfigScope : StripeEntity<CreditGrantAppli
[STJS.JsonPropertyName("price_type")]
#endif
public string PriceType { get; set; }

/// <summary>
/// The prices that credit grants can apply to. We currently only support <c>metered</c>
/// prices. This refers to prices that have a <a
/// href="https://docs.stripe.com/api/billing/meter">Billing Meter</a> attached to them.
/// </summary>
[JsonProperty("prices")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("prices")]
#endif
public List<CreditGrantApplicabilityConfigScopePrice> Prices { get; set; }
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
// File generated from our OpenAPI spec
namespace Stripe.Billing
{
using Newtonsoft.Json;
#if NET6_0_OR_GREATER
using STJS = System.Text.Json.Serialization;
#endif

public class CreditGrantApplicabilityConfigScopePrice : StripeEntity<CreditGrantApplicabilityConfigScopePrice>, IHasId
{
/// <summary>
/// Unique identifier for the object.
/// </summary>
[JsonProperty("id")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("id")]
#endif
public string Id { get; set; }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,12 @@ public class SessionPaymentMethodOptionsCard : StripeEntity<SessionPaymentMethod
#endif
public string RequestThreeDSecure { get; set; }

[JsonProperty("restrictions")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("restrictions")]
#endif
public SessionPaymentMethodOptionsCardRestrictions Restrictions { get; set; }

/// <summary>
/// Indicates that you intend to make future payments with this PaymentIntent's payment
/// method.
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
// File generated from our OpenAPI spec
namespace Stripe.Checkout
{
using System.Collections.Generic;
using Newtonsoft.Json;
#if NET6_0_OR_GREATER
using STJS = System.Text.Json.Serialization;
#endif

public class SessionPaymentMethodOptionsCardRestrictions : StripeEntity<SessionPaymentMethodOptionsCardRestrictions>
{
/// <summary>
/// Specify the card brands to block in the Checkout Session. If a customer enters or
/// selects a card belonging to a blocked brand, they can't complete the Session.
/// One of: <c>american_express</c>, <c>discover_global_network</c>, <c>mastercard</c>, or
/// <c>visa</c>.
/// </summary>
[JsonProperty("brands_blocked")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("brands_blocked")]
#endif
public List<string> BrandsBlocked { get; set; }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ public class SessionShippingCostTax : StripeEntity<SessionShippingCostTax>

/// <summary>
/// Tax rates can be applied to <a
/// href="https://stripe.com/docs/billing/invoices/tax-rates">invoices</a>, <a
/// href="https://stripe.com/docs/billing/subscriptions/taxes">subscriptions</a> and <a
/// href="https://stripe.com/docs/payments/checkout/set-up-a-subscription#tax-rates">Checkout
/// Sessions</a> to collect tax.
/// href="https://stripe.com/invoicing/taxes/tax-rates">invoices</a>, <a
/// href="https://stripe.com/billing/taxes/tax-rates">subscriptions</a> and <a
/// href="https://stripe.com/payments/checkout/use-manual-tax-rates">Checkout Sessions</a>
/// to collect tax.
///
/// Related guide: <a href="https://stripe.com/docs/billing/taxes/tax-rates">Tax rates</a>.
/// Related guide: <a href="https://stripe.com/billing/taxes/tax-rates">Tax rates</a>.
/// </summary>
[JsonProperty("rate")]
#if NET6_0_OR_GREATER
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ public class SessionTotalDetailsBreakdownTax : StripeEntity<SessionTotalDetailsB

/// <summary>
/// Tax rates can be applied to <a
/// href="https://stripe.com/docs/billing/invoices/tax-rates">invoices</a>, <a
/// href="https://stripe.com/docs/billing/subscriptions/taxes">subscriptions</a> and <a
/// href="https://stripe.com/docs/payments/checkout/set-up-a-subscription#tax-rates">Checkout
/// Sessions</a> to collect tax.
/// href="https://stripe.com/invoicing/taxes/tax-rates">invoices</a>, <a
/// href="https://stripe.com/billing/taxes/tax-rates">subscriptions</a> and <a
/// href="https://stripe.com/payments/checkout/use-manual-tax-rates">Checkout Sessions</a>
/// to collect tax.
///
/// Related guide: <a href="https://stripe.com/docs/billing/taxes/tax-rates">Tax rates</a>.
/// Related guide: <a href="https://stripe.com/billing/taxes/tax-rates">Tax rates</a>.
/// </summary>
[JsonProperty("rate")]
#if NET6_0_OR_GREATER
Expand Down
10 changes: 5 additions & 5 deletions src/Stripe.net/Entities/CreditNotes/CreditNoteShippingCostTax.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ public class CreditNoteShippingCostTax : StripeEntity<CreditNoteShippingCostTax>

/// <summary>
/// Tax rates can be applied to <a
/// href="https://stripe.com/docs/billing/invoices/tax-rates">invoices</a>, <a
/// href="https://stripe.com/docs/billing/subscriptions/taxes">subscriptions</a> and <a
/// href="https://stripe.com/docs/payments/checkout/set-up-a-subscription#tax-rates">Checkout
/// Sessions</a> to collect tax.
/// href="https://stripe.com/invoicing/taxes/tax-rates">invoices</a>, <a
/// href="https://stripe.com/billing/taxes/tax-rates">subscriptions</a> and <a
/// href="https://stripe.com/payments/checkout/use-manual-tax-rates">Checkout Sessions</a>
/// to collect tax.
///
/// Related guide: <a href="https://stripe.com/docs/billing/taxes/tax-rates">Tax rates</a>.
/// Related guide: <a href="https://stripe.com/billing/taxes/tax-rates">Tax rates</a>.
/// </summary>
[JsonProperty("rate")]
#if NET6_0_OR_GREATER
Expand Down
10 changes: 5 additions & 5 deletions src/Stripe.net/Entities/Invoices/InvoiceShippingCostTax.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ public class InvoiceShippingCostTax : StripeEntity<InvoiceShippingCostTax>

/// <summary>
/// Tax rates can be applied to <a
/// href="https://stripe.com/docs/billing/invoices/tax-rates">invoices</a>, <a
/// href="https://stripe.com/docs/billing/subscriptions/taxes">subscriptions</a> and <a
/// href="https://stripe.com/docs/payments/checkout/set-up-a-subscription#tax-rates">Checkout
/// Sessions</a> to collect tax.
/// href="https://stripe.com/invoicing/taxes/tax-rates">invoices</a>, <a
/// href="https://stripe.com/billing/taxes/tax-rates">subscriptions</a> and <a
/// href="https://stripe.com/payments/checkout/use-manual-tax-rates">Checkout Sessions</a>
/// to collect tax.
///
/// Related guide: <a href="https://stripe.com/docs/billing/taxes/tax-rates">Tax rates</a>.
/// Related guide: <a href="https://stripe.com/billing/taxes/tax-rates">Tax rates</a>.
/// </summary>
[JsonProperty("rate")]
#if NET6_0_OR_GREATER
Expand Down
10 changes: 5 additions & 5 deletions src/Stripe.net/Entities/LineItems/LineItemTax.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ public class LineItemTax : StripeEntity<LineItemTax>

/// <summary>
/// Tax rates can be applied to <a
/// href="https://stripe.com/docs/billing/invoices/tax-rates">invoices</a>, <a
/// href="https://stripe.com/docs/billing/subscriptions/taxes">subscriptions</a> and <a
/// href="https://stripe.com/docs/payments/checkout/set-up-a-subscription#tax-rates">Checkout
/// Sessions</a> to collect tax.
/// href="https://stripe.com/invoicing/taxes/tax-rates">invoices</a>, <a
/// href="https://stripe.com/billing/taxes/tax-rates">subscriptions</a> and <a
/// href="https://stripe.com/payments/checkout/use-manual-tax-rates">Checkout Sessions</a>
/// to collect tax.
///
/// Related guide: <a href="https://stripe.com/docs/billing/taxes/tax-rates">Tax rates</a>.
/// Related guide: <a href="https://stripe.com/billing/taxes/tax-rates">Tax rates</a>.
/// </summary>
[JsonProperty("rate")]
#if NET6_0_OR_GREATER
Expand Down
10 changes: 5 additions & 5 deletions src/Stripe.net/Entities/Orders/OrderShippingCostTax.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ public class OrderShippingCostTax : StripeEntity<OrderShippingCostTax>

/// <summary>
/// Tax rates can be applied to <a
/// href="https://stripe.com/docs/billing/invoices/tax-rates">invoices</a>, <a
/// href="https://stripe.com/docs/billing/subscriptions/taxes">subscriptions</a> and <a
/// href="https://stripe.com/docs/payments/checkout/set-up-a-subscription#tax-rates">Checkout
/// Sessions</a> to collect tax.
/// href="https://stripe.com/invoicing/taxes/tax-rates">invoices</a>, <a
/// href="https://stripe.com/billing/taxes/tax-rates">subscriptions</a> and <a
/// href="https://stripe.com/payments/checkout/use-manual-tax-rates">Checkout Sessions</a>
/// to collect tax.
///
/// Related guide: <a href="https://stripe.com/docs/billing/taxes/tax-rates">Tax rates</a>.
/// Related guide: <a href="https://stripe.com/billing/taxes/tax-rates">Tax rates</a>.
/// </summary>
[JsonProperty("rate")]
#if NET6_0_OR_GREATER
Expand Down
10 changes: 5 additions & 5 deletions src/Stripe.net/Entities/Orders/OrderTotalDetailsBreakdownTax.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ public class OrderTotalDetailsBreakdownTax : StripeEntity<OrderTotalDetailsBreak

/// <summary>
/// Tax rates can be applied to <a
/// href="https://stripe.com/docs/billing/invoices/tax-rates">invoices</a>, <a
/// href="https://stripe.com/docs/billing/subscriptions/taxes">subscriptions</a> and <a
/// href="https://stripe.com/docs/payments/checkout/set-up-a-subscription#tax-rates">Checkout
/// Sessions</a> to collect tax.
/// href="https://stripe.com/invoicing/taxes/tax-rates">invoices</a>, <a
/// href="https://stripe.com/billing/taxes/tax-rates">subscriptions</a> and <a
/// href="https://stripe.com/payments/checkout/use-manual-tax-rates">Checkout Sessions</a>
/// to collect tax.
///
/// Related guide: <a href="https://stripe.com/docs/billing/taxes/tax-rates">Tax rates</a>.
/// Related guide: <a href="https://stripe.com/billing/taxes/tax-rates">Tax rates</a>.
/// </summary>
[JsonProperty("rate")]
#if NET6_0_OR_GREATER
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ public class QuotePreviewInvoiceShippingCostTax : StripeEntity<QuotePreviewInvoi

/// <summary>
/// Tax rates can be applied to <a
/// href="https://stripe.com/docs/billing/invoices/tax-rates">invoices</a>, <a
/// href="https://stripe.com/docs/billing/subscriptions/taxes">subscriptions</a> and <a
/// href="https://stripe.com/docs/payments/checkout/set-up-a-subscription#tax-rates">Checkout
/// Sessions</a> to collect tax.
/// href="https://stripe.com/invoicing/taxes/tax-rates">invoices</a>, <a
/// href="https://stripe.com/billing/taxes/tax-rates">subscriptions</a> and <a
/// href="https://stripe.com/payments/checkout/use-manual-tax-rates">Checkout Sessions</a>
/// to collect tax.
///
/// Related guide: <a href="https://stripe.com/docs/billing/taxes/tax-rates">Tax rates</a>.
/// Related guide: <a href="https://stripe.com/billing/taxes/tax-rates">Tax rates</a>.
/// </summary>
[JsonProperty("rate")]
#if NET6_0_OR_GREATER
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ public class QuoteComputedRecurringTotalDetailsBreakdownTax : StripeEntity<Quote

/// <summary>
/// Tax rates can be applied to <a
/// href="https://stripe.com/docs/billing/invoices/tax-rates">invoices</a>, <a
/// href="https://stripe.com/docs/billing/subscriptions/taxes">subscriptions</a> and <a
/// href="https://stripe.com/docs/payments/checkout/set-up-a-subscription#tax-rates">Checkout
/// Sessions</a> to collect tax.
/// href="https://stripe.com/invoicing/taxes/tax-rates">invoices</a>, <a
/// href="https://stripe.com/billing/taxes/tax-rates">subscriptions</a> and <a
/// href="https://stripe.com/payments/checkout/use-manual-tax-rates">Checkout Sessions</a>
/// to collect tax.
///
/// Related guide: <a href="https://stripe.com/docs/billing/taxes/tax-rates">Tax rates</a>.
/// Related guide: <a href="https://stripe.com/billing/taxes/tax-rates">Tax rates</a>.
/// </summary>
[JsonProperty("rate")]
#if NET6_0_OR_GREATER
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ public class QuoteComputedUpfrontTotalDetailsBreakdownTax : StripeEntity<QuoteCo

/// <summary>
/// Tax rates can be applied to <a
/// href="https://stripe.com/docs/billing/invoices/tax-rates">invoices</a>, <a
/// href="https://stripe.com/docs/billing/subscriptions/taxes">subscriptions</a> and <a
/// href="https://stripe.com/docs/payments/checkout/set-up-a-subscription#tax-rates">Checkout
/// Sessions</a> to collect tax.
/// href="https://stripe.com/invoicing/taxes/tax-rates">invoices</a>, <a
/// href="https://stripe.com/billing/taxes/tax-rates">subscriptions</a> and <a
/// href="https://stripe.com/payments/checkout/use-manual-tax-rates">Checkout Sessions</a>
/// to collect tax.
///
/// Related guide: <a href="https://stripe.com/docs/billing/taxes/tax-rates">Tax rates</a>.
/// Related guide: <a href="https://stripe.com/billing/taxes/tax-rates">Tax rates</a>.
/// </summary>
[JsonProperty("rate")]
#if NET6_0_OR_GREATER
Expand Down
10 changes: 5 additions & 5 deletions src/Stripe.net/Entities/Quotes/QuoteTotalDetailsBreakdownTax.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ public class QuoteTotalDetailsBreakdownTax : StripeEntity<QuoteTotalDetailsBreak

/// <summary>
/// Tax rates can be applied to <a
/// href="https://stripe.com/docs/billing/invoices/tax-rates">invoices</a>, <a
/// href="https://stripe.com/docs/billing/subscriptions/taxes">subscriptions</a> and <a
/// href="https://stripe.com/docs/payments/checkout/set-up-a-subscription#tax-rates">Checkout
/// Sessions</a> to collect tax.
/// href="https://stripe.com/invoicing/taxes/tax-rates">invoices</a>, <a
/// href="https://stripe.com/billing/taxes/tax-rates">subscriptions</a> and <a
/// href="https://stripe.com/payments/checkout/use-manual-tax-rates">Checkout Sessions</a>
/// to collect tax.
///
/// Related guide: <a href="https://stripe.com/docs/billing/taxes/tax-rates">Tax rates</a>.
/// Related guide: <a href="https://stripe.com/billing/taxes/tax-rates">Tax rates</a>.
/// </summary>
[JsonProperty("rate")]
#if NET6_0_OR_GREATER
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public class CalculationLineItemTaxBreakdownJurisdiction : StripeEntity<Calculat
public string Level { get; set; }

/// <summary>
/// <a href="https://en.wikipedia.org/wiki/ISO_3166-2:US">ISO 3166-2 subdivision code</a>,
/// <a href="https://en.wikipedia.org/wiki/ISO_3166-2">ISO 3166-2 subdivision code</a>,
/// without country prefix. For example, "NY" for New York, United States.
/// </summary>
[JsonProperty("state")]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public class CalculationShippingCostTaxBreakdownJurisdiction : StripeEntity<Calc
public string Level { get; set; }

/// <summary>
/// <a href="https://en.wikipedia.org/wiki/ISO_3166-2:US">ISO 3166-2 subdivision code</a>,
/// <a href="https://en.wikipedia.org/wiki/ISO_3166-2">ISO 3166-2 subdivision code</a>,
/// without country prefix. For example, "NY" for New York, United States.
/// </summary>
[JsonProperty("state")]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public class TransactionShippingCostTaxBreakdownJurisdiction : StripeEntity<Tran
public string Level { get; set; }

/// <summary>
/// <a href="https://en.wikipedia.org/wiki/ISO_3166-2:US">ISO 3166-2 subdivision code</a>,
/// <a href="https://en.wikipedia.org/wiki/ISO_3166-2">ISO 3166-2 subdivision code</a>,
/// without country prefix. For example, "NY" for New York, United States.
/// </summary>
[JsonProperty("state")]
Expand Down
12 changes: 6 additions & 6 deletions src/Stripe.net/Entities/TaxRates/TaxRate.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ namespace Stripe

/// <summary>
/// Tax rates can be applied to <a
/// href="https://stripe.com/docs/billing/invoices/tax-rates">invoices</a>, <a
/// href="https://stripe.com/docs/billing/subscriptions/taxes">subscriptions</a> and <a
/// href="https://stripe.com/docs/payments/checkout/set-up-a-subscription#tax-rates">Checkout
/// Sessions</a> to collect tax.
/// href="https://stripe.com/invoicing/taxes/tax-rates">invoices</a>, <a
/// href="https://stripe.com/billing/taxes/tax-rates">subscriptions</a> and <a
/// href="https://stripe.com/payments/checkout/use-manual-tax-rates">Checkout Sessions</a>
/// to collect tax.
///
/// Related guide: <a href="https://stripe.com/docs/billing/taxes/tax-rates">Tax rates</a>.
/// Related guide: <a href="https://stripe.com/billing/taxes/tax-rates">Tax rates</a>.
/// </summary>
public class TaxRate : StripeEntity<TaxRate>, IHasId, IHasMetadata, IHasObject
{
Expand Down Expand Up @@ -188,7 +188,7 @@ public class TaxRate : StripeEntity<TaxRate>, IHasId, IHasMetadata, IHasObject
public string RateType { get; set; }

/// <summary>
/// <a href="https://en.wikipedia.org/wiki/ISO_3166-2:US">ISO 3166-2 subdivision code</a>,
/// <a href="https://en.wikipedia.org/wiki/ISO_3166-2">ISO 3166-2 subdivision code</a>,
/// without country prefix. For example, "NY" for New York, United States.
/// </summary>
[JsonProperty("state")]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,7 @@ public class AccountPersonCreateOptions : BaseOptions, IHasMetadata
/// Indicates if the person or any of their representatives, family members, or other
/// closely related persons, declares that they hold or have held an important public job or
/// function, in any jurisdiction.
/// One of: <c>existing</c>, or <c>none</c>.
/// </summary>
[JsonProperty("political_exposure")]
#if NET6_0_OR_GREATER
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,7 @@ public class AccountPersonUpdateOptions : BaseOptions, IHasMetadata
/// Indicates if the person or any of their representatives, family members, or other
/// closely related persons, declares that they hold or have held an important public job or
/// function, in any jurisdiction.
/// One of: <c>existing</c>, or <c>none</c>.
/// </summary>
[JsonProperty("political_exposure")]
#if NET6_0_OR_GREATER
Expand Down
Loading

0 comments on commit 718b097

Please sign in to comment.