openstax_salesforce 4.3.0 → 4.8.0
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
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d5fdf1bb47c8c299bc9c87725d83bf5b41bf1bbc5c34c823a821b0353047d9bd
|
|
4
|
+
data.tar.gz: 0a7c18f66bde5618c5ff2acf7e64d29d987431daaae1324222515f968ebc55d9
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f5c7a0edf112fbba64d9b0fe901c290a469ea912982c62d77eb81117125786b65954d9d099a64a21dde9acda475ccfffb828193a71a2f724671f0b64c9be0182
|
|
7
|
+
data.tar.gz: d6dd08c793720354c91056433541b1e5260a737c2ae63cd2620dafd0e49fe6958980a4bc3adf3df64779703ee828fa096df46c42a5cdc318c04872ecba3c91e6
|
|
@@ -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,32 @@ 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
|
+
field :needs_cs_review, from: "Needs_CS_Review__c", as: :boolean
|
|
36
|
+
|
|
37
|
+
validates(:last_name, presence: true)
|
|
38
|
+
validates(:school, presence: true)
|
|
39
|
+
validates(
|
|
40
|
+
:verification_status,
|
|
41
|
+
allow_blank: true,
|
|
42
|
+
inclusion: {
|
|
43
|
+
in: VALID_VERIFICATION_STATUSES,
|
|
44
|
+
message: "must be either #{VALID_VERIFICATION_STATUSES.join(' or ')}"
|
|
45
|
+
}
|
|
46
|
+
)
|
|
47
|
+
|
|
48
|
+
validates(
|
|
49
|
+
:who_chooses_books,
|
|
50
|
+
allow_blank: true,
|
|
51
|
+
inclusion: {
|
|
52
|
+
in: VALID_WHO_CHOOSES_BOOKS,
|
|
53
|
+
message: "must be either #{VALID_WHO_CHOOSES_BOOKS.join(' or ')}"
|
|
54
|
+
}
|
|
55
|
+
)
|
|
22
56
|
|
|
23
57
|
self.table_name = 'Lead'
|
|
58
|
+
|
|
24
59
|
end
|
|
25
60
|
end
|
|
@@ -4,6 +4,19 @@ 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
|
+
field :os_accounts_id, from: "OS_Accounts_ID__c"
|
|
19
|
+
|
|
7
20
|
|
|
8
21
|
self.table_name = 'Opportunity'
|
|
9
22
|
|
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.8.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- JP Slavinsky
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2020-
|
|
12
|
+
date: 2020-09-01 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: rails
|