synapse_payments 0.1.0 → 0.1.1
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/user_client.rb +2 -2
- data/lib/synapse_payments/version.rb +1 -1
- data/samples.md +12 -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: fcd5b060c257d3ad6da517c88bfab653fac778bb
|
4
|
+
data.tar.gz: 2eaef38ba1b1f7bf62267de5a6edaa971c1d663e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dc5b15562cf095f770dd658d89e931292868bc82cddf5b77db15180e184c26e25f82cc6f33d5c2827773786e1a7e2026d80939be619c2fdf933bc598f53ae9d3
|
7
|
+
data.tar.gz: 4a68d4e459b4d6d4ba14521c0e2e42fd0d2419ffc86d89796cf8da9b8186bd8c7c48ff12eb7506eb7ce99b42a6f600efb5c613272f8bda372b2beea0e673aef1
|
@@ -89,8 +89,8 @@ module SynapsePayments
|
|
89
89
|
nodes.create(data)
|
90
90
|
end
|
91
91
|
|
92
|
-
def send_money(from:, to:, to_node_type:, amount:, currency:, ip_address
|
93
|
-
nodes(from).transactions.create(node_id: to, node_type: to_node_type, amount: amount, currency: currency, ip_address: ip_address)
|
92
|
+
def send_money(from:, to:, to_node_type:, amount:, currency:, ip_address:, **args)
|
93
|
+
nodes(from).transactions.create(node_id: to, node_type: to_node_type, amount: amount, currency: currency, ip_address: ip_address, **args)
|
94
94
|
end
|
95
95
|
|
96
96
|
def nodes(id=nil)
|
data/samples.md
CHANGED
@@ -56,7 +56,19 @@ response = client.users.find(id)
|
|
56
56
|
|
57
57
|
user_client = client.users.authenticate_as(id: id, refresh_token: response[:refresh_token])
|
58
58
|
|
59
|
+
user_client.refresh_token
|
60
|
+
# => "refresh-459..."
|
61
|
+
|
62
|
+
user_client.expires_in
|
63
|
+
# => "7200"
|
64
|
+
|
59
65
|
user = user_client.user # returns user representation
|
66
|
+
|
67
|
+
user[:_id]
|
68
|
+
# => "93f1..."
|
69
|
+
|
70
|
+
user[:legal_names]
|
71
|
+
# => ["Javier Julio"]
|
60
72
|
```
|
61
73
|
|
62
74
|
#### Update a user
|
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.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Javier Julio
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-11-
|
11
|
+
date: 2015-11-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|