Sha256: 12cbbd0cf6c3a48e291eec5ef9310dde315bd47b034007b16bca3d3a6332cdc8
Contents?: true
Size: 842 Bytes
Versions: 9
Compression:
Stored size: 842 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, resource_url + '/verify', params, opts) initialize_from(response, opts) end def resource_url if respond_to?(:customer) "#{Customer.resource_url}/#{CGI.escape(customer)}/sources/#{CGI.escape(id)}" elsif respond_to?(:account) "#{Account.resource_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
9 entries across 9 versions & 1 rubygems