Update generated code for v1628

This commit is contained in:
Stripe OpenAPI 2025-03-26 21:31:06 +00:00
parent fe9bf1eb16
commit 18b4454856
3 changed files with 16 additions and 2 deletions

View File

@ -13,6 +13,12 @@ module Stripe
class Countries < Stripe::StripeObject
class Field < Stripe::StripeObject
class LocalNameHuman < Stripe::StripeObject
# Attribute for field content
attr_reader :content
# Attribute for field localization_key
attr_reader :localization_key
end
# The local name of the field.
attr_reader :local_name
# The human readable local name of the field.

View File

@ -9,11 +9,19 @@ module Stripe
class PayoutMethodsBankAccountSpec < APIResource
class Countries < Stripe::StripeObject
class Field < Stripe::StripeObject
class LocalNameHuman < Stripe::StripeObject
# Attribute for field content
sig { returns(String) }
attr_reader :content
# Attribute for field localization_key
sig { returns(String) }
attr_reader :localization_key
end
# The local name of the field.
sig { returns(String) }
attr_reader :local_name
# The human readable local name of the field.
sig { returns(String) }
sig { returns(LocalNameHuman) }
attr_reader :local_name_human
# The maximum length of the field.
sig { returns(Integer) }

View File

@ -8091,7 +8091,7 @@ module Stripe
:get,
"#{Stripe::DEFAULT_API_BASE}/v2/money_management/payout_methods_bank_account_spec"
).to_return(
body: '{"countries":{"undefined":{"fields":[{"local_name":"local_name","local_name_human":"local_name_human","max_length":1111390753,"min_length":711577229,"placeholder":"placeholder","stripe_name":"stripe_name","validation_regex":"validation_regex"}]}},"object":"v2.money_management.payout_methods_bank_account_spec"}',
body: '{"countries":{"undefined":{"fields":[{"local_name":"local_name","local_name_human":{"content":"content","localization_key":"localization_key"},"max_length":1111390753,"min_length":711577229,"placeholder":"placeholder","stripe_name":"stripe_name","validation_regex":"validation_regex"}]}},"object":"v2.money_management.payout_methods_bank_account_spec"}',
status: 200
)
client = StripeClient.new("sk_test_123")