openstax_salesforce 4.8.0 → 5.1.0
Sign up to get free protection for your applications and to get access to all the features.
- 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 +11 -1
- data/lib/openstax/salesforce/remote/opportunity.rb +1 -0
- data/lib/openstax/salesforce/remote/school.rb +12 -5
- data/lib/openstax/salesforce/remote/tutor_course_period.rb +1 -0
- 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: 995f37791f1efb96bc50c65bb95cea66b50c26b1a7c3e7bfebca9bf5c7ede312
|
4
|
+
data.tar.gz: 8b1afff7fea4c2beac0dd986366503b1d6a6bf875237b0d3b58d0d7ed720786f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e13360b956cb72d60d36351a81698533181f3d668b08872e90961a107dcf29ae53540a358e14e2d29e53da7521bb965ebc8be730590761395032433f1adafd84
|
7
|
+
data.tar.gz: 76eab68949e462cd6950a0960f69f45eb124bc1caa8b2c9d95a7d3ab8cfe110971073fe2cfbcaceddbe7a85a145e02c141fdfebadf79fc24fd01cfed9ea2518b
|
data/README.md
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# OpenStax::Salesforce
|
2
2
|
|
3
3
|
[![Gem Version](https://badge.fury.io/rb/openstax_salesforce.svg)](http://badge.fury.io/rb/openstax_salesforce)
|
4
|
-
[![
|
4
|
+
[![Tests](https://github.com/openstax/openstax_salesforce/workflows/Tests/badge.svg)](https://github.com/openstax/openstax_salesforce/actions?query=workflow:Tests)
|
5
5
|
[![Code Climate](https://codeclimate.com/github/openstax/openstax_salesforce/badges/gpa.svg)](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
|
@@ -16,6 +16,8 @@ module OpenStax::Salesforce::Remote
|
|
16
16
|
field :salutation, from: "Salutation"
|
17
17
|
field :subject, from: "Subject__c"
|
18
18
|
field :school, from: "Company"
|
19
|
+
field :city, from: "City"
|
20
|
+
field :state, from: "State"
|
19
21
|
field :phone, from: "Phone"
|
20
22
|
field :website, from: "Website"
|
21
23
|
field :status, from: "Status"
|
@@ -29,10 +31,18 @@ module OpenStax::Salesforce::Remote
|
|
29
31
|
field :accounts_uuid, from: "accounts_uuid_c__c"
|
30
32
|
field :application_source, from: "Application_Source__c"
|
31
33
|
field :role, from: "Role__c"
|
34
|
+
field :other_role_name, from: "other_role_name__c"
|
32
35
|
field :who_chooses_books, from: "who_chooses_books__c"
|
33
36
|
field :verification_status, from: "FV_Status__c"
|
34
37
|
field :finalize_educator_signup, from: "FV_Final__c", as: :boolean
|
35
|
-
field :needs_cs_review,
|
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"
|
42
|
+
|
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'
|
36
46
|
|
37
47
|
validates(:last_name, presence: true)
|
38
48
|
validates(:school, presence: true)
|
@@ -1,11 +1,18 @@
|
|
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'
|
13
|
+
|
14
|
+
def self.query
|
15
|
+
super.where("RecordType.Name = 'School'")
|
16
|
+
end
|
10
17
|
end
|
11
18
|
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
|
+
version: 5.1.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-16 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
|