intuit_ids_aggcat 0.0.7 → 0.0.8

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 7863f0f8a8f22e0838c1d54c33abbc871c0cf866
4
+ data.tar.gz: ced35e85bbe92d308725e416bad7aff3de9281d7
5
+ SHA512:
6
+ metadata.gz: 39d250ee93f29377d24dc0cb0c4cf27789cab2ac87a3c2f6ce63390e1bd9c657a41395e8921e4f60f86c7d98ac19715fdfc1b53ca36cf055aa805804474a0a0d
7
+ data.tar.gz: b97badeed780eb82d64fb09edfa86852b7f84155177ed594099173edb2fa8c851d6439933a84a3230ddf90feaabdb1b83270bc21ec6175be72b1f21e8cba1ca9
@@ -481,6 +481,7 @@ module IntuitIdsAggcat
481
481
 
482
482
  class TransactionList
483
483
  include XML::Mapping
484
+ text_node :not_refreshed_reason, "@notRefreshedReason", :default_value => nil
484
485
  array_node :banking_transactions, "BankingTransaction", :class => BankingTransaction, :default_value => nil
485
486
  array_node :credit_card_transactions, "CreditCardTransaction", :class => CreditCardTransaction, :default_value => nil
486
487
  array_node :investment_banking_transactions, "InvestmentBankingTransaction", :class => InvestmentBankingTransaction, :default_value => nil
@@ -42,7 +42,8 @@ module IntuitIdsAggcat
42
42
  # username and account ID must be provided, if no oauth_token_info is provided, new tokens will be provisioned using username
43
43
  def get_account username, account_id, oauth_token_info = IntuitIdsAggcat::Client::Saml.get_tokens(username), consumer_key = IntuitIdsAggcat.config.oauth_consumer_key, consumer_secret = IntuitIdsAggcat.config.oauth_consumer_secret
44
44
  url = "https://financialdatafeed.platform.intuit.com/rest-war/v1/accounts/#{account_id}"
45
- oauth_get_request url, oauth_token_info
45
+ response = oauth_get_request url, oauth_token_info
46
+ account = AccountList.load_from_xml(response[:response_xml].root)
46
47
  end
47
48
 
48
49
 
@@ -201,7 +202,7 @@ module IntuitIdsAggcat
201
202
  elsif daa[:response_code] == "500"
202
203
  { update_response: daa, accounts: nil, challenge_type: challenge_type, challenge: nil, description: "Internal server error." }
203
204
  elsif daa[:response_code] == "503"
204
- { update_response: daa, accounts: nil, challenge_type: challenge_type, challenge: nil, description: "Problem at the finanical institution." }
205
+ { update_response: daa, accounts: nil, challenge_type: challenge_type, challenge: nil, description: "Problem at the financial institution." }
205
206
  else
206
207
  { update_response: daa, accounts: nil, challenge_type: challenge_type, challenge: nil, description: "Unknown error." }
207
208
  end
@@ -234,7 +235,7 @@ module IntuitIdsAggcat
234
235
  elsif daa[:response_code] == "500"
235
236
  { discover_response: daa, accounts: nil, challenge_type: challenge_type, challenge: nil, description: "Internal server error." }
236
237
  elsif daa[:response_code] == "503"
237
- { discover_response: daa, accounts: nil, challenge_type: challenge_type, challenge: nil, description: "Problem at the finanical institution." }
238
+ { discover_response: daa, accounts: nil, challenge_type: challenge_type, challenge: nil, description: "Problem at the financial institution." }
238
239
  else
239
240
  { discover_response: daa, accounts: nil, challenge_type: challenge_type, challenge: nil, description: "Unknown error." }
240
241
  end
@@ -1,3 +1,3 @@
1
1
  module IntuitIdsAggcat
2
- VERSION = "0.0.7"
2
+ VERSION = "0.0.8"
3
3
  end
@@ -83,6 +83,31 @@ describe IntuitIdsAggcat::Client::Services do
83
83
 
84
84
  end
85
85
 
86
+ it 'should setup aggregation with username/password, get accounts, get details for one account, then delete the customer' do
87
+ # delete customer to ensure we are starting from scratch
88
+ IntuitIdsAggcat::Client::Services.delete_customer "9cj2hbjfgh47cna72"
89
+
90
+ # discover accounts
91
+ x = IntuitIdsAggcat::Client::Services.discover_and_add_accounts_with_credentials 100000, "9cj2hbjfgh47cna72", { "Banking Userid" => "direct", "Banking Password" => "anyvalue" }
92
+ x[:discover_response][:response_code].should == "201"
93
+ x[:accounts].should_not be_nil
94
+ x[:accounts].banking_accounts.count.should be > 2
95
+ x = IntuitIdsAggcat::Client::Services.get_customer_accounts "9cj2hbjfgh47cna72"
96
+ x.should_not be_nil
97
+ x.banking_accounts.count.should be > 2
98
+ # get details for one account
99
+ detail_account = x.banking_accounts[0].account_id
100
+ x = IntuitIdsAggcat::Client::Services.get_account "9cj2hbjfgh47cna72", detail_account
101
+ x.should_not be_nil
102
+ x.banking_accounts.should_not be_nil
103
+ x.banking_accounts[0].account_id.should == detail_account
104
+ x.banking_accounts[0].balance_amount.should_not be_nil
105
+ # delete customer
106
+ x = IntuitIdsAggcat::Client::Services.delete_customer "9cj2hbjfgh47cna72"
107
+ x[:response_code].should == "200"
108
+
109
+ end
110
+
86
111
  it 'should setup aggregation with text challenge then delete the customer' do
