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 OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1968
v2021
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 = "2025-08-27.basil";
public const string CurrentMajor = "basil";
public const string Current = "2025-09-30.clover";
public const string CurrentMajor = "clover";
}
}
22 changes: 22 additions & 0 deletions src/Stripe.net/Entities/Accounts/AccountCapabilities.cs
Original file line number Diff line number Diff line change
Expand Up @@ -359,6 +359,17 @@ public class AccountCapabilities : StripeEntity<AccountCapabilities>
#endif
public string LinkPayments { get; set; }

/// <summary>
/// The status of the MB WAY payments capability of the account, or whether the account can
/// directly process MB WAY charges.
/// One of: <c>active</c>, <c>inactive</c>, or <c>pending</c>.
/// </summary>
[JsonProperty("mb_way_payments")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("mb_way_payments")]
#endif
public string MbWayPayments { get; set; }

/// <summary>
/// The status of the MobilePay capability of the account, or whether the account can
/// directly process MobilePay charges.
Expand Down Expand Up @@ -469,6 +480,17 @@ public class AccountCapabilities : StripeEntity<AccountCapabilities>
#endif
public string PaynowPayments { get; set; }

/// <summary>
/// The status of the Paypay capability of the account, or whether the account can directly
/// process Paypay payments.
/// One of: <c>active</c>, <c>inactive</c>, or <c>pending</c>.
/// </summary>
[JsonProperty("paypay_payments")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("paypay_payments")]
#endif
public string PaypayPayments { get; set; }

