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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e4c1d872b18b79d0ec209a972048146597f8c79d
4
- data.tar.gz: 7205bac033861e4147d7251a6e9f04deb63b8157
3
+ metadata.gz: 2f453d3a4fc749d1a6b5bef7ab97b16af1cb6d4f
4
+ data.tar.gz: 7b6415fbad60f0165f400a1a823fc175ed0a625e
5
5
  SHA512:
6
- metadata.gz: 3c1cb20b7aab8374bec99867e6d30be51902d5dca67e1f670d93dbcc93fb5a44151cdeae66255e3fbe9d94e51c9995d50a99e16a9c4e3293fe5228f46b3b6d9d
7
- data.tar.gz: ee7f97cf5b68c4c5cdb6e474fa73e006c3b84c957470631fb7c1c8629a6c4f96db674097ffe2ae0d378d17804f73b78436c2100f3ab51f40b4aa48b2f585f2d7
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
@@ -1,3 +1,3 @@
1
1
  module SynapsePayments
2
- VERSION = "0.7.0"
2
+ VERSION = "0.8.0"
3
3
  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.7.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 00:00:00.000000000 Z
11
+ date: 2016-02-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler