instant_quote 1.5.1 → 1.5.2

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: cfe1f8cd80aa58f3cf222f4e1c98dab3e6a50b2b846a95eadf13585c5c5e1760
4
- data.tar.gz: 0defb7c7587d624e0a83ca0ee879ab455aa0520b4c6111f10f7b6f3156d9f70e
3
+ metadata.gz: 37edc1ac5cee7a85fb58c677061f8b6aab1fedaf6dbc472cfb92801b25f4fdbc
4
+ data.tar.gz: 35cad5c9bcbb00750364ed51abb3367163b949a7bbe444c76404d37602868a6c
5
5
  SHA512:
6
- metadata.gz: 2d152de9006e7c94ab6ebb1ae3d5b818fe79f42118c63b12890d659472d718bde2c8e5e86d4f08ed0d16379acd603398ff4f4d22327aaab3621d0fde78a0a8f8
7
- data.tar.gz: 46162c30f56ebceabe2ffc035a837ea46f7a169816249024abd2f38e29d228a51c63af70b280b43909aad7f874375a3d8c7a237c9216c858fab716646f6c916e
6
+ metadata.gz: 71b11b24f38de7282f55cf63820d9b1091bb0873781070dc2af58747055305cbb3029afb433adc2401e95a812040743649f9b398bc0c6fa338923377bacda8ef
7
+ data.tar.gz: 520a2a85e693db1002e333db97e0b5549ef7632de054d6992e9d36ca0cfb72ed5f9fdab7a580ea6b6ce1b24097880825bd70d433f4cc946997c2187d5502833d
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- instant_quote (1.5.1)
4
+ instant_quote (1.5.2)
5
5
  activesupport
6
6
  capital_on_tap
7
7
  iwoca
@@ -112,7 +112,7 @@ GEM
112
112
  addressable (>= 2.3.6)
113
113
  crack (>= 0.3.2)
114
114
  hashdiff (>= 0.4.0, < 2.0.0)
115
- zeitwerk (2.4.0)
115
+ zeitwerk (2.4.1)
116
116
 
117
117
  PLATFORMS
118
118
  ruby
@@ -54,6 +54,16 @@ module InstantQuote
54
54
  ],
55
55
  type: 'select'
56
56
  },
57
+ {
58
+ name: 'send_cash_from_credit_facility_to_bank',
59
+ label: 'Do you require the ability to send cash from your credit facility to your bank?',
60
+ required: true,
61
+ choices: {
62
+ 'Yes' => 'True',
63
+ 'No' => 'False'
64
+ },
65
+ type: 'select'
66
+ },
57
67
  {
58
68
  name: 'applicant_consent',
59
69
  label: 'Yes, I give my consent for my data to be shared',
@@ -98,7 +98,8 @@ module InstantQuote
98
98
  def additional_questions
99
99
  [
100
100
  preferred_monthly_repayment_option_question,
101
- turnover_percentage_question
101
+ turnover_percentage_question,
102
+ send_cash_from_credit_facility_to_bank_question
102
103
  ]
103
104
  end
104
105
 
@@ -110,6 +111,10 @@ module InstantQuote
110
111
  question_from_extra_info('turnover_percentage_after_feb_2020', '20')
111
112
  end
112
113
 
114
+ def send_cash_from_credit_facility_to_bank_question
115
+ question_from_extra_info('send_cash_from_credit_facility_to_bank', '23')
116
+ end
117
+
113
118
  def question_from_extra_info(name, question_type)
114
119
  field = Adapters::CapitalOnTap.additional_fields.find do |f|
115
120
  f[:name] == name
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module InstantQuote
4
- VERSION = '1.5.1'
4
+ VERSION = '1.5.2'
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.1
4
+ version: 1.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - rikas
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-10-22 00:00:00.000000000 Z
11
+ date: 2020-11-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler