instant_quote 1.3.0 → 1.4.0

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: c0e4d676043f18051bcb1f2b7e19d1717f8358b0b91f5045904836e02b298f41
4
- data.tar.gz: 685fbafd3e28e54cfda323046c128fcb030dcb3ee7f63d43b57883a550f3e1a9
3
+ metadata.gz: 40981c76f383ff34163f212e6b9f32a58d2281426ee40fc872b1f38102e24754
4
+ data.tar.gz: 227f3b25eec82494a383ad796f09b0dda5ad9b1472d93c1ba6e2728855529c59
5
5
  SHA512:
6
- metadata.gz: fa8b5523e543f875eeb2bd9c35290b362f1be0b68a253d4711bd375f13cbf808781109dd1c283c1c686a5bc398cab7185f519fb2cb97a33d842a9ed705e71a66
7
- data.tar.gz: 80552793f341720a2030a8fe02a84392c4823daaaf96fa550fe081ece670382f218ed459950547e2157cd6a8bdd08f3a61b7c3c6cf02b84cdf8f676f65c33eeb
6
+ metadata.gz: 860eb841f3405a3bf62c614551d0f663de38451956321ca2998d790381a365f42067f85d48bc32c90a689ed579e69d9167dbe32d9f2220292ad79a119227d730
7
+ data.tar.gz: f767ccde890f42dfc727e230c0fc02479d81bcf0e911a1b00d33e12ac7679edd244cfe41be7e6dc7c5ad292796dae85379962b5b0643b1aa646817c19499ec14
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- instant_quote (1.3.0)
4
+ instant_quote (1.4.0)
5
5
  activesupport
6
6
  capital_on_tap
7
7
  iwoca
@@ -38,27 +38,28 @@ module InstantQuote
38
38
  if: ->(app) { app.borrower_organisation.sole_trader? }
39
39
  },
40
40
  {
41
- name: 'existing_cbils_loan',
42
- label: 'Do you already have a CBILS or BBLS loan?',
41
+ name: 'turnover_percentage_after_feb_2020',
42
+ label: 'When compared to before COVID-19, what is your current turnover level?',
43
43
  required: true,
44
44
  choices: {
45
- 'Yes' => 'true',
46
- 'No' => 'false'
45
+ 'Greater than before (>100%)' => 'GreaterThanHundredPercentage',
46
+ 'Marginally reduced (80-100%)' => 'LessThanOrEqualToHunderdPercentage',
47
+ 'Reduced (60-79%)' => 'LessThanSeventyNinePercentage',
48
+ 'Halved (40-59%)' => 'LessThanFiftyNinePercentage',
49
+ 'Less than half (20-39%)' => 'LessThanThirtyNinePercentage',
50
+ 'Severely reduced or no turnover (<20%)' => 'LessThanTwentyPercentage'
47
51
  },
48
- type: 'radio'
52
+ type: 'select'
49
53
  },
50
54
  {
51
- name: 'turnover_percentage_after_feb_2020',
52
- label: 'When compared to before COVID-19, what is your current turnover level?',
55
+ name: 'preferred_monthly_repayment_option',
56
+ label: 'What is your preferred monthly repayment option?',
53
57
  required: true,
54
- choices: {
55
- 'Greater than before (>100%)' => '>100%',
56
- 'Marginally reduced (80-100%)' => '80-100%',
57
- 'Reduced (60-79%)' => '60-79%',
58
- 'Halved (40-59%)' => '40-59%',
59
- 'Less than half (20-39%)' => '20-39%',
60
- 'Severely reduced or no turnover (<20%)' => '<20%'
61
- },
58
+ choices: [
59
+ 'Minimum Amount Required',
60
+ 'Full Balance',
61
+ 'Fixed Amount'
62
+ ],
62
63
  type: 'select'
63
64
  },
64
65
  {
@@ -152,7 +152,7 @@ module InstantQuote
152
152
  def additional_questions
153
153
  [
154
154
  loan_purpose_question,
155
- cbils_loan_question,
155
+ preferred_monthly_repayment_option_question,
156
156
  turnover_percentage_question
157
157
  ]
158
158
  end
@@ -165,8 +165,8 @@ module InstantQuote
165
165
  }
166
166
  end
167
167
 
168
- def cbils_loan_question
169
- question_from_extra_info('existing_cbils_loan', '17')
168
+ def preferred_monthly_repayment_option_question
169
+ question_from_extra_info('preferred_monthly_repayment_option', '17')
170
170
  end
171
171
 
172
172
  def turnover_percentage_question
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module InstantQuote
4
- VERSION = '1.3.0'
4
+ VERSION = '1.4.0'
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.3.0
4
+ version: 1.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - rikas
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-09-14 00:00:00.000000000 Z
11
+ date: 2020-09-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler