lob 1.9.1 → 1.9.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a6b34d9959bf594d671a838b468e268e571997a8
4
- data.tar.gz: b7be3316bac82cf00da38b809dfe4f59a54d0f3a
3
+ metadata.gz: cdc58b192a30897179b9f0b8b2229115e3e26b94
4
+ data.tar.gz: ce6dbe15de20924629d3390ebbcb388c51f6001a
5
5
  SHA512:
6
- metadata.gz: 6c3c73b4420e445290c1b6e88848b54b7497fb174e7bcfe31d34e37945471862951c85f96aa7f787b2203ae64d426e75bf507ed3dd8a1b54366d7bdf73124837
7
- data.tar.gz: 8cc569fa5a1a41b0bc6497059cf1731647028a422573545209b1072e1a2619e0657305f260a9f61c1edea1077be2e20899670bc5d8b99d5f6247efb214b4f051
6
+ metadata.gz: 86a27b72507cf64f2eca79f6d75708304108ddda1b0601138111fa7c058ec6829e44c2255c656bd354d5579f9298cacaaa9243056b9165d26333c90b528412c3
7
+ data.tar.gz: ccec81496d6cf6204274d0b58e6f0c6054d8b9135447eaf2620ff6e44ba4fa3a1fddd8857291a83468ad271cd038eea1f6a70ba2da71cf606088cd3af89e0898
@@ -1,3 +1,6 @@
1
+ ## [**1.9.2**](https://github.com/lob/lob-ruby/releases/tag/v1.9.2)
2
+ - [**#94**] (https://github.com/lob/lob-ruby/pull/94) added bank account verify support
3
+
1
4
  ## [**1.9.1**](https://github.com/lob/lob-ruby/releases/tag/v1.9.1)
2
5
  - [**#92**] (https://github.com/lob/lob-ruby/pull/92) don't fix prawn version
3
6
 
@@ -30,6 +30,10 @@ module Lob
30
30
  Lob.submit :delete, bank_account_url(bank_account_id)
31
31
  end
32
32
 
33
+ def verify(bank_account_id, options = {})
34
+ Lob.submit :post, "#{bank_account_url(bank_account_id)}/verify", options
35
+ end
36
+
33
37
  private
34
38
 
35
39
  def bank_account_url(bank_account_id = nil)
@@ -1,3 +1,3 @@
1
1
  module Lob
2
- VERSION = "1.9.1"
2
+ VERSION = "1.9.2"
3
3
  end
@@ -111,4 +111,21 @@ describe Lob::V1::BankAccount do
111
111
  end
112
112
  end
113
113
  end
114
+
115
+ describe "verify" do
116
+ it "should verify a bank account" do
117
+ VCR.use_cassette('verify_bank_account') do
118
+ new_bank_account = subject.bank_accounts.create(
119
+ routing_number: @sample_bank_account_params[:routing_number],
120
+ bank_address: @sample_address_params.clone,
121
+ account_number: @sample_bank_account_params[:account_number],
122
+ account_address: @sample_address_params.clone,
123
+ signatory: "John Doe"
124
+ )
125
+
126
+ verify_result = subject.bank_accounts.verify(new_bank_account["id"], amounts: [12, 34])
127
+ assert_equal(new_bank_account["id"], verify_result["id"])
128
+ end
129
+ end
130
+ end
114
131
  end
@@ -35,6 +35,8 @@ describe Lob::V1::Check do
35
35
  signatory: "John Doe"
36
36
  )
37
37
 
38
+ subject.bank_accounts.verify(new_bank_account["id"], amounts: [1, 2])
39
+
38
40
  new_check = subject.checks.create(
39
41
  bank_account: new_bank_account["id"],
40
42
  to: @sample_address_params,
@@ -61,6 +63,8 @@ describe Lob::V1::Check do
61
63
  signatory: "John Doe"
62
64
  )
63
65
 
66
+ subject.bank_accounts.verify(new_bank_account["id"], amounts: [1, 2])
67
+
64
68
  result = subject.checks.create(
65
69
  bank_account: new_bank_account["id"],
66
70
  to: new_address["id"],
@@ -86,6 +90,8 @@ describe Lob::V1::Check do
86
90
  signatory: "John Doe"
87
91
  )
88
92
 
93
+ subject.bank_accounts.verify(new_bank_account["id"], amounts: [1, 2])
94
+
89
95
  new_check = subject.checks.create(
90
96
  bank_account: new_bank_account["id"],
91
97
  to: new_address["id"],
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lob
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.9.1
4
+ version: 1.9.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lob
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-04-15 00:00:00.000000000 Z
11
+ date: 2015-04-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client