Add comment on retrieve on how to pass parameters (#1676)

This commit is contained in:
Ramya Rao 2025-09-26 12:43:27 -07:00 committed by GitHub
parent 71858a8f76
commit 8330a2bfa5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -111,6 +111,9 @@ module Stripe
)
end
# Retrieve by passing id like `retrieve(id)`
# If passing parameters, pass a single map with parameters and the `id` as well.
# For example: retrieve({id: some_id, some_param: some_param_value})
def self.retrieve(id, opts = {})
if name.include?("Stripe::V2")
raise NotImplementedError,