instant_quote 1.5.0 → 1.5.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: eef07ddced31786ca9ec8a8d92d9d411a73d22346e9d5632ff59a7e672a1f788
4
- data.tar.gz: a74a1aceb44867a2f6d3e00ceab66274767f62eb2985034f44b4d956b00efd76
3
+ metadata.gz: cfe1f8cd80aa58f3cf222f4e1c98dab3e6a50b2b846a95eadf13585c5c5e1760
4
+ data.tar.gz: 0defb7c7587d624e0a83ca0ee879ab455aa0520b4c6111f10f7b6f3156d9f70e
5
5
  SHA512:
6
- metadata.gz: a857b026d315a8a510af1dc99e83956086c1cd8a5488405f94fec30a2076b6f1e433b1346c42d01e5f5fcfc39a7164bc6b6b00c81714a6a02f1dc700e67667ec
7
- data.tar.gz: f204e1812ae0e798dd8730d4af0aded1f4efcfda51ba57dc2c3ab02841a24a8eba6a0eeeacf0a31af298475b7b662d8cb6340a2ba60f96dae9f5d070837c5111
6
+ metadata.gz: 2d152de9006e7c94ab6ebb1ae3d5b818fe79f42118c63b12890d659472d718bde2c8e5e86d4f08ed0d16379acd603398ff4f4d22327aaab3621d0fde78a0a8f8
7
+ data.tar.gz: 46162c30f56ebceabe2ffc035a837ea46f7a169816249024abd2f38e29d228a51c63af70b280b43909aad7f874375a3d8c7a237c9216c858fab716646f6c916e
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- instant_quote (1.5.0)
4
+ instant_quote (1.5.1)
5
5
  activesupport
6
6
  capital_on_tap
7
7
  iwoca
@@ -12,7 +12,7 @@ PATH
12
12
  GEM
13
13
  remote: https://rubygems.org/
14
14
  specs:
15
- activesupport (6.0.3.3)
15
+ activesupport (6.0.3.4)
16
16
  concurrent-ruby (~> 1.0, >= 1.0.2)
17
17
  i18n (>= 0.7, < 2)
18
18
  minitest (~> 5.1)
@@ -35,8 +35,9 @@ GEM
35
35
  diff-lcs (1.3)
36
36
  docile (1.3.2)
37
37
  dotenv (2.7.5)
38
- faraday (1.0.1)
38
+ faraday (1.1.0)
39
39
  multipart-post (>= 1.2, < 3)
40
+ ruby2_keywords
40
41
  faraday_middleware (1.0.0)
41
42
  faraday (~> 1.0)
42
43
  hashdiff (1.0.1)
@@ -55,7 +56,7 @@ GEM
55
56
  i18n (>= 0.6.4, <= 2)
56
57
  multi_json (1.15.0)
57
58
  multipart-post (2.1.1)
58
- optimum (1.0.0)
59
+ optimum (1.1.0)
59
60
  addressable
60
61
  faraday
61
62
  faraday_middleware
@@ -64,7 +65,7 @@ GEM
64
65
  parallel (1.19.1)
65
66
  parser (2.7.0.5)
66
67
  ast (~> 2.4.0)
67
- phonelib (0.6.45)
68
+ phonelib (0.6.46)
68
69
  pry (0.13.0)
69
70
  coderay (~> 1.1)
70
71
  method_source (~> 1.0)
@@ -97,6 +98,7 @@ GEM
97
98
  ruby-progressbar (~> 1.7)
98
99
  unicode-display_width (>= 1.4.0, < 1.7)
99
100
  ruby-progressbar (1.10.1)
101
+ ruby2_keywords (0.0.2)
100
102
  safe_yaml (1.0.5)
101
103
  simplecov (0.18.5)
102
104
  docile (~> 1.1)
@@ -34,26 +34,23 @@ module InstantQuote
34
34
  },
