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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7d9d1f5932e51775914124de62fa18789726adb588c9356e7876acb2671bd7b9
4
- data.tar.gz: a27d044848bab4efa5e761e52bc6e0902bd0e453ca6f9993c8c8007cb46201f9
3
+ metadata.gz: 2cdd0d5adc67f9c68b508adf39b49cec2ec71868eb0ef5633205fadfa8b45262
4
+ data.tar.gz: ee02aa086e1e479df36baccc539763c3a69df96f00bd3993141585bd0faf4afa
5
5
  SHA512:
6
- metadata.gz: 8e12b6b485fe74e9280488575929b4f1eafff92705b79bf3da464042ddcab357b5b76b4b959afd481ed47ec0eddb34648fe1de64fa7bc077a63103d6e6d4b18c
7
- data.tar.gz: fb613ea4e68eddc1ac8e10186e416fec547889e5f7ba5e24426b9664263601086d5af79365658302159926dcae0226b626b46899052942dcf0f2310ed50d2371
6
+ metadata.gz: 9464e333ecfa2ee5cef2107222b4cfdd5c87554212ffc1033879f701791c6b07227de8be355caf6e7833dcd47a526bc20e60923b7a1e576d06b35f4aadcfdf22
7
+ data.tar.gz: 59a6b8d9c468050f0d70046fca94d1b2672d7b211251522af3c1a18e2035aed3bdc85858b2c55ba637d21e092d0cbc323fc2d640f263452172d3ec3816ccc558
@@ -0,0 +1,8 @@
1
+ version: 2
2
+ updates:
3
+ - package-ecosystem: bundler
4
+ directory: "/"
5
+ schedule:
6
+ interval: monthly
7
+ time: "10:00"
8
+ open-pull-requests-limit: 10
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
@@ -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
 
@@ -1,3 +1,3 @@
1
1
  class TessituraRest
2
- VERSION = '0.8.6.7'
2
+ VERSION = '0.8.9'.freeze
3
3
  end
@@ -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
  {
@@ -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.7
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-03-30 00:00:00.000000000 Z
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
- - martin@trustarts.org
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.9
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+).