Skip to content
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
2 changes: 1 addition & 1 deletion CODEGEN_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
e65e48569f6dfad2d5f1b58018017856520c3ae6
85e0466f55837da66b90fce2a7c5b7fc79b83a7c
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v2186
v2204
4 changes: 2 additions & 2 deletions src/Stripe.net/Constants/ApiVersion.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ namespace Stripe
{
internal class ApiVersion
{
public const string Current = "2026-02-25.clover";
public const string CurrentMajor = "clover";
public const string Current = "2026-03-25.dahlia";
public const string CurrentMajor = "dahlia";
}
}
4 changes: 2 additions & 2 deletions src/Stripe.net/Entities/AccountSessions/AccountSession.cs
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ public class AccountSession : StripeEntity<AccountSession>, IHasObject
public DateTime ExpiresAt { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch;

/// <summary>
/// Has the value <c>true</c> if the object exists in live mode or the value <c>false</c> if
/// the object exists in test mode.
/// If the object exists in live mode, the value is <c>true</c>. If the object exists in
/// test mode, the value is <c>false</c>.
/// </summary>
[JsonProperty("livemode")]
[STJS.JsonPropertyName("livemode")]
Expand Down
4 changes: 4 additions & 0 deletions src/Stripe.net/Entities/Accounts/Account.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ namespace Stripe
using STJS = System.Text.Json.Serialization;

/// <summary>
/// For new integrations, we recommend using the <a
/// href="https://stripe.com/api/v2/core/accounts">Accounts v2 API</a>, in place of
/// /v1/accounts and /v1/customers to represent a user.
///
/// This is an object representing a Stripe account. You can retrieve it to see properties
/// on the account like its current requirements or if the account is enabled to make live
/// charges or receive payouts.
Expand Down
9 changes: 9 additions & 0 deletions src/Stripe.net/Entities/Accounts/AccountCapabilities.cs
Original file line number Diff line number Diff line change
Expand Up @@ -526,6 +526,15 @@ public class AccountCapabilities : StripeEntity<AccountCapabilities>
[STJS.JsonPropertyName("twint_payments")]
public string TwintPayments { get; set; }

/// <summary>
/// The status of the upi payments capability of the account, or whether the account can
/// directly process upi charges.
/// One of: <c>active</c>, <c>inactive</c>, or <c>pending</c>.
/// </summary>
[JsonProperty("upi_payments")]
[STJS.JsonPropertyName("upi_payments")]
public string UpiPayments { get; set; }

/// <summary>
/// The status of the US bank account ACH payments capability of the account, or whether the
/// account can directly process US bank account charges.
Expand Down
4 changes: 2 additions & 2 deletions src/Stripe.net/Entities/ApplePayDomains/ApplePayDomain.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ public class ApplePayDomain : StripeEntity<ApplePayDomain>, IHasId, IHasObject
public string DomainName { get; set; }

/// <summary>
/// Has the value <c>true</c> if the object exists in live mode or the value <c>false</c> if
/// the object exists in test mode.
/// If the object exists in live mode, the value is <c>true</c>. If the object exists in
/// test mode, the value is <c>false</c>.
/// </summary>
[JsonProperty("livemode")]
[STJS.JsonPropertyName("livemode")]
Expand Down
4 changes: 2 additions & 2 deletions src/Stripe.net/Entities/ApplicationFees/ApplicationFee.cs
Original file line number Diff line number Diff line change
Expand Up @@ -207,8 +207,8 @@ public Charge Charge
public ApplicationFeeFeeSource FeeSource { get; set; }

/// <summary>
/// Has the value <c>true</c> if the object exists in live mode or the value <c>false</c> if
/// the object exists in test mode.
/// If the object exists in live mode, the value is <c>true</c>. If the object exists in
/// test mode, the value is <c>false</c>.
/// </summary>
[JsonProperty("livemode")]
[STJS.JsonPropertyName("livemode")]
Expand Down
4 changes: 2 additions & 2 deletions src/Stripe.net/Entities/Apps/Secrets/Secret.cs
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ public class Secret : StripeEntity<Secret>, IHasId, IHasObject
public DateTime? ExpiresAt { get; set; }

/// <summary>
/// Has the value <c>true</c> if the object exists in live mode or the value <c>false</c> if
/// the object exists in test mode.
/// If the object exists in live mode, the value is <c>true</c>. If the object exists in
/// test mode, the value is <c>false</c>.
/// </summary>
[JsonProperty("livemode")]
[STJS.JsonPropertyName("livemode")]
Expand Down
4 changes: 2 additions & 2 deletions src/Stripe.net/Entities/Balances/Balance.cs
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ public class Balance : StripeEntity<Balance>, IHasObject
public BalanceIssuing Issuing { get; set; }

/// <summary>
/// Has the value <c>true</c> if the object exists in live mode or the value <c>false</c> if
/// the object exists in test mode.
/// If the object exists in live mode, the value is <c>true</c>. If the object exists in
/// test mode, the value is <c>false</c>.
/// </summary>
[JsonProperty("livemode")]
[STJS.JsonPropertyName("livemode")]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ public class AlertTriggered : StripeEntity<AlertTriggered>, IHasObject
public string Customer { get; set; }

/// <summary>
/// Has the value <c>true</c> if the object exists in live mode or the value <c>false</c> if
/// the object exists in test mode.
/// If the object exists in live mode, the value is <c>true</c>. If the object exists in
/// test mode, the value is <c>false</c>.
/// </summary>
[JsonProperty("livemode")]
[STJS.JsonPropertyName("livemode")]
Expand Down
4 changes: 2 additions & 2 deletions src/Stripe.net/Entities/Billing/Alerts/Alert.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ public class Alert : StripeEntity<Alert>, IHasId, IHasObject
public string AlertType { get; set; }

/// <summary>
/// Has the value <c>true</c> if the object exists in live mode or the value <c>false</c> if
/// the object exists in test mode.
/// If the object exists in live mode, the value is <c>true</c>. If the object exists in
/// test mode, the value is <c>false</c>.
/// </summary>
[JsonProperty("livemode")]
[STJS.JsonPropertyName("livemode")]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ public Customer Customer
public string CustomerAccount { get; set; }

/// <summary>
/// Has the value <c>true</c> if the object exists in live mode or the value <c>false</c> if
/// the object exists in test mode.
/// If the object exists in live mode, the value is <c>true</c>. If the object exists in
/// test mode, the value is <c>false</c>.
/// </summary>
[JsonProperty("livemode")]
[STJS.JsonPropertyName("livemode")]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,8 @@ public CreditGrant CreditGrant
public DateTime EffectiveAt { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch;

/// <summary>
/// Has the value <c>true</c> if the object exists in live mode or the value <c>false</c> if
/// the object exists in test mode.
/// If the object exists in live mode, the value is <c>true</c>. If the object exists in
/// test mode, the value is <c>false</c>.
/// </summary>
[JsonProperty("livemode")]
[STJS.JsonPropertyName("livemode")]
Expand Down
4 changes: 2 additions & 2 deletions src/Stripe.net/Entities/Billing/CreditGrants/CreditGrant.cs
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,8 @@ public Customer Customer
public DateTime? ExpiresAt { get; set; }

/// <summary>
/// Has the value <c>true</c> if the object exists in live mode or the value <c>false</c> if
/// the object exists in test mode.
/// If the object exists in live mode, the value is <c>true</c>. If the object exists in
/// test mode, the value is <c>false</c>.
/// </summary>
[JsonProperty("livemode")]
[STJS.JsonPropertyName("livemode")]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ public class MeterEventAdjustment : StripeEntity<MeterEventAdjustment>, IHasObje
public string EventName { get; set; }

/// <summary>
/// Has the value <c>true</c> if the object exists in live mode or the value <c>false</c> if
/// the object exists in test mode.
/// If the object exists in live mode, the value is <c>true</c>. If the object exists in
/// test mode, the value is <c>false</c>.
/// </summary>
[JsonProperty("livemode")]
[STJS.JsonPropertyName("livemode")]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ public class MeterEventSummary : StripeEntity<MeterEventSummary>, IHasId, IHasOb
public DateTime EndTime { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch;

/// <summary>
/// Has the value <c>true</c> if the object exists in live mode or the value <c>false</c> if
/// the object exists in test mode.
/// If the object exists in live mode, the value is <c>true</c>. If the object exists in
/// test mode, the value is <c>false</c>.
/// </summary>
[JsonProperty("livemode")]
[STJS.JsonPropertyName("livemode")]
Expand Down
4 changes: 2 additions & 2 deletions src/Stripe.net/Entities/Billing/MeterEvents/MeterEvent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ public class MeterEvent : StripeEntity<MeterEvent>, IHasObject
public string Identifier { get; set; }

/// <summary>
/// Has the value <c>true</c> if the object exists in live mode or the value <c>false</c> if
/// the object exists in test mode.
/// If the object exists in live mode, the value is <c>true</c>. If the object exists in
/// test mode, the value is <c>false</c>.
/// </summary>
[JsonProperty("livemode")]
[STJS.JsonPropertyName("livemode")]
Expand Down
4 changes: 2 additions & 2 deletions src/Stripe.net/Entities/Billing/Meters/Meter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ public class Meter : StripeEntity<Meter>, IHasId, IHasObject
public string EventTimeWindow { get; set; }

/// <summary>
/// Has the value <c>true</c> if the object exists in live mode or the value <c>false</c> if
/// the object exists in test mode.
/// If the object exists in live mode, the value is <c>true</c>. If the object exists in
/// test mode, the value is <c>false</c>.
/// </summary>
[JsonProperty("livemode")]
[STJS.JsonPropertyName("livemode")]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,8 @@ public Application Application
public bool IsDefault { get; set; }

/// <summary>
/// Has the value <c>true</c> if the object exists in live mode or the value <c>false</c> if
/// the object exists in test mode.
/// If the object exists in live mode, the value is <c>true</c>. If the object exists in
/// test mode, the value is <c>false</c>.
/// </summary>
[JsonProperty("livemode")]
[STJS.JsonPropertyName("livemode")]
Expand Down
4 changes: 2 additions & 2 deletions src/Stripe.net/Entities/BillingPortal/Sessions/Session.cs
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,8 @@ public Configuration Configuration
public SessionFlow Flow { get; set; }

/// <summary>
/// Has the value <c>true</c> if the object exists in live mode or the value <c>false</c> if
/// the object exists in test mode.
/// If the object exists in live mode, the value is <c>true</c>. If the object exists in
/// test mode, the value is <c>false</c>.
/// </summary>
[JsonProperty("livemode")]
[STJS.JsonPropertyName("livemode")]
Expand Down
4 changes: 2 additions & 2 deletions src/Stripe.net/Entities/CashBalances/CashBalance.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ public class CashBalance : StripeEntity<CashBalance>, IHasObject
public string CustomerAccount { get; set; }

/// <summary>
/// Has the value <c>true</c> if the object exists in live mode or the value <c>false</c> if
/// the object exists in test mode.
/// If the object exists in live mode, the value is <c>true</c>. If the object exists in
/// test mode, the value is <c>false</c>.
/// </summary>
[JsonProperty("livemode")]
[STJS.JsonPropertyName("livemode")]
Expand Down
4 changes: 2 additions & 2 deletions src/Stripe.net/Entities/Charges/Charge.cs
Original file line number Diff line number Diff line change
Expand Up @@ -340,8 +340,8 @@ public BalanceTransaction FailureBalanceTransaction
public ChargeLevel3 Level3 { get; set; }

/// <summary>
/// Has the value <c>true</c> if the object exists in live mode or the value <c>false</c> if
/// the object exists in test mode.
/// If the object exists in live mode, the value is <c>true</c>. If the object exists in
/// test mode, the value is <c>false</c>.
/// </summary>
[JsonProperty("livemode")]
[STJS.JsonPropertyName("livemode")]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,10 @@ public class ChargePaymentMethodDetails : StripeEntity<ChargePaymentMethodDetail
[STJS.JsonPropertyName("type")]
public string Type { get; set; }

[JsonProperty("upi")]
[STJS.JsonPropertyName("upi")]
public ChargePaymentMethodDetailsUpi Upi { get; set; }

[JsonProperty("us_bank_account")]
[STJS.JsonPropertyName("us_bank_account")]
public ChargePaymentMethodDetailsUsBankAccount UsBankAccount { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public class ChargePaymentMethodDetailsCrypto : StripeEntity<ChargePaymentMethod

/// <summary>
/// The blockchain network that the transaction was sent on.
/// One of: <c>base</c>, <c>ethereum</c>, <c>polygon</c>, or <c>solana</c>.
/// One of: <c>base</c>, <c>ethereum</c>, <c>polygon</c>, <c>solana</c>, or <c>tempo</c>.
/// </summary>
[JsonProperty("network")]
[STJS.JsonPropertyName("network")]
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
// File generated from our OpenAPI spec
namespace Stripe
{
using Newtonsoft.Json;
using Stripe.Infrastructure;
using STJS = System.Text.Json.Serialization;

[STJS.JsonConverter(typeof(STJStripeEntityConverter))]
public class ChargePaymentMethodDetailsUpi : StripeEntity<ChargePaymentMethodDetailsUpi>
{
/// <summary>
/// Customer's unique Virtual Payment Address.
/// </summary>
[JsonProperty("vpa")]
[STJS.JsonPropertyName("vpa")]
public string Vpa { get; set; }
}
}
15 changes: 12 additions & 3 deletions src/Stripe.net/Entities/Checkout/Sessions/Session.cs
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,14 @@ public Customer Customer
[STJS.JsonConverter(typeof(STJUnixDateTimeConverter))]
public DateTime ExpiresAt { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch;

/// <summary>
/// The integration identifier for this Checkout Session. Multiple Checkout Sessions can
/// have the same integration identifier.
/// </summary>
[JsonProperty("integration_identifier")]
[STJS.JsonPropertyName("integration_identifier")]
public string IntegrationIdentifier { get; set; }

#region Expandable Invoice

/// <summary>
Expand Down Expand Up @@ -337,8 +345,8 @@ public Invoice Invoice
public StripeList<LineItem> LineItems { get; set; }

/// <summary>
/// Has the value <c>true</c> if the object exists in live mode or the value <c>false</c> if
/// the object exists in test mode.
/// If the object exists in live mode, the value is <c>true</c>. If the object exists in
/// test mode, the value is <c>false</c>.
/// </summary>
[JsonProperty("livemode")]
[STJS.JsonPropertyName("livemode")]
Expand Down Expand Up @@ -709,7 +717,8 @@ public Subscription Subscription

/// <summary>
/// The UI mode of the Session. Defaults to <c>hosted</c>.
/// One of: <c>custom</c>, <c>embedded</c>, or <c>hosted</c>.
/// One of: <c>custom</c>, <c>elements</c>, <c>embedded</c>, <c>embedded_page</c>,
/// <c>form</c>, <c>hosted</c>, or <c>hosted_page</c>.
/// </summary>
[JsonProperty("ui_mode")]
[STJS.JsonPropertyName("ui_mode")]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,10 @@ public class SessionPaymentMethodOptions : StripeEntity<SessionPaymentMethodOpti
[STJS.JsonPropertyName("twint")]
public SessionPaymentMethodOptionsTwint Twint { get; set; }

[JsonProperty("upi")]
[STJS.JsonPropertyName("upi")]
public SessionPaymentMethodOptionsUpi Upi { get; set; }

[JsonProperty("us_bank_account")]
[STJS.JsonPropertyName("us_bank_account")]
public SessionPaymentMethodOptionsUsBankAccount UsBankAccount { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public class SessionPaymentMethodOptionsAcssDebit : StripeEntity<SessionPaymentM
public string TargetDate { get; set; }

/// <summary>
/// Bank account verification method.
/// Bank account verification method. The default value is <c>automatic</c>.
/// One of: <c>automatic</c>, <c>instant</c>, or <c>microdeposits</c>.
/// </summary>
[JsonProperty("verification_method")]
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
// File generated from our OpenAPI spec
namespace Stripe.Checkout
{
using Newtonsoft.Json;
using Stripe.Infrastructure;
using STJS = System.Text.Json.Serialization;

[STJS.JsonConverter(typeof(STJStripeEntityConverter))]
public class SessionPaymentMethodOptionsUpi : StripeEntity<SessionPaymentMethodOptionsUpi>
{
[JsonProperty("mandate_options")]
[STJS.JsonPropertyName("mandate_options")]
public SessionPaymentMethodOptionsUpiMandateOptions MandateOptions { get; set; }

/// <summary>
/// Indicates that you intend to make future payments with this PaymentIntent's payment
/// method.
///
/// If you provide a Customer with the PaymentIntent, you can use this parameter to <a
/// href="https://stripe.com/payments/save-during-payment">attach the payment method</a> to
/// the Customer after the PaymentIntent is confirmed and the customer completes any
/// required actions. If you don't provide a Customer, you can still <a
/// href="https://stripe.com/api/payment_methods/attach">attach</a> the payment method to a
/// Customer after the transaction completes.
///
/// If the payment method is <c>card_present</c> and isn't a digital wallet, Stripe creates
/// and attaches a <a
/// href="https://stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card">generated_card</a>
/// payment method representing the card to the Customer instead.
///
/// When processing card payments, Stripe uses <c>setup_future_usage</c> to help you comply
/// with regional legislation and network rules, such as <a
/// href="https://stripe.com/strong-customer-authentication">SCA</a>.
/// One of: <c>none</c>, <c>off_session</c>, or <c>on_session</c>.
/// </summary>
[JsonProperty("setup_future_usage")]
[STJS.JsonPropertyName("setup_future_usage")]
public string SetupFutureUsage { get; set; }
}
}
Loading
Loading