mirror of
https://github.com/stripe/stripe-ruby.git
synced 2025-11-29 00:01:18 -05:00
Rename object_id parameter (#1574)
This commit is contained in:
parent
fdb39ed488
commit
5b68a44889
@ -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
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user