openstax_salesforce 4.2.0 → 4.6.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: a6e49f7433c245b127cb15200aca14c23965bf14ed29ffb65bf49a9dc9798b68
|
4
|
+
data.tar.gz: cf50dba41cc23fc8d4e256e1c9d405cc3e12f5a01886dbe52f2f980ae0b9936d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2258918e5239be539b299cc9f1ba9f413fa37c67387f0977ac8b585bdaf0018d9fe7facd6b7d8988dbf1999d1f9cfd2c1604c47f1dac23bc48d253c14c75563c
|
7
|
+
data.tar.gz: ef1e671742ea1edb2d7c87ac83e9ab511b2d3d085c5ccb83b48d8d3af393f53e92a7e8af9d8a329035d346ca8154dd7cc733217cf3c016f49caf6a449efc87d2
|
@@ -17,6 +17,7 @@ module OpenStax::Salesforce::Remote
|
|
17
17
|
field :all_emails, from: "All_Emails__c"
|
18
18
|
field :confirmed_emails, from: "Confirmed_Emails__c"
|
19
19
|
field :adoption_status, from: "Adoption_Status__c"
|
20
|
+
field :grant_tutor_access, from: "Grant_Tutor_Access__c", as: :boolean
|
20
21
|
|
21
22
|
self.table_name = 'Contact'
|
22
23
|
end
|
@@ -1,5 +1,15 @@
|
|
1
1
|
module OpenStax::Salesforce::Remote
|
2
2
|
class Lead < ActiveForce::SObject
|
3
|
+
|
4
|
+
VALID_VERIFICATION_STATUSES = %w[
|
5
|
+
pending_faculty
|
6
|
+
confirmed_faculty
|
7
|
+
rejected_faculty
|
8
|
+
no_faculty_info
|
9
|
+
].freeze
|
10
|
+
|
11
|
+
VALID_WHO_CHOOSES_BOOKS = %w[instructor committee coordinator].freeze
|
12
|
+
|
3
13
|
field :name, from: "Name"
|
4
14
|
field :first_name, from: "FirstName"
|
5
15
|
field :last_name, from: "LastName"
|
@@ -19,7 +29,31 @@ module OpenStax::Salesforce::Remote
|
|
19
29
|
field :accounts_uuid, from: "accounts_uuid_c__c"
|
20
30
|
field :application_source, from: "Application_Source__c"
|
21
31
|
field :role, from: "Role__c"
|
32
|
+
field :who_chooses_books, from: "who_chooses_books__c"
|
33
|
+
field :verification_status, from: "FV_Status__c"
|
34
|
+
field :finalize_educator_signup, from: "FV_Final__c", as: :boolean
|
35
|
+
|
36
|
+
validates(:last_name, presence: true)
|
37
|
+
validates(:school, presence: true)
|
38
|
+
validates(
|
39
|
+
:verification_status,
|
40
|
+
allow_blank: true,
|
41
|
+
inclusion: {
|
42
|
+
in: VALID_VERIFICATION_STATUSES,
|
43
|
+
message: "must be either #{VALID_VERIFICATION_STATUSES.join(' or ')}"
|
44
|
+
}
|
45
|
+
)
|
46
|
+
|
47
|
+
validates(
|
48
|
+
:who_chooses_books,
|
49
|
+
allow_blank: true,
|
50
|
+
inclusion: {
|
51
|
+
in: VALID_WHO_CHOOSES_BOOKS,
|
52
|
+
message: "must be either #{VALID_WHO_CHOOSES_BOOKS.join(' or ')}"
|
53
|
+
}
|
54
|
+
)
|
22
55
|
|
23
56
|
self.table_name = 'Lead'
|
57
|
+
|
24
58
|
end
|
25
59
|
end
|
@@ -4,6 +4,18 @@ module OpenStax::Salesforce::Remote
|
|
4
4
|
field :book_name, from: "Book_Text__c"
|
5
5
|
field :contact_id, from: "Contact__c"
|
6
6
|
field :new, from: "New__c", as: :boolean
|
7
|
+
field :close_date, from: "CloseDate", as: :datetime
|
8
|
+
field :stage_name, from: "StageName"
|
9
|
+
field :type, from: "Type"
|
10
|
+
field :number_of_students, from: "Students__c"
|
11
|
+
field :student_number_status, from: "Student_No_Status__c"
|
12
|
+
field :time_period, from: "Time_Period__c"
|
13
|
+
field :class_start_date, from: "Class_Start_Date__c", as: :datetime
|
14
|
+
field :school_id, from: "AccountId"
|
15
|
+
field :book_id, from: "Book__c"
|
16
|
+
field :contact_id, from: "Contact__c"
|
17
|
+
field :lead_source, from: "LeadSource"
|
18
|
+
|
7
19
|
|
8
20
|
self.table_name = 'Opportunity'
|
9
21
|
|
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: 4.
|
4
|
+
version: 4.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- JP Slavinsky
|
@@ -9,22 +9,28 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2020-
|
12
|
+
date: 2020-08-18 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
16
16
|
requirement: !ruby/object:Gem::Requirement
|
17
17
|
requirements:
|
18
|
-
- - "
|
18
|
+
- - ">="
|
19
19
|
- !ruby/object:Gem::Version
|
20
20
|
version: '5.0'
|
21
|
+
- - "<"
|
22
|
+
- !ruby/object:Gem::Version
|
23
|
+
version: '7.0'
|
21
24
|
type: :runtime
|
22
25
|
prerelease: false
|
23
26
|
version_requirements: !ruby/object:Gem::Requirement
|
24
27
|
requirements:
|
25
|
-
- - "
|
28
|
+
- - ">="
|
26
29
|
- !ruby/object:Gem::Version
|
27
30
|
version: '5.0'
|
31
|
+
- - "<"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '7.0'
|
28
34
|
- !ruby/object:Gem::Dependency
|
29
35
|
name: restforce
|
30
36
|
requirement: !ruby/object:Gem::Requirement
|
@@ -85,16 +91,16 @@ dependencies:
|
|
85
91
|
name: sprockets
|
86
92
|
requirement: !ruby/object:Gem::Requirement
|
87
93
|
requirements:
|
88
|
-
- - "
|
94
|
+
- - ">="
|
89
95
|
- !ruby/object:Gem::Version
|
90
|
-
version: '
|
96
|
+
version: '0'
|
91
97
|
type: :development
|
92
98
|
prerelease: false
|
93
99
|
version_requirements: !ruby/object:Gem::Requirement
|
94
100
|
requirements:
|
95
|
-
- - "
|
101
|
+
- - ">="
|
96
102
|
- !ruby/object:Gem::Version
|
97
|
-
version: '
|
103
|
+
version: '0'
|
98
104
|
description: Interface gem for accessing OpenStax's Salesforce instance
|
99
105
|
email:
|
100
106
|
- jps@kindlinglabs.com
|