synapse_payments 0.7.0 → 0.8.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/synapse_payments/nodes.rb +4 -0
- data/lib/synapse_payments/version.rb +1 -1
- data/samples.md +10 -0
- 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: 2f453d3a4fc749d1a6b5bef7ab97b16af1cb6d4f
|
4
|
+
data.tar.gz: 7b6415fbad60f0165f400a1a823fc175ed0a625e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e58b19070bf47332c270b689d7177f86b33fe7aa099e352ad84dd035e728210565d78fcbcf3f945b257fefdadd0bb83aed3d6b3a73855493f78fa88975f302fd
|
7
|
+
data.tar.gz: 1618926cbc04c728355db352f9ff8f8b0446d47e05982f7a02ba65859047c8c0a7cbc0c2359f265b2241d8897c41ce2c11aa9931fdbf5db773131429b25d96d7
|
@@ -24,6 +24,10 @@ module SynapsePayments
|
|
24
24
|
@client.delete(path: "/users/#{@user_id}/nodes/#{id}", oauth_key: @oauth_key, fingerprint: @fingerprint)
|
25
25
|
end
|
26
26
|
|
27
|
+
def update(id, data)
|
28
|
+
@client.patch(path: "/users/#{@user_id}/nodes/#{id}", oauth_key: @oauth_key, fingerprint: @fingerprint, json: data)
|
29
|
+
end
|
30
|
+
|
27
31
|
end
|
28
32
|
|
29
33
|
end
|
data/samples.md
CHANGED
@@ -156,6 +156,16 @@ response = user_client.add_bank_account(
|
|
156
156
|
)
|
157
157
|
```
|
158
158
|
|
159
|
+
#### Verify Micro Deposits
|
160
|
+
|
161
|
+
In the response, check the permission to determine if micro deposit verification was successful.
|
162
|
+
|
163
|
+
```ruby
|
164
|
+
response = user_client.nodes.update(node_id, micro: [0.1, 0.3])
|
165
|
+
```
|
166
|
+
|
167
|
+
Note that you have several attempts to verify correct micro deposits but if out of attempts then the node is locked.
|
168
|
+
|
159
169
|
#### Bank account login
|
160
170
|
|
161
171
|
The following could return a list of nodes (bank accounts) or MFA question.
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: synapse_payments
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.8.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Javier Julio
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-02-
|
11
|
+
date: 2016-02-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|