openstax_salesforce 4.5.1 → 4.12.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 +4 -4
- data/README.md +1 -1
- data/lib/openstax/salesforce/remote/contact.rb +2 -0
- data/lib/openstax/salesforce/remote/lead.rb +10 -20
- data/lib/openstax/salesforce/remote/opportunity.rb +14 -0
- data/lib/openstax/salesforce/remote/school.rb +8 -5
- data/lib/openstax/salesforce/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 072e8f4a57fc8b2b62c5b07f992647f7e72f53e37c33e9f38afb32d6a12d8d29
|
4
|
+
data.tar.gz: aace96854377e96566c1b6efb33ee58a70d715d93d7cd23e29a851a158b69ff6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2febbbc5b3352452237c98c6d7785f9c2ba4517c371b2920e5d68b2c987196a2dad4556e114072663fbdfd8f8a3b4660d62f7301d5454cbccfe827f340b1ef41
|
7
|
+
data.tar.gz: '082a78fbe362ca9b37ba6ebefbb863bf560ef212d75bcb4ab6ffba254f15309816507d63d673eeafd480ec6ce1d7195e06ee5b5bd1253f56d60e8537864197ab'
|
data/README.md
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# OpenStax::Salesforce
|
2
2
|
|
3
3
|
[](http://badge.fury.io/rb/openstax_salesforce)
|
4
|
-
[](https://github.com/openstax/openstax_salesforce/actions?query=workflow:Tests)
|
5
5
|
[](https://codeclimate.com/github/openstax/openstax_salesforce)
|
6
6
|
|
7
7
|
OpenStax::Salesforce is a Rails engine used by OpenStax projects to communicate
|
@@ -18,6 +18,8 @@ module OpenStax::Salesforce::Remote
|
|
18
18
|
field :confirmed_emails, from: "Confirmed_Emails__c"
|
19
19
|
field :adoption_status, from: "Adoption_Status__c"
|
20
20
|
field :grant_tutor_access, from: "Grant_Tutor_Access__c", as: :boolean
|
21
|
+
field :b_r_i_marketing, from: "BRI_Marketing__c", as: :boolean # Bill of Rights Institute (book) marketing
|
22
|
+
field :title_1_school, from: "Title_1_school__c", as: :boolean
|
21
23
|
|
22
24
|
self.table_name = 'Contact'
|
23
25
|
end
|
@@ -8,18 +8,6 @@ module OpenStax::Salesforce::Remote
|
|
8
8
|
no_faculty_info
|
9
9
|
].freeze
|
10
10
|
|
11
|
-
VALID_ROLES = %w[
|
12
|
-
student
|
13
|
-
instructor
|
14
|
-
faculty
|
15
|
-
other
|
16
|
-
administrator
|
17
|
-
librarian
|
18
|
-
adjunct\ faculty
|
19
|
-
instructional\ designer
|
20
|
-
home\ school\ teacher
|
21
|
-
].freeze
|
22
|
-
|
23
11
|
VALID_WHO_CHOOSES_BOOKS = %w[instructor committee coordinator].freeze
|
24
12
|
|
25
13
|
field :name, from: "Name"
|
@@ -28,6 +16,8 @@ module OpenStax::Salesforce::Remote
|
|
28
16
|
field :salutation, from: "Salutation"
|
29
17
|
field :subject, from: "Subject__c"
|
30
18
|
field :school, from: "Company"
|
19
|
+
field :city, from: "City"
|
20
|
+
field :state, from: "State"
|
31
21
|
field :phone, from: "Phone"
|
32
22
|
field :website, from: "Website"
|
33
23
|
field :status, from: "Status"
|
@@ -41,18 +31,18 @@ module OpenStax::Salesforce::Remote
|
|
41
31
|
field :accounts_uuid, from: "accounts_uuid_c__c"
|
42
32
|
field :application_source, from: "Application_Source__c"
|
43
33
|
field :role, from: "Role__c"
|
34
|
+
field :other_role_name, from: "other_role_name__c"
|
44
35
|
field :who_chooses_books, from: "who_chooses_books__c"
|
45
36
|
field :verification_status, from: "FV_Status__c"
|
46
37
|
field :finalize_educator_signup, from: "FV_Final__c", as: :boolean
|
38
|
+
field :needs_cs_review, from: "Needs_CS_Review__c", as: :boolean
|
39
|
+
field :b_r_i_marketing, from: "BRI_Marketing__c", as: :boolean # Bill of Rights Institute (book) marketing
|
40
|
+
field :title_1_school, from: "Title_1_school__c", as: :boolean
|
41
|
+
field :sheerid_school_name, from: "SheerID_School_Name__c"
|
47
42
|
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
inclusion: {
|
52
|
-
in: VALID_ROLES,
|
53
|
-
message: "must be either #{VALID_ROLES.join(' or ')}"
|
54
|
-
}
|
55
|
-
)
|
43
|
+
# These 2 fields both hold the Account (School) ID, but have different data types and uses in SF
|
44
|
+
field :account_id, from: 'Account_ID__c'
|
45
|
+
field :school_id, from: 'School__c'
|
56
46
|
|
57
47
|
validates(:last_name, presence: true)
|
58
48
|
validates(:school, presence: true)
|
@@ -4,6 +4,20 @@ 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
|
+
field :name, from: "Name"
|
20
|
+
|
7
21
|
|
8
22
|
self.table_name = 'Opportunity'
|
9
23
|
|
@@ -1,10 +1,13 @@
|
|
1
1
|
module OpenStax::Salesforce::Remote
|
2
2
|
class School < ActiveForce::SObject
|
3
|
-
field :name,
|
4
|
-
field :
|
5
|
-
field :
|
6
|
-
field :
|
7
|
-
field :
|
3
|
+
field :name, from: 'Name'
|
4
|
+
field :city, from: 'BillingCity'
|
5
|
+
field :state, from: 'BillingState'
|
6
|
+
field :type, from: 'Type'
|
7
|
+
field :school_location, from: 'School_Location__c'
|
8
|
+
field :sheerid_school_name, from: 'SheerID_School_Name__c'
|
9
|
+
field :is_kip, from: 'K_I_P__c', as: :boolean
|
10
|
+
field :is_child_of_kip, from: 'child_of_kip__c', as: :boolean
|
8
11
|
|
9
12
|
self.table_name = 'Account'
|
10
13
|
end
|
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.12.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:
|
12
|
+
date: 2021-03-12 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
@@ -149,7 +149,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
149
149
|
- !ruby/object:Gem::Version
|
150
150
|
version: '0'
|
151
151
|
requirements: []
|
152
|
-
rubygems_version: 3.
|
152
|
+
rubygems_version: 3.2.7
|
153
153
|
signing_key:
|
154
154
|
specification_version: 4
|
155
155
|
summary: Interface gem for accessing OpenStax's Salesforce instance
|