Skip to content

Commit c279c39

Browse files
Update generated code (stripe#1643)
* Update generated code for v2020 and 2025-09-30.clover * Update generated code for v2021 and 2025-09-30.clover * Update generated code for v2022 and 2025-09-30.clover --------- Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com>
1 parent 8a0ca5a commit c279c39

163 files changed

Lines changed: 12624 additions & 2459 deletions

File tree

Some content is hidden

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

API_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2025-08-27.basil
1+
2025-09-30.clover

OPENAPI_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v1932
1+
v2022

lib/stripe/api_version.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
module Stripe
55
module ApiVersion
6-
CURRENT = "2025-08-27.basil"
7-
CURRENT_MAJOR = "basil"
6+
CURRENT = "2025-09-30.clover"
7+
CURRENT_MAJOR = "clover"
88
end
99
end

lib/stripe/object_types.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ def self.object_names_to_classes
2121
ApplicationFeeRefund.object_name => ApplicationFeeRefund,
2222
Apps::Secret.object_name => Apps::Secret,
2323
Balance.object_name => Balance,
24+
BalanceSettings.object_name => BalanceSettings,
2425
BalanceTransaction.object_name => BalanceTransaction,
2526
BankAccount.object_name => BankAccount,
2627
Billing::Alert.object_name => Billing::Alert,

lib/stripe/resources.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
require "stripe/resources/application_fee_refund"
1111
require "stripe/resources/apps/secret"
1212
require "stripe/resources/balance"
13+
require "stripe/resources/balance_settings"
1314
require "stripe/resources/balance_transaction"
1415
require "stripe/resources/bank_account"
1516
require "stripe/resources/billing/alert"

lib/stripe/resources/account.rb

Lines changed: 80 additions & 24 deletions
Large diffs are not rendered by default.
Lines changed: 155 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,155 @@
1+
# File generated from our OpenAPI spec
2+
# frozen_string_literal: true
3+
4+
module Stripe
5+
# Options for customizing account balances and payout settings for a Stripe platform's connected accounts.
6+
class BalanceSettings < SingletonAPIResource
7+
include Stripe::APIOperations::SingletonSave
8+
9+
OBJECT_NAME = "balance_settings"
10+
def self.object_name
11+
"balance_settings"
12+
end
13+
14+
class Payments < Stripe::StripeObject
15+
class Payouts < Stripe::StripeObject
16+
class Schedule < Stripe::StripeObject
17+
# How frequently funds will be paid out. One of `manual` (payouts only created via API call), `daily`, `weekly`, or `monthly`.
18+
attr_reader :interval
19+
# The day of the month funds will be paid out. Only shown if `interval` is monthly. Payouts scheduled between the 29th and 31st of the month are sent on the last day of shorter months.
20+
attr_reader :monthly_payout_days
21+
# The days of the week when available funds are paid out, specified as an array, for example, [`monday`, `tuesday`]. Only shown if `interval` is weekly.
22+
attr_reader :weekly_payout_days
23+
24+
def self.inner_class_types
25+
@inner_class_types = {}
26+
end
27+
28+
def self.field_remappings
29+
@field_remappings = {}
30+
end
31+
end
32+
# The minimum balance amount to retain per currency after automatic payouts. Only funds that exceed these amounts are paid out. Learn more about the [minimum balances for automatic payouts](/payouts/minimum-balances-for-automatic-payouts).
33+
attr_reader :minimum_balance_by_currency
34+
# Details on when funds from charges are available, and when they are paid out to an external account. See our [Setting Bank and Debit Card Payouts](https://stripe.com/docs/connect/bank-transfers#payout-information) documentation for details.
35+
attr_reader :schedule
36+
# 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.
37+
attr_reader :statement_descriptor
38+
# Whether the funds in this account can be paid out.
39+
attr_reader :status
40+
41+
def self.inner_class_types
42+
@inner_class_types = { schedule: Schedule }
43+
end
44+
45+
def self.field_remappings
46+
@field_remappings = {}
47+
end
48+
end
49+
50+
class SettlementTiming < Stripe::StripeObject
51+
# The number of days charge funds are held before becoming available.
52+
attr_reader :delay_days
53+
# The number of days charge funds are held before becoming available. If present, overrides the default, or minimum available, for the account.
54+
attr_reader :delay_days_override
55+
56+
def self.inner_class_types
57+
@inner_class_types = {}
58+
end
59+
60+
def self.field_remappings
61+
@field_remappings = {}
62+
end
63+
end
64+
# A Boolean indicating if Stripe should try to reclaim negative balances from an attached bank account. See [Understanding Connect account balances](/connect/account-balances) for details. The default value is `false` when [controller.requirement_collection](/api/accounts/object#account_object-controller-requirement_collection) is `application`, which includes Custom accounts, otherwise `true`.
65+
attr_reader :debit_negative_balances
66+
# Settings specific to the account's payouts.
67+
attr_reader :payouts
68+
# Attribute for field settlement_timing
69+
attr_reader :settlement_timing
70+
71+
def self.inner_class_types
72+
@inner_class_types = { payouts: Payouts, settlement_timing: SettlementTiming }
73+
end
74+
75+
def self.field_remappings
76+
@field_remappings = {}
77+
end
78+
end
79+
80+
class UpdateParams < Stripe::RequestParams
81+
class Payments < Stripe::RequestParams
82+
class Payouts < Stripe::RequestParams
83+
class Schedule < Stripe::RequestParams
84+
# How frequently available funds are paid out. One of: `daily`, `manual`, `weekly`, or `monthly`. Default is `daily`.
85+
attr_accessor :interval
86+
# The days of the month when available funds are paid out, specified as an array of numbers between 1--31. Payouts nominally scheduled between the 29th and 31st of the month are instead sent on the last day of a shorter month. Required and applicable only if `interval` is `monthly`.
87+
attr_accessor :monthly_payout_days
88+
# The days of the week when available funds are paid out, specified as an array, e.g., [`monday`, `tuesday`]. Required and applicable only if `interval` is `weekly`.
89+
attr_accessor :weekly_payout_days
90+
91+
def initialize(interval: nil, monthly_payout_days: nil, weekly_payout_days: nil)
92+
@interval = interval
93+
@monthly_payout_days = monthly_payout_days
94+
@weekly_payout_days = weekly_payout_days
95+
end
96+
end
97+
# The minimum balance amount to retain per currency after automatic payouts. Only funds that exceed these amounts are paid out. Learn more about the [minimum balances for automatic payouts](/payouts/minimum-balances-for-automatic-payouts).
98+
attr_accessor :minimum_balance_by_currency
99+
# Details on when funds from charges are available, and when they are paid out to an external account. For details, see our [Setting Bank and Debit Card Payouts](/connect/bank-transfers#payout-information) documentation.
100+
attr_accessor :schedule
101+
# 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.
102+
attr_accessor :statement_descriptor
103+
104+
def initialize(minimum_balance_by_currency: nil, schedule: nil, statement_descriptor: nil)
105+
@minimum_balance_by_currency = minimum_balance_by_currency
106+
@schedule = schedule
107+
@statement_descriptor = statement_descriptor
108+
end
109+
end
110+
111+
class SettlementTiming < Stripe::RequestParams
112+
# Change `delay_days` for this account, which determines the number of days charge funds are held before becoming available. The maximum value is 31. Passing an empty string to `delay_days_override` will return `delay_days` to the default, which is the lowest available value for the account. [Learn more about controlling delay days](/connect/manage-payout-schedule).
113+
attr_accessor :delay_days_override
114+
115+
def initialize(delay_days_override: nil)
116+
@delay_days_override = delay_days_override
117+
end
118+
end
119+
# A Boolean indicating whether Stripe should try to reclaim negative balances from an attached bank account. For details, see [Understanding Connect Account Balances](/connect/account-balances).
120+
attr_accessor :debit_negative_balances
121+
# Settings specific to the account's payouts.
122+
attr_accessor :payouts
123+
# Settings related to the account's balance settlement timing.
124+
attr_accessor :settlement_timing
125+
126+
def initialize(debit_negative_balances: nil, payouts: nil, settlement_timing: nil)
127+
@debit_negative_balances = debit_negative_balances
128+
@payouts = payouts
129+
@settlement_timing = settlement_timing
130+
end
131+
end
132+
# Specifies which fields in the response should be expanded.
133+
attr_accessor :expand
134+
# Settings that apply to the [Payments Balance](https://docs.stripe.com/api/balance).
135+
attr_accessor :payments
136+
137+
def initialize(expand: nil, payments: nil)
138+
@expand = expand
139+
@payments = payments
140+
end
141+
end
142+
# String representing the object's type. Objects of the same type share the same value.
143+
attr_reader :object
144+
# Attribute for field payments
145+
attr_reader :payments
146+
147+
def self.inner_class_types
148+
@inner_class_types = { payments: Payments }
149+
end
150+
151+
def self.field_remappings
152+
@field_remappings = {}
153+
end
154+
end
155+
end

lib/stripe/resources/billing/alert.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ def initialize(customer: nil, type: nil)
9696
attr_accessor :gte
9797
# The [Billing Meter](/api/billing/meter) ID whose usage is monitored.
9898
attr_accessor :meter
99-
# Whether the alert should only fire only once, or once per billing cycle.
99+
# Defines how the alert will behave.
100100
attr_accessor :recurrence
101101

102102
def initialize(filters: nil, gte: nil, meter: nil, recurrence: nil)

lib/stripe/resources/billing_portal/configuration.rb

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,8 @@ def self.field_remappings
174174
attr_reader :proration_behavior
175175
# Attribute for field schedule_at_period_end
176176
attr_reader :schedule_at_period_end
177+
# Determines how handle updates to trialing subscriptions. Valid values are `end_trial` and `continue_trial`. Defaults to a value of `end_trial` if you don't set it during creation.
178+
attr_reader :trial_update_behavior
177179

178180
def self.inner_class_types
179181
@inner_class_types = { products: Product, schedule_at_period_end: ScheduleAtPeriodEnd }
@@ -394,19 +396,23 @@ def initialize(conditions: nil)
394396
attr_accessor :proration_behavior
395397
# Setting to control when an update should be scheduled at the end of the period instead of applying immediately.
396398
attr_accessor :schedule_at_period_end
399+
# The behavior when updating a subscription that is trialing.
400+
attr_accessor :trial_update_behavior
397401

398402
def initialize(
399403
default_allowed_updates: nil,
400404
enabled: nil,
401405
products: nil,
402406
proration_behavior: nil,
403-
schedule_at_period_end: nil
407+
schedule_at_period_end: nil,
408+
trial_update_behavior: nil
404409
)
405410
@default_allowed_updates = default_allowed_updates
406411
@enabled = enabled
407412
@products = products
408413
@proration_behavior = proration_behavior
409414
@schedule_at_period_end = schedule_at_period_end
415+
@trial_update_behavior = trial_update_behavior
410416
end
411417
end
412418
# Information about updating the customer details in the portal.
@@ -614,19 +620,23 @@ def initialize(conditions: nil)
614620
attr_accessor :proration_behavior
615621
# Setting to control when an update should be scheduled at the end of the period instead of applying immediately.
616622
attr_accessor :schedule_at_period_end
623+
# The behavior when updating a subscription that is trialing.
624+
attr_accessor :trial_update_behavior
617625

618626
def initialize(
619627
default_allowed_updates: nil,
620628
enabled: nil,
621629
products: nil,
622630
proration_behavior: nil,
623-
schedule_at_period_end: nil
631+
schedule_at_period_end: nil,
632+
trial_update_behavior: nil
624633
)
625634
@default_allowed_updates = default_allowed_updates
626635
@enabled = enabled
627636
@products = products
628637
@proration_behavior = proration_behavior
629638
@schedule_at_period_end = schedule_at_period_end
639+
@trial_update_behavior = trial_update_behavior
630640
end
631641
end
632642
# Information about updating the customer details in the portal.

lib/stripe/resources/card.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def self.field_remappings
5151
attr_reader :allow_redisplay
5252
# A set of available payout methods for this card. Only values from this set should be passed as the `method` when creating a payout.
5353
attr_reader :available_payout_methods
54-
# Card brand. Can be `American Express`, `Diners Club`, `Discover`, `Eftpos Australia`, `Girocard`, `JCB`, `MasterCard`, `UnionPay`, `Visa`, or `Unknown`.
54+
# Card brand. Can be `American Express`, `Cartes Bancaires`, `Diners Club`, `Discover`, `Eftpos Australia`, `Girocard`, `JCB`, `MasterCard`, `UnionPay`, `Visa`, or `Unknown`.
5555
attr_reader :brand
5656
# 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.
5757
attr_reader :country

0 commit comments

Comments
 (0)