seatsio 48.2.0 → 48.4.0

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: ecb27490111f6a56e39694cbb75e371932b79d42bf0a67a225f66c969f9a1c90
4
- data.tar.gz: 265282c82bbe244a5c742b82377ce1cce560694d8fcccbfa7ed22beca7884053
3
+ metadata.gz: 49c0845624b6c43fb431bb1ebdd41720c219b47f0310bf084bca81a39227f538
4
+ data.tar.gz: a55913dba6102b4f6f4c4f80f18994c6a523473446dd9f5d9a06d3a71b58bb54
5
5
  SHA512:
6
- metadata.gz: 65e0e1c94058c390d296f9031e32dac365e033a872d8faa2c4775d07338068905e38e5cb6a9e07582e35b9b5ce274c02e3bcf512d4435182d7c86d9eb41d18b1
7
- data.tar.gz: b19bae69ba632c8c4df4283c1bd69e87813e0f8abf2257a14d8c7b3fabeb843f5a04041a02ae60c849ec5f2503df109712cf1d22aef4bc74058d7c88086d3f5b
6
+ metadata.gz: c586546567861c151c30155ebec1976b887fbe85d480a9307e277246edf3e5e791fd5c7eeee64f2680186cf7e91826af5e17d4911b641c821d93509172bb3860
7
+ data.tar.gz: bf2135f6cbf396bb739f4f2bcaaea399b80bcdb91b5d3850b8a4d7d9cb7d9f09ba5ca27882451ffb3968f03cc95a346f4f1dfb1d5348e2841084ce660358a647
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- seatsio (48.2.0)
4
+ seatsio (48.4.0)
5
5
  rest-client (~> 2.0, >= 2.0.2)
6
6
 
7
7
  GEM
@@ -22,12 +22,12 @@ GEM
22
22
  mime-types (3.3.1)
23
23
  mime-types-data (~> 3.2015)
24
24
  mime-types-data (3.2021.0225)
25
- minitest (5.22.2)
25
+ minitest (5.22.3)
26
26
  minitest-parallel_fork (2.0.0)
27
27
  minitest (>= 5.15.0)
28
28
  netrc (0.11.0)
29
29
  public_suffix (5.0.4)
30
- rake (13.1.0)
30
+ rake (13.2.1)
31
31
  rest-client (2.1.0)
32
32
  http-accept (>= 1.7.0, < 2.0)
33
33
  http-cookie (>= 1.0.2, < 2.0)
data/README.md CHANGED
@@ -110,6 +110,15 @@ category_list.each_with_index do |category, index|
110
110
  end
111
111
  ```
112
112
 
113
+ ### Updating a category
114
+
115
+ ```ruby
116
+ require('seatsio')
117
+ client = Seatsio::Client.new(Seatsio::Region.EU(), "my-company-admin-key", "my-workspace-public-key")
118
+ @seatsio.charts.update_category(chart_key: '<the chart key>', category_key: '<the category key>', label: "New label", color: "#bbbbbb", accessible: true)
119
+ ```
120
+
121
+
113
122
  ### Listing all charts
114
123
 
115
124
  ```ruby
@@ -51,6 +51,14 @@ module Seatsio
51
51
  Category.create_list(response['categories'])
52
52
  end
53
53
 
54
+ def update_category(chart_key:, category_key:, label: nil, color: nil, accessible: nil)
55
+ payload = {}
56
+ payload['label'] = label if label != nil
57
+ payload['color'] = color if color != nil
58
+ payload['accessible'] = accessible if accessible != nil
59
+ @http_client.post("/charts/#{chart_key}/categories/#{category_key}", payload)
60
+ end
61
+
54
62
  def add_tag(key, tag)
55
63
  @http_client.post("charts/#{key}/tags/#{CGI::escape(tag)}")
56
64
  end
@@ -391,7 +391,7 @@ module Seatsio
391
391
  :is_accessible, :is_companion_seat, :has_restricted_view, :displayed_object_type,
392
392
  :left_neighbour, :right_neighbour, :is_available, :channel,
393
393
  :book_as_a_whole, :distance_to_focal_point, :holds, :num_seats,
394
- :variable_occupancy, :min_occupancy, :max_occupancy
394
+ :variable_occupancy, :min_occupancy, :max_occupancy, :season_status_overridden_quantity
395
395
 
396
396
  def initialize(data)
397
397
  @status = data['status']
@@ -427,6 +427,7 @@ module Seatsio
427
427
  @variable_occupancy = data['variableOccupancy']
428
428
  @min_occupancy = data['minOccupancy']
429
429
  @max_occupancy = data['maxOccupancy']
430
+ @season_status_overridden_quantity = data['seasonStatusOverriddenQuantity']
430
431
  end
431
432
  end
432
433
 
@@ -1,3 +1,3 @@
1
1
  module Seatsio
2
- VERSION = "48.2.0"
2
+ VERSION = "48.4.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: 48.2.0
4
+ version: 48.4.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: 2024-03-04 00:00:00.000000000 Z
11
+ date: 2024-05-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client