finapps 0.2.10.pre → 0.2.11.pre
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/finapps/rest/institutions.rb +2 -4
- data/lib/finapps/rest/transactions.rb +2 -10
- data/lib/finapps/rest/user_institutions.rb +2 -6
- data/lib/finapps/rest/users.rb +2 -0
- data/lib/finapps/version.rb +1 -1
- data/lib/finapps.rb +0 -1
- metadata +1 -2
- data/lib/finapps/rest/accounts.rb +0 -48
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dc67fec2dafda8e110c538c100028a84cb243487
|
4
|
+
data.tar.gz: 6b70d7cbfa63b83e3963842512e5fe579f21d12e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 72e30d815470ef0447c0438dddba9f5b80c46c58f168048b4a6355f8f848a539f6c205c58bc38e5c7e6bd6a8edc07f9612df1a5949cb38d89bd986b2859dd689
|
7
|
+
data.tar.gz: bb650948d56b2507d13d96731d098d09192e8a228cae4e277d74225c5628ea7d70707bc655a16b7417ed8039e1c1f30ffc003af21bb511be2a68dc7b6e5f2fb7
|
@@ -20,9 +20,7 @@ module FinApps
|
|
20
20
|
path = end_point.sub ':search_term', ERB::Util.url_encode(term)
|
21
21
|
logger.debug "##{__method__.to_s} => path: #{path}"
|
22
22
|
|
23
|
-
institutions, error_messages = @client.send(path, :get)
|
24
|
-
r.body.each { |i| Institution.new(i) }
|
25
|
-
end
|
23
|
+
institutions, error_messages = @client.send(path, :get)
|
26
24
|
|
27
25
|
logger.debug "##{__method__.to_s} => Completed"
|
28
26
|
return institutions, error_messages
|
@@ -50,7 +48,7 @@ module FinApps
|
|
50
48
|
end
|
51
49
|
|
52
50
|
class Institution < FinApps::REST::Resource
|
53
|
-
attr_accessor :
|
51
|
+
attr_accessor :login_form_html
|
54
52
|
end
|
55
53
|
|
56
54
|
end
|
@@ -1,8 +1,6 @@
|
|
1
1
|
module FinApps
|
2
2
|
module REST
|
3
3
|
|
4
|
-
require 'erb'
|
5
|
-
|
6
4
|
class Transactions < FinApps::REST::Resources
|
7
5
|
include FinApps::REST::Defaults
|
8
6
|
|
@@ -12,11 +10,10 @@ module FinApps
|
|
12
10
|
logger.debug "##{__method__.to_s} => Started"
|
13
11
|
|
14
12
|
path = Defaults::END_POINTS[:transactions_search]
|
13
|
+
|
15
14
|
logger.debug "##{__method__.to_s} => path: #{path}"
|
16
15
|
|
17
|
-
transactions, error_messages = @client.send(path, :post, params.compact)
|
18
|
-
r.body.transactions.each { |i| Transaction.new(i) }
|
19
|
-
end
|
16
|
+
transactions, error_messages = @client.send(path, :post, params.compact)
|
20
17
|
|
21
18
|
logger.debug "##{__method__.to_s} => Completed"
|
22
19
|
return transactions, error_messages
|
@@ -24,10 +21,5 @@ module FinApps
|
|
24
21
|
|
25
22
|
end
|
26
23
|
|
27
|
-
class Transaction < FinApps::REST::Resource
|
28
|
-
attr_accessor :_id, :account_id, :date, :transaction_date, :description, :amount,
|
29
|
-
:type, :status, :keyword, :merchant_name, :categories, :tags
|
30
|
-
end
|
31
|
-
|
32
24
|
end
|
33
25
|
end
|
@@ -12,9 +12,7 @@ module FinApps
|
|
12
12
|
path = Defaults::END_POINTS[:user_institutions_list]
|
13
13
|
logger.debug "##{__method__.to_s} => path: #{path}"
|
14
14
|
|
15
|
-
user_institutions, error_messages = @client.send(path, :get)
|
16
|
-
r.body.each { |i| UserInstitution.new(i) }
|
17
|
-
end
|
15
|
+
user_institutions, error_messages = @client.send(path, :get)
|
18
16
|
|
19
17
|
logger.debug "##{__method__.to_s} => Completed"
|
20
18
|
return user_institutions, error_messages
|
@@ -55,9 +53,7 @@ module FinApps
|
|
55
53
|
path = end_point.sub ':user_institution_id', ERB::Util.url_encode(user_institution_id)
|
56
54
|
logger.debug "##{__method__.to_s} => path: #{path}"
|
57
55
|
|
58
|
-
user_institution, error_messages = @client.send(path, :get)
|
59
|
-
UserInstitution.new(r.body)
|
60
|
-
end
|
56
|
+
user_institution, error_messages = @client.send(path, :get)
|
61
57
|
|
62
58
|
logger.debug "##{__method__.to_s} => Completed"
|
63
59
|
return user_institution, error_messages
|
data/lib/finapps/rest/users.rb
CHANGED
data/lib/finapps/version.rb
CHANGED
data/lib/finapps.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: finapps
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.11.pre
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Erich Quintero
|
@@ -197,7 +197,6 @@ files:
|
|
197
197
|
- lib/finapps/middleware/api_token.rb
|
198
198
|
- lib/finapps/middleware/raise_http_exceptions.rb
|
199
199
|
- lib/finapps/middleware/response_logger.rb
|
200
|
-
- lib/finapps/rest/accounts.rb
|
201
200
|
- lib/finapps/rest/client.rb
|
202
201
|
- lib/finapps/rest/connection.rb
|
203
202
|
- lib/finapps/rest/defaults.rb
|
@@ -1,48 +0,0 @@
|
|
1
|
-
module FinApps
|
2
|
-
module REST
|
3
|
-
|
4
|
-
class Accounts < FinApps::REST::Resources
|
5
|
-
include FinApps::REST::Defaults
|
6
|
-
|
7
|
-
def show(account_id)
|
8
|
-
logger.debug "##{__method__.to_s} => Started"
|
9
|
-
|
10
|
-
raise MissingArgumentsError.new 'Missing argument: account_id.' if account_id.blank?
|
11
|
-
logger.debug "##{__method__.to_s} => site_id: #{site_id}"
|
12
|
-
|
13
|
-
end_point = Defaults::END_POINTS[:accounts_show]
|
14
|
-
logger.debug "##{__method__.to_s} => end_point: #{end_point}"
|
15
|
-
|
16
|
-
path = end_point.sub ':account_id', ERB::Util.url_encode(account_id)
|
17
|
-
logger.debug "##{__method__.to_s} => path: #{path}"
|
18
|
-
|
19
|
-
account, error_messages = @client.send(path, :get) do |r|
|
20
|
-
Account.new(r.body)
|
21
|
-
end
|
22
|
-
|
23
|
-
logger.debug "##{__method__.to_s} => Completed"
|
24
|
-
return account, error_messages
|
25
|
-
end
|
26
|
-
|
27
|
-
end
|
28
|
-
|
29
|
-
class Account < FinApps::REST::Resource
|
30
|
-
attr_accessor :_id, :account_type, :account_name, :account_holder, :account_display_name, :details
|
31
|
-
|
32
|
-
def initialize(hash)
|
33
|
-
super
|
34
|
-
@details = AccountDetails.new hash[:details]
|
35
|
-
end
|
36
|
-
end
|
37
|
-
|
38
|
-
class AccountDetails < FinApps::REST::Resource
|
39
|
-
attr_accessor :available_balance, :current_balance, :routing_number,
|
40
|
-
:min_payment, :account_close_date, :account_number, :account_open_date,
|
41
|
-
:account_type, :amount_due, :apr, :as_of_date,
|
42
|
-
:available_credit, :available_cash, :card_type, :cash_apr,
|
43
|
-
:due_date, :last_payment, :last_payment_date, :new_charges, :payments, :pending_charges,
|
44
|
-
:running_balance, :total_cash_limit, :total_credit_line
|
45
|
-
end
|
46
|
-
|
47
|
-
end
|
48
|
-
end
|