openstax_salesforce 6.5.0 → 7.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: 1d2fc2325a39f29adbac4d6a3c5c7ab7d53495a5943293ad7592a41556fcf1d0
4
- data.tar.gz: 1f03306f65067007f30ff673fc29ba14e1ad22857367328f5dd54e812d9f9032
3
+ metadata.gz: bdbcb2ca4eabdf7962da5946b5e6769d6b8642d30daa503265028255a693f158
4
+ data.tar.gz: e0572de4235bca3f219a5a2b650ffc83f8627ef43f438a2ebfa042ed8c169fbf
5
5
  SHA512:
6
- metadata.gz: 7055c33b39e2c59bcb04a6b91f16b28e4ca8c8b54adabf68fdfbc744a4f72ca11e9743b0a856a2590df3b92c89dcb87cdd27d186ea105b87d96716385eff06d4
7
- data.tar.gz: c037d6a561c2d874b07d2df73c07c339bc8c3737629375022753fc48e63f01c7f5cdf0045a027b90704b3de5da005abaf7d335a9dcb962c6f82d074e7bc98674
6
+ metadata.gz: fa20d717b00457b204d9933eba0258d2fc404b2d204fc303f1772aecaf631acf5bd2b75c68defa4657b292734d7c3f9f66f82fb01d8a5d6c5d32add42051daa8
7
+ data.tar.gz: fd40c79d4e641a78d514b6cc76ca65d401d16b96fd36d33444cc3a437a08ef099f75dd3701ab12775e346c4599f279a57fce68f07616092889728469dc341788
@@ -3,18 +3,18 @@ module OpenStax::Salesforce::Remote
3
3
  field :term_year, from: "TermYear__c"
4
4
  field :book_name, from: "Book_Text__c"
5
5
  field :contact_id, from: "Contact__c"
6
- field :new, from: "New__c", as: :boolean
7
- field :close_date, from: "CloseDate", as: :datetime
6
+ field :renewal_status, from: "Renewal_Status__c"
7
+ field :close_date, from: "CloseDate", as: :datetime
8
8
  field :stage_name, from: "StageName"
9
9
  field :type, from: "Type"
10
10
  field :number_of_students, from: "Students__c"
11
11
  field :student_number_status, from: "Student_No_Status__c"
12
12
  field :time_period, from: "Time_Period__c"
13
13
  field :class_start_date, from: "Class_Start_Date__c", as: :datetime
14
+ field :renewal_class_start_date, from: "CSDInput__c", as: :datetime
14
15
  field :school_id, from: "AccountId"
15
16
  field :book_id, from: "Book__c"
16
17
  field :contact_id, from: "Contact__c"
17
- field :lead_source, from: "LeadSource"
18
18
  field :os_accounts_id, from: "OS_Accounts_ID__c"
19
19
  field :accounts_uuid, from: 'Accounts_UUID__c'
20
20
  field :name, from: "Name"
@@ -0,0 +1,13 @@
1
+ module OpenStax::Salesforce::Remote
2
+ class RecordType < ActiveForce::SObject
3
+ field :id, from: 'Id'
4
+ field :name, from: 'Name'
5
+ field :salesforce_object_name, from: 'SobjectType'
6
+
7
+ self.table_name = 'RecordType'
8
+
9
+ def self.query
10
+ super.where('IsActive = true')
11
+ end
12
+ end
13
+ end
@@ -85,7 +85,7 @@ module OpenStax::Salesforce::SpecHelpers
85
85
  faculty_verified: faculty_verified,
86
86
  school_type: school_type
87
87
  ).tap do |contact|
88
- if !contact.save
88
+ unless contact.save
89
89
  raise "Could not save SF contact: #{contact.errors}"
90
90
  end
91
91
  end
@@ -99,7 +99,7 @@ module OpenStax::Salesforce::SpecHelpers
99
99
  school: school_name,
100
100
  source: source
101
101
  ).tap do |lead|
