aggcat 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +10 -3
- data/lib/aggcat.rb +1 -1
- data/lib/aggcat/base.rb +1 -1
- data/lib/aggcat/version.rb +1 -1
- metadata +1 -1
data/README.md
CHANGED
@@ -34,9 +34,13 @@ client = Aggcat::Client.new(
|
|
34
34
|
issuer_id: 'your issuer id',
|
35
35
|
consumer_key: 'your consumer key',
|
36
36
|
consumer_secret: 'your consumer secret',
|
37
|
-
certificate_path: '/path/to/your/certificate/key'
|
37
|
+
certificate_path: '/path/to/your/certificate/key',
|
38
|
+
customer_id: 'scope for all requests'
|
38
39
|
)
|
39
40
|
|
41
|
+
# scope Aggcat client by customer id
|
42
|
+
Aggcat.scope(customer_id)
|
43
|
+
|
40
44
|
# get all supported financial institutions
|
41
45
|
Aggcat.institutions
|
42
46
|
|
@@ -49,6 +53,9 @@ Aggcat.discover_and_add_accounts(14007, username, password)
|
|
49
53
|
# get already aggregated financial account
|
50
54
|
Aggcat.account(account_id)
|
51
55
|
|
56
|
+
# you can set scope inline
|
57
|
+
Aggcat.scope(customer1).account(account_id)
|
58
|
+
|
52
59
|
# get all aggregated accounts
|
53
60
|
Aggcat.accounts
|
54
61
|
|
@@ -58,8 +65,8 @@ Aggcat.delete_account(account_id)
|
|
58
65
|
# get account transactions
|
59
66
|
Aggcat.account_transactions(account_id, start_date, end_date)
|
60
67
|
|
61
|
-
# delete
|
62
|
-
Aggcat.
|
68
|
+
# delete customer for the current scope
|
69
|
+
Aggcat.delete_customer
|
63
70
|
|
64
71
|
```
|
65
72
|
|
data/lib/aggcat.rb
CHANGED
data/lib/aggcat/base.rb
CHANGED
@@ -21,7 +21,7 @@ module Aggcat
|
|
21
21
|
|
22
22
|
TIMEOUT = 120
|
23
23
|
|
24
|
-
IGNORE_KEYS = Set.new([:'@xmlns', :'@xmlns:ns2', :'@xmlns:ns3', :'@xmlns:ns4', :'@xmlns:ns5', :'@xmlns:ns6', :'@xmlns:ns7', :'@xmlns:ns8'])
|
24
|
+
IGNORE_KEYS = Set.new([:'@xmlns', :'@xmlns:ns2', :'@xmlns:ns3', :'@xmlns:ns4', :'@xmlns:ns5', :'@xmlns:ns6', :'@xmlns:ns7', :'@xmlns:ns8', :'@xmlns:ns9'])
|
25
25
|
|
26
26
|
protected
|
27
27
|
|
data/lib/aggcat/version.rb
CHANGED