openstax_salesforce 5.1.1 → 6.0.5

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: 4fa5259dcbd67d285b33e9f270aff5c5fc63f98a8d6fa99ef251f54d71a84ec3
4
- data.tar.gz: ceddb01bbdc5af5323c799ae0b76eb15acbc8de35fc67234e2aba748e1da6f8a
3
+ metadata.gz: 983d1d3f73a90379996b9a73da77b45f039918973fd08c90354f90a2932980fd
4
+ data.tar.gz: 72a1a7dbda532ff439179329176bffb862f4bb1b8c7a2c6f97fc0c728aa5b9d9
5
5
  SHA512:
6
- metadata.gz: 8e179a076aabaaa19a26b1fc27a1cf5aa9954a860d52acb73bb18c7d1a5edace56f7bffb1a2f6740fdd944af373340f8e090f4e240cc96b100fe8338cdcebc02
7
- data.tar.gz: d587fbcb0c95efebf55c4878a5ff0faecbbb402b06dbf87b1a38d885c01bf2d4f340bd28717447001f388d801fe5bb0a421328b2ee2bb4414902d9c97848ab33
6
+ metadata.gz: 367313007dc0ed2dea0636ce428e811f41112b3f95363b1b6d930357710e1211f7f4bc9609fa91525dbcd73bfaf8238e9810f13fa8afa89f107d06cd9c398294
7
+ data.tar.gz: c80b3f9a61f8c37ed47f9321d6f297bd06ca76f5c25abda663768dd936dd79611c4fc416ad18405a1117ab05a37ff09029455c3979acf9e9246fd926ba1a542c
@@ -0,0 +1,15 @@
1
+ module OpenStax::Salesforce::Remote
2
+ class AccountContactRelation < ActiveForce::SObject
3
+ belongs_to :school, foreign_key: :school_id,
4
+ model: OpenStax::Salesforce::Remote::School
5
+
6
+ belongs_to :contact, foreign_key: :contact_id,
7
+ model: OpenStax::Salesforce::Remote::Contact
8
+
9
+ field :contact_id, from: 'ContactId'
10
+ field :primary, from: 'IsDirect', as: :boolean
11
+ field :school_id, from: 'AccountId'
12
+
13
+ self.table_name = 'AccountContactRelation'
14
+ end
15
+ end
@@ -3,23 +3,24 @@ module OpenStax::Salesforce::Remote
3
3
  belongs_to :school, foreign_key: :school_id,
4
4
  model: OpenStax::Salesforce::Remote::School
5
5
 
6
- field :name, from: "Name"
7
- field :first_name, from: "FirstName"
8
- field :last_name, from: "LastName"
9
- field :email, from: "Email"
10
- field :email_alt, from: "Email_alt__c"
11
- field :faculty_confirmed_date, from: "Faculty_Confirmed_Date__c", as: :datetime
12
- field :faculty_verified, from: "Faculty_Verified__c"
13
- field :last_modified_at, from: "LastModifiedDate"
14
- field :school_id, from: "AccountId"
15
- field :school_type, from: "School_Type__c"
16
- field :send_faculty_verification_to, from: "SendFacultyVerificationTo__c"
17
- field :all_emails, from: "All_Emails__c"
18
- field :confirmed_emails, from: "Confirmed_Emails__c"
19
- field :adoption_status, from: "Adoption_Status__c"
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
6
+ field :id, from: 'Id'
7
+ field :name, from: 'Name'
8
+ field :first_name, from: 'FirstName'
9
+ field :last_name, from: 'LastName'
10
+ field :email, from: 'Email'
11
+ field :email_alt, from: 'Email_alt__c'
12
+ field :faculty_confirmed_date, from: 'Faculty_Confirmed_Date__c', as: :datetime
13
+ field :faculty_verified, from: 'Faculty_Verified__c'
14
+ field :last_modified_at, from: 'LastModifiedDate'
15
+ field :school_id, from: 'AccountId'
16
+ field :school_type, from: 'School_Type__c'
17
+ field :send_faculty_verification_to, from: 'SendFacultyVerificationTo__c'
18
+ field :all_emails, from: 'All_Emails__c'
19
+ field :confirmed_emails, from: 'Confirmed_Emails__c'
20
+ field :adoption_status, from: 'Adoption_Status__c'
21
+ field :grant_tutor_access, from: 'Grant_Tutor_Access__c', as: :boolean
22
+ field :b_r_i_marketing, from: 'BRI_Marketing__c', as: :boolean # Bill of Rights Institute (book) marketing
23
+ field :title_1_school, from: 'Title_1_school__c', as: :boolean
23
24
 
24
25
  self.table_name = 'Contact'
25
26
  end
@@ -5,40 +5,42 @@ module OpenStax::Salesforce::Remote
5
5
  pending_faculty
6
6
  confirmed_faculty
7
7
  rejected_faculty
8
- no_faculty_info
9
8
  ].freeze
10
9
 
11
10
  VALID_WHO_CHOOSES_BOOKS = %w[instructor committee coordinator].freeze
12
11
 
