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 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 all aggregated customers
62
- Aggcat.delete_customers
68
+ # delete customer for the current scope
69
+ Aggcat.delete_customer
63
70
 
64
71
  ```
65
72
 
@@ -12,7 +12,7 @@ module Aggcat
12
12
  @customer_id = customer_id
13
13
  @client = Aggcat::Client.new(options.merge({customer_id: customer_id}))
14
14
  end
15
- customer_id
15
+ @client
16
16
  end
17
17
 
18
18
  def client
@@ -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
 
@@ -1,3 +1,3 @@
1
1
  module Aggcat
2
- VERSION = '0.0.6'
2
+ VERSION = '0.0.7'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aggcat
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: