openstax_salesforce 4.6.0 → 5.0.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: a6e49f7433c245b127cb15200aca14c23965bf14ed29ffb65bf49a9dc9798b68
4
- data.tar.gz: cf50dba41cc23fc8d4e256e1c9d405cc3e12f5a01886dbe52f2f980ae0b9936d
3
+ metadata.gz: e5b8e4d9af7d7344ed9ea21342c5b816277b21038838b4412bf168b4513eef3a
4
+ data.tar.gz: bfebea77ea2c6d39161196e8449bb5a21125c0e0f28a630959c514926e227876
5
5
  SHA512:
6
- metadata.gz: 2258918e5239be539b299cc9f1ba9f413fa37c67387f0977ac8b585bdaf0018d9fe7facd6b7d8988dbf1999d1f9cfd2c1604c47f1dac23bc48d253c14c75563c
7
- data.tar.gz: ef1e671742ea1edb2d7c87ac83e9ab511b2d3d085c5ccb83b48d8d3af393f53e92a7e8af9d8a329035d346ca8154dd7cc733217cf3c016f49caf6a449efc87d2
6
+ metadata.gz: 5f6a9ab9ecc3af36da60410fecf0b3e13ad6c8f0b4a95bd5270dff3190f9b393b2599ed6e727727b392c3a928fffb3dce986c4d4df476d97c219ac3ab0ce7c57
7
+ data.tar.gz: c42e20005baa14d45380a39fa1168dfe037aa272daded1b63f04f427652648062d95ca931f583343a9a313e1c1cde8a23587532f2e16118ed14f9e1d3ece2ac8
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,9 +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
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'
35
46
 
36
47
  validates(:last_name, presence: true)
37
48
  validates(:school, presence: true)
@@ -15,6 +15,8 @@ module OpenStax::Salesforce::Remote
15
15
  field :book_id, from: "Book__c"
16
16
  field :contact_id, from: "Contact__c"
17
17
  field :lead_source, from: "LeadSource"
18
+ field :os_accounts_id, from: "OS_Accounts_ID__c"
19
+ field :name, from: "Name"
18
20
 
19
21
 
20
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
@@ -1,5 +1,5 @@
1
1
  module OpenStax
2
2
  module Salesforce
3
- VERSION = '4.6.0'
3
+ VERSION = '5.0.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.6.0
4
+ version: 5.0.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-08-18 00:00:00.000000000 Z
12
+ date: 2021-03-12 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