Skip to content

Commit 8f611fa

Browse files
Merge pull request #1789 from stripe/latest-codegen-beta
Update generated code for beta
2 parents 89477a3 + 7d16973 commit 8f611fa

File tree

176 files changed

+2458
-924
lines changed

Some content is hidden

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

176 files changed

+2458
-924
lines changed

CODEGEN_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
9d04866843864b95eb2d5dbea5923816e446f09b
1+
35e26af8c8a4fb5988922dfcb4d9bd22f7f850c5

OPENAPI_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v2164
1+
v2184

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 = "2026-01-28.preview"
6+
CURRENT = "2026-02-25.preview"
77
end
88
end

lib/stripe/params/account_create_params.rb

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2175,6 +2175,8 @@ def initialize(hosted_payment_method_save: nil)
21752175
end
21762176

21772177
class Payments < ::Stripe::RequestParams
2178+
# When you enable this parameter, the customer of this Account receives an email receipt when their payment succeeds. If this parameter isn't set, the default value is `false`.
2179+
attr_accessor :email_customers_on_successful_payment
21782180
# The default text that appears on statements for non-card charges outside of Japan. For card charges, if you don't set a `statement_descriptor_prefix`, this text is also used as the statement descriptor prefix. In that case, if concatenating the statement descriptor suffix causes the combined statement descriptor to exceed 22 characters, we truncate the `statement_descriptor` text to limit the full descriptor to 22 characters. For more information about statement descriptors and their requirements, see the [account settings documentation](https://docs.stripe.com/get-started/account/statement-descriptors).
21792181
attr_accessor :statement_descriptor
21802182
# The Kana variation of `statement_descriptor` used for charges in Japan. Japanese statement descriptors have [special requirements](https://docs.stripe.com/get-started/account/statement-descriptors#set-japanese-statement-descriptors).
@@ -2183,10 +2185,12 @@ class Payments < ::Stripe::RequestParams
21832185
attr_accessor :statement_descriptor_kanji
21842186

21852187
def initialize(
2188+
email_customers_on_successful_payment: nil,
21862189
statement_descriptor: nil,
21872190
statement_descriptor_kana: nil,
21882191
statement_descriptor_kanji: nil
21892192
)
2193+
@email_customers_on_successful_payment = email_customers_on_successful_payment
21902194
@statement_descriptor = statement_descriptor
21912195
@statement_descriptor_kana = statement_descriptor_kana
21922196
@statement_descriptor_kanji = statement_descriptor_kanji
@@ -2292,6 +2296,23 @@ def initialize(additional_files: nil, goods_type: nil, site: nil)
22922296
end
22932297
end
22942298

2299+
class SmartDisputes < ::Stripe::RequestParams
2300+
class AutoRespond < ::Stripe::RequestParams
2301+
# The preference setting for auto-respond. Can be 'on', 'off', or 'inherit'.
2302+
attr_accessor :preference
2303+
2304+
def initialize(preference: nil)
2305+
@preference = preference
2306+
end
2307+
end
2308+
# Smart Disputes auto-respond settings for the account.
2309+
attr_accessor :auto_respond
2310+
2311+
def initialize(auto_respond: nil)
2312+
@auto_respond = auto_respond
2313+
end
2314+
end
2315+
22952316
class TaxForms < ::Stripe::RequestParams
22962317
# Whether the account opted out of receiving their tax forms by postal delivery.
22972318
attr_accessor :consented_to_paperless_delivery
@@ -2343,6 +2364,8 @@ def initialize(tos_acceptance: nil)
23432364
attr_accessor :payouts
23442365
# Settings specific to the PayPay payments method.
23452366
attr_accessor :paypay_payments
2367+
# Settings specific to the account's use of Smart Disputes.
2368+
attr_accessor :smart_disputes
23462369
# Settings specific to the account's tax forms.
23472370
attr_accessor :tax_forms
23482371
# Settings specific to the account's Treasury FinancialAccounts.
@@ -2359,6 +2382,7 @@ def initialize(
23592382
payments: nil,
23602383
payouts: nil,
23612384
paypay_payments: nil,
2385+
smart_disputes: nil,
23622386
tax_forms: nil,
23632387
treasury: nil
23642388
)
@@ -2372,6 +2396,7 @@ def initialize(
23722396
@payments = payments
23732397
@payouts = payouts
23742398
@paypay_payments = paypay_payments
2399+
@smart_disputes = smart_disputes
23752400
@tax_forms = tax_forms
23762401
@treasury = treasury
23772402
end

lib/stripe/params/account_update_params.rb

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2097,6 +2097,8 @@ def initialize(default_account_tax_ids: nil, hosted_payment_method_save: nil)
20972097
end
20982098

20992099
class Payments < ::Stripe::RequestParams
2100+
# When you enable this parameter, the customer of this Account receives an email receipt when their payment succeeds. If this parameter isn't set, the default value is `false`.
2101+
attr_accessor :email_customers_on_successful_payment
21002102
# The default text that appears on statements for non-card charges outside of Japan. For card charges, if you don't set a `statement_descriptor_prefix`, this text is also used as the statement descriptor prefix. In that case, if concatenating the statement descriptor suffix causes the combined statement descriptor to exceed 22 characters, we truncate the `statement_descriptor` text to limit the full descriptor to 22 characters. For more information about statement descriptors and their requirements, see the [account settings documentation](https://docs.stripe.com/get-started/account/statement-descriptors).
21012103
attr_accessor :statement_descriptor
21022104
# The Kana variation of `statement_descriptor` used for charges in Japan. Japanese statement descriptors have [special requirements](https://docs.stripe.com/get-started/account/statement-descriptors#set-japanese-statement-descriptors).
@@ -2105,10 +2107,12 @@ class Payments < ::Stripe::RequestParams
21052107
attr_accessor :statement_descriptor_kanji
21062108

21072109
def initialize(
2110+
email_customers_on_successful_payment: nil,
21082111
statement_descriptor: nil,
21092112
statement_descriptor_kana: nil,
21102113
statement_descriptor_kanji: nil
21112114
)
2115+
@email_customers_on_successful_payment = email_customers_on_successful_payment
21122116
@statement_descriptor = statement_descriptor
21132117
@statement_descriptor_kana = statement_descriptor_kana
21142118
@statement_descriptor_kanji = statement_descriptor_kanji
@@ -2214,6 +2218,23 @@ def initialize(additional_files: nil, goods_type: nil, site: nil)
22142218
end
22152219
end
22162220

2221+
class SmartDisputes < ::Stripe::RequestParams
2222+
class AutoRespond < ::Stripe::RequestParams
2223+
# The preference setting for auto-respond. Can be 'on', 'off', or 'inherit'.
2224+
attr_accessor :preference
2225+
2226+
def initialize(preference: nil)
2227+
@preference = preference
2228+
end
2229+
end
2230+
# Smart Disputes auto-respond settings for the account.
2231+
attr_accessor :auto_respond
2232+
2233+
def initialize(auto_respond: nil)
2234+
@auto_respond = auto_respond
2235+
end
2236+
end
2237+
22172238
class TaxForms < ::Stripe::RequestParams
22182239
# Whether the account opted out of receiving their tax forms by postal delivery.
22192240
attr_accessor :consented_to_paperless_delivery
@@ -2265,6 +2286,8 @@ def initialize(tos_acceptance: nil)
22652286
attr_accessor :payouts
22662287
# Settings specific to the PayPay payments method.
22672288
attr_accessor :paypay_payments
2289+
# Settings specific to the account's use of Smart Disputes.
2290+
attr_accessor :smart_disputes
22682291
# Settings specific to the account's tax forms.
22692292
attr_accessor :tax_forms
22702293
# Settings specific to the account's Treasury FinancialAccounts.
@@ -2281,6 +2304,7 @@ def initialize(
22812304
payments: nil,
22822305
payouts: nil,
22832306
paypay_payments: nil,
2307+
smart_disputes: nil,
22842308
tax_forms: nil,
22852309
treasury: nil
22862310
)
@@ -2294,6 +2318,7 @@ def initialize(
22942318
@payments = payments
22952319
@payouts = payouts
22962320
@paypay_payments = paypay_payments
2321+
@smart_disputes = smart_disputes
22972322
@tax_forms = tax_forms
22982323
@treasury = treasury
22992324
end

lib/stripe/params/billing/alert_create_params.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def initialize(customer: nil, type: nil)
1818
end
1919
# The filters allows limiting the scope of this usage alert. You can only specify up to one filter at this time.
2020
attr_accessor :filters
21-
# Defines at which value the alert will fire.
21+
# Defines the threshold value that triggers the alert.
2222
attr_accessor :gte
2323
# The [Billing Meter](/api/billing/meter) ID whose usage is monitored.
2424
attr_accessor :meter

lib/stripe/params/billing_portal/session_create_params.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ def initialize(
142142
@type = type
143143
end
144144
end
145-
# The ID of an existing [configuration](https://docs.stripe.com/api/customer_portal/configuration) to use for this session, describing its functionality and features. If not specified, the session uses the default configuration.
145+
# The ID of an existing [configuration](https://docs.stripe.com/api/customer_portal/configurations) to use for this session, describing its functionality and features. If not specified, the session uses the default configuration.
146146
attr_accessor :configuration
147147
# The ID of an existing customer.
148148
attr_accessor :customer

lib/stripe/params/checkout/session_create_params.rb

Lines changed: 21 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ def initialize(label: nil, value: nil)
164164
@value = value
165165
end
166166
end
167-
# The value that will pre-fill the field on the payment page.Must match a `value` in the `options` array.
167+
# The value that pre-fills the field on the payment page.Must match a `value` in the `options` array.
168168
attr_accessor :default_value
169169
# The options available for the customer to select. Up to 200 options allowed.
170170
attr_accessor :options
@@ -188,7 +188,7 @@ def initialize(custom: nil, type: nil)
188188
end
189189

190190
class Numeric < ::Stripe::RequestParams
191-
# The value that will pre-fill the field on the payment page.
191+
# The value that pre-fills the field on the payment page.
192192
attr_accessor :default_value
193193
# The maximum character length constraint for the customer's input.
194194
attr_accessor :maximum_length
@@ -203,7 +203,7 @@ def initialize(default_value: nil, maximum_length: nil, minimum_length: nil)
203203
end
204204

205205
class Text < ::Stripe::RequestParams
206-
# The value that will pre-fill the field on the payment page.
206+
# The value that pre-fills the field on the payment page.
207207
attr_accessor :default_value
208208
# The maximum character length constraint for the customer's input.
209209
attr_accessor :maximum_length
@@ -252,7 +252,7 @@ def initialize(
252252

253253
class CustomText < ::Stripe::RequestParams
254254
class AfterSubmit < ::Stripe::RequestParams
255-
# Text may be up to 1200 characters in length.
255+
# Text can be up to 1200 characters in length.
256256
attr_accessor :message
257257

258258
def initialize(message: nil)
@@ -261,7 +261,7 @@ def initialize(message: nil)
261261
end
262262

263263
class ShippingAddress < ::Stripe::RequestParams
264-
# Text may be up to 1200 characters in length.
264+
# Text can be up to 1200 characters in length.
265265
attr_accessor :message
266266

267267
def initialize(message: nil)
@@ -270,7 +270,7 @@ def initialize(message: nil)
270270
end
271271

272272
class Submit < ::Stripe::RequestParams
273-
# Text may be up to 1200 characters in length.
273+
# Text can be up to 1200 characters in length.
274274
attr_accessor :message
275275

276276
def initialize(message: nil)
@@ -279,7 +279,7 @@ def initialize(message: nil)
279279
end
280280

281281
class TermsOfServiceAcceptance < ::Stripe::RequestParams
282-
# Text may be up to 1200 characters in length.
282+
# Text can be up to 1200 characters in length.
283283
attr_accessor :message
284284

285285
def initialize(message: nil)
@@ -577,6 +577,15 @@ def initialize(
577577
end
578578
end
579579

580+
class ManagedPayments < ::Stripe::RequestParams
581+
# Set to `true` to enable [Managed Payments](https://docs.stripe.com/payments/managed-payments), Stripe's merchant of record solution, for this session.
582+
attr_accessor :enabled
583+
584+
def initialize(enabled: nil)
585+
@enabled = enabled
586+
end
587+
end
588+
580589
class NameCollection < ::Stripe::RequestParams
581590
class Business < ::Stripe::RequestParams
582591
# Enable business name collection on the Checkout Session. Defaults to `false`.
@@ -1123,7 +1132,7 @@ def initialize(capture_method: nil, setup_future_usage: nil)
11231132
class CustomerBalance < ::Stripe::RequestParams
11241133
class BankTransfer < ::Stripe::RequestParams
11251134
class EuBankTransfer < ::Stripe::RequestParams
1126-
# The desired country code of the bank account information. Permitted values include: `BE`, `DE`, `ES`, `FR`, `IE`, or `NL`.
1135+
# The desired country code of the bank account information. Permitted values include: `DE`, `FR`, `IE`, or `NL`.
11271136
attr_accessor :country
11281137

11291138
def initialize(country: nil)
@@ -2458,6 +2467,8 @@ def initialize(link: nil)
24582467
attr_accessor :line_items
24592468
# The IETF language tag of the locale Checkout is displayed in. If blank or `auto`, the browser's locale is used.
24602469
attr_accessor :locale
2470+
# Settings for Managed Payments for this Checkout Session and resulting [PaymentIntents](/api/payment_intents/object), [Invoices](/api/invoices/object), and [Subscriptions](/api/subscriptions/object).
2471+
attr_accessor :managed_payments
24612472
# Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
24622473
attr_accessor :metadata
24632474
# The mode of the Checkout Session. Pass `subscription` if the Checkout Session includes at least one recurring item.
@@ -2578,6 +2589,7 @@ def initialize(
25782589
invoice_creation: nil,
25792590
line_items: nil,
25802591
locale: nil,
2592+
managed_payments: nil,
25812593
metadata: nil,
25822594
mode: nil,
25832595
name_collection: nil,
@@ -2628,6 +2640,7 @@ def initialize(
26282640
@invoice_creation = invoice_creation
26292641
@line_items = line_items
26302642
@locale = locale
2643+
@managed_payments = managed_payments
26312644
@metadata = metadata
26322645
@mode = mode
26332646
@name_collection = name_collection

lib/stripe/params/credit_note_create_params.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,11 @@ def initialize(amount: nil, tax_rate: nil, taxable_amount: nil)
2626
attr_accessor :invoice_line_item
2727
# The line item quantity to credit.
2828
attr_accessor :quantity
29-
# A list of up to 10 tax amounts for the credit note line item. Cannot be mixed with `tax_rates`.
29+
# A list of up to 10 tax amounts for the credit note line item. Not valid when `tax_rates` is used or if invoice is set up with `automatic_tax[enabled]=true`.
3030
attr_accessor :tax_amounts
31-
# The tax rates which apply to the credit note line item. Only valid when the `type` is `custom_line_item` and cannot be mixed with `tax_amounts`.
31+
# The tax rates which apply to the credit note line item. Only valid when the `type` is `custom_line_item` and `tax_amounts` is not used.
3232
attr_accessor :tax_rates
33-
# Type of the credit note line item, one of `invoice_line_item` or `custom_line_item`
33+
# Type of the credit note line item, one of `invoice_line_item` or `custom_line_item`. `custom_line_item` is not valid when the invoice is set up with `automatic_tax[enabled]=true`.
3434
attr_accessor :type
3535
# The integer unit amount in cents (or local equivalent) of the credit note line item. This `unit_amount` will be multiplied by the quantity to get the full amount to credit for this line item. Only valid when `type` is `custom_line_item`.
3636
attr_accessor :unit_amount

lib/stripe/params/credit_note_list_preview_line_items_params.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,11 @@ def initialize(amount: nil, tax_rate: nil, taxable_amount: nil)
2626
attr_accessor :invoice_line_item
2727
# The line item quantity to credit.
2828
attr_accessor :quantity
29-
# A list of up to 10 tax amounts for the credit note line item. Cannot be mixed with `tax_rates`.
29+
# A list of up to 10 tax amounts for the credit note line item. Not valid when `tax_rates` is used or if invoice is set up with `automatic_tax[enabled]=true`.
3030
attr_accessor :tax_amounts
31-
# The tax rates which apply to the credit note line item. Only valid when the `type` is `custom_line_item` and cannot be mixed with `tax_amounts`.
31+
# The tax rates which apply to the credit note line item. Only valid when the `type` is `custom_line_item` and `tax_amounts` is not used.
3232
attr_accessor :tax_rates
33-
# Type of the credit note line item, one of `invoice_line_item` or `custom_line_item`
33+
# Type of the credit note line item, one of `invoice_line_item` or `custom_line_item`. `custom_line_item` is not valid when the invoice is set up with `automatic_tax[enabled]=true`.
3434
attr_accessor :type
3535
# The integer unit amount in cents (or local equivalent) of the credit note line item. This `unit_amount` will be multiplied by the quantity to get the full amount to credit for this line item. Only valid when `type` is `custom_line_item`.
3636
attr_accessor :unit_amount

0 commit comments

Comments
 (0)