tessitura_rest 2.0.1 → 2.0.3
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a7aebec05323faf523d6733236fcaaf41cdf308c79957dad8e3d2c7b18d5068e
|
4
|
+
data.tar.gz: 73ac20f39df98be95f564e97f4deb96bee8c46082bbf0603e4cac7a3dfd863ec
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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}§ionIds=#{sections_ids}"), options)
|
@@ -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.
|
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-
|
11
|
+
date: 2024-07-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|