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 @@
826bf48af8bcd391512daeaf283b8486347b14c8
d59a1f4bdea3032b8e282d40badc032cb021fc60
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v2253
v2277
1 change: 1 addition & 0 deletions src/Examples/V2/EventNotificationHandlerEndpoint.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// File copied from our code generator; changes here will be overwritten.
namespace Examples.V2
{
#pragma warning disable SA1101 // Prefix local calls with this
Expand Down Expand Up @@ -32,7 +33,7 @@
handler = client.NotificationHandler(Environment.GetEnvironmentVariable("WEBHOOK_SECRET") ?? string.Empty, FallbackCallback);

// register handlers
handler.V1BillingMeterErrorReportTriggered += HandleBillingMeterErrorReportTriggeredEventNotification;

Check warning on line 36 in src/Examples/V2/EventNotificationHandlerEndpoint.cs

View workflow job for this annotation

GitHub Actions / Build examples

Nullability of reference types in type of parameter 'sender' of 'void EventNotificationHandlerEndpoint.HandleBillingMeterErrorReportTriggeredEventNotification(object sender, StripeEventNotificationEventArgs<V1BillingMeterErrorReportTriggeredEventNotification> e)' doesn't match the target delegate 'EventHandler<StripeEventNotificationEventArgs<V1BillingMeterErrorReportTriggeredEventNotification>>' (possibly because of nullability attributes).

Check warning on line 36 in src/Examples/V2/EventNotificationHandlerEndpoint.cs

View workflow job for this annotation

GitHub Actions / Build examples

Nullability of reference types in type of parameter 'sender' of 'void EventNotificationHandlerEndpoint.HandleBillingMeterErrorReportTriggeredEventNotification(object sender, StripeEventNotificationEventArgs<V1BillingMeterErrorReportTriggeredEventNotification> e)' doesn't match the target delegate 'EventHandler<StripeEventNotificationEventArgs<V1BillingMeterErrorReportTriggeredEventNotification>>' (possibly because of nullability attributes).
}

private void HandleBillingMeterErrorReportTriggeredEventNotification(object sender, Stripe.StripeEventNotificationEventArgs<Stripe.Events.V1BillingMeterErrorReportTriggeredEventNotification> e)
Expand Down
2 changes: 1 addition & 1 deletion src/Stripe.net/Constants/ApiVersion.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ namespace Stripe
{
internal class ApiVersion
{
public const string Current = "2026-04-22.preview";
public const string Current = "2026-05-27.preview";
}
}
18 changes: 18 additions & 0 deletions src/Stripe.net/Entities/Accounts/AccountCapabilities.cs
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,15 @@ public class AccountCapabilities : StripeEntity<AccountCapabilities>
[STJS.JsonPropertyName("billie_payments")]
public string BilliePayments { get; set; }

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

/// <summary>
/// The status of the blik payments capability of the account, or whether the account can
/// directly process blik charges.
Expand Down Expand Up @@ -527,6 +536,15 @@ public class AccountCapabilities : StripeEntity<AccountCapabilities>
[STJS.JsonPropertyName("satispay_payments")]
public string SatispayPayments { get; set; }

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

