Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .hark/changes/2026-09-23_stripe-openapi_239a21cb.change.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
title: Update generated code
pr_url: https://github.com/stripe/stripe-ruby/pull/1958
semver_level: minor
is_stripe_api_change: true
---

* Release specs are identical.
2 changes: 1 addition & 1 deletion CODEGEN_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
baff58c9d515cdd5f5c3231d101989d588788c6f
c6e6c59f2abca2e655c05194c60737d51f7e704f
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v2442
v2516
1 change: 1 addition & 0 deletions lib/stripe/api_requestor.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1092,6 +1092,7 @@ class SystemProfiler
%w[CODEX_CI codex_cli],
%w[CURSOR_AGENT cursor],
%w[GEMINI_CLI gemini_cli],
%w[HERMES_AGENT hermes],
%w[OPENCLAW_SHELL openclaw],
%w[OPENCODE open_code],
# aiAgents: The end of the section generated from our OpenAPI spec
Expand Down
1,064 changes: 385 additions & 679 deletions rbi/stripe.rbi

Large diffs are not rendered by default.

14 changes: 5 additions & 9 deletions rbi/stripe/params/account_create_params.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -1907,11 +1907,9 @@ module Stripe
}
def ownership_declaration=(_ownership_declaration); end
# This value is used to determine if a business is exempt from providing ultimate beneficial owners. See [this support article](https://support.stripe.com/questions/exemption-from-providing-ownership-details) and [changelog](https://docs.stripe.com/changelog/acacia/2025-01-27/ownership-exemption-reason-accounts-api) for more details.
sig { returns(T.nilable(T.any(String, String))) }
sig { returns(T.nilable(String)) }
def ownership_exemption_reason; end
sig {
params(_ownership_exemption_reason: T.nilable(T.any(String, String))).returns(T.nilable(T.any(String, String)))
}
sig { params(_ownership_exemption_reason: T.nilable(String)).returns(T.nilable(String)) }
def ownership_exemption_reason=(_ownership_exemption_reason); end
# The company's phone number (used for verification).
sig { returns(T.nilable(String)) }
Expand Down Expand Up @@ -1947,11 +1945,9 @@ module Stripe
}
def representative_declaration=(_representative_declaration); end
# The category identifying the legal structure of the company or legal entity. See [Business structure](/connect/identity-verification#business-structure) for more details. Pass an empty string to unset this value.
sig { returns(T.nilable(T.any(String, String))) }
sig { returns(T.nilable(String)) }
def structure; end
sig {
params(_structure: T.nilable(T.any(String, String))).returns(T.nilable(T.any(String, String)))
}
sig { params(_structure: T.nilable(String)).returns(T.nilable(String)) }
def structure=(_structure); end
# The business ID number of the company, as appropriate for the company’s country. (Examples are an Employer ID Number in the U.S., a Business Number in Canada, or a Company Number in the UK.)
#
Expand All @@ -1978,7 +1974,7 @@ module Stripe
}
def verification=(_verification); end
sig {
params(address: T.nilable(::Stripe::AccountCreateParams::Company::Address), address_kana: T.nilable(::Stripe::AccountCreateParams::Company::AddressKana), address_kanji: T.nilable(::Stripe::AccountCreateParams::Company::AddressKanji), administrative_address: T.nilable(::Stripe::AccountCreateParams::Company::AdministrativeAddress), directors_provided: T.nilable(T::Boolean), directorship_declaration: T.nilable(::Stripe::AccountCreateParams::Company::DirectorshipDeclaration), executives_provided: T.nilable(T::Boolean), export_license_id: T.nilable(String), export_purpose_code: T.nilable(String), name: T.nilable(String), name_kana: T.nilable(String), name_kanji: T.nilable(String), owners_provided: T.nilable(T::Boolean), ownership_declaration: T.nilable(::Stripe::AccountCreateParams::Company::OwnershipDeclaration), ownership_exemption_reason: T.nilable(T.any(String, String)), phone: T.nilable(String), principal_place_of_business: T.nilable(::Stripe::AccountCreateParams::Company::PrincipalPlaceOfBusiness), registration_date: T.nilable(T.any(String, ::Stripe::AccountCreateParams::Company::RegistrationDate)), registration_number: T.nilable(String), representative_declaration: T.nilable(::Stripe::AccountCreateParams::Company::RepresentativeDeclaration), structure: T.nilable(T.any(String, String)), tax_id: T.nilable(String), tax_id_registrar: T.nilable(String), vat_id: T.nilable(String), verification: T.nilable(::Stripe::AccountCreateParams::Company::Verification)).void
params(address: T.nilable(::Stripe::AccountCreateParams::Company::Address), address_kana: T.nilable(::Stripe::AccountCreateParams::Company::AddressKana), address_kanji: T.nilable(::Stripe::AccountCreateParams::Company::AddressKanji), administrative_address: T.nilable(::Stripe::AccountCreateParams::Company::AdministrativeAddress), directors_provided: T.nilable(T::Boolean), directorship_declaration: T.nilable(::Stripe::AccountCreateParams::Company::DirectorshipDeclaration), executives_provided: T.nilable(T::Boolean), export_license_id: T.nilable(String), export_purpose_code: T.nilable(String), name: T.nilable(String), name_kana: T.nilable(String), name_kanji: T.nilable(String), owners_provided: T.nilable(T::Boolean), ownership_declaration: T.nilable(::Stripe::AccountCreateParams::Company::OwnershipDeclaration), ownership_exemption_reason: T.nilable(String), phone: T.nilable(String), principal_place_of_business: T.nilable(::Stripe::AccountCreateParams::Company::PrincipalPlaceOfBusiness), registration_date: T.nilable(T.any(String, ::Stripe::AccountCreateParams::Company::RegistrationDate)), registration_number: T.nilable(String), representative_declaration: T.nilable(::Stripe::AccountCreateParams::Company::RepresentativeDeclaration), structure: T.nilable(String), tax_id: T.nilable(String), tax_id_registrar: T.nilable(String), vat_id: T.nilable(String), verification: T.nilable(::Stripe::AccountCreateParams::Company::Verification)).void
}
def initialize(
address: nil,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,9 @@ module Stripe
sig { params(_account_holder_name: T.nilable(String)).returns(T.nilable(String)) }
def account_holder_name=(_account_holder_name); end
# The type of entity that holds the account. This can be either `individual` or `company`.
sig { returns(T.nilable(T.any(String, String))) }
sig { returns(T.nilable(String)) }
def account_holder_type; end
sig {
params(_account_holder_type: T.nilable(T.any(String, String))).returns(T.nilable(T.any(String, String)))
}
sig { params(_account_holder_type: T.nilable(String)).returns(T.nilable(String)) }
def account_holder_type=(_account_holder_type); end
# The bank account type. This can only be `checking` or `savings` in most countries. In Japan, this can only be `futsu` or `toza`.
sig { returns(T.nilable(String)) }
Expand Down Expand Up @@ -115,7 +113,7 @@ module Stripe
sig { params(_name: T.nilable(String)).returns(T.nilable(String)) }
def name=(_name); end
sig {
params(account_holder_name: T.nilable(String), account_holder_type: T.nilable(T.any(String, String)), account_type: T.nilable(String), address_city: T.nilable(String), address_country: T.nilable(String), address_line1: T.nilable(String), address_line2: T.nilable(String), address_state: T.nilable(String), address_zip: T.nilable(String), default_for_currency: T.nilable(T::Boolean), documents: T.nilable(::Stripe::AccountExternalAccountUpdateParams::Documents), exp_month: T.nilable(String), exp_year: T.nilable(String), expand: T.nilable(T::Array[String]), metadata: T.nilable(T.any(String, T::Hash[String, String])), name: T.nilable(String)).void
params(account_holder_name: T.nilable(String), account_holder_type: T.nilable(String), account_type: T.nilable(String), address_city: T.nilable(String), address_country: T.nilable(String), address_line1: T.nilable(String), address_line2: T.nilable(String), address_state: T.nilable(String), address_zip: T.nilable(String), default_for_currency: T.nilable(T::Boolean), documents: T.nilable(::Stripe::AccountExternalAccountUpdateParams::Documents), exp_month: T.nilable(String), exp_year: T.nilable(String), expand: T.nilable(T::Array[String]), metadata: T.nilable(T.any(String, T::Hash[String, String])), name: T.nilable(String)).void
}
def initialize(
account_holder_name: nil,
Expand Down
14 changes: 5 additions & 9 deletions rbi/stripe/params/account_update_params.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -1907,11 +1907,9 @@ module Stripe
}
def ownership_declaration=(_ownership_declaration); end
# This value is used to determine if a business is exempt from providing ultimate beneficial owners. See [this support article](https://support.stripe.com/questions/exemption-from-providing-ownership-details) and [changelog](https://docs.stripe.com/changelog/acacia/2025-01-27/ownership-exemption-reason-accounts-api) for more details.
sig { returns(T.nilable(T.any(String, String))) }
sig { returns(T.nilable(String)) }
def ownership_exemption_reason; end
sig {
params(_ownership_exemption_reason: T.nilable(T.any(String, String))).returns(T.nilable(T.any(String, String)))
}
sig { params(_ownership_exemption_reason: T.nilable(String)).returns(T.nilable(String)) }
def ownership_exemption_reason=(_ownership_exemption_reason); end
# The company's phone number (used for verification).
sig { returns(T.nilable(String)) }
Expand Down Expand Up @@ -1947,11 +1945,9 @@ module Stripe
}
def representative_declaration=(_representative_declaration); end
# The category identifying the legal structure of the company or legal entity. See [Business structure](/connect/identity-verification#business-structure) for more details. Pass an empty string to unset this value.
sig { returns(T.nilable(T.any(String, String))) }
sig { returns(T.nilable(String)) }
def structure; end
sig {
params(_structure: T.nilable(T.any(String, String))).returns(T.nilable(T.any(String, String)))
}
sig { params(_structure: T.nilable(String)).returns(T.nilable(String)) }
def structure=(_structure); end
# The business ID number of the company, as appropriate for the company’s country. (Examples are an Employer ID Number in the U.S., a Business Number in Canada, or a Company Number in the UK.)
#
Expand All @@ -1978,7 +1974,7 @@ module Stripe
}
def verification=(_verification); end
sig {
params(address: T.nilable(::Stripe::AccountUpdateParams::Company::Address), address_kana: T.nilable(::Stripe::AccountUpdateParams::Company::AddressKana), address_kanji: T.nilable(::Stripe::AccountUpdateParams::Company::AddressKanji), administrative_address: T.nilable(::Stripe::AccountUpdateParams::Company::AdministrativeAddress), directors_provided: T.nilable(T::Boolean), directorship_declaration: T.nilable(::Stripe::AccountUpdateParams::Company::DirectorshipDeclaration), executives_provided: T.nilable(T::Boolean), export_license_id: T.nilable(String), export_purpose_code: T.nilable(String), name: T.nilable(String), name_kana: T.nilable(String), name_kanji: T.nilable(String), owners_provided: T.nilable(T::Boolean), ownership_declaration: T.nilable(::Stripe::AccountUpdateParams::Company::OwnershipDeclaration), ownership_exemption_reason: T.nilable(T.any(String, String)), phone: T.nilable(String), principal_place_of_business: T.nilable(::Stripe::AccountUpdateParams::Company::PrincipalPlaceOfBusiness), registration_date: T.nilable(T.any(String, ::Stripe::AccountUpdateParams::Company::RegistrationDate)), registration_number: T.nilable(String), representative_declaration: T.nilable(::Stripe::AccountUpdateParams::Company::RepresentativeDeclaration), structure: T.nilable(T.any(String, String)), tax_id: T.nilable(String), tax_id_registrar: T.nilable(String), vat_id: T.nilable(String), verification: T.nilable(::Stripe::AccountUpdateParams::Company::Verification)).void
params(address: T.nilable(::Stripe::AccountUpdateParams::Company::Address), address_kana: T.nilable(::Stripe::AccountUpdateParams::Company::AddressKana), address_kanji: T.nilable(::Stripe::AccountUpdateParams::Company::AddressKanji), administrative_address: T.nilable(::Stripe::AccountUpdateParams::Company::AdministrativeAddress), directors_provided: T.nilable(T::Boolean), directorship_declaration: T.nilable(::Stripe::AccountUpdateParams::Company::DirectorshipDeclaration), executives_provided: T.nilable(T::Boolean), export_license_id: T.nilable(String), export_purpose_code: T.nilable(String), name: T.nilable(String), name_kana: T.nilable(String), name_kanji: T.nilable(String), owners_provided: T.nilable(T::Boolean), ownership_declaration: T.nilable(::Stripe::AccountUpdateParams::Company::OwnershipDeclaration), ownership_exemption_reason: T.nilable(String), phone: T.nilable(String), principal_place_of_business: T.nilable(::Stripe::AccountUpdateParams::Company::PrincipalPlaceOfBusiness), registration_date: T.nilable(T.any(String, ::Stripe::AccountUpdateParams::Company::RegistrationDate)), registration_number: T.nilable(String), representative_declaration: T.nilable(::Stripe::AccountUpdateParams::Company::RepresentativeDeclaration), structure: T.nilable(String), tax_id: T.nilable(String), tax_id_registrar: T.nilable(String), vat_id: T.nilable(String), verification: T.nilable(::Stripe::AccountUpdateParams::Company::Verification)).void
}
def initialize(
address: nil,
Expand Down
6 changes: 3 additions & 3 deletions rbi/stripe/params/charge_update_params.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ module Stripe
class ChargeUpdateParams < ::Stripe::RequestParams
class FraudDetails < ::Stripe::RequestParams
# Either `safe` or `fraudulent`.
sig { returns(T.any(String, String)) }
sig { returns(String) }
def user_report; end
sig { params(_user_report: T.any(String, String)).returns(T.any(String, String)) }
sig { params(_user_report: String).returns(String) }
def user_report=(_user_report); end
sig { params(user_report: T.any(String, String)).void }
sig { params(user_report: String).void }
def initialize(user_report: nil); end
end
class Shipping < ::Stripe::RequestParams
Expand Down
Loading
Loading