Skip to content

Commit e567ef5

Browse files
Update generated code (stripe#1771)
* Update generated code for v2154 and * Update generated code for v2158 and * Update generated code for v2158 and * Update generated code for v2159 and * Update generated code for v2160 and --------- Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com>
1 parent d34b1ef commit e567ef5

110 files changed

Lines changed: 3533 additions & 526 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-
c250368ba89214c80bc8de3e4fc5d2094c5502cc
1+
fdbf5e05015131c7993d2b4017103f0d94561b6a

OPENAPI_VERSION

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

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 = "2025-12-15.clover"
6+
CURRENT = "2026-01-28.clover"
77
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
@@ -105,6 +105,7 @@ def self.object_names_to_classes
105105
PromotionCode.object_name => PromotionCode,
106106
Quote.object_name => Quote,
107107
Radar::EarlyFraudWarning.object_name => Radar::EarlyFraudWarning,
108+
Radar::PaymentEvaluation.object_name => Radar::PaymentEvaluation,
108109
Radar::ValueList.object_name => Radar::ValueList,
109110
Radar::ValueListItem.object_name => Radar::ValueListItem,
110111
Refund.object_name => Refund,

lib/stripe/params.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -358,6 +358,7 @@
358358
require "stripe/params/quote_update_params"
359359
require "stripe/params/radar/early_fraud_warning_list_params"
360360
require "stripe/params/radar/early_fraud_warning_retrieve_params"
361+
require "stripe/params/radar/payment_evaluation_create_params"
361362
require "stripe/params/radar/value_list_create_params"
362363
require "stripe/params/radar/value_list_delete_params"
363364
require "stripe/params/radar/value_list_item_create_params"

lib/stripe/params/account_session_create_params.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ class Features < ::Stripe::RequestParams
5858
attr_accessor :edit_payout_schedule
5959
# 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`.
6060
attr_accessor :external_account_collection
61-
# Whether to allow creation of instant payouts. Defaults to `true` when `controller.losses.payments` is set to `stripe` for the account, otherwise `false`.
61+
# Whether instant payouts are enabled for this component.
6262
attr_accessor :instant_payouts
6363
# Whether to allow creation of standard payouts. Defaults to `true` when `controller.losses.payments` is set to `stripe` for the account, otherwise `false`.
6464
attr_accessor :standard_payouts
@@ -195,7 +195,7 @@ class Features < ::Stripe::RequestParams
195195
attr_accessor :disable_stripe_user_authentication
196196
# 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`.
197197
attr_accessor :external_account_collection
198-
# Whether to allow creation of instant payouts. Defaults to `true` when `controller.losses.payments` is set to `stripe` for the account, otherwise `false`.
198+
# Whether instant payouts are enabled for this component.
199199
attr_accessor :instant_payouts
200200

201201
def initialize(
@@ -433,7 +433,7 @@ class Features < ::Stripe::RequestParams
433433
attr_accessor :edit_payout_schedule
434434
# 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`.
435435
attr_accessor :external_account_collection
436-
# Whether to allow creation of instant payouts. Defaults to `true` when `controller.losses.payments` is set to `stripe` for the account, otherwise `false`.
436+
# Whether instant payouts are enabled for this component.
437437
attr_accessor :instant_payouts
438438
# Whether to allow creation of standard payouts. Defaults to `true` when `controller.losses.payments` is set to `stripe` for the account, otherwise `false`.
439439
attr_accessor :standard_payouts

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(

lib/stripe/params/checkout/session_create_params.rb

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -512,7 +512,7 @@ def initialize(
512512
end
513513
# When set, provides configuration for this item’s quantity to be adjusted by the customer during Checkout.
514514
attr_accessor :adjustable_quantity
515-
# The [tax rates](https://docs.stripe.com/api/tax_rates) that will be applied to this line item depending on the customer's billing/shipping address. We currently support the following countries: US, GB, AU, and all countries in the EU.
515+
# The [tax rates](https://docs.stripe.com/api/tax_rates) that will be applied to this line item depending on the customer's billing/shipping address. We currently support the following countries: US, GB, AU, and all countries in the EU. You can't set this parameter if `ui_mode` is `custom`.
516516
attr_accessor :dynamic_tax_rates
517517
# 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`.
518518
attr_accessor :metadata
@@ -1023,7 +1023,7 @@ def initialize(brands_blocked: nil)
10231023
attr_accessor :request_overcapture
10241024
# We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://docs.stripe.com/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. If not provided, this value defaults to `automatic`. Read our guide on [manually requesting 3D Secure](https://docs.stripe.com/payments/3d-secure/authentication-flow#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine.
10251025
attr_accessor :request_three_d_secure
1026-
# Restrictions to apply to the card payment method. For example, you can block specific card brands.
1026+
# Restrictions to apply to the card payment method. For example, you can block specific card brands. You can't set this parameter if `ui_mode` is `custom`.
10271027
attr_accessor :restrictions
10281028
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
10291029
#
@@ -1737,7 +1737,7 @@ def initialize(app_id: nil, client: nil, setup_future_usage: nil)
17371737
@setup_future_usage = setup_future_usage
17381738
end
17391739
end
1740-
# contains details about the ACSS Debit payment method options.
1740+
# contains details about the ACSS Debit payment method options. You can't set this parameter if `ui_mode` is `custom`.
17411741
attr_accessor :acss_debit
17421742
# contains details about the Affirm payment method options.
17431743
attr_accessor :affirm
@@ -2168,7 +2168,7 @@ def initialize(end_behavior: nil)
21682168
end
21692169
# A non-negative decimal between 0 and 100, with at most two decimal places. This represents the percentage of the subscription invoice total that will be transferred to the application owner's Stripe account. To use an application fee percent, the request must be made on behalf of another account, using the `Stripe-Account` header or an OAuth key. For more information, see the application fees [documentation](https://stripe.com/docs/connect/subscriptions#collecting-fees-on-subscriptions).
21702170
attr_accessor :application_fee_percent
2171-
# A future timestamp to anchor the subscription's billing cycle for new subscriptions.
2171+
# A future timestamp to anchor the subscription's billing cycle for new subscriptions. You can't set this parameter if `ui_mode` is `custom`.
21722172
attr_accessor :billing_cycle_anchor
21732173
# Controls how prorations and invoices for subscriptions are calculated and orchestrated.
21742174
attr_accessor :billing_mode
@@ -2231,7 +2231,7 @@ def initialize(
22312231
class TaxIdCollection < ::Stripe::RequestParams
22322232
# Enable tax ID collection during checkout. Defaults to `false`.
22332233
attr_accessor :enabled
2234-
# Describes whether a tax ID is required during checkout. Defaults to `never`.
2234+
# Describes whether a tax ID is required during checkout. Defaults to `never`. You can't set this parameter if `ui_mode` is `custom`.
22352235
attr_accessor :required
22362236

22372237
def initialize(enabled: nil, required: nil)
@@ -2258,7 +2258,7 @@ def initialize(link: nil)
22582258
end
22592259
# Settings for price localization with [Adaptive Pricing](https://docs.stripe.com/payments/checkout/adaptive-pricing).
22602260
attr_accessor :adaptive_pricing
2261-
# Configure actions after a Checkout Session has expired.
2261+
# Configure actions after a Checkout Session has expired. You can't set this parameter if `ui_mode` is `custom`.
22622262
attr_accessor :after_expiration
22632263
# Enables user redeemable promotion codes.
22642264
attr_accessor :allow_promotion_codes
@@ -2278,9 +2278,9 @@ def initialize(link: nil)
22782278
attr_accessor :consent_collection
22792279
# Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). Required in `setup` mode when `payment_method_types` is not set.
22802280
attr_accessor :currency
2281-
# Collect additional information from your customer using custom fields. Up to 3 fields are supported.
2281+
# Collect additional information from your customer using custom fields. Up to 3 fields are supported. You can't set this parameter if `ui_mode` is `custom`.
22822282
attr_accessor :custom_fields
2283-
# Display additional text for your customers using custom text.
2283+
# Display additional text for your customers using custom text. You can't set this parameter if `ui_mode` is `custom`.
22842284
attr_accessor :custom_text
22852285
# ID of an existing Customer, if one exists. In `payment` mode, the customer’s most recently saved card
22862286
# payment method will be used to prefill the email, name, card details, and billing address
@@ -2341,6 +2341,8 @@ def initialize(link: nil)
23412341
# You can configure Checkout to collect your customers' business names, individual names, or both. Each name field can be either required or optional.
23422342
#
23432343
# If a [Customer](https://docs.stripe.com/api/customers) is created or provided, the names can be saved to the Customer object as well.
2344+
#
2345+
# You can't set this parameter if `ui_mode` is `custom`.
23442346
attr_accessor :name_collection
23452347
# A list of optional items the customer can add to their order at checkout. Use this parameter to pass one-time or recurring [Prices](https://docs.stripe.com/api/prices).
23462348
#
@@ -2349,8 +2351,10 @@ def initialize(link: nil)
23492351
# For `payment` mode, there is a maximum of 100 combined line items and optional items, however it is recommended to consolidate items if there are more than a few dozen.
23502352
#
23512353
# For `subscription` mode, there is a maximum of 20 line items and optional items with recurring Prices and 20 line items and optional items with one-time Prices.
2354+
#
2355+
# You can't set this parameter if `ui_mode` is `custom`.
23522356
attr_accessor :optional_items
2353-
# Where the user is coming from. This informs the optimizations that are applied to the session.
2357+
# Where the user is coming from. This informs the optimizations that are applied to the session. You can't set this parameter if `ui_mode` is `custom`.
23542358
attr_accessor :origin_context
23552359
# A subset of parameters to be passed to PaymentIntent creation for Checkout Sessions in `payment` mode.
23562360
attr_accessor :payment_intent_data
@@ -2406,6 +2410,7 @@ def initialize(link: nil)
24062410
# to customize relevant text on the page, such as the submit button.
24072411
# `submit_type` can only be specified on Checkout Sessions in
24082412
# `payment` or `subscription` mode. If blank or `auto`, `pay` is used.
2413+
# You can't set this parameter if `ui_mode` is `custom`.
24092414
attr_accessor :submit_type
24102415
# A subset of parameters to be passed to subscription creation for Checkout Sessions in `subscription` mode.
24112416
attr_accessor :subscription_data

lib/stripe/params/coupon_create_params.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def initialize(amount_off: nil)
4444
attr_accessor :name
4545
# A positive float larger than 0, and smaller or equal to 100, that represents the discount the coupon will apply (required if `amount_off` is not passed).
4646
attr_accessor :percent_off
47-
# Unix timestamp specifying the last time at which the coupon can be redeemed. After the redeem_by date, the coupon can no longer be applied to new customers.
47+
# Unix timestamp specifying the last time at which the coupon can be redeemed (cannot be set to more than 5 years in the future). After the redeem_by date, the coupon can no longer be applied to new customers.
4848
attr_accessor :redeem_by
4949

5050
def initialize(

lib/stripe/params/customer_create_params.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ def initialize(ip_address: nil, validate_location: nil)
149149
end
150150

151151
class TaxIdDatum < ::Stripe::RequestParams
152-
# Type of the tax ID, one of `ad_nrt`, `ae_trn`, `al_tin`, `am_tin`, `ao_tin`, `ar_cuit`, `au_abn`, `au_arn`, `aw_tin`, `az_tin`, `ba_tin`, `bb_tin`, `bd_bin`, `bf_ifu`, `bg_uic`, `bh_vat`, `bj_ifu`, `bo_tin`, `br_cnpj`, `br_cpf`, `bs_tin`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `cd_nif`, `ch_uid`, `ch_vat`, `cl_tin`, `cm_niu`, `cn_tin`, `co_nit`, `cr_tin`, `cv_nif`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `et_tin`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `gn_nif`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kg_tin`, `kh_tin`, `kr_brn`, `kz_bin`, `la_tin`, `li_uid`, `li_vat`, `ma_vat`, `md_vat`, `me_pib`, `mk_vat`, `mr_nif`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `np_pan`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sn_ninea`, `sr_fin`, `sv_nit`, `th_vat`, `tj_tin`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `ug_tin`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, `za_vat`, `zm_tin`, or `zw_tin`
152+
# Type of the tax ID, one of `ad_nrt`, `ae_trn`, `al_tin`, `am_tin`, `ao_tin`, `ar_cuit`, `au_abn`, `au_arn`, `aw_tin`, `az_tin`, `ba_tin`, `bb_tin`, `bd_bin`, `bf_ifu`, `bg_uic`, `bh_vat`, `bj_ifu`, `bo_tin`, `br_cnpj`, `br_cpf`, `bs_tin`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `cd_nif`, `ch_uid`, `ch_vat`, `cl_tin`, `cm_niu`, `cn_tin`, `co_nit`, `cr_tin`, `cv_nif`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `et_tin`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `gn_nif`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kg_tin`, `kh_tin`, `kr_brn`, `kz_bin`, `la_tin`, `li_uid`, `li_vat`, `ma_vat`, `md_vat`, `me_pib`, `mk_vat`, `mr_nif`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `np_pan`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `pl_nip`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sn_ninea`, `sr_fin`, `sv_nit`, `th_vat`, `tj_tin`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `ug_tin`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, `za_vat`, `zm_tin`, or `zw_tin`
153153
attr_accessor :type
154154
# Value of the tax ID.
155155
attr_accessor :value

0 commit comments

Comments
 (0)