afc_salesforce 0.1.10 → 0.1.11
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 +5 -5
- data/afc_salesforce.gemspec +1 -1
- data/lib/afc_salesforce/base.rb +1 -1
- data/lib/afc_salesforce/borrower.rb +4 -3
- data/lib/afc_salesforce/lead.rb +4 -3
- data/lib/afc_salesforce/models/contact.rb +4 -3
- data/lib/afc_salesforce/version.rb +1 -1
- metadata +5 -11
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: 376b717fc8702d57a59679b0bcf7c6b3a633fa27d95e3ab6cb17a5722544529a
|
|
4
|
+
data.tar.gz: ede952cc8ffc94392a49e759b430001e2556ccd43e62a0a17d240a29cb7a70f3
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 10357bb58da508814c335787c5148ca33ce1469aa6e8bb9b646616473ac59f832f2b9e6848681c585cc3112598fcfe9cc5d3160a9bd7c1b406c07d343df5eff8
|
|
7
|
+
data.tar.gz: 387afd2cc01d254e331506a2cdc7e4fc8735269f911cb3f4f4066ecb913a47e5b4e943a18e4c3847042118172be084cafdf6242c2503d012ae038733181ec2ce
|
data/afc_salesforce.gemspec
CHANGED
|
@@ -37,5 +37,5 @@ Gem::Specification.new do |spec|
|
|
|
37
37
|
spec.add_development_dependency "simplecov", "~> 0.14"
|
|
38
38
|
spec.add_development_dependency "factory_girl", "~> 4.8"
|
|
39
39
|
spec.add_runtime_dependency 'restforce', '~> 2.5', '>= 2.5.3'
|
|
40
|
-
spec.add_dependency "json", "~> 1"
|
|
40
|
+
spec.add_dependency "json", "~> 1.7"
|
|
41
41
|
end
|
data/lib/afc_salesforce/base.rb
CHANGED
|
@@ -2,7 +2,7 @@ module AFCSalesforce
|
|
|
2
2
|
class Borrower < Base
|
|
3
3
|
attr_accessor :first_name, :income_type, :middle_name, :last_name, :phone,
|
|
4
4
|
:ssn, :email, :street, :city, :state, :zip, :company_name,
|
|
5
|
-
:marital_status, :suffix
|
|
5
|
+
:marital_status, :suffix, :session_uuid
|
|
6
6
|
|
|
7
7
|
set_as_integer :monthly_income, :yearly_income, :years_on_job
|
|
8
8
|
set_as_boolean :is_self_employed, :is_primary
|
|
@@ -29,8 +29,9 @@ module AFCSalesforce
|
|
|
29
29
|
years_on_the_job__c: @years_on_job,
|
|
30
30
|
is_self_employed__c: @is_self_employed,
|
|
31
31
|
primary_borrower__c: @is_primary,
|
|
32
|
-
birthdate: @birthdate
|
|
32
|
+
birthdate: @birthdate,
|
|
33
|
+
session_uuid__c: @session_uuid
|
|
33
34
|
).to_h
|
|
34
35
|
end
|
|
35
36
|
end
|
|
36
|
-
end
|
|
37
|
+
end
|
data/lib/afc_salesforce/lead.rb
CHANGED
|
@@ -2,7 +2,7 @@ module AFCSalesforce
|
|
|
2
2
|
class Lead < Base
|
|
3
3
|
attr_accessor :company, :first_name, :last_name, :phone, :email, :endorser, :source, :type, :internet_source,
|
|
4
4
|
:search_source, :search_campaign, :search_adgroup, :search_keyword, :city, :state,
|
|
5
|
-
:zip, :unbounce_page_id, :page_url, :page_variant, :working_with_realtor
|
|
5
|
+
:zip, :unbounce_page_id, :page_url, :page_variant, :working_with_realtor, :session_uuid
|
|
6
6
|
|
|
7
7
|
def to_h
|
|
8
8
|
AFCSalesforce::Models::Lead.new(
|
|
@@ -25,8 +25,9 @@ module AFCSalesforce
|
|
|
25
25
|
unbounce_page_id__c: @unbounce_page_id,
|
|
26
26
|
page_url__c: @page_url,
|
|
27
27
|
page_variant__c: @page_variant,
|
|
28
|
-
working_with_realtor__c: @working_with_realtor
|
|
28
|
+
working_with_realtor__c: @working_with_realtor,
|
|
29
|
+
session_uuid__c: @session_uuid
|
|
29
30
|
).to_h
|
|
30
31
|
end
|
|
31
32
|
end
|
|
32
|
-
end
|
|
33
|
+
end
|
|
@@ -19,7 +19,7 @@ module AFCSalesforce
|
|
|
19
19
|
:x2_residence_status__c, :x2_residence_street__c, :x2_residence_years__c, :x2_residence_zip__c, :x3_prev_emp_from__c,
|
|
20
20
|
:x3_prev_emp_name__c, :x3_prev_emp_phone__c, :x3_prev_emp_position__c, :x3_prev_emp_to__c, :x3_previous_employer_notes__c,
|
|
21
21
|
:x3_residence_city__c, :x3_residence_months__c, :x3_residence_notes__c, :x3_residence_state__c, :x3_residence_status__c,
|
|
22
|
-
:x3_residence_street__c, :x3_residence_years__c, :x3_residence_zip__c, :yearly_income__c, :years_on_the_job__c, :mailingcity, :mailingstate, :mailingpostalcode
|
|
22
|
+
:x3_residence_street__c, :x3_residence_years__c, :x3_residence_zip__c, :yearly_income__c, :years_on_the_job__c, :mailingcity, :mailingstate, :mailingpostalcode, :session_uuid__c
|
|
23
23
|
|
|
24
24
|
set_as_float :amount__c, :monthly_income__c, :yearly_income__c
|
|
25
25
|
|
|
@@ -144,9 +144,10 @@ module AFCSalesforce
|
|
|
144
144
|
:"X3_Residence_Years__c" => @x3_residence_years__c,
|
|
145
145
|
:"X3_Residence_Zip__c" => @x3_residence_zip__c,
|
|
146
146
|
:"Yearly_Income__c" => @yearly_income__c,
|
|
147
|
-
:"Years_on_the_Job__c" => @years_on_the_job__c
|
|
147
|
+
:"Years_on_the_Job__c" => @years_on_the_job__c,
|
|
148
|
+
:"Session_UUID__c" => @session_uuid__c
|
|
148
149
|
}.select{ |k,v| !v.nil? }
|
|
149
150
|
end
|
|
150
151
|
end
|
|
151
152
|
end
|
|
152
|
-
end
|
|
153
|
+
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: afc_salesforce
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.11
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Donavan White
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2018-03-19 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: pry
|
|
@@ -120,20 +120,14 @@ dependencies:
|
|
|
120
120
|
requirements:
|
|
121
121
|
- - "~>"
|
|
122
122
|
- !ruby/object:Gem::Version
|
|
123
|
-
version: '1'
|
|
124
|
-
- - "<"
|
|
125
|
-
- !ruby/object:Gem::Version
|
|
126
|
-
version: '2'
|
|
123
|
+
version: '1.7'
|
|
127
124
|
type: :runtime
|
|
128
125
|
prerelease: false
|
|
129
126
|
version_requirements: !ruby/object:Gem::Requirement
|
|
130
127
|
requirements:
|
|
131
128
|
- - "~>"
|
|
132
129
|
- !ruby/object:Gem::Version
|
|
133
|
-
version: '1'
|
|
134
|
-
- - "<"
|
|
135
|
-
- !ruby/object:Gem::Version
|
|
136
|
-
version: '2'
|
|
130
|
+
version: '1.7'
|
|
137
131
|
description: Ruby lib for handling the connection to REST endpoints on any Sandbox
|
|
138
132
|
and Production Salesforce
|
|
139
133
|
email:
|
|
@@ -207,7 +201,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
207
201
|
version: '0'
|
|
208
202
|
requirements: []
|
|
209
203
|
rubyforge_project:
|
|
210
|
-
rubygems_version: 2.
|
|
204
|
+
rubygems_version: 2.7.3
|
|
211
205
|
signing_key:
|
|
212
206
|
specification_version: 4
|
|
213
207
|
summary: Salesforce Library for the AFC Salesforce Instance
|