instant_quote 1.7.12 → 1.7.13
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +2 -2
- data/lib/instant_quote/adapters/fake.rb +1 -0
- data/lib/instant_quote/adapters/iwoca_recovery_loans.rb +26 -0
- data/lib/instant_quote/connection_translators/iwoca.rb +5 -1
- data/lib/instant_quote/connection_translators/iwoca_recovery_loans.rb +19 -0
- data/lib/instant_quote/decision_parsers/iwoca_recovery_loans.rb +10 -0
- data/lib/instant_quote/version.rb +1 -1
- metadata +5 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4d5a638e0feb5aeef60cdfbe670b9a6e48c6f10563139491f991b72dafb4e285
|
4
|
+
data.tar.gz: b613670eb939dccaacfa3a4c1704599242da8d11cb006fd2b6f8758fe8d4748f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1f5c7211f3fc4f4ff66926f8073964231cffc62f2e50e59ff104c1f57503a97727524cea45d4b90771aff88eacad6b2e514b33857678ddc2bbe6918381c851c1
|
7
|
+
data.tar.gz: 3d3edba56ad6c702c7607c25eb8c717ecd6b92fc9e153224bd075750d5b2b5f3cecfbe3da5632ea1aee57a76090ac1790f59e409c1c08afdd96a9dda835509d2
|
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.13)
|
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.4.1)
|
17
17
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
18
18
|
i18n (>= 1.6, < 2)
|
19
19
|
minitest (>= 5.1)
|
@@ -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_recovery_loans'
|
6
|
+
|
7
|
+
module InstantQuote
|
8
|
+
module Adapters
|
9
|
+
class IwocaRecoveryLoans < 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::IwocaRecoveryLoans
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
@@ -13,7 +13,7 @@ module InstantQuote
|
|
13
13
|
product_name => {
|
14
14
|
approval: {
|
15
15
|
amount: (application.amount_pennies / 100),
|
16
|
-
duration:
|
16
|
+
duration: duration,
|
17
17
|
detailed_purpose: application&.proceeds_purpose&.name
|
18
18
|
}
|
19
19
|
}
|
@@ -29,6 +29,10 @@ module InstantQuote
|
|
29
29
|
:credit_facility
|
30
30
|
end
|
31
31
|
|
32
|
+
def duration
|
33
|
+
12
|
34
|
+
end
|
35
|
+
|
32
36
|
# rubocop:disable Metrics/AbcSize
|
33
37
|
def company_information
|
34
38
|
information = {
|
@@ -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 IwocaRecoveryLoans < Iwoca
|
8
|
+
private
|
9
|
+
|
10
|
+
def product_name
|
11
|
+
:recovery_loan
|
12
|
+
end
|
13
|
+
|
14
|
+
def duration
|
15
|
+
60
|
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.13
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- rikas
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-10-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -274,6 +274,7 @@ 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_recovery_loans.rb
|
277
278
|
- lib/instant_quote/adapters/optimum.rb
|
278
279
|
- lib/instant_quote/adapters/youlend.rb
|
279
280
|
- lib/instant_quote/api_error.rb
|
@@ -282,6 +283,7 @@ files:
|
|
282
283
|
- lib/instant_quote/connection_translators/fake.rb
|
283
284
|
- lib/instant_quote/connection_translators/iwoca.rb
|
284
285
|
- lib/instant_quote/connection_translators/iwoca_cbils.rb
|
286
|
+
- lib/instant_quote/connection_translators/iwoca_recovery_loans.rb
|
285
287
|
- lib/instant_quote/connection_translators/optimum.rb
|
286
288
|
- lib/instant_quote/connection_translators/youlend.rb
|
287
289
|
- lib/instant_quote/decision_parser.rb
|
@@ -289,6 +291,7 @@ files:
|
|
289
291
|
- lib/instant_quote/decision_parsers/fake.rb
|
290
292
|
- lib/instant_quote/decision_parsers/iwoca.rb
|
291
293
|
- lib/instant_quote/decision_parsers/iwoca_cbils.rb
|
294
|
+
- lib/instant_quote/decision_parsers/iwoca_recovery_loans.rb
|
292
295
|
- lib/instant_quote/decision_parsers/optimum.rb
|
293
296
|
- lib/instant_quote/decision_parsers/youlend.rb
|
294
297
|
- lib/instant_quote/version.rb
|