tessitura_rest 0.8.6 → 0.8.6.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: 8ce97e962168e19a75d57d0a227c85bfcd2ede2ba17a0171d03211c3fe4e74d9
4
- data.tar.gz: 1156459b00c1f389cbba7bffa93ff66db4457effdfeeae699cf70eeb01661da7
3
+ metadata.gz: 36946bae8fd058ef81ffb64409308e06fdac3701b05d8ae15a239860f025622e
4
+ data.tar.gz: 8ccd93d7069bcfcc85b2c533a6a6d3b635097a549e3304b2a807cee1fc78684a
5
5
  SHA512:
6
- metadata.gz: e15d99cd90fc0088e2a67720ac7105b20ce1f484cd99fe32fe0633dc94116300373a6aa7dc93fe1227113e366293005884ea3e5725c5cb2280fd80bd8e95d154
7
- data.tar.gz: 93f78518ee524a716a0c775b47dcaad08c5e254209767dd0bb0561c526467d9d54f78bc63ecd7d29245fda24a22a64ccd5896a0cc6b8e3d61c96df6e70921056
6
+ metadata.gz: a7a397b2992aa53ab350c8b781005c07c04a02f31a9af47741ea2161969253db388e629c3d262ec364260fe3b204f3ea0f45258c20a565f2776aa0a9d219129a
7
+ data.tar.gz: c09d598eb729477247f6e6654f101e1e152d01fe1dda535aad399dd242c5dbfdf2166f3ecbdc4fb6633351ed1c5b23e88c97d153b3a04f95528948fe264426b6
@@ -90,8 +90,10 @@ module Constituents
90
90
  "Inactive": false
91
91
  },
92
92
  }
93
+ parameters.delete(:Prefix) unless params[:prefix].present?
94
+ parameters.delete(:Suffix) unless params[:suffix].present?
93
95
  options.merge!(basic_auth: @auth, headers: @headers)
94
- options.merge!(:body => parameters)
96
+ options.merge!(:body => parameters.to_json, :headers => { 'Content-Type' => 'application/json' })
95
97
  self.class.put(base_api_endpoint("CRM/Constituents/#{constituent_id}"), options)
96
98
  end
97
99
  end
@@ -30,15 +30,28 @@ module PerformanceExtension
30
30
  JSON.parse(response.body)
31
31
  end
32
32
 
33
+ def get_performance_zone_availability(ids, mode_of_sale, constituent_id, options={})
34
+ options.merge!(basic_auth: @auth, headers: @headers)
35
+ response = self.class.get(base_api_endpoint("TXN/Performances/ZoneAvailabilities?performanceIds=#{ids}&modeOfSaleId=#{mode_of_sale}&constituentId=#{constituent_id}"), options)
36
+ JSON.parse(response.body)
37
+ end
38
+
33
39
  def get_performance_seats(id, mode_of_sale, constituent_id, section_id, options={})
34
40
  options.merge!(basic_auth: @auth, headers: @headers)
35
41
  response = self.class.get(base_api_endpoint("TXN/Performances/#{id}/Seats?modeOfSaleId=#{mode_of_sale}&constituentId=#{constituent_id}&sectionIds=#{section_id}"), options)
36
42
  JSON.parse(response.body)
37
43
  end
38
44
 
39
- def get_performance_seat_summaries(id, options={})
45
+ def get_performance_seat_summaries(id, mode_of_sale, constituent_id, price_type_ids, options={})
46
+ options.merge!(basic_auth: @auth, headers: @headers)
47
+ response = self.class.get(base_api_endpoint("TXN/Performances/#{id}/Seats/Summary?modeOfSaleId=#{mode_of_sale}&constituentId=#{constituent_id}&checkPriceTypeIds=#{price_type_ids}"), options)
48
+ JSON.parse(response.body)
49
+ end
50
+
51
+ def get_performance_prices(id, mos, options={})
40
52
  options.merge!(basic_auth: @auth, headers: @headers)
41
- response = self.class.get(base_api_endpoint("TXN/Performances/#{id}/Seats/Summary"), options)
53
+ options.merge!(:headers => {'Content-Type' => 'application/json'})
54
+ response = self.class.get(base_api_endpoint("TXN/Performances/Prices?performanceIds=#{id}&modeOfSaleId=#{mos}"), options)
42
55
  JSON.parse(response.body)
43
56
  end
44
57
 
@@ -6,4 +6,10 @@ module PriceTypes
6
6
  JSON.parse(response.body)
7
7
  end
8
8
 
9
+ def get_price_type_details(id, mode_of_sale, options={})
10
+ options.merge!(basic_auth: @auth, headers: @headers)
11
+ response = self.class.get(base_api_endpoint("TXN/PriceTypes/Details?performanceIds=#{id}&modeOfSaleId=#{mode_of_sale}"), options)
12
+ JSON.parse(response.body)
13
+ end
14
+
9
15
  end
@@ -1,3 +1,3 @@
1
1
  class TessituraRest
2
- VERSION = '0.8.6'
2
+ VERSION = '0.8.6.5'
3
3
  end
@@ -225,7 +225,7 @@ module Cart
225
225
  "Unseated": unseated
226
226
  }
227
227
  options.merge!(basic_auth: @auth, headers: @headers)
228
- options.merge!(:body => parameters)
228
+ options.merge!(:body => parameters.to_json, :headers => {'Content-Type' => 'application/json'})
229
229
  self.class.post(base_api_endpoint("Web/Cart/#{session_key}/Packages/Super"), options)
230
230
  end
231
231
 
@@ -100,7 +100,7 @@ module Session
100
100
  'PromotionCode': 0,
101
101
  }
102
102
  options.merge!(basic_auth: @auth, headers: @headers)
103
- options.merge!(:body => parameters)
103
+ options.merge!(:body => parameters.to_json, :headers => {'Content-Type' => 'application/json'})
104
104
  self.class.put(base_api_endpoint("Web/Session/#{key}/WebLogins"), options)
105
105
  end
106
106
 
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.8.6
4
+ version: 0.8.6.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: 2021-01-29 00:00:00.000000000 Z
11
+ date: 2021-03-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler