finapps 2.2.4 → 2.2.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/finapps/rest/user_institutions.rb +1 -1
- data/lib/finapps/rest/user_institutions_forms.rb +1 -1
- data/lib/finapps/rest/user_institutions_statuses.rb +1 -1
- data/lib/finapps/version.rb +1 -1
- data/spec/rest/order_statuses_spec.rb +7 -4
- data/spec/rest/order_tokens_spec.rb +8 -8
- data/spec/rest/orders_spec.rb +26 -16
- data/spec/rest/user_institutions_forms_spec.rb +7 -4
- data/spec/rest/user_institutions_spec.rb +11 -6
- data/spec/rest/user_institutions_statuses_spec.rb +11 -6
- data/spec/spec_helpers/constants.rb +7 -0
- data/spec/support/fake_api.rb +15 -15
- data/spec/support/fixtures/institution_add.json +5 -4
- data/spec/support/fixtures/order.json +120 -0
- data/spec/support/fixtures/order_token.json +1 -1
- data/spec/support/fixtures/orders.json +1 -1
- metadata +5 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f93286a09de0aef183aaa9de0e098e0b0748a8f6
|
4
|
+
data.tar.gz: 52b7526d608956c8e4740446929f45b01beb9985
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e0fc54810448b27dadaac4c0bcb96e7efe4b29b3edb025a2c7f4e59f19a6b5e0be82087728fe113bc2e0ee3403c7a00c84792e6363ec30fd9eb559f0f7409892
|
7
|
+
data.tar.gz: 6a8399c02192fc9531cebb39ddfc22a4e32d70092af6664a7670dd5055471c6dd28705e77a6750642349260c4fffc3663005ced0aea01ee5d760586cb049941d
|
data/lib/finapps/version.rb
CHANGED
@@ -2,6 +2,9 @@
|
|
2
2
|
RSpec.describe FinApps::REST::OrderStatuses do
|
3
3
|
include SpecHelpers::Client
|
4
4
|
|
5
|
+
RESULTS = 0
|
6
|
+
ERROR_MESSAGES = 1
|
7
|
+
|
5
8
|
describe '#show' do
|
6
9
|
context 'when missing id' do
|
7
10
|
subject { FinApps::REST::OrderStatuses.new(client).show(nil) }
|
@@ -12,16 +15,16 @@ RSpec.describe FinApps::REST::OrderStatuses do
|
|
12
15
|
subject { FinApps::REST::OrderStatuses.new(client).show(:valid_id) }
|
13
16
|
|
14
17
|
it { expect { subject }.not_to raise_error }
|
15
|
-
it('performs a get and returns the response') { expect(subject[
|
16
|
-
it('returns no error messages') { expect(subject[
|
18
|
+
it('performs a get and returns the response') { expect(subject[RESULTS]).to respond_to(:status) }
|
19
|
+
it('returns no error messages') { expect(subject[ERROR_MESSAGES]).to be_empty }
|
17
20
|
end
|
18
21
|
|
19
22
|
context 'when invalid id is provided' do
|
20
23
|
subject { FinApps::REST::OrderStatuses.new(client).show(:invalid_id) }
|
21
24
|
|
22
25
|
it { expect { subject }.not_to raise_error }
|
23
|
-
it('results is nil') { expect(subject[
|
24
|
-
it('error messages array is populated') { expect(subject[
|
26
|
+
it('results is nil') { expect(subject[RESULTS]).to be_nil }
|
27
|
+
it('error messages array is populated') { expect(subject[ERROR_MESSAGES].first.downcase).to eq('resource not found') }
|
25
28
|
end
|
26
29
|
end
|
27
30
|
end
|
@@ -1,9 +1,14 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
RSpec.describe FinApps::REST::OrderTokens, 'initialized with valid FinApps::Client object' do
|
3
|
-
|
4
|
-
include SpecHelpers::Client
|
3
|
+
include SpecHelpers::Client
|
5
4
|
|
5
|
+
RESULTS = 0
|
6
|
+
ERROR_MESSAGES = 1
|
7
|
+
|
8
|
+
describe '#show' do
|
6
9
|
subject(:order_tokens) { FinApps::REST::OrderTokens.new(client) }
|
10
|
+
let(:results) { show[RESULTS] }
|
11
|
+
let(:error_messages) { show[ERROR_MESSAGES] }
|
7
12
|
|
8
13
|
context 'when missing token' do
|
9
14
|
it { expect { subject.show(nil) }.to raise_error(FinAppsCore::MissingArgumentsError, 'Missing argument: token') }
|
@@ -11,19 +16,14 @@ RSpec.describe FinApps::REST::OrderTokens, 'initialized with valid FinApps::Clie
|
|
11
16
|
|
12
17
|
context 'for valid token' do
|
13
18
|
let(:show) { subject.show(:valid_token) }
|
14
|
-
let(:results) { show[0] }
|
15
|
-
let(:error_messages) { show[1] }
|
16
|
-
|
17
19
|
it { expect { show }.not_to raise_error }
|
18
20
|
it('results is a Hashie::Rash') { expect(results).to be_a(Hashie::Rash) }
|
21
|
+
it('results contains a consumer_id') { expect(results).to respond_to(:consumer_id) }
|
19
22
|
it('error_messages array is empty') { expect(error_messages).to eq([]) }
|
20
23
|
end
|
21
24
|
|
22
25
|
context 'for invalid token' do
|
23
26
|
let(:show) { subject.show(:invalid_token) }
|
24
|
-
let(:results) { show[0] }
|
25
|
-
let(:error_messages) { show[1] }
|
26
|
-
|
27
27
|
it { expect { show }.not_to raise_error }
|
28
28
|
it('results is nil') { expect(results).to be_nil }
|
29
29
|
it('error messages array is populated') { expect(error_messages.first.downcase).to eq('resource not found') }
|
data/spec/rest/orders_spec.rb
CHANGED
@@ -1,6 +1,9 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
RSpec.describe FinApps::REST::Orders do
|
3
3
|
include SpecHelpers::Client
|
4
|
+
|
5
|
+
RESULTS = 0
|
6
|
+
ERROR_MESSAGES = 1
|
4
7
|
|
5
8
|
describe '#show' do
|
6
9
|
context 'when missing params' do
|
@@ -13,8 +16,11 @@ RSpec.describe FinApps::REST::Orders do
|
|
13
16
|
|
14
17
|
it { expect { subject }.not_to raise_error }
|
15
18
|
it('returns an array') { expect(subject).to be_a(Array) }
|
16
|
-
it('performs a get and returns the response')
|
17
|
-
|
19
|
+
it('performs a get and returns the response') do
|
20
|
+
expect(subject[RESULTS]).to respond_to(:public_id)
|
21
|
+
expect(subject[RESULTS]).to respond_to(:consumer_id)
|
22
|
+
end
|
23
|
+
it('returns no error messages') { expect(subject[ERROR_MESSAGES]).to be_empty }
|
18
24
|
end
|
19
25
|
end
|
20
26
|
|
@@ -30,8 +36,11 @@ RSpec.describe FinApps::REST::Orders do
|
|
30
36
|
|
31
37
|
it { expect { subject }.not_to raise_error }
|
32
38
|
it('returns an array') { expect(subject).to be_a(Array) }
|
33
|
-
it('performs a post and returns the response')
|
34
|
-
|
39
|
+
it('performs a post and returns the response') do
|
40
|
+
expect(subject[RESULTS]).to respond_to(:public_id)
|
41
|
+
expect(subject[RESULTS]).to respond_to(:consumer_id)
|
42
|
+
end
|
43
|
+
it('returns no error messages') { expect(subject[ERROR_MESSAGES]).to be_empty }
|
35
44
|
end
|
36
45
|
|
37
46
|
context 'when invalid params are provided' do
|
@@ -39,8 +48,8 @@ RSpec.describe FinApps::REST::Orders do
|
|
39
48
|
let(:invalid_params) { {applicant: 'valid'} }
|
40
49
|
|
41
50
|
it { expect { subject }.not_to raise_error }
|
42
|
-
it('results is nil') { expect(subject[
|
43
|
-
it('error messages array is populated') { expect(subject[
|
51
|
+
it('results is nil') { expect(subject[RESULTS]).to be_nil }
|
52
|
+
it('error messages array is populated') { expect(subject[ERROR_MESSAGES].first.downcase).to eq('invalid request body') }
|
44
53
|
end
|
45
54
|
end
|
46
55
|
|
@@ -52,8 +61,8 @@ RSpec.describe FinApps::REST::Orders do
|
|
52
61
|
it { expect { subject }.not_to raise_error }
|
53
62
|
|
54
63
|
it('returns an array') { expect(subject).to be_a(Array) }
|
55
|
-
it('performs a get and returns the response') { expect(subject[
|
56
|
-
it('returns no error messages') { expect(subject[
|
64
|
+
it('performs a get and returns the response') { expect(subject[RESULTS]).to respond_to(:orders) }
|
65
|
+
it('returns no error messages') { expect(subject[ERROR_MESSAGES]).to be_empty }
|
57
66
|
end
|
58
67
|
|
59
68
|
context 'when including partial params' do
|
@@ -62,8 +71,9 @@ RSpec.describe FinApps::REST::Orders do
|
|
62
71
|
|
63
72
|
it { expect { subject }.not_to raise_error }
|
64
73
|
it('returns an array') { expect(subject).to be_a(Array) }
|
65
|
-
it('performs a get and returns the response') { expect(subject[
|
66
|
-
it('
|
74
|
+
it('performs a get and returns the response') { expect(subject[RESULTS]).to respond_to(:orders) }
|
75
|
+
it('each order contains a consumer_id') { expect(subject[RESULTS].orders).to all(respond_to(:consumer_id)) }
|
76
|
+
it('returns no error messages') { expect(subject[ERROR_MESSAGES]).to be_empty }
|
67
77
|
end
|
68
78
|
end
|
69
79
|
|
@@ -82,8 +92,8 @@ RSpec.describe FinApps::REST::Orders do
|
|
82
92
|
|
83
93
|
context 'when valid id and params are provided' do
|
84
94
|
let(:update) { subject.update('valid_id', accounts: 'valid_account') } # how to stub params
|
85
|
-
let(:results) { update[
|
86
|
-
let(:error_messages) { update[
|
95
|
+
let(:results) { update[RESULTS] }
|
96
|
+
let(:error_messages) { update[ERROR_MESSAGES] }
|
87
97
|
|
88
98
|
it { expect { update }.not_to raise_error }
|
89
99
|
it('results is nil') { expect(results).to be_nil }
|
@@ -92,8 +102,8 @@ RSpec.describe FinApps::REST::Orders do
|
|
92
102
|
|
93
103
|
context 'when invalid id is provided' do
|
94
104
|
let(:update) { subject.update('invalid_id', :params) }
|
95
|
-
let(:results) { update[
|
96
|
-
let(:error_messages) { update[
|
105
|
+
let(:results) { update[RESULTS] }
|
106
|
+
let(:error_messages) { update[ERROR_MESSAGES] }
|
97
107
|
|
98
108
|
it { expect { update }.not_to raise_error }
|
99
109
|
it('results is nil') { expect(results).to be_nil }
|
@@ -102,8 +112,8 @@ RSpec.describe FinApps::REST::Orders do
|
|
102
112
|
|
103
113
|
context 'when invalid params are provided' do
|
104
114
|
let(:update) { subject.update('valid_id', accounts: 'invalid_account') }
|
105
|
-
let(:results) { update[
|
106
|
-
let(:error_messages) { update[
|
115
|
+
let(:results) { update[RESULTS] }
|
116
|
+
let(:error_messages) { update[ERROR_MESSAGES] }
|
107
117
|
|
108
118
|
it { expect { update }.not_to raise_error }
|
109
119
|
it('results is nil') { expect(results).to be_nil }
|
@@ -4,6 +4,9 @@ require 'spec_helpers/client'
|
|
4
4
|
RSpec.describe FinApps::REST::UserInstitutionsForms do
|
5
5
|
include SpecHelpers::Client
|
6
6
|
|
7
|
+
RESULT = 0
|
8
|
+
ERROR_MESSAGES = 1
|
9
|
+
|
7
10
|
describe '#show' do
|
8
11
|
context 'when missing site id' do
|
9
12
|
subject { FinApps::REST::UserInstitutionsForms.new(client).show(nil) }
|
@@ -14,16 +17,16 @@ RSpec.describe FinApps::REST::UserInstitutionsForms do
|
|
14
17
|
subject { FinApps::REST::UserInstitutionsForms.new(client).show('valid_id') }
|
15
18
|
|
16
19
|
it { expect { subject }.not_to raise_error }
|
17
|
-
it('performs a get and returns the login html') { expect(subject[
|
18
|
-
it('returns no error messages') { expect(subject[
|
20
|
+
it('performs a get and returns the login html') { expect(subject[RESULT]).to respond_to(:login_form_html) }
|
21
|
+
it('returns no error messages') { expect(subject[ERROR_MESSAGES]).to be_empty }
|
19
22
|
end
|
20
23
|
|
21
24
|
context 'when invalid site id provided' do
|
22
25
|
subject { FinApps::REST::UserInstitutionsForms.new(client).show('invalid_id') }
|
23
26
|
|
24
27
|
it { expect { subject }.not_to raise_error }
|
25
|
-
it('results is nil') { expect(subject[
|
26
|
-
it('error messages array is populated') { expect(subject[
|
28
|
+
it('results is nil') { expect(subject[RESULT]).to be_nil }
|
29
|
+
it('error messages array is populated') { expect(subject[ERROR_MESSAGES].first.downcase).to eq('invalid institution id') }
|
27
30
|
end
|
28
31
|
end
|
29
32
|
end
|
@@ -1,7 +1,12 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
|
+
require 'spec_helpers/client'
|
3
|
+
|
2
4
|
RSpec.describe FinApps::REST::UserInstitutions do
|
3
5
|
include SpecHelpers::Client
|
4
6
|
|
7
|
+
RESULT = 0
|
8
|
+
ERROR_MESSAGES = 1
|
9
|
+
|
5
10
|
describe '#list' do
|
6
11
|
context 'when successful' do
|
7
12
|
subject { FinApps::REST::UserInstitutions.new(client).list }
|
@@ -29,8 +34,8 @@ RSpec.describe FinApps::REST::UserInstitutions do
|
|
29
34
|
let(:create) { subject.create('valid_site_id', :params) }
|
30
35
|
|
31
36
|
it { expect { create }.not_to raise_error }
|
32
|
-
it('performs a post and returns the response') { expect(create[
|
33
|
-
it('returns no error messages') { expect(create[
|
37
|
+
it('performs a post and returns the response') { expect(create[RESULT]).to respond_to(:consumer_institution) }
|
38
|
+
it('returns no error messages') { expect(create[ERROR_MESSAGES]).to be_empty }
|
34
39
|
end
|
35
40
|
|
36
41
|
# No tests for invalid site_id/params because of API/Yodlee flow
|
@@ -75,8 +80,8 @@ RSpec.describe FinApps::REST::UserInstitutions do
|
|
75
80
|
subject { FinApps::REST::UserInstitutions.new(client).mfa_update('valid_id', :params) }
|
76
81
|
|
77
82
|
it { expect { subject }.not_to raise_error }
|
78
|
-
it('performs a post and returns the response') { expect(subject[
|
79
|
-
it('returns no error messages') { expect(subject[
|
83
|
+
it('performs a post and returns the response') { expect(subject[RESULT]).to respond_to(:consumer_institution) }
|
84
|
+
it('returns no error messages') { expect(subject[ERROR_MESSAGES]).to be_empty }
|
80
85
|
end
|
81
86
|
|
82
87
|
context 'when invalid id is provided w/ params' do
|
@@ -103,8 +108,8 @@ RSpec.describe FinApps::REST::UserInstitutions do
|
|
103
108
|
subject { FinApps::REST::UserInstitutions.new(client).credentials_update('valid_id', :params) }
|
104
109
|
|
105
110
|
it { expect { subject }.not_to raise_error }
|
106
|
-
it('performs a post and returns the response') { expect(subject[
|
107
|
-
it('returns no error messages') { expect(subject[
|
111
|
+
it('performs a post and returns the response') { expect(subject[RESULT]).to respond_to(:consumer_institution) }
|
112
|
+
it('returns no error messages') { expect(subject[ERROR_MESSAGES]).to be_empty }
|
108
113
|
end
|
109
114
|
|
110
115
|
context 'when invalid id is provided w/ params' do
|
@@ -1,7 +1,12 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
|
+
require 'spec_helpers/client'
|
3
|
+
|
2
4
|
RSpec.describe FinApps::REST::UserInstitutionsStatuses do
|
3
5
|
include SpecHelpers::Client
|
4
6
|
|
7
|
+
RESULT = 0
|
8
|
+
ERROR_MESSAGES = 1
|
9
|
+
|
5
10
|
describe '#show' do
|
6
11
|
context 'when missing id' do
|
7
12
|
subject { FinApps::REST::UserInstitutionsStatuses.new(client).show(nil) }
|
@@ -13,16 +18,16 @@ RSpec.describe FinApps::REST::UserInstitutionsStatuses do
|
|
13
18
|
|
14
19
|
it { expect { subject }.not_to raise_error }
|
15
20
|
it('returns an array') { expect(subject).to be_a(Array) }
|
16
|
-
it('performs a get and returns the response') { expect(subject[
|
17
|
-
it('returns no error messages') { expect(subject[
|
21
|
+
it('performs a get and returns the response') { expect(subject[RESULT]).to respond_to(:_id) }
|
22
|
+
it('returns no error messages') { expect(subject[ERROR_MESSAGES]).to be_empty }
|
18
23
|
end
|
19
24
|
|
20
25
|
context 'when invalid id is provided' do
|
21
26
|
subject { FinApps::REST::UserInstitutionsStatuses.new(client).show('invalid_id') }
|
22
27
|
|
23
28
|
it { expect { subject }.not_to raise_error }
|
24
|
-
it('results is nil') { expect(subject[
|
25
|
-
it('error messages array is populated') { expect(subject[
|
29
|
+
it('results is nil') { expect(subject[RESULT]).to be_nil }
|
30
|
+
it('error messages array is populated') { expect(subject[ERROR_MESSAGES].first.downcase).to eq('invalid user institution id') }
|
26
31
|
end
|
27
32
|
end
|
28
33
|
|
@@ -31,8 +36,8 @@ RSpec.describe FinApps::REST::UserInstitutionsStatuses do
|
|
31
36
|
subject { FinApps::REST::UserInstitutionsStatuses.new(client).update }
|
32
37
|
|
33
38
|
it('returns an array') { expect(subject).to be_a(Array) }
|
34
|
-
it('performs a get and returns array of user institutions statuses') { expect(subject[
|
35
|
-
it('returns no error messages') { expect(subject[
|
39
|
+
it('performs a get and returns array of user institutions statuses') { expect(subject[RESULT]).to be_a(Array) }
|
40
|
+
it('returns no error messages') { expect(subject[ERROR_MESSAGES]).to be_empty }
|
36
41
|
end
|
37
42
|
end
|
38
43
|
end
|
data/spec/support/fake_api.rb
CHANGED
@@ -16,7 +16,7 @@ class FakeApi < Sinatra::Base
|
|
16
16
|
# orders
|
17
17
|
post('/v2/orders/valid_token') { json_response 200, 'order_token.json' }
|
18
18
|
post('/v2/orders/invalid_token') { json_response 404, 'resource_not_found.json' }
|
19
|
-
get('/v2/orders/valid_id') { json_response 200, '
|
19
|
+
get('/v2/orders/valid_id') { json_response 200, 'order.json' }
|
20
20
|
get('/v2/list/orders/:page/:requested/:sort/:asc') { json_response 200, 'orders.json' }
|
21
21
|
get('/v2/orders/valid_id/report.:format') { json_response 200, 'order_report.json' }
|
22
22
|
get('/v2/orders/invalid_id/report.:format') { json_response 404, 'resource_not_found.json' }
|
@@ -49,20 +49,20 @@ class FakeApi < Sinatra::Base
|
|
49
49
|
get('/v2/institutions/search/:search_term') { json_response 200, 'institutions_search_list.json' }
|
50
50
|
|
51
51
|
# user institutions
|
52
|
-
get('/v2/institutions/
|
53
|
-
get('/v2/institutions/
|
54
|
-
get('/v2/institutions/
|
55
|
-
get('/v2/institutions/
|
56
|
-
get('/v2/institutions/
|
57
|
-
put('/v2/institutions/
|
58
|
-
put('/v2/institutions/
|
59
|
-
put('/v2/institutions/
|
60
|
-
put('/v2/institutions/
|
61
|
-
put('/v2/institutions/
|
62
|
-
delete('/v2/institutions/
|
63
|
-
delete('/v2/institutions/
|
64
|
-
get('/v2/institutions/
|
65
|
-
get('/v2/institutions/
|
52
|
+
get('/v2/institutions/consumer/valid_id/status') { json_response 200, 'user_institution_status.json' }
|
53
|
+
get('/v2/institutions/consumer/invalid_id/status') { json_response 400, 'invalid_user_institution_id.json' }
|
54
|
+
get('/v2/institutions/consumer') { json_response 200, 'user_institutions_list.json' }
|
55
|
+
get('/v2/institutions/consumer/valid_id') { json_response 200, 'user_institutions_show.json' }
|
56
|
+
get('/v2/institutions/consumer/invalid_id') { json_response 400, 'invalid_user_institution_id.json' }
|
57
|
+
put('/v2/institutions/consumer/refresh') { json_response 200, 'user_institutions_refresh_all.json' }
|
58
|
+
put('/v2/institutions/consumer/valid_id/credentials') { json_response 200, 'institution_add.json' }
|
59
|
+
put('/v2/institutions/consumer/invalid_id/credentials') { json_response 400, 'invalid_user_institution_id.json' }
|
60
|
+
put('/v2/institutions/consumer/valid_id/mfa') { json_response 200, 'institution_add.json' }
|
61
|
+
put('/v2/institutions/consumer/invalid_id/mfa') { json_response 400, 'invalid_user_institution_id.json' }
|
62
|
+
delete('/v2/institutions/consumer/valid_id') { status 204 }
|
63
|
+
delete('/v2/institutions/consumer/invalid_id') { json_response 400, 'invalid_user_institution_id.json' }
|
64
|
+
get('/v2/institutions/consumer/valid_id/form') { json_response 200, 'institution_login_form.json' }
|
65
|
+
get('/v2/institutions/consumer/invalid_id/form') { json_response 400, 'invalid_institution_id.json' }
|
66
66
|
put('/v2/institutions/refresh') { json_response 200, 'user_institution_refresh.json' }
|
67
67
|
|
68
68
|
# consumers
|
@@ -1,11 +1,12 @@
|
|
1
1
|
{
|
2
|
-
"
|
3
|
-
"_id": "
|
4
|
-
"account_id":
|
2
|
+
"consumer_institution": {
|
3
|
+
"_id": "58a8901658ee7e000130607b",
|
4
|
+
"account_id": 10086269,
|
5
|
+
"institution_id": 16441,
|
5
6
|
"institution_name": "Dag Site (US)",
|
6
7
|
"status": 3,
|
7
8
|
"status_message": "queued",
|
8
|
-
"last_refreshed": "
|
9
|
+
"last_refreshed": "2017-02-18T18:19:02.748998218Z"
|
9
10
|
},
|
10
11
|
"mfa": ""
|
11
12
|
}
|
@@ -0,0 +1,120 @@
|
|
1
|
+
{
|
2
|
+
"public_id": "3780677f-0ace-4151-4cdf-e3ea5a5acb82",
|
3
|
+
"consumer_id": "3c631325-f17a-4366-50fd-82d4167cdfed",
|
4
|
+
"applicant": {
|
5
|
+
"first_name": "John",
|
6
|
+
"last_name": "Smith",
|
7
|
+
"ssn": "555-11-1234",
|
8
|
+
"dob": "01-01-1980",
|
9
|
+
"email": "cesar@financialapps.com",
|
10
|
+
"mobile_phone": "954-555-1234",
|
11
|
+
"work_phone": "954-444-1234",
|
12
|
+
"home_phone": "954-777-1234",
|
13
|
+
"address": "6360 NW 5th Way",
|
14
|
+
"address2": "Suite 310",
|
15
|
+
"city": "Fort Lauderdale",
|
16
|
+
"state": "FL",
|
17
|
+
"zip": "33309",
|
18
|
+
"employer": {
|
19
|
+
"name": "FinancialApps",
|
20
|
+
"position": "Manager",
|
21
|
+
"length_months": 72,
|
22
|
+
"pay_cycle": "Bi-Weekly",
|
23
|
+
"type": "Salary",
|
24
|
+
"start_date": "2011-08-01T00:00:00Z",
|
25
|
+
"end_date": "2016-08-01T00:00:00Z",
|
26
|
+
"pay_amt_gross": 5000,
|
27
|
+
"pay_amt_net": 4200
|
28
|
+
},
|
29
|
+
"previous_employers": [
|
30
|
+
{
|
31
|
+
"name": "Publix",
|
32
|
+
"position": "Cashier",
|
33
|
+
"length_months": 8,
|
34
|
+
"pay_cycle": "Bi-Weekly",
|
35
|
+
"type": "Part-Time",
|
36
|
+
"start_date": "2011-01-01T00:00:00Z",
|
37
|
+
"end_date": "2011-08-01T00:00:00Z",
|
38
|
+
"pay_amt_gross": 1500,
|
39
|
+
"pay_amt_net": 1125
|
40
|
+
}
|
41
|
+
],
|
42
|
+
"annual_income": 60000,
|
43
|
+
"monthly_income": 5000,
|
44
|
+
"weekly_income": 1250,
|
45
|
+
"net_income": 40000,
|
46
|
+
"marital_status": "Married",
|
47
|
+
"dependents": 3
|
48
|
+
},
|
49
|
+
"co_applicants": [
|
50
|
+
{
|
51
|
+
"first_name": "Jane",
|
52
|
+
"last_name": "Smith",
|
53
|
+
"ssn": "",
|
54
|
+
"dob": "",
|
55
|
+
"email": "jane@financialapps.com",
|
56
|
+
"mobile_phone": "",
|
57
|
+
"work_phone": "",
|
58
|
+
"home_phone": "",
|
59
|
+
"address": "",
|
60
|
+
"address2": "",
|
61
|
+
"city": "",
|
62
|
+
"state": "",
|
63
|
+
"zip": "33309",
|
64
|
+
"employer": {
|
65
|
+
"name": "",
|
66
|
+
"position": "",
|
67
|
+
"length_months": 0,
|
68
|
+
"pay_cycle": "",
|
69
|
+
"type": "",
|
70
|
+
"start_date": "0001-01-01T00:00:00Z",
|
71
|
+
"end_date": "0001-01-01T00:00:00Z",
|
72
|
+
"pay_amt_gross": 0,
|
73
|
+
"pay_amt_net": 0
|
74
|
+
},
|
75
|
+
"previous_employers": [],
|
76
|
+
"annual_income": 0,
|
77
|
+
"monthly_income": 0,
|
78
|
+
"weekly_income": 0,
|
79
|
+
"net_income": 0,
|
80
|
+
"marital_status": "",
|
81
|
+
"dependents": 0
|
82
|
+
}
|
83
|
+
],
|
84
|
+
"institutions" : [
|
85
|
+
{
|
86
|
+
"name" : "Wells Fargo",
|
87
|
+
"public_id" : "b493ff20",
|
88
|
+
"routing_no" : "09773625672",
|
89
|
+
"site_id" : 16441,
|
90
|
+
"accounts" : [
|
91
|
+
{
|
92
|
+
"public_id" : "3e4d43c9",
|
93
|
+
"account_type" : "Checking",
|
94
|
+
"account_no" : "7739292373",
|
95
|
+
"name_on_account" : "Don Trump",
|
96
|
+
"account_nickname" : "",
|
97
|
+
"account_address" : "",
|
98
|
+
"shared" : true
|
99
|
+
}
|
100
|
+
]
|
101
|
+
}
|
102
|
+
],
|
103
|
+
"product": {
|
104
|
+
"public_id": "77777777-6ac6-4183-a671-6e75ca5989a5",
|
105
|
+
"code": "PROD2"
|
106
|
+
},
|
107
|
+
"requestor": {
|
108
|
+
"company_id": "55555",
|
109
|
+
"company_name": "Citi",
|
110
|
+
"broker": "Broker",
|
111
|
+
"processor": "I am Processor",
|
112
|
+
"phone": "305-888-8888",
|
113
|
+
"email": "processor@gmail.com",
|
114
|
+
"reference_no": "22222"
|
115
|
+
},
|
116
|
+
"webhook": "http://google.com",
|
117
|
+
"status": 2,
|
118
|
+
"date": "2016-08-10T13:27:36.238Z",
|
119
|
+
"date_modified": "2016-08-10T13:27:36.238Z"
|
120
|
+
}
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: finapps
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.2.
|
4
|
+
version: 2.2.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Erich Quintero
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-02-
|
11
|
+
date: 2017-02-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: finapps_core
|
@@ -265,6 +265,7 @@ files:
|
|
265
265
|
- spec/rest/version_spec.rb
|
266
266
|
- spec/spec_helper.rb
|
267
267
|
- spec/spec_helpers/client.rb
|
268
|
+
- spec/spec_helpers/constants.rb
|
268
269
|
- spec/support/fake_api.rb
|
269
270
|
- spec/support/fixtures/error.json
|
270
271
|
- spec/support/fixtures/institution_add.json
|
@@ -274,6 +275,7 @@ files:
|
|
274
275
|
- spec/support/fixtures/invalid_request_body.json
|
275
276
|
- spec/support/fixtures/invalid_user_id.json
|
276
277
|
- spec/support/fixtures/invalid_user_institution_id.json
|
278
|
+
- spec/support/fixtures/order.json
|
277
279
|
- spec/support/fixtures/order_report.json
|
278
280
|
- spec/support/fixtures/order_status.json
|
279
281
|
- spec/support/fixtures/order_token.json
|
@@ -336,4 +338,5 @@ test_files:
|
|
336
338
|
- spec/rest/sessions_spec.rb
|
337
339
|
- spec/support/fake_api.rb
|
338
340
|
- spec/spec_helpers/client.rb
|
341
|
+
- spec/spec_helpers/constants.rb
|
339
342
|
- spec/spec_helper.rb
|