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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion CODEGEN_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
161b2a6978a9cd8c0c376d83ae012fd5a7da2fe1
088388aa159596ba4e240aeb0bb65d5bb4a562ab
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v2315
v2323
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-06-10.preview";
public const string Current = "2026-06-24.preview";
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,24 @@ public class AccountSessionComponents : StripeEntity<AccountSessionComponents>
[STJS.JsonPropertyName("financial_account_transactions")]
public AccountSessionComponentsFinancialAccountTransactions FinancialAccountTransactions { get; set; }

/// <summary>
/// Configuration for the <a
/// href="https://stripe.com/connect/supported-embedded-components/financial-accounts/">financial
/// accounts</a> embedded component.
/// </summary>
[JsonProperty("financial_accounts")]
[STJS.JsonPropertyName("financial_accounts")]
public AccountSessionComponentsFinancialAccounts FinancialAccounts { get; set; }

/// <summary>
/// Configuration for the <a
/// href="https://stripe.com/connect/supported-embedded-components/financial-accounts-transactions/">financial
/// accounts transactions</a> embedded component.
/// </summary>
[JsonProperty("financial_accounts_transactions")]
[STJS.JsonPropertyName("financial_accounts_transactions")]
public AccountSessionComponentsFinancialAccountsTransactions FinancialAccountsTransactions { get; set; }

[JsonProperty("instant_payouts_promotion")]
[STJS.JsonPropertyName("instant_payouts_promotion")]
public AccountSessionComponentsInstantPayoutsPromotion InstantPayoutsPromotion { get; set; }
Expand Down Expand Up @@ -150,6 +168,15 @@ public class AccountSessionComponents : StripeEntity<AccountSessionComponents>
[STJS.JsonPropertyName("payouts_list")]
public AccountSessionComponentsPayoutsList PayoutsList { get; set; }

/// <summary>
/// Configuration for the <a
/// href="https://stripe.com/connect/supported-embedded-components/recipients-list/">recipients
/// list</a> embedded component.
/// </summary>
[JsonProperty("recipients_list")]
[STJS.JsonPropertyName("recipients_list")]
public AccountSessionComponentsRecipientsList RecipientsList { get; set; }

[JsonProperty("tax_registrations")]
[STJS.JsonPropertyName("tax_registrations")]
public AccountSessionComponentsTaxRegistrations TaxRegistrations { 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 AccountSessionComponentsFinancialAccounts : StripeEntity<AccountSessionComponentsFinancialAccounts>
{
/// <summary>
/// Whether the embedded component is enabled.
/// </summary>
[JsonProperty("enabled")]
[STJS.JsonPropertyName("enabled")]
public bool Enabled { get; set; }

[JsonProperty("features")]
[STJS.JsonPropertyName("features")]
public AccountSessionComponentsFinancialAccountsFeatures Features { get; set; }
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
// 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 AccountSessionComponentsFinancialAccountsFeatures : StripeEntity<AccountSessionComponentsFinancialAccountsFeatures>
{
/// <summary>
/// Whether to allow bill management features.
/// </summary>
[JsonProperty("bill_management")]
[STJS.JsonPropertyName("bill_management")]
public bool BillManagement { get; set; }

/// <summary>
/// Whether to allow card management features.
/// </summary>
[JsonProperty("card_management")]
[STJS.JsonPropertyName("card_management")]
public bool CardManagement { get; set; }

/// <summary>
/// Whether Stripe user authentication is disabled. This value can only be <c>true</c> for
/// accounts where <c>controller.requirement_collection</c> is <c>application</c> for the
/// account. This is <c>false</c> by default.
/// </summary>
[JsonProperty("disable_stripe_user_authentication")]
[STJS.JsonPropertyName("disable_stripe_user_authentication")]
public bool DisableStripeUserAuthentication { get; set; }

/// <summary>
/// Whether to allow payout schedule to be changed. Defaults to <c>true</c> when
/// <c>controller.losses.payments</c> is set to <c>stripe</c> for the account, otherwise
/// <c>false</c>.
/// </summary>
[JsonProperty("edit_payout_schedule")]
[STJS.JsonPropertyName("edit_payout_schedule")]
public bool EditPayoutSchedule { get; set; }

/// <summary>
/// Whether to enable the send money feature that grants access to the v2
/// CreateOutboundPayment API.
/// </summary>
[JsonProperty("send_money")]
[STJS.JsonPropertyName("send_money")]
public bool SendMoney { get; set; }
}
}
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 AccountSessionComponentsFinancialAccountsTransactions : StripeEntity<AccountSessionComponentsFinancialAccountsTransactions>
{
/// <summary>
/// Whether the embedded component is enabled.
/// </summary>
[JsonProperty("enabled")]
[STJS.JsonPropertyName("enabled")]
public bool Enabled { get; set; }

[JsonProperty("features")]
[STJS.JsonPropertyName("features")]
public AccountSessionComponentsFinancialAccountsTransactionsFeatures Features { get; set; }
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
// 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 AccountSessionComponentsFinancialAccountsTransactionsFeatures : StripeEntity<AccountSessionComponentsFinancialAccountsTransactionsFeatures>
{
/// <summary>
/// Whether to allow capturing and cancelling payment intents. This is <c>true</c> by
/// default.
/// </summary>
[JsonProperty("capture_payments")]
[STJS.JsonPropertyName("capture_payments")]
public bool CapturePayments { get; set; }

/// <summary>
/// Whether to allow card management features.
/// </summary>
[JsonProperty("card_management")]
[STJS.JsonPropertyName("card_management")]
public bool CardManagement { get; set; }

/// <summary>
/// Whether to allow card spend dispute management features.
/// </summary>
[JsonProperty("card_spend_dispute_management")]
[STJS.JsonPropertyName("card_spend_dispute_management")]
public bool CardSpendDisputeManagement { get; set; }

/// <summary>
/// Whether connected accounts can manage destination charges that are created on behalf of
/// them. This is <c>false</c> by default.
/// </summary>
[JsonProperty("destination_on_behalf_of_charge_management")]
[STJS.JsonPropertyName("destination_on_behalf_of_charge_management")]
public bool DestinationOnBehalfOfChargeManagement { get; set; }

/// <summary>
/// Whether responding to disputes is enabled, including submitting evidence and accepting
/// disputes. This is <c>true</c> by default.
/// </summary>
[JsonProperty("dispute_management")]
[STJS.JsonPropertyName("dispute_management")]
public bool DisputeManagement { get; set; }

/// <summary>
/// Whether sending refunds is enabled. This is <c>true</c> by default.
/// </summary>
[JsonProperty("refund_management")]
[STJS.JsonPropertyName("refund_management")]
public bool RefundManagement { get; set; }
}
}
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 AccountSessionComponentsRecipientsList : StripeEntity<AccountSessionComponentsRecipientsList>
{
/// <summary>
/// Whether the embedded component is enabled.
/// </summary>
[JsonProperty("enabled")]
[STJS.JsonPropertyName("enabled")]
public bool Enabled { get; set; }

[JsonProperty("features")]
[STJS.JsonPropertyName("features")]
public AccountSessionComponentsRecipientsListFeatures Features { get; set; }
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
// 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 AccountSessionComponentsRecipientsListFeatures : StripeEntity<AccountSessionComponentsRecipientsListFeatures>
{
/// <summary>
/// Whether Stripe user authentication is disabled. This value can only be <c>true</c> for
/// accounts where <c>controller.requirement_collection</c> is <c>application</c> for the
/// account. This is <c>false</c> by default.
/// </summary>
[JsonProperty("disable_stripe_user_authentication")]
[STJS.JsonPropertyName("disable_stripe_user_authentication")]
public bool DisableStripeUserAuthentication { get; set; }

/// <summary>
/// Whether to allow sending money.
/// </summary>
[JsonProperty("send_money")]
[STJS.JsonPropertyName("send_money")]
public bool SendMoney { get; set; }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,22 @@ public class ChargePaymentMethodDetailsGiftCard : StripeEntity<ChargePaymentMeth
[STJS.JsonPropertyName("last4")]
public string Last4 { get; set; }

/// <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>
/// 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; }

/// <summary>
/// The transaction ID from the gift card processor.
/// </summary>
Expand Down
7 changes: 7 additions & 0 deletions src/Stripe.net/Entities/Checkout/Sessions/Session.cs
Original file line number Diff line number Diff line change
Expand Up @@ -376,6 +376,13 @@ public Invoice Invoice
[STJS.JsonPropertyName("invoice_creation")]
public SessionInvoiceCreation InvoiceCreation { get; set; }

/// <summary>
/// The items to be purchased by the customer.
/// </summary>
[JsonProperty("items")]
[STJS.JsonPropertyName("items")]
public List<SessionItem> Items { get; set; }

/// <summary>
/// The line items purchased by the customer.
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,13 @@ namespace Stripe.Checkout
[STJS.JsonConverter(typeof(STJStripeEntityConverter))]
public class SessionCurrentAttemptPaymentMethodDetailsCard : StripeEntity<SessionCurrentAttemptPaymentMethodDetailsCard>
{
/// <summary>
/// The brand of the card, accounting for customer's brand choice on dual-branded cards.
/// </summary>
[JsonProperty("brand")]
[STJS.JsonPropertyName("brand")]
public string Brand { get; set; }

/// <summary>
/// Two-letter ISO code representing the country of the card. You could use this attribute
/// to get a sense of the international breakdown of cards you've collected.
Expand Down
25 changes: 25 additions & 0 deletions src/Stripe.net/Entities/Checkout/Sessions/SessionItem.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
// 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 SessionItem : StripeEntity<SessionItem>
{
/// <summary>
/// The key of the item. Guaranteed to be a unique ID within this checkout session's items.
/// </summary>
[JsonProperty("key")]
[STJS.JsonPropertyName("key")]
public string Key { get; set; }

/// <summary>
/// The type of the item.
/// </summary>
[JsonProperty("type")]
[STJS.JsonPropertyName("type")]
public string Type { get; set; }
}
}
29 changes: 15 additions & 14 deletions src/Stripe.net/Entities/Events/Event.cs
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,9 @@ public class Event : StripeEntity<Event>, IHasId, IHasObject
/// <c>account_notice.created</c>, <c>account_notice.updated</c>,
/// <c>application_fee.created</c>, <c>application_fee.refund.updated</c>,
/// <c>application_fee.refunded</c>, <c>balance.available</c>,
/// <c>balance_settings.updated</c>, <c>billing.alert.triggered</c>,
/// <c>billing.credit_grant.created</c>, <c>billing_portal.configuration.created</c>,
/// <c>balance_settings.updated</c>, <c>billing.alert.recovered</c>,
/// <c>billing.alert.triggered</c>, <c>billing.credit_grant.created</c>,
/// <c>billing_portal.configuration.created</c>,
/// <c>billing_portal.configuration.updated</c>, <c>billing_portal.session.created</c>,
/// <c>capability.updated</c>, <c>capital.financing_offer.accepted</c>,
/// <c>capital.financing_offer.accepted_other_offer</c>,
Expand Down Expand Up @@ -207,16 +208,17 @@ public class Event : StripeEntity<Event>, IHasId, IHasObject
/// <c>issuing_transaction.purchase_details_receipt_updated</c>,
/// <c>issuing_transaction.updated</c>, <c>mandate.updated</c>,
/// <c>payment_intent.amount_capturable_updated</c>, <c>payment_intent.canceled</c>,
/// <c>payment_intent.created</c>, <c>payment_intent.partially_funded</c>,
/// <c>payment_intent.payment_failed</c>, <c>payment_intent.processing</c>,
/// <c>payment_intent.requires_action</c>, <c>payment_intent.succeeded</c>,
/// <c>payment_link.created</c>, <c>payment_link.updated</c>,
/// <c>payment_method.attached</c>, <c>payment_method.automatically_updated</c>,
/// <c>payment_method.detached</c>, <c>payment_method.updated</c>, <c>payout.canceled</c>,
/// <c>payout.created</c>, <c>payout.failed</c>, <c>payout.paid</c>,
/// <c>payout.reconciliation_completed</c>, <c>payout.updated</c>, <c>person.created</c>,
/// <c>person.deleted</c>, <c>person.updated</c>, <c>plan.created</c>, <c>plan.deleted</c>,
/// <c>plan.updated</c>, <c>price.created</c>, <c>price.deleted</c>, <c>price.updated</c>,
/// <c>payment_intent.created</c>, <c>payment_intent.expired</c>,
/// <c>payment_intent.partially_funded</c>, <c>payment_intent.payment_failed</c>,
/// <c>payment_intent.processing</c>, <c>payment_intent.requires_action</c>,
/// <c>payment_intent.succeeded</c>, <c>payment_link.created</c>,
/// <c>payment_link.updated</c>, <c>payment_method.attached</c>,
/// <c>payment_method.automatically_updated</c>, <c>payment_method.detached</c>,
/// <c>payment_method.updated</c>, <c>payout.canceled</c>, <c>payout.created</c>,
/// <c>payout.failed</c>, <c>payout.paid</c>, <c>payout.reconciliation_completed</c>,
/// <c>payout.updated</c>, <c>person.created</c>, <c>person.deleted</c>,
/// <c>person.updated</c>, <c>plan.created</c>, <c>plan.deleted</c>, <c>plan.updated</c>,
/// <c>price.created</c>, <c>price.deleted</c>, <c>price.updated</c>,
/// <c>privacy.redaction_job.canceled</c>, <c>privacy.redaction_job.created</c>,
/// <c>privacy.redaction_job.ready</c>, <c>privacy.redaction_job.succeeded</c>,
/// <c>privacy.redaction_job.validation_error</c>, <c>product.created</c>,
Expand Down Expand Up @@ -269,8 +271,7 @@ public class Event : StripeEntity<Event>, IHasId, IHasObject
/// <c>treasury.outbound_transfer.tracking_details_updated</c>,
/// <c>treasury.received_credit.created</c>, <c>treasury.received_credit.failed</c>,
/// <c>treasury.received_credit.succeeded</c>, <c>treasury.received_debit.created</c>,
/// <c>invoice_payment.detached</c>, <c>billing.alert.recovered</c>,
/// <c>payment_intent.expired</c>, <c>billing.credit_balance_transaction.created</c>,
/// <c>invoice_payment.detached</c>, <c>billing.credit_balance_transaction.created</c>,
/// <c>billing.credit_grant.updated</c>, <c>billing.meter.created</c>,
/// <c>billing.meter.deactivated</c>, <c>billing.meter.reactivated</c>,
/// <c>billing.meter.updated</c>, or <c>ping</c>.
Expand Down
Loading
Loading