synapse_pay_rest 2.0.1 → 2.0.2

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: fb7905adedbbeb18e542ef88dff8d72a1b5072dc
4
- data.tar.gz: d7e976423d514b2b5f7cb9a300fd5901baa29f45
3
+ metadata.gz: 2917b1bf6fcbc242ae675356583c24b0e955b322
4
+ data.tar.gz: 42c6425c2d7f7db9e2d77634a3a061acb77b84b0
5
5
  SHA512:
6
- metadata.gz: e1fd43d9e9a648d8ebb5357a72776f45ef6ee9422a7f44d5c1c8f9530692ee323041c6e5393219b5dbb4cc8d7053053f05201ab38643f7f9ab8a3e99e6657fad
7
- data.tar.gz: c3afac3d82a96cea9873c5e0e41abf8963c3a8d5821844e39d340816a26cae9dffb0a4c1c74c3ee0cb548147302624c09b16731a711fe0e7c5e3d4fd3bf1df8a
6
+ metadata.gz: fee11b10a3b18642ad718684796c2f29ba5d33b453f0e4e1bc5ad22bcc8b443220bf0eabf6edc9bb5c6d9265ad935e82932092af243d6c92e7565751c66da12e
7
+ data.tar.gz: f2c6a0267dfae1ff7637a25219fcea5b9b5a6a5260f5dd910987d10563363a89cce0633f5cf4c2d45898548210fa6807fb8ec6e9e5e8fe185af0332d92ae5697
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- synapse_pay_rest (2.0)
4
+ synapse_pay_rest (2.0.0)
5
5
  rest-client (~> 2.0)
6
6
 
7
7
  GEM
@@ -9,6 +9,7 @@ GEM
9
9
  specs:
10
10
  ansi (1.5.0)
11
11
  builder (3.2.2)
12
+ docile (1.1.5)
12
13
  domain_name (0.5.20160826)
13
14
  unf (>= 0.0.5, < 1.0.0)
14
15
  dotenv (2.1.1)
@@ -17,6 +18,7 @@ GEM
17
18
  http-cookie (1.0.3)
18
19
  domain_name (~> 0.5)
19
20
  i18n (0.7.0)
21
+ json (1.8.3)
20
22
  mime-types (3.1)
21
23
  mime-types-data (~> 3.2015)
22
24
  mime-types-data (3.2016.0521)
@@ -33,6 +35,11 @@ GEM
33
35
  mime-types (>= 1.16, < 4.0)
34
36
  netrc (~> 0.8)
35
37
  ruby-progressbar (1.7.5)
38
+ simplecov (0.12.0)
39
+ docile (~> 1.1.0)
40
+ json (>= 1.8, < 3)
41
+ simplecov-html (~> 0.10.0)
42
+ simplecov-html (0.10.0)
36
43
  unf (0.1.4)
37
44
  unf_ext
38
45
  unf_ext (0.0.7.2)
@@ -47,6 +54,7 @@ DEPENDENCIES
47
54
  minitest (~> 5.8.2)
48
55
  minitest-reporters (~> 1.1.5)
49
56
  rake (~> 10.0)
57
+ simplecov (~> 0.12.0)
50
58
  synapse_pay_rest!
51
59
 
52
60
  BUNDLED WITH
@@ -62,8 +62,6 @@ module SynapsePayRest
62
62
  # @param ip_address [String,void]
63
63
  #
64
64
  # @return [void]
65
- #
66
- # @todo logic to update user_id doesn't belong here
67
65
  def update_headers(user_id: nil, oauth_key: nil, fingerprint: nil,
68
66
  client_id: nil, client_secret: nil, ip_address: nil)
69
67
  self.user_id = user_id if user_id
@@ -19,7 +19,8 @@ module SynapsePayRest
19
19
  :bank_name, :bank_id, :bank_pw, :account_class, :account_type,
20
20
  :correspondent_routing_number, :correspondent_bank_name,
21
21
  :correspondent_address, :correspondent_swift, :account_id, :balance,
22
- :ifsc, :swift, :bank_long_name, :type, :gateway_restricted
22
+ :ifsc, :swift, :bank_long_name, :type, :gateway_restricted,
23
+ :email_match, :name_match, :phonenumber_match
23
24
 
24
25
  class << self
25
26
  # Creates a new node in the API associated to the provided user and
@@ -98,6 +99,12 @@ module SynapsePayRest
98
99
  args[:correspondent_swift] = response['info']['correspondent_info']['swift']
99
100
  end
100
101
 
102
+ if response['info']['match_info']
103
+ args[:email_match] = response['info']['match_info']['email_match']
104
+ args[:name_match] = response['info']['match_info']['name_match']
105
+ args[:phonenumber_match] = response['info']['match_info']['phonenumber_match']
106
+ end
107
+
101
108
  if response['info']['balance']
102
109
  args[:balance] = response['info']['balance']['amount']
103
110
  args[:currency] = response['info']['balance']['currency']
@@ -173,6 +173,7 @@ module SynapsePayRest
173
173
  user.base_documents.find { |doc| doc.id == id }
174
174
  else
175
175
  # first time submission, assume last doc is updated version of self
176
+ require 'pry';
176
177
  user.base_documents.last
177
178
  end
178
179
  end
@@ -12,6 +12,7 @@ module SynapsePayRest
12
12
  # @note Do not call this method directly.
13
13
  def create_from_response(data)
14
14
  virtual_doc = super(data)
15
+ require 'pry';
15
16
  virtual_doc.add_question_set(data['meta']['question_set']) if data['meta']
16
17
  virtual_doc
17
18
  end
@@ -1,4 +1,4 @@
1
1
  module SynapsePayRest
2
2
  # gem version
3
- VERSION = '2.0.1'.freeze
3
+ VERSION = '2.0.2'.freeze
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: synapse_pay_rest
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.1
4
+ version: 2.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thomas Hipps
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2016-10-18 00:00:00.000000000 Z
12
+ date: 2016-11-10 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rest-client