iwoca 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,71 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://stage.iwoca-dev.co.uk/api/lending/v1/state/
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"data":{"application":{"company":{"last_12_months_turnover":{"amount":0.0},"registered_company_name":"HOKO
9
+ LTD","industry":"B | Mining and Quarrying","company_number":"09525857","type":"limited_liability_company","trading_from_date":"2015-05-22","registered_address":{"postcode":"W1T
10
+ 3NF","street_line_1":"Berners House","street_line_2":"47-48 Berners Street","town":"London","country":"GB"},"vat_status":{"is_vat_registered":true}},"people":[{"uid":"2d31277e-f93e-4415-95b1-8b39a0ce9e98","first_name":"Lenard","last_name":"Leffler","date_of_birth":"1983-09-10","roles":["applicant","shareholder","guarantor","director"],"phones":[{"uid":"7706b7ad-db95-449e-8fda-bee0ccdfd285","number":"+371
11
+ 027 0417 6389","type":"primary"}],"emails":[{"uid":"01616521-e64e-43d7-8850-6331e6764c00","email":"kathlyn@wolff.com","type":"primary"}],"residential_addresses":[{"uid":"ab272cba-ba05-470d-97bd-ff417e5e31ce","town":"New
12
+ Guyhaven","street_line_1":"60203 Keturah Road","street_line_2":"","country":"GB","postcode":"WD1
13
+ 3NZ","house_number":"10","residential_status":"owner_no_mortgage"}],"privacy_policy":{"agreed":true,"datetime":"2020-01-23T18:16:33+00:00"}}],"requested_products":{"credit_facility":{"approval":{"amount":123123,"duration":12,"detailed_purpose":"business
14
+ loan"}}}}}}'
15
+ headers:
16
+ Authorization:
17
+ - Token <TOKEN>
18
+ Content-Type:
19
+ - application/json
20
+ User-Agent:
21
+ - ruby-iwoca-0.1.0
22
+ Accept-Encoding:
23
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
24
+ Accept:
25
+ - "*/*"
26
+ response:
27
+ status:
28
+ code: 201
29
+ message: Created
30
+ headers:
31
+ Date:
32
+ - Thu, 23 Jan 2020 18:16:35 GMT
33
+ Content-Type:
34
+ - application/json; charset=utf-8
35
+ Content-Length:
36
+ - '63'
37
+ Connection:
38
+ - keep-alive
39
+ Server:
40
+ - nginx/1.15.12
41
+ X-State-Key:
42
+ - 1acd6198-df68-421a-8108-f7cec4902c00
43
+ Expires:
44
+ - Thu, 23 Jan 2020 18:16:35 GMT
45
+ Cache-Control:
46
+ - max-age=0, no-cache, no-store, must-revalidate
47
+ - public, max-age=0, must-revalidate
48
+ X-Partner:
49
+ - finpoint-dev
50
+ X-Content-Type-Options:
51
+ - nosniff
52
+ X-Xss-Protection:
53
+ - 1; mode=block
54
+ X-Frame-Options:
55
+ - SAMEORIGIN
56
+ Vary:
57
+ - Cookie
58
+ Set-Cookie:
59
+ - isLoggedIn=True; Path=/
60
+ - sessionid_access=932d8624-e0d0-4770-8b2d-f44c6889c757; expires=Fri, 22-Jan-2021
61
+ 18:16:35 GMT; HttpOnly; Max-Age=31536000; Path=/
62
+ - uid=rBEABV4p4wOR4QAhAwwjAg==; expires=Thu, 31-Dec-37 23:55:55 GMT; domain=.iwoca-dev.co.uk;
63
+ path=/
64
+ Strict-Transport-Security:
65
+ - max-age=31536000; includeSubDomains
66
+ body:
67
+ encoding: UTF-8
68
+ string: '{"data": {"state_key": "1acd6198-df68-421a-8108-f7cec4902c00"}}'
69
+ http_version:
70
+ recorded_at: Thu, 23 Jan 2020 18:16:35 GMT
71
+ recorded_with: VCR 5.0.0
@@ -0,0 +1,76 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://stage.iwoca-dev.co.uk/api/lending/v1/credit_facility_status/a16011ce-16c2-4581-b3d6-8b48e8db118b/
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Authorization:
11
+ - Token <TOKEN>
12
+ Content-Type:
13
+ - application/json
14
+ User-Agent:
15
+ - ruby-iwoca-0.1.1
16
+ Accept-Encoding:
17
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
18
+ Accept:
19
+ - "*/*"
20
+ response:
21
+ status:
22
+ code: 200
23
+ message: OK
24
+ headers:
25
+ Date:
26
+ - Thu, 30 Jan 2020 10:52:51 GMT
27
+ Content-Type:
28
+ - application/json; charset=utf-8
29
+ Transfer-Encoding:
30
+ - chunked
31
+ Connection:
32
+ - keep-alive
33
+ Server:
34
+ - nginx/1.15.12
35
+ Vary:
36
+ - Accept-Encoding
37
+ - Cookie
38
+ X-State-Key:
39
+ - a16011ce-16c2-4581-b3d6-8b48e8db118b
40
+ Expires:
41
+ - Thu, 30 Jan 2020 10:52:51 GMT
42
+ Cache-Control:
43
+ - max-age=0, no-cache, no-store, must-revalidate
44
+ - public, max-age=0, must-revalidate
45
+ X-Partner:
46
+ - finpoint-dev
47
+ X-Content-Type-Options:
48
+ - nosniff
49
+ X-Xss-Protection:
50
+ - 1; mode=block
51
+ X-Frame-Options:
52
+ - SAMEORIGIN
53
+ Set-Cookie:
54
+ - isLoggedIn=True; Path=/
55
+ - sessionid_access=f6b3893f-33ef-4f94-90b4-e30d6b294b4f; expires=Fri, 29-Jan-2021
56
+ 10:52:51 GMT; HttpOnly; Max-Age=31536000; Path=/
57
+ - uid=rBEABF4ytYMZzAAlA/ekAg==; expires=Thu, 31-Dec-37 23:55:55 GMT; domain=.iwoca-dev.co.uk;
58
+ path=/
59
+ Strict-Transport-Security:
60
+ - max-age=31536000; includeSubDomains
61
+ body:
62
+ encoding: ASCII-8BIT
63
+ string: '{"data": {"balance": {"principal": 0.0, "interest": 0.0, "product_fees":
64
+ 0.0, "other_fees": 0.0, "total": 0.0}, "latest_approval_request": {"status":
65
+ "decision_made"}, "approval_status": {"status": "approved", "approved": {"min_credit":
66
+ 1.0, "max_credit": 10000.0, "interval": "1m", "duration": 12, "rate_structures":
67
+ [{"effective_on_day": 0, "rates": [{"max_principal": 10000.0, "rate": 0.0535}]}],
68
+ "time_out": "2019-11-10T00:00:00Z", "top_up_allowed": false}}, "approval_requirements":
69
+ [{"type": "cc", "status": "required"}, {"type": "bus_cc", "status": "required"},
70
+ {"type": "dir_guarantor", "status": "required"}, {"type": "enhanced_security_check",
71
+ "status": "pending"}], "funding_requirements": [{"status": "required", "type":
72
+ "fraud"}, {"type": "docs", "status": "required"}, {"type": "enhanced_security_check",
73
+ "status": "pending"}], "available_credit": 10000.0}}'
74
+ http_version:
75
+ recorded_at: Thu, 30 Jan 2020 10:52:51 GMT
76
+ recorded_with: VCR 5.0.0
@@ -0,0 +1,73 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://stage.iwoca-dev.co.uk/api/lending/v1/credit_facility_status/12369240-4803-49e3-89cd-526aa0dbf8a9/
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Authorization:
11
+ - Token <TOKEN>
12
+ Content-Type:
13
+ - application/json
14
+ User-Agent:
15
+ - ruby-iwoca-0.1.1
16
+ Accept-Encoding:
17
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
18
+ Accept:
19
+ - "*/*"
20
+ response:
21
+ status:
22
+ code: 200
23
+ message: OK
24
+ headers:
25
+ Date:
26
+ - Thu, 30 Jan 2020 10:54:28 GMT
27
+ Content-Type:
28
+ - application/json; charset=utf-8
29
+ Transfer-Encoding:
30
+ - chunked
31
+ Connection:
32
+ - keep-alive
33
+ Server:
34
+ - nginx/1.15.12
35
+ Vary:
36
+ - Accept-Encoding
37
+ - Cookie
38
+ X-State-Key:
39
+ - 12369240-4803-49e3-89cd-526aa0dbf8a9
40
+ Expires:
41
+ - Thu, 30 Jan 2020 10:54:28 GMT
42
+ Cache-Control:
43
+ - max-age=0, no-cache, no-store, must-revalidate
44
+ - public, max-age=0, must-revalidate
45
+ X-Partner:
46
+ - finpoint-dev
47
+ X-Content-Type-Options:
48
+ - nosniff
49
+ X-Xss-Protection:
50
+ - 1; mode=block
51
+ X-Frame-Options:
52
+ - SAMEORIGIN
53
+ Set-Cookie:
54
+ - isLoggedIn=True; Path=/
55
+ - sessionid_access=691ed440-8ca7-47d4-90e9-1b38e9fc58c0; expires=Fri, 29-Jan-2021
56
+ 10:54:28 GMT; HttpOnly; Max-Age=31536000; Path=/
57
+ - uid=rBEABF4yteQZzAAlA/ewAg==; expires=Thu, 31-Dec-37 23:55:55 GMT; domain=.iwoca-dev.co.uk;
58
+ path=/
59
+ Strict-Transport-Security:
60
+ - max-age=31536000; includeSubDomains
61
+ body:
62
+ encoding: ASCII-8BIT
63
+ string: '{"data": {"balance": {"principal": 0.0, "interest": 0.0, "product_fees":
64
+ 0.0, "other_fees": 0.0, "total": 0.0}, "latest_approval_request": {"status":
65
+ "decision_made"}, "approval_status": {"status": "declined"}, "approval_requirements":
66
+ [{"type": "cc", "status": "required"}, {"type": "bus_cc", "status": "required"},
67
+ {"type": "dir_guarantor", "status": "required"}, {"type": "enhanced_security_check",
68
+ "status": "pending"}], "funding_requirements": [{"status": "required", "type":
69
+ "fraud"}, {"type": "docs", "status": "required"}, {"type": "enhanced_security_check",
70
+ "status": "pending"}]}}'
71
+ http_version:
72
+ recorded_at: Thu, 30 Jan 2020 10:54:28 GMT
73
+ recorded_with: VCR 5.0.0
@@ -0,0 +1,65 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://stage.iwoca-dev.co.uk/api/lending/v1/credit_facility_status/00000000-df68-421a-8108-f7cec4902c00/
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Authorization:
11
+ - Token <TOKEN>
12
+ Content-Type:
13
+ - application/json
14
+ User-Agent:
15
+ - ruby-iwoca-0.1.0
16
+ Accept-Encoding:
17
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
18
+ Accept:
19
+ - "*/*"
20
+ response:
21
+ status:
22
+ code: 404
23
+ message: Not Found
24
+ headers:
25
+ Date:
26
+ - Fri, 24 Jan 2020 14:42:09 GMT
27
+ Content-Type:
28
+ - application/json; charset=utf-8
29
+ Content-Length:
30
+ - '91'
31
+ Connection:
32
+ - keep-alive
33
+ Server:
34
+ - nginx/1.15.12
35
+ X-State-Key:
36
+ - 00000000-df68-421a-8108-f7cec4902c00
37
+ Expires:
38
+ - Fri, 24 Jan 2020 14:42:09 GMT
39
+ Cache-Control:
40
+ - max-age=0, no-cache, no-store, must-revalidate
41
+ X-Partner:
42
+ - finpoint-dev
43
+ X-Content-Type-Options:
44
+ - nosniff
45
+ X-Xss-Protection:
46
+ - 1; mode=block
47
+ X-Frame-Options:
48
+ - SAMEORIGIN
49
+ Vary:
50
+ - Cookie
51
+ Set-Cookie:
52
+ - isLoggedIn=True; Path=/
53
+ - sessionid_access=1422abae-d833-4e49-ae7d-dcdd6c8cb142; expires=Sat, 23-Jan-2021
54
+ 14:42:09 GMT; HttpOnly; Max-Age=31536000; Path=/
55
+ - uid=rBEABF4rAkEZzAAlAwazAg==; expires=Thu, 31-Dec-37 23:55:55 GMT; domain=.iwoca-dev.co.uk;
56
+ path=/
57
+ Strict-Transport-Security:
58
+ - max-age=31536000; includeSubDomains
59
+ body:
60
+ encoding: UTF-8
61
+ string: '{"errors": [{"code": "NotFound", "detail": "No \"state key\" found
62
+ matching that query."}]}'
63
+ http_version:
64
+ recorded_at: Fri, 24 Jan 2020 14:42:09 GMT
65
+ recorded_with: VCR 5.0.0
@@ -0,0 +1,73 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://stage.iwoca-dev.co.uk/api/lending/v1/credit_facility_status/1acd6198-df68-421a-8108-f7cec4902c00/
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Authorization:
11
+ - Token <TOKEN>
12
+ Content-Type:
13
+ - application/json
14
+ User-Agent:
15
+ - ruby-iwoca-0.1.1
16
+ Accept-Encoding:
17
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
18
+ Accept:
19
+ - "*/*"
20
+ response:
21
+ status:
22
+ code: 200
23
+ message: OK
24
+ headers:
25
+ Date:
26
+ - Thu, 30 Jan 2020 10:38:13 GMT
27
+ Content-Type:
28
+ - application/json; charset=utf-8
29
+ Transfer-Encoding:
30
+ - chunked
31
+ Connection:
32
+ - keep-alive
33
+ Server:
34
+ - nginx/1.15.12
35
+ Vary:
36
+ - Accept-Encoding
37
+ - Cookie
38
+ X-State-Key:
39
+ - 1acd6198-df68-421a-8108-f7cec4902c00
40
+ Expires:
41
+ - Thu, 30 Jan 2020 10:38:13 GMT
42
+ Cache-Control:
43
+ - max-age=0, no-cache, no-store, must-revalidate
44
+ - public, max-age=0, must-revalidate
45
+ X-Partner:
46
+ - finpoint-dev
47
+ X-Content-Type-Options:
48
+ - nosniff
49
+ X-Xss-Protection:
50
+ - 1; mode=block
51
+ X-Frame-Options:
52
+ - SAMEORIGIN
53
+ Set-Cookie:
54
+ - isLoggedIn=True; Path=/
55
+ - sessionid_access=831256d8-1bda-4969-ab4f-3188a4bd07c9; expires=Fri, 29-Jan-2021
56
+ 10:38:13 GMT; HttpOnly; Max-Age=31536000; Path=/
57
+ - uid=rBEABF4yshUZzAAlA/cRAg==; expires=Thu, 31-Dec-37 23:55:55 GMT; domain=.iwoca-dev.co.uk;
58
+ path=/
59
+ Strict-Transport-Security:
60
+ - max-age=31536000; includeSubDomains
61
+ body:
62
+ encoding: ASCII-8BIT
63
+ string: '{"data": {"balance": {"principal": 0.0, "interest": 0.0, "product_fees":
64
+ 0.0, "other_fees": 0.0, "total": 0.0}, "latest_approval_request": {"status":
65
+ "no_decision_possible"}, "approval_requirements": [{"type": "cc", "status":
66
+ "required"}, {"type": "bus_cc", "status": "required"}, {"type": "dir_guarantor",
67
+ "status": "required"}, {"type": "enhanced_security_check", "status": "pending"}],
68
+ "funding_requirements": [{"status": "required", "type": "fraud"}, {"type":
69
+ "docs", "status": "required"}, {"type": "enhanced_security_check", "status":
70
+ "pending"}]}}'
71
+ http_version:
72
+ recorded_at: Thu, 30 Jan 2020 10:38:13 GMT
73
+ recorded_with: VCR 5.0.0
@@ -0,0 +1,73 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://stage.iwoca-dev.co.uk/api/lending/v1/credit_facility_status/1acd6198-df68-421a-8108-f7cec4902c00/
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Authorization:
11
+ - Token <TOKEN>
12
+ Content-Type:
13
+ - application/json
14
+ User-Agent:
15
+ - ruby-iwoca-0.1.0
16
+ Accept-Encoding:
17
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
18
+ Accept:
19
+ - "*/*"
20
+ response:
21
+ status:
22
+ code: 200
23
+ message: OK
24
+ headers:
25
+ Date:
26
+ - Fri, 24 Jan 2020 14:42:08 GMT
27
+ Content-Type:
28
+ - application/json; charset=utf-8
29
+ Transfer-Encoding:
30
+ - chunked
31
+ Connection:
32
+ - keep-alive
33
+ Server:
34
+ - nginx/1.15.12
35
+ Vary:
36
+ - Accept-Encoding
37
+ - Cookie
38
+ X-State-Key:
39
+ - 1acd6198-df68-421a-8108-f7cec4902c00
40
+ Expires:
41
+ - Fri, 24 Jan 2020 14:42:08 GMT
42
+ Cache-Control:
43
+ - max-age=0, no-cache, no-store, must-revalidate
44
+ - public, max-age=0, must-revalidate
45
+ X-Partner:
46
+ - finpoint-dev
47
+ X-Content-Type-Options:
48
+ - nosniff
49
+ X-Xss-Protection:
50
+ - 1; mode=block
51
+ X-Frame-Options:
52
+ - SAMEORIGIN
53
+ Set-Cookie:
54
+ - isLoggedIn=True; Path=/
55
+ - sessionid_access=ece0a980-2286-4032-9cd7-92898ef53050; expires=Sat, 23-Jan-2021
56
+ 14:42:08 GMT; HttpOnly; Max-Age=31536000; Path=/
57
+ - uid=rBEABF4rAkAZzAAlAwayAg==; expires=Thu, 31-Dec-37 23:55:55 GMT; domain=.iwoca-dev.co.uk;
58
+ path=/
59
+ Strict-Transport-Security:
60
+ - max-age=31536000; includeSubDomains
61
+ body:
62
+ encoding: ASCII-8BIT
63
+ string: '{"data": {"balance": {"principal": 0.0, "interest": 0.0, "product_fees":
64
+ 0.0, "other_fees": 0.0, "total": 0.0}, "latest_approval_request": {"status":
65
+ "no_decision_possible"}, "approval_requirements": [{"type": "cc", "status":
66
+ "required"}, {"type": "bus_cc", "status": "required"}, {"type": "dir_guarantor",
67
+ "status": "required"}, {"type": "enhanced_security_check", "status": "pending"}],
68
+ "funding_requirements": [{"status": "required", "type": "fraud"}, {"type":
69
+ "docs", "status": "required"}, {"type": "enhanced_security_check", "status":
70
+ "pending"}]}}'
71
+ http_version:
72
+ recorded_at: Fri, 24 Jan 2020 14:42:08 GMT
73
+ recorded_with: VCR 5.0.0
@@ -0,0 +1,65 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://stage.iwoca-dev.co.uk/api/lending/v1/login_link/00000000-df68-421a-8108-f7cec4902c00/
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Authorization:
11
+ - Token <TOKEN>
12
+ Content-Type:
13
+ - application/json
14
+ User-Agent:
15
+ - ruby-iwoca-0.1.0
16
+ Accept-Encoding:
17
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
18
+ Accept:
19
+ - "*/*"
20
+ response:
21
+ status:
22
+ code: 404
23
+ message: Not Found
24
+ headers:
25
+ Date:
26
+ - Fri, 24 Jan 2020 14:39:27 GMT
27
+ Content-Type:
28
+ - application/json; charset=utf-8
29
+ Content-Length:
30
+ - '91'
31
+ Connection:
32
+ - keep-alive
33
+ Server:
34
+ - nginx/1.15.12
35
+ X-State-Key:
36
+ - 00000000-df68-421a-8108-f7cec4902c00
37
+ Expires:
38
+ - Fri, 24 Jan 2020 14:39:27 GMT
39
+ Cache-Control:
40
+ - max-age=0, no-cache, no-store, must-revalidate
41
+ X-Partner:
42
+ - finpoint-dev
43
+ X-Content-Type-Options:
44
+ - nosniff
45
+ X-Xss-Protection:
46
+ - 1; mode=block
47
+ X-Frame-Options:
48
+ - SAMEORIGIN
49
+ Vary:
50
+ - Cookie
51
+ Set-Cookie:
52
+ - isLoggedIn=True; Path=/
53
+ - sessionid_access=723e7931-cdec-4f61-9876-1d7c1227d8cc; expires=Sat, 23-Jan-2021
54
+ 14:39:27 GMT; HttpOnly; Max-Age=31536000; Path=/
55
+ - uid=rBEABF4rAZ8ZzAAlAwaiAg==; expires=Thu, 31-Dec-37 23:55:55 GMT; domain=.iwoca-dev.co.uk;
56
+ path=/
57
+ Strict-Transport-Security:
58
+ - max-age=31536000; includeSubDomains
59
+ body:
60
+ encoding: UTF-8
61
+ string: '{"errors": [{"code": "NotFound", "detail": "No \"state key\" found
62
+ matching that query."}]}'
63
+ http_version:
64
+ recorded_at: Fri, 24 Jan 2020 14:39:27 GMT
65
+ recorded_with: VCR 5.0.0