instant_quote 1.7.14 → 1.7.16
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.
- checksums.yaml +4 -4
- data/Gemfile.lock +23 -13
- data/lib/instant_quote/adapters/fake.rb +2 -0
- data/lib/instant_quote/adapters/iwoca_flexi24.rb +26 -0
- data/lib/instant_quote/adapters/iwoca_revenue_based_loans.rb +26 -0
- data/lib/instant_quote/connection_translators/iwoca_flexi24.rb +19 -0
- data/lib/instant_quote/connection_translators/iwoca_revenue_based_loans.rb +19 -0
- data/lib/instant_quote/decision_parsers/iwoca_flexi24.rb +10 -0
- data/lib/instant_quote/decision_parsers/iwoca_revenue_based_loans.rb +10 -0
- data/lib/instant_quote/version.rb +1 -1
- metadata +12 -6
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: acdaa446c571a459720043e39a83733934473faacdf7dba0064023a699374023
|
|
4
|
+
data.tar.gz: ea26eea92d58bb78f67ce72f9674d44cfcf05fe32d2bff3fbfe5f4362d6c9a1b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9c96040bbc39fb07d74b0cc35805a98323b45f150707b7d8231ec310db4045fe3413e62bca706efe7ef4baddbb8840b90ed6ee6829c85863c7674d50e98c848b
|
|
7
|
+
data.tar.gz: 3f21e224c209f4ab9e9f1576f1a889684e8d05097760ca37f58c85ef07a41d3966e3a45332d4bf49a5a4e14c363eb0bf74e7eb4b93ce77eb1286a43b374d8951
|
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
instant_quote (1.7.
|
|
4
|
+
instant_quote (1.7.16)
|
|
5
5
|
activesupport
|
|
6
6
|
capital_on_tap
|
|
7
7
|
iwoca
|
|
@@ -13,7 +13,7 @@ PATH
|
|
|
13
13
|
GEM
|
|
14
14
|
remote: https://rubygems.org/
|
|
15
15
|
specs:
|
|
16
|
-
activesupport (6.1.
|
|
16
|
+
activesupport (6.1.5)
|
|
17
17
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
|
18
18
|
i18n (>= 1.6, < 2)
|
|
19
19
|
minitest (>= 5.1)
|
|
@@ -36,23 +36,33 @@ GEM
|
|
|
36
36
|
diff-lcs (1.4.4)
|
|
37
37
|
docile (1.3.5)
|
|
38
38
|
dotenv (2.7.6)
|
|
39
|
-
faraday (1.
|
|
39
|
+
faraday (1.10.0)
|
|
40
40
|
faraday-em_http (~> 1.0)
|
|
41
41
|
faraday-em_synchrony (~> 1.0)
|
|
42
42
|
faraday-excon (~> 1.1)
|
|
43
|
+
faraday-httpclient (~> 1.0)
|
|
44
|
+
faraday-multipart (~> 1.0)
|
|
43
45
|
faraday-net_http (~> 1.0)
|
|
44
|
-
faraday-net_http_persistent (~> 1.
|
|
45
|
-
|
|
46
|
+
faraday-net_http_persistent (~> 1.0)
|
|
47
|
+
faraday-patron (~> 1.0)
|
|
48
|
+
faraday-rack (~> 1.0)
|
|
49
|
+
faraday-retry (~> 1.0)
|
|
46
50
|
ruby2_keywords (>= 0.0.4)
|
|
47
51
|
faraday-em_http (1.0.0)
|
|
48
52
|
faraday-em_synchrony (1.0.0)
|
|
49
53
|
faraday-excon (1.1.0)
|
|
54
|
+
faraday-httpclient (1.0.1)
|
|
55
|
+
faraday-multipart (1.0.3)
|
|
56
|
+
multipart-post (>= 1.2, < 3)
|
|
50
57
|
faraday-net_http (1.0.1)
|
|
51
|
-
faraday-net_http_persistent (1.
|
|
52
|
-
|
|
58
|
+
faraday-net_http_persistent (1.2.0)
|
|
59
|
+
faraday-patron (1.0.0)
|
|
60
|
+
faraday-rack (1.0.0)
|
|
61
|
+
faraday-retry (1.0.3)
|
|
62
|
+
faraday_middleware (1.2.0)
|
|
53
63
|
faraday (~> 1.0)
|
|
54
64
|
hashdiff (1.0.1)
|
|
55
|
-
i18n (1.
|
|
65
|
+
i18n (1.10.0)
|
|
56
66
|
concurrent-ruby (~> 1.0)
|
|
57
67
|
iwoca (1.0.0)
|
|
58
68
|
addressable
|
|
@@ -61,7 +71,7 @@ GEM
|
|
|
61
71
|
multi_json
|
|
62
72
|
rainbow
|
|
63
73
|
method_source (1.0.0)
|
|
64
|
-
minitest (5.
|
|
74
|
+
minitest (5.15.0)
|
|
65
75
|
money (6.16.0)
|
|
66
76
|
i18n (>= 0.6.4, <= 2)
|
|
67
77
|
multi_json (1.15.0)
|
|
@@ -75,7 +85,7 @@ GEM
|
|
|
75
85
|
parallel (1.20.1)
|
|
76
86
|
parser (3.0.0.0)
|
|
77
87
|
ast (~> 2.4.1)
|
|
78
|
-
phonelib (0.6.
|
|
88
|
+
phonelib (0.6.57)
|
|
79
89
|
pry (0.13.1)
|
|
80
90
|
coderay (~> 1.1)
|
|
81
91
|
method_source (~> 1.0)
|
|
@@ -117,7 +127,7 @@ GEM
|
|
|
117
127
|
rubocop (~> 1.0)
|
|
118
128
|
rubocop-ast (>= 1.1.0)
|
|
119
129
|
ruby-progressbar (1.11.0)
|
|
120
|
-
ruby2_keywords (0.0.
|
|
130
|
+
ruby2_keywords (0.0.5)
|
|
121
131
|
simplecov (0.21.2)
|
|
122
132
|
docile (~> 1.1)
|
|
123
133
|
simplecov-html (~> 0.11)
|
|
@@ -137,7 +147,7 @@ GEM
|
|
|
137
147
|
faraday_middleware
|
|
138
148
|
multi_json
|
|
139
149
|
rainbow
|
|
140
|
-
zeitwerk (2.5.
|
|
150
|
+
zeitwerk (2.5.4)
|
|
141
151
|
|
|
142
152
|
PLATFORMS
|
|
143
153
|
ruby
|
|
@@ -156,4 +166,4 @@ DEPENDENCIES
|
|
|
156
166
|
webmock
|
|
157
167
|
|
|
158
168
|
BUNDLED WITH
|
|
159
|
-
2.
|
|
169
|
+
2.3.4
|
|
@@ -35,6 +35,8 @@ module InstantQuote
|
|
|
35
35
|
'Iwoca' => 'iwoca',
|
|
36
36
|
'Iwoca CBILS' => 'iwoca_cbils',
|
|
37
37
|
'Iwoca Recovery Loans' => 'iwoca_recovery_loans',
|
|
38
|
+
'Iwoca Revenue Based Loans' => 'iwoca_revenue_based_loans',
|
|
39
|
+
'Iwoca Flexi24' => 'iwoca_flexi24',
|
|
38
40
|
'Capital on tap' => 'capital_on_tap',
|
|
39
41
|
'Optimum' => 'optimum',
|
|
40
42
|
'Youlend' => 'youlend'
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
require 'iwoca'
|
|
4
|
+
require 'instant_quote/adapters/iwoca'
|
|
5
|
+
require 'instant_quote/decision_parsers/iwoca_flexi24'
|
|
6
|
+
|
|
7
|
+
module InstantQuote
|
|
8
|
+
module Adapters
|
|
9
|
+
class IwocaFlexi24 < Iwoca
|
|
10
|
+
additional_fields Iwoca.additional_fields
|
|
11
|
+
|
|
12
|
+
# As a result of this we are
|
|
13
|
+
# asking that you do not call the /approval_request/ endpoint after submitting
|
|
14
|
+
# your customer's data to /state/.
|
|
15
|
+
def get_approval(_state_key, _connection)
|
|
16
|
+
true
|
|
17
|
+
end
|
|
18
|
+
|
|
19
|
+
private
|
|
20
|
+
|
|
21
|
+
def decision_parser
|
|
22
|
+
DecisionParsers::IwocaFlexi24
|
|
23
|
+
end
|
|
24
|
+
end
|
|
25
|
+
end
|
|
26
|
+
end
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
require 'iwoca'
|
|
4
|
+
require 'instant_quote/adapters/iwoca'
|
|
5
|
+
require 'instant_quote/decision_parsers/iwoca_revenue_based_loans'
|
|
6
|
+
|
|
7
|
+
module InstantQuote
|
|
8
|
+
module Adapters
|
|
9
|
+
class IwocaRevenueBasedLoans < Iwoca
|
|
10
|
+
additional_fields Iwoca.additional_fields
|
|
11
|
+
|
|
12
|
+
# As a result of this we are
|
|
13
|
+
# asking that you do not call the /approval_request/ endpoint after submitting
|
|
14
|
+
# your customer's data to /state/.
|
|
15
|
+
def get_approval(_state_key, _connection)
|
|
16
|
+
true
|
|
17
|
+
end
|
|
18
|
+
|
|
19
|
+
private
|
|
20
|
+
|
|
21
|
+
def decision_parser
|
|
22
|
+
DecisionParsers::IwocaRevenueBasedLoans
|
|
23
|
+
end
|
|
24
|
+
end
|
|
25
|
+
end
|
|
26
|
+
end
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
require 'instant_quote/connection_translators/iwoca'
|
|
4
|
+
|
|
5
|
+
module InstantQuote
|
|
6
|
+
module ConnectionTranslators
|
|
7
|
+
class IwocaFlexi24 < Iwoca
|
|
8
|
+
private
|
|
9
|
+
|
|
10
|
+
def product_name
|
|
11
|
+
:flexi24
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
def duration
|
|
15
|
+
24
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
require 'instant_quote/connection_translators/iwoca'
|
|
4
|
+
|
|
5
|
+
module InstantQuote
|
|
6
|
+
module ConnectionTranslators
|
|
7
|
+
class IwocaRevenueBasedLoans < Iwoca
|
|
8
|
+
private
|
|
9
|
+
|
|
10
|
+
def product_name
|
|
11
|
+
:merchant_cash_advance
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
def duration
|
|
15
|
+
24
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: instant_quote
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.7.
|
|
4
|
+
version: 1.7.16
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- rikas
|
|
8
|
-
autorequire:
|
|
8
|
+
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2022-
|
|
11
|
+
date: 2022-09-21 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|
|
@@ -274,7 +274,9 @@ files:
|
|
|
274
274
|
- lib/instant_quote/adapters/fake.rb
|
|
275
275
|
- lib/instant_quote/adapters/iwoca.rb
|
|
276
276
|
- lib/instant_quote/adapters/iwoca_cbils.rb
|
|
277
|
+
- lib/instant_quote/adapters/iwoca_flexi24.rb
|
|
277
278
|
- lib/instant_quote/adapters/iwoca_recovery_loans.rb
|
|
279
|
+
- lib/instant_quote/adapters/iwoca_revenue_based_loans.rb
|
|
278
280
|
- lib/instant_quote/adapters/optimum.rb
|
|
279
281
|
- lib/instant_quote/adapters/youlend.rb
|
|
280
282
|
- lib/instant_quote/api_error.rb
|
|
@@ -283,7 +285,9 @@ files:
|
|
|
283
285
|
- lib/instant_quote/connection_translators/fake.rb
|
|
284
286
|
- lib/instant_quote/connection_translators/iwoca.rb
|
|
285
287
|
- lib/instant_quote/connection_translators/iwoca_cbils.rb
|
|
288
|
+
- lib/instant_quote/connection_translators/iwoca_flexi24.rb
|
|
286
289
|
- lib/instant_quote/connection_translators/iwoca_recovery_loans.rb
|
|
290
|
+
- lib/instant_quote/connection_translators/iwoca_revenue_based_loans.rb
|
|
287
291
|
- lib/instant_quote/connection_translators/optimum.rb
|
|
288
292
|
- lib/instant_quote/connection_translators/youlend.rb
|
|
289
293
|
- lib/instant_quote/decision_parser.rb
|
|
@@ -291,7 +295,9 @@ files:
|
|
|
291
295
|
- lib/instant_quote/decision_parsers/fake.rb
|
|
292
296
|
- lib/instant_quote/decision_parsers/iwoca.rb
|
|
293
297
|
- lib/instant_quote/decision_parsers/iwoca_cbils.rb
|
|
298
|
+
- lib/instant_quote/decision_parsers/iwoca_flexi24.rb
|
|
294
299
|
- lib/instant_quote/decision_parsers/iwoca_recovery_loans.rb
|
|
300
|
+
- lib/instant_quote/decision_parsers/iwoca_revenue_based_loans.rb
|
|
295
301
|
- lib/instant_quote/decision_parsers/optimum.rb
|
|
296
302
|
- lib/instant_quote/decision_parsers/youlend.rb
|
|
297
303
|
- lib/instant_quote/version.rb
|
|
@@ -300,7 +306,7 @@ homepage: https://finpoint.co.uk
|
|
|
300
306
|
licenses: []
|
|
301
307
|
metadata:
|
|
302
308
|
homepage_uri: https://finpoint.co.uk
|
|
303
|
-
post_install_message:
|
|
309
|
+
post_install_message:
|
|
304
310
|
rdoc_options: []
|
|
305
311
|
require_paths:
|
|
306
312
|
- lib
|
|
@@ -315,8 +321,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
315
321
|
- !ruby/object:Gem::Version
|
|
316
322
|
version: '0'
|
|
317
323
|
requirements: []
|
|
318
|
-
rubygems_version: 3.
|
|
319
|
-
signing_key:
|
|
324
|
+
rubygems_version: 3.0.6
|
|
325
|
+
signing_key:
|
|
320
326
|
specification_version: 4
|
|
321
327
|
summary: Instant quote providers gem.
|
|
322
328
|
test_files: []
|