openstax_salesforce 4.4.0 → 4.9.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: 4af4bba63b1345bb56d81997d7aa50a8f6c54a8543231cf1404200e0aa9e57cf
4
- data.tar.gz: 854d11cc4dbb4e5ba190ef12f4973c4c2712c3ec3c9790795d8660ca1bb5826f
3
+ metadata.gz: 60ec01b3372a6c4c3542469a38481e56915070b447e53b59eeec04ddc8b6b5fc
4
+ data.tar.gz: c5881ae24fd8cf7764c36a0f42922556c7fb829bb6e083b3332d61fe623bf801
5
5
  SHA512:
6
- metadata.gz: 7f4506420c7f30b59896e6fba242aff72ef55dec86270fbbb0b4089d9b3bbe725c2be6c8b3584e5a36906b5b043f547b9cd4676e0cb093ed6e24a357f97650fd
7
- data.tar.gz: 2f5a63de18f7deaaf7aa8d08608c3cd686af132ab542bf67bafff851c38d61dbd71e1571dd8f953664daff0beb3e7912b747a00a4c13f91664939cc8f87694f1
6
+ metadata.gz: '08d0a74e0227b08e402ad900023fb0df05a114b3310953b4bae200f336f5f417b7ec59429165dfbe872d9948cd225beb14a1ada7a16e97ae56bcabb4ed48baf7'
7
+ data.tar.gz: 859abc396195f3d0e80f023b4da2017c7fb1ea3ef658ab0c48e0c28be6bfc0845fc7496b150f0af4a7ddae4e848d3596d7e1e0ba4bcc31a918a8c6db05fa2955
@@ -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,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"
@@ -36,16 +32,10 @@ module OpenStax::Salesforce::Remote
36
32
  field :who_chooses_books, from: "who_chooses_books__c"
37
33
  field :verification_status, from: "FV_Status__c"
38
34
  field :finalize_educator_signup, from: "FV_Final__c", as: :boolean
35
+ field :needs_cs_review, from: "Needs_CS_Review__c", as: :boolean
39
36
 
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
-
37
+ validates(:last_name, presence: true)
38
+ validates(:school, presence: true)
49
39
  validates(
50
40
  :verification_status,
51
41
  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,5 +1,5 @@
1
1
  module OpenStax
2
2
  module Salesforce
3
- VERSION = '4.4.0'
3
+ VERSION = '4.9.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.4.0
4
+ version: 4.9.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-06 00:00:00.000000000 Z
12
+ date: 2020-09-03 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.1.4
153
153
  signing_key:
154
154
  specification_version: 4
155
155
  summary: Interface gem for accessing OpenStax's Salesforce instance