stripe 1.30.3 → 1.31.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 57a7cdc2de64371c76c7f0a74cc2b179819a6589
4
- data.tar.gz: 3d3f0155191a28d7cda3ae40f9551880d0c63f73
3
+ metadata.gz: fa445bd78b07bd208f1b693f173ac8f554e3f9a0
4
+ data.tar.gz: c4f1334cf81a71e6ffbf8c2b87b1f6bb53e3c953
5
5
  SHA512:
6
- metadata.gz: 57b53ee9cce83fa1bd0a8e78b548594239799e46a1105dbda7d67d33302b7578bbc33280416f78058bc112808a49ea3a57e7e0fd42104fb331b82383832158a7
7
- data.tar.gz: 804c78f9c635f021c6e8dec7c1c78a16c9ddf4b43ac81f60782ecec1c247bacd6bd9fd21a6b5b563eb12f815ee5d96b0b16fbe6ecaf8e31251a74a67e3290997
6
+ metadata.gz: 95423d6dd94213f236d462fa0764bfa88cadc1a490ad89749fb0bdf78622e6c78a9523e35ca74a8c27e3be9e980a67d39c90e473219176e21a4f0970008edcce
7
+ data.tar.gz: 9fae58a91cad0929d902ba5c34e782260cfc998a708c20299d69f864fb09941b063ede335cbe455b03fd1c43bb45ca5d12dbcbd0b13f44887c16b3c63bb4a575
data/History.txt CHANGED
@@ -1,3 +1,7 @@
1
+ === 1.31.0 2015-10-29
2
+
3
+ * Add BankAccount#verify convenience method
4
+
1
5
  === 1.30.3 2015-10-28
2
6
 
3
7
  * Fix bug where arrays that were not `additional_owners` were not properly encoded for requests
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.30.3
1
+ 1.31.0
@@ -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)}"
@@ -1,3 +1,3 @@
1
1
  module Stripe
2
- VERSION = '1.30.3'
2
+ VERSION = '1.31.0'
3
3
  end
@@ -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.30.3
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-28 00:00:00.000000000 Z
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