figo 1.2.3 → 1.2.4
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 +8 -8
- data/figo.gemspec +1 -1
- data/lib/models.rb +4 -0
- data/web_demo/app.rb +0 -2
- data/web_demo/views/index.erb +35 -39
- data/web_demo/views/layout.erb +10 -12
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
Y2ExYzgxM2NiZDUxNGU3ZTc2MmViZTA0NzVkMDIzYmRiYzg3NDYxYg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NDQyMDNmNTFhNGVmOWIwMWMwYTkzODUzZmVmNjcwZjc2ZWYyMWI3Nw==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MjAyMjE0ZGUzNDhmOGU5YmQxYTA2MTFhMTA2NmIzZDA4M2E0Y2Q5MjNmZmFl
|
10
|
+
ZThmNzRhNWUyM2I1N2Q1ZTk0ZmQ2NGY3OTQyOWMxOTUzZGE1MmFhODZlMDQx
|
11
|
+
YTE4NTlhMmRjZDE4ZmI5MmRjMWJlMTQ2MjMwYjFhYjhkNDk4NWY=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MDZiZGViN2Y5OTc3NjdmMTc1MDJkY2EyZmFjNWY5MWMzYTg0NGM3NzI2MWJi
|
14
|
+
YzY5MWE3OGMzNzYzMzA4MGE0OWRhZTY3NzNmMGYxZDlmNjQ5ZDI4NTFmZmY5
|
15
|
+
OWM4ZTAyZjgxNDg5OTliNjBiYzdjYTUyNmIyZWQzMjE2NjYyZTQ=
|
data/figo.gemspec
CHANGED
data/lib/models.rb
CHANGED
@@ -271,6 +271,10 @@ module Figo
|
|
271
271
|
class Bank < Base
|
272
272
|
@dump_attributes = [:sepa_creditor_id]
|
273
273
|
|
274
|
+
# Internal figo Connect bank ID
|
275
|
+
# @return [String]
|
276
|
+
attr_accessor :bank_id
|
277
|
+
|
274
278
|
# SEPA direct debit creditor ID
|
275
279
|
# @return [String]
|
276
280
|
attr_accessor :sepa_creditor_id
|
data/web_demo/app.rb
CHANGED
@@ -13,7 +13,6 @@ end
|
|
13
13
|
|
14
14
|
get '/callback*' do
|
15
15
|
if params['state'] != "qweqwe"
|
16
|
-
logger.info "qwe"
|
17
16
|
raise Exception.new("Bogus redirect, wrong state")
|
18
17
|
end
|
19
18
|
|
@@ -29,7 +28,6 @@ get '/logout' do
|
|
29
28
|
end
|
30
29
|
|
31
30
|
before '/' do
|
32
|
-
logger.info request.path_info
|
33
31
|
unless session[:figo_token] or request.path_info == "/callback" then
|
34
32
|
redirect to(connection.login_url("qweqwe", "accounts=ro transactions=ro balance=ro user=ro"))
|
35
33
|
end
|
data/web_demo/views/index.erb
CHANGED
@@ -1,41 +1,37 @@
|
|
1
|
-
<
|
2
|
-
<h1><%= @current_account.nil? ? "Unified Inbox" : @current_account.name %></h1>
|
1
|
+
<h1><%= @current_account.nil? ? "Unified Inbox" : @current_account.name %></h1>
|
3
2
|
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
3
|
+
<% if @current_account %>
|
4
|
+
<div class="panel panel-default">
|
5
|
+
<div class="panel-heading">Account Details</div>
|
6
|
+
<div class="panel-body">
|
7
|
+
<ul class="list-group">
|
8
|
+
<li class="list-group-item">Owner: <%= @current_account.owner %></li>
|
9
|
+
<li class="list-group-item">Account Number: <%= @current_account.account_number %></li>
|
10
|
+
<li class="list-group-item">Bank Code: <%= @current_account.bank_code %></li>
|
11
|
+
<li class="list-group-item">IBAN: <%= @current_account.iban %></li>
|
12
|
+
<li class="list-group-item">Balance: <%= @current_account.balance.balance %> <%= @current_account.currency %></li>
|
13
|
+
</ul>
|
14
|
+
</div>
|
15
|
+
</div>
|
16
|
+
<% end %>
|
18
17
|
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
</tbody>
|
40
|
-
</table>
|
41
|
-
</div>
|
18
|
+
<table class="table table-hover table-condensed">
|
19
|
+
<thead><tr>
|
20
|
+
<th>Date</th>
|
21
|
+
<th>Name</th>
|
22
|
+
<th>Account Number</th>
|
23
|
+
<th>Purpose</th>
|
24
|
+
<th style="text-align: right;">Amount</th>
|
25
|
+
</tr></thead>
|
26
|
+
<tbody>
|
27
|
+
<% @transactions.each do |transaction| %>
|
28
|
+
<tr>
|
29
|
+
<td><%= transaction.value_date %></td>
|
30
|
+
<td><%= transaction.name %></td>
|
31
|
+
<td><%= transaction.account_number %></td>
|
32
|
+
<td><%= transaction.purpose %></td>
|
33
|
+
<td style="text-align: right; <% if transaction.amount < 0 %>color: red;<% end %>"><%= transaction.amount %></td>
|
34
|
+
</tr>
|
35
|
+
<% end %>
|
36
|
+
</tbody>
|
37
|
+
</table>
|
data/web_demo/views/layout.erb
CHANGED
@@ -19,8 +19,8 @@
|
|
19
19
|
|
20
20
|
</head>
|
21
21
|
<body>
|
22
|
-
<div class="
|
23
|
-
<div class="
|
22
|
+
<div class="navbar navbar-inverse navbar-fixed-top" role="navigation">
|
23
|
+
<div class="container-fluid">
|
24
24
|
<div class="navbar-header">
|
25
25
|
<a class="navbar-brand" href="/">figo web banking</a>
|
26
26
|
</div>
|
@@ -34,16 +34,14 @@
|
|
34
34
|
<p class="navbar-text navbar-right">Signed in as <a href="/logout" class="navbar-link"><%= @user.email %></a></p>
|
35
35
|
</div><!--/.nav-collapse -->
|
36
36
|
</div>
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
</div>
|
46
|
-
|
37
|
+
</div>
|
38
|
+
|
39
|
+
<div class="container-fluid" role="main">
|
40
|
+
<%if @error then %>
|
41
|
+
<div class="alert alert-error"><%=@error%></div>
|
42
|
+
<% end %>
|
43
|
+
<%= yield %>
|
44
|
+
</div>
|
47
45
|
|
48
46
|
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
|
49
47
|
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: figo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stefan Richter
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-07-
|
11
|
+
date: 2014-07-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: flt
|