tessitura_rest 2.0.1 → 2.0.2

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: 98c5160893c0d3d533affd24c59e1d7b7891585aba4e0f8545ad255b34b547bc
4
- data.tar.gz: 9286db582296fe7b2e4f9aec4cb2799ad3b26a43fbc0a28e6977056dc07ed23f
3
+ metadata.gz: 253ffa0dec2d61493a65bd12b1f34d598cf7a687b5126850be8624a26bc7ad6a
4
+ data.tar.gz: b3485ccaa71eeab8a06c9628fbb270a16531a6cf91a0d03f29c47052d67bc5f2
5
5
  SHA512:
6
- metadata.gz: 7b0bb581bdb2f6fb533853b54913accf143e7bff4cbaff30c981179152794210c38d2926bae9e0024e93c607094211403d214ee29b63e4d620c92eea204e4a92
7
- data.tar.gz: 8a72185f02f46ab171bbb44b232383d6437eed60f5ec6c6b4e1bbae4426a322f9ac5506f2d85fc7c6a91307e65d0d5d19437064b5d9f485013621244a466aff5
6
+ metadata.gz: 7dbb5af3253cbad78d53b9c941f6a46a9b6610b1c90f4e913f71511334a0cb516a1c973085fc4de267a55d80e64afe3d954623b245a78226984651424855a5d0
7
+ data.tar.gz: ec1495fccfe86c90100bdad91d8e28f87eb09fabb8a2feb993a6dedcd10a09270df5ab1c97e39a1fe7ac09536919fde86483eb29b503dc4d2761ae529169a0c9
@@ -11,12 +11,15 @@ module Phones
11
11
  'Constituent': {
12
12
  'Id': id,
13
13
  },
14
+ 'Inactive': false,
14
15
  'PhoneNumber': phone,
15
16
  'PhoneType': {
16
17
  'Description': 'Cell Phone',
17
18
  'Id': 5,
18
19
  'Inactive': false,
19
20
  },
21
+ 'IsMobile': true,
22
+ 'PrimaryIndicator': true,
20
23
  }
21
24
  options.merge!(basic_auth: @auth, headers: @headers)
22
25
  options.merge!(:body => parameters.to_json)
@@ -23,6 +23,12 @@ module PerformanceExtension
23
23
  JSON.parse(response.body)
24
24
  end
25
25
 
26
+ def get_performance_availability_v16(mode_of_sale, performance_ids, options = {})
27
+ options.merge!(basic_auth: @auth, headers: @headers)
28
+ response = self.class.get(base_api_endpoint("TXN/Performances/Availability?modeOfSaleId=#{mode_of_sale}&productionSeasonIds=#{performance_ids}"), options)
29
+ JSON.parse(response.body)
30
+ end
31
+
26
32
  def get_performance_availability(ids, sections_ids = nil, options = {})
27
33
  options.merge!(basic_auth: @auth, headers: @headers)
28
34
  response = self.class.get(base_api_endpoint("TXN/Performances/Zones?performanceIds=#{ids}&sectionIds=#{sections_ids}"), options)
@@ -1,3 +1,3 @@
1
1
  class TessituraRest
2
- VERSION = '2.0.1'.freeze
2
+ VERSION = '2.0.2'.freeze
3
3
  end
@@ -116,6 +116,7 @@ module Cart
116
116
  end
117
117
 
118
118
  def reserve_tickets(session_key, number_of_seats, perf_id, price_type, zone_id, unseated, requested_seats = nil, special_requests = nil, options = {})
119
+ zone_id = 0 if requested_seats.present? || zone_id.nil?
119
120
  parameters =
120
121
  {
121
122
  'PriceType': price_type,
@@ -143,6 +144,8 @@ module Cart
143
144
  end
144
145
 
145
146
  def add_package_item(session_key, price_type, package_id, number_of_seats, zone_id, leave_single_seats, parent_package_line_item_id, unseated, requested_seats = nil, options = {})
147
+ zone_id = 0 if requested_seats.present? || zone_id.nil?
148
+ parent_package_line_item_id = 0 if parent_package_line_item_id.nil?
146
149
  parameters =
147
150
  {
148
151
  'PriceType': price_type,
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: 2.0.1
4
+ version: 2.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brittany Martin, Danielle Greaves, Craig Donavin, Patrick FitzGerald
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-06-18 00:00:00.000000000 Z
11
+ date: 2024-06-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler