tessitura_rest 0.8.6.7 → 0.8.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/dependabot.yml +8 -0
- data/.travis.yml +2 -2
- data/lib/tessitura_rest/diagnostics/diagnostics.rb +5 -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 +7 -2
- data/lib/tessitura_rest/web/registration.rb +2 -1
- data/tessitura_rest.gemspec +2 -2
- metadata +6 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2cdd0d5adc67f9c68b508adf39b49cec2ec71868eb0ef5633205fadfa8b45262
|
4
|
+
data.tar.gz: ee02aa086e1e479df36baccc539763c3a69df96f00bd3993141585bd0faf4afa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9464e333ecfa2ee5cef2107222b4cfdd5c87554212ffc1033879f701791c6b07227de8be355caf6e7833dcd47a526bc20e60923b7a1e576d06b35f4aadcfdf22
|
7
|
+
data.tar.gz: 59a6b8d9c468050f0d70046fca94d1b2672d7b211251522af3c1a18e2035aed3bdc85858b2c55ba637d21e092d0cbc323fc2d640f263452172d3ec3816ccc558
|
data/.travis.yml
CHANGED
@@ -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
|
@@ -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
|
|
@@ -5,6 +5,11 @@ module Cart
|
|
5
5
|
self.class.get(base_api_endpoint("Web/Cart/#{session_key}"), options)
|
6
6
|
end
|
7
7
|
|
8
|
+
def get_checkout_complete(session_key, options={})
|
9
|
+
options.merge!(basic_auth: @auth, headers: @headers)
|
10
|
+
self.class.get(base_api_endpoint("Web/Cart/#{session_key}&savedCart=true"), options)
|
11
|
+
end
|
12
|
+
|
8
13
|
def empty_cart(session_key, options={})
|
9
14
|
options.merge!(basic_auth: @auth, headers: @headers)
|
10
15
|
self.class.delete(base_api_endpoint("Web/Cart/#{session_key}"), options)
|
@@ -55,7 +60,7 @@ module Cart
|
|
55
60
|
'GiftCertificateNumber': gift_certificate_number
|
56
61
|
}
|
57
62
|
options.merge!(basic_auth: @auth, headers: @headers)
|
58
|
-
options.merge!(:body => parameters)
|
63
|
+
options.merge!(:body => parameters.to_json, :headers => {'Content-Type' => 'application/json'})
|
59
64
|
self.class.post(base_api_endpoint("Web/Cart/#{session_key}/Payments/GiftCertificate"), options)
|
60
65
|
end
|
61
66
|
|
@@ -202,7 +207,7 @@ module Cart
|
|
202
207
|
"Unseated": unseated
|
203
208
|
}
|
204
209
|
options.merge!(basic_auth: @auth, headers: @headers)
|
205
|
-
options.merge!(:body => parameters)
|
210
|
+
options.merge!(:body => parameters.to_json, :headers => {'Content-Type' => 'application/json'})
|
206
211
|
self.class.post(base_api_endpoint("Web/Cart/#{session_key}/Packages/Nfs"), options)
|
207
212
|
end
|
208
213
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
module Registration
|
2
2
|
|
3
|
-
def register_user(session_key, address, first_name, last_name, email, password, special_offer, phone, options={})
|
3
|
+
def register_user(session_key, address, first_name, last_name, email, password, promotion, special_offer, phone, options={})
|
4
4
|
parameters =
|
5
5
|
{
|
6
6
|
'FirstName': first_name,
|
@@ -25,6 +25,7 @@ module Registration
|
|
25
25
|
},
|
26
26
|
'ConstituentTypeId': 1,
|
27
27
|
'OriginalSourceId': 3,
|
28
|
+
'SourceId': promotion,
|
28
29
|
'Phones':
|
29
30
|
[
|
30
31
|
{
|
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.9
|
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-05-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -111,13 +111,14 @@ 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: []
|
118
118
|
files:
|
119
119
|
- ".codeclimate.yml"
|
120
120
|
- ".env.enc"
|
121
|
+
- ".github/dependabot.yml"
|
121
122
|
- ".gitignore"
|
122
123
|
- ".rspec"
|
123
124
|
- ".rubocop.yml"
|
@@ -185,7 +186,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
185
186
|
- !ruby/object:Gem::Version
|
186
187
|
version: '0'
|
187
188
|
requirements: []
|
188
|
-
rubygems_version: 3.0.
|
189
|
+
rubygems_version: 3.0.3
|
189
190
|
signing_key:
|
190
191
|
specification_version: 4
|
191
192
|
summary: Rest API Endpoint for the Tessitura Rest API (v14+).
|