youlend 1.1.4 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -2,168 +2,47 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: post
5
- uri: https://staging.youlendapi.com/onboarding/Leads/
5
+ uri: https://partners.staging-youlendapi.com/onboarding/Leads/
6
6
  body:
7
7
  encoding: UTF-8
8
- string: '{"companyName":"HOKO LTD","companyType":"incorrect","monthsTrading":6,"countryISOCode":"GBR","keyContactName":"Johnny
9
- Cassin","thirdPartyLeadId":"f70537d0-f63b-4f1e-83e8-f7872ce84088","registeredAddress":{"line1":"3044
10
- Shin Views","line2":"Suite 473","city":"London","region":"London","areaCode":"Z0
11
- 1WB","country":"UK"},"contactPhoneNumber":"0151 172 3243","monthlyCardRevenue":10000,"contactEmailAddress":"lynnette@cole.org","loanCurrencyISOCode":"GBP","thirdPartyCustomerId":"460b08a0-2453-41d0-8fe9-da7533613613","companyNumber":"09525857","notificationURL":"http://langosh.info/illa","thirdPartyMerchantId":"6abf56a8-3abe-4f4b-b0f6-6b42b73c7380"}'
12
- headers:
13
- Content-Type:
14
- - application/json
15
- User-Agent:
16
- - ruby-youlend-1.0.0
17
- Accept-Encoding:
18
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
19
- Accept:
20
- - "*/*"
21
- response:
22
- status:
23
- code: 401
24
- message: Unauthorized
25
- headers:
26
- Date:
27
- - Tue, 02 Feb 2021 13:39:40 GMT
28
- Server:
29
- - Microsoft-IIS/10.0
30
- Www-Authenticate:
31
- - Bearer
32
- X-Powered-By:
33
- - ASP.NET
34
- Transfer-Encoding:
35
- - chunked
36
- Connection:
37
- - keep-alive
38
- body:
39
- encoding: UTF-8
40
- string: ''
41
- http_version:
42
- recorded_at: Tue, 02 Feb 2021 13:39:40 GMT
43
- - request:
44
- method: post
45
- uri: https://youlend-stag.eu.auth0.com/oauth/token
46
- body:
47
- encoding: UTF-8
48
- string: '{"grant_type":"client_credentials","client_id":"<CLIENT_ID>","client_secret":"<CLIENT_SECRET>","audience":"https://staging.youlendapi.com/onboarding"}'
8
+ string: '{"companyName":"HOKO LTD","companyType":"incorrect","monthsTrading":7,"countryISOCode":"GBR","country":"GBR","keyContactName":"Gregorio
9
+ Trantow","thirdPartyLeadId":"eeb5cb10-9507-49f3-984c-abf9ee85ea8e","registeredAddress":{"line1":"59796
10
+ Rolfson Mountains","line2":"Suite 443","city":"London","region":"London","areaCode":"AA45
11
+ 9ZT","country":"GBR"},"contactPhoneNumber":"056 9235 8251","contactEmailAddress":"rupert_bartoletti@wuckertwelch.com","loanCurrencyISOCode":"GBP","thirdPartyCustomerId":"05082156-3ae6-48b4-b33e-8dceb0ce0ba2","description":"desc","companyNumber":"09525857","notificationURL":"http://strosin.com/aleta","thirdPartyMerchantId":"226b5359-cb7b-4cc0-9d2c-e6553c014a55"}'
49
12
  headers:
13
+ Authorization:
14
+ - "<Bearer>"
50
15
  Content-Type:
51
16
  - application/json
52
17
  User-Agent:
53
- - ruby-youlend-1.0.0
18
+ - ruby-youlend-1.1.4
54
19
  Accept-Encoding:
55
20
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
56
21
  Accept:
57
22
  - "*/*"
58
23
  response:
59
24
  status:
60
- code: 200
61
- message: OK
25
+ code: 400
26
+ message: Bad Request
62
27
  headers:
63
28
  Date:
64
- - Tue, 02 Feb 2021 13:39:40 GMT
29
+ - Fri, 19 May 2023 12:20:24 GMT
65
30
  Content-Type:
66
- - application/json
31
+ - application/json; charset=utf-8
67
32
  Transfer-Encoding:
68
33
  - chunked
69
34
  Connection:
70
35
  - keep-alive
71
- Set-Cookie:
72
- - __cf_bm=0848890c640d9d8984cac264c1e778c46f766e98-1612273180-1800-AWNkwDLuYuhBtnxjoEIRLqbVylsGjadzpuwyks+MBYYMXTbtcU+rgRskvYr/CZaUtu2pWbjGHyIxQdnTRsmicc8=;
73
- path=/; expires=Tue, 02-Feb-21 14:09:40 GMT; domain=.eu.auth0.com; HttpOnly;
74
- Secure; SameSite=None
75
- - __cfduid=dd5bf97a6931aa603f944d5f9e64dbc181612273180; expires=Thu, 04-Mar-21
76
- 13:39:40 GMT; path=/; domain=.eu.auth0.com; HttpOnly; SameSite=Lax; Secure
77
- - did=s%3Av0%3A19bd3900-655c-11eb-9ed5-b11f12c4b7f2.s6jwFBJzjs3TtEf6iVp23KBWUHWlEz6k97HegCVNm7o;
78
- Max-Age=31557600; Path=/; Expires=Wed, 02 Feb 2022 19:39:40 GMT; HttpOnly;
79
- Secure; SameSite=None
80
- - did_compat=s%3Av0%3A19bd3900-655c-11eb-9ed5-b11f12c4b7f2.s6jwFBJzjs3TtEf6iVp23KBWUHWlEz6k97HegCVNm7o;
81
- Max-Age=31557600; Path=/; Expires=Wed, 02 Feb 2022 19:39:40 GMT; HttpOnly;
82
- Secure
83
- Cf-Ray:
84
- - 61b451d3ac3fda76-LIS
85
- Cache-Control:
86
- - no-store
87
- Strict-Transport-Security:
88
- - max-age=31536000
89
- Vary:
90
- - Accept-Encoding
91
- Cf-Cache-Status:
92
- - DYNAMIC
93
- Cf-Request-Id:
94
- - '08049178460000da765810e000000001'
95
- Expect-Ct:
96
- - max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
97
- Ot-Baggage-Auth0-Request-Id:
98
- - 61b451d3ac3fda76
99
- Ot-Tracer-Sampled:
100
- - 'true'
101
- Ot-Tracer-Spanid:
102
- - 5893701a5ec0e405
103
- Ot-Tracer-Traceid:
104
- - 50ef9c2005419094
105
- Pragma:
106
- - no-cache
107
- X-Auth0-Requestid:
108
- - 2508a5f482c912b8e82c
109
- X-Content-Type-Options:
110
- - nosniff
111
- X-Ratelimit-Limit:
112
- - '30'
113
- X-Ratelimit-Remaining:
114
- - '29'
115
- X-Ratelimit-Reset:
116
- - '1612273181'
117
- Server:
118
- - cloudflare
119
- Alt-Svc:
120
- - h3-27=":443"; ma=86400, h3-28=":443"; ma=86400, h3-29=":443"; ma=86400
121
- body:
122
- encoding: ASCII-8BIT
123
- string: '{"access_token":"eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6Ik0wUXdOMEl5TnpRMVJrRXhNa1pGTlVWRU5UQTJRalV6UWtRMVJUY3dORE0xUVVVM05rTkVRZyJ9.eyJodHRwOi8veW91bGVuZC5jb20vY2xhaW1zL2xlbmRpbmdQYXJ0bmVySWQiOiJkOGJmZTcwMy1lODBlLTRlMzUtYmFhYS1mZDk2MWU3ZGZlZTkiLCJpc3MiOiJodHRwczovL3lvdWxlbmQtc3RhZy5ldS5hdXRoMC5jb20vIiwic3ViIjoidXpLVEcyQ0NBZkFZQ0pGU0I3N3ZXRlVOelVOOHZxdlhAY2xpZW50cyIsImF1ZCI6Imh0dHBzOi8vc3RhZ2luZy55b3VsZW5kYXBpLmNvbS9vbmJvYXJkaW5nIiwiaWF0IjoxNjEyMjczMTgwLCJleHAiOjE2MTIzNTk1ODAsImF6cCI6InV6S1RHMkNDQWZBWUNKRlNCNzd2V0ZVTnpVTjh2cXZYIiwiZ3R5IjoiY2xpZW50LWNyZWRlbnRpYWxzIn0.tbDpCfvp_Drgl_nh13-AM_LXw9HB8IPBaptrzDifhpb7HUh7MES6YRDoa6HQ4nltSKQ9d45BNOs1XntTZfGYSm-0Zs0Jn45iLkqrClP4uAfF9UQ57mf2pcqB60_EI4K3ZoWhD3n8ZyZR4zkcErwir_cDlm-uGh-KgG66AMJF8kPZX9IJrKoUeFHrTrarF3bjIuXbZWcbkR1YhM0ZMQKRVFJfj7KfWIkQt4nKpf37qZoLyxQMBOoY3xqDf83-wOPREKDSDDiVAnIqbCSTTMdcdTzO02jai5bTxWvgHBNYBtVK-CGOG69guW0wn6JgG1I9v_tjKilHBwlGjUjT_r-QVA","expires_in":86400,"token_type":"Bearer"}'
124
- http_version:
125
- recorded_at: Tue, 02 Feb 2021 13:39:40 GMT
126
- - request:
127
- method: post
128
- uri: https://staging.youlendapi.com/onboarding/Leads/
129
- body:
130
- encoding: UTF-8
131
- string: '{"companyName":"HOKO LTD","companyType":"incorrect","monthsTrading":6,"countryISOCode":"GBR","keyContactName":"Johnny
132
- Cassin","thirdPartyLeadId":"f70537d0-f63b-4f1e-83e8-f7872ce84088","registeredAddress":{"line1":"3044
133
- Shin Views","line2":"Suite 473","city":"London","region":"London","areaCode":"Z0
134
- 1WB","country":"UK"},"contactPhoneNumber":"0151 172 3243","monthlyCardRevenue":10000,"contactEmailAddress":"lynnette@cole.org","loanCurrencyISOCode":"GBP","thirdPartyCustomerId":"460b08a0-2453-41d0-8fe9-da7533613613","companyNumber":"09525857","notificationURL":"http://langosh.info/illa","thirdPartyMerchantId":"6abf56a8-3abe-4f4b-b0f6-6b42b73c7380"}'
135
- headers:
136
- Authorization:
137
- - Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6Ik0wUXdOMEl5TnpRMVJrRXhNa1pGTlVWRU5UQTJRalV6UWtRMVJUY3dORE0xUVVVM05rTkVRZyJ9.eyJodHRwOi8veW91bGVuZC5jb20vY2xhaW1zL2xlbmRpbmdQYXJ0bmVySWQiOiJkOGJmZTcwMy1lODBlLTRlMzUtYmFhYS1mZDk2MWU3ZGZlZTkiLCJpc3MiOiJodHRwczovL3lvdWxlbmQtc3RhZy5ldS5hdXRoMC5jb20vIiwic3ViIjoidXpLVEcyQ0NBZkFZQ0pGU0I3N3ZXRlVOelVOOHZxdlhAY2xpZW50cyIsImF1ZCI6Imh0dHBzOi8vc3RhZ2luZy55b3VsZW5kYXBpLmNvbS9vbmJvYXJkaW5nIiwiaWF0IjoxNjEyMjczMTgwLCJleHAiOjE2MTIzNTk1ODAsImF6cCI6InV6S1RHMkNDQWZBWUNKRlNCNzd2V0ZVTnpVTjh2cXZYIiwiZ3R5IjoiY2xpZW50LWNyZWRlbnRpYWxzIn0.tbDpCfvp_Drgl_nh13-AM_LXw9HB8IPBaptrzDifhpb7HUh7MES6YRDoa6HQ4nltSKQ9d45BNOs1XntTZfGYSm-0Zs0Jn45iLkqrClP4uAfF9UQ57mf2pcqB60_EI4K3ZoWhD3n8ZyZR4zkcErwir_cDlm-uGh-KgG66AMJF8kPZX9IJrKoUeFHrTrarF3bjIuXbZWcbkR1YhM0ZMQKRVFJfj7KfWIkQt4nKpf37qZoLyxQMBOoY3xqDf83-wOPREKDSDDiVAnIqbCSTTMdcdTzO02jai5bTxWvgHBNYBtVK-CGOG69guW0wn6JgG1I9v_tjKilHBwlGjUjT_r-QVA
138
- Content-Type:
139
- - application/json
140
- User-Agent:
141
- - ruby-youlend-1.0.0
142
- Accept-Encoding:
143
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
144
- Accept:
145
- - "*/*"
146
- response:
147
- status:
148
- code: 422
149
- message: Unprocessable Entity
150
- headers:
151
- Content-Type:
152
- - application/json; charset=utf-8
153
- Date:
154
- - Tue, 02 Feb 2021 13:39:42 GMT
155
36
  Server:
156
37
  - Microsoft-IIS/10.0
38
+ Strict-Transport-Security:
39
+ - max-age=63072000; includeSubDomains; preload
157
40
  X-Powered-By:
158
41
  - ASP.NET
159
- Content-Length:
160
- - '151'
161
- Connection:
162
- - keep-alive
163
42
  body:
164
43
  encoding: UTF-8
165
- string: '{"CompanyType":["The company type is invalid. Valid company types are
166
- ltd, plc, llp, dac, soleTrader, aps, as, ks, ivs, is and enkeltmandsvirksomhed"]}'
167
- http_version:
168
- recorded_at: Tue, 02 Feb 2021 13:39:42 GMT
44
+ string: '{"$.companyType":["The JSON value could not be converted to YL.Web.Api.ThirdParty.Onboarding.Models.CompanyTypes.
45
+ Path: $.companyType | LineNumber: 0 | BytePositionInLine: 51."]}'
46
+ http_version:
47
+ recorded_at: Fri, 19 May 2023 12:20:24 GMT
169
48
  recorded_with: VCR 5.0.0
@@ -0,0 +1,47 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://partners.staging-youlendapi.com/onboarding/Leads/fd984430-4042-4f32-afb2-35700d1564b2/details/
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Authorization:
11
+ - "<Bearer>"
12
+ Content-Type:
13
+ - application/json
14
+ User-Agent:
15
+ - ruby-youlend-1.1.4
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, 19 May 2023 12:45:06 GMT
27
+ Content-Type:
28
+ - application/json; charset=utf-8
29
+ Transfer-Encoding:
30
+ - chunked
31
+ Connection:
32
+ - keep-alive
33
+ Server:
34
+ - Microsoft-IIS/10.0
35
+ Api-Supported-Versions:
36
+ - '1.0'
37
+ Strict-Transport-Security:
38
+ - max-age=63072000; includeSubDomains; preload
39
+ X-Powered-By:
40
+ - ASP.NET
41
+ body:
42
+ encoding: UTF-8
43
+ string: '{"leadSourceLendingPartnerId":"2487faad-24c3-40ed-8e63-f4551555116a","onboardingState":"stage1incomplete","onboardingStateReason":"","organisationDetailsStepComplete":true,"paymentDataStepComplete":false,"offerStepComplete":false,"kycDocumentsStepComplete":false,"companyName":"HOKO
44
+ LTD","leadType":"Api","signingDetails":{"eligibleForInstantSigning":false,"instantSigningDetails":null}}'
45
+ http_version:
46
+ recorded_at: Fri, 19 May 2023 12:45:06 GMT
47
+ recorded_with: VCR 5.0.0
@@ -0,0 +1,167 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://partners.staging-youlendapi.com/onboarding/Leads/0f9b892f-3816-4afe-a582-1ce0ea708fdb/details/
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Content-Type:
11
+ - application/json
12
+ User-Agent:
13
+ - ruby-youlend-1.1.4
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
+ - Fri, 19 May 2023 12:45:05 GMT
25
+ Transfer-Encoding:
26
+ - chunked
27
+ Connection:
28
+ - keep-alive
29
+ Server:
30
+ - Microsoft-IIS/10.0
31
+ Www-Authenticate:
32
+ - Bearer
33
+ Strict-Transport-Security:
34
+ - max-age=63072000; includeSubDomains; preload
35
+ X-Powered-By:
36
+ - ASP.NET
37
+ body:
38
+ encoding: UTF-8
39
+ string: ''
40
+ http_version:
41
+ recorded_at: Fri, 19 May 2023 12:45:05 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/onboarding"}'
48
+ headers:
49
+ Content-Type:
50
+ - application/json
51
+ User-Agent:
52
+ - ruby-youlend-1.1.4
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
+ - Fri, 19 May 2023 12:45:05 GMT
64
+ Content-Type:
65
+ - application/json
66
+ Transfer-Encoding:
67
+ - chunked
68
+ Connection:
69
+ - keep-alive
70
+ Cf-Ray:
71
+ - 7c9c6f5f7ff60eb0-AMS
72
+ Cache-Control:
73
+ - no-store
74
+ Set-Cookie:
75
+ - __cf_bm=L2anJENPJMFiIsubxB3wmzBQdC0tFBoJLw03iH.F89Q-1684500305-0-AVtRuWqtkBfsHFxTl5ihLJ/GgIXvwx1gIB379mPO03uqljQMOEeftN7n837ZF2FfuK6MYfyY+XDUleZ4nJQRZlI=;
76
+ path=/; expires=Fri, 19-May-23 13:15:05 GMT; domain=.eu.auth0.com; HttpOnly;
77
+ Secure; SameSite=None
78
+ - did=s%3Av0%3Afb120510-f642-11ed-97e9-799192b0fb40.mIP3uIeoid%2Fqd0tV%2FjOnaXhVzVWGeXkUuEzDGYVLw1o;
79
+ Max-Age=31557600; Path=/; Expires=Sat, 18 May 2024 18:45:05 GMT; HttpOnly;
80
+ Secure; SameSite=None
81
+ - did_compat=s%3Av0%3Afb120510-f642-11ed-97e9-799192b0fb40.mIP3uIeoid%2Fqd0tV%2FjOnaXhVzVWGeXkUuEzDGYVLw1o;
82
+ Max-Age=31557600; Path=/; Expires=Sat, 18 May 2024 18:45:05 GMT; HttpOnly;
83
+ Secure
84
+ Strict-Transport-Security:
85
+ - max-age=31536000
86
+ Vary:
87
+ - Accept-Encoding, Origin
88
+ Cf-Cache-Status:
89
+ - DYNAMIC
90
+ Ot-Baggage-Auth0-Request-Id:
91
+ - 7c9c6f5f7ff60eb0
92
+ Ot-Tracer-Sampled:
93
+ - 'true'
94
+ Ot-Tracer-Spanid:
95
+ - 6805bed5350c59d4
96
+ Ot-Tracer-Traceid:
97
+ - 4bdc491648ce08d1
98
+ Pragma:
99
+ - no-cache
100
+ Traceparent:
101
+ - 00-00000000000000004bdc491648ce08d1-6805bed5350c59d4-01
102
+ Tracestate:
103
+ - auth0-request-id=7c9c6f5f7ff60eb0,auth0=true
104
+ X-Auth0-Requestid:
105
+ - 19c7e34ca7a5ed0872d8
106
+ X-Content-Type-Options:
107
+ - nosniff
108
+ X-Ratelimit-Limit:
109
+ - '30'
110
+ X-Ratelimit-Remaining:
111
+ - '29'
112
+ X-Ratelimit-Reset:
113
+ - '1684500306'
114
+ Server:
115
+ - cloudflare
116
+ Alt-Svc:
117
+ - h3=":443"; ma=86400, h3-29=":443"; ma=86400
118
+ body:
119
+ encoding: UTF-8
120
+ string: '{"access_token":"<TOKEN>","expires_in":86400,"token_type":"Bearer"}'
121
+ http_version:
122
+ recorded_at: Fri, 19 May 2023 12:45:06 GMT
123
+ - request:
124
+ method: get
125
+ uri: https://partners.staging-youlendapi.com/onboarding/Leads/0f9b892f-3816-4afe-a582-1ce0ea708fdb/details/
126
+ body:
127
+ encoding: US-ASCII
128
+ string: ''
129
+ headers:
130
+ Authorization:
131
+ - "<Bearer>"
132
+ Content-Type:
133
+ - application/json
134
+ User-Agent:
135
+ - ruby-youlend-1.1.4
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
+ Date:
146
+ - Fri, 19 May 2023 12:45:06 GMT
147
+ Content-Type:
148
+ - application/json; charset=utf-8
149
+ Transfer-Encoding:
150
+ - chunked
151
+ Connection:
152
+ - keep-alive
153
+ Server:
154
+ - Microsoft-IIS/10.0
155
+ Api-Supported-Versions:
156
+ - '1.0'
157
+ Strict-Transport-Security:
158
+ - max-age=63072000; includeSubDomains; preload
159
+ X-Powered-By:
160
+ - ASP.NET
161
+ body:
162
+ encoding: UTF-8
163
+ string: '{"leadSourceLendingPartnerId":"2487faad-24c3-40ed-8e63-f4551555116a","onboardingState":"stage1submitted","onboardingStateReason":"","organisationDetailsStepComplete":false,"paymentDataStepComplete":true,"offerStepComplete":false,"kycDocumentsStepComplete":true,"companyName":"HOKO
164
+ LTD","leadType":"Api","signingDetails":{"eligibleForInstantSigning":false,"instantSigningDetails":null}}'
165
+ http_version:
166
+ recorded_at: Fri, 19 May 2023 12:45:06 GMT
167
+ recorded_with: VCR 5.0.0
@@ -0,0 +1,170 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: put
5
+ uri: https://partners.staging-youlendapi.com/onboarding/Leads/fd984430-4042-4f32-afb2-35700d1564b2/organisationdetails/
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"companyName":"HOKO LTD","companyType":"ltd","monthsTrading":9,"countryISOCode":"GBR","country":"GBR","keyContactName":"Mrs.
9
+ Errol Hilpert","thirdPartyLeadId":"0b768d9b-1c3c-4cac-8b71-22088707a76b","registeredAddress":{"line1":"3566
10
+ Orn Rapid","line2":"Apt. 435","city":"London","region":"London","areaCode":"Y5W
11
+ 9JL","country":"GBR"},"contactPhoneNumber":"055 7386 9337","contactEmailAddress":"rueben.monahan@hagenes.co","loanCurrencyISOCode":"GBP","thirdPartyCustomerId":"0304e8b3-4803-4740-9847-add4896773d6","description":"desc","companyNumber":"09525857","notificationURL":"http://millerohara.info/anjelica.rowe","thirdPartyMerchantId":"989fae99-38fd-402c-a6ac-459492eec617"}'
12
+ headers:
13
+ Authorization:
14
+ - "<Bearer>"
15
+ Content-Type:
16
+ - application/json
17
+ User-Agent:
18
+ - ruby-youlend-1.1.4
19
+ Accept-Encoding:
20
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
21
+ Accept:
22
+ - "*/*"
23
+ response:
24
+ status:
25
+ code: 401
26
+ message: Unauthorized
27
+ headers:
28
+ Date:
29
+ - Fri, 19 May 2023 12:20:24 GMT
30
+ Transfer-Encoding:
31
+ - chunked
32
+ Connection:
33
+ - keep-alive
34
+ Server:
35
+ - Microsoft-IIS/10.0
36
+ Www-Authenticate:
37
+ - Bearer error="invalid_token"
38
+ Strict-Transport-Security:
39
+ - max-age=63072000; includeSubDomains; preload
40
+ X-Powered-By:
41
+ - ASP.NET
42
+ body:
43
+ encoding: UTF-8
44
+ string: ''
45
+ http_version:
46
+ recorded_at: Fri, 19 May 2023 12:20:24 GMT
47
+ - request:
48
+ method: post
49
+ uri: https://youlend-stag.eu.auth0.com/oauth/token
50
+ body:
51
+ encoding: UTF-8
52
+ string: '{"grant_type":"client_credentials","client_id":"<CLIENT_ID>","client_secret":"<CLIENT_SECRET>","audience":"https://staging.youlendapi.com/onboarding"}'
53
+ headers:
54
+ Content-Type:
55
+ - application/json
56
+ User-Agent:
57
+ - ruby-youlend-1.1.4
58
+ Accept-Encoding:
59
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
60
+ Accept:
61
+ - "*/*"
62
+ response:
63
+ status:
64
+ code: 200
65
+ message: OK
66
+ headers:
67
+ Date:
68
+ - Fri, 19 May 2023 12:20:24 GMT
69
+ Content-Type:
70
+ - application/json
71
+ Transfer-Encoding:
72
+ - chunked
73
+ Connection:
74
+ - keep-alive
75
+ Cf-Ray:
76
+ - 7c9c4b34bc941cba-AMS
77
+ Cache-Control:
78
+ - no-store
79
+ Set-Cookie:
80
+ - __cf_bm=3XbXs3cF2NLXlejfkJSiqsBDxmv23NTr2lMEvMxHTpU-1684498824-0-AVT1c/A9wzr1uDvqM5Z2eEu47E30zwWVnO4Lqi/Dozh0LjvE8hkRI0snOcasEO2LgaSr3hWNlegA7dryYaUhkwg=;
81
+ path=/; expires=Fri, 19-May-23 12:50:24 GMT; domain=.eu.auth0.com; HttpOnly;
82
+ Secure; SameSite=None
83
+ - did=s%3Av0%3A88178a10-f63f-11ed-be4c-ff6f99b3f517.z3BnWyqWPw0Kep6EYLbXlimeifcWeUlV9RScnINvYvE;
84
+ Max-Age=31557600; Path=/; Expires=Sat, 18 May 2024 18:20:24 GMT; HttpOnly;
85
+ Secure; SameSite=None
86
+ - did_compat=s%3Av0%3A88178a10-f63f-11ed-be4c-ff6f99b3f517.z3BnWyqWPw0Kep6EYLbXlimeifcWeUlV9RScnINvYvE;
87
+ Max-Age=31557600; Path=/; Expires=Sat, 18 May 2024 18:20:24 GMT; HttpOnly;
88
+ Secure
89
+ Strict-Transport-Security:
90
+ - max-age=31536000
91
+ Vary:
92
+ - Accept-Encoding, Origin
93
+ Cf-Cache-Status:
94
+ - DYNAMIC
95
+ Ot-Baggage-Auth0-Request-Id:
96
+ - 7c9c4b34bc941cba
97
+ Ot-Tracer-Sampled:
98
+ - 'true'
99
+ Ot-Tracer-Spanid:
100
+ - 1229792a43573e0e
101
+ Ot-Tracer-Traceid:
102
+ - 2f67a33757312b24
103
+ Pragma:
104
+ - no-cache
105
+ Traceparent:
106
+ - 00-00000000000000002f67a33757312b24-1229792a43573e0e-01
107
+ Tracestate:
108
+ - auth0-request-id=7c9c4b34bc941cba,auth0=true
109
+ X-Auth0-Requestid:
110
+ - dce22720940c592766ad
111
+ X-Content-Type-Options:
112
+ - nosniff
113
+ X-Ratelimit-Limit:
114
+ - '30'
115
+ X-Ratelimit-Remaining:
116
+ - '29'
117
+ X-Ratelimit-Reset:
118
+ - '1684498825'
119
+ Server:
120
+ - cloudflare
121
+ Alt-Svc:
122
+ - h3=":443"; ma=86400, h3-29=":443"; ma=86400
123
+ body:
124
+ encoding: UTF-8
125
+ string: '{"access_token":"<TOKEN>","expires_in":86400,"token_type":"Bearer"}'
126
+ http_version:
127
+ recorded_at: Fri, 19 May 2023 12:20:24 GMT
128
+ - request:
129
+ method: put
130
+ uri: https://partners.staging-youlendapi.com/onboarding/Leads/fd984430-4042-4f32-afb2-35700d1564b2/organisationdetails/
131
+ body:
132
+ encoding: UTF-8
133
+ string: '{"companyName":"HOKO LTD","companyType":"ltd","monthsTrading":9,"countryISOCode":"GBR","country":"GBR","keyContactName":"Mrs.
134
+ Errol Hilpert","thirdPartyLeadId":"0b768d9b-1c3c-4cac-8b71-22088707a76b","registeredAddress":{"line1":"3566
135
+ Orn Rapid","line2":"Apt. 435","city":"London","region":"London","areaCode":"Y5W
136
+ 9JL","country":"GBR"},"contactPhoneNumber":"055 7386 9337","contactEmailAddress":"rueben.monahan@hagenes.co","loanCurrencyISOCode":"GBP","thirdPartyCustomerId":"0304e8b3-4803-4740-9847-add4896773d6","description":"desc","companyNumber":"09525857","notificationURL":"http://millerohara.info/anjelica.rowe","thirdPartyMerchantId":"989fae99-38fd-402c-a6ac-459492eec617"}'
137
+ headers:
138
+ Authorization:
139
+ - "<Bearer>"
140
+ Content-Type:
141
+ - application/json
142
+ User-Agent:
143
+ - ruby-youlend-1.1.4
144
+ Accept-Encoding:
145
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
146
+ Accept:
147
+ - "*/*"
148
+ response:
149
+ status:
150
+ code: 204
151
+ message: No Content
152
+ headers:
153
+ Date:
154
+ - Fri, 19 May 2023 12:20:24 GMT
155
+ Connection:
156
+ - keep-alive
157
+ Server:
158
+ - Microsoft-IIS/10.0
159
+ Api-Supported-Versions:
160
+ - '1.0'
161
+ Strict-Transport-Security:
162
+ - max-age=63072000; includeSubDomains; preload
163
+ X-Powered-By:
164
+ - ASP.NET
165
+ body:
166
+ encoding: UTF-8
167
+ string: ''
168
+ http_version:
169
+ recorded_at: Fri, 19 May 2023 12:20:24 GMT
170
+ recorded_with: VCR 5.0.0
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: post
5
- uri: https://staging.youlendapi.com/prequalification/Requests/
5
+ uri: https://partners.staging-youlendapi.com/prequalification/Requests/
6
6
  body:
7
7
  encoding: UTF-8
8
8
  string: "{}"
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: post
5
- uri: https://staging.youlendapi.com/prequalification/Requests/
5
+ uri: https://partners.staging-youlendapi.com/prequalification/Requests/
6
6
  body:
7
7
  encoding: UTF-8
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
@@ -119,12 +119,12 @@ http_interactions:
119
119
  - h3-27=":443"; ma=86400, h3-28=":443"; ma=86400, h3-29=":443"; ma=86400
120
120
  body:
121
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"}'
122
+ string: '{"access_token":"","expires_in":86400,"token_type":"Bearer"}'
123
123
  http_version:
124
124
  recorded_at: Tue, 02 Feb 2021 16:57:57 GMT
125
125
  - request:
126
126
  method: post
127
- uri: https://staging.youlendapi.com/prequalification/Requests/
127
+ uri: https://partners.staging-youlendapi.com/prequalification/Requests/
128
128
  body:
129
129
  encoding: UTF-8
130
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
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: post
5
- uri: https://staging.youlendapi.com/prequalification/Requests/
5
+ uri: https://partners.staging-youlendapi.com/prequalification/Requests/
6
6
  body:
7
7
  encoding: UTF-8
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
@@ -119,12 +119,12 @@ http_interactions:
119
119
  - h3-27=":443"; ma=86400, h3-28=":443"; ma=86400, h3-29=":443"; ma=86400
120
120
  body:
121
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"}'
122
+ string: '{"access_token":"","expires_in":86400,"token_type":"Bearer"}'
123
123
  http_version:
124
124
  recorded_at: Tue, 02 Feb 2021 16:57:02 GMT
125
125
  - request:
126
126
  method: post
127
- uri: https://staging.youlendapi.com/prequalification/Requests/
127
+ uri: https://partners.staging-youlendapi.com/prequalification/Requests/
128
128
  body:
129
129
  encoding: UTF-8
130
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