/// <summary>
/// The status of the SEPA customer_balance payments (EUR currency) capability of the
/// account, or whether the account can directly process SEPA customer_balance charges.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,14 @@ namespace Stripe
[STJS.JsonConverter(typeof(STJStripeEntityConverter))]
public class BalanceSettingsPaymentsPayouts : StripeEntity<BalanceSettingsPaymentsPayouts>
{
/// <summary>
/// Configures per-currency rules for automatically transferring funds from the payments
/// balance to a FinancialAccount.
/// </summary>
[JsonProperty("automatic_transfer_rules_by_currency")]
[STJS.JsonPropertyName("automatic_transfer_rules_by_currency")]
public Dictionary<string, List<BalanceSettingsPaymentsPayoutsAutomaticTransferRulesByCurrency>> AutomaticTransferRulesByCurrency { get; set; }

/// <summary>
/// The minimum balance amount to retain per currency after automatic payouts. Only funds
/// that exceed these amounts are paid out. Learn more about the <a
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
// 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 BalanceSettingsPaymentsPayoutsAutomaticTransferRulesByCurrency : StripeEntity<BalanceSettingsPaymentsPayoutsAutomaticTransferRulesByCurrency>
{
/// <summary>
/// The ID of the FinancialAccount that funds will be transferred to during automatic
/// transfers.
/// </summary>
[JsonProperty("payout_method")]
[STJS.JsonPropertyName("payout_method")]
public string PayoutMethod { get; set; }

/// <summary>
/// The maximum amount in minor units to transfer to the FinancialAccount. Only applicable
/// when <c>type</c> is <c>transfer_up_to_amount</c>.
/// </summary>
[JsonProperty("transfer_up_to_amount")]
[STJS.JsonPropertyName("transfer_up_to_amount")]
public long? TransferUpToAmount { get; set; }

/// <summary>
/// The type of automatic transfer rule.
/// One of: <c>transfer_all</c>, or <c>transfer_up_to_amount</c>.
/// </summary>
[JsonProperty("type")]
[STJS.JsonPropertyName("type")]
public string Type { get; set; }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,15 @@ public class BalanceSettingsPaymentsSettlementTiming : StripeEntity<BalanceSetti
[JsonProperty("delay_days_override")]
[STJS.JsonPropertyName("delay_days_override")]
public long DelayDaysOverride { get; set; }

/// <summary>
/// Customized start of day configuration for automatic payouts to group and send payments
/// in local timezones with a customized day starting time. For details, see our <a
/// href="https://stripe.com/connect/customized-start-of-day">Customized start of day</a>
/// documentation.
/// </summary>
[JsonProperty("start_of_day")]
[STJS.JsonPropertyName("start_of_day")]
public BalanceSettingsPaymentsSettlementTimingStartOfDay StartOfDay { get; set; }
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
// 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 BalanceSettingsPaymentsSettlementTimingStartOfDay : StripeEntity<BalanceSettingsPaymentsSettlementTimingStartOfDay>
{
/// <summary>
/// Hour at which the customized start of day begins according to the given timezone. Must
/// be a <a
/// href="https://stripe.com/connect/customized-start-of-day#available-timezones-and-cutoffs">supported
/// customized start of day hour</a>.
/// </summary>
[JsonProperty("hour")]
[STJS.JsonPropertyName("hour")]
public long Hour { get; set; }

/// <summary>
/// Minutes at which the customized start of day begins according to the given timezone.
/// Must be either 0 or 30.
/// </summary>
[JsonProperty("minutes")]
[STJS.JsonPropertyName("minutes")]
public long Minutes { get; set; }

/// <summary>
/// Timezone for the customized start of day. Must be a <a
/// href="https://stripe.com/connect/customized-start-of-day#available-timezones-and-cutoffs">supported
/// customized start of day timezone</a>.
/// </summary>
[JsonProperty("timezone")]
[STJS.JsonPropertyName("timezone")]
public string Timezone { get; set; }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,10 @@ public class ChargePaymentMethodDetails : StripeEntity<ChargePaymentMethodDetail
[STJS.JsonPropertyName("billie")]
public ChargePaymentMethodDetailsBillie Billie { get; set; }

[JsonProperty("bizum")]
[STJS.JsonPropertyName("bizum")]
public ChargePaymentMethodDetailsBizum Bizum { get; set; }

[JsonProperty("blik")]
[STJS.JsonPropertyName("blik")]
public ChargePaymentMethodDetailsBlik Blik { get; set; }
Expand Down Expand Up @@ -216,6 +220,10 @@ public class ChargePaymentMethodDetails : StripeEntity<ChargePaymentMethodDetail
[STJS.JsonPropertyName("satispay")]
public ChargePaymentMethodDetailsSatispay Satispay { get; set; }

[JsonProperty("scalapay")]
[STJS.JsonPropertyName("scalapay")]
public ChargePaymentMethodDetailsScalapay Scalapay { get; set; }

[JsonProperty("sepa_debit")]
[STJS.JsonPropertyName("sepa_debit")]
public ChargePaymentMethodDetailsSepaDebit SepaDebit { get; set; }
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 ChargePaymentMethodDetailsBizum : StripeEntity<ChargePaymentMethodDetailsBizum>
{
/// <summary>
/// The Bizum transaction ID associated with this payment.
/// </summary>
[JsonProperty("transaction_id")]
[STJS.JsonPropertyName("transaction_id")]
public string TransactionId { get; set; }
}
}
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 ChargePaymentMethodDetailsScalapay : StripeEntity<ChargePaymentMethodDetailsScalapay>
{
/// <summary>
/// The Scalapay transaction ID associated with this payment.
/// </summary>
[JsonProperty("transaction_id")]
[STJS.JsonPropertyName("transaction_id")]
public string TransactionId { get; set; }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,11 @@ namespace Stripe
[STJS.JsonConverter(typeof(STJStripeEntityConverter))]
public class ChargePaymentMethodDetailsTwint : StripeEntity<ChargePaymentMethodDetailsTwint>
{
/// <summary>
/// ID of the multi use Mandate generated by the PaymentIntent.
/// </summary>
[JsonProperty("mandate")]
[STJS.JsonPropertyName("mandate")]
public string Mandate { get; set; }
}
}
22 changes: 11 additions & 11 deletions src/Stripe.net/Entities/Checkout/Sessions/Session.cs
Original file line number Diff line number Diff line change
Expand Up @@ -113,9 +113,9 @@ public class Session : StripeEntity<Session>, IHasId, IHasMetadata, IHasObject

/// <summary>
/// The client secret of your Checkout Session. Applies to Checkout Sessions with
/// <c>ui_mode: embedded</c> or <c>ui_mode: custom</c>. For <c>ui_mode: embedded</c>, the
/// client secret is to be used when initializing Stripe.js embedded checkout. For
/// <c>ui_mode: custom</c>, use the client secret with <a
/// <c>ui_mode: embedded_page</c> or <c>ui_mode: elements</c>. For <c>ui_mode:
/// embedded_page</c>, the client secret is to be used when initializing Stripe.js embedded
/// checkout. For <c>ui_mode: elements</c>, use the client secret with <a
/// href="https://docs.stripe.com/js/custom_checkout/init">initCheckout</a> on your front
/// end.
/// </summary>
Expand Down Expand Up @@ -559,7 +559,7 @@ public PaymentLink PaymentLink
public string RecoveredFrom { get; set; }

/// <summary>
/// This parameter applies to <c>ui_mode: embedded</c>. Learn more about the <a
/// This parameter applies to <c>ui_mode: embedded_page</c>. Learn more about the <a
/// href="https://docs.stripe.com/payments/checkout/custom-success-page?payment-ui=embedded-form">redirect
/// behavior</a> of embedded sessions. Defaults to <c>always</c>.
/// One of: <c>always</c>, <c>if_required</c>, or <c>never</c>.
Expand All @@ -569,9 +569,9 @@ public PaymentLink PaymentLink
public string RedirectOnCompletion { get; set; }

/// <summary>
/// Applies to Checkout Sessions with <c>ui_mode: embedded</c> or <c>ui_mode: custom</c>.
/// The URL to redirect your customer back to after they authenticate or cancel their
/// payment on the payment method's app or site.
/// Applies to Checkout Sessions with <c>ui_mode: embedded_page</c> or <c>ui_mode:
/// elements</c>. The URL to redirect your customer back to after they authenticate or
/// cancel their payment on the payment method's app or site.
/// </summary>
[JsonProperty("return_url")]
[STJS.JsonPropertyName("return_url")]
Expand Down Expand Up @@ -735,10 +735,10 @@ public Subscription Subscription

/// <summary>
/// The URL to the Checkout Session. Applies to Checkout Sessions with <c>ui_mode:
/// hosted</c>. Redirect customers to this URL to take them to Checkout. If you’re using <a
/// href="https://docs.stripe.com/payments/checkout/custom-domains">Custom Domains</a>, the
/// URL will use your subdomain. Otherwise, it’ll use <c>checkout.stripe.com.</c> This value
/// is only present when the session is active.
/// hosted_page</c>. Redirect customers to this URL to take them to Checkout. If you’re
/// using <a href="https://docs.stripe.com/payments/checkout/custom-domains">Custom
/// Domains</a>, the URL will use your subdomain. Otherwise, it’ll use
/// <c>checkout.stripe.com.</c> This value is only present when the session is active.
/// </summary>
[JsonProperty("url")]
[STJS.JsonPropertyName("url")]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public class SessionConsentCollection : StripeEntity<SessionConsentCollection>
/// If set to <c>auto</c>, enables the collection of customer consent for promotional
/// communications. The Checkout Session will determine whether to display an option to opt
/// into promotional communication from the merchant depending on the customer's locale.
/// Only available to US merchants.
/// Only available to US merchants and US customers.
/// One of: <c>auto</c>, or <c>none</c>.
/// </summary>
[JsonProperty("promotions")]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,10 @@ public class SessionPaymentMethodOptions : StripeEntity<SessionPaymentMethodOpti
[STJS.JsonPropertyName("satispay")]
public SessionPaymentMethodOptionsSatispay Satispay { get; set; }

[JsonProperty("scalapay")]
[STJS.JsonPropertyName("scalapay")]
public SessionPaymentMethodOptionsScalapay Scalapay { get; set; }

[JsonProperty("sepa_debit")]
[STJS.JsonPropertyName("sepa_debit")]
public SessionPaymentMethodOptionsSepaDebit SepaDebit { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ namespace Stripe.Checkout
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.
/// The card brands to block. If a customer enters or selects a card belonging to a blocked
/// brand, they can't complete the payment.
/// One of: <c>american_express</c>, <c>discover_global_network</c>, <c>mastercard</c>, or
/// <c>visa</c>.
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
// 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 SessionPaymentMethodOptionsScalapay : StripeEntity<SessionPaymentMethodOptionsScalapay>
{
/// <summary>
/// Controls when the funds will be captured from the customer's account.
/// </summary>
[JsonProperty("capture_method")]
[STJS.JsonPropertyName("capture_method")]
public string CaptureMethod { get; set; }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ public class SessionPaymentMethodOptionsTwint : StripeEntity<SessionPaymentMetho
/// 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>, or <c>off_session</c>.
/// </summary>
[JsonProperty("setup_future_usage")]
[STJS.JsonPropertyName("setup_future_usage")]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,10 @@ public class ConfirmationTokenPaymentMethodPreview : StripeEntity<ConfirmationTo
[STJS.JsonPropertyName("billing_details")]
public ConfirmationTokenPaymentMethodPreviewBillingDetails BillingDetails { get; set; }

[JsonProperty("bizum")]
[STJS.JsonPropertyName("bizum")]
public ConfirmationTokenPaymentMethodPreviewBizum Bizum { get; set; }

[JsonProperty("blik")]
[STJS.JsonPropertyName("blik")]
public ConfirmationTokenPaymentMethodPreviewBlik Blik { get; set; }
Expand Down Expand Up @@ -264,6 +268,10 @@ public Customer Customer
[STJS.JsonPropertyName("satispay")]
public ConfirmationTokenPaymentMethodPreviewSatispay Satispay { get; set; }

[JsonProperty("scalapay")]
[STJS.JsonPropertyName("scalapay")]
public ConfirmationTokenPaymentMethodPreviewScalapay Scalapay { get; set; }

[JsonProperty("sepa_debit")]
[STJS.JsonPropertyName("sepa_debit")]
public ConfirmationTokenPaymentMethodPreviewSepaDebit SepaDebit { get; set; }
Expand Down Expand Up @@ -298,7 +306,7 @@ public Customer Customer
/// PaymentMethod type.
/// One of: <c>acss_debit</c>, <c>affirm</c>, <c>afterpay_clearpay</c>, <c>alipay</c>,
/// <c>alma</c>, <c>amazon_pay</c>, <c>au_becs_debit</c>, <c>bacs_debit</c>,
/// <c>bancontact</c>, <c>billie</c>, <c>blik</c>, <c>boleto</c>, <c>card</c>,
/// <c>bancontact</c>, <c>billie</c>, <c>bizum</c>, <c>blik</c>, <c>boleto</c>, <c>card</c>,
/// <c>card_present</c>, <c>cashapp</c>, <c>crypto</c>, <c>custom</c>,
/// <c>customer_balance</c>, <c>eps</c>, <c>fpx</c>, <c>giropay</c>, <c>gopay</c>,
/// <c>grabpay</c>, <c>id_bank_transfer</c>, <c>ideal</c>, <c>interac_present</c>,
Expand All @@ -307,9 +315,9 @@ public Customer Customer
/// <c>nz_bank_account</c>, <c>oxxo</c>, <c>p24</c>, <c>pay_by_bank</c>, <c>payco</c>,
/// <c>paynow</c>, <c>paypal</c>, <c>paypay</c>, <c>payto</c>, <c>pix</c>, <c>promptpay</c>,
/// <c>qris</c>, <c>rechnung</c>, <c>revolut_pay</c>, <c>samsung_pay</c>, <c>satispay</c>,
/// <c>sepa_debit</c>, <c>shopeepay</c>, <c>sofort</c>, <c>stripe_balance</c>,
/// <c>sunbit</c>, <c>swish</c>, <c>twint</c>, <c>upi</c>, <c>us_bank_account</c>,
/// <c>wechat_pay</c>, or <c>zip</c>.
/// <c>scalapay</c>, <c>sepa_debit</c>, <c>shopeepay</c>, <c>sofort</c>,
/// <c>stripe_balance</c>, <c>sunbit</c>, <c>swish</c>, <c>twint</c>, <c>upi</c>,
/// <c>us_bank_account</c>, <c>wechat_pay</c>, or <c>zip</c>.
/// </summary>
[JsonProperty("type")]
[STJS.JsonPropertyName("type")]
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
// 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 ConfirmationTokenPaymentMethodPreviewBizum : StripeEntity<ConfirmationTokenPaymentMethodPreviewBizum>
{
}
}
Loading
Loading