openstax_salesforce 7.4.4 → 7.5.0
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c63e796e842dbe43626771ee624d3db87ad8de0b867c6e667f3ba96e1daffa6f
|
4
|
+
data.tar.gz: c2930f9349c820a2eaa2c3a6e5227946924db304705e3e80fdc04ac371dea521
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ac6d1a4f03b2ef22fd43e2f56a3e9b8f2ce6e9277c5056b858e59292ebbec378b46a41119d51c61a95d876c3d5b1425ad48dad5f762132a6a976ab2241c568bb
|
7
|
+
data.tar.gz: 3c84b0b816dd74aa424dcaa0c0fa4b3d623fc944f73c7e419eb1536ff585b3a3a8aa7434aac203040563da2d90f9ce91000e40b3569d5eafd79db9eb6b1563af
|
@@ -29,6 +29,7 @@ module OpenStax
|
|
29
29
|
field :accounts_uuid, from: 'Accounts_UUID__c'
|
30
30
|
field :lead_source, from: 'LeadSource'
|
31
31
|
field :signup_date, from: 'Signup_Date__c', as: :datetime
|
32
|
+
field :renewal_eligible, from: 'Renewal_Eligible__c', as: :boolean
|
32
33
|
|
33
34
|
self.table_name = 'Contact'
|
34
35
|
end
|
@@ -5,18 +5,6 @@ module OpenStax
|
|
5
5
|
module Remote
|
6
6
|
# Lead object from Salesforce
|
7
7
|
class Lead < ActiveForce::SObject
|
8
|
-
|
9
|
-
VALID_VERIFICATION_STATUSES = %w[
|
10
|
-
pending_faculty
|
11
|
-
confirmed_faculty
|
12
|
-
rejected_faculty
|
13
|
-
pending_sheerid
|
14
|
-
rejected_by_sheerid
|
15
|
-
incomplete_signup
|
16
|
-
].freeze
|
17
|
-
|
18
|
-
VALID_WHO_CHOOSES_BOOKS = %w[instructor committee coordinator].freeze
|
19
|
-
|
20
8
|
field :id, from: 'Id'
|
21
9
|
field :name, from: 'Name'
|
22
10
|
field :first_name, from: 'FirstName'
|
@@ -58,23 +46,6 @@ module OpenStax
|
|
58
46
|
|
59
47
|
validates(:last_name, presence: true)
|
60
48
|
validates(:school, presence: true)
|
61
|
-
validates(
|
62
|
-
:verification_status,
|
63
|
-
allow_blank: true,
|
64
|
-
inclusion: {
|
65
|
-
in: VALID_VERIFICATION_STATUSES,
|
66
|
-
message: "must be either #{VALID_VERIFICATION_STATUSES.join(' or ')}"
|
67
|
-
}
|
68
|
-
)
|
69
|
-
|
70
|
-
validates(
|
71
|
-
:who_chooses_books,
|
72
|
-
allow_blank: true,
|
73
|
-
inclusion: {
|
74
|
-
in: VALID_WHO_CHOOSES_BOOKS,
|
75
|
-
message: "must be either #{VALID_WHO_CHOOSES_BOOKS.join(' or ')}"
|
76
|
-
}
|
77
|
-
)
|
78
49
|
|
79
50
|
self.table_name = 'Lead'
|
80
51
|
|
@@ -12,6 +12,7 @@ module OpenStax
|
|
12
12
|
field :account_id, from: 'Account_ID__c'
|
13
13
|
field :account_uuid, from: 'Account_UUID__c'
|
14
14
|
field :account_role, from: 'Account_Role__c'
|
15
|
+
field :faculty_status, from: 'Faculty_Status__c'
|
15
16
|
field :salesforce_contact_id, from: 'Contact__c'
|
16
17
|
field :salesforce_lead_id, from: 'Lead__c'
|
17
18
|
field :signup_date, from: 'Signup_Date__c', as: :datetime
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: openstax_salesforce
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 7.
|
4
|
+
version: 7.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- JP Slavinsky
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2022-
|
13
|
+
date: 2022-05-11 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rails
|