stripe-ruby/lib/stripe/account.rb

10 lines
381 B
Ruby

module Stripe
class Account < SingletonAPIResource
def deauthorize(client_id, opts={})
api_key, headers = Util.parse_opts(opts)
response, api_key = Stripe.request(:post, '/oauth/deauthorize', api_key, { 'client_id' => client_id, 'stripe_user_id' => self.id }, headers, Stripe.connect_base)
Util.convert_to_stripe_object(response, api_key)
end
end
end