youlend 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,169 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://staging.youlendapi.com/prequalification/Requests/
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"companyName":"Test company","companyType":"ltd","companyNumber":"09525857","financialData":{"monthlyCardRevenue":0,"monthlyValueOfPurchaseTransactions":0,"monthlyRevenueFromInvoices":0,"paymentData":[{"paymentDate":"2020-01-01","amount":5000,"currencyISOCode":"GBP"},{"paymentDate":"2020-02-01","amount":5000,"currencyISOCode":"GBP"},{"paymentDate":"2020-03-01","amount":5000,"currencyISOCode":"GBP"},{"paymentDate":"2020-04-01","amount":5000,"currencyISOCode":"GBP"},{"paymentDate":"2020-05-01","amount":5000,"currencyISOCode":"GBP"},{"paymentDate":"2020-06-01","amount":5000,"currencyISOCode":"GBP"},{"paymentDate":"2020-07-01","amount":5000,"currencyISOCode":"GBP"},{"paymentDate":"2020-08-01","amount":5000,"currencyISOCode":"GBP"},{"paymentDate":"2020-09-01","amount":5000,"currencyISOCode":"GBP"},{"paymentDate":"2020-10-01","amount":5000,"currencyISOCode":"GBP"},{"paymentDate":"2020-11-01","amount":5000,"currencyISOCode":"GBP"},{"paymentDate":"2020-12-01","amount":5000,"currencyISOCode":"GBP"}]},"countryISOCode":"GBR","loanCurrencyISOCode":"GBP","thirdPartyMerchantId":"b97b0834-74e5-4da6-a3df-c8dbe017fe09","significantPersons":[{"firstName":"Jarrett","surname":"Hauck","address":{"line1":"95590
9
+ Nolan Ridge","line2":"Suite 597","city":"London","region":"London","areaCode":"A3G
10
+ 0SL","country":"UK"},"dateOfBirth":"1980-01-01"}],"contactEmailAddress":"oterosantos@gmail.com"}'
11
+ headers:
12
+ Content-Type:
13
+ - application/json
14
+ User-Agent:
15
+ - ruby-youlend-1.0.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: 401
23
+ message: Unauthorized
24
+ headers:
25
+ Date:
26
+ - Tue, 02 Feb 2021 16:57:56 GMT
27
+ Server:
28
+ - Microsoft-IIS/10.0
29
+ Www-Authenticate:
30
+ - Bearer
31
+ X-Powered-By:
32
+ - ASP.NET
33
+ Transfer-Encoding:
34
+ - chunked
35
+ Connection:
36
+ - keep-alive
37
+ body:
38
+ encoding: UTF-8
39
+ string: ''
40
+ http_version:
41
+ recorded_at: Tue, 02 Feb 2021 16:57:57 GMT
42
+ - request:
43
+ method: post
44
+ uri: https://youlend-stag.eu.auth0.com/oauth/token
45
+ body:
46
+ encoding: UTF-8
47
+ string: '{"grant_type":"client_credentials","client_id":"<CLIENT_ID>","client_secret":"<CLIENT_SECRET>","audience":"https://staging.youlendapi.com/prequalification"}'
48
+ headers:
49
+ Content-Type:
50
+ - application/json
51
+ User-Agent:
52
+ - ruby-youlend-1.0.0
53
+ Accept-Encoding:
54
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
55
+ Accept:
56
+ - "*/*"
57
+ response:
58
+ status:
59
+ code: 200
60
+ message: OK
61
+ headers:
62
+ Date:
63
+ - Tue, 02 Feb 2021 16:57:57 GMT
64
+ Content-Type:
65
+ - application/json
66
+ Transfer-Encoding:
67
+ - chunked
68
+ Connection:
69
+ - keep-alive
70
+ Set-Cookie:
71
+ - __cf_bm=aad179c3f5d6fb3f39ef0615e11e6e666242df9f-1612285077-1800-Aad3BY9UYvZdElUVfmiijTjYefxpcoXzxJBnkSXHGsz8ZQcOv3Z4X+0aUxDNyC34FyhQfD8subLB3xYfNbnZSY0=;
72
+ path=/; expires=Tue, 02-Feb-21 17:27:57 GMT; domain=.eu.auth0.com; HttpOnly;
73
+ Secure; SameSite=None
74
+ - __cfduid=d0f7c4e244e4e7c17a329125e60a45ad71612285077; expires=Thu, 04-Mar-21
75
+ 16:57:57 GMT; path=/; domain=.eu.auth0.com; HttpOnly; SameSite=Lax; Secure
76
+ - did=s%3Av0%3Acc9bac80-6577-11eb-b513-af686525a903.RefjK2nt71PxQlLEQe0rpKlmKXlAxcV%2FLvF7T0ebDug;
77
+ Max-Age=31557600; Path=/; Expires=Wed, 02 Feb 2022 22:57:57 GMT; HttpOnly;
78
+ Secure; SameSite=None
79
+ - did_compat=s%3Av0%3Acc9bac80-6577-11eb-b513-af686525a903.RefjK2nt71PxQlLEQe0rpKlmKXlAxcV%2FLvF7T0ebDug;
80
+ Max-Age=31557600; Path=/; Expires=Wed, 02 Feb 2022 22:57:57 GMT; HttpOnly;
81
+ Secure
82
+ Cf-Ray:
83
+ - 61b574443a835d43-LIS
84
+ Cache-Control:
85
+ - no-store
86
+ Strict-Transport-Security:
87
+ - max-age=31536000
88
+ Vary:
89
+ - Accept-Encoding
90
+ Cf-Cache-Status:
91
+ - DYNAMIC
92
+ Cf-Request-Id:
93
+ - '080546fea100005d439a8d2000000001'
94
+ Expect-Ct:
95
+ - max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
96
+ Ot-Baggage-Auth0-Request-Id:
97
+ - 61b574443a835d43
98
+ Ot-Tracer-Sampled:
99
+ - 'true'
100
+ Ot-Tracer-Spanid:
101
+ - 4d2824056702a667
102
+ Ot-Tracer-Traceid:
103
+ - 52f88ab31e0c676a
104
+ Pragma:
105
+ - no-cache
106
+ X-Auth0-Requestid:
107
+ - cbe70d28be5440b9dc2d
108
+ X-Content-Type-Options:
109
+ - nosniff
110
+ X-Ratelimit-Limit:
111
+ - '30'
112
+ X-Ratelimit-Remaining:
113
+ - '29'
114
+ X-Ratelimit-Reset:
115
+ - '1612285078'
116
+ Server:
117
+ - cloudflare
118
+ Alt-Svc:
119
+ - h3-27=":443"; ma=86400, h3-28=":443"; ma=86400, h3-29=":443"; ma=86400
120
+ body:
121
+ encoding: ASCII-8BIT
122
+ string: '{"access_token":"eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6Ik0wUXdOMEl5TnpRMVJrRXhNa1pGTlVWRU5UQTJRalV6UWtRMVJUY3dORE0xUVVVM05rTkVRZyJ9.eyJodHRwOi8veW91bGVuZC5jb20vY2xhaW1zL2xlbmRpbmdQYXJ0bmVySWQiOiJkOGJmZTcwMy1lODBlLTRlMzUtYmFhYS1mZDk2MWU3ZGZlZTkiLCJpc3MiOiJodHRwczovL3lvdWxlbmQtc3RhZy5ldS5hdXRoMC5jb20vIiwic3ViIjoidXpLVEcyQ0NBZkFZQ0pGU0I3N3ZXRlVOelVOOHZxdlhAY2xpZW50cyIsImF1ZCI6Imh0dHBzOi8vc3RhZ2luZy55b3VsZW5kYXBpLmNvbS9wcmVxdWFsaWZpY2F0aW9uIiwiaWF0IjoxNjEyMjg1MDc3LCJleHAiOjE2MTIzNzE0NzcsImF6cCI6InV6S1RHMkNDQWZBWUNKRlNCNzd2V0ZVTnpVTjh2cXZYIiwiZ3R5IjoiY2xpZW50LWNyZWRlbnRpYWxzIn0.QuF9CeXZk0Bt6mgq6YoLkM43kxL26hc1ybyEmLiLL1hD7BXhhPrNQltmNxyb0vDO088VkA3_BPs64yKX_HjquwtcXhy83Rpv5hWS8ETMdPnTchxH0Vy7Cc6nGxB-48NoFBbyD-HS_wEL6V5_KFf_e-_M_pOxTsf9ubR76eNi309jYy4aS7SCheTz6p_0ro6m12ILyYhR8EXSgtxI_OgGITdbHqk8nql1BdnPCEaaZ5GkRvZaOBSEooNai3YxcuZQkTTh_UkGIVNCA-VzPxNai62iiNWb1DiFRQOZCvSp7yNos4yZvbWo44QO8jPslWuc9Taw-jpoLykvlR0vlXYhhQ","expires_in":86400,"token_type":"Bearer"}'
123
+ http_version:
124
+ recorded_at: Tue, 02 Feb 2021 16:57:57 GMT
125
+ - request:
126
+ method: post
127
+ uri: https://staging.youlendapi.com/prequalification/Requests/
128
+ body:
129
+ encoding: UTF-8
130
+ string: '{"companyName":"Test company","companyType":"ltd","companyNumber":"09525857","financialData":{"monthlyCardRevenue":0,"monthlyValueOfPurchaseTransactions":0,"monthlyRevenueFromInvoices":0,"paymentData":[{"paymentDate":"2020-01-01","amount":5000,"currencyISOCode":"GBP"},{"paymentDate":"2020-02-01","amount":5000,"currencyISOCode":"GBP"},{"paymentDate":"2020-03-01","amount":5000,"currencyISOCode":"GBP"},{"paymentDate":"2020-04-01","amount":5000,"currencyISOCode":"GBP"},{"paymentDate":"2020-05-01","amount":5000,"currencyISOCode":"GBP"},{"paymentDate":"2020-06-01","amount":5000,"currencyISOCode":"GBP"},{"paymentDate":"2020-07-01","amount":5000,"currencyISOCode":"GBP"},{"paymentDate":"2020-08-01","amount":5000,"currencyISOCode":"GBP"},{"paymentDate":"2020-09-01","amount":5000,"currencyISOCode":"GBP"},{"paymentDate":"2020-10-01","amount":5000,"currencyISOCode":"GBP"},{"paymentDate":"2020-11-01","amount":5000,"currencyISOCode":"GBP"},{"paymentDate":"2020-12-01","amount":5000,"currencyISOCode":"GBP"}]},"countryISOCode":"GBR","loanCurrencyISOCode":"GBP","thirdPartyMerchantId":"b97b0834-74e5-4da6-a3df-c8dbe017fe09","significantPersons":[{"firstName":"Jarrett","surname":"Hauck","address":{"line1":"95590
131
+ Nolan Ridge","line2":"Suite 597","city":"London","region":"London","areaCode":"A3G
132
+ 0SL","country":"UK"},"dateOfBirth":"1980-01-01"}],"contactEmailAddress":"oterosantos@gmail.com"}'
133
+ headers:
134
+ Authorization:
135
+ - Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6Ik0wUXdOMEl5TnpRMVJrRXhNa1pGTlVWRU5UQTJRalV6UWtRMVJUY3dORE0xUVVVM05rTkVRZyJ9.eyJodHRwOi8veW91bGVuZC5jb20vY2xhaW1zL2xlbmRpbmdQYXJ0bmVySWQiOiJkOGJmZTcwMy1lODBlLTRlMzUtYmFhYS1mZDk2MWU3ZGZlZTkiLCJpc3MiOiJodHRwczovL3lvdWxlbmQtc3RhZy5ldS5hdXRoMC5jb20vIiwic3ViIjoidXpLVEcyQ0NBZkFZQ0pGU0I3N3ZXRlVOelVOOHZxdlhAY2xpZW50cyIsImF1ZCI6Imh0dHBzOi8vc3RhZ2luZy55b3VsZW5kYXBpLmNvbS9wcmVxdWFsaWZpY2F0aW9uIiwiaWF0IjoxNjEyMjg1MDc3LCJleHAiOjE2MTIzNzE0NzcsImF6cCI6InV6S1RHMkNDQWZBWUNKRlNCNzd2V0ZVTnpVTjh2cXZYIiwiZ3R5IjoiY2xpZW50LWNyZWRlbnRpYWxzIn0.QuF9CeXZk0Bt6mgq6YoLkM43kxL26hc1ybyEmLiLL1hD7BXhhPrNQltmNxyb0vDO088VkA3_BPs64yKX_HjquwtcXhy83Rpv5hWS8ETMdPnTchxH0Vy7Cc6nGxB-48NoFBbyD-HS_wEL6V5_KFf_e-_M_pOxTsf9ubR76eNi309jYy4aS7SCheTz6p_0ro6m12ILyYhR8EXSgtxI_OgGITdbHqk8nql1BdnPCEaaZ5GkRvZaOBSEooNai3YxcuZQkTTh_UkGIVNCA-VzPxNai62iiNWb1DiFRQOZCvSp7yNos4yZvbWo44QO8jPslWuc9Taw-jpoLykvlR0vlXYhhQ
136
+ Content-Type:
137
+ - application/json
138
+ User-Agent:
139
+ - ruby-youlend-1.0.0
140
+ Accept-Encoding:
141
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
142
+ Accept:
143
+ - "*/*"
144
+ response:
145
+ status:
146
+ code: 200
147
+ message: OK
148
+ headers:
149
+ Api-Supported-Versions:
150
+ - '1.0'
151
+ Content-Type:
152
+ - application/json; charset=utf-8
153
+ Date:
154
+ - Tue, 02 Feb 2021 16:57:58 GMT
155
+ Server:
156
+ - Microsoft-IIS/10.0
157
+ X-Powered-By:
158
+ - ASP.NET
159
+ Transfer-Encoding:
160
+ - chunked
161
+ Connection:
162
+ - keep-alive
163
+ body:
164
+ encoding: UTF-8
165
+ string: '{"thirdPartyMerchantId":"b97b0834-74e5-4da6-a3df-c8dbe017fe09","mid":null,"companyName":"Test
166
+ company","overallCreditRiskScore":3.5,"overrideCreditRiskScore":1.0,"loanOptions":[{"fundedAmount":0.0,"fee":0.00,"loanAmount":0.00,"sweep":0.0,"currencyISOCode":"GBP"},{"fundedAmount":0.0,"fee":0.0,"loanAmount":0.0,"sweep":0.0,"currencyISOCode":"GBP"},{"fundedAmount":0.0,"fee":0.0,"loanAmount":0.0,"sweep":0.0,"currencyISOCode":"GBP"}]}'
167
+ http_version:
168
+ recorded_at: Tue, 02 Feb 2021 16:57:58 GMT
169
+ recorded_with: VCR 5.0.0
@@ -0,0 +1,167 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://staging.youlendapi.com/prequalification/Requests/
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"companyName":"HOKO LTD","companyType":"not_correct","companyNumber":"09525857","financialData":{"monthlyCardRevenue":0,"monthlyValueOfPurchaseTransactions":0,"monthlyRevenueFromInvoices":0,"paymentData":[{"paymentDate":"2020-01-01","amount":5000,"currencyISOCode":"GBP"},{"paymentDate":"2020-02-01","amount":5000,"currencyISOCode":"GBP"},{"paymentDate":"2020-03-01","amount":5000,"currencyISOCode":"GBP"},{"paymentDate":"2020-04-01","amount":5000,"currencyISOCode":"GBP"},{"paymentDate":"2020-05-01","amount":5000,"currencyISOCode":"GBP"},{"paymentDate":"2020-06-01","amount":5000,"currencyISOCode":"GBP"},{"paymentDate":"2020-07-01","amount":5000,"currencyISOCode":"GBP"},{"paymentDate":"2020-08-01","amount":5000,"currencyISOCode":"GBP"},{"paymentDate":"2020-09-01","amount":5000,"currencyISOCode":"GBP"},{"paymentDate":"2020-10-01","amount":5000,"currencyISOCode":"GBP"},{"paymentDate":"2020-11-01","amount":5000,"currencyISOCode":"GBP"},{"paymentDate":"2020-12-01","amount":5000,"currencyISOCode":"GBP"}]},"countryISOCode":"GBR","loanCurrencyISOCode":"GBP","thirdPartyMerchantId":"862b8bf8-2bfa-4f68-a5ff-34d73d3c50e8","significantPersons":[{"firstName":"Clint","surname":"Considine","address":{"line1":"922
9
+ Zulauf Union","line2":"Apt. 561","city":"London","region":"London","areaCode":"Z8E
10
+ 3QF","country":"UK"},"dateOfBirth":"1980-01-01"}],"contactEmailAddress":"oterosantos@gmail.com"}'
11
+ headers:
12
+ Content-Type:
13
+ - application/json
14
+ User-Agent:
15
+ - ruby-youlend-1.0.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: 401
23
+ message: Unauthorized
24
+ headers:
25
+ Date:
26
+ - Tue, 02 Feb 2021 16:57:01 GMT
27
+ Server:
28
+ - Microsoft-IIS/10.0
29
+ Www-Authenticate:
30
+ - Bearer
31
+ X-Powered-By:
32
+ - ASP.NET
33
+ Transfer-Encoding:
34
+ - chunked
35
+ Connection:
36
+ - keep-alive
37
+ body:
38
+ encoding: UTF-8
39
+ string: ''
40
+ http_version:
41
+ recorded_at: Tue, 02 Feb 2021 16:57:01 GMT
42
+ - request:
43
+ method: post
44
+ uri: https://youlend-stag.eu.auth0.com/oauth/token
45
+ body:
46
+ encoding: UTF-8
47
+ string: '{"grant_type":"client_credentials","client_id":"<CLIENT_ID>","client_secret":"<CLIENT_SECRET>","audience":"https://staging.youlendapi.com/prequalification"}'
48
+ headers:
49
+ Content-Type:
50
+ - application/json
51
+ User-Agent:
52
+ - ruby-youlend-1.0.0
53
+ Accept-Encoding:
54
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
55
+ Accept:
56
+ - "*/*"
57
+ response:
58
+ status:
59
+ code: 200
60
+ message: OK
61
+ headers:
62
+ Date:
63
+ - Tue, 02 Feb 2021 16:57:02 GMT
64
+ Content-Type:
65
+ - application/json
66
+ Transfer-Encoding:
67
+ - chunked
68
+ Connection:
69
+ - keep-alive
70
+ Set-Cookie:
71
+ - __cf_bm=cfc999ddd823922664744d4bddfcce2ef4d27a14-1612285022-1800-AWyLoV5Q57agmDdcTCfplTC3wUAz/jJUgTGilqSQ4EnMX5nnRCtePj58zbx4UwXmWsDYaT8e+M6g7xt42CQ1q3Q=;
72
+ path=/; expires=Tue, 02-Feb-21 17:27:02 GMT; domain=.eu.auth0.com; HttpOnly;
73
+ Secure; SameSite=None
74
+ - __cfduid=d03ed6541fbe83d7f3011536c1e9172b21612285022; expires=Thu, 04-Mar-21
75
+ 16:57:02 GMT; path=/; domain=.eu.auth0.com; HttpOnly; SameSite=Lax; Secure
76
+ - did=s%3Av0%3Aabbdfa40-6577-11eb-a690-5531d10f169e.oYs5o%2FJqzI99%2Bi2eidqwS1lyJw%2FWNqpOSp%2BDrAnq%2BP8;
77
+ Max-Age=31557600; Path=/; Expires=Wed, 02 Feb 2022 22:57:02 GMT; HttpOnly;
78
+ Secure; SameSite=None
79
+ - did_compat=s%3Av0%3Aabbdfa40-6577-11eb-a690-5531d10f169e.oYs5o%2FJqzI99%2Bi2eidqwS1lyJw%2FWNqpOSp%2BDrAnq%2BP8;
80
+ Max-Age=31557600; Path=/; Expires=Wed, 02 Feb 2022 22:57:02 GMT; HttpOnly;
81
+ Secure
82
+ Cf-Ray:
83
+ - 61b572ec0a10da76-LIS
84
+ Cache-Control:
85
+ - no-store
86
+ Strict-Transport-Security:
87
+ - max-age=31536000
88
+ Vary:
89
+ - Accept-Encoding
90
+ Cf-Cache-Status:
91
+ - DYNAMIC
92
+ Cf-Request-Id:
93
+ - '080546279a0000da7638a8f000000001'
94
+ Expect-Ct:
95
+ - max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
96
+ Ot-Baggage-Auth0-Request-Id:
97
+ - 61b572ec0a10da76
98
+ Ot-Tracer-Sampled:
99
+ - 'true'
100
+ Ot-Tracer-Spanid:
101
+ - 43f9dd9716974d0a
102
+ Ot-Tracer-Traceid:
103
+ - 59c83f192ed4ee0b
104
+ Pragma:
105
+ - no-cache
106
+ X-Auth0-Requestid:
107
+ - bc080831442c672d7dff
108
+ X-Content-Type-Options:
109
+ - nosniff
110
+ X-Ratelimit-Limit:
111
+ - '30'
112
+ X-Ratelimit-Remaining:
113
+ - '29'
114
+ X-Ratelimit-Reset:
115
+ - '1612285023'
116
+ Server:
117
+ - cloudflare
118
+ Alt-Svc:
119
+ - h3-27=":443"; ma=86400, h3-28=":443"; ma=86400, h3-29=":443"; ma=86400
120
+ body:
121
+ encoding: ASCII-8BIT
122
+ string: '{"access_token":"eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6Ik0wUXdOMEl5TnpRMVJrRXhNa1pGTlVWRU5UQTJRalV6UWtRMVJUY3dORE0xUVVVM05rTkVRZyJ9.eyJodHRwOi8veW91bGVuZC5jb20vY2xhaW1zL2xlbmRpbmdQYXJ0bmVySWQiOiJkOGJmZTcwMy1lODBlLTRlMzUtYmFhYS1mZDk2MWU3ZGZlZTkiLCJpc3MiOiJodHRwczovL3lvdWxlbmQtc3RhZy5ldS5hdXRoMC5jb20vIiwic3ViIjoidXpLVEcyQ0NBZkFZQ0pGU0I3N3ZXRlVOelVOOHZxdlhAY2xpZW50cyIsImF1ZCI6Imh0dHBzOi8vc3RhZ2luZy55b3VsZW5kYXBpLmNvbS9wcmVxdWFsaWZpY2F0aW9uIiwiaWF0IjoxNjEyMjg1MDIyLCJleHAiOjE2MTIzNzE0MjIsImF6cCI6InV6S1RHMkNDQWZBWUNKRlNCNzd2V0ZVTnpVTjh2cXZYIiwiZ3R5IjoiY2xpZW50LWNyZWRlbnRpYWxzIn0.It-BY_77s_40ToKr9b0p2e43eTH_Olpr0_sqdSPCA_WRgQy6hIhAsafnR3h_7DJ2XdU7JKvYzS_h_cmfhmovRPABvJCrbwg5YAmd1NrfGNKg-hxy5giN8sSyz7BPLdsTv4s8EBhgDH0M9-kiiz59ERT4HjaA4p7btnxQm7Ft-JWHfN2Sbf4WcnPu-xvtZIvyAtpD86kt0ZpzhJwRIHGvcNsUf_YlJ5w8xEOQeR-JzBf1cnioCahy5pRXVS3rsvUIIH1dHffneqaa-1xJo3oIqJSbatI9k3ikaD3R8vL90dVookIUdU1_7PgrgC3D3CSd3slWdtQNndN25hVYslSiCg","expires_in":86400,"token_type":"Bearer"}'
123
+ http_version:
124
+ recorded_at: Tue, 02 Feb 2021 16:57:02 GMT
125
+ - request:
126
+ method: post
127
+ uri: https://staging.youlendapi.com/prequalification/Requests/
128
+ body:
129
+ encoding: UTF-8
130
+ string: '{"companyName":"HOKO LTD","companyType":"not_correct","companyNumber":"09525857","financialData":{"monthlyCardRevenue":0,"monthlyValueOfPurchaseTransactions":0,"monthlyRevenueFromInvoices":0,"paymentData":[{"paymentDate":"2020-01-01","amount":5000,"currencyISOCode":"GBP"},{"paymentDate":"2020-02-01","amount":5000,"currencyISOCode":"GBP"},{"paymentDate":"2020-03-01","amount":5000,"currencyISOCode":"GBP"},{"paymentDate":"2020-04-01","amount":5000,"currencyISOCode":"GBP"},{"paymentDate":"2020-05-01","amount":5000,"currencyISOCode":"GBP"},{"paymentDate":"2020-06-01","amount":5000,"currencyISOCode":"GBP"},{"paymentDate":"2020-07-01","amount":5000,"currencyISOCode":"GBP"},{"paymentDate":"2020-08-01","amount":5000,"currencyISOCode":"GBP"},{"paymentDate":"2020-09-01","amount":5000,"currencyISOCode":"GBP"},{"paymentDate":"2020-10-01","amount":5000,"currencyISOCode":"GBP"},{"paymentDate":"2020-11-01","amount":5000,"currencyISOCode":"GBP"},{"paymentDate":"2020-12-01","amount":5000,"currencyISOCode":"GBP"}]},"countryISOCode":"GBR","loanCurrencyISOCode":"GBP","thirdPartyMerchantId":"862b8bf8-2bfa-4f68-a5ff-34d73d3c50e8","significantPersons":[{"firstName":"Clint","surname":"Considine","address":{"line1":"922
131
+ Zulauf Union","line2":"Apt. 561","city":"London","region":"London","areaCode":"Z8E
132
+ 3QF","country":"UK"},"dateOfBirth":"1980-01-01"}],"contactEmailAddress":"oterosantos@gmail.com"}'
133
+ headers:
134
+ Authorization:
135
+ - Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6Ik0wUXdOMEl5TnpRMVJrRXhNa1pGTlVWRU5UQTJRalV6UWtRMVJUY3dORE0xUVVVM05rTkVRZyJ9.eyJodHRwOi8veW91bGVuZC5jb20vY2xhaW1zL2xlbmRpbmdQYXJ0bmVySWQiOiJkOGJmZTcwMy1lODBlLTRlMzUtYmFhYS1mZDk2MWU3ZGZlZTkiLCJpc3MiOiJodHRwczovL3lvdWxlbmQtc3RhZy5ldS5hdXRoMC5jb20vIiwic3ViIjoidXpLVEcyQ0NBZkFZQ0pGU0I3N3ZXRlVOelVOOHZxdlhAY2xpZW50cyIsImF1ZCI6Imh0dHBzOi8vc3RhZ2luZy55b3VsZW5kYXBpLmNvbS9wcmVxdWFsaWZpY2F0aW9uIiwiaWF0IjoxNjEyMjg1MDIyLCJleHAiOjE2MTIzNzE0MjIsImF6cCI6InV6S1RHMkNDQWZBWUNKRlNCNzd2V0ZVTnpVTjh2cXZYIiwiZ3R5IjoiY2xpZW50LWNyZWRlbnRpYWxzIn0.It-BY_77s_40ToKr9b0p2e43eTH_Olpr0_sqdSPCA_WRgQy6hIhAsafnR3h_7DJ2XdU7JKvYzS_h_cmfhmovRPABvJCrbwg5YAmd1NrfGNKg-hxy5giN8sSyz7BPLdsTv4s8EBhgDH0M9-kiiz59ERT4HjaA4p7btnxQm7Ft-JWHfN2Sbf4WcnPu-xvtZIvyAtpD86kt0ZpzhJwRIHGvcNsUf_YlJ5w8xEOQeR-JzBf1cnioCahy5pRXVS3rsvUIIH1dHffneqaa-1xJo3oIqJSbatI9k3ikaD3R8vL90dVookIUdU1_7PgrgC3D3CSd3slWdtQNndN25hVYslSiCg
136
+ Content-Type:
137
+ - application/json
138
+ User-Agent:
139
+ - ruby-youlend-1.0.0
140
+ Accept-Encoding:
141
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
142
+ Accept:
143
+ - "*/*"
144
+ response:
145
+ status:
146
+ code: 422
147
+ message: Unprocessable Entity
148
+ headers:
149
+ Content-Type:
150
+ - application/json; charset=utf-8
151
+ Date:
152
+ - Tue, 02 Feb 2021 16:57:05 GMT
153
+ Server:
154
+ - Microsoft-IIS/10.0
155
+ X-Powered-By:
156
+ - ASP.NET
157
+ Transfer-Encoding:
158
+ - chunked
159
+ Connection:
160
+ - keep-alive
161
+ body:
162
+ encoding: UTF-8
163
+ string: '{"CompanyType":["The company type is invalid. Valid company types are
164
+ ltd, plc, llp, dac, partnership, soleTrader, aps, as, ks, ivs, is and enkeltmandsvirksomhed"]}'
165
+ http_version:
166
+ recorded_at: Tue, 02 Feb 2021 16:57:05 GMT
167
+ recorded_with: VCR 5.0.0
@@ -0,0 +1,164 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://staging.youlendapi.com/prequalification/Requests/
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"companyType":"soleTrader","companyName":"TestCompany","countryISOCode":"GBR","loanCurrencyISOCode":"GBP","thirdPartyMerchantId":"1234","financialData":{"paymentData":[{"PaymentDate":"2020-10-01","Amount":50,"currencyISOCode":"GBP"},{"PaymentDate":"2020-09-01","Amount":50,"currencyISOCode":"GBP"},{"PaymentDate":"2020-08-01","Amount":50,"currencyISOCode":"GBP"},{"PaymentDate":"2020-07-01","Amount":50,"currencyISOCode":"GBP"},{"PaymentDate":"2020-06-01","Amount":50,"currencyISOCode":"GBP"},{"PaymentDate":"2020-05-01","Amount":50,"currencyISOCode":"GBP"},{"PaymentDate":"2020-04-01","Amount":50,"currencyISOCode":"GBP"},{"PaymentDate":"2020-03-01","Amount":50,"currencyISOCode":"GBP"},{"PaymentDate":"2020-02-01","Amount":50,"currencyISOCode":"GBP"},{"PaymentDate":"2020-01-01","Amount":50,"currencyISOCode":"GBP"},{"PaymentDate":"2019-12-01","Amount":50,"currencyISOCode":"GBP"},{"PaymentDate":"2019-11-01","Amount":50,"currencyISOCode":"GBP"}]}}'
9
+ headers:
10
+ Content-Type:
11
+ - application/json
12
+ User-Agent:
13
+ - ruby-youlend-1.0.0
14
+ Accept-Encoding:
15
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
16
+ Accept:
17
+ - "*/*"
18
+ response:
19
+ status:
20
+ code: 401
21
+ message: Unauthorized
22
+ headers:
23
+ Date:
24
+ - Wed, 03 Feb 2021 14:36:25 GMT
25
+ Server:
26
+ - Microsoft-IIS/10.0
27
+ Www-Authenticate:
28
+ - Bearer
29
+ X-Powered-By:
30
+ - ASP.NET
31
+ Transfer-Encoding:
32
+ - chunked
33
+ Connection:
34
+ - keep-alive
35
+ body:
36
+ encoding: UTF-8
37
+ string: ''
38
+ http_version:
39
+ recorded_at: Wed, 03 Feb 2021 14:36:25 GMT
40
+ - request:
41
+ method: post
42
+ uri: https://youlend-stag.eu.auth0.com/oauth/token
43
+ body:
44
+ encoding: UTF-8
45
+ string: '{"grant_type":"client_credentials","client_id":"<CLIENT_ID>","client_secret":"<CLIENT_SECRET>","audience":"https://staging.youlendapi.com/prequalification"}'
46
+ headers:
47
+ Content-Type:
48
+ - application/json
49
+ User-Agent:
50
+ - ruby-youlend-1.0.0
51
+ Accept-Encoding:
52
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
53
+ Accept:
54
+ - "*/*"
55
+ response:
56
+ status:
57
+ code: 200
58
+ message: OK
59
+ headers:
60
+ Date:
61
+ - Wed, 03 Feb 2021 14:36:26 GMT
62
+ Content-Type:
63
+ - application/json
64
+ Transfer-Encoding:
65
+ - chunked
66
+ Connection:
67
+ - keep-alive
68
+ Set-Cookie:
69
+ - __cf_bm=235e30fc193309999ef89bca903fc5405b1c7568-1612362986-1800-Aa86rAdDlFuz86lAJ2Cn40ritESXL5QkrgoyrqAzzxzLaIuza+LHur1L/Ad2hYqFIMwk5Np8cQANZ29ouO1U79w=;
70
+ path=/; expires=Wed, 03-Feb-21 15:06:26 GMT; domain=.eu.auth0.com; HttpOnly;
71
+ Secure; SameSite=None
72
+ - __cfduid=d403a11f64ca9905d96b2a48e751bcae71612362985; expires=Fri, 05-Mar-21
73
+ 14:36:25 GMT; path=/; domain=.eu.auth0.com; HttpOnly; SameSite=Lax; Secure
74
+ - did=s%3Av0%3A31c81610-662d-11eb-babc-3b7b17fdefdd.wdYsqQ2zbHFmVR%2BZx5f3MP7w4NtWUbP5MupQeHv%2Beik;
75
+ Max-Age=31557600; Path=/; Expires=Thu, 03 Feb 2022 20:36:25 GMT; HttpOnly;
76
+ Secure; SameSite=None
77
+ - did_compat=s%3Av0%3A31c81610-662d-11eb-babc-3b7b17fdefdd.wdYsqQ2zbHFmVR%2BZx5f3MP7w4NtWUbP5MupQeHv%2Beik;
78
+ Max-Age=31557600; Path=/; Expires=Thu, 03 Feb 2022 20:36:26 GMT; HttpOnly;
79
+ Secure
80
+ Cf-Ray:
81
+ - 61bce2556f315d4b-LIS
82
+ Cache-Control:
83
+ - no-store
84
+ Strict-Transport-Security:
85
+ - max-age=31536000
86
+ Vary:
87
+ - Accept-Encoding
88
+ Cf-Cache-Status:
89
+ - DYNAMIC
90
+ Cf-Request-Id:
91
+ - '0809ebc96100005d4b1f9ea000000001'
92
+ Expect-Ct:
93
+ - max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
94
+ Ot-Baggage-Auth0-Request-Id:
95
+ - 61bce2556f315d4b
96
+ Ot-Tracer-Sampled:
97
+ - 'true'
98
+ Ot-Tracer-Spanid:
99
+ - 0c681fc563b7c0bf
100
+ Ot-Tracer-Traceid:
101
+ - 235ae9ed312caa2e
102
+ Pragma:
103
+ - no-cache
104
+ X-Auth0-Requestid:
105
+ - 5f1f5da57a94bc9dfd02
106
+ X-Content-Type-Options:
107
+ - nosniff
108
+ X-Ratelimit-Limit:
109
+ - '30'
110
+ X-Ratelimit-Remaining:
111
+ - '29'
112
+ X-Ratelimit-Reset:
113
+ - '1612362987'
114
+ Server:
115
+ - cloudflare
116
+ Alt-Svc:
117
+ - h3-27=":443"; ma=86400, h3-28=":443"; ma=86400, h3-29=":443"; ma=86400
118
+ body:
119
+ encoding: ASCII-8BIT
120
+ string: '{"access_token":"eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6Ik0wUXdOMEl5TnpRMVJrRXhNa1pGTlVWRU5UQTJRalV6UWtRMVJUY3dORE0xUVVVM05rTkVRZyJ9.eyJodHRwOi8veW91bGVuZC5jb20vY2xhaW1zL2xlbmRpbmdQYXJ0bmVySWQiOiJkOGJmZTcwMy1lODBlLTRlMzUtYmFhYS1mZDk2MWU3ZGZlZTkiLCJpc3MiOiJodHRwczovL3lvdWxlbmQtc3RhZy5ldS5hdXRoMC5jb20vIiwic3ViIjoidXpLVEcyQ0NBZkFZQ0pGU0I3N3ZXRlVOelVOOHZxdlhAY2xpZW50cyIsImF1ZCI6Imh0dHBzOi8vc3RhZ2luZy55b3VsZW5kYXBpLmNvbS9wcmVxdWFsaWZpY2F0aW9uIiwiaWF0IjoxNjEyMzYyOTg2LCJleHAiOjE2MTI0NDkzODYsImF6cCI6InV6S1RHMkNDQWZBWUNKRlNCNzd2V0ZVTnpVTjh2cXZYIiwiZ3R5IjoiY2xpZW50LWNyZWRlbnRpYWxzIn0.oJMaLz4MjPJ1vkHM8iH9KsaQavTaMmYwfku6TZ9J27a69zBCRfQmq-5yh7pi0pwQBaZF3e_XqOKZ54ZOZ_5SXssEXUS-G9g1o4czuHPkKhUWlB3ZXBDvvmO4XiKgkBcf3oU4WTHalmGFXbm2NA9Wa2GycTvzt1i8d5QTETKmF8lxrM_cjXWk2dud5d1jjGRaPY5XKu0on_zZvFRw1-3OzcbbCry_aPbdnha0_x40wPXhmfbxEf142MYr05Fc5P8dL_gtHqK21BIdX-isgdllLhcQiPYBveyTG7-NFdIkz1wFSbtzKN59Kf7qGS6tXJaDwTlr4nMZdz_DhTU2wYewqg","expires_in":86400,"token_type":"Bearer"}'
121
+ http_version:
122
+ recorded_at: Wed, 03 Feb 2021 14:36:26 GMT
123
+ - request:
124
+ method: post
125
+ uri: https://staging.youlendapi.com/prequalification/Requests/
126
+ body:
127
+ encoding: UTF-8
128
+ string: '{"companyType":"soleTrader","companyName":"TestCompany","countryISOCode":"GBR","loanCurrencyISOCode":"GBP","thirdPartyMerchantId":"1234","financialData":{"paymentData":[{"PaymentDate":"2020-10-01","Amount":50,"currencyISOCode":"GBP"},{"PaymentDate":"2020-09-01","Amount":50,"currencyISOCode":"GBP"},{"PaymentDate":"2020-08-01","Amount":50,"currencyISOCode":"GBP"},{"PaymentDate":"2020-07-01","Amount":50,"currencyISOCode":"GBP"},{"PaymentDate":"2020-06-01","Amount":50,"currencyISOCode":"GBP"},{"PaymentDate":"2020-05-01","Amount":50,"currencyISOCode":"GBP"},{"PaymentDate":"2020-04-01","Amount":50,"currencyISOCode":"GBP"},{"PaymentDate":"2020-03-01","Amount":50,"currencyISOCode":"GBP"},{"PaymentDate":"2020-02-01","Amount":50,"currencyISOCode":"GBP"},{"PaymentDate":"2020-01-01","Amount":50,"currencyISOCode":"GBP"},{"PaymentDate":"2019-12-01","Amount":50,"currencyISOCode":"GBP"},{"PaymentDate":"2019-11-01","Amount":50,"currencyISOCode":"GBP"}]}}'
129
+ headers:
130
+ Authorization:
131
+ - Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6Ik0wUXdOMEl5TnpRMVJrRXhNa1pGTlVWRU5UQTJRalV6UWtRMVJUY3dORE0xUVVVM05rTkVRZyJ9.eyJodHRwOi8veW91bGVuZC5jb20vY2xhaW1zL2xlbmRpbmdQYXJ0bmVySWQiOiJkOGJmZTcwMy1lODBlLTRlMzUtYmFhYS1mZDk2MWU3ZGZlZTkiLCJpc3MiOiJodHRwczovL3lvdWxlbmQtc3RhZy5ldS5hdXRoMC5jb20vIiwic3ViIjoidXpLVEcyQ0NBZkFZQ0pGU0I3N3ZXRlVOelVOOHZxdlhAY2xpZW50cyIsImF1ZCI6Imh0dHBzOi8vc3RhZ2luZy55b3VsZW5kYXBpLmNvbS9wcmVxdWFsaWZpY2F0aW9uIiwiaWF0IjoxNjEyMzYyOTg2LCJleHAiOjE2MTI0NDkzODYsImF6cCI6InV6S1RHMkNDQWZBWUNKRlNCNzd2V0ZVTnpVTjh2cXZYIiwiZ3R5IjoiY2xpZW50LWNyZWRlbnRpYWxzIn0.oJMaLz4MjPJ1vkHM8iH9KsaQavTaMmYwfku6TZ9J27a69zBCRfQmq-5yh7pi0pwQBaZF3e_XqOKZ54ZOZ_5SXssEXUS-G9g1o4czuHPkKhUWlB3ZXBDvvmO4XiKgkBcf3oU4WTHalmGFXbm2NA9Wa2GycTvzt1i8d5QTETKmF8lxrM_cjXWk2dud5d1jjGRaPY5XKu0on_zZvFRw1-3OzcbbCry_aPbdnha0_x40wPXhmfbxEf142MYr05Fc5P8dL_gtHqK21BIdX-isgdllLhcQiPYBveyTG7-NFdIkz1wFSbtzKN59Kf7qGS6tXJaDwTlr4nMZdz_DhTU2wYewqg
132
+ Content-Type:
133
+ - application/json
134
+ User-Agent:
135
+ - ruby-youlend-1.0.0
136
+ Accept-Encoding:
137
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
138
+ Accept:
139
+ - "*/*"
140
+ response:
141
+ status:
142
+ code: 200
143
+ message: OK
144
+ headers:
145
+ Api-Supported-Versions:
146
+ - '1.0'
147
+ Content-Type:
148
+ - application/json; charset=utf-8
149
+ Date:
150
+ - Wed, 03 Feb 2021 14:36:33 GMT
151
+ Server:
152
+ - Microsoft-IIS/10.0
153
+ X-Powered-By:
154
+ - ASP.NET
155
+ Transfer-Encoding:
156
+ - chunked
157
+ Connection:
158
+ - keep-alive
159
+ body:
160
+ encoding: UTF-8
161
+ string: '{"thirdPartyMerchantId":"1234","mid":null,"companyName":"TestCompany","overallCreditRiskScore":1.0,"overrideCreditRiskScore":1.0,"loanOptions":[{"fundedAmount":0.0,"fee":0.00,"loanAmount":0.00,"sweep":0.0,"currencyISOCode":"GBP"},{"fundedAmount":0.0,"fee":0.0,"loanAmount":0.0,"sweep":0.0,"currencyISOCode":"GBP"},{"fundedAmount":0.0,"fee":0.0,"loanAmount":0.0,"sweep":0.0,"currencyISOCode":"GBP"}]}'
162
+ http_version:
163
+ recorded_at: Wed, 03 Feb 2021 14:36:33 GMT
164
+ recorded_with: VCR 5.0.0