finapps 0.21.0.pre → 0.21.2.pre
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/finapps/rest/defaults.rb +2 -0
- data/lib/finapps/rest/transactions.rb +1 -1
- data/lib/finapps/rest/user_institutions.rb +20 -0
- data/lib/finapps/rest/users.rb +12 -0
- data/lib/finapps/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 20484b35c1ab1c7e48a777531a3d2527ef314b35
|
4
|
+
data.tar.gz: 1532b83f545091a87d9b879feb2d43d70b3ee4d2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 198c2f088548e80961519662a9f2156f114ef4ca70a61c9ec21e3596c975015d2406d20eedfa9e060dca928afe6bfa701aad7c6ac28de13452d8c575a79b5bee
|
7
|
+
data.tar.gz: dd048f2b39e7c732de627df926974ce8864aa1ca88d7a47545fb7694176f9a8cbfcdf8c085f6aa03b5849df8ea4df318eac6d6263972dd966f7c3fe413bcda3b
|
@@ -24,6 +24,7 @@ module FinApps
|
|
24
24
|
|
25
25
|
END_POINTS = {
|
26
26
|
:users_create => 'users/new',
|
27
|
+
:users_update => 'user',
|
27
28
|
:users_delete => 'users/:public_id',
|
28
29
|
:users_login => 'users/login',
|
29
30
|
|
@@ -38,6 +39,7 @@ module FinApps
|
|
38
39
|
:user_institutions_add => 'institutions/:site_id/add',
|
39
40
|
:user_institutions_show => 'institutions/user/:user_institution_id',
|
40
41
|
:user_institutions_update => 'institutions/user/:user_institution_id/credentials',
|
42
|
+
:user_institutions_delete => 'institutions/user/:user_institution_id',
|
41
43
|
:user_institutions_status => 'institutions/user/:user_institution_id/status',
|
42
44
|
:user_institutions_mfa => 'institutions/user/:user_institution_id/mfa',
|
43
45
|
:user_institutions_refresh => 'institutions/user/refresh',
|
@@ -40,7 +40,7 @@ module FinApps
|
|
40
40
|
def update(params={})
|
41
41
|
logger.debug "##{__method__.to_s} => Started"
|
42
42
|
|
43
|
-
path = Defaults::END_POINTS[:
|
43
|
+
path = Defaults::END_POINTS[:users_update]
|
44
44
|
logger.debug "##{__method__.to_s} => path: #{path}"
|
45
45
|
|
46
46
|
_, error_messages = @client.send(path, :put, params.compact)
|
@@ -146,6 +146,26 @@ module FinApps
|
|
146
146
|
logger.debug "##{__method__.to_s} => Completed"
|
147
147
|
return user_institutions, error_messages
|
148
148
|
end
|
149
|
+
|
150
|
+
# @return [Hash, Array<String>]
|
151
|
+
def delete(user_institution_id)
|
152
|
+
logger.debug "##{__method__.to_s} => Started"
|
153
|
+
|
154
|
+
raise MissingArgumentsError.new 'Missing argument: user_institution_id.' if user_institution_id.blank?
|
155
|
+
logger.debug "##{__method__.to_s} => user_institution_id: #{user_institution_id.inspect}"
|
156
|
+
|
157
|
+
end_point = Defaults::END_POINTS[:user_institutions_delete]
|
158
|
+
logger.debug "##{__method__.to_s} => end_point: #{end_point}"
|
159
|
+
|
160
|
+
path = end_point.sub ':user_institution_id', ERB::Util.url_encode(user_institution_id)
|
161
|
+
logger.debug "##{__method__.to_s} => path: #{path}"
|
162
|
+
|
163
|
+
_, error_messages = @client.send(path, :delete)
|
164
|
+
|
165
|
+
logger.debug "##{__method__.to_s} => Completed"
|
166
|
+
error_messages
|
167
|
+
end
|
168
|
+
|
149
169
|
end
|
150
170
|
|
151
171
|
end
|
data/lib/finapps/rest/users.rb
CHANGED
@@ -23,6 +23,18 @@ module FinApps
|
|
23
23
|
return user, error_messages
|
24
24
|
end
|
25
25
|
|
26
|
+
def update(params = {})
|
27
|
+
logger.debug "##{__method__.to_s} => Started"
|
28
|
+
|
29
|
+
path = Defaults::END_POINTS[:transactions_update]
|
30
|
+
logger.debug "##{__method__.to_s} => path: #{path}"
|
31
|
+
|
32
|
+
_, error_messages = @client.send(path, :put, params.compact)
|
33
|
+
|
34
|
+
logger.debug "##{__method__.to_s} => Completed"
|
35
|
+
error_messages
|
36
|
+
end
|
37
|
+
|
26
38
|
# @param [Hash] params
|
27
39
|
# @return [FinApps::REST::User, Array<String>]
|
28
40
|
def login(params = {})
|
data/lib/finapps/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: finapps
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.21.
|
4
|
+
version: 0.21.2.pre
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Erich Quintero
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-08-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|
@@ -251,7 +251,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
251
251
|
version: 1.3.1
|
252
252
|
requirements: []
|
253
253
|
rubyforge_project:
|
254
|
-
rubygems_version: 2.
|
254
|
+
rubygems_version: 2.2.2
|
255
255
|
signing_key:
|
256
256
|
specification_version: 4
|
257
257
|
summary: FinApps REST API ruby client.
|