openstax_salesforce 4.5.0 → 4.11.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: 6ba4e35d61a819c20259b20c4bd44e8c42119829b4a135fa224845f245e5ca78
4
- data.tar.gz: 0e9c7c564ad757de906c155edf2d6d1bd7ae1556ca4d51af57290a0c882d43d8
3
+ metadata.gz: 1d9c9cf19718d8dfb2986c3f24e0aa4b1d5cac65f945740f3a3829b0a251e5e8
4
+ data.tar.gz: c6a7aeac7498ad448a2965248b298886b534b8aa649a8e6e5de2c126882c2846
5
5
  SHA512:
6
- metadata.gz: 364073054ce088aed49d68977e87e2ff8d4ac472fd40aec7e3e6f461787d6c0e71833f563f70922c16ec4e2996c7910552e4990be2b0da1f8115bfa20cbeaf8e
7
- data.tar.gz: 13a48b27994287246b87c0099e3cfb404b1c4b7e7fed803d79484e349d3470ce6bf01c15af7578100717135b8f3707714195fd93eb2b2e9301b5dcd98800be1b
6
+ metadata.gz: 44f4299a16d1c3ac7c7fc2580cd99cdacebb2331651c0664455d5f44f204ea248fd9b5a91da9e28bb3caea74d52594696927bba084efac846ade350186073380
7
+ data.tar.gz: 8dc1202340ad2825a4cfbc9fce820b72ba726a9b5f3431d4eb29a1e18d3e55dc92644f2337b3e7cd1e7c6d6a2e3a580848ea08093683de42e252a2c10fe80165
@@ -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
@@ -1,17 +1,13 @@
1
1
  module OpenStax::Salesforce::Remote
2
2
  class Lead < ActiveForce::SObject
3
3
 
4
- VALID_VERIFICATION_STATUSES = %w[pending_faculty confirmed_faculty rejected_faculty].freeze
5
- VALID_ROLES = %w[
6
- student
7
- faculty
8
- other
9
- administrator
10
- librarian
11
- adjunct\ faculty
12
- instructional\ designer
13
- home\ school\ teacher
4
+ VALID_VERIFICATION_STATUSES = %w[
5
+ pending_faculty
6
+ confirmed_faculty
7
+ rejected_faculty
8
+ no_faculty_info
14
9
  ].freeze
10
+
15
11
  VALID_WHO_CHOOSES_BOOKS = %w[instructor committee coordinator].freeze
16
12
 
17
13
  field :name, from: "Name"
@@ -33,19 +29,16 @@ module OpenStax::Salesforce::Remote
33
29
  field :accounts_uuid, from: "accounts_uuid_c__c"
34
30
  field :application_source, from: "Application_Source__c"
35
31
  field :role, from: "Role__c"
32
+ field :other_role_name, from: "other_role_name__c"
36
33
  field :who_chooses_books, from: "who_chooses_books__c"
37
34
  field :verification_status, from: "FV_Status__c"
38
35
  field :finalize_educator_signup, from: "FV_Final__c", as: :boolean
36
+ field :needs_cs_review, from: "Needs_CS_Review__c", as: :boolean
37
+ field :b_r_i_marketing, from: "BRI_Marketing__c", as: :boolean # Bill of Rights Institute (book) marketing
38
+ field :title_1_school, from: "Title_1_school__c", as: :boolean
39
39
 
40
- validates(
41
- :role,
42
- allow_blank: true,
43
- inclusion: {
44
- in: VALID_ROLES,
45
- message: "must be either #{VALID_ROLES.join(' or ')}"
46
- }
47
- )
48
-
40
+ validates(:last_name, presence: true)
41
+ validates(:school, presence: true)
49
42
  validates(
50
43
  :verification_status,
51
44
  allow_blank: 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, from: 'Name'
4
- field :type, from: 'Type'
5
- field :school_location, from: 'School_Location__c'
6
- field :is_kip, from: 'K_I_P__c', as: :boolean
7
- field :is_child_of_kip, from: 'child_of_kip__c', as: :boolean
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
@@ -1,5 +1,5 @@
1
1
  module OpenStax
2
2
  module Salesforce
3
- VERSION = '4.5.0'
3
+ VERSION = '4.11.0'
4
4
  end
5
5
  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.5.0
4
+ version: 4.11.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-07-31 00:00:00.000000000 Z
12
+ date: 2021-03-02 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.0.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