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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ddd2a41ccc17df99fb5fe4db0ac880ab279c7435
4
- data.tar.gz: 7af2509dd87a509263c946d4f18ca892f903af49
3
+ metadata.gz: fcd5b060c257d3ad6da517c88bfab653fac778bb
4
+ data.tar.gz: 2eaef38ba1b1f7bf62267de5a6edaa971c1d663e
5
5
  SHA512:
6
- metadata.gz: 518d596a730d075ba628eb364df903adbb906ea641588ec814d6cddc16b20998825ae065f98d9683a23b57e72e39e00648644dbfa35bb1b59ec44888a598424c
7
- data.tar.gz: b16a8975143fbe27fac7538210432c76e1390218bc7897f1078db858ee8f3ad6fef26ca34eed1c1e4fc5767b7ac8a0c8035259c4960303ae67ec0786e1efd573
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)
@@ -1,3 +1,3 @@
1
1
  module SynapsePayments
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
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.0
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-16 00:00:00.000000000 Z
11
+ date: 2015-11-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler