Skip to content
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion API_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
7b6ef1a028c0ea3233cd7acd5dd1496acc8da61e
c0dacb8d26f5b7c5d68ef88b3f51d40c1eafeab7
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v2119
v2124
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 = "2025-10-29.preview";
public const string Current = "2025-11-17.preview";
}
}
10 changes: 10 additions & 0 deletions src/Stripe.net/Constants/EventTypes.cs
Original file line number Diff line number Diff line change
Expand Up @@ -505,6 +505,11 @@ public static class EventTypes
/// </summary>
public const string FileCreated = "file.created";

/// <summary>
/// Occurs when a Financial Connections account's account numbers are updated.
/// </summary>
public const string FinancialConnectionsAccountAccountNumbersUpdated = "financial_connections.account.account_numbers_updated";

/// <summary>
/// Occurs when a new Financial Connections account is created.
/// </summary>
Expand Down Expand Up @@ -551,6 +556,11 @@ public static class EventTypes
/// </summary>
public const string FinancialConnectionsAccountRefreshedTransactions = "financial_connections.account.refreshed_transactions";

/// <summary>
/// Occurs when an Account’s tokenized account number is about to expire.
/// </summary>
public const string FinancialConnectionsAccountUpcomingAccountNumberExpiry = "financial_connections.account.upcoming_account_number_expiry";

/// <summary>
/// Occurs when a Financial Connections Session <c>status</c> transitions from
/// <c>pending</c> to <c>failed</c>, <c>cancelled</c>, or <c>completed</c>.
Expand Down
10 changes: 10 additions & 0 deletions src/Stripe.net/Entities/Accounts/AccountBusinessProfile.cs
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,16 @@ public class AccountBusinessProfile : StripeEntity<AccountBusinessProfile>
#endif
public string ProductDescription { get; set; }

/// <summary>
/// A link to the business's publicly available terms related to the Specified Commercial
/// Transaction Act. Only used for accounts in Japan.
/// </summary>
[JsonProperty("specified_commercial_transactions_act_url")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("specified_commercial_transactions_act_url")]
#endif
public string SpecifiedCommercialTransactionsActUrl { get; set; }

/// <summary>
/// A publicly available mailing address for sending support issues to.
/// </summary>
Expand Down
6 changes: 6 additions & 0 deletions src/Stripe.net/Entities/Accounts/AccountSettings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,12 @@ public class AccountSettings : StripeEntity<AccountSettings>
#endif
public AccountSettingsPayouts Payouts { get; set; }

[JsonProperty("paypay_payments")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("paypay_payments")]
#endif
public AccountSettingsPaypayPayments PaypayPayments { get; set; }

[JsonProperty("sepa_debit_payments")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("sepa_debit_payments")]
Expand Down
5 changes: 3 additions & 2 deletions src/Stripe.net/Entities/Accounts/AccountSettingsInvoices.cs
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,9 @@ public List<TaxId> DefaultAccountTaxIds
#endregion

/// <summary>
/// Whether payment methods should be saved when a payment is completed for a one-time
/// invoices on a hosted invoice page.
/// Whether to save the payment method after a payment is completed for a one-time invoice
/// or a subscription invoice when the customer already has a default payment method on the
/// hosted invoice page.
/// One of: <c>always</c>, <c>never</c>, or <c>offer</c>.
/// </summary>
[JsonProperty("hosted_payment_method_save")]
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
// File generated from our OpenAPI spec
namespace Stripe
{
using Newtonsoft.Json;
#if NET6_0_OR_GREATER
using STJS = System.Text.Json.Serialization;
#endif

public class AccountSettingsPaypayPayments : StripeEntity<AccountSettingsPaypayPayments>
{
/// <summary>
/// Whether your business sells digital content or not.
/// One of: <c>digital_content</c>, or <c>other</c>.
/// </summary>
[JsonProperty("goods_type")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("goods_type")]
#endif
public string GoodsType { get; set; }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -27,22 +27,22 @@ public class ApplicationFeeFeeSource : StripeEntity<ApplicationFeeFeeSource>
public string Payout { get; set; }

/// <summary>
/// Type of object that created the application fee.
/// One of: <c>charge</c>, <c>payout</c>, or <c>transfer</c>.
/// Transfer ID that created this application fee.
/// </summary>
[JsonProperty("type")]
[JsonProperty("transfer")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("type")]
[STJS.JsonPropertyName("transfer")]
#endif
public string Type { get; set; }
public string Transfer { get; set; }

/// <summary>
/// Transfer ID that created this application fee.
/// Type of object that created the application fee.
/// One of: <c>charge</c>, <c>payout</c>, or <c>transfer</c>.
/// </summary>
[JsonProperty("transfer")]
[JsonProperty("type")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("transfer")]
[STJS.JsonPropertyName("type")]
#endif
public string Transfer { get; set; }
public string Type { get; set; }
}
}
121 changes: 121 additions & 0 deletions src/Stripe.net/Entities/BalanceTransfers/BalanceTransfer.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,121 @@
// File generated from our OpenAPI spec
namespace Stripe
{
using System;
using System.Collections.Generic;
using Newtonsoft.Json;
using Stripe.Infrastructure;
#if NET6_0_OR_GREATER
using STJS = System.Text.Json.Serialization;
#endif

/// <summary>
/// Balance transfers represent funds moving between balance types on your Stripe account.
/// They currently support moving funds between your Stripe balance and your <a
/// href="https://stripe.com/docs/issuing">Issuing</a> balance and between your <a
/// href="https://stripe.com/docs/connect/funds-segregation">Allocated Funds</a> balance and
/// your Stripe balance.
/// </summary>
public class BalanceTransfer : StripeEntity<BalanceTransfer>, IHasId, IHasMetadata, IHasObject
{
/// <summary>
/// Unique identifier for the object.
/// </summary>
[JsonProperty("id")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("id")]
#endif
public string Id { get; set; }

/// <summary>
/// String representing the object's type. Objects of the same type share the same value.
/// </summary>
[JsonProperty("object")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("object")]
#endif
public string Object { get; set; }

/// <summary>
/// A positive integer representing how much was transferred in the smallest currency unit.
/// </summary>
[JsonProperty("amount")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("amount")]
#endif
public long Amount { get; set; }

/// <summary>
/// Time at which the object was created. Measured in seconds since the Unix epoch.
/// </summary>
[JsonProperty("created")]
[JsonConverter(typeof(UnixDateTimeConverter))]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("created")]
[STJS.JsonConverter(typeof(STJUnixDateTimeConverter))]
#endif
public DateTime Created { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch;

/// <summary>
/// Three-letter <a href="https://www.iso.org/iso-4217-currency-codes.html">ISO currency
/// code</a>, in lowercase. Must be a <a href="https://stripe.com/docs/currencies">supported
/// currency</a>.
/// </summary>
[JsonProperty("currency")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("currency")]
#endif
public string Currency { get; set; }

/// <summary>
/// The balance that funds were transferred to.
/// </summary>
[JsonProperty("destination_balance")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("destination_balance")]
#endif
public BalanceTransferDestinationBalance DestinationBalance { get; set; }

/// <summary>
/// A <a href="https://stripe.com/docs/treasury/moving-money/regulatory-receipts">hosted
/// transaction receipt</a> URL that is provided when money movement is considered regulated
/// under Stripe's money transmission licenses.
/// </summary>
[JsonProperty("hosted_regulatory_receipt_url")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("hosted_regulatory_receipt_url")]
#endif
public string HostedRegulatoryReceiptUrl { 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.
/// </summary>
[JsonProperty("livemode")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("livemode")]
#endif
public bool Livemode { get; set; }

/// <summary>
/// Set of <a href="https://stripe.com/docs/api/metadata">key-value pairs</a> that you can
/// attach to an object. This can be useful for storing additional information about the
/// object in a structured format.
/// </summary>
[JsonProperty("metadata")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("metadata")]
#endif
public Dictionary<string, string> Metadata { get; set; }

/// <summary>
/// The balance that funds were transferred from. One of <c>card</c>, <c>fpx</c>, or
/// <c>bank_account</c>.
/// </summary>
[JsonProperty("source_balance")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("source_balance")]
#endif
public BalanceTransferSourceBalance SourceBalance { get; set; }
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
// File generated from our OpenAPI spec
namespace Stripe
{
using Newtonsoft.Json;
#if NET6_0_OR_GREATER
using STJS = System.Text.Json.Serialization;
#endif

public class BalanceTransferDestinationBalance : StripeEntity<BalanceTransferDestinationBalance>
{
[JsonProperty("issuing")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("issuing")]
#endif
public BalanceTransferDestinationBalanceIssuing Issuing { get; set; }

[JsonProperty("payments")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("payments")]
#endif
public BalanceTransferDestinationBalancePayments Payments { get; set; }

/// <summary>
/// Destination balance type to adjust for the Balance Transfer. One of <c>payments</c>,
/// <c>issuing</c>, or <c>allocated_funds</c>.
/// </summary>
[JsonProperty("type")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("type")]
#endif
public string Type { 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;
#if NET6_0_OR_GREATER
using STJS = System.Text.Json.Serialization;
#endif

#if NET6_0_OR_GREATER
[STJS.JsonConverter(typeof(STJMemberSerializationOptIn))]
#endif
public class BalanceTransferDestinationBalanceIssuing : StripeEntity<BalanceTransferDestinationBalanceIssuing>
{
#region Expandable BalanceTransaction

/// <summary>
/// (ID of the BalanceTransaction)
/// Identifier for the balance_transaction that increased the destination balance.
/// </summary>
[JsonIgnore]
#if NET6_0_OR_GREATER
[STJS.JsonIgnore]
#endif
public string BalanceTransactionId
{
get => this.InternalBalanceTransaction?.Id;
set => this.InternalBalanceTransaction = SetExpandableFieldId(value, this.InternalBalanceTransaction);
}

/// <summary>
/// (Expanded)
/// Identifier for the balance_transaction that increased the destination balance.
///
/// For more information, see the <a href="https://stripe.com/docs/expand">expand documentation</a>.
/// </summary>
[JsonIgnore]
#if NET6_0_OR_GREATER
[STJS.JsonIgnore]
#endif
public BalanceTransaction BalanceTransaction
{
get => this.InternalBalanceTransaction?.ExpandedObject;
set => this.InternalBalanceTransaction = SetExpandableFieldObject(value, this.InternalBalanceTransaction);
}

[JsonProperty("balance_transaction")]
[JsonConverter(typeof(ExpandableFieldConverter<BalanceTransaction>))]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("balance_transaction")]
[STJS.JsonConverter(typeof(STJExpandableFieldConverter<BalanceTransaction>))]
#endif
internal ExpandableField<BalanceTransaction> InternalBalanceTransaction { get; set; }
#endregion
}
}
Loading
Loading