lib/stripe/account.rb in stripe-1.16.1 vs lib/stripe/account.rb in stripe-1.17.1
- old
+ new
@@ -1,4 +1,9 @@
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