tessitura_rest 2.0.1 → 2.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 98c5160893c0d3d533affd24c59e1d7b7891585aba4e0f8545ad255b34b547bc
4
- data.tar.gz: 9286db582296fe7b2e4f9aec4cb2799ad3b26a43fbc0a28e6977056dc07ed23f
3
+ metadata.gz: a7aebec05323faf523d6733236fcaaf41cdf308c79957dad8e3d2c7b18d5068e
4
+ data.tar.gz: 73ac20f39df98be95f564e97f4deb96bee8c46082bbf0603e4cac7a3dfd863ec
5
5
  SHA512:
6
- metadata.gz: 7b0bb581bdb2f6fb533853b54913accf143e7bff4cbaff30c981179152794210c38d2926bae9e0024e93c607094211403d214ee29b63e4d620c92eea204e4a92
7
- data.tar.gz: 8a72185f02f46ab171bbb44b232383d6437eed60f5ec6c6b4e1bbae4426a322f9ac5506f2d85fc7c6a91307e65d0d5d19437064b5d9f485013621244a466aff5
6
+ metadata.gz: 982cc3e2eeb4a7304d08d276065bd51813407af5d23488b5d1bebcf39248eda3eb8125004a490c03fb654cfbaff060ee125bb91304f8291292d7b3089ec19d0c
7
+ data.tar.gz: 7c70b1ecef0700b3e27c9dce9998e21ff03faccf21a483cf5de943b3e0efda064f4c13e9476fee9ccbebdf483fe21f25d5c5e34dd6eeea7ce9b278f66c39523f
@@ -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.3'.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,
@@ -68,6 +68,7 @@ module Registration
68
68
  {
69
69
  'PhoneNumber': phone,
70
70
  'PhoneTypeId': 5,
71
+ 'IsMobile': true,
71
72
  },
72
73
  }
73
74
  options.merge!(basic_auth: @auth, headers: @headers)
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.3
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-07-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler