stripe-ruby/lib/stripe/services/confirmation_token_service.rb
helenye-stripe dc5174725f
Add RBI annotations for fields and params (#1559)
* Introduce types to ruby

* rubocop

* forgot these files

* other request methods

* more tests, fix for raw request

* Add README entry for types

* rebase and regen
2025-03-31 14:29:41 -07:00

27 lines
732 B
Ruby

# File generated from our OpenAPI spec
# frozen_string_literal: true
module Stripe
class ConfirmationTokenService < StripeService
class RetrieveParams < Stripe::RequestParams
# Specifies which fields in the response should be expanded.
attr_accessor :expand
def initialize(expand: nil)
@expand = expand
end
end
# Retrieves an existing ConfirmationToken object
def retrieve(confirmation_token, params = {}, opts = {})
request(
method: :get,
path: format("/v1/confirmation_tokens/%<confirmation_token>s", { confirmation_token: CGI.escape(confirmation_token) }),
params: params,
opts: opts,
base_address: :api
)
end
end
end