openstax_salesforce 7.4.4 → 7.4.5
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 +0 -29
- data/lib/openstax/salesforce/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9723c405964d86192d90c1f886775450d53baf4fc4174b017cf4e75f6d16759d
|
4
|
+
data.tar.gz: b72ddfde5c016ff10e332342edb3f7211f6bcf4f3f9e077d38dc8153b95c8912
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1df136b53b9312574f8d8f7e6f860e42ba604937cc567065de76019ba3b0e6848de33c80275fbbc524a7c66be2a93c254d35774bb066271c908a853323c05199
|
7
|
+
data.tar.gz: 42610dcecdd6677df7faefeda5296b26be7a54e67ffe8d2a96ebc4cfd4660490e42823133f9f1f2900fe0f2a2272a217ba88d345aeb7cc414722f3e0f3d2e1c3
|
@@ -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
|
|
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.
|
4
|
+
version: 7.4.5
|
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-04-
|
13
|
+
date: 2022-04-06 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rails
|