instant_quote 1.7.32 → 1.7.33
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/instant_quote/decision_parsers/iwoca.rb +5 -1
- data/lib/instant_quote/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 961b0814c5895349859b111b9154e56582aade793a7e7623c68e53b142742b86
|
4
|
+
data.tar.gz: 7e88f40122d9bc7442618b3fc4aa3994f6b8f988887cfb240de853d47094bd95
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ccf3b9a9eb9d9e38c3c9ad2a9341432f683dd0dc6ca14e59b31b80b701563560c4796869f8202a84c45461798387419dbf90b1db943635ad6b513e417b6971f8
|
7
|
+
data.tar.gz: aaa6b9dcd4fc6dfebf247e443911af337f77a0cd0f1f713547fc2aa51840e73d6069f68b194b8504ae997598f26c7d9556dff0a665b72457f41d6723629b7947
|
data/Gemfile.lock
CHANGED
@@ -165,10 +165,14 @@ module InstantQuote
|
|
165
165
|
unit = suggested_product.dig(:duration, :unit)
|
166
166
|
amount = suggested_product.dig(:duration, :amount)
|
167
167
|
|
168
|
+
return unless unit && amount
|
169
|
+
|
168
170
|
{ unit: unit, amount: amount }
|
169
171
|
end
|
170
172
|
|
171
173
|
def monthly_interest_rate
|
174
|
+
return 0 unless first_offer
|
175
|
+
|
172
176
|
first_offer[:interest_rate]
|
173
177
|
end
|
174
178
|
|
@@ -181,7 +185,7 @@ module InstantQuote
|
|
181
185
|
private
|
182
186
|
|
183
187
|
def suggested_product
|
184
|
-
@status[:requests]&.first&.dig(:suggested_product)
|
188
|
+
@status[:requests]&.first&.dig(:suggested_product) || {}
|
185
189
|
end
|
186
190
|
|
187
191
|
def first_offer
|