instant_quote 1.7.22 → 1.7.23

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: 2cfb3948ee04a205206b34fccf2f026860d98251ea360c89b15a61b4237bc676
4
- data.tar.gz: 769bf102eb00fe3af4fd0feb54fbc7d497839ae4198bfeb5ea1c320e50dc8483
3
+ metadata.gz: 62afac47e88f6a0081bf3194e11949baacf153e299705461711a182d7fc68dce
4
+ data.tar.gz: d7c9a1854649370bf9e555f9de372df47a1c16755a131403f7ef75340ced090e
5
5
  SHA512:
6
- metadata.gz: cd5fc9c98403f895a5b0c0297e567867e065a8f4a2f488368604d40301d4e7f0d6a3159d2040c7dad61e5e701cdbbf35b0f800b2a3f2d0bcddcd48a9f73fbc80
7
- data.tar.gz: 3f378869e818467e5a2393f6a4d80b44e302374784cc2549b56c3448ce99c6871b98d742475dc35cc308bc5aa7ee0ebb8ce5ec4576b0d95f9a37934e10f6e9e9
6
+ metadata.gz: daec7768578601d6ec787f903226e01ff3b5dffc4e722adebefc528b6f4b68bfbb52821920d2cc6f65e76946c6d09f26addaf08e710f310c30b4bf02f03396d4
7
+ data.tar.gz: 9a6c1cbdc841e0edd601cdd1d1697ada57a34d5454b72cddcf61af9c75fa05bf8c1fede1126caa7235d54fe6f12f2879f429b670bd3a3cf8798cfe85eeba1318
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- instant_quote (1.7.22)
4
+ instant_quote (1.7.23)
5
5
  activesupport
6
6
  capital_on_tap (~> 1.0.1)
7
7
  iwoca (~> 1.1.0)
@@ -8,13 +8,6 @@ module InstantQuote
8
8
  data: {
9
9
  company: company_information,
10
10
  people: [person_information],
11
- # requests: [
12
- # amount: (application.amount_pennies / 100),
13
- # duration: { amount: 12, unit: 'months' },
14
- # purpose: application&.proceeds_purpose&.name,
15
- # product_type: product_name,
16
- # urgency: 'asap'
17
- # ]
18
11
  }
19
12
  }
20
13
  end
@@ -41,6 +34,7 @@ module InstantQuote
41
34
  # rubocop:disable Metrics/AbcSize
42
35
  def company_information
43
36
  information = {
37
+ uid: SecureRandom.uuid,
44
38
  registered_company_name: company.name,
45
39
  industry: company.industry.name,
46
40
  company_number: company.company_number.to_s,
@@ -101,7 +95,7 @@ module InstantQuote
101
95
 
102
96
  def person_information
103
97
  {
104
- # uid: SecureRandom.uuid,
98
+ uid: SecureRandom.uuid,
105
99
  first_name: application.primary_user.first_name,
106
100
  last_name: application.primary_user.last_name,
107
101
  date_of_birth: extra_info['applicant_date_of_birth'],
@@ -111,14 +105,13 @@ module InstantQuote
111
105
  residential_addresses: [person_residential_address],
112
106
  privacy_policy: {
113
107
  agreed: true,
114
- datetime: DateTime.current
108
+ valid_from: DateTime.current
115
109
  }
116
110
  }
117
111
  end
118
112
 
119
113
  def person_phone
120
114
  {
121
- # uid: SecureRandom.uuid,
122
115
  number: extra_info['applicant_phone_number'],
123
116
  type: 'primary'
124
117
  }
@@ -126,7 +119,6 @@ module InstantQuote
126
119
 
127
120
  def person_email
128
121
  {
129
- # uid: SecureRandom.uuid,
130
122
  email: application&.primary_user&.email,
131
123
  type: 'primary'
132
124
  }
@@ -135,7 +127,6 @@ module InstantQuote
135
127
  # rubocop:disable Naming/VariableNumber
136
128
  def person_residential_address
137
129
  {
138
- # uid: SecureRandom.uuid,
139
130
  town: extra_info['applicant_town'],
140
131
  street_line_1: extra_info['applicant_address_line_1'],
141
132
  street_line_2: extra_info['applicant_address_line_2'] || '',
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module InstantQuote
4
- VERSION = '1.7.22'
4
+ VERSION = '1.7.23'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: instant_quote
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.22
4
+ version: 1.7.23
5
5
  platform: ruby
6
6
  authors:
7
7
  - rikas