stripe 1.30.3 → 1.31.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/History.txt +4 -0
- data/VERSION +1 -1
- data/lib/stripe/bank_account.rb +5 -0
- data/lib/stripe/version.rb +1 -1
- data/test/stripe/bank_account_test.rb +21 -0
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fa445bd78b07bd208f1b693f173ac8f554e3f9a0
|
4
|
+
data.tar.gz: c4f1334cf81a71e6ffbf8c2b87b1f6bb53e3c953
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 95423d6dd94213f236d462fa0764bfa88cadc1a490ad89749fb0bdf78622e6c78a9523e35ca74a8c27e3be9e980a67d39c90e473219176e21a4f0970008edcce
|
7
|
+
data.tar.gz: 9fae58a91cad0929d902ba5c34e782260cfc998a708c20299d69f864fb09941b063ede335cbe455b03fd1c43bb45ca5d12dbcbd0b13f44887c16b3c63bb4a575
|
data/History.txt
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.31.0
|
data/lib/stripe/bank_account.rb
CHANGED
@@ -4,6 +4,11 @@ module Stripe
|
|
4
4
|
include Stripe::APIOperations::Delete
|
5
5
|
extend Stripe::APIOperations::List
|
6
6
|
|
7
|
+
def verify(params={}, opts={})
|
8
|
+
response, opts = request(:post, url + '/verify', params, opts)
|
9
|
+
initialize_from(response, opts)
|
10
|
+
end
|
11
|
+
|
7
12
|
def url
|
8
13
|
if respond_to?(:customer)
|
9
14
|
"#{Customer.url}/#{CGI.escape(customer)}/sources/#{CGI.escape(id)}"
|
data/lib/stripe/version.rb
CHANGED
@@ -0,0 +1,21 @@
|
|
1
|
+
require File.expand_path('../../test_helper', __FILE__)
|
2
|
+
|
3
|
+
module Stripe
|
4
|
+
class BankAccountTest < Test::Unit::TestCase
|
5
|
+
|
6
|
+
should 'be verifiable' do
|
7
|
+
bank = Stripe::BankAccount.construct_from({
|
8
|
+
:id => 'ba_foo',
|
9
|
+
:customer => 'cus_bar'
|
10
|
+
})
|
11
|
+
|
12
|
+
@mock.expects(:post).
|
13
|
+
once.
|
14
|
+
with('https://api.stripe.com/v1/customers/cus_bar/sources/ba_foo/verify', nil, 'amounts[]=1&amounts[]=2').
|
15
|
+
returns(make_response(:status => 'verified'))
|
16
|
+
|
17
|
+
bank.verify(:amounts => [1,2])
|
18
|
+
end
|
19
|
+
|
20
|
+
end
|
21
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: stripe
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.31.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ross Boucher
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-10-
|
12
|
+
date: 2015-10-29 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rest-client
|
@@ -213,6 +213,7 @@ files:
|
|
213
213
|
- test/stripe/application_fee_refund_test.rb
|
214
214
|
- test/stripe/application_fee_test.rb
|
215
215
|
- test/stripe/balance_test.rb
|
216
|
+
- test/stripe/bank_account_test.rb
|
216
217
|
- test/stripe/bitcoin_receiver_test.rb
|
217
218
|
- test/stripe/bitcoin_transaction_test.rb
|
218
219
|
- test/stripe/charge_refund_test.rb
|
@@ -268,6 +269,7 @@ test_files:
|
|
268
269
|
- test/stripe/application_fee_refund_test.rb
|
269
270
|
- test/stripe/application_fee_test.rb
|
270
271
|
- test/stripe/balance_test.rb
|
272
|
+
- test/stripe/bank_account_test.rb
|
271
273
|
- test/stripe/bitcoin_receiver_test.rb
|
272
274
|
- test/stripe/bitcoin_transaction_test.rb
|
273
275
|
- test/stripe/charge_refund_test.rb
|