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 +4 -4
- data/Gemfile.lock +9 -1
- data/lib/synapse_pay_rest/http_client.rb +0 -2
- data/lib/synapse_pay_rest/models/node/base_node.rb +8 -1
- data/lib/synapse_pay_rest/models/user/base_document.rb +1 -0
- data/lib/synapse_pay_rest/models/user/virtual_document.rb +1 -0
- data/lib/synapse_pay_rest/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2917b1bf6fcbc242ae675356583c24b0e955b322
|
4
|
+
data.tar.gz: 42c6425c2d7f7db9e2d77634a3a061acb77b84b0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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']
|
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.
|
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
|
12
|
+
date: 2016-11-10 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rest-client
|