diff --git a/lib/stripe/services/v2/core/event_service.rb b/lib/stripe/services/v2/core/event_service.rb index 180f1a7f..c59da45a 100644 --- a/lib/stripe/services/v2/core/event_service.rb +++ b/lib/stripe/services/v2/core/event_service.rb @@ -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 diff --git a/rbi/stripe/services/v2/core/event_service.rbi b/rbi/stripe/services/v2/core/event_service.rbi index 6b21aa96..9095f6e5 100644 --- a/rbi/stripe/services/v2/core/event_service.rbi +++ b/rbi/stripe/services/v2/core/event_service.rbi @@ -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