seatsio 47.1.0 → 47.3.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: 77a568ec547928ed45362987ed807137c86700f907b9782f56f1d5b1432c0000
4
- data.tar.gz: ea5b77dc0fe6b3952eda39fbd25d5c62df96971b365c61ec39db51750ea9272e
3
+ metadata.gz: 02c9599040afe998e09fe22298139853c5c9d453951be629c09cac413bc035b2
4
+ data.tar.gz: e093463b519625b0d9d5840e4608b1ea8391353f17a36a8a3ce3c8f5ded61ae4
5
5
  SHA512:
6
- metadata.gz: 842f3bb6bcf2a2c5247541a891d4157abd49de98baa11bd2b295d348b909cc2661865c00f358da97b451b435322031ecb7187c8386c87e51e1712bf1716da0a9
7
- data.tar.gz: dc899a3be61c5fbc40dc96f5792e3d5aa881eb89467b8371066a43a39e853afcdbfadca5bee50e52c396657e201ad3d29dd46b4255448ca335dc54bfece193d3
6
+ metadata.gz: 7cb3e7b54ceff96dbb8c1a24469a69da6a5a4376caa66070290f95ecd0a0d2bf5eb2d5ff219def7ff7d37a9064ec29ecc7353365cd8b342715b01832b30f5e65
7
+ data.tar.gz: b975856894a6645e659072f9a14116773114895f001b24b2df21125e98d9963ad1b7e0b1e16748ba12b351a2a66bf42ff2a91ffc5918a6d313b6bd8ca2fdf99f
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- seatsio (47.1.0)
4
+ seatsio (47.3.0)
5
5
  rest-client (~> 2.0, >= 2.0.2)
6
6
 
7
7
  GEM
@@ -21,11 +21,11 @@ GEM
21
21
  mime-types-data (~> 3.2015)
22
22
  mime-types-data (3.2021.0225)
23
23
  minitest (5.20.0)
24
- minitest-parallel_fork (1.3.1)
24
+ minitest-parallel_fork (2.0.0)
25
25
  minitest (>= 5.15.0)
26
26
  netrc (0.11.0)
27
27
  public_suffix (5.0.3)
28
- rake (13.0.6)
28
+ rake (13.1.0)
29
29
  rest-client (2.1.0)
30
30
  http-accept (>= 1.7.0, < 2.0)
31
31
  http-cookie (>= 1.0.2, < 2.0)
@@ -46,7 +46,7 @@ PLATFORMS
46
46
  DEPENDENCIES
47
47
  bundler (~> 2.2)
48
48
  minitest (~> 5.0)
49
- minitest-parallel_fork (~> 1.3)
49
+ minitest-parallel_fork (~> 2.0)
50
50
  rake (~> 13.0)
51
51
  seatsio!
52
52
  webmock (~> 3.4, >= 3.4.2)
@@ -162,7 +162,7 @@ module Seatsio
162
162
  :table_booking_config, :for_sale_config, :created_on, :updated_on, :channels,
163
163
  :is_top_level_season, :is_partial_season,
164
164
  :is_event_in_season, :top_level_season_key,
165
- :object_categories, :categories, :is_in_the_past
165
+ :object_categories, :categories, :is_in_the_past, :partial_season_keys_for_event
166
166
 
167
167
  def initialize(data)
168
168
  @id = data['id']
@@ -185,6 +185,7 @@ module Seatsio
185
185
  @object_categories = data['objectCategories']
186
186
  @categories = Category.create_list(data['categories']) if data['categories']
187
187
  @is_in_the_past = data['isInThePast']
188
+ @partial_season_keys_for_event = data['partialSeasonKeysForEvent']
188
189
  end
189
190
 
190
191
  def is_season
@@ -32,7 +32,7 @@ module Seatsio
32
32
 
33
33
  def update(key:, chart_key: nil, event_key: nil, name: nil, date: nil, table_booking_config: nil, object_categories: nil, categories: nil, is_in_the_past: nil)
34
34
  payload = build_event_request(chart_key, event_key, name, date, table_booking_config, object_categories, categories, channels: nil, is_in_the_past: is_in_the_past)
35
- @http_client.post("/events/#{key}", payload)
35
+ @http_client.post("events/#{key}", payload)
36
36
  end
37
37
 
38
38
  def override_season_object_status(key:, objects:)
@@ -117,7 +117,7 @@ module Seatsio
117
117
  end
118
118
 
119
119
  def delete(key:)
120
- @http_client.delete("/events/#{key}")
120
+ @http_client.delete("events/#{key}")
121
121
  end
122
122
 
123
123
  def retrieve(key:)
@@ -133,12 +133,12 @@ module Seatsio
133
133
  if object_id != nil
134
134
  status_changes_for_object key: key, object_id: object_id
135
135
  else
136
- Pagination::Cursor.new(StatusChange, "/events/#{key}/status-changes", @http_client)
136
+ Pagination::Cursor.new(StatusChange, "events/#{key}/status-changes", @http_client)
137
137
  end
138
138
  end
139
139
 
140
140
  def status_changes_for_object(key:, object_id:)
141
- Pagination::Cursor.new(StatusChange, "/events/#{key}/objects/#{object_id}/status-changes", @http_client)
141
+ Pagination::Cursor.new(StatusChange, "events/#{key}/objects/#{object_id}/status-changes", @http_client)
142
142
  end
143
143
 
144
144
  def mark_as_not_for_sale(key:, objects: nil, area_places: nil, categories: nil)
@@ -25,13 +25,13 @@ module Seatsio
25
25
  end
26
26
 
27
27
  def retrieve(hold_token)
28
- response = @http_client.get("/hold-tokens/#{hold_token}")
28
+ response = @http_client.get("hold-tokens/#{hold_token}")
29
29
  HoldToken.new(response)
30
30
  end
31
31
 
32
32
  def expire_in_minutes(hold_token, expires_in_minutes = nil)
33
33
  body = {"expiresInMinutes": expires_in_minutes}
34
- response = @http_client.post("/hold-tokens/#{hold_token}", body)
34
+ response = @http_client.post("hold-tokens/#{hold_token}", body)
35
35
  HoldToken.new(response)
36
36
  end
37
37
  end
@@ -24,7 +24,7 @@ module Seatsio
24
24
  request = {}
25
25
  request['key'] = partial_season_key if partial_season_key
26
26
  request['eventKeys'] = event_keys if event_keys
27
- response = @http_client.post("/seasons/#{top_level_season_key}/partial-seasons", request)
27
+ response = @http_client.post("seasons/#{top_level_season_key}/partial-seasons", request)
28
28
  Season.new(response)
29
29
  end
30
30
 
@@ -36,19 +36,19 @@ module Seatsio
36
36
  request = {}
37
37
  request['eventKeys'] = event_keys if event_keys
38
38
  request['numberOfEvents'] = number_of_events if number_of_events
39
- response = @http_client.post("/seasons/#{key}/actions/create-events", request)
39
+ response = @http_client.post("seasons/#{key}/actions/create-events", request)
40
40
  Events.new(response).events
41
41
  end
42
42
 
43
43
  def add_events_to_partial_season(top_level_season_key:, partial_season_key:, event_keys:)
44
44
  request = {}
45
45
  request['eventKeys'] = event_keys
46
- response = @http_client.post("/seasons/#{top_level_season_key}/partial-seasons/#{partial_season_key}/actions/add-events", request)
46
+ response = @http_client.post("seasons/#{top_level_season_key}/partial-seasons/#{partial_season_key}/actions/add-events", request)
47
47
  Season.new(response)
48
48
  end
49
49
 
50
50
  def remove_event_from_partial_season(top_level_season_key:, partial_season_key:, event_key:)
51
- response = @http_client.delete("/seasons/#{top_level_season_key}/partial-seasons/#{partial_season_key}/events/#{event_key}")
51
+ response = @http_client.delete("seasons/#{top_level_season_key}/partial-seasons/#{partial_season_key}/events/#{event_key}")
52
52
  Season.new(response)
53
53
  end
54
54
 
@@ -1,3 +1,3 @@
1
1
  module Seatsio
2
- VERSION = "47.1.0"
2
+ VERSION = "47.3.0"
3
3
  end
@@ -63,7 +63,7 @@ module Seatsio
63
63
  end
64
64
 
65
65
  def retrieve(key:)
66
- response = @http_client.get("/workspaces/#{key}")
66
+ response = @http_client.get("workspaces/#{key}")
67
67
  Workspace.new(response)
68
68
  end
69
69
 
data/seatsio.gemspec CHANGED
@@ -26,5 +26,5 @@ Gem::Specification.new do |spec|
26
26
  spec.add_development_dependency "rake", "~> 13.0"
27
27
  spec.add_development_dependency "minitest", "~> 5.0"
28
28
  spec.add_development_dependency 'webmock', '~> 3.4', '>= 3.4.2'
29
- spec.add_development_dependency 'minitest-parallel_fork', '~> 1.3'
29
+ spec.add_development_dependency 'minitest-parallel_fork', '~> 2.0'
30
30
  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: 47.1.0
4
+ version: 47.3.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-10-27 00:00:00.000000000 Z
11
+ date: 2023-12-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client
@@ -98,14 +98,14 @@ dependencies:
98
98
  requirements:
99
99
  - - "~>"
100
100
  - !ruby/object:Gem::Version
101
- version: '1.3'
101
+ version: '2.0'
102
102
  type: :development
103
103
  prerelease: false
104
104
  version_requirements: !ruby/object:Gem::Requirement
105
105
  requirements:
106
106
  - - "~>"
107
107
  - !ruby/object:Gem::Version
108
- version: '1.3'
108
+ version: '2.0'
109
109
  description: This is the official Ruby client library for the Seats.io V2 REST API
110
110
  email:
111
111
  - nahuel@seats.io