tessitura_rest 0.7.0 → 0.7.5

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: b936217b9709986f15f4d3c011c3bcf5eb2d400cf1e1e48a1e8db60cb83394c9
4
- data.tar.gz: 3d41ace43e7148cadcdd47625e7e48cc9ae8113b3ac4ac73a3197807f2f5432b
3
+ metadata.gz: 6ca9d95588d2a465168cb3c258446e2e66be7ee43b4d0b4067d033243f99c9d5
4
+ data.tar.gz: 3407dc2bff454f7612262186786f204550d6127d2386538a7458c7a09ce135ad
5
5
  SHA512:
6
- metadata.gz: 8b3d30873e149a738cd5ad05019029da6f0b79983d7b2278248cdfe2db5b06e12fcc55b6229450ccdde4c0116b1f340459db1d53ab90db20778d2cf6c833e7dd
7
- data.tar.gz: 7dcc362adb6eb5786a5168e67d48c19409069484b5c809ca23e5aee61c32319f1b4dc6ef007205ca3f319e6449cbe65d5907fa97552aa81a62a24e1276fe90da
6
+ metadata.gz: 306a28c45ed59203f4d48ac8828c879d6c018b12b211af67c9774114e9f69e24bb3f51787a961d4ababc612baff14ed5e369ee0ec6d6a35e86188a09608d98e6
7
+ data.tar.gz: 869c413f4380846ca07e9324d10a34475431884e1c8ccd1da67b203e1636e9cecfd5436916e4a9758171d10890c93957fd2bc6edb6efae844d4dfa55ba994551
data/.gitignore CHANGED
@@ -8,3 +8,4 @@
8
8
  /spec/reports/
9
9
  /tmp/
10
10
  .env
11
+ .idea/
@@ -10,6 +10,7 @@ class TessituraRest
10
10
  include Actions
11
11
  include Addresses
12
12
  include Attributes
13
+ include Appeals
13
14
  include BillingSchedules
14
15
  include Cart
15
16
  include Constituencies
@@ -0,0 +1,7 @@
1
+ module Appeals
2
+
3
+ def get_appeal_info (appeal_id, options={})
4
+ options.merge!(basic_auth: @auth, headers: @headers)
5
+ response = self.class.get(base_api_endpoint("Finance/Appeals/#{appeal_id}"), options)
6
+ end
7
+ end
@@ -35,4 +35,10 @@ module Package
35
35
  response = self.class.get(base_api_endpoint("TXN/Packages/#{id}/PerformanceGroups?modeOfSaleId=#{mode_of_sale}"), options)
36
36
  JSON.parse(response.body)
37
37
  end
38
+
39
+ def get_package_seats(id, mode_of_sale, constituent_id, section_id, options={})
40
+ options.merge!(basic_auth: @auth, headers: @headers)
41
+ response = self.class.get(base_api_endpoint("TXN/Packages/#{id}/Seats?modeOfSaleId=#{mode_of_sale}&constituentId=#{constituent_id}&sectionIds=#{section_id}"), options)
42
+ JSON.parse(response.body)
43
+ end
38
44
  end
@@ -29,9 +29,9 @@ module PerformanceExtension
29
29
  JSON.parse(response.body)
30
30
  end
31
31
 
32
- def get_performance_seats(id, mode_of_sale, constituent_id, options={})
32
+ def get_performance_seats(id, mode_of_sale, constituent_id, section_id, options={})
33
33
  options.merge!(basic_auth: @auth, headers: @headers)
34
- response = self.class.get(base_api_endpoint("TXN/Performances/#{id}/Seats?modeOfSaleId=#{mode_of_sale}&constituentId=#{constituent_id}"), options)
34
+ response = self.class.get(base_api_endpoint("TXN/Performances/#{id}/Seats?modeOfSaleId=#{mode_of_sale}&constituentId=#{constituent_id}&sectionIds=#{section_id}"), options)
35
35
  JSON.parse(response.body)
36
36
  end
37
37
 
@@ -1,3 +1,3 @@
1
1
  class TessituraRest
2
- VERSION = '0.7.0'
2
+ VERSION = '0.7.5'
3
3
  end
@@ -17,7 +17,7 @@ module Login
17
17
  options.merge!(basic_auth: @auth, headers: @headers)
18
18
  options.merge!(:body => parameters)
19
19
  post = self.class.post(base_api_endpoint("Web/Session/#{session_key}/Login"), options)
20
- post.success?
20
+ post['IsLoggedIn']
21
21
  end
22
22
 
23
23
  def login_using_external(email, login_type_id, promotion, session_key, options={})
@@ -44,6 +44,12 @@ module Login
44
44
  options.merge!(basic_auth: @auth, headers: @headers)
45
45
  options.merge!(:body => parameters.to_json, :headers => {'Content-Type' => 'application/json'})
46
46
  post = self.class.post(base_api_endpoint("Web/Session/#{session_key}/Login/Token"), options)
47
- post.success?
47
+ post['IsLoggedIn']
48
+ end
49
+
50
+ def logout(session_key, options={})
51
+ options.merge!(basic_auth: @auth, headers: @headers)
52
+ options.merge!(:body => {}, :headers => {'Content-Type' => 'application/json'})
53
+ self.class.post(base_api_endpoint("/Web/Session/#{session_key}/Logout"), options)
48
54
  end
49
55
  end
@@ -8,16 +8,26 @@ module Session
8
8
 
9
9
  def create_session(ip, options={})
10
10
  parameters =
11
- {
12
- 'IpAddress': ip,
13
- 'Organization': 'Tessitura Web'
14
- }
11
+ {
12
+ 'IpAddress': ip,
13
+ 'Organization': 'Tessitura Web'
14
+ }
15
15
  options.merge!(basic_auth: @auth, headers: @headers)
16
16
  options.merge!(body: parameters)
17
17
  response = self.class.post(base_api_endpoint('Web/Session'), options)
18
18
  JSON.parse(response.body)
19
19
  end
20
20
 
21
+ def transfer_session(session_key, new_session_key, options={})
22
+ parameters =
23
+ {
24
+ 'NewSessionKey': new_session_key,
25
+ }
26
+ options.merge!(basic_auth: @auth, headers: @headers)
27
+ options.merge!(body: parameters)
28
+ self.class.post(base_api_endpoint("Web/Session/#{session_key}/Transfer"), options)
29
+ end
30
+
21
31
  def get_expiration(key, options={})
22
32
  options.merge!(basic_auth: @auth, headers: @headers)
23
33
  response = self.class.get(base_api_endpoint("Web/Session/#{key}/Expiration"), options)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tessitura_rest
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.7.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brittany Martin
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-06-16 00:00:00.000000000 Z
11
+ date: 2020-08-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -140,6 +140,7 @@ files:
140
140
  - lib/tessitura_rest/custom/email.rb
141
141
  - lib/tessitura_rest/custom/local_procedure.rb
142
142
  - lib/tessitura_rest/diagnostics/diagnostics.rb
143
+ - lib/tessitura_rest/finance/appeals.rb
143
144
  - lib/tessitura_rest/finance/gift_certificates.rb
144
145
  - lib/tessitura_rest/reference_data/billing_schedules.rb
145
146
  - lib/tessitura_rest/reference_data/countries.rb
@@ -181,7 +182,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
181
182
  - !ruby/object:Gem::Version
182
183
  version: '0'
183
184
  requirements: []
184
- rubygems_version: 3.1.2
185
+ rubygems_version: 3.0.3
185
186
  signing_key:
186
187
  specification_version: 4
187
188
  summary: Rest API Endpoint for the Tessitura Rest API (v14+).