Sha256: 29e78ea96e24d50fbb867da747b0afc436a4193cac6e2a1b002b1fa59504a15f
Contents?: true
Size: 806 Bytes
Versions: 10
Compression:
Stored size: 806 Bytes
Contents
module Stripe class BankAccount < APIResource include Stripe::APIOperations::Update include Stripe::APIOperations::Delete extend Stripe::APIOperations::List def verify(params={}, opts={}) response, opts = request(:post, url + '/verify', params, opts) initialize_from(response, opts) end def url if respond_to?(:customer) "#{Customer.url}/#{CGI.escape(customer)}/sources/#{CGI.escape(id)}" elsif respond_to?(:account) "#{Account.url}/#{CGI.escape(account)}/external_accounts/#{CGI.escape(id)}" end end def self.retrieve(id, opts=nil) raise NotImplementedError.new("Bank accounts cannot be retrieved without an account ID. Retrieve a bank account using account.external_accounts.retrieve('card_id')") end end end
Version data entries
10 entries across 10 versions & 1 rubygems