openstax_salesforce 4.11.0 → 5.2.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/book.rb +2 -1
- data/lib/openstax/salesforce/remote/lead.rb +11 -3
- data/lib/openstax/salesforce/remote/school.rb +4 -0
- data/lib/openstax/salesforce/remote/tutor_course_period.rb +2 -0
- data/lib/openstax/salesforce/spec_helpers.rb +3 -1
- 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: 35632105bc2969164fb54cc341630527af96aa068bc5f6aeffe74494eda5ed7c
|
4
|
+
data.tar.gz: f9f296498bffea3fb898a475701a3f95d6aed58986ee2e0aee81a5a1d2760e6a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9a61bc9e85178a8dc1ed5f89b6e9b3fc4babd151f37004edae6b78598fd69f9996a980d5d2883e622f492865bc189b4623df3e15d57f8302929d8074e08c7ebd
|
7
|
+
data.tar.gz: 3d77a62f23b8ea2c390d7c31ba696cd9d6f8e0822ef37c9aacf5fef5e9f858d87bb7352eb8a64dee18ddaf5225f12a2685ba58180170ab980f6befd076d31f3e
|
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
|
@@ -16,6 +16,9 @@ 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"
|
21
|
+
field :state_code, from: "StateCode"
|
19
22
|
field :phone, from: "Phone"
|
20
23
|
field :website, from: "Website"
|
21
24
|
field :status, from: "Status"
|
@@ -33,9 +36,14 @@ module OpenStax::Salesforce::Remote
|
|
33
36
|
field :who_chooses_books, from: "who_chooses_books__c"
|
34
37
|
field :verification_status, from: "FV_Status__c"
|
35
38
|
field :finalize_educator_signup, from: "FV_Final__c", as: :boolean
|
36
|
-
field :needs_cs_review,
|
37
|
-
field :b_r_i_marketing,
|
38
|
-
field :title_1_school,
|
39
|
+
field :needs_cs_review, from: "Needs_CS_Review__c", as: :boolean
|
40
|
+
field :b_r_i_marketing, from: "BRI_Marketing__c", as: :boolean # Bill of Rights Institute (book) marketing
|
41
|
+
field :title_1_school, from: "Title_1_school__c", as: :boolean
|
42
|
+
field :sheerid_school_name, from: "SheerID_School_Name__c"
|
43
|
+
|
44
|
+
# These 2 fields both hold the Account (School) ID, but have different data types and uses in SF
|
45
|
+
field :account_id, from: 'Account_ID__c'
|
46
|
+
field :school_id, from: 'School__c'
|
39
47
|
|
40
48
|
validates(:last_name, presence: true)
|
41
49
|
validates(:school, presence: true)
|
@@ -134,7 +134,9 @@ module OpenStax::Salesforce::SpecHelpers
|
|
134
134
|
@books = OpenStax::Salesforce::Remote::Book.where(name: book_names).to_a
|
135
135
|
|
136
136
|
(book_names - books.map(&:name)).each do |book_name|
|
137
|
-
OpenStax::Salesforce::Remote::Book.new(
|
137
|
+
OpenStax::Salesforce::Remote::Book.new(
|
138
|
+
name: book_name, annualization_number: [ 1.4, 1.6 ].sample
|
139
|
+
).save!
|
138
140
|
end
|
139
141
|
end
|
140
142
|
|
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.2.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: 2021-
|
12
|
+
date: 2021-04-01 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|