35
35
  {
36
36
  name: 'turnover_percentage_after_feb_2020',
37
- label: 'When compared to before COVID-19, what is your current turnover level?',
37
+ label: 'What is your current turnover as a percentage of your turnover prior to February 2020?',
38
38
  required: true,
39
- choices: {
40
- 'Greater than before (>100%)' => 'GreaterThanHundredPercentage',
41
- 'Marginally reduced (80-100%)' => 'LessThanOrEqualToHunderdPercentage',
42
- 'Reduced (60-79%)' => 'LessThanSeventyNinePercentage',
43
- 'Halved (40-59%)' => 'LessThanFiftyNinePercentage',
44
- 'Less than half (20-39%)' => 'LessThanThirtyNinePercentage',
45
- 'Severely reduced or no turnover (<20%)' => 'LessThanTwentyPercentage'
46
- },
39
+ choices: [
40
+ 'My turnover had increased since covid',
41
+ 'My turnover is about the same as it was pre-covid (within 20%)',
42
+ 'My turnover has fallen materially as a result of covid (20%-60% reduction in turnover)',
43
+ 'My turnover has fallen significantly as a result of covid (more than a 60% reduction in turnover)'
44
+ ],
47
45
  type: 'select'
48
46
  },
49
47
  {
50
48
  name: 'preferred_monthly_repayment_option',
51
- label: 'What is your preferred monthly repayment option?',
49
+ label: 'How do you want to set up your direct debit for monthly repayment?',
52
50
  required: true,
53
51
  choices: [
54
- 'Minimum Amount Required',
55
- 'Full Balance',
56
- 'Fixed Amount'
52
+ 'Minimum Amount (10% of balance)',
53
+ 'Full Balance'
57
54
  ],
58
55
  type: 'select'
59
56
  },
@@ -6,60 +6,6 @@ module InstantQuote
6
6
  module ConnectionTranslators
7
7
  class CapitalOnTap < ConnectionTranslator
8
8
  DEFAULT_SALUTATION = 'Mr'
9
- LOAN_PURPOSE_MAPPING = {
10
- 'Apply for COVID-19 support/for other reasons' => 'General working capital requirements',
11
- 'Apply for COVID-19 support/to pay existing loans' => 'Repay Finances with another lender',
12
- 'Apply for COVID-19 support/to pay suppliers' => 'General working capital requirements',
13
- 'Apply for COVID-19 support/to protect jobs' => 'Payment of wages or rent',
14
- 'Apply for COVID-19 support/to refinance existing loans' => 'Repay Finances with another lender',
15
- 'Buy or develop property/buy the property my business already occupies' => '',
16
- 'Buy or develop property/buying a business that includes premises' => 'Acquisition of another business in the UK',
17
- 'Buy or develop property/buying a property for my business to move into' => '',
18
- 'Buy or develop property/develop residential or commercial premises' => 'Bridging loan',
19
- 'Buy or develop property/invest in a foreign property to rent it out' => '',
20
- 'Buy or develop property/invest in a holiday let' => '',
21
- 'Buy or develop property/invest in UK property' => 'Bridging loan',
22
- 'Buy or develop property/other property finance needs' => 'Bridging loan',
23
- 'Buy or refinance vehicle(s)/agricultural vehicle(s)' => 'General working capital requirements',
24
- 'Buy or refinance vehicle(s)/car(s)' => 'General working capital requirements',
25
- 'Buy or refinance vehicle(s)/caravan(s) & mobile home(s)' => 'General working capital requirements',
26
- 'Buy or refinance vehicle(s)/commercial vehicle(s)' => 'General working capital requirements',
27
- 'Buy or refinance vehicle(s)/fork lift truck(s)' => 'General working capital requirements',
28
- 'Buy or refinance vehicle(s)/other vehicle finance requirements' => 'General working capital requirements',
29
- 'Help with grants, tax credits and pension finance/for a research & development project' => 'Research and development activities',
30
- 'Help with grants, tax credits and pension finance/for green energy projects' => 'General working capital requirements',
31
- 'Help with grants, tax credits and pension finance/for projects with social impact' => 'General working capital requirements',
32
- 'Help with grants, tax credits and pension finance/other grant funding needs' => '',
33
- 'Help with grants, tax credits and pension finance/starting a business, incl. accelerator and incubator programs' => 'Start up costs',
34
- 'Help with grants, tax credits and pension finance/to fund skills and training initiatives' => 'General working capital requirements',
35
- 'Help with grants, tax credits and pension finance/utilise pensions to lend to a business' => '',
36
- 'Improve cashflow/borrow against monthly income from a credit card terminal' => '',
37
- 'Improve cashflow/finance overseas trading and exporting' => 'General working capital requirements',
38
- 'Improve cashflow/other cashflow requirements' => 'General working capital requirements',
39
- 'Improve cashflow/raise credit against agreed purchase orders' => 'General working capital requirements',
40
- 'Improve cashflow/release capital from pension fund(s)' => '',
41
- 'Improve cashflow/release cash from one unpaid invoice to another business' => 'General working capital requirements',
42
- 'Improve cashflow/release cash from several invoices to other businesses' => 'General working capital requirements',
43
- 'Improve cashflow/spread the cost of a large bill' => 'General working capital requirements',
44
- 'Invest in equipment or machinery/computers (hardware, software)' => 'Purchase of equipment/machinery/stock',
45
- 'Invest in equipment or machinery/equipment (office, printing, medical, etc.)' => 'Purchase of equipment/machinery/stock',
46
- 'Invest in equipment or machinery/furniture & furnishings' => 'Purchase of equipment/machinery/stock',
47
- 'Invest in equipment or machinery/machinery & tools' => 'Purchase of equipment/machinery/stock',
48
- 'Invest in equipment or machinery/other investment needs' => 'Purchase of licences,quotas or other entitlements to trade',
49
- 'Invest in equipment or machinery/phone & telecom systems' => 'Purchase of equipment/machinery/stock',
50
- 'Refinance an existing.../asset' => 'Repay Finances with another lender',
51
- 'Refinance an existing.../business loan' => 'Repay Finances with another lender',
52
- 'Refinance an existing.../commercial mortgage' => '',
53
- 'Refinance an existing.../other refinancing needs' => 'Repay Finances with another lender',
54
- 'Seeking investment/for a management buy-out' => 'Acquisition of another business in the UK',
55
- 'Seeking investment/other funding requirements' => 'General working capital requirements',
56
- 'Seeking investment/to launch a new B2B product or service' => 'Start up costs',
57
- 'Seeking investment/to launch a new consumer product or service' => 'Start up costs',
58
- 'Seeking investment/to purchase another business' => 'Acquisition of another business in the UK',
59
- 'Seeking investment/to reach more consumers with a proven product or service' => 'Expansion Activities in the UK',
60
- 'Seeking investment/to win more business clients with a proven product or service' => 'Expansion Activities in the UK',
61
- 'Seeking investment/venture builder, accelerator and incubator programs' => ''
62
- }.freeze
63
9
 
