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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 36946bae8fd058ef81ffb64409308e06fdac3701b05d8ae15a239860f025622e
4
- data.tar.gz: 8ccd93d7069bcfcc85b2c533a6a6d3b635097a549e3304b2a807cee1fc78684a
3
+ metadata.gz: d4b87b44f1ae165f28f1f554757bb59ddd58dcba43724c3a2cdb6f6fed02dac6
4
+ data.tar.gz: d4720b981dcfe7b7ef68d2d135a162a643fd7290417fefcbfab7443951fd9444
5
5
  SHA512:
6
- metadata.gz: a7a397b2992aa53ab350c8b781005c07c04a02f31a9af47741ea2161969253db388e629c3d262ec364260fe3b204f3ea0f45258c20a565f2776aa0a9d219129a
7
- data.tar.gz: c09d598eb729477247f6e6654f101e1e152d01fe1dda535aad399dd242c5dbfdf2166f3ecbdc4fb6633351ed1c5b23e88c97d153b3a04f95528948fe264426b6
6
+ metadata.gz: bc2a384f6098b4c68496ca6aff98e3018463c0dfb322d62606319c0a18f4fdd34a0117bc5a0a6cb82161e8bad59aadf8360f9244a3e0ba30b4f718de1c6ce571
7
+ data.tar.gz: a17d2a7939d39a60eb618b3c5a018850f38b68665397a472c66be1e6484d96403a32875d22be29e466d21072134c90000d2a108decb1835320623ef753d6d9d0
data/.travis.yml CHANGED
@@ -1,7 +1,7 @@
1
1
  sudo: false
2
2
  language: ruby
3
3
  rvm:
4
- - 2.4.2
4
+ - 2.5.3
5
5
  before_install:
6
- - gem install bundler -v 1.12.5
6
+ - gem install bundler -v 2.2.15
7
7
  - openssl aes-256-cbc -K $encrypted_3c84dcdc6bbe_key -iv $encrypted_3c84dcdc6bbe_iv -in .env.enc -out .env -d
data/LICENSE.txt CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2017 The Pittsburgh Cultural Trust
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}&sectionIds=#{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
 
@@ -1,3 +1,3 @@
1
1
  class TessituraRest
2
- VERSION = '0.8.6.5'
2
+ VERSION = '0.8.7'.freeze
3
3
  end
@@ -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
 
@@ -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 = ["Brittany Martin"]
10
- spec.email = ["martin@trustarts.org"]
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.6.5
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-03-12 00:00:00.000000000 Z
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
- - martin@trustarts.org
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.3
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+).