Skip to content

Commit 566a84d

Browse files
Update generated code (stripe#1744)
* Update generated code for v2134 and * Update generated code for v2137 and * Update generated code for v2140 and --------- Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com>
1 parent c423a05 commit 566a84d

692 files changed

Lines changed: 92987 additions & 44627 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-
e62524b587909bee231a15ce0dc618f1d04f69a4
1+
88aa59022b32620f4d66d6196e3b42d5a0f86bbb

OPENAPI_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v2124
1+
v2140

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-11-17.clover"
6+
CURRENT = "2025-12-15.clover"
77
CURRENT_MAJOR = "clover"
88
end
99
end

lib/stripe/object_types.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,11 @@ def self.v2_object_names_to_classes
167167
V2::Billing::MeterEvent.object_name => V2::Billing::MeterEvent,
168168
V2::Billing::MeterEventAdjustment.object_name => V2::Billing::MeterEventAdjustment,
169169
V2::Billing::MeterEventSession.object_name => V2::Billing::MeterEventSession,
170+
V2::Core::Account.object_name => V2::Core::Account,
171+
V2::Core::AccountLink.object_name => V2::Core::AccountLink,
172+
V2::Core::AccountPerson.object_name => V2::Core::AccountPerson,
173+
V2::Core::AccountPersonToken.object_name => V2::Core::AccountPersonToken,
174+
V2::Core::AccountToken.object_name => V2::Core::AccountToken,
170175
V2::Core::Event.object_name => V2::Core::Event,
171176
V2::Core::EventDestination.object_name => V2::Core::EventDestination,
172177
# v2 object classes: The end of the section generated from our OpenAPI spec

lib/stripe/params.rb

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -584,6 +584,21 @@
584584
require "stripe/params/v2/billing/meter_event_create_params"
585585
require "stripe/params/v2/billing/meter_event_session_create_params"
586586
require "stripe/params/v2/billing/meter_event_stream_create_params"
587+
require "stripe/params/v2/core/account_close_params"
588+
require "stripe/params/v2/core/account_create_params"
589+
require "stripe/params/v2/core/account_link_create_params"
590+
require "stripe/params/v2/core/account_list_params"
591+
require "stripe/params/v2/core/account_retrieve_params"
592+
require "stripe/params/v2/core/account_token_create_params"
593+
require "stripe/params/v2/core/account_token_retrieve_params"
594+
require "stripe/params/v2/core/account_update_params"
595+
require "stripe/params/v2/core/accounts/person_create_params"
596+
require "stripe/params/v2/core/accounts/person_delete_params"
597+
require "stripe/params/v2/core/accounts/person_list_params"
598+
require "stripe/params/v2/core/accounts/person_retrieve_params"
599+
require "stripe/params/v2/core/accounts/person_token_create_params"
600+
require "stripe/params/v2/core/accounts/person_token_retrieve_params"
601+
require "stripe/params/v2/core/accounts/person_update_params"
587602
require "stripe/params/v2/core/event_destination_create_params"
588603
require "stripe/params/v2/core/event_destination_delete_params"
589604
require "stripe/params/v2/core/event_destination_disable_params"

lib/stripe/params/account_create_params.rb

Lines changed: 60 additions & 25 deletions
Large diffs are not rendered by default.

lib/stripe/params/account_external_account_create_params.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,9 +119,9 @@ def initialize(object: nil, currency: nil, token: nil)
119119
attr_accessor :default_for_currency
120120
# Specifies which fields in the response should be expanded.
121121
attr_accessor :expand
122-
# A token, like the ones returned by [Stripe.js](https://stripe.com/docs/js) or a dictionary containing a user's external account details (with the options shown below). Please refer to full [documentation](https://stripe.com/docs/api/external_accounts) instead.
122+
# A token, like the ones returned by [Stripe.js](https://docs.stripe.com/js) or a dictionary containing a user's external account details (with the options shown below). Please refer to full [documentation](https://stripe.com/docs/api/external_accounts) instead.
123123
attr_accessor :external_account
124-
# 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. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
124+
# 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`.
125125
attr_accessor :metadata
126126

127127
def initialize(default_for_currency: nil, expand: nil, external_account: nil, metadata: nil)

lib/stripe/params/account_external_account_update_params.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ module Stripe
55
class AccountExternalAccountUpdateParams < ::Stripe::RequestParams
66
class Documents < ::Stripe::RequestParams
77
class BankAccountOwnershipVerification < ::Stripe::RequestParams
8-
# One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`.
8+
# One or more document ids returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `account_requirement`.
99
attr_accessor :files
1010

1111
def initialize(files: nil)
@@ -47,7 +47,7 @@ def initialize(bank_account_ownership_verification: nil)
4747
attr_accessor :exp_year
4848
# Specifies which fields in the response should be expanded.
4949
attr_accessor :expand
50-
# 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. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
50+
# 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`.
5151
attr_accessor :metadata
5252
# Cardholder name.
5353
attr_accessor :name

lib/stripe/params/account_person_create_params.rb

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class Address < ::Stripe::RequestParams
3737
attr_accessor :line2
3838
# ZIP or postal code.
3939
attr_accessor :postal_code
40-
# State, county, province, or region.
40+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
4141
attr_accessor :state
4242

4343
def initialize(city: nil, country: nil, line1: nil, line2: nil, postal_code: nil, state: nil)
@@ -137,7 +137,7 @@ def initialize(day: nil, month: nil, year: nil)
137137

138138
class Documents < ::Stripe::RequestParams
139139
class CompanyAuthorization < ::Stripe::RequestParams
140-
# One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`.
140+
# One or more document ids returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `account_requirement`.
141141
attr_accessor :files
142142

143143
def initialize(files: nil)
@@ -146,7 +146,7 @@ def initialize(files: nil)
146146
end
147147

148148
class Passport < ::Stripe::RequestParams
149-
# One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`.
149+
# One or more document ids returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `account_requirement`.
150150
attr_accessor :files
151151

152152
def initialize(files: nil)
@@ -155,7 +155,7 @@ def initialize(files: nil)
155155
end
156156

157157
class Visa < ::Stripe::RequestParams
158-
# One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`.
158+
# One or more document ids returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `account_requirement`.
159159
attr_accessor :files
160160

161161
def initialize(files: nil)
@@ -187,7 +187,7 @@ class RegisteredAddress < ::Stripe::RequestParams
187187
attr_accessor :line2
188188
# ZIP or postal code.
189189
attr_accessor :postal_code
190-
# State, county, province, or region.
190+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
191191
attr_accessor :state
192192

193193
def initialize(city: nil, country: nil, line1: nil, line2: nil, postal_code: nil, state: nil)
@@ -279,9 +279,9 @@ def initialize(ethnicity_details: nil, race_details: nil, self_identified_gender
279279

280280
class Verification < ::Stripe::RequestParams
281281
class AdditionalDocument < ::Stripe::RequestParams
282-
# The back of an ID returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `identity_document`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size.
282+
# The back of an ID returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `identity_document`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size.
283283
attr_accessor :back
284-
# The front of an ID returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `identity_document`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size.
284+
# The front of an ID returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `identity_document`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size.
285285
attr_accessor :front
286286

287287
def initialize(back: nil, front: nil)
@@ -291,9 +291,9 @@ def initialize(back: nil, front: nil)
291291
end
292292

293293
class Document < ::Stripe::RequestParams
294-
# The back of an ID returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `identity_document`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size.
294+
# The back of an ID returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `identity_document`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size.
295295
attr_accessor :back
296-
# The front of an ID returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `identity_document`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size.
296+
# The front of an ID returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `identity_document`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size.
297297
attr_accessor :front
298298

299299
def initialize(back: nil, front: nil)
@@ -349,7 +349,7 @@ def initialize(additional_document: nil, document: nil)
349349
attr_accessor :last_name_kanji
350350
# The person's maiden name.
351351
attr_accessor :maiden_name
352-
# 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. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
352+
# 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`.
353353
attr_accessor :metadata
354354
# The country where the person is a national. Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)), or "XX" if unavailable.
355355
attr_accessor :nationality

lib/stripe/params/account_person_update_params.rb

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class Address < ::Stripe::RequestParams
3737
attr_accessor :line2
3838
# ZIP or postal code.
3939
attr_accessor :postal_code
40-
# State, county, province, or region.
40+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
4141
attr_accessor :state
4242

4343
def initialize(city: nil, country: nil, line1: nil, line2: nil, postal_code: nil, state: nil)
@@ -137,7 +137,7 @@ def initialize(day: nil, month: nil, year: nil)
137137

138138
class Documents < ::Stripe::RequestParams
139139
class CompanyAuthorization < ::Stripe::RequestParams
140-
# One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`.
140+
# One or more document ids returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `account_requirement`.
141141
attr_accessor :files
142142

143143
def initialize(files: nil)
@@ -146,7 +146,7 @@ def initialize(files: nil)
146146
end
147147

148148
class Passport < ::Stripe::RequestParams
149-
# One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`.
149+
# One or more document ids returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `account_requirement`.
150150
attr_accessor :files
151151

152152
def initialize(files: nil)
@@ -155,7 +155,7 @@ def initialize(files: nil)
155155
end
156156

157157
class Visa < ::Stripe::RequestParams
158-
# One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`.
158+
# One or more document ids returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `account_requirement`.
159159
attr_accessor :files
160160

161161
def initialize(files: nil)
@@ -187,7 +187,7 @@ class RegisteredAddress < ::Stripe::RequestParams
187187
attr_accessor :line2
188188
# ZIP or postal code.
189189
attr_accessor :postal_code
190-
# State, county, province, or region.
190+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
191191
attr_accessor :state
192192

193193
def initialize(city: nil, country: nil, line1: nil, line2: nil, postal_code: nil, state: nil)
@@ -279,9 +279,9 @@ def initialize(ethnicity_details: nil, race_details: nil, self_identified_gender
279279

280280
class Verification < ::Stripe::RequestParams
281281
class AdditionalDocument < ::Stripe::RequestParams
282-
# The back of an ID returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `identity_document`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size.
282+
# The back of an ID returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `identity_document`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size.
283283
attr_accessor :back
284-
# The front of an ID returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `identity_document`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size.
284+
# The front of an ID returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `identity_document`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size.
285285
attr_accessor :front
286286

287287
def initialize(back: nil, front: nil)
@@ -291,9 +291,9 @@ def initialize(back: nil, front: nil)
291291
end
292292

293293
class Document < ::Stripe::RequestParams
294-
# The back of an ID returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `identity_document`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size.
294+
# The back of an ID returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `identity_document`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size.
295295
attr_accessor :back
296-
# The front of an ID returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `identity_document`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size.
296+
# The front of an ID returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `identity_document`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size.
297297
attr_accessor :front
298298

299299
def initialize(back: nil, front: nil)
@@ -349,7 +349,7 @@ def initialize(additional_document: nil, document: nil)
349349
attr_accessor :last_name_kanji
350350
# The person's maiden name.
351351
attr_accessor :maiden_name
352-
# 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. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
352+
# 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`.
353353
attr_accessor :metadata
354354
# The country where the person is a national. Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)), or "XX" if unavailable.
355355
attr_accessor :nationality

0 commit comments

Comments
 (0)