tessitura_rest 0.8.6.5 → 0.8.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +2 -2
- data/LICENSE.txt +1 -1
- data/lib/tessitura_rest/diagnostics/diagnostics.rb +5 -0
- data/lib/tessitura_rest/txn/package.rb +6 -0
- data/lib/tessitura_rest/txn/performance_extension.rb +2 -2
- data/lib/tessitura_rest/version.rb +1 -1
- data/lib/tessitura_rest/web/cart.rb +2 -2
- data/tessitura_rest.gemspec +2 -2
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d4b87b44f1ae165f28f1f554757bb59ddd58dcba43724c3a2cdb6f6fed02dac6
|
4
|
+
data.tar.gz: d4720b981dcfe7b7ef68d2d135a162a643fd7290417fefcbfab7443951fd9444
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bc2a384f6098b4c68496ca6aff98e3018463c0dfb322d62606319c0a18f4fdd34a0117bc5a0a6cb82161e8bad59aadf8360f9244a3e0ba30b4f718de1c6ce571
|
7
|
+
data.tar.gz: a17d2a7939d39a60eb618b3c5a018850f38b68665397a472c66be1e6484d96403a32875d22be29e466d21072134c90000d2a108decb1835320623ef753d6d9d0
|
data/.travis.yml
CHANGED
data/LICENSE.txt
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
The MIT License (MIT)
|
2
2
|
|
3
|
-
Copyright (c)
|
3
|
+
Copyright (c) 2021 The Pittsburgh Cultural Trust
|
4
4
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
6
|
of this software and associated documentation files (the "Software"), to deal
|
@@ -3,4 +3,9 @@ module Diagnostics
|
|
3
3
|
options.merge!(basic_auth: @auth, headers: @headers)
|
4
4
|
self.class.get(base_api_endpoint('Diagnostics/Status'), options)
|
5
5
|
end
|
6
|
+
|
7
|
+
def seat_server_status(options={})
|
8
|
+
options.merge!(basic_auth: @auth, headers: @headers)
|
9
|
+
self.class.get(base_api_endpoint('Diagnostics/SeatServerStatus'), options)
|
10
|
+
end
|
6
11
|
end
|
@@ -36,6 +36,12 @@ module Package
|
|
36
36
|
JSON.parse(response.body)
|
37
37
|
end
|
38
38
|
|
39
|
+
def get_package_seat_summaries(id, mode_of_sale, constituent_id, price_type_ids, options={})
|
40
|
+
options.merge!(basic_auth: @auth, headers: @headers)
|
41
|
+
response = self.class.get(base_api_endpoint("TXN/Packages/#{id}/Seats/Summary?modeOfSaleId=#{mode_of_sale}&constituentId=#{constituent_id}&checkPriceTypeIds=#{price_type_ids}"), options)
|
42
|
+
JSON.parse(response.body)
|
43
|
+
end
|
44
|
+
|
39
45
|
def get_package_seats(id, mode_of_sale, constituent_id, section_id, options={})
|
40
46
|
options.merge!(basic_auth: @auth, headers: @headers)
|
41
47
|
response = self.class.get(base_api_endpoint("TXN/Packages/#{id}/Seats?modeOfSaleId=#{mode_of_sale}&constituentId=#{constituent_id}§ionIds=#{section_id}"), options)
|
@@ -48,10 +48,10 @@ module PerformanceExtension
|
|
48
48
|
JSON.parse(response.body)
|
49
49
|
end
|
50
50
|
|
51
|
-
def get_performance_prices(id, mos, options={})
|
51
|
+
def get_performance_prices(id, mos, source, options={})
|
52
52
|
options.merge!(basic_auth: @auth, headers: @headers)
|
53
53
|
options.merge!(:headers => {'Content-Type' => 'application/json'})
|
54
|
-
response = self.class.get(base_api_endpoint("TXN/Performances/Prices?performanceIds=#{id}&modeOfSaleId=#{mos}"), options)
|
54
|
+
response = self.class.get(base_api_endpoint("TXN/Performances/Prices?performanceIds=#{id}&modeOfSaleId=#{mos}&sourceId=#{source}"), options)
|
55
55
|
JSON.parse(response.body)
|
56
56
|
end
|
57
57
|
|
@@ -55,7 +55,7 @@ module Cart
|
|
55
55
|
'GiftCertificateNumber': gift_certificate_number
|
56
56
|
}
|
57
57
|
options.merge!(basic_auth: @auth, headers: @headers)
|
58
|
-
options.merge!(:body => parameters)
|
58
|
+
options.merge!(:body => parameters.to_json, :headers => {'Content-Type' => 'application/json'})
|
59
59
|
self.class.post(base_api_endpoint("Web/Cart/#{session_key}/Payments/GiftCertificate"), options)
|
60
60
|
end
|
61
61
|
|
@@ -150,7 +150,7 @@ module Cart
|
|
150
150
|
"RequestedSeats": requested_seats
|
151
151
|
}
|
152
152
|
options.merge!(basic_auth: @auth, headers: @headers)
|
153
|
-
options.merge!(:body => parameters)
|
153
|
+
options.merge!(:body => parameters.to_json, :headers => {'Content-Type' => 'application/json'})
|
154
154
|
self.class.post(base_api_endpoint("/Web/Cart/#{session_key}/Tickets"), options)
|
155
155
|
end
|
156
156
|
|
data/tessitura_rest.gemspec
CHANGED
@@ -6,8 +6,8 @@ require 'tessitura_rest/version'
|
|
6
6
|
Gem::Specification.new do |spec|
|
7
7
|
spec.name = "tessitura_rest"
|
8
8
|
spec.version = TessituraRest::VERSION
|
9
|
-
spec.authors = [
|
10
|
-
spec.email = [
|
9
|
+
spec.authors = ['Brittany Martin, Danielle Greaves, Craig Donavin, Patrick FitzGerald']
|
10
|
+
spec.email = ['webteam@trustarts.org']
|
11
11
|
|
12
12
|
spec.summary = "Rest API Endpoint for the Tessitura Rest API (v14+)."
|
13
13
|
spec.description = "TessituraRest is an enterprise-wide, fully integrated software system for arts & cultural organizations."
|
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.
|
4
|
+
version: 0.8.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
- Brittany Martin
|
7
|
+
- Brittany Martin, Danielle Greaves, Craig Donavin, Patrick FitzGerald
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-04-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -111,7 +111,7 @@ dependencies:
|
|
111
111
|
description: TessituraRest is an enterprise-wide, fully integrated software system
|
112
112
|
for arts & cultural organizations.
|
113
113
|
email:
|
114
|
-
-
|
114
|
+
- webteam@trustarts.org
|
115
115
|
executables: []
|
116
116
|
extensions: []
|
117
117
|
extra_rdoc_files: []
|
@@ -185,7 +185,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
185
185
|
- !ruby/object:Gem::Version
|
186
186
|
version: '0'
|
187
187
|
requirements: []
|
188
|
-
rubygems_version: 3.0.
|
188
|
+
rubygems_version: 3.0.9
|
189
189
|
signing_key:
|
190
190
|
specification_version: 4
|
191
191
|
summary: Rest API Endpoint for the Tessitura Rest API (v14+).
|