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 +4 -4
- data/Gemfile.lock +1 -1
- data/lib/instant_quote/connection_translators/iwoca.rb +3 -12
- 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: 62afac47e88f6a0081bf3194e11949baacf153e299705461711a182d7fc68dce
|
4
|
+
data.tar.gz: d7c9a1854649370bf9e555f9de372df47a1c16755a131403f7ef75340ced090e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: daec7768578601d6ec787f903226e01ff3b5dffc4e722adebefc528b6f4b68bfbb52821920d2cc6f65e76946c6d09f26addaf08e710f310c30b4bf02f03396d4
|
7
|
+
data.tar.gz: 9a6c1cbdc841e0edd601cdd1d1697ada57a34d5454b72cddcf61af9c75fa05bf8c1fede1126caa7235d54fe6f12f2879f429b670bd3a3cf8798cfe85eeba1318
|
data/Gemfile.lock
CHANGED
@@ -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
|
-
|
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
|
-
|
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'] || '',
|