tessitura_rest 0.6.8 → 0.7.3

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: 1ef727df9d80bcd761cba65087ea0056a13de7acf1b0cbf5d1496efb1e93b8d7
4
- data.tar.gz: 61f70ba3e638e1b642633da1a0ca56b936f3846c9c3ecf0b8c9c2809dbab0586
3
+ metadata.gz: 5cbaf72940e9ccd90f84cd887fd200f058f7a92fccdedd4800512d2fe69ebf86
4
+ data.tar.gz: b1a57a38160a6e2d423b149eb2c8deb05f64766166af533038808a7a831d44c2
5
5
  SHA512:
6
- metadata.gz: 40c09b03b0fb6c19233a071526f1c5868f8105937b09b701838988c56dd92cfc0c39f03230edde42be17fc12b6adcfbd6f5a91330747e0b2f3e2c6e18efede76
7
- data.tar.gz: 7fef5fde489fc97974c3173fb21b9fa89e4bb4cb2f5d3dab49d3d079bb7c22b496eb110b5112434c1cb621baf63ca1da8ca6e6a5662c0634158373c4481b0808
6
+ metadata.gz: 6a23ec88b30f65cb35fea909d34a27ab9895c779c0b46a167213754e288f38c8ab68f2839e807f90313567c2cd773c4e9aa8dc6b31c66d9c1602fabe349ff591
7
+ data.tar.gz: d5508d8c77df4e0fb115af396ed5984468551a71296343632961d873eb9938ed0bded0248cb433b48c946e0c3a2c918a9e0dccb6034e49465dcfb6cf4dc64bf4
@@ -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
@@ -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.8'
2
+ VERSION = '0.7.3'
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,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.8
4
+ version: 0.7.3
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-23 00:00:00.000000000 Z
11
+ date: 2020-07-07 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