Rename object_id parameter (#1574)

This commit is contained in:
helenye-stripe 2025-04-09 07:59:24 -07:00 committed by GitHub
parent fdb39ed488
commit 5b68a44889
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 10 additions and 6 deletions

View File

@ -9,11 +9,13 @@ module Stripe
# The page size.
attr_accessor :limit
# Primary object ID used to retrieve related events.
attr_accessor :object_id
#
# To avoid conflict with Ruby's ':object_id', this attribute has been renamed. If using a hash parameter map instead, please use the original name ':object_id' with NO trailing underscore as the provided param key.
attr_accessor :object_id_
def initialize(limit: nil, object_id: nil)
def initialize(limit: nil, object_id_: nil)
@limit = limit
@object_id = object_id
@object_id_ = object_id_
end
end

View File

@ -11,10 +11,12 @@ module Stripe
sig { returns(T.nilable(Integer)) }
attr_accessor :limit
# Primary object ID used to retrieve related events.
#
# To avoid conflict with Ruby's ':object_id', this attribute has been renamed. If using a hash parameter map instead, please use the original name ':object_id' with NO trailing underscore as the provided param key.
sig { returns(String) }
attr_accessor :object_id
sig { params(limit: T.nilable(Integer), object_id: String).void }
def initialize(limit: nil, object_id: nil); end
attr_accessor :object_id_
sig { params(limit: T.nilable(Integer), object_id_: String).void }
def initialize(limit: nil, object_id_: nil); end
end
class RetrieveParams < Stripe::RequestParams