openstax_salesforce 4.5.0 → 4.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/openstax/salesforce/remote/lead.rb +11 -1
- data/lib/openstax/salesforce/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: 64d48f723102c0add3f71e787080ab5b192082d26bbcfddd30f713fbc0861125
|
4
|
+
data.tar.gz: 4486d18406b9837f529ac5f8ca7228c0755cad45aef9a8336de9e1d22d2c0d8c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 930e6f24d237f436d390ca0600a6e67ad02effeb3860e571a87d280015c576a1a5ffd232bf91b60acc1a3347db1b4c976e1910d2b5e78fd198c780011c32c3a0
|
7
|
+
data.tar.gz: 7cf56d45a59457198d40432efe0b5c421a61eb45765b2104e2d9dd63fc63eeaddb0c34c4c4beb0d31c053cc4b031f16664e2da20e809700c741ed21836d3075c
|
@@ -1,9 +1,16 @@
|
|
1
1
|
module OpenStax::Salesforce::Remote
|
2
2
|
class Lead < ActiveForce::SObject
|
3
3
|
|
4
|
-
VALID_VERIFICATION_STATUSES = %w[
|
4
|
+
VALID_VERIFICATION_STATUSES = %w[
|
5
|
+
pending_faculty
|
6
|
+
confirmed_faculty
|
7
|
+
rejected_faculty
|
8
|
+
no_faculty_info
|
9
|
+
].freeze
|
10
|
+
|
5
11
|
VALID_ROLES = %w[
|
6
12
|
student
|
13
|
+
instructor
|
7
14
|
faculty
|
8
15
|
other
|
9
16
|
administrator
|
@@ -12,6 +19,7 @@ module OpenStax::Salesforce::Remote
|
|
12
19
|
instructional\ designer
|
13
20
|
home\ school\ teacher
|
14
21
|
].freeze
|
22
|
+
|
15
23
|
VALID_WHO_CHOOSES_BOOKS = %w[instructor committee coordinator].freeze
|
16
24
|
|
17
25
|
field :name, from: "Name"
|
@@ -46,6 +54,8 @@ module OpenStax::Salesforce::Remote
|
|
46
54
|
}
|
47
55
|
)
|
48
56
|
|
57
|
+
validates(:last_name, presence: true)
|
58
|
+
validates(:school, presence: true)
|
49
59
|
validates(
|
50
60
|
:verification_status,
|
51
61
|
allow_blank: true,
|