64
10
  # rubocop:disable Metrics/AbcSize
65
11
  def translate
@@ -151,20 +97,11 @@ module InstantQuote
151
97
 
152
98
  def additional_questions
153
99
  [
154
- loan_purpose_question,
155
100
  preferred_monthly_repayment_option_question,
156
101
  turnover_percentage_question
157
102
  ]
158
103
  end
159
104
 
160
- def loan_purpose_question
161
- {
162
- question: 'What is the purpose of the loan?',
163
- answer: translate_loan_purpose,
164
- questionType: '16'
165
- }
166
- end
167
-
168
105
  def preferred_monthly_repayment_option_question
169
106
  question_from_extra_info('preferred_monthly_repayment_option', '17')
170
107
  end
@@ -180,15 +117,6 @@ module InstantQuote
180
117
 
181
118
  { question: field[:label], answer: extra_info[field[:name]], questionType: question_type }
182
119
  end
183
-
184
- def translate_loan_purpose
185
- proceeds_purpose = [
186
- application.proceeds_purpose&.overview&.name,
187
- application.proceeds_purpose&.name
188
- ].join('/')
189
-
190
- LOAN_PURPOSE_MAPPING[proceeds_purpose]
191
- end
192
120
  end
193
121
  end
194
122
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module InstantQuote
4
- VERSION = '1.5.0'
4
+ VERSION = '1.5.1'
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.5.0
4
+ version: 1.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - rikas
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-09-22 00:00:00.000000000 Z
11
+ date: 2020-10-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -249,7 +249,7 @@ homepage: https://finpoint.co.uk
249
249
  licenses: []
250
250
  metadata:
251
251
  homepage_uri: https://finpoint.co.uk
252
- post_install_message:
252
+ post_install_message:
253
253
  rdoc_options: []
254
254
  require_paths:
255
255
  - lib
@@ -265,7 +265,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
265
265
  version: '0'
266
266
  requirements: []
267
267
  rubygems_version: 3.0.3
268
- signing_key:
268
+ signing_key:
269
269
  specification_version: 4
270
270
  summary: Instant quote providers gem.
271
271
  test_files: []