synapse_client 0.2.3 → 0.2.4

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: 98a03c3a76c3f5d2072a6d0304cc17b111aca582
4
- data.tar.gz: 1b2923e7bf0fb2eb67e4ab3d7efb27dc3149e80e
3
+ metadata.gz: a8fd75549bf08d7e0c59b5cbd7b65d48e06e8236
4
+ data.tar.gz: de11a6f196f5f3e941e2c3c85db63308c8549ebb
5
5
  SHA512:
6
- metadata.gz: d76d123e034c97d45f48e28c04f45ea31c0892883dccc6edc6941eeb63ffa27a465f2a3398a29870a1ed59929d9bcf8e33ca504046f3fd13b6c9f763a3a3f9eb
7
- data.tar.gz: cb0e445e8f7a45ed0f17cdbbc0777d876c66015be4db7fa2db2fa501b6b929d38868c8cca5da4fdac7dcc5a4314c72ba070f48bffb2df2afb211b01f7939882d
6
+ metadata.gz: 2d5a41d48848670e496963cc03f33973795a09a242e9347b54bfcc2a2fe71a43d4fd9cbd3dfbf44a7ebe198e1176cc38dbb806a2409819cedad7d187cc101a71
7
+ data.tar.gz: 575692d1cdeade8efbb230003061753a6898e3f909517846e624647a35d7a6b74b62c84488ba4f75e5ea06c6d6a0f76158170feed266ceb44ee30c57dc6607f0
@@ -59,6 +59,13 @@ module SynapseClient
59
59
  response
60
60
  end
61
61
 
62
+ #
63
+ def edit_info(opts={})
64
+ SynapseClient.request(:post, "/api/v2/user/edit", opts.merge({
65
+ :access_token => @access_token
66
+ }))
67
+ end
68
+
62
69
  #
63
70
  def add_kyc_info(opts={})
64
71
  response = SynapseClient.request(:post, "/api/v2/user/ssn/add", opts.merge({
@@ -1,3 +1,3 @@
1
1
  module SynapseClient
2
- VERSION = "0.2.3"
2
+ VERSION = "0.2.4"
3
3
  end
@@ -64,6 +64,22 @@ describe SynapseClient::Customer do
64
64
  end
65
65
  end
66
66
 
67
+ describe "editing a customer" do
68
+ it "should successfully update a user's info" do
69
+
70
+ customer = SynapseClient::Customer.retrieve(@customer.access_token, @customer.refresh_token)
71
+
72
+ expect(customer).to be_a SynapseClient::Customer
73
+
74
+ new_pass = "changeme"
75
+
76
+ response = customer.edit_info(new_password: new_pass)
77
+
78
+ expect(response.success).to eq true
79
+ expect(response.data.user.email).to eq customer.email
80
+ end
81
+ end
82
+
67
83
  describe "refreshing and retrieving customer" do
68
84
  it "should successfully get new oauth consumer key, refresh token, and expires in." do
69
85
  customer = SynapseClient::Customer.retrieve(@customer.access_token, @customer.refresh_token)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: synapse_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Miles Matthias
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-07-27 00:00:00.000000000 Z
11
+ date: 2015-10-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client