tessitura_rest 0.6.7 → 0.7.2

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: f4c97c3265c94f59c9cd9fd0cad86d17db9b5bbd6ed9025dff4e36bea41b2713
4
- data.tar.gz: 692320488c0681dffe16ea0ce706dfd3f620f4e75ea473f79a8ac6188abdd5db
3
+ metadata.gz: 648745a8d6f64b12d0318f9e691f1b189299a28b954d3f053054c6c8021d2780
4
+ data.tar.gz: aba21c9187d01984e88e43efb0d06a4b27bf7337ee0d3dd565fab32fe334b747
5
5
  SHA512:
6
- metadata.gz: f99579a67e37187ff879ad5ebb3f8d6f6b7262927e2478c82a93eb58c1bbf8e638f1698988095e2a95c6ba9411bf1888e70bfdb1b1bc43741da2d03c0fac41b3
7
- data.tar.gz: 3785b4fc55d2f6ab6c1c8af0a4afdcde2b812e23e94469806a69719fc0040c364c34ff66c3450f948f75ee9808d225bfc41631cd1cbb8977b912e3af78040e72
6
+ metadata.gz: dbbf9debe0f5a955ceab88f1c4dd22949bb2f1ba7adc06f5673966d3faf21cd1d5134177db494bf5c0ed556482b8ca36e6cb3211181d74fd2af921ace82ceaed
7
+ data.tar.gz: e923341715f7c649ed4974b10b5ab4fe95f60cbdd0b0c8c07bbf35d774c334800811da4e8da700f590fe0691a9380da75f2fde88bd61c367d2ed0aa7901a97b0
@@ -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
@@ -1,9 +1,10 @@
1
1
  module PerformanceExtension
2
2
 
3
- def get_performances_by_production(ids, options={})
3
+ def get_performances_by_production(ids, mode_of_sale=nil, options={})
4
4
  parameters =
5
5
  {
6
- 'ProductionSeasonIds': ids
6
+ 'ProductionSeasonIds': ids,
7
+ 'ModeOfSaleId': mode_of_sale
7
8
  }
8
9
  options.merge!(basic_auth: @auth, headers: @headers)
9
10
  options.merge!(:body => parameters)
@@ -28,9 +29,9 @@ module PerformanceExtension
28
29
  JSON.parse(response.body)
29
30
  end
30
31
 
31
- 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={})
32
33
  options.merge!(basic_auth: @auth, headers: @headers)
33
- 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)
34
35
  JSON.parse(response.body)
35
36
  end
36
37
 
@@ -1,3 +1,3 @@
1
1
  class TessituraRest
2
- VERSION = '0.6.7'
2
+ VERSION = '0.7.2'
3
3
  end
@@ -278,4 +278,16 @@ module Cart
278
278
  options.merge!(:body => parameters)
279
279
  self.class.post(base_api_endpoint("Web/Cart/#{session_key}/Validate"), options)
280
280
  end
281
+
282
+ def update_cart_properties_custom_data(session_key, index, value, options={})
283
+ parameters =
284
+ {
285
+ "Index": index,
286
+ "Value": value
287
+ }
288
+ options.merge!(basic_auth: @auth, headers: @headers)
289
+ options.merge!(:body => parameters)
290
+ put = self.class.put(base_api_endpoint("Web/Cart/#{session_key}/CustomData/#{index}"), options)
291
+ put.success?
292
+ end
281
293
  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,6 @@ 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
48
  end
49
49
  end
@@ -24,6 +24,12 @@ module Session
24
24
  JSON.parse(response.body)
25
25
  end
26
26
 
27
+ def get_variables(key, options={})
28
+ options.merge!(basic_auth: @auth, headers: @headers)
29
+ response = self.class.get(base_api_endpoint("Web/Session/#{key}/Variables"), options)
30
+ JSON.parse(response.body)
31
+ end
32
+
27
33
  def set_expiration(key, timeoffset, expiration, options={})
28
34
  parameters =
29
35
  {
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.6.7
4
+ version: 0.7.2
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-04-10 00:00:00.000000000 Z
11
+ date: 2020-06-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler