openstax_salesforce 4.5.1 → 4.6.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 64d48f723102c0add3f71e787080ab5b192082d26bbcfddd30f713fbc0861125
4
- data.tar.gz: 4486d18406b9837f529ac5f8ca7228c0755cad45aef9a8336de9e1d22d2c0d8c
3
+ metadata.gz: a6e49f7433c245b127cb15200aca14c23965bf14ed29ffb65bf49a9dc9798b68
4
+ data.tar.gz: cf50dba41cc23fc8d4e256e1c9d405cc3e12f5a01886dbe52f2f980ae0b9936d
5
5
  SHA512:
6
- metadata.gz: 930e6f24d237f436d390ca0600a6e67ad02effeb3860e571a87d280015c576a1a5ffd232bf91b60acc1a3347db1b4c976e1910d2b5e78fd198c780011c32c3a0
7
- data.tar.gz: 7cf56d45a59457198d40432efe0b5c421a61eb45765b2104e2d9dd63fc63eeaddb0c34c4c4beb0d31c053cc4b031f16664e2da20e809700c741ed21836d3075c
6
+ metadata.gz: 2258918e5239be539b299cc9f1ba9f413fa37c67387f0977ac8b585bdaf0018d9fe7facd6b7d8988dbf1999d1f9cfd2c1604c47f1dac23bc48d253c14c75563c
7
+ data.tar.gz: ef1e671742ea1edb2d7c87ac83e9ab511b2d3d085c5ccb83b48d8d3af393f53e92a7e8af9d8a329035d346ca8154dd7cc733217cf3c016f49caf6a449efc87d2
@@ -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"
@@ -45,15 +33,6 @@ module OpenStax::Salesforce::Remote
45
33
  field :verification_status, from: "FV_Status__c"
46
34
  field :finalize_educator_signup, from: "FV_Final__c", as: :boolean
47
35
 
48
- validates(
49
- :role,
50
- allow_blank: true,
51
- inclusion: {
52
- in: VALID_ROLES,
53
- message: "must be either #{VALID_ROLES.join(' or ')}"
54
- }
55
- )
56
-
57
36
  validates(:last_name, presence: true)
58
37
  validates(:school, presence: true)
59
38
  validates(
@@ -4,6 +4,18 @@ 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
+
7
19
 
8
20
  self.table_name = 'Opportunity'
9
21
 
@@ -1,5 +1,5 @@
1
1
  module OpenStax
2
2
  module Salesforce
3
- VERSION = '4.5.1'
3
+ VERSION = '4.6.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.1
4
+ version: 4.6.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: 2020-08-18 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails