Skip to content

Commit c361ad4

Browse files
Update generated code (#3175)
* Update generated code for v2008 and 2025-09-30.clover * Update generated code for v2008 and 2025-09-30.clover * Update generated code for v2018 and 2025-09-30.clover * Update generated code for v2020 and 2025-09-30.clover * Update generated code for v2021 and 2025-09-30.clover * Fix discount tests, comment promotioncode --------- Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Co-authored-by: Ramya Rao <[email protected]>
1 parent ccf0c39 commit c361ad4

File tree

195 files changed

+3542
-252
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

195 files changed

+3542
-252
lines changed

OPENAPI_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v1968
1+
v2021

src/Stripe.net/Constants/ApiVersion.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ namespace Stripe
33
{
44
internal class ApiVersion
55
{
6-
public const string Current = "2025-08-27.basil";
7-
public const string CurrentMajor = "basil";
6+
public const string Current = "2025-09-30.clover";
7+
public const string CurrentMajor = "clover";
88
}
99
}

src/Stripe.net/Entities/Accounts/AccountCapabilities.cs

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -359,6 +359,17 @@ public class AccountCapabilities : StripeEntity<AccountCapabilities>
359359
#endif
360360
public string LinkPayments { get; set; }
361361

362+
/// <summary>
363+
/// The status of the MB WAY payments capability of the account, or whether the account can
364+
/// directly process MB WAY charges.
365+
/// One of: <c>active</c>, <c>inactive</c>, or <c>pending</c>.
366+
/// </summary>
367+
[JsonProperty("mb_way_payments")]
368+
#if NET6_0_OR_GREATER
369+
[STJS.JsonPropertyName("mb_way_payments")]
370+
#endif
371+
public string MbWayPayments { get; set; }
372+
362373
/// <summary>
363374
/// The status of the MobilePay capability of the account, or whether the account can
364375
/// directly process MobilePay charges.
@@ -469,6 +480,17 @@ public class AccountCapabilities : StripeEntity<AccountCapabilities>
469480
#endif
470481
public string PaynowPayments { get; set; }
471482

483+
/// <summary>
484+
/// The status of the Paypay capability of the account, or whether the account can directly
485+
/// process Paypay payments.
486+
/// One of: <c>active</c>, <c>inactive</c>, or <c>pending</c>.
487+
/// </summary>
488+
[JsonProperty("paypay_payments")]
489+
#if NET6_0_OR_GREATER
490+
[STJS.JsonPropertyName("paypay_payments")]
491+
#endif
492+
public string PaypayPayments { get; set; }
493+
472494
/// <summary>
473495
/// The status of the pix payments capability of the account, or whether the account can
474496
/// directly process pix charges.

src/Stripe.net/Entities/Accounts/AccountFutureRequirementsError.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ public class AccountFutureRequirementsError : StripeEntity<AccountFutureRequirem
1010
{
1111
/// <summary>
1212
/// The code for the type of error.
13-
/// One of: <c>information_missing</c>, <c>invalid_address_city_state_postal_code</c>,
13+
/// One of: <c>external_request</c>, <c>information_missing</c>,
14+
/// <c>invalid_address_city_state_postal_code</c>,
1415
/// <c>invalid_address_highway_contract_box</c>, <c>invalid_address_private_mailbox</c>,
1516
/// <c>invalid_business_profile_name</c>, <c>invalid_business_profile_name_denylisted</c>,
1617
/// <c>invalid_company_name_denylisted</c>, <c>invalid_dob_age_over_maximum</c>,
@@ -38,7 +39,8 @@ public class AccountFutureRequirementsError : StripeEntity<AccountFutureRequirem
3839
/// <c>invalid_url_website_incomplete_terms_and_conditions</c>,
3940
/// <c>invalid_url_website_incomplete_under_construction</c>,
4041
/// <c>invalid_url_website_other</c>, <c>invalid_value_other</c>,
41-
/// <c>verification_directors_mismatch</c>, <c>verification_document_address_mismatch</c>,
42+
/// <c>unsupported_business_type</c>, <c>verification_directors_mismatch</c>,
43+
/// <c>verification_document_address_mismatch</c>,
4244
/// <c>verification_document_address_missing</c>, <c>verification_document_corrupt</c>,
4345
/// <c>verification_document_country_not_supported</c>,
4446
/// <c>verification_document_directors_mismatch</c>,

src/Stripe.net/Entities/Accounts/AccountRequirementsError.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ public class AccountRequirementsError : StripeEntity<AccountRequirementsError>
1010
{
1111
/// <summary>
1212
/// The code for the type of error.
13-
/// One of: <c>information_missing</c>, <c>invalid_address_city_state_postal_code</c>,
13+
/// One of: <c>external_request</c>, <c>information_missing</c>,
14+
/// <c>invalid_address_city_state_postal_code</c>,
1415
/// <c>invalid_address_highway_contract_box</c>, <c>invalid_address_private_mailbox</c>,
1516
/// <c>invalid_business_profile_name</c>, <c>invalid_business_profile_name_denylisted</c>,
1617
/// <c>invalid_company_name_denylisted</c>, <c>invalid_dob_age_over_maximum</c>,
@@ -38,7 +39,8 @@ public class AccountRequirementsError : StripeEntity<AccountRequirementsError>
3839
/// <c>invalid_url_website_incomplete_terms_and_conditions</c>,
3940
/// <c>invalid_url_website_incomplete_under_construction</c>,
4041
/// <c>invalid_url_website_other</c>, <c>invalid_value_other</c>,
41-
/// <c>verification_directors_mismatch</c>, <c>verification_document_address_mismatch</c>,
42+
/// <c>unsupported_business_type</c>, <c>verification_directors_mismatch</c>,
43+
/// <c>verification_document_address_mismatch</c>,
4244
/// <c>verification_document_address_missing</c>, <c>verification_document_corrupt</c>,
4345
/// <c>verification_document_country_not_supported</c>,
4446
/// <c>verification_document_directors_mismatch</c>,

src/Stripe.net/Entities/Accounts/AccountSettingsPayoutsSchedule.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ public class AccountSettingsPayoutsSchedule : StripeEntity<AccountSettingsPayout
6363
/// <summary>
6464
/// The days of the week when available funds are paid out, specified as an array, for
6565
/// example, [<c>monday</c>, <c>tuesday</c>]. Only shown if <c>interval</c> is weekly.
66-
/// One of: <c>friday</c>, <c>monday</c>, <c>saturday</c>, <c>sunday</c>, <c>thursday</c>,
67-
/// <c>tuesday</c>, or <c>wednesday</c>.
66+
/// One of: <c>friday</c>, <c>monday</c>, <c>thursday</c>, <c>tuesday</c>, or
67+
/// <c>wednesday</c>.
6868
/// </summary>
6969
[JsonProperty("weekly_payout_days")]
7070
#if NET6_0_OR_GREATER
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
// File generated from our OpenAPI spec
2+
namespace Stripe
3+
{
4+
using Newtonsoft.Json;
5+
#if NET6_0_OR_GREATER
6+
using STJS = System.Text.Json.Serialization;
7+
#endif
8+
9+
/// <summary>
10+
/// Options for customizing account balances and payout settings for a Stripe platform’s
11+
/// connected accounts.
12+
/// </summary>
13+
public class BalanceSettings : StripeEntity<BalanceSettings>, IHasObject
14+
{
15+
/// <summary>
16+
/// String representing the object's type. Objects of the same type share the same value.
17+
/// </summary>
18+
[JsonProperty("object")]
19+
#if NET6_0_OR_GREATER
20+
[STJS.JsonPropertyName("object")]
21+
#endif
22+
public string Object { get; set; }
23+
24+
[JsonProperty("payments")]
25+
#if NET6_0_OR_GREATER
26+
[STJS.JsonPropertyName("payments")]
27+
#endif
28+
public BalanceSettingsPayments Payments { get; set; }
29+
}
30+
}
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
// File generated from our OpenAPI spec
2+
namespace Stripe
3+
{
4+
using Newtonsoft.Json;
5+
#if NET6_0_OR_GREATER
6+
using STJS = System.Text.Json.Serialization;
7+
#endif
8+
9+
public class BalanceSettingsPayments : StripeEntity<BalanceSettingsPayments>
10+
{
11+
/// <summary>
12+
/// A Boolean indicating if Stripe should try to reclaim negative balances from an attached
13+
/// bank account. See <a href="https://stripe.com/connect/account-balances">Understanding
14+
/// Connect account balances</a> for details. The default value is <c>false</c> when <a
15+
/// href="https://stripe.com/api/accounts/object#account_object-controller-requirement_collection">controller.requirement_collection</a>
16+
/// is <c>application</c>, which includes Custom accounts, otherwise <c>true</c>.
17+
/// </summary>
18+
[JsonProperty("debit_negative_balances")]
19+
#if NET6_0_OR_GREATER
20+
[STJS.JsonPropertyName("debit_negative_balances")]
21+
#endif
22+
public bool? DebitNegativeBalances { get; set; }
23+
24+
/// <summary>
25+
/// Settings specific to the account's payouts.
26+
/// </summary>
27+
[JsonProperty("payouts")]
28+
#if NET6_0_OR_GREATER
29+
[STJS.JsonPropertyName("payouts")]
30+
#endif
31+
public BalanceSettingsPaymentsPayouts Payouts { get; set; }
32+
33+
[JsonProperty("settlement_timing")]
34+
#if NET6_0_OR_GREATER
35+
[STJS.JsonPropertyName("settlement_timing")]
36+
#endif
37+
public BalanceSettingsPaymentsSettlementTiming SettlementTiming { get; set; }
38+
}
39+
}
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
// File generated from our OpenAPI spec
2+
namespace Stripe
3+
{
4+
using System.Collections.Generic;
5+
using Newtonsoft.Json;
6+
#if NET6_0_OR_GREATER
7+
using STJS = System.Text.Json.Serialization;
8+
#endif
9+
10+
public class BalanceSettingsPaymentsPayouts : StripeEntity<BalanceSettingsPaymentsPayouts>
11+
{
12+
/// <summary>
13+
/// The minimum balance amount to retain per currency after automatic payouts. Only funds
14+
/// that exceed these amounts are paid out. Learn more about the <a
15+
/// href="https://stripe.com/payouts/minimum-balances-for-automatic-payouts">minimum
16+
/// balances for automatic payouts</a>.
17+
/// </summary>
18+
[JsonProperty("minimum_balance_by_currency")]
19+
#if NET6_0_OR_GREATER
20+
[STJS.JsonPropertyName("minimum_balance_by_currency")]
21+
#endif
22+
public Dictionary<string, long> MinimumBalanceByCurrency { get; set; }
23+
24+
/// <summary>
25+
/// Details on when funds from charges are available, and when they are paid out to an
26+
/// external account. See our <a
27+
/// href="https://stripe.com/docs/connect/bank-transfers#payout-information">Setting Bank
28+
/// and Debit Card Payouts</a> documentation for details.
29+
/// </summary>
30+
[JsonProperty("schedule")]
31+
#if NET6_0_OR_GREATER
32+
[STJS.JsonPropertyName("schedule")]
33+
#endif
34+
public BalanceSettingsPaymentsPayoutsSchedule Schedule { get; set; }
35+
36+
/// <summary>
37+
/// The text that appears on the bank account statement for payouts. If not set, this
38+
/// defaults to the platform's bank descriptor as set in the Dashboard.
39+
/// </summary>
40+
[JsonProperty("statement_descriptor")]
41+
#if NET6_0_OR_GREATER
42+
[STJS.JsonPropertyName("statement_descriptor")]
43+
#endif
44+
public string StatementDescriptor { get; set; }
45+
46+
/// <summary>
47+
/// Whether the funds in this account can be paid out.
48+
/// One of: <c>disabled</c>, or <c>enabled</c>.
49+
/// </summary>
50+
[JsonProperty("status")]
51+
#if NET6_0_OR_GREATER
52+
[STJS.JsonPropertyName("status")]
53+
#endif
54+
public string Status { get; set; }
55+
}
56+
}
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
// File generated from our OpenAPI spec
2+
namespace Stripe
3+
{
4+
using System.Collections.Generic;
5+
using Newtonsoft.Json;
6+
#if NET6_0_OR_GREATER
7+
using STJS = System.Text.Json.Serialization;
8+
#endif
9+
10+
public class BalanceSettingsPaymentsPayoutsSchedule : StripeEntity<BalanceSettingsPaymentsPayoutsSchedule>
11+
{
12+
/// <summary>
13+
/// How frequently funds will be paid out. One of <c>manual</c> (payouts only created via
14+
/// API call), <c>daily</c>, <c>weekly</c>, or <c>monthly</c>.
15+
/// One of: <c>daily</c>, <c>manual</c>, <c>monthly</c>, or <c>weekly</c>.
16+
/// </summary>
17+
[JsonProperty("interval")]
18+
#if NET6_0_OR_GREATER
19+
[STJS.JsonPropertyName("interval")]
20+
#endif
21+
public string Interval { get; set; }
22+
23+
/// <summary>
24+
/// The day of the month funds will be paid out. Only shown if <c>interval</c> is monthly.
25+
/// Payouts scheduled between the 29th and 31st of the month are sent on the last day of
26+
/// shorter months.
27+
/// </summary>
28+
[JsonProperty("monthly_payout_days")]
29+
#if NET6_0_OR_GREATER
30+
[STJS.JsonPropertyName("monthly_payout_days")]
31+
#endif
32+
public List<long> MonthlyPayoutDays { get; set; }
33+
34+
/// <summary>
35+
/// The days of the week when available funds are paid out, specified as an array, for
36+
/// example, [<c>monday</c>, <c>tuesday</c>]. Only shown if <c>interval</c> is weekly.
37+
/// One of: <c>friday</c>, <c>monday</c>, <c>thursday</c>, <c>tuesday</c>, or
38+
/// <c>wednesday</c>.
39+
/// </summary>
40+
[JsonProperty("weekly_payout_days")]
41+
#if NET6_0_OR_GREATER
42+
[STJS.JsonPropertyName("weekly_payout_days")]
43+
#endif
44+
public List<string> WeeklyPayoutDays { get; set; }
45+
}
46+
}

0 commit comments

Comments
 (0)