openstax_salesforce 4.8.0 → 5.1.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: d5fdf1bb47c8c299bc9c87725d83bf5b41bf1bbc5c34c823a821b0353047d9bd
4
- data.tar.gz: 0a7c18f66bde5618c5ff2acf7e64d29d987431daaae1324222515f968ebc55d9
3
+ metadata.gz: 995f37791f1efb96bc50c65bb95cea66b50c26b1a7c3e7bfebca9bf5c7ede312
4
+ data.tar.gz: 8b1afff7fea4c2beac0dd986366503b1d6a6bf875237b0d3b58d0d7ed720786f
5
5
  SHA512:
6
- metadata.gz: f5c7a0edf112fbba64d9b0fe901c290a469ea912982c62d77eb81117125786b65954d9d099a64a21dde9acda475ccfffb828193a71a2f724671f0b64c9be0182
7
- data.tar.gz: d6dd08c793720354c91056433541b1e5260a737c2ae63cd2620dafd0e49fe6958980a4bc3adf3df64779703ee828fa096df46c42a5cdc318c04872ecba3c91e6
6
+ metadata.gz: e13360b956cb72d60d36351a81698533181f3d668b08872e90961a107dcf29ae53540a358e14e2d29e53da7521bb965ebc8be730590761395032433f1adafd84
7
+ data.tar.gz: 76eab68949e462cd6950a0960f69f45eb124bc1caa8b2c9d95a7d3ab8cfe110971073fe2cfbcaceddbe7a85a145e02c141fdfebadf79fc24fd01cfed9ea2518b
data/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # OpenStax::Salesforce
2
2
 
3
3
  [![Gem Version](https://badge.fury.io/rb/openstax_salesforce.svg)](http://badge.fury.io/rb/openstax_salesforce)
4
- [![Build Status](https://travis-ci.org/openstax/openstax_salesforce.svg?branch=master)](https://travis-ci.org/openstax/openstax_salesforce)
4
+ [![Tests](https://github.com/openstax/openstax_salesforce/workflows/Tests/badge.svg)](https://github.com/openstax/openstax_salesforce/actions?query=workflow:Tests)
5
5
  [![Code Climate](https://codeclimate.com/github/openstax/openstax_salesforce/badges/gpa.svg)](https://codeclimate.com/github/openstax/openstax_salesforce)
6
6
 
7
7
  OpenStax::Salesforce is a Rails engine used by OpenStax projects to communicate
@@ -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
@@ -16,6 +16,8 @@ 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"
19
21
  field :phone, from: "Phone"
20
22
  field :website, from: "Website"
21
23
  field :status, from: "Status"
@@ -29,10 +31,18 @@ module OpenStax::Salesforce::Remote
29
31
  field :accounts_uuid, from: "accounts_uuid_c__c"
30
32
  field :application_source, from: "Application_Source__c"
31
33
  field :role, from: "Role__c"
34
+ field :other_role_name, from: "other_role_name__c"
32
35
  field :who_chooses_books, from: "who_chooses_books__c"
33
36
  field :verification_status, from: "FV_Status__c"
34
37
  field :finalize_educator_signup, from: "FV_Final__c", as: :boolean
35
- field :needs_cs_review, from: "Needs_CS_Review__c", as: :boolean
38
+ field :needs_cs_review, from: "Needs_CS_Review__c", as: :boolean
39
+ field :b_r_i_marketing, from: "BRI_Marketing__c", as: :boolean # Bill of Rights Institute (book) marketing
40
+ field :title_1_school, from: "Title_1_school__c", as: :boolean
41
+ field :sheerid_school_name, from: "SheerID_School_Name__c"
42
+
43
+ # These 2 fields both hold the Account (School) ID, but have different data types and uses in SF
44
+ field :account_id, from: 'Account_ID__c'
45
+ field :school_id, from: 'School__c'
36
46
 
37
47
  validates(:last_name, presence: true)
38
48
  validates(:school, presence: true)
@@ -16,6 +16,7 @@ module OpenStax::Salesforce::Remote
16
16
  field :contact_id, from: "Contact__c"
17
17
  field :lead_source, from: "LeadSource"
18
18
  field :os_accounts_id, from: "OS_Accounts_ID__c"
19
+ field :name, from: "Name"
19
20
 
20
21
 
21
22
  self.table_name = 'Opportunity'
@@ -1,11 +1,18 @@
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'
13
+
14
+ def self.query
15
+ super.where("RecordType.Name = 'School'")
16
+ end
10
17
  end
11
18
  end
@@ -43,5 +43,6 @@ module OpenStax::Salesforce::Remote
43
43
 
44
44
  STATUS_APPROVED = "Approved"
45
45
  STATUS_ARCHIVED = "ArchivedPeriod"
46
+ STATUS_DROPPED = "Dropped"
46
47
  end
47
48
  end
@@ -1,5 +1,5 @@
1
1
  module OpenStax
2
2
  module Salesforce
3
- VERSION = '4.8.0'
3
+ VERSION = '5.1.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.8.0
4
+ version: 5.1.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-09-01 00:00:00.000000000 Z
12
+ date: 2021-03-16 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