tessitura_rest 0.3.5 → 0.3.6

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
  SHA1:
3
- metadata.gz: a7d151bbeb3cc3751855e28fb3fca6ddbaa62541
4
- data.tar.gz: 17c07c9f298ca4ef116bdf07f1c9249a43e41b24
3
+ metadata.gz: d5cfb54388b6cc8aaa610fbf6cf05a041302ce5b
4
+ data.tar.gz: f5bbe9f1ea20afc4bb995556f48ebb32c7a1d15a
5
5
  SHA512:
6
- metadata.gz: 95be4436370fc6141d7c51c04b86a4b22d3c0eff39d943e1fee4e7e76d53be5087615a46ea98265b2327786392ae14e0876c8e435612f2687a60d700a2aa30da
7
- data.tar.gz: 212b3ee054512d73de022480142367a1e240c9468731e92cd1d4fe94caa75437e17940698ec3043a879b3394090cc5e320d84ba2cc4f7b829504612b81f2c41a
6
+ metadata.gz: ac2857dc19d93dbca7a27817c95031bc349a5959b5648f1a7cfb0c5deba30776526c5ee58d13610e70683a31e858ec438fd6479325f0721a89179b0371f0f7f2
7
+ data.tar.gz: 3c053cc9f500c5367343ae1057c93d217d071b9cb9cb963436580c8c528147817bdc82ca11ebd6066ddf4be3dd164cad15daf5b5d5bf69c710f6e8af6d9453cc
@@ -27,6 +27,7 @@ class TessituraRest
27
27
  include ProductionExtension
28
28
  include ProductKeywords
29
29
  include ProductionSeason
30
+ include Sections
30
31
  include Session
31
32
  include SecurityUserGroups
32
33
  include States
@@ -0,0 +1,7 @@
1
+ module Sections
2
+
3
+ def get_section (id, options={})
4
+ options.merge!({:basic_auth => @auth})
5
+ response = self.class.get(base_api_endpoint("ReferenceData/Sections/#{id}"), options)
6
+ end
7
+ end
@@ -22,4 +22,16 @@ module PerformanceExtension
22
22
  JSON.parse(response.body)
23
23
  end
24
24
 
25
+ def get_performance_seats(id, mode_of_sale, constituent_id, options={})
26
+ options.merge!({:basic_auth => @auth})
27
+ response = self.class.get(base_api_endpoint("TXN/Performances/#{id}/Seats?modeOfSaleId=#{mode_of_sale}&constituentId=#{constituent_id}"), options)
28
+ JSON.parse(response.body)
29
+ end
30
+
31
+ def get_performance_seat_summaries(id, options={})
32
+ options.merge!({:basic_auth => @auth})
33
+ response = self.class.get(base_api_endpoint("TXN/Performances/#{id}/Seats/Summary"), options)
34
+ JSON.parse(response.body)
35
+ end
36
+
25
37
  end
@@ -1,3 +1,3 @@
1
1
  class TessituraRest
2
- VERSION = "0.3.5"
2
+ VERSION = "0.3.6"
3
3
  end
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.3.5
4
+ version: 0.3.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brittany Martin
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-01-02 00:00:00.000000000 Z
11
+ date: 2019-01-08 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/diagnostics/diagnostics.rb
141
141
  - lib/tessitura_rest/finance/gift_certificates.rb
142
142
  - lib/tessitura_rest/reference_data/countries.rb
143
+ - lib/tessitura_rest/reference_data/sections.rb
143
144
  - lib/tessitura_rest/reference_data/states.rb
144
145
  - lib/tessitura_rest/security/security_user_groups.rb
145
146
  - lib/tessitura_rest/txn/orders.rb