zen-plaid 0.0.4 → 0.0.5

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: 7466de3ec3de0ec3eae7611456e501aa1b6b7ba5
4
- data.tar.gz: 8904f2e22052dacf91a218c863686fba5d451f04
3
+ metadata.gz: bce2ac4a825cd8091784a5ffce33c12e64bb10ea
4
+ data.tar.gz: 08b9c3bc439ae3b53366f3cff31b6de9cf832bb6
5
5
  SHA512:
6
- metadata.gz: 93836330fc75683566049ff32cb61be6e42173b9e6588b85bc57ba27fb456e0952a1162b87ee82d253c3b16a46aa1041bb72da7f6c306ba52d065a7f177736e5
7
- data.tar.gz: 44dcc10f7748a37617278e599cc99762c9264d05a6588bd3b7e89212078e55164721b7476158c24395178d79d6a464cefb49e46ec4e8675d27a7025b9118c15f
6
+ metadata.gz: 08128e41cdf1f2d042459c28fc71ac0a6f692f56543ce011ed0f014b5881ef2fd3ad68e05d6bbbd2bc444e5e70476e867e278dab4cbce7743581281129be57f1
7
+ data.tar.gz: c3bb6fb7579bd0176bae3c86f4f076e9d759d58cab167b94c6fdfb61dec1779fdd6ac6a5f5cceab5bcca70ffbd3205adac2461a56e4100dd42bd31621ba47ca9
@@ -1,7 +1,7 @@
1
1
  module Plaid
2
2
  class Auth
3
3
  def self.add(params)
4
- Plaid.request(:post, '/auth', Plaid::Util.credentials_params(params))
4
+ Plaid.request(:post, 'auth', Plaid::Util.credentials_params(params))
5
5
  end
6
6
  end
7
7
  end
@@ -1,7 +1,7 @@
1
1
  module Plaid
2
2
  class Balance
3
3
  def self.get(access_token)
4
- Plaid.request(:post, '/balance/', {access_token: access_token} )
4
+ Plaid.request(:post, 'balance', {access_token: access_token} )
5
5
  end
6
6
  end
7
7
  end
@@ -1,11 +1,11 @@
1
1
  module Plaid
2
2
  class Category
3
3
  def self.all
4
- Plaid.request(:get, '/categories')[:message]
4
+ Plaid.request(:get, 'categories')[:message]
5
5
  end
6
6
 
7
7
  def self.find(id)
8
- Plaid.request(:get, '/categories/' + id )[:message]
8
+ Plaid.request(:get, 'categories/' + id )[:message]
9
9
  end
10
10
  end
11
11
  end
@@ -1,15 +1,15 @@
1
1
  module Plaid
2
2
  class Connect
3
3
  def self.get(params)
4
- Plaid.request(:post, '/connect/get', params)
4
+ Plaid.request(:post, 'connect/get', params)
5
5
  end
6
6
 
7
7
  def self.add(params)
8
- Plaid.request(:post, '/connect', Plaid::Util.credentials_params(params))
8
+ Plaid.request(:post, 'connect', Plaid::Util.credentials_params(params))
9
9
  end
10
10
 
11
11
  def self.mfa_step(params)
12
- Plaid.request(:post, '/connect/step', params)
12
+ Plaid.request(:post, 'connect/step', params)
13
13
  end
14
14
  end
15
15
  end
@@ -1,7 +1,7 @@
1
1
  module Plaid
2
2
  class Entity
3
3
  def self.find(id)
4
- Plaid.request(:get, '/entities/' + id )[:message]
4
+ Plaid.request(:get, 'entities/' + id )[:message]
5
5
  end
6
6
  end
7
7
  end
@@ -1,11 +1,11 @@
1
1
  module Plaid
2
2
  class Institution
3
3
  def self.all
4
- Plaid.request(:get, '/institutions')[:message]
4
+ Plaid.request(:get, 'institutions')[:message]
5
5
  end
6
6
 
7
7
  def self.find(id)
8
- Plaid.request(:get, '/institutions/' + id )[:message]
8
+ Plaid.request(:get, 'institutions/' + id )[:message]
9
9
  end
10
10
  end
11
11
  end
@@ -1,3 +1,3 @@
1
1
  module Plaid
2
- VERSION = '0.0.4'
2
+ VERSION = '0.0.5'
3
3
  end
data/lib/zen-plaid.rb CHANGED
@@ -68,7 +68,7 @@ module Plaid
68
68
 
69
69
  begin
70
70
  response = RestClient::Request.execute(request_opts)
71
- log_message = Oj.dump(request_opts.merge!({response: response}))
71
+ log_message = Oj.dump(request_opts.merge!({response: response, response_code: response.code}))
72
72
  Plaid.configuration.logger.info log_message
73
73
  return {code: response.code, message: parse(response)}
74
74
  rescue RestClient::ExceptionWithResponse => e
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zen-plaid
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sean McCann