87
112
  IntuitIdsAggcat::Client::Services.delete_customer "9cj2hbjfgh47cna72"
88
113
  x = IntuitIdsAggcat::Client::Services.discover_and_add_accounts_with_credentials 100000, "9cj2hbjfgh47cna72", { "Banking Userid" => "tfa_text", "Banking Password" => "anyvalue" }
metadata CHANGED
@@ -1,20 +1,18 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: intuit_ids_aggcat
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
5
- prerelease:
4
+ version: 0.0.8
6
5
  platform: ruby
7
6
  authors:
8
7
  - Chris Hart
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-07-03 00:00:00.000000000 Z
11
+ date: 2014-05-08 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: rspec
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
17
  - - ~>
20
18
  - !ruby/object:Gem::Version
@@ -22,7 +20,6 @@ dependencies:
22
20
  type: :development
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
24
  - - ~>
28
25
  - !ruby/object:Gem::Version
@@ -30,7 +27,6 @@ dependencies:
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: vcr
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
31
  - - ~>
36
32
  - !ruby/object:Gem::Version
@@ -38,7 +34,6 @@ dependencies:
38
34
  type: :development
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
38
  - - ~>
44
39
  - !ruby/object:Gem::Version
@@ -46,7 +41,6 @@ dependencies:
46
41
  - !ruby/object:Gem::Dependency
47
42
  name: fakeweb
48
43
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
44
  requirements:
51
45
  - - ~>
52
46
  - !ruby/object:Gem::Version
@@ -54,7 +48,6 @@ dependencies:
54
48
  type: :development
55
49
  prerelease: false
56
50
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
51
  requirements:
59
52
  - - ~>
60
53
  - !ruby/object:Gem::Version
@@ -62,7 +55,6 @@ dependencies:
62
55
  - !ruby/object:Gem::Dependency
63
56
  name: oauth
64
57
  requirement: !ruby/object:Gem::Requirement
65
- none: false
66
58
  requirements:
67
59
  - - ~>
68
60
  - !ruby/object:Gem::Version
@@ -70,7 +62,6 @@ dependencies:
70
62
  type: :runtime
71
63
  prerelease: false
72
64
  version_requirements: !ruby/object:Gem::Requirement
73
- none: false
74
65
  requirements:
75
66
  - - ~>
76
67
  - !ruby/object:Gem::Version
@@ -78,7 +69,6 @@ dependencies:
78
69
  - !ruby/object:Gem::Dependency
79
70
  name: nokogiri
80
71
  requirement: !ruby/object:Gem::Requirement
81
- none: false
82
72
  requirements:
83
73
  - - ~>
84
74
  - !ruby/object:Gem::Version
@@ -86,7 +76,6 @@ dependencies:
86
76
  type: :runtime
87
77
  prerelease: false
88
78
  version_requirements: !ruby/object:Gem::Requirement
89
- none: false
90
79
  requirements:
91
80
  - - ~>
92
81
  - !ruby/object:Gem::Version
@@ -94,33 +83,29 @@ dependencies:
94
83
  - !ruby/object:Gem::Dependency
95
84
  name: xml-mapping
96
85
  requirement: !ruby/object:Gem::Requirement
97
- none: false
98
86
  requirements:
99
- - - ! '>='
87
+ - - '>='
100
88
  - !ruby/object:Gem::Version
101
89
  version: '0'
102
90
  type: :runtime
103
91
  prerelease: false
104
92
  version_requirements: !ruby/object:Gem::Requirement
105
- none: false
106
93
  requirements:
107
- - - ! '>='
94
+ - - '>='
108
95
  - !ruby/object:Gem::Version
109
96
  version: '0'
110
97
  - !ruby/object:Gem::Dependency
111
98
  name: activesupport
112
99
  requirement: !ruby/object:Gem::Requirement
113
- none: false
114
100
  requirements:
115
- - - ! '>='
101
+ - - '>='
116
102
  - !ruby/object:Gem::Version
117
103
  version: '0'
118
104
  type: :runtime
119
105
  prerelease: false
120
106
  version_requirements: !ruby/object:Gem::Requirement
121
- none: false
122
107
  requirements:
123
- - - ! '>='
108
+ - - '>='
124
109
  - !ruby/object:Gem::Version
125
110
  version: '0'
126
111
  description: Provides a wrapped for the IPP AggCat interfaces
@@ -149,27 +134,26 @@ files:
149
134
  - spec/spec_helper.rb
150
135
  homepage: ''
151
136
  licenses: []
137
+ metadata: {}
152
138
  post_install_message:
153
139
  rdoc_options: []
154
140
  require_paths:
155
141
  - lib
156
142
  required_ruby_version: !ruby/object:Gem::Requirement
157
- none: false
158
143
  requirements:
159
- - - ! '>='
144
+ - - '>='
160
145
  - !ruby/object:Gem::Version
161
146
  version: '0'
162
147
  required_rubygems_version: !ruby/object:Gem::Requirement
163
- none: false
164
148
  requirements:
165
- - - ! '>='
149
+ - - '>='
166
150
  - !ruby/object:Gem::Version
167
151
  version: '0'
168
152
  requirements: []
169
153
  rubyforge_project: intuit_ids_aggcat
170
- rubygems_version: 1.8.25
154
+ rubygems_version: 2.1.9
171
155
  signing_key:
172
- specification_version: 3
156
+ specification_version: 4
173
157
  summary: Integration for Intuit's aggregation and categorization services
174
158
  test_files:
175
159
  - spec/config/intuit_ids_aggcat.yml