youlend 1.1.4 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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: '{"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"}]}}'
@@ -117,12 +117,12 @@ http_interactions:
117
117
  - h3-27=":443"; ma=86400, h3-28=":443"; ma=86400, h3-29=":443"; ma=86400
118
118
  body:
119
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"}'
120
+ string: '{"access_token":"","expires_in":86400,"token_type":"Bearer"}'
121
121
  http_version:
122
122
  recorded_at: Wed, 03 Feb 2021 14:36:26 GMT
123
123
  - request:
124
124
  method: post
125
- uri: https://staging.youlendapi.com/prequalification/Requests/
125
+ uri: https://partners.staging-youlendapi.com/prequalification/Requests/
126
126
  body:
127
127
  encoding: UTF-8
128
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"}]}}'
@@ -0,0 +1,170 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: put
5
+ uri: https://partners.staging-youlendapi.com/onboarding/Leads/620fb657-cff2-4e21-98d8-457b7c17b9bc/significantpersons/
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"significantPersons":[{"typeOfPerson":"Director","address":{"line1":"9381
9
+ Dietrich Avenue","line2":"Suite 306","city":"London","region":"London","areaCode":"89863","country":"GBR"},"dateOfBirth":{"year":2000,"month":1,"day":1},"firstName":"Rey","surname":"Weimann","emailAddress":"clarence@weinatrobel.io","mobilePhoneNumber":"656-096-3334
10
+ x6280","percentageOwned":45,"nationality":"Russians"}]}'
11
+ headers:
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: 401
23
+ message: Unauthorized
24
+ headers:
25
+ Date:
26
+ - Fri, 19 May 2023 10:33:16 GMT
27
+ Transfer-Encoding:
28
+ - chunked
29
+ Connection:
30
+ - keep-alive
31
+ Server:
32
+ - Microsoft-IIS/10.0
33
+ Www-Authenticate:
34
+ - Bearer
35
+ Strict-Transport-Security:
36
+ - max-age=63072000; includeSubDomains; preload
37
+ X-Powered-By:
38
+ - ASP.NET
39
+ body:
40
+ encoding: UTF-8
41
+ string: ''
42
+ http_version:
43
+ recorded_at: Fri, 19 May 2023 10:33:16 GMT
44
+ - request:
45
+ method: post
46
+ uri: https://youlend-stag.eu.auth0.com/oauth/token
47
+ body:
48
+ encoding: UTF-8
49
+ string: '{"grant_type":"client_credentials","client_id":"<CLIENT_ID>","client_secret":"<CLIENT_SECRET>","audience":"https://staging.youlendapi.com/onboarding"}'
50
+ headers:
51
+ Content-Type:
52
+ - application/json
53
+ User-Agent:
54
+ - ruby-youlend-1.1.4
55
+ Accept-Encoding:
56
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
57
+ Accept:
58
+ - "*/*"
59
+ response:
60
+ status:
61
+ code: 200
62
+ message: OK
63
+ headers:
64
+ Date:
65
+ - Fri, 19 May 2023 10:33:16 GMT
66
+ Content-Type:
67
+ - application/json
68
+ Transfer-Encoding:
69
+ - chunked
70
+ Connection:
71
+ - keep-alive
72
+ Cf-Ray:
73
+ - 7c9bae44ace506dc-AMS
74
+ Cache-Control:
75
+ - no-store
76
+ Set-Cookie:
77
+ - __cf_bm=8DANQHcjx784g6gd3WWw8w6AClbeO8ceSVOxHjnxEco-1684492396-0-AcKj8EKJdK+GYsRjiAb/lQCzKvju95EO73ZI5cQQoL3TkEk/tZINN5Q/0E7n7Tf106wZwD3LpkOm+85DHRTIyP4=;
78
+ path=/; expires=Fri, 19-May-23 11:03:16 GMT; domain=.eu.auth0.com; HttpOnly;
79
+ Secure; SameSite=None
80
+ - did=s%3Av0%3A909b18a0-f630-11ed-97e9-799192b0fb40.ZOoPfMsU7o6NWci0i98JyS%2FEeJvFr5c49%2B%2FQR82zNsU;
81
+ Max-Age=31557600; Path=/; Expires=Sat, 18 May 2024 16:33:16 GMT; HttpOnly;
82
+ Secure; SameSite=None
83
+ - did_compat=s%3Av0%3A909b18a0-f630-11ed-97e9-799192b0fb40.ZOoPfMsU7o6NWci0i98JyS%2FEeJvFr5c49%2B%2FQR82zNsU;
84
+ Max-Age=31557600; Path=/; Expires=Sat, 18 May 2024 16:33:16 GMT; HttpOnly;
85
+ Secure
86
+ Strict-Transport-Security:
87
+ - max-age=31536000
88
+ Vary:
89
+ - Accept-Encoding, Origin
90
+ Cf-Cache-Status:
91
+ - DYNAMIC
92
+ Ot-Baggage-Auth0-Request-Id:
93
+ - 7c9bae44ace506dc
94
+ Ot-Tracer-Sampled:
95
+ - 'true'
96
+ Ot-Tracer-Spanid:
97
+ - 29fa8cf73ddf0950
98
+ Ot-Tracer-Traceid:
99
+ - 11a9eabb43f0064e
100
+ Pragma:
101
+ - no-cache
102
+ Traceparent:
103
+ - 00-000000000000000011a9eabb43f0064e-29fa8cf73ddf0950-01
104
+ Tracestate:
105
+ - auth0-request-id=7c9bae44ace506dc,auth0=true
106
+ X-Auth0-Requestid:
107
+ - 3a59e68b28de7c373462
108
+ X-Content-Type-Options:
109
+ - nosniff
110
+ X-Ratelimit-Limit:
111
+ - '30'
112
+ X-Ratelimit-Remaining:
113
+ - '29'
114
+ X-Ratelimit-Reset:
115
+ - '1684492397'
116
+ Server:
117
+ - cloudflare
118
+ Alt-Svc:
119
+ - h3=":443"; ma=86400, h3-29=":443"; ma=86400
120
+ body:
121
+ encoding: ASCII-8BIT
122
+ string: '{"access_token":"<TOKEN>","expires_in":86400,"token_type":"Bearer"}'
123
+ http_version:
124
+ recorded_at: Fri, 19 May 2023 10:33:16 GMT
125
+ - request:
126
+ method: put
127
+ uri: https://partners.staging-youlendapi.com/onboarding/Leads/620fb657-cff2-4e21-98d8-457b7c17b9bc/significantpersons/
128
+ body:
129
+ encoding: UTF-8
130
+ string: '{"significantPersons":[{"typeOfPerson":"Director","address":{"line1":"9381
131
+ Dietrich Avenue","line2":"Suite 306","city":"London","region":"London","areaCode":"89863","country":"GBR"},"dateOfBirth":{"year":2000,"month":1,"day":1},"firstName":"Rey","surname":"Weimann","emailAddress":"clarence@weinatrobel.io","mobilePhoneNumber":"656-096-3334
132
+ x6280","percentageOwned":45,"nationality":"Russians"}]}'
133
+ headers:
134
+ Authorization:
135
+ - "<Bearer>"
136
+ Content-Type:
137
+ - application/json
138
+ User-Agent:
139
+ - ruby-youlend-1.1.4
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
+ Date:
150
+ - Fri, 19 May 2023 10:33:16 GMT
151
+ Content-Type:
152
+ - application/json; charset=utf-8
153
+ Transfer-Encoding:
154
+ - chunked
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: '{"leadId":"620fb657-cff2-4e21-98d8-457b7c17b9bc","significantPersonIds":["5142a132-2aaf-4789-8e40-7e8597ff625a"]}'
168
+ http_version:
169
+ recorded_at: Fri, 19 May 2023 10:33:16 GMT
170
+ recorded_with: VCR 5.0.0
@@ -0,0 +1,47 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: put
5
+ uri: https://partners.staging-youlendapi.com/onboarding/Leads/620fb657-cff2-4e21-98d8-457b7c17b9bc/significantpersons/
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"significantPersons":[{"typeOfPerson":"Director","address":{"line1":"6210
9
+ Johnston Roads","line2":"Apt. 329","city":"London","region":"London","areaCode":"88478","country":"GBR"},"dateOfBirth":{"year":2000,"month":1,"day":1},"firstName":"","surname":"Klocko","emailAddress":"gerry@heathcotegleason.biz","mobilePhoneNumber":"185-714-9786
10
+ x35247","percentageOwned":52,"nationality":"Barbadians"}]}'
11
+ headers:
12
+ Authorization:
13
+ - "<Bearer>"
14
+ Content-Type:
15
+ - application/json
16
+ User-Agent:
17
+ - ruby-youlend-1.1.4
18
+ Accept-Encoding:
19
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
20
+ Accept:
21
+ - "*/*"
22
+ response:
23
+ status:
24
+ code: 422
25
+ message: Unprocessable Entity
26
+ headers:
27
+ Date:
28
+ - Fri, 19 May 2023 10:33:17 GMT
29
+ Content-Type:
30
+ - application/json; charset=utf-8
31
+ Transfer-Encoding:
32
+ - chunked
33
+ Connection:
34
+ - keep-alive
35
+ Server:
36
+ - Microsoft-IIS/10.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: '{"SignificantPersons[0].FirstName":["''First Name'' must not be empty.","The
44
+ specified condition was not met for ''First Name''."]}'
45
+ http_version:
46
+ recorded_at: Fri, 19 May 2023 10:33:17 GMT
47
+ recorded_with: VCR 5.0.0
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: youlend
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.4
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - rikas
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-03-02 00:00:00.000000000 Z
11
+ date: 2023-09-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable
@@ -76,19 +76,26 @@ files:
76
76
  - lib/youlend/lead.rb
77
77
  - lib/youlend/params_generators/lead.rb
78
78
  - lib/youlend/params_generators/prequalification.rb
79
+ - lib/youlend/params_generators/significant_persons.rb
79
80
  - lib/youlend/path_sanitizer.rb
80
81
  - lib/youlend/prequalification.rb
81
82
  - lib/youlend/response.rb
83
+ - lib/youlend/significant_persons.rb
82
84
  - lib/youlend/version.rb
83
85
  - vcr_cassettes/auth_incorrect.yml
84
86
  - vcr_cassettes/auth_onboarding_correct.yml
85
87
  - vcr_cassettes/auth_prequalification_correct.yml
86
88
  - vcr_cassettes/lead_create_correct.yml
87
89
  - vcr_cassettes/lead_create_incorrect.yml
90
+ - vcr_cassettes/lead_details_incomplete.yml
91
+ - vcr_cassettes/lead_details_submitted.yml
92
+ - vcr_cassettes/lead_update_correct.yml
88
93
  - vcr_cassettes/pre_qualification_incomplete.yml
89
94
  - vcr_cassettes/prequalification_correct.yml
90
95
  - vcr_cassettes/prequalification_incorrect.yml
91
96
  - vcr_cassettes/prequalification_rejection.yml
97
+ - vcr_cassettes/significant_persons_create_correct.yml
98
+ - vcr_cassettes/significant_persons_create_incorrect.yml
92
99
  - youlend.gemspec
93
100
  homepage: https://youlend.com/
94
101
  licenses: []
@@ -109,7 +116,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
109
116
  - !ruby/object:Gem::Version
110
117
  version: '0'
111
118
  requirements: []
112
- rubygems_version: 3.2.3
119
+ rubygems_version: 3.0.8
113
120
  signing_key:
114
121
  specification_version: 4
115
122
  summary: Youlend API wrapper