102
- if !lead.save
102
+ unless lead.save
103
103
  raise "Could not save SF lead: #{lead.errors}"
104
104
  end
105
105
  end
@@ -109,7 +109,7 @@ module OpenStax::Salesforce::SpecHelpers
109
109
  Campaign.new(
110
110
  name: name
111
111
  ).tap do |campaign|
112
- if !campaign.save
112
+ unless campaign.save
113
113
  raise "Could not save SF Campaign: #{campaign.errors}"
114
114
  end
115
115
  end
@@ -120,7 +120,7 @@ module OpenStax::Salesforce::SpecHelpers
120
120
  contact_id: contact_id,
121
121
  campaign_id: campaign_id
122
122
  ).tap do |campaign_member|
123
- if !campaign_member.save
123
+ unless campaign_member.save
124
124
  raise "Could not save SF Campaign Member: #{campaign_member.errors}"
125
125
  end
126
126
  end
@@ -1,5 +1,5 @@
1
1
  module OpenStax
2
2
  module Salesforce
3
- VERSION = '6.5.0'
3
+ VERSION = '7.0.0'
4
4
  end
5
5
  end
@@ -16,6 +16,7 @@ require "openstax/salesforce/remote/lead"
16
16
  require "openstax/salesforce/remote/campaign"
17
17
  require "openstax/salesforce/remote/campaign_member"
18
18
  require "openstax/salesforce/remote/account_contact_relation"
19
+ require "openstax/salesforce/remote/record_type"
19
20
 
20
21
  module OpenStax
21
22
  module Salesforce
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: openstax_salesforce
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.5.0
4
+ version: 7.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - JP Slavinsky
8
8
  - Dante Soares
9
- autorequire:
9
+ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2022-02-15 00:00:00.000000000 Z
12
+ date: 2022-02-16 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -101,6 +101,34 @@ dependencies:
101
101
  - - ">="
102
102
  - !ruby/object:Gem::Version
103
103
  version: '0'
104
+ - !ruby/object:Gem::Dependency
105
+ name: factory_bot_rails
106
+ requirement: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
111
+ type: :development
112
+ prerelease: false
113
+ version_requirements: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ">="
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ - !ruby/object:Gem::Dependency
119
+ name: faker
120
+ requirement: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ">="
123
+ - !ruby/object:Gem::Version
124
+ version: '0'
125
+ type: :development
126
+ prerelease: false
127
+ version_requirements: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - ">="
130
+ - !ruby/object:Gem::Version
131
+ version: '0'
104
132
  description: Interface gem for accessing OpenStax's Salesforce instance
105
133
  email:
106
134
  - jps@kindlinglabs.com
@@ -124,6 +152,7 @@ files:
124
152
  - lib/openstax/salesforce/remote/contact.rb
125
153
  - lib/openstax/salesforce/remote/lead.rb
126
154
  - lib/openstax/salesforce/remote/opportunity.rb
155
+ - lib/openstax/salesforce/remote/record_type.rb
127
156
  - lib/openstax/salesforce/remote/school.rb
128
157
  - lib/openstax/salesforce/remote/term_year.rb
129
158
  - lib/openstax/salesforce/remote/tutor_course_period.rb
@@ -135,7 +164,7 @@ homepage: https://github.com/openstax/openstax_salesforce
135
164
  licenses:
136
165
  - MIT
137
166
  metadata: {}
138
- post_install_message:
167
+ post_install_message:
139
168
  rdoc_options: []
140
169
  require_paths:
141
170
  - lib
@@ -150,8 +179,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
150
179
  - !ruby/object:Gem::Version
151
180
  version: '0'
152
181
  requirements: []
153
- rubygems_version: 3.2.33
154
- signing_key:
182
+ rubygems_version: 3.2.22
183
+ signing_key:
155
184
  specification_version: 4
156
185
  summary: Interface gem for accessing OpenStax's Salesforce instance
157
186
  test_files: []