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 @@
25e6bd225852aa44d783e9fb3b9895af39479331
9aa5ee4ed2b929f65b7fbf7c341f938682888500
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v2206
v2252
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,7 +3,7 @@ namespace Stripe
{
internal class ApiVersion
{
public const string Current = "2026-03-25.dahlia";
public const string Current = "2026-04-22.dahlia";
public const string CurrentMajor = "dahlia";
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ public class AccountSessionComponents : StripeEntity<AccountSessionComponents>
[STJS.JsonPropertyName("account_onboarding")]
public AccountSessionComponentsAccountOnboarding AccountOnboarding { get; set; }

[JsonProperty("balance_report")]
[STJS.JsonPropertyName("balance_report")]
public AccountSessionComponentsBalanceReport BalanceReport { get; set; }

[JsonProperty("balances")]
[STJS.JsonPropertyName("balances")]
public AccountSessionComponentsBalances Balances { get; set; }
Expand Down Expand Up @@ -68,6 +72,10 @@ public class AccountSessionComponents : StripeEntity<AccountSessionComponents>
[STJS.JsonPropertyName("payout_details")]
public AccountSessionComponentsPayoutDetails PayoutDetails { get; set; }

[JsonProperty("payout_reconciliation_report")]
[STJS.JsonPropertyName("payout_reconciliation_report")]
public AccountSessionComponentsPayoutReconciliationReport PayoutReconciliationReport { get; set; }

[JsonProperty("payouts")]
[STJS.JsonPropertyName("payouts")]
public AccountSessionComponentsPayouts Payouts { get; set; }
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
// 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 AccountSessionComponentsBalanceReport : StripeEntity<AccountSessionComponentsBalanceReport>
{
/// <summary>
/// Whether the embedded component is enabled.
/// </summary>
[JsonProperty("enabled")]
[STJS.JsonPropertyName("enabled")]
public bool Enabled { get; set; }

[JsonProperty("features")]
[STJS.JsonPropertyName("features")]
public AccountSessionComponentsBalanceReportFeatures Features { get; set; }
}
}
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 AccountSessionComponentsBalanceReportFeatures : StripeEntity<AccountSessionComponentsBalanceReportFeatures>
{
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
// 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 AccountSessionComponentsPayoutReconciliationReport : StripeEntity<AccountSessionComponentsPayoutReconciliationReport>
{
/// <summary>
/// Whether the embedded component is enabled.
/// </summary>
[JsonProperty("enabled")]
[STJS.JsonPropertyName("enabled")]
public bool Enabled { get; set; }

[JsonProperty("features")]
[STJS.JsonPropertyName("features")]
public AccountSessionComponentsPayoutReconciliationReportFeatures Features { get; set; }
}
}
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 AccountSessionComponentsPayoutReconciliationReportFeatures : StripeEntity<AccountSessionComponentsPayoutReconciliationReportFeatures>
{
}
}
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 @@ -53,6 +53,15 @@ public class AccountCapabilities : StripeEntity<AccountCapabilities>
[STJS.JsonPropertyName("amazon_pay_payments")]
public string AmazonPayPayments { get; set; }

/// <summary>
/// The status of the <c>app_distribution</c> capability of the account, or whether the
/// platform can distribute apps to other accounts.
/// One of: <c>active</c>, <c>inactive</c>, or <c>pending</c>.
/// </summary>
[JsonProperty("app_distribution")]
[STJS.JsonPropertyName("app_distribution")]
public string AppDistribution { get; set; }

/// <summary>
/// The status of the BECS Direct Debit (AU) payments capability of the account, or whether
/// the account can directly process BECS Direct Debit (AU) charges.
Expand Down Expand Up @@ -475,6 +484,15 @@ public class AccountCapabilities : StripeEntity<AccountCapabilities>
[STJS.JsonPropertyName("sofort_payments")]
public string SofortPayments { get; set; }

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

/// <summary>
/// The status of the Swish capability of the account, or whether the account can directly
/// process Swish payments.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -178,9 +178,10 @@ public IBalanceTransactionSource Source
/// Transaction type: <c>adjustment</c>, <c>advance</c>, <c>advance_funding</c>,
/// <c>anticipation_repayment</c>, <c>application_fee</c>, <c>application_fee_refund</c>,
/// <c>charge</c>, <c>climate_order_purchase</c>, <c>climate_order_refund</c>,
/// <c>connect_collection_transfer</c>, <c>contribution</c>,
/// <c>issuing_authorization_hold</c>, <c>issuing_authorization_release</c>,
/// <c>issuing_dispute</c>, <c>issuing_transaction</c>, <c>obligation_outbound</c>,
/// <c>connect_collection_transfer</c>, <c>contribution</c>, <c>inbound_transfer</c>,
/// <c>inbound_transfer_reversal</c>, <c>issuing_authorization_hold</c>,
/// <c>issuing_authorization_release</c>, <c>issuing_dispute</c>,
/// <c>issuing_transaction</c>, <c>obligation_outbound</c>,
/// <c>obligation_reversal_inbound</c>, <c>payment</c>, <c>payment_failure_refund</c>,
/// <c>payment_network_reserve_hold</c>, <c>payment_network_reserve_release</c>,
/// <c>payment_refund</c>, <c>payment_reversal</c>, <c>payment_unreconciled</c>,
Expand All @@ -190,14 +191,16 @@ public IBalanceTransactionSource Source
/// <c>reserve_hold</c>, <c>reserve_release</c>, <c>stripe_fee</c>, <c>stripe_fx_fee</c>,
/// <c>stripe_balance_payment_debit</c>, <c>stripe_balance_payment_debit_reversal</c>,
/// <c>tax_fee</c>, <c>topup</c>, <c>topup_reversal</c>, <c>transfer</c>,
/// <c>transfer_cancel</c>, <c>transfer_failure</c>, or <c>transfer_refund</c>. Learn more
/// about <a href="https://stripe.com/docs/reports/balance-transaction-types">balance
/// transaction types and what they represent</a>. To classify transactions for accounting
/// purposes, consider <c>reporting_category</c> instead.
/// <c>transfer_cancel</c>, <c>transfer_failure</c>, <c>transfer_refund</c>, or
/// <c>fee_credit_funding</c>. Learn more about <a
/// href="https://stripe.com/docs/reports/balance-transaction-types">balance transaction
/// types and what they represent</a>. To classify transactions for accounting purposes,
/// consider <c>reporting_category</c> instead.
/// One of: <c>adjustment</c>, <c>advance</c>, <c>advance_funding</c>,
/// <c>anticipation_repayment</c>, <c>application_fee</c>, <c>application_fee_refund</c>,
/// <c>charge</c>, <c>climate_order_purchase</c>, <c>climate_order_refund</c>,
/// <c>connect_collection_transfer</c>, <c>contribution</c>,
/// <c>connect_collection_transfer</c>, <c>contribution</c>, <c>fee_credit_funding</c>,
/// <c>inbound_transfer</c>, <c>inbound_transfer_reversal</c>,
/// <c>issuing_authorization_hold</c>, <c>issuing_authorization_release</c>,
/// <c>issuing_dispute</c>, <c>issuing_transaction</c>, <c>obligation_outbound</c>,
/// <c>obligation_reversal_inbound</c>, <c>payment</c>, <c>payment_failure_refund</c>,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public class BalanceTransactionFeeDetail : StripeEntity<BalanceTransactionFeeDet

/// <summary>
/// Type of the fee, one of: <c>application_fee</c>, <c>payment_method_passthrough_fee</c>,
/// <c>stripe_fee</c> or <c>tax</c>.
/// <c>stripe_fee</c>, <c>tax</c>, or <c>withheld_tax</c>.
/// </summary>
[JsonProperty("type")]
[STJS.JsonPropertyName("type")]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,10 @@ public class ChargePaymentMethodDetails : StripeEntity<ChargePaymentMethodDetail
[STJS.JsonPropertyName("stripe_account")]
public ChargePaymentMethodDetailsStripeAccount StripeAccount { get; set; }

[JsonProperty("sunbit")]
[STJS.JsonPropertyName("sunbit")]
public ChargePaymentMethodDetailsSunbit Sunbit { get; set; }

[JsonProperty("swish")]
[STJS.JsonPropertyName("swish")]
public ChargePaymentMethodDetailsSwish Swish { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,14 @@ namespace Stripe
public class ChargePaymentMethodDetailsAffirm : StripeEntity<ChargePaymentMethodDetailsAffirm>
{
/// <summary>
/// ID of the <a href="https://docs.stripe.com/api/terminal/locations">location</a> that
/// this transaction's reader is assigned to.
/// ID of the location that this reader is assigned to.
/// </summary>
[JsonProperty("location")]
[STJS.JsonPropertyName("location")]
public string Location { get; set; }

/// <summary>
/// ID of the <a href="https://docs.stripe.com/api/terminal/readers">reader</a> this
/// transaction was made on.
/// ID of the reader this transaction was made on.
/// </summary>
[JsonProperty("reader")]
[STJS.JsonPropertyName("reader")]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public class ChargePaymentMethodDetailsAfterpayClearpay : StripeEntity<ChargePay
public string OrderId { get; set; }

/// <summary>
/// Order identifier shown to the merchant in Afterpays online portal.
/// Order identifier shown to the merchant in Afterpay's online portal.
/// </summary>
[JsonProperty("reference")]
[STJS.JsonPropertyName("reference")]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public class ChargePaymentMethodDetailsCrypto : StripeEntity<ChargePaymentMethod

/// <summary>
/// The token currency that the transaction was sent with.
/// One of: <c>usdc</c>, <c>usdg</c>, or <c>usdp</c>.
/// One of: <c>phantom_cash</c>, <c>usdc</c>, <c>usdg</c>, <c>usdp</c>, or <c>usdt</c>.
/// </summary>
[JsonProperty("token_currency")]
[STJS.JsonPropertyName("token_currency")]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,14 @@ namespace Stripe
[STJS.JsonConverter(typeof(STJStripeEntityConverter))]
public class ChargePaymentMethodDetailsKlarna : StripeEntity<ChargePaymentMethodDetailsKlarna>
{
/// <summary>
/// ID of the <a href="https://docs.stripe.com/api/terminal/locations">location</a> that
/// this transaction's reader is assigned to.
/// </summary>
[JsonProperty("location")]
[STJS.JsonPropertyName("location")]
public string Location { get; set; }

/// <summary>
/// The payer details for this transaction.
/// </summary>
Expand Down Expand Up @@ -37,5 +45,13 @@ public class ChargePaymentMethodDetailsKlarna : StripeEntity<ChargePaymentMethod
[JsonProperty("preferred_locale")]
[STJS.JsonPropertyName("preferred_locale")]
public string PreferredLocale { get; set; }

/// <summary>
/// ID of the <a href="https://docs.stripe.com/api/terminal/readers">reader</a> this
/// transaction was made on.
/// </summary>
[JsonProperty("reader")]
[STJS.JsonPropertyName("reader")]
public string Reader { get; set; }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,12 @@ public class ChargePaymentMethodDetailsPix : StripeEntity<ChargePaymentMethodDet
[JsonProperty("bank_transaction_id")]
[STJS.JsonPropertyName("bank_transaction_id")]
public string BankTransactionId { get; set; }

/// <summary>
/// ID of the multi use Mandate generated by the PaymentIntent.
/// </summary>
[JsonProperty("mandate")]
[STJS.JsonPropertyName("mandate")]
public string Mandate { 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 ChargePaymentMethodDetailsSunbit : StripeEntity<ChargePaymentMethodDetailsSunbit>
{
/// <summary>
/// The Sunbit transaction ID associated with this payment.
/// </summary>
[JsonProperty("transaction_id")]
[STJS.JsonPropertyName("transaction_id")]
public string TransactionId { get; set; }
}
}
10 changes: 10 additions & 0 deletions src/Stripe.net/Entities/Checkout/Sessions/Session.cs
Original file line number Diff line number Diff line change
Expand Up @@ -366,6 +366,16 @@ public Invoice Invoice
[STJS.JsonPropertyName("locale")]
public string Locale { get; set; }

/// <summary>
/// Settings for Managed Payments for this Checkout Session and resulting <a
/// href="https://stripe.com/api/payment_intents/object">PaymentIntents</a>, <a
/// href="https://stripe.com/api/invoices/object">Invoices</a>, and <a
/// href="https://stripe.com/api/subscriptions/object">Subscriptions</a>.
/// </summary>
[JsonProperty("managed_payments")]
[STJS.JsonPropertyName("managed_payments")]
public SessionManagedPayments ManagedPayments { get; set; }

/// <summary>
/// Set of <a href="https://docs.stripe.com/api/metadata">key-value pairs</a> that you can
/// attach to an object. This can be useful for storing additional information about the
Expand Down
Loading
Loading