openstax_salesforce 7.4.3 → 7.4.6

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: b6c58987e3047911c932a8b2393947f31955bc141dd52e9e3701159c3cc64715
4
- data.tar.gz: 94720471e872005d8f9b2b818b68f416b6523bac4153664ad784d7d586e35f7d
3
+ metadata.gz: bb23ad1d7f4baf3bf3bdb1513f09f6a96c72e79d394f26bd301e3367eada4aa5
4
+ data.tar.gz: c512ce288cfc13e72dbe238dac26a3a763356dca4b193ac89b86dfc86ea9fd7c
5
5
  SHA512:
6
- metadata.gz: d2058e9d0ebabdfeaa9b991b6e29172ae8c5c703d1107d792f55cc474cf0e6b131302297f338f573d9a150e041aa216bc242772c3926c8cab1e12ee70d2d3e25
7
- data.tar.gz: 463222c52dc42c1fe74e9c25eb27c81c9d53d5a93fdd02fb73487d03e341e2df4da66659a95ddf3d10cbc5f688af4bdf821ef647ede005491be45a6174fe2b40
6
+ metadata.gz: bb9f2cb25ca3edf69c495e4d682281c5ba0afe014eaaa5091bb4a0f32686ee985474456d4073e3b7e204d09e254e57707dbd7903f858238a93dcb0aa2f12882b
7
+ data.tar.gz: b467f11043733fbcc74249062285a3d55f5c64c57acbdd42dab10f638f130c910370a7bfba85109784926a3c92e5b5fa950e6297ba7d1e99d4374b7f7cf94fbc
@@ -5,10 +5,16 @@ module OpenStax
5
5
  module Remote
6
6
  # Book object from Salesforce
7
7
  class Book < ActiveForce::SObject
8
- field :name, from: 'Name'
8
+ field :id, from: 'Id'
9
+ field :name, from: 'Name'
10
+ field :official_name, from: 'Official_Name__c'
9
11
  field :annualization_number, from: 'Annualization_number__c', as: :decimal
10
12
 
11
13
  self.table_name = 'Book__c'
14
+
15
+ def self.query
16
+ super.where('Active__c = True AND Official_Name__c != NULL')
17
+ end
12
18
  end
13
19
  end
14
20
  end
@@ -5,18 +5,6 @@ module OpenStax
5
5
  module Remote
6
6
  # Lead object from Salesforce
7
7
  class Lead < ActiveForce::SObject
8
-
9
- VALID_VERIFICATION_STATUSES = %w[
10
- pending_faculty
11
- confirmed_faculty
12
- rejected_faculty
13
- pending_sheerid
14
- rejected_by_sheerid
15
- incomplete_signup
16
- ].freeze
17
-
18
- VALID_WHO_CHOOSES_BOOKS = %w[instructor committee coordinator].freeze
19
-
20
8
  field :id, from: 'Id'
21
9
  field :name, from: 'Name'
22
10
  field :first_name, from: 'FirstName'
@@ -58,23 +46,6 @@ module OpenStax
58
46
 
59
47
  validates(:last_name, presence: true)
60
48
  validates(:school, presence: true)
61
- validates(
62
- :verification_status,
63
- allow_blank: true,
64
- inclusion: {
65
- in: VALID_VERIFICATION_STATUSES,
66
- message: "must be either #{VALID_VERIFICATION_STATUSES.join(' or ')}"
67
- }
68
- )
69
-
70
- validates(
71
- :who_chooses_books,
72
- allow_blank: true,
73
- inclusion: {
74
- in: VALID_WHO_CHOOSES_BOOKS,
75
- message: "must be either #{VALID_WHO_CHOOSES_BOOKS.join(' or ')}"
76
- }
77
- )
78
49
 
79
50
  self.table_name = 'Lead'
80
51
 
@@ -12,6 +12,7 @@ module OpenStax
12
12
  field :account_id, from: 'Account_ID__c'
13
13
  field :account_uuid, from: 'Account_UUID__c'
14
14
  field :account_role, from: 'Account_Role__c'
15
+ field :faculty_status, from: 'Faculty_Status__c'
15
16
  field :salesforce_contact_id, from: 'Contact__c'
16
17
  field :salesforce_lead_id, from: 'Lead__c'
17
18
  field :signup_date, from: 'Signup_Date__c', as: :datetime
@@ -1,5 +1,5 @@
1
1
  module OpenStax
2
2
  module Salesforce
3
- VERSION = '7.4.3'
3
+ VERSION = '7.4.6'
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: 7.4.3
4
+ version: 7.4.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - JP Slavinsky
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2022-03-22 00:00:00.000000000 Z
13
+ date: 2022-04-07 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rails