Skip to content

Commit 72b8e1e

Browse files
Update generated code for v2160 and
1 parent 17448c5 commit 72b8e1e

File tree

213 files changed

+9829
-2252
lines changed

Some content is hidden

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

213 files changed

+9829
-2252
lines changed

CODEGEN_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
17ac30a7567d2c12a772939c0b90f505ef849cbe
1+
45d723936ebab9668b6996394720dcf4a2436671

OPENAPI_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v2159
1+
v2160

lib/stripe/api_version.rb

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

44
module Stripe
55
module ApiVersion
6-
CURRENT = "2025-12-15.preview"
6+
CURRENT = "2026-01-28.preview"
77
end
88
end

lib/stripe/object_types.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ def self.object_names_to_classes
7676
FinancialConnections::AccountInferredBalance,
7777
FinancialConnections::AccountOwner.object_name => FinancialConnections::AccountOwner,
7878
FinancialConnections::AccountOwnership.object_name => FinancialConnections::AccountOwnership,
79+
FinancialConnections::Authorization.object_name => FinancialConnections::Authorization,
7980
FinancialConnections::Institution.object_name => FinancialConnections::Institution,
8081
FinancialConnections::Session.object_name => FinancialConnections::Session,
8182
FinancialConnections::Transaction.object_name => FinancialConnections::Transaction,
@@ -134,11 +135,15 @@ def self.object_names_to_classes
134135
QuotePreviewSubscriptionSchedule.object_name => QuotePreviewSubscriptionSchedule,
135136
Radar::AccountEvaluation.object_name => Radar::AccountEvaluation,
136137
Radar::EarlyFraudWarning.object_name => Radar::EarlyFraudWarning,
138+
Radar::PaymentEvaluation.object_name => Radar::PaymentEvaluation,
137139
Radar::ValueList.object_name => Radar::ValueList,
138140
Radar::ValueListItem.object_name => Radar::ValueListItem,
139141
Refund.object_name => Refund,
140142
Reporting::ReportRun.object_name => Reporting::ReportRun,
141143
Reporting::ReportType.object_name => Reporting::ReportType,
144+
Reserve::Hold.object_name => Reserve::Hold,
145+
Reserve::Plan.object_name => Reserve::Plan,
146+
Reserve::Release.object_name => Reserve::Release,
142147
ReserveTransaction.object_name => ReserveTransaction,
143148
Reversal.object_name => Reversal,
144149
Review.object_name => Review,

lib/stripe/params.rb

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,7 @@
202202
require "stripe/params/financial_connections/account_retrieve_params"
203203
require "stripe/params/financial_connections/account_subscribe_params"
204204
require "stripe/params/financial_connections/account_unsubscribe_params"
205+
require "stripe/params/financial_connections/authorization_retrieve_params"
205206
require "stripe/params/financial_connections/institution_list_params"
206207
require "stripe/params/financial_connections/institution_retrieve_params"
207208
require "stripe/params/financial_connections/session_create_params"
@@ -235,6 +236,7 @@
235236
require "stripe/params/invoice_create_params"
236237
require "stripe/params/invoice_create_preview_params"
237238
require "stripe/params/invoice_delete_params"
239+
require "stripe/params/invoice_detach_payment_params"
238240
require "stripe/params/invoice_finalize_invoice_params"
239241
require "stripe/params/invoice_item_create_params"
240242
require "stripe/params/invoice_item_delete_params"
@@ -327,12 +329,8 @@
327329
require "stripe/params/margin_list_params"
328330
require "stripe/params/margin_retrieve_params"
329331
require "stripe/params/margin_update_params"
330-
require "stripe/params/order_cancel_params"
331332
require "stripe/params/order_create_params"
332-
require "stripe/params/order_line_item_list_params"
333-
require "stripe/params/order_list_line_items_params"
334333
require "stripe/params/order_list_params"
335-
require "stripe/params/order_reopen_params"
336334
require "stripe/params/order_retrieve_params"
337335
require "stripe/params/order_submit_params"
338336
require "stripe/params/order_update_params"
@@ -446,6 +444,7 @@
446444
require "stripe/params/radar/account_evaluation_update_params"
447445
require "stripe/params/radar/early_fraud_warning_list_params"
448446
require "stripe/params/radar/early_fraud_warning_retrieve_params"
447+
require "stripe/params/radar/payment_evaluation_create_params"
449448
require "stripe/params/radar/value_list_create_params"
450449
require "stripe/params/radar/value_list_delete_params"
451450
require "stripe/params/radar/value_list_item_create_params"
@@ -466,6 +465,11 @@
466465
require "stripe/params/reporting/report_run_retrieve_params"
467466
require "stripe/params/reporting/report_type_list_params"
468467
require "stripe/params/reporting/report_type_retrieve_params"
468+
require "stripe/params/reserve/hold_list_params"
469+
require "stripe/params/reserve/hold_retrieve_params"
470+
require "stripe/params/reserve/plan_retrieve_params"
471+
require "stripe/params/reserve/release_list_params"
472+
require "stripe/params/reserve/release_retrieve_params"
469473
require "stripe/params/review_approve_params"
470474
require "stripe/params/review_list_params"
471475
require "stripe/params/review_retrieve_params"
@@ -503,6 +507,7 @@
503507
require "stripe/params/subscription_item_update_params"
504508
require "stripe/params/subscription_list_params"
505509
require "stripe/params/subscription_migrate_params"
510+
require "stripe/params/subscription_pause_params"
506511
require "stripe/params/subscription_resume_params"
507512
require "stripe/params/subscription_retrieve_params"
508513
require "stripe/params/subscription_schedule_amend_params"

lib/stripe/params/account_create_params.rb

Lines changed: 48 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1639,7 +1639,7 @@ def initialize(person: nil)
16391639
end
16401640
# One or more document ids returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `account_requirement`.
16411641
attr_accessor :files
1642-
# Attribute for param field signer
1642+
# Information regarding the person signing the document if applicable.
16431643
attr_accessor :signer
16441644

16451645
def initialize(files: nil, signer: nil)
@@ -1659,7 +1659,7 @@ def initialize(person: nil)
16591659
end
16601660
# One or more document ids returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `account_requirement`.
16611661
attr_accessor :files
1662-
# Attribute for param field signer
1662+
# Information regarding the person signing the document if applicable.
16631663
attr_accessor :signer
16641664

16651665
def initialize(files: nil, signer: nil)
@@ -2271,11 +2271,56 @@ def initialize(debit_negative_balances: nil, schedule: nil, statement_descriptor
22712271
end
22722272

22732273
class PaypayPayments < ::Stripe::RequestParams
2274+
class Site < ::Stripe::RequestParams
2275+
class Accessible < ::Stripe::RequestParams; end
2276+
2277+
class InDevelopment < ::Stripe::RequestParams
2278+
# The password needed to access your business's website.
2279+
attr_accessor :password
2280+
# The username needed to access your business's website.
2281+
attr_accessor :username
2282+
2283+
def initialize(password: nil, username: nil)
2284+
@password = password
2285+
@username = username
2286+
end
2287+
end
2288+
2289+
class Restricted < ::Stripe::RequestParams
2290+
# The file explaining the payment flow for your business.
2291+
attr_accessor :payment_flow_file
2292+
2293+
def initialize(payment_flow_file: nil)
2294+
@payment_flow_file = payment_flow_file
2295+
end
2296+
end
2297+
# Additional information about your business's website.
2298+
attr_accessor :accessible
2299+
# Additional information about your business's website.
2300+
attr_accessor :in_development
2301+
# Additional information about your business's website.
2302+
attr_accessor :restricted
2303+
# The status of your business's website.
2304+
attr_accessor :type
2305+
2306+
def initialize(accessible: nil, in_development: nil, restricted: nil, type: nil)
2307+
@accessible = accessible
2308+
@in_development = in_development
2309+
@restricted = restricted
2310+
@type = type
2311+
end
2312+
end
2313+
# Additional files that are required to support the onboarding process of your business.
2314+
attr_accessor :additional_files
22742315
# Whether your business sells digital content or not.
22752316
attr_accessor :goods_type
2317+
# Details regarding your business's website.
2318+
attr_accessor :site
22762319

2277-
def initialize(goods_type: nil)
2320+
def initialize(additional_files: nil, goods_type: nil, site: nil)
2321+
@additional_files = additional_files
22782322
@goods_type = goods_type
2323+
@site = site
22792324
end
22802325
end
22812326

lib/stripe/params/account_session_create_params.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ class Features < ::Stripe::RequestParams
9898
attr_accessor :edit_payout_schedule
9999
# Whether external account collection is enabled. This feature can only be `false` for accounts where you’re responsible for collecting updated information when requirements are due or change, like Custom accounts. The default value for this feature is `true`.
100100
attr_accessor :external_account_collection
101-
# Whether to allow creation of instant payouts. Defaults to `true` when `controller.losses.payments` is set to `stripe` for the account, otherwise `false`.
101+
# Whether instant payouts are enabled for this component.
102102
attr_accessor :instant_payouts
103103
# Whether to allow creation of standard payouts. Defaults to `true` when `controller.losses.payments` is set to `stripe` for the account, otherwise `false`.
104104
attr_accessor :standard_payouts
@@ -313,7 +313,7 @@ class Features < ::Stripe::RequestParams
313313
attr_accessor :disable_stripe_user_authentication
314314
# Whether external account collection is enabled. This feature can only be `false` for accounts where you’re responsible for collecting updated information when requirements are due or change, like Custom accounts. The default value for this feature is `true`.
315315
attr_accessor :external_account_collection
316-
# Whether to allow creation of instant payouts. Defaults to `true` when `controller.losses.payments` is set to `stripe` for the account, otherwise `false`.
316+
# Whether instant payouts are enabled for this component.
317317
attr_accessor :instant_payouts
318318

319319
def initialize(
@@ -564,7 +564,7 @@ class Features < ::Stripe::RequestParams
564564
attr_accessor :edit_payout_schedule
565565
# Whether external account collection is enabled. This feature can only be `false` for accounts where you’re responsible for collecting updated information when requirements are due or change, like Custom accounts. The default value for this feature is `true`.
566566
attr_accessor :external_account_collection
567-
# Whether to allow creation of instant payouts. Defaults to `true` when `controller.losses.payments` is set to `stripe` for the account, otherwise `false`.
567+
# Whether instant payouts are enabled for this component.
568568
attr_accessor :instant_payouts
569569
# Whether to allow creation of standard payouts. Defaults to `true` when `controller.losses.payments` is set to `stripe` for the account, otherwise `false`.
570570
attr_accessor :standard_payouts

lib/stripe/params/account_update_params.rb

Lines changed: 48 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1558,7 +1558,7 @@ def initialize(person: nil)
15581558
end
15591559
# One or more document ids returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `account_requirement`.
15601560
attr_accessor :files
1561-
# Attribute for param field signer
1561+
# Information regarding the person signing the document if applicable.
15621562
attr_accessor :signer
15631563

15641564
def initialize(files: nil, signer: nil)
@@ -1578,7 +1578,7 @@ def initialize(person: nil)
15781578
end
15791579
# One or more document ids returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `account_requirement`.
15801580
attr_accessor :files
1581-
# Attribute for param field signer
1581+
# Information regarding the person signing the document if applicable.
15821582
attr_accessor :signer
15831583

15841584
def initialize(files: nil, signer: nil)
@@ -2193,11 +2193,56 @@ def initialize(debit_negative_balances: nil, schedule: nil, statement_descriptor
21932193
end
21942194

21952195
class PaypayPayments < ::Stripe::RequestParams
2196+
class Site < ::Stripe::RequestParams
2197+
class Accessible < ::Stripe::RequestParams; end
2198+
2199+
class InDevelopment < ::Stripe::RequestParams
2200+
# The password needed to access your business's website.
2201+
attr_accessor :password
2202+
# The username needed to access your business's website.
2203+
attr_accessor :username
2204+
2205+
def initialize(password: nil, username: nil)
2206+
@password = password
2207+
@username = username
2208+
end
2209+
end
2210+
2211+
class Restricted < ::Stripe::RequestParams
2212+
# The file explaining the payment flow for your business.
2213+
attr_accessor :payment_flow_file
2214+
2215+
def initialize(payment_flow_file: nil)
2216+
@payment_flow_file = payment_flow_file
2217+
end
2218+
end
2219+
# Additional information about your business's website.
2220+
attr_accessor :accessible
2221+
# Additional information about your business's website.
2222+
attr_accessor :in_development
2223+
# Additional information about your business's website.
2224+
attr_accessor :restricted
2225+
# The status of your business's website.
2226+
attr_accessor :type
2227+
2228+
def initialize(accessible: nil, in_development: nil, restricted: nil, type: nil)
2229+
@accessible = accessible
2230+
@in_development = in_development
2231+
@restricted = restricted
2232+
@type = type
2233+
end
2234+
end
2235+
# Additional files that are required to support the onboarding process of your business.
2236+
attr_accessor :additional_files
21962237
# Whether your business sells digital content or not.
21972238
attr_accessor :goods_type
2239+
# Details regarding your business's website.
2240+
attr_accessor :site
21982241

2199-
def initialize(goods_type: nil)
2242+
def initialize(additional_files: nil, goods_type: nil, site: nil)
2243+
@additional_files = additional_files
22002244
@goods_type = goods_type
2245+
@site = site
22012246
end
22022247
end
22032248

lib/stripe/params/balance_transaction_list_params.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,11 @@ def initialize(gt: nil, gte: nil, lt: nil, lte: nil)
3232
attr_accessor :limit
3333
# For automatic Stripe payouts only, only returns transactions that were paid out on the specified payout ID.
3434
attr_accessor :payout
35-
# Only returns the original transaction.
35+
# Only returns transactions associated with the given object.
3636
attr_accessor :source
3737
# A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.
3838
attr_accessor :starting_after
39-
# Only returns transactions of the given type. One of: `adjustment`, `advance`, `advance_funding`, `anticipation_repayment`, `application_fee`, `application_fee_refund`, `charge`, `climate_order_purchase`, `climate_order_refund`, `connect_collection_transfer`, `contribution`, `issuing_authorization_hold`, `issuing_authorization_release`, `issuing_dispute`, `issuing_transaction`, `obligation_outbound`, `obligation_reversal_inbound`, `payment`, `payment_failure_refund`, `payment_network_reserve_hold`, `payment_network_reserve_release`, `payment_refund`, `payment_reversal`, `payment_unreconciled`, `payout`, `payout_cancel`, `payout_failure`, `payout_minimum_balance_hold`, `payout_minimum_balance_release`, `refund`, `refund_failure`, `reserve_transaction`, `reserved_funds`, `stripe_fee`, `stripe_fx_fee`, `stripe_balance_payment_debit`, `stripe_balance_payment_debit_reversal`, `tax_fee`, `topup`, `topup_reversal`, `transfer`, `transfer_cancel`, `transfer_failure`, or `transfer_refund`.
39+
# Only returns transactions of the given type. One of: `adjustment`, `advance`, `advance_funding`, `anticipation_repayment`, `application_fee`, `application_fee_refund`, `charge`, `climate_order_purchase`, `climate_order_refund`, `connect_collection_transfer`, `contribution`, `issuing_authorization_hold`, `issuing_authorization_release`, `issuing_dispute`, `issuing_transaction`, `obligation_outbound`, `obligation_reversal_inbound`, `payment`, `payment_failure_refund`, `payment_network_reserve_hold`, `payment_network_reserve_release`, `payment_refund`, `payment_reversal`, `payment_unreconciled`, `payout`, `payout_cancel`, `payout_failure`, `payout_minimum_balance_hold`, `payout_minimum_balance_release`, `refund`, `refund_failure`, `reserve_transaction`, `reserved_funds`, `reserve_hold`, `reserve_release`, `stripe_fee`, `stripe_fx_fee`, `stripe_balance_payment_debit`, `stripe_balance_payment_debit_reversal`, `tax_fee`, `topup`, `topup_reversal`, `transfer`, `transfer_cancel`, `transfer_failure`, or `transfer_refund`.
4040
attr_accessor :type
4141

4242
def initialize(

0 commit comments

Comments
 (0)