13
- field :name, from: "Name"
14
- field :first_name, from: "FirstName"
15
- field :last_name, from: "LastName"
16
- field :salutation, from: "Salutation"
17
- field :subject, from: "Subject__c"
18
- field :school, from: "Company"
19
- field :city, from: "City"
20
- field :state, from: "State"
21
- field :phone, from: "Phone"
22
- field :website, from: "Website"
23
- field :status, from: "Status"
24
- field :email, from: "Email"
25
- field :source, from: "LeadSource"
26
- field :newsletter, from: "Newsletter__c"
27
- field :newsletter_opt_in, from: "Newsletter_Opt_In__c"
28
- field :adoption_status, from: "Adoption_Status__c"
29
- field :num_students, from: "Number_of_Students__c"
30
- field :os_accounts_id, from: "OS_Accounts_ID__c"
31
- field :accounts_uuid, from: "accounts_uuid_c__c"
32
- field :application_source, from: "Application_Source__c"
33
- field :role, from: "Role__c"
34
- field :other_role_name, from: "other_role_name__c"
35
- field :who_chooses_books, from: "who_chooses_books__c"
36
- field :verification_status, from: "FV_Status__c"
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"
12
+ field :id, from: 'Id'
13
+ field :name, from: 'Name'
14
+ field :first_name, from: 'FirstName'
15
+ field :last_name, from: 'LastName'
16
+ field :salutation, from: 'Salutation'
17
+ field :title, from: 'Title'
18
+ field :subject, from: 'Subject__c'
19
+ field :school, from: 'Company'
20
+ field :city, from: 'City'
21
+ field :state, from: 'State'
22
+ field :state_code, from: 'StateCode'
23
+ field :country, from: 'Country'
24
+ field :phone, from: 'Phone'
25
+ field :website, from: 'Website'
26
+ field :status, from: 'Status'
27
+ field :email, from: 'Email'
28
+ field :source, from: 'LeadSource'
29
+ field :newsletter, from: 'Newsletter__c'
30
+ field :newsletter_opt_in, from: 'Newsletter_Opt_In__c'
31
+ field :adoption_status, from: 'Adoption_Status__c'
32
+ field :num_students, from: 'Number_of_Students__c'
33
+ field :os_accounts_id, from: 'Accounts_ID__c'
34
+ field :accounts_uuid, from: 'Accounts_UUID__c'
35
+ field :application_source, from: 'Application_Source__c'
36
+ field :role, from: 'Role__c'
37
+ field :position, from: 'Position__c'
38
+ field :who_chooses_books, from: 'who_chooses_books__c'
39
+ field :verification_status, from: 'FV_Status__c'
40
+ field :b_r_i_marketing, from: 'BRI_Marketing__c', as: :boolean # Bill of Rights Institute (book) marketing
41
+ field :title_1_school, from: 'Title_1_school__c', as: :boolean
42
+ field :sheerid_school_name, from: 'SheerID_School_Name__c'
43
+ field :instant_conversion, from: 'Instant_Conversion__c', as: :boolean
42
44
 
43
45
  # These 2 fields both hold the Account (School) ID, but have different data types and uses in SF
44
46
  field :account_id, from: 'Account_ID__c'
@@ -3,6 +3,7 @@ module OpenStax::Salesforce::Remote
3
3
  field :name, from: 'Name'
4
4
  field :city, from: 'BillingCity'
5
5
  field :state, from: 'BillingState'
6
+ field :country, from: 'BillingCountry'
6
7
  field :type, from: 'Type'
7
8
  field :school_location, from: 'School_Location__c'
8
9
  field :sheerid_school_name, from: 'SheerID_School_Name__c'
@@ -1,5 +1,5 @@
1
1
  module OpenStax
2
2
  module Salesforce
3
- VERSION = '5.1.1'
3
+ VERSION = '6.0.5'
4
4
  end
5
5
  end
@@ -15,6 +15,7 @@ require "openstax/salesforce/remote/contact"
15
15
  require "openstax/salesforce/remote/lead"
16
16
  require "openstax/salesforce/remote/campaign"
17
17
  require "openstax/salesforce/remote/campaign_member"
18
+ require "openstax/salesforce/remote/account_contact_relation"
18
19
 
19
20
  module OpenStax
20
21
  module Salesforce
@@ -32,7 +33,7 @@ module OpenStax
32
33
  attr_accessor :username, :password, :security_token, :consumer_key, :consumer_secret
33
34
 
34
35
  def api_version
35
- @api_version ||= '37.0'
36
+ @api_version ||= '51.0'
36
37
  end
37
38
 
38
39
  def login_domain
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: 5.1.1
4
+ version: 6.0.5
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: 2021-03-18 00:00:00.000000000 Z
12
+ date: 2021-10-29 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -117,6 +117,7 @@ files:
117
117
  - lib/openstax/salesforce/active_force.rb
118
118
  - lib/openstax/salesforce/client.rb
119
119
  - lib/openstax/salesforce/engine.rb
120
+ - lib/openstax/salesforce/remote/account_contact_relation.rb
120
121
  - lib/openstax/salesforce/remote/book.rb
121
122
  - lib/openstax/salesforce/remote/campaign.rb
122
123
  - lib/openstax/salesforce/remote/campaign_member.rb
@@ -149,7 +150,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
149
150
  - !ruby/object:Gem::Version
150
151
  version: '0'
151
152
  requirements: []
152
- rubygems_version: 3.2.7
153
+ rubygems_version: 3.2.5
153
154
  signing_key:
154
155
  specification_version: 4
155
156
  summary: Interface gem for accessing OpenStax's Salesforce instance