Skip to content

Commit a2418f5

Browse files
stripe-openapi[bot]mbroshi-stripeclaude
authored
Update generated code (stripe#1842)
* Update generated code for v2207 and * Update generated code for v2240 and * Update generated code for v2249 and * Update generated code for v2252 and * Update generated code for v2252 and * Fix Sorbet typecheck failure by removing stale rexml gem RBI The checked-in `sorbet/rbi/gems/rexml@3.2.6.rbi` conflicts with Sorbet's bundled stdlib RBI for rexml, causing error 4010 (method redefined with mismatched argument count) on CI. Remove the stale gem RBI and exclude rexml from Tapioca gem generation. Sorbet's built-in stdlib coverage is sufficient since stripe-ruby doesn't use rexml directly. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> Committed-By-Agent: claude --------- Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Co-authored-by: Michael Broshi <mbroshi@stripe.com> Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com> Co-authored-by: Michael Broshi <94012587+mbroshi-stripe@users.noreply.github.com>
1 parent e76286e commit a2418f5

216 files changed

Lines changed: 5864 additions & 5659 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.

CODEGEN_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
97ed8f33ac148105eefc5ec2543b66a32367bc1f
1+
9aa5ee4ed2b929f65b7fbf7c341f938682888500

OPENAPI_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v2206
1+
v2252

lib/stripe/api_version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
module Stripe
55
module ApiVersion
6-
CURRENT = "2026-03-25.dahlia"
6+
CURRENT = "2026-04-22.dahlia"
77
CURRENT_MAJOR = "dahlia"
88
end
99
end

lib/stripe/events/v1_billing_meter_error_report_triggered_event.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,14 +66,14 @@ def self.field_remappings
6666
@field_remappings = {}
6767
end
6868
end
69-
# This contains information about why meter error happens.
70-
attr_reader :reason
7169
# Extra field included in the event's `data` when fetched from /v2/events.
7270
attr_reader :developer_message_summary
73-
# The start of the window that is encapsulated by this summary.
74-
attr_reader :validation_start
71+
# This contains information about why meter error happens.
72+
attr_reader :reason
7573
# The end of the window that is encapsulated by this summary.
7674
attr_reader :validation_end
75+
# The start of the window that is encapsulated by this summary.
76+
attr_reader :validation_start
7777

7878
def self.inner_class_types
7979
@inner_class_types = { reason: Reason }

lib/stripe/events/v1_billing_meter_no_meter_found_event.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,14 +66,14 @@ def self.field_remappings
6666
@field_remappings = {}
6767
end
6868
end
69-
# This contains information about why meter error happens.
70-
attr_reader :reason
7169
# Extra field included in the event's `data` when fetched from /v2/events.
7270
attr_reader :developer_message_summary
73-
# The start of the window that is encapsulated by this summary.
74-
attr_reader :validation_start
71+
# This contains information about why meter error happens.
72+
attr_reader :reason
7573
# The end of the window that is encapsulated by this summary.
7674
attr_reader :validation_end
75+
# The start of the window that is encapsulated by this summary.
76+
attr_reader :validation_start
7777

7878
def self.inner_class_types
7979
@inner_class_types = { reason: Reason }

lib/stripe/events/v2_core_account_link_returned_event.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ def self.lookup_type
1010
end
1111

1212
class V2CoreAccountLinkReturnedEventData < ::Stripe::StripeObject
13-
# Open Enum. The use case type of the account link that has been completed.
14-
attr_reader :use_case
1513
# The ID of the v2 account.
1614
attr_reader :account_id
1715
# Configurations on the Account that was onboarded via the account link.
1816
attr_reader :configurations
17+
# Open Enum. The use case type of the account link that has been completed.
18+
attr_reader :use_case
1919

2020
def self.inner_class_types
2121
@inner_class_types = {}

lib/stripe/params/account_create_params.rb

Lines changed: 36 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,15 @@ def initialize(requested: nil)
196196
end
197197
end
198198

199+
class AppDistribution < ::Stripe::RequestParams
200+
# Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
201+
attr_accessor :requested
202+
203+
def initialize(requested: nil)
204+
@requested = requested
205+
end
206+
end
207+
199208
class AuBecsDebitPayments < ::Stripe::RequestParams
200209
# Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
201210
attr_accessor :requested
@@ -619,6 +628,15 @@ def initialize(requested: nil)
619628
end
620629
end
621630

631+
class SunbitPayments < ::Stripe::RequestParams
632+
# Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
633+
attr_accessor :requested
634+
635+
def initialize(requested: nil)
636+
@requested = requested
637+
end
638+
end
639+
622640
class SwishPayments < ::Stripe::RequestParams
623641
# Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
624642
attr_accessor :requested
@@ -718,6 +736,8 @@ def initialize(requested: nil)
718736
attr_accessor :alma_payments
719737
# The amazon_pay_payments capability.
720738
attr_accessor :amazon_pay_payments
739+
# The app_distribution capability.
740+
attr_accessor :app_distribution
721741
# The au_becs_debit_payments capability.
722742
attr_accessor :au_becs_debit_payments
723743
# The bacs_debit_payments capability.
@@ -812,6 +832,8 @@ def initialize(requested: nil)
812832
attr_accessor :sepa_debit_payments
813833
# The sofort_payments capability.
814834
attr_accessor :sofort_payments
835+
# The sunbit_payments capability.
836+
attr_accessor :sunbit_payments
815837
# The swish_payments capability.
816838
attr_accessor :swish_payments
817839
# The tax_reporting_us_1099_k capability.
@@ -839,6 +861,7 @@ def initialize(
839861
afterpay_clearpay_payments: nil,
840862
alma_payments: nil,
841863
amazon_pay_payments: nil,
864+
app_distribution: nil,
842865
au_becs_debit_payments: nil,
843866
bacs_debit_payments: nil,
844867
bancontact_payments: nil,
@@ -886,6 +909,7 @@ def initialize(
886909
sepa_bank_transfer_payments: nil,
887910
sepa_debit_payments: nil,
888911
sofort_payments: nil,
912+
sunbit_payments: nil,
889913
swish_payments: nil,
890914
tax_reporting_us_1099_k: nil,
891915
tax_reporting_us_1099_misc: nil,
@@ -902,6 +926,7 @@ def initialize(
902926
@afterpay_clearpay_payments = afterpay_clearpay_payments
903927
@alma_payments = alma_payments
904928
@amazon_pay_payments = amazon_pay_payments
929+
@app_distribution = app_distribution
905930
@au_becs_debit_payments = au_becs_debit_payments
906931
@bacs_debit_payments = bacs_debit_payments
907932
@bancontact_payments = bancontact_payments
@@ -949,6 +974,7 @@ def initialize(
949974
@sepa_bank_transfer_payments = sepa_bank_transfer_payments
950975
@sepa_debit_payments = sepa_debit_payments
951976
@sofort_payments = sofort_payments
977+
@sunbit_payments = sunbit_payments
952978
@swish_payments = swish_payments
953979
@tax_reporting_us_1099_k = tax_reporting_us_1099_k
954980
@tax_reporting_us_1099_misc = tax_reporting_us_1099_misc
@@ -981,18 +1007,18 @@ class Card < ::Stripe::RequestParams
9811007
attr_accessor :currency
9821008
# Attribute for param field cvc
9831009
attr_accessor :cvc
1010+
# Attribute for param field default_for_currency
1011+
attr_accessor :default_for_currency
9841012
# Attribute for param field exp_month
9851013
attr_accessor :exp_month
9861014
# Attribute for param field exp_year
9871015
attr_accessor :exp_year
1016+
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
1017+
attr_accessor :metadata
9881018
# Attribute for param field name
9891019
attr_accessor :name
9901020
# Attribute for param field number
9911021
attr_accessor :number
992-
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
993-
attr_accessor :metadata
994-
# Attribute for param field default_for_currency
995-
attr_accessor :default_for_currency
9961022

9971023
def initialize(
9981024
object: nil,
@@ -1004,12 +1030,12 @@ def initialize(
10041030
address_zip: nil,
10051031
currency: nil,
10061032
cvc: nil,
1033+
default_for_currency: nil,
10071034
exp_month: nil,
10081035
exp_year: nil,
1009-
name: nil,
1010-
number: nil,
10111036
metadata: nil,
1012-
default_for_currency: nil
1037+
name: nil,
1038+
number: nil
10131039
)
10141040
@object = object
10151041
@address_city = address_city
@@ -1020,12 +1046,12 @@ def initialize(
10201046
@address_zip = address_zip
10211047
@currency = currency
10221048
@cvc = cvc
1049+
@default_for_currency = default_for_currency
10231050
@exp_month = exp_month
10241051
@exp_year = exp_year
1052+
@metadata = metadata
10251053
@name = name
10261054
@number = number
1027-
@metadata = metadata
1028-
@default_for_currency = default_for_currency
10291055
end
10301056
end
10311057

@@ -2104,7 +2130,7 @@ def initialize(date: nil, ip: nil, service_agreement: nil, user_agent: nil)
21042130
attr_accessor :settings
21052131
# Details on the account's acceptance of the [Stripe Services Agreement](/connect/updating-accounts#tos-acceptance). This property can only be updated for accounts where [controller.requirement_collection](/api/accounts/object#account_object-controller-requirement_collection) is `application`, which includes Custom accounts. This property defaults to a `full` service agreement when empty.
21062132
attr_accessor :tos_acceptance
2107-
# The type of Stripe account to create. May be one of `custom`, `express` or `standard`.
2133+
# The `type` parameter is deprecated. Use [`controller`](/api/accounts/create#create_account-controller) instead to configure dashboard access, fee payer, loss liability, and requirement collection.
21082134
attr_accessor :type
21092135

21102136
def initialize(

lib/stripe/params/account_external_account_create_params.rb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -61,12 +61,12 @@ class Card < ::Stripe::RequestParams
6161
attr_accessor :exp_month
6262
# Attribute for param field exp_year
6363
attr_accessor :exp_year
64+
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
65+
attr_accessor :metadata
6466
# Attribute for param field name
6567
attr_accessor :name
6668
# Attribute for param field number
6769
attr_accessor :number
68-
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
69-
attr_accessor :metadata
7070

7171
def initialize(
7272
object: nil,
@@ -80,9 +80,9 @@ def initialize(
8080
cvc: nil,
8181
exp_month: nil,
8282
exp_year: nil,
83+
metadata: nil,
8384
name: nil,
84-
number: nil,
85-
metadata: nil
85+
number: nil
8686
)
8787
@object = object
8888
@address_city = address_city
@@ -95,9 +95,9 @@ def initialize(
9595
@cvc = cvc
9696
@exp_month = exp_month
9797
@exp_year = exp_year
98+
@metadata = metadata
9899
@name = name
99100
@number = number
100-
@metadata = metadata
101101
end
102102
end
103103

lib/stripe/params/account_session_create_params.rb

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,19 @@ def initialize(enabled: nil, features: nil)
5050
end
5151
end
5252

53+
class BalanceReport < ::Stripe::RequestParams
54+
class Features < ::Stripe::RequestParams; end
55+
# Whether the embedded component is enabled.
56+
attr_accessor :enabled
57+
# An empty list, because this embedded component has no features.
58+
attr_accessor :features
59+
60+
def initialize(enabled: nil, features: nil)
61+
@enabled = enabled
62+
@features = features
63+
end
64+
end
65+
5366
class Balances < ::Stripe::RequestParams
5467
class Features < ::Stripe::RequestParams
5568
# Whether Stripe user authentication is disabled. This value can only be `true` for accounts where `controller.requirement_collection` is `application` for the account. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to `true` and `disable_stripe_user_authentication` defaults to `false`.
@@ -425,6 +438,19 @@ def initialize(enabled: nil, features: nil)
425438
end
426439
end
427440

441+
class PayoutReconciliationReport < ::Stripe::RequestParams
442+
class Features < ::Stripe::RequestParams; end
443+
# Whether the embedded component is enabled.
444+
attr_accessor :enabled
445+
# An empty list, because this embedded component has no features.
446+
attr_accessor :features
447+
448+
def initialize(enabled: nil, features: nil)
449+
@enabled = enabled
450+
@features = features
451+
end
452+
end
453+
428454
class Payouts < ::Stripe::RequestParams
429455
class Features < ::Stripe::RequestParams
430456
# Whether Stripe user authentication is disabled. This value can only be `true` for accounts where `controller.requirement_collection` is `application` for the account. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to `true` and `disable_stripe_user_authentication` defaults to `false`.
@@ -505,6 +531,8 @@ def initialize(enabled: nil, features: nil)
505531
attr_accessor :account_management
506532
# Configuration for the [account onboarding](/connect/supported-embedded-components/account-onboarding/) embedded component.
507533
attr_accessor :account_onboarding
534+
# Configuration for the [balance report](/connect/supported-embedded-components/financial-reports#balance-report) embedded component.
535+
attr_accessor :balance_report
508536
# Configuration for the [balances](/connect/supported-embedded-components/balances/) embedded component.
509537
attr_accessor :balances
510538
# Configuration for the [disputes list](/connect/supported-embedded-components/disputes-list/) embedded component.
@@ -531,6 +559,8 @@ def initialize(enabled: nil, features: nil)
531559
attr_accessor :payments
532560
# Configuration for the [payout details](/connect/supported-embedded-components/payout-details/) embedded component.
533561
attr_accessor :payout_details
562+
# Configuration for the [payout reconciliation report](/connect/supported-embedded-components/financial-reports#payout-reconciliation-report) embedded component.
563+
attr_accessor :payout_reconciliation_report
534564
# Configuration for the [payouts](/connect/supported-embedded-components/payouts/) embedded component.
535565
attr_accessor :payouts
536566
# Configuration for the [payouts list](/connect/supported-embedded-components/payouts-list/) embedded component.
@@ -543,6 +573,7 @@ def initialize(enabled: nil, features: nil)
543573
def initialize(
544574
account_management: nil,
545575
account_onboarding: nil,
576+
balance_report: nil,
546577
balances: nil,
547578
disputes_list: nil,
548579
documents: nil,
@@ -556,13 +587,15 @@ def initialize(
556587
payment_disputes: nil,
557588
payments: nil,
558589
payout_details: nil,
590+
payout_reconciliation_report: nil,
559591
payouts: nil,
560592
payouts_list: nil,
561593
tax_registrations: nil,
562594
tax_settings: nil
563595
)
564596
@account_management = account_management
565597
@account_onboarding = account_onboarding
598+
@balance_report = balance_report
566599
@balances = balances
567600
@disputes_list = disputes_list
568601
@documents = documents
@@ -576,6 +609,7 @@ def initialize(
576609
@payment_disputes = payment_disputes
577610
@payments = payments
578611
@payout_details = payout_details
612+
@payout_reconciliation_report = payout_reconciliation_report
579613
@payouts = payouts
580614
@payouts_list = payouts_list
581615
@tax_registrations = tax_registrations

0 commit comments

Comments
 (0)