instant_quote 1.7.14 → 1.7.15

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: edd5b0a7322b6667c9679054b0936af7c0a9d214660643548174f71e4091c77d
4
- data.tar.gz: 39fce6e706e835e09dcf032515230460a51dad2395531aa135eef25741b6dab0
3
+ metadata.gz: b1b05b02c1df2b97fce31987bfe3da27ed8d7841c076c91a1069fbcbe481e8c3
4
+ data.tar.gz: 7ef4d600af1809fe432efed7dd47e65930542aff5e8f56eb714e287c15a780d3
5
5
  SHA512:
6
- metadata.gz: 0d29a488db3b68c8988f26c8fd6ca326238be4037cfa06ea8e364887d4f599cbd4fc676e61d5ac2992a163eab0611b4939465fc628ad69e969b77d1716c58940
7
- data.tar.gz: eb5c39b98bbe1ac402c96a33450019ee65bff24e16f420272ba7df8a0a4878170ab0c82d618ed44eb1a1f7a7d0c754934c1d96b1232416ac78e213a15cc99bb6
6
+ metadata.gz: dad097b417294de34157be0fa948c0c764b8803f92355f20638bfda15226956cf378ddd21c8699ee35c987149dd95cfdbb27d9be00cdd3b1371a36473d6e43b9
7
+ data.tar.gz: e8a410b995f7b3a3e98003e2fc4e6570c6d324688e14218b9f551099e0f1ae75a3a405cb93ec9a01121de1c05baf59e4352e4a165bc35d4acf188d20ddbb32e8
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- instant_quote (1.7.14)
4
+ instant_quote (1.7.15)
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.4.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.4.2)
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.1)
45
- multipart-post (>= 1.2, < 3)
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.1.0)
52
- faraday_middleware (1.0.0)
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.8.11)
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.14.4)
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.53)
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.4)
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.1)
150
+ zeitwerk (2.5.4)
141
151
 
142
152
  PLATFORMS
143
153
  ruby
@@ -35,6 +35,7 @@ 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',
38
39
  'Capital on tap' => 'capital_on_tap',
39
40
  'Optimum' => 'optimum',
40
41
  '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_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 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
@@ -0,0 +1,10 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'instant_quote/decision_parsers/iwoca'
4
+
5
+ module InstantQuote
6
+ module DecisionParsers
7
+ class IwocaRevenueBasedLoans < Iwoca
8
+ end
9
+ end
10
+ end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module InstantQuote
4
- VERSION = '1.7.14'
4
+ VERSION = '1.7.15'
5
5
  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.14
4
+ version: 1.7.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - rikas
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-01-11 00:00:00.000000000 Z
11
+ date: 2022-03-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -275,6 +275,7 @@ files:
275
275
  - lib/instant_quote/adapters/iwoca.rb
276
276
  - lib/instant_quote/adapters/iwoca_cbils.rb
277
277
  - lib/instant_quote/adapters/iwoca_recovery_loans.rb
278
+ - lib/instant_quote/adapters/iwoca_revenue_based_loans.rb
278
279
  - lib/instant_quote/adapters/optimum.rb
279
280
  - lib/instant_quote/adapters/youlend.rb
280
281
  - lib/instant_quote/api_error.rb
@@ -284,6 +285,7 @@ files:
284
285
  - lib/instant_quote/connection_translators/iwoca.rb
285
286
  - lib/instant_quote/connection_translators/iwoca_cbils.rb
286
287
  - lib/instant_quote/connection_translators/iwoca_recovery_loans.rb
288
+ - lib/instant_quote/connection_translators/iwoca_revenue_based_loans.rb
287
289
  - lib/instant_quote/connection_translators/optimum.rb
288
290
  - lib/instant_quote/connection_translators/youlend.rb
289
291
  - lib/instant_quote/decision_parser.rb
@@ -292,6 +294,7 @@ files:
292
294
  - lib/instant_quote/decision_parsers/iwoca.rb
293
295
  - lib/instant_quote/decision_parsers/iwoca_cbils.rb
294
296
  - lib/instant_quote/decision_parsers/iwoca_recovery_loans.rb
297
+ - lib/instant_quote/decision_parsers/iwoca_revenue_based_loans.rb
295
298
  - lib/instant_quote/decision_parsers/optimum.rb
296
299
  - lib/instant_quote/decision_parsers/youlend.rb
297
300
  - lib/instant_quote/version.rb