seatsio 43.3.0 → 44.1.0

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: db5f48b054f635d134e08173d9f211e8e0dd14f139878015f6dd41a29dd855ac
4
- data.tar.gz: a2330ec2d4351d8cf5eaadaeae99a73c241dc52d5a7a1f749c0982670336db27
3
+ metadata.gz: fe189e46912b8485396ed4b32277e1a8ea6453142f3eb2e3777698f8cb2c02f9
4
+ data.tar.gz: f0c9d956828d89578256b032d7e40e715b6c3b0e86b9b512fab96c663d19a9e5
5
5
  SHA512:
6
- metadata.gz: 72767dab563599e88fb6d1594cc4f05b5d352e653570ff57ab8585fff19a4fee358239c007755dd7aeac4fba7b70a6ea2bca368a0ee3103657fa4df82d23883d
7
- data.tar.gz: c4763e53633f502bccefc9ba562feeeebd5528bb6bb80d657b4f9e3f6c402b0b1a0b42bc4978a582ec6f4a642f9f32c18480b4f3b90968ffb9c2ce1e246d436d
6
+ metadata.gz: 3b60686ec86fd71de14eaeeb22b2986c6ac8ace2e8b02a8d31746bceb5eb79355c1fdf8e0a8ccfd67f2c53953d37502b7afee56fb499061d48e632e53f12d7bf
7
+ data.tar.gz: 75bf17a7efe3a583dc9ba9934d8437972391b200f52e4815f3eb5121ab4ce0e159feedfd6aa2fba4e1a5f59cec414bfa22210c1315aa9601f613b0f68a93535c
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- seatsio (43.3.0)
4
+ seatsio (44.1.0)
5
5
  rest-client (~> 2.0, >= 2.0.2)
6
6
 
7
7
  GEM
data/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2017 seats.io
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -41,11 +41,7 @@ module Seatsio
41
41
  end
42
42
 
43
43
  def replace(key:, channels:)
44
- @http_client.post("events/#{key}/channels/update", channels: channels)
45
- end
46
-
47
- def set_objects(key:, channelConfig:)
48
- @http_client.post("events/#{key}/channels/assign-objects", channelConfig: channelConfig)
44
+ @http_client.post("events/#{key}/channels/replace", { channels: channels })
49
45
  end
50
46
 
51
47
  private
@@ -316,7 +316,8 @@ module Seatsio
316
316
  class ChartObjectInfo
317
317
 
318
318
  attr_reader :label, :labels, :ids, :category_key, :category_label, :section, :entrance, :capacity, :object_type,
319
- :left_neighbour, :right_neighbour, :book_as_a_whole, :distance_to_focal_point, :num_seats
319
+ :left_neighbour, :right_neighbour, :book_as_a_whole, :distance_to_focal_point, :num_seats, :is_accessible,
320
+ :is_companion_seat, :has_restricted_view
320
321
 
321
322
  def initialize(data)
322
323
  @label = data['label']
@@ -333,6 +334,9 @@ module Seatsio
333
334
  @book_as_a_whole = data['bookAsAWhole']
334
335
  @distance_to_focal_point = data['distanceToFocalPoint']
335
336
  @num_seats = data['numSeats']
337
+ @is_accessible = data['isAccessible']
338
+ @is_companion_seat = data['isCompanionSeat']
339
+ @has_restricted_view = data['hasRestrictedView']
336
340
  end
337
341
  end
338
342
 
@@ -1,3 +1,3 @@
1
1
  module Seatsio
2
- VERSION = "43.3.0"
2
+ VERSION = "44.1.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: seatsio
3
3
  version: !ruby/object:Gem::Version
4
- version: 43.3.0
4
+ version: 44.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Seats.io
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-05-08 00:00:00.000000000 Z
11
+ date: 2023-06-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client
@@ -121,6 +121,7 @@ files:
121
121
  - ".ruby-version"
122
122
  - Gemfile
123
123
  - Gemfile.lock
124
+ - LICENSE
124
125
  - README.md
125
126
  - Rakefile
126
127
  - bin/console