/// <summary>
/// The status of the pix payments capability of the account, or whether the account can
/// directly process pix charges.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ public class AccountFutureRequirementsError : StripeEntity<AccountFutureRequirem
{
/// <summary>
/// The code for the type of error.
/// One of: <c>information_missing</c>, <c>invalid_address_city_state_postal_code</c>,
/// One of: <c>external_request</c>, <c>information_missing</c>,
/// <c>invalid_address_city_state_postal_code</c>,
/// <c>invalid_address_highway_contract_box</c>, <c>invalid_address_private_mailbox</c>,
/// <c>invalid_business_profile_name</c>, <c>invalid_business_profile_name_denylisted</c>,
/// <c>invalid_company_name_denylisted</c>, <c>invalid_dob_age_over_maximum</c>,
Expand Down Expand Up @@ -38,7 +39,8 @@ public class AccountFutureRequirementsError : StripeEntity<AccountFutureRequirem
/// <c>invalid_url_website_incomplete_terms_and_conditions</c>,
/// <c>invalid_url_website_incomplete_under_construction</c>,
/// <c>invalid_url_website_other</c>, <c>invalid_value_other</c>,
/// <c>verification_directors_mismatch</c>, <c>verification_document_address_mismatch</c>,
/// <c>unsupported_business_type</c>, <c>verification_directors_mismatch</c>,
/// <c>verification_document_address_mismatch</c>,
/// <c>verification_document_address_missing</c>, <c>verification_document_corrupt</c>,
/// <c>verification_document_country_not_supported</c>,
/// <c>verification_document_directors_mismatch</c>,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ public class AccountRequirementsError : StripeEntity<AccountRequirementsError>
{
/// <summary>
/// The code for the type of error.
/// One of: <c>information_missing</c>, <c>invalid_address_city_state_postal_code</c>,
/// One of: <c>external_request</c>, <c>information_missing</c>,
/// <c>invalid_address_city_state_postal_code</c>,
/// <c>invalid_address_highway_contract_box</c>, <c>invalid_address_private_mailbox</c>,
/// <c>invalid_business_profile_name</c>, <c>invalid_business_profile_name_denylisted</c>,
/// <c>invalid_company_name_denylisted</c>, <c>invalid_dob_age_over_maximum</c>,
Expand Down Expand Up @@ -38,7 +39,8 @@ public class AccountRequirementsError : StripeEntity<AccountRequirementsError>
/// <c>invalid_url_website_incomplete_terms_and_conditions</c>,
/// <c>invalid_url_website_incomplete_under_construction</c>,
/// <c>invalid_url_website_other</c>, <c>invalid_value_other</c>,
/// <c>verification_directors_mismatch</c>, <c>verification_document_address_mismatch</c>,
/// <c>unsupported_business_type</c>, <c>verification_directors_mismatch</c>,
/// <c>verification_document_address_mismatch</c>,
/// <c>verification_document_address_missing</c>, <c>verification_document_corrupt</c>,
/// <c>verification_document_country_not_supported</c>,
/// <c>verification_document_directors_mismatch</c>,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ public class AccountSettingsPayoutsSchedule : StripeEntity<AccountSettingsPayout
/// <summary>
/// The days of the week when available funds are paid out, specified as an array, for
/// example, [<c>monday</c>, <c>tuesday</c>]. Only shown if <c>interval</c> is weekly.
/// One of: <c>friday</c>, <c>monday</c>, <c>saturday</c>, <c>sunday</c>, <c>thursday</c>,
/// <c>tuesday</c>, or <c>wednesday</c>.
/// One of: <c>friday</c>, <c>monday</c>, <c>thursday</c>, <c>tuesday</c>, or
/// <c>wednesday</c>.
/// </summary>
[JsonProperty("weekly_payout_days")]
#if NET6_0_OR_GREATER
Expand Down
30 changes: 30 additions & 0 deletions src/Stripe.net/Entities/BalanceSettings/BalanceSettings.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
// File generated from our OpenAPI spec
namespace Stripe
{
using Newtonsoft.Json;
#if NET6_0_OR_GREATER
using STJS = System.Text.Json.Serialization;
#endif

/// <summary>
/// Options for customizing account balances and payout settings for a Stripe platform’s
/// connected accounts.
/// </summary>
public class BalanceSettings : StripeEntity<BalanceSettings>, IHasObject
{
/// <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; }

[JsonProperty("payments")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("payments")]
#endif
public BalanceSettingsPayments Payments { get; set; }
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
// 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 BalanceSettingsPayments : StripeEntity<BalanceSettingsPayments>
{
/// <summary>
/// A Boolean indicating if Stripe should try to reclaim negative balances from an attached
/// bank account. See <a href="https://stripe.com/connect/account-balances">Understanding
/// Connect account balances</a> for details. The default value is <c>false</c> when <a
/// href="https://stripe.com/api/accounts/object#account_object-controller-requirement_collection">controller.requirement_collection</a>
/// is <c>application</c>, which includes Custom accounts, otherwise <c>true</c>.
/// </summary>
[JsonProperty("debit_negative_balances")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("debit_negative_balances")]
#endif
public bool? DebitNegativeBalances { get; set; }

/// <summary>
/// Settings specific to the account's payouts.
/// </summary>
[JsonProperty("payouts")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("payouts")]
#endif
public BalanceSettingsPaymentsPayouts Payouts { get; set; }

[JsonProperty("settlement_timing")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("settlement_timing")]
#endif
public BalanceSettingsPaymentsSettlementTiming SettlementTiming { 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 System.Collections.Generic;
using Newtonsoft.Json;
#if NET6_0_OR_GREATER
using STJS = System.Text.Json.Serialization;
#endif

public class BalanceSettingsPaymentsPayouts : StripeEntity<BalanceSettingsPaymentsPayouts>
{
/// <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
/// href="https://stripe.com/payouts/minimum-balances-for-automatic-payouts">minimum
/// balances for automatic payouts</a>.
/// </summary>
[JsonProperty("minimum_balance_by_currency")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("minimum_balance_by_currency")]
#endif
public Dictionary<string, long> MinimumBalanceByCurrency { get; set; }

/// <summary>
/// Details on when funds from charges are available, and when they are paid out to an
/// external account. See our <a
/// href="https://stripe.com/docs/connect/bank-transfers#payout-information">Setting Bank
/// and Debit Card Payouts</a> documentation for details.
/// </summary>
[JsonProperty("schedule")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("schedule")]
#endif
public BalanceSettingsPaymentsPayoutsSchedule Schedule { get; set; }

/// <summary>
/// The text that appears on the bank account statement for payouts. If not set, this
/// defaults to the platform's bank descriptor as set in the Dashboard.
/// </summary>
[JsonProperty("statement_descriptor")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("statement_descriptor")]
#endif
public string StatementDescriptor { get; set; }

/// <summary>
/// Whether the funds in this account can be paid out.
/// One of: <c>disabled</c>, or <c>enabled</c>.
/// </summary>
[JsonProperty("status")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("status")]
#endif
public string Status { get; set; }
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
// File generated from our OpenAPI spec
namespace Stripe
{
using System.Collections.Generic;
using Newtonsoft.Json;
#if NET6_0_OR_GREATER
using STJS = System.Text.Json.Serialization;
#endif

public class BalanceSettingsPaymentsPayoutsSchedule : StripeEntity<BalanceSettingsPaymentsPayoutsSchedule>
{
/// <summary>
/// How frequently funds will be paid out. One of <c>manual</c> (payouts only created via
/// API call), <c>daily</c>, <c>weekly</c>, or <c>monthly</c>.
/// One of: <c>daily</c>, <c>manual</c>, <c>monthly</c>, or <c>weekly</c>.
/// </summary>
[JsonProperty("interval")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("interval")]
#endif
public string Interval { get; set; }

/// <summary>
/// The day of the month funds will be paid out. Only shown if <c>interval</c> is monthly.
/// Payouts scheduled between the 29th and 31st of the month are sent on the last day of
/// shorter months.
/// </summary>
[JsonProperty("monthly_payout_days")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("monthly_payout_days")]
#endif
public List<long> MonthlyPayoutDays { get; set; }

/// <summary>
/// The days of the week when available funds are paid out, specified as an array, for
/// example, [<c>monday</c>, <c>tuesday</c>]. Only shown if <c>interval</c> is weekly.
/// One of: <c>friday</c>, <c>monday</c>, <c>thursday</c>, <c>tuesday</c>, or
/// <c>wednesday</c>.
/// </summary>
[JsonProperty("weekly_payout_days")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("weekly_payout_days")]
#endif
public List<string> WeeklyPayoutDays { get; set; }
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
// 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 BalanceSettingsPaymentsSettlementTiming : StripeEntity<BalanceSettingsPaymentsSettlementTiming>
{
/// <summary>
/// The number of days charge funds are held before becoming available.
/// </summary>
[JsonProperty("delay_days")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("delay_days")]
#endif
public long DelayDays { get; set; }

/// <summary>
/// The number of days charge funds are held before becoming available. If present,
/// overrides the default, or minimum available, for the account.
/// </summary>
[JsonProperty("delay_days_override")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("delay_days_override")]
#endif
public long DelayDaysOverride { get; set; }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ public class BankAccountFutureRequirementsError : StripeEntity<BankAccountFuture
{
/// <summary>
/// The code for the type of error.
/// One of: <c>information_missing</c>, <c>invalid_address_city_state_postal_code</c>,
/// One of: <c>external_request</c>, <c>information_missing</c>,
/// <c>invalid_address_city_state_postal_code</c>,
/// <c>invalid_address_highway_contract_box</c>, <c>invalid_address_private_mailbox</c>,
/// <c>invalid_business_profile_name</c>, <c>invalid_business_profile_name_denylisted</c>,
/// <c>invalid_company_name_denylisted</c>, <c>invalid_dob_age_over_maximum</c>,
Expand Down Expand Up @@ -38,7 +39,8 @@ public class BankAccountFutureRequirementsError : StripeEntity<BankAccountFuture
/// <c>invalid_url_website_incomplete_terms_and_conditions</c>,
/// <c>invalid_url_website_incomplete_under_construction</c>,
/// <c>invalid_url_website_other</c>, <c>invalid_value_other</c>,
/// <c>verification_directors_mismatch</c>, <c>verification_document_address_mismatch</c>,
/// <c>unsupported_business_type</c>, <c>verification_directors_mismatch</c>,
/// <c>verification_document_address_mismatch</c>,
/// <c>verification_document_address_missing</c>, <c>verification_document_corrupt</c>,
/// <c>verification_document_country_not_supported</c>,
/// <c>verification_document_directors_mismatch</c>,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ public class BankAccountRequirementsError : StripeEntity<BankAccountRequirements
{
/// <summary>
/// The code for the type of error.
/// One of: <c>information_missing</c>, <c>invalid_address_city_state_postal_code</c>,
/// One of: <c>external_request</c>, <c>information_missing</c>,
/// <c>invalid_address_city_state_postal_code</c>,
/// <c>invalid_address_highway_contract_box</c>, <c>invalid_address_private_mailbox</c>,
/// <c>invalid_business_profile_name</c>, <c>invalid_business_profile_name_denylisted</c>,
/// <c>invalid_company_name_denylisted</c>, <c>invalid_dob_age_over_maximum</c>,
Expand Down Expand Up @@ -38,7 +39,8 @@ public class BankAccountRequirementsError : StripeEntity<BankAccountRequirements
/// <c>invalid_url_website_incomplete_terms_and_conditions</c>,
/// <c>invalid_url_website_incomplete_under_construction</c>,
/// <c>invalid_url_website_other</c>, <c>invalid_value_other</c>,
/// <c>verification_directors_mismatch</c>, <c>verification_document_address_mismatch</c>,
/// <c>unsupported_business_type</c>, <c>verification_directors_mismatch</c>,
/// <c>verification_document_address_mismatch</c>,
/// <c>verification_document_address_missing</c>, <c>verification_document_corrupt</c>,
/// <c>verification_document_country_not_supported</c>,
/// <c>verification_document_directors_mismatch</c>,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,5 +55,17 @@ public class ConfigurationFeaturesSubscriptionUpdate : StripeEntity<Configuratio
[STJS.JsonPropertyName("schedule_at_period_end")]
#endif
public ConfigurationFeaturesSubscriptionUpdateScheduleAtPeriodEnd ScheduleAtPeriodEnd { get; set; }

/// <summary>
/// Determines how handle updates to trialing subscriptions. Valid values are
/// <c>end_trial</c> and <c>continue_trial</c>. Defaults to a value of <c>end_trial</c> if
/// you don't set it during creation.
/// One of: <c>continue_trial</c>, or <c>end_trial</c>.
/// </summary>
[JsonProperty("trial_update_behavior")]
#if NET6_0_OR_GREATER
[STJS.JsonPropertyName("trial_update_behavior")]
#endif
public string TrialUpdateBehavior { get; set; }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ public class CapabilityFutureRequirementsError : StripeEntity<CapabilityFutureRe
{
/// <summary>
/// The code for the type of error.
/// One of: <c>information_missing</c>, <c>invalid_address_city_state_postal_code</c>,
/// One of: <c>external_request</c>, <c>information_missing</c>,
/// <c>invalid_address_city_state_postal_code</c>,
/// <c>invalid_address_highway_contract_box</c>, <c>invalid_address_private_mailbox</c>,
/// <c>invalid_business_profile_name</c>, <c>invalid_business_profile_name_denylisted</c>,
/// <c>invalid_company_name_denylisted</c>, <c>invalid_dob_age_over_maximum</c>,
Expand Down Expand Up @@ -38,7 +39,8 @@ public class CapabilityFutureRequirementsError : StripeEntity<CapabilityFutureRe
/// <c>invalid_url_website_incomplete_terms_and_conditions</c>,
/// <c>invalid_url_website_incomplete_under_construction</c>,
/// <c>invalid_url_website_other</c>, <c>invalid_value_other</c>,
/// <c>verification_directors_mismatch</c>, <c>verification_document_address_mismatch</c>,
/// <c>unsupported_business_type</c>, <c>verification_directors_mismatch</c>,
/// <c>verification_document_address_mismatch</c>,
/// <c>verification_document_address_missing</c>, <c>verification_document_corrupt</c>,
/// <c>verification_document_country_not_supported</c>,
/// <c>verification_document_directors_mismatch</c>,
Expand Down
6 changes: 3 additions & 3 deletions src/Stripe.net/Entities/Cards/Card.cs
Original file line number Diff line number Diff line change
Expand Up @@ -169,9 +169,9 @@ public Account Account
public List<string> AvailablePayoutMethods { get; set; }

/// <summary>
/// Card brand. Can be <c>American Express</c>, <c>Diners Club</c>, <c>Discover</c>,
/// <c>Eftpos Australia</c>, <c>Girocard</c>, <c>JCB</c>, <c>MasterCard</c>,
/// <c>UnionPay</c>, <c>Visa</c>, or <c>Unknown</c>.
/// Card brand. Can be <c>American Express</c>, <c>Cartes Bancaires</c>, <c>Diners Club</c>,
/// <c>Discover</c>, <c>Eftpos Australia</c>, <c>Girocard</c>, <c>JCB</c>,
/// <c>MasterCard</c>, <c>UnionPay</c>, <c>Visa</c>, or <c>Unknown</c>.
/// </summary>
[JsonProperty("brand")]
#if NET6_0_OR_GREATER
Expand Down
Loading
Loading