seatschart 0.1.1 → 0.2.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 +4 -4
- data/README.md +31 -3
- data/lib/seatschart/api/charts_api.rb +9 -9
- data/lib/seatschart/api/embed_api.rb +13 -2
- data/lib/seatschart/api/event_log_api.rb +2 -2
- data/lib/seatschart/api/events_api.rb +186 -20
- data/lib/seatschart/api/listings_api.rb +884 -0
- data/lib/seatschart/api/object_status_api.rb +2 -2
- data/lib/seatschart/api/seasons_api.rb +113 -8
- data/lib/seatschart/api/seats_api.rb +3 -22
- data/lib/seatschart/api/usage_api.rb +4 -4
- data/lib/seatschart/api/webhooks_api.rb +2 -2
- data/lib/seatschart/api/workspace_api.rb +4 -4
- data/lib/seatschart/models/api_error.rb +307 -0
- data/lib/seatschart/models/api_error_params_value.rb +105 -0
- data/lib/seatschart/models/get_api_monitoring_requests200_response.rb +17 -1
- data/lib/seatschart/models/get_api_monitoring_requests200_response_concurrency.rb +318 -0
- data/lib/seatschart/models/get_api_monitoring_requests200_response_concurrency_api_keys_inner.rb +297 -0
- data/lib/seatschart/models/get_api_monitoring_requests200_response_points_inner.rb +21 -4
- data/lib/seatschart/models/get_api_workspace_settings200_response_effective.rb +20 -4
- data/lib/seatschart/models/get_api_workspace_settings200_response_overrides.rb +13 -4
- data/lib/seatschart/models/get_api_workspace_settings200_response_sources.rb +32 -4
- data/lib/seatschart/models/patch_api_events_by_event_id_listings_by_listing_id_request.rb +379 -0
- data/lib/seatschart/models/patch_api_listing_types_by_key_request.rb +376 -0
- data/lib/seatschart/models/patch_api_seasons_by_season_id_partial_seasons_by_partial_season_id_request.rb +268 -0
- data/lib/seatschart/models/patch_api_seasons_by_season_id_request.rb +27 -1
- data/lib/seatschart/models/patch_api_webhooks_by_id_request.rb +1 -1
- data/lib/seatschart/models/patch_api_workspace_settings_request.rb +12 -1
- data/lib/seatschart/models/post_api_charts_by_chart_id_actions_validate_request_seats_inner_accessibility.rb +6 -6
- data/lib/seatschart/models/post_api_events_actions_change_object_status_request_status_changes_inner.rb +0 -11
- data/lib/seatschart/models/post_api_events_by_event_id_actions_change_object_status_request.rb +13 -26
- data/lib/seatschart/models/post_api_events_by_event_id_actions_change_object_status_request_listing.rb +392 -0
- data/lib/seatschart/models/post_api_events_by_event_id_actions_mark_everything_as_not_for_sale_request.rb +215 -0
- data/lib/seatschart/models/post_api_events_by_event_id_listings_by_listing_id_actions_mark_sold_request.rb +243 -0
- data/lib/seatschart/models/post_api_events_by_event_id_listings_request.rb +435 -0
- data/lib/seatschart/models/post_api_events_by_event_id_listings_request_objects_inner.rb +104 -0
- data/lib/seatschart/models/post_api_events_by_event_id_listings_request_objects_inner_any_of.rb +325 -0
- data/lib/seatschart/models/post_api_ga_confirm_request.rb +0 -44
- data/lib/seatschart/models/post_api_ga_release_request.rb +0 -11
- data/lib/seatschart/models/post_api_ga_reserve_request.rb +0 -33
- data/lib/seatschart/models/post_api_hold_tokens_request.rb +0 -22
- data/lib/seatschart/models/post_api_listing_types_request.rb +439 -0
- data/lib/seatschart/models/post_api_quotes_request.rb +0 -22
- data/lib/seatschart/models/post_api_seasons_by_season_id_partial_seasons_request.rb +27 -1
- data/lib/seatschart/models/post_api_seasons_request.rb +27 -1
- data/lib/seatschart/models/post_api_seats_best_available_request.rb +0 -11
- data/lib/seatschart/models/post_api_seats_confirm_request.rb +0 -44
- data/lib/seatschart/models/post_api_seats_release_request.rb +0 -11
- data/lib/seatschart/models/post_api_seats_reserve_request.rb +0 -22
- data/lib/seatschart/models/post_api_viewer_tokens_request.rb +0 -11
- data/lib/seatschart/models/post_api_webhooks_request.rb +1 -1
- data/lib/seatschart/models/put_api_charts_by_chart_id_map_draft_request.rb +348 -0
- data/lib/seatschart/version.rb +1 -1
- data/lib/seatschart.rb +16 -0
- metadata +17 -1
|
@@ -17,6 +17,9 @@ module SeatsChart
|
|
|
17
17
|
class PostApiSeasonsRequest
|
|
18
18
|
attr_accessor :name
|
|
19
19
|
|
|
20
|
+
# Partner key: unique per workspace, 1–100 URL-safe characters (letters, digits, `_ . ~ -`, starting with a letter or digit), never UUID-shaped. Every season route accepts the key in place of the id (path, body and query `seasonId`), like event and chart keys.
|
|
21
|
+
attr_accessor :key
|
|
22
|
+
|
|
20
23
|
attr_accessor :chart_id
|
|
21
24
|
|
|
22
25
|
attr_accessor :source_event_id
|
|
@@ -31,6 +34,7 @@ module SeatsChart
|
|
|
31
34
|
def self.attribute_map
|
|
32
35
|
{
|
|
33
36
|
:'name' => :'name',
|
|
37
|
+
:'key' => :'key',
|
|
34
38
|
:'chart_id' => :'chartId',
|
|
35
39
|
:'source_event_id' => :'sourceEventId',
|
|
36
40
|
:'event_keys' => :'eventKeys',
|
|
@@ -47,6 +51,7 @@ module SeatsChart
|
|
|
47
51
|
def self.openapi_types
|
|
48
52
|
{
|
|
49
53
|
:'name' => :'String',
|
|
54
|
+
:'key' => :'String',
|
|
50
55
|
:'chart_id' => :'String',
|
|
51
56
|
:'source_event_id' => :'String',
|
|
52
57
|
:'event_keys' => :'Array<String>',
|
|
@@ -57,6 +62,7 @@ module SeatsChart
|
|
|
57
62
|
# List of attributes with nullable: true
|
|
58
63
|
def self.openapi_nullable
|
|
59
64
|
Set.new([
|
|
65
|
+
:'key',
|
|
60
66
|
:'chart_id',
|
|
61
67
|
:'source_event_id',
|
|
62
68
|
])
|
|
@@ -83,6 +89,10 @@ module SeatsChart
|
|
|
83
89
|
self.name = nil
|
|
84
90
|
end
|
|
85
91
|
|
|
92
|
+
if attributes.key?(:'key')
|
|
93
|
+
self.key = attributes[:'key']
|
|
94
|
+
end
|
|
95
|
+
|
|
86
96
|
if attributes.key?(:'chart_id')
|
|
87
97
|
self.chart_id = attributes[:'chart_id']
|
|
88
98
|
end
|
|
@@ -119,6 +129,10 @@ module SeatsChart
|
|
|
119
129
|
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
|
120
130
|
end
|
|
121
131
|
|
|
132
|
+
if !@key.nil? && @key.to_s.length > 100
|
|
133
|
+
invalid_properties.push('invalid value for "key", the character length must be smaller than or equal to 100.')
|
|
134
|
+
end
|
|
135
|
+
|
|
122
136
|
if !@chart_id.nil? && @chart_id.to_s.length > 36
|
|
123
137
|
invalid_properties.push('invalid value for "chart_id", the character length must be smaller than or equal to 36.')
|
|
124
138
|
end
|
|
@@ -161,6 +175,7 @@ module SeatsChart
|
|
|
161
175
|
return false if @name.nil?
|
|
162
176
|
return false if @name.to_s.length > 512
|
|
163
177
|
return false if @name.to_s.length < 1
|
|
178
|
+
return false if !@key.nil? && @key.to_s.length > 100
|
|
164
179
|
return false if !@chart_id.nil? && @chart_id.to_s.length > 36
|
|
165
180
|
return false if !@chart_id.nil? && @chart_id.to_s.length < 36
|
|
166
181
|
return false if !@source_event_id.nil? && @source_event_id.to_s.length > 36
|
|
@@ -190,6 +205,16 @@ module SeatsChart
|
|
|
190
205
|
@name = name
|
|
191
206
|
end
|
|
192
207
|
|
|
208
|
+
# Custom attribute writer method with validation
|
|
209
|
+
# @param [Object] key Value to be assigned
|
|
210
|
+
def key=(key)
|
|
211
|
+
if !key.nil? && key.to_s.length > 100
|
|
212
|
+
fail ArgumentError, 'invalid value for "key", the character length must be smaller than or equal to 100.'
|
|
213
|
+
end
|
|
214
|
+
|
|
215
|
+
@key = key
|
|
216
|
+
end
|
|
217
|
+
|
|
193
218
|
# Custom attribute writer method with validation
|
|
194
219
|
# @param [Object] chart_id Value to be assigned
|
|
195
220
|
def chart_id=(chart_id)
|
|
@@ -260,6 +285,7 @@ module SeatsChart
|
|
|
260
285
|
return true if self.equal?(o)
|
|
261
286
|
self.class == o.class &&
|
|
262
287
|
name == o.name &&
|
|
288
|
+
key == o.key &&
|
|
263
289
|
chart_id == o.chart_id &&
|
|
264
290
|
source_event_id == o.source_event_id &&
|
|
265
291
|
event_keys == o.event_keys &&
|
|
@@ -275,7 +301,7 @@ module SeatsChart
|
|
|
275
301
|
# Calculates hash code according to all attributes.
|
|
276
302
|
# @return [Integer] Hash code
|
|
277
303
|
def hash
|
|
278
|
-
[name, chart_id, source_event_id, event_keys, number_of_events].hash
|
|
304
|
+
[name, key, chart_id, source_event_id, event_keys, number_of_events].hash
|
|
279
305
|
end
|
|
280
306
|
|
|
281
307
|
# Builds the object from hash
|
|
@@ -375,11 +375,6 @@ module SeatsChart
|
|
|
375
375
|
invalid_properties.push('invalid value for "user_id", the character length must be great than or equal to 1.')
|
|
376
376
|
end
|
|
377
377
|
|
|
378
|
-
pattern = Regexp.new(/^(?:[^\u0000\uD800-\uDFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF])+$/)
|
|
379
|
-
if !@user_id.nil? && @user_id !~ pattern
|
|
380
|
-
invalid_properties.push("invalid value for \"user_id\", must conform to the pattern #{pattern}.")
|
|
381
|
-
end
|
|
382
|
-
|
|
383
378
|
invalid_properties
|
|
384
379
|
end
|
|
385
380
|
|
|
@@ -413,7 +408,6 @@ module SeatsChart
|
|
|
413
408
|
return false if !@hold_token.nil? && @hold_token.to_s.length < 36
|
|
414
409
|
return false if !@user_id.nil? && @user_id.to_s.length > 256
|
|
415
410
|
return false if !@user_id.nil? && @user_id.to_s.length < 1
|
|
416
|
-
return false if !@user_id.nil? && @user_id !~ Regexp.new(/^(?:[^\u0000\uD800-\uDFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF])+$/)
|
|
417
411
|
status_validator = EnumAttributeValidator.new('String', ["booked", "reservedByToken"])
|
|
418
412
|
return false unless status_validator.valid?(@status)
|
|
419
413
|
true
|
|
@@ -634,11 +628,6 @@ module SeatsChart
|
|
|
634
628
|
fail ArgumentError, 'invalid value for "user_id", the character length must be great than or equal to 1.'
|
|
635
629
|
end
|
|
636
630
|
|
|
637
|
-
pattern = Regexp.new(/^(?:[^\u0000\uD800-\uDFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF])+$/)
|
|
638
|
-
if user_id !~ pattern
|
|
639
|
-
fail ArgumentError, "invalid value for \"user_id\", must conform to the pattern #{pattern}."
|
|
640
|
-
end
|
|
641
|
-
|
|
642
631
|
@user_id = user_id
|
|
643
632
|
end
|
|
644
633
|
|
|
@@ -215,11 +215,6 @@ module SeatsChart
|
|
|
215
215
|
invalid_properties.push('invalid value for "external_order_id", the character length must be great than or equal to 1.')
|
|
216
216
|
end
|
|
217
217
|
|
|
218
|
-
pattern = Regexp.new(/^(?:[^\u0000\uD800-\uDFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF])+$/)
|
|
219
|
-
if !@external_order_id.nil? && @external_order_id !~ pattern
|
|
220
|
-
invalid_properties.push("invalid value for \"external_order_id\", must conform to the pattern #{pattern}.")
|
|
221
|
-
end
|
|
222
|
-
|
|
223
218
|
if !@external_payment_id.nil? && @external_payment_id.to_s.length > 255
|
|
224
219
|
invalid_properties.push('invalid value for "external_payment_id", the character length must be smaller than or equal to 255.')
|
|
225
220
|
end
|
|
@@ -228,11 +223,6 @@ module SeatsChart
|
|
|
228
223
|
invalid_properties.push('invalid value for "external_payment_id", the character length must be great than or equal to 1.')
|
|
229
224
|
end
|
|
230
225
|
|
|
231
|
-
pattern = Regexp.new(/^(?:[^\u0000\uD800-\uDFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF])+$/)
|
|
232
|
-
if !@external_payment_id.nil? && @external_payment_id !~ pattern
|
|
233
|
-
invalid_properties.push("invalid value for \"external_payment_id\", must conform to the pattern #{pattern}.")
|
|
234
|
-
end
|
|
235
|
-
|
|
236
226
|
if !@paid_amount_cents.nil? && @paid_amount_cents > 2147483647
|
|
237
227
|
invalid_properties.push('invalid value for "paid_amount_cents", must be smaller than or equal to 2147483647.')
|
|
238
228
|
end
|
|
@@ -282,11 +272,6 @@ module SeatsChart
|
|
|
282
272
|
invalid_properties.push('invalid value for "user_id", the character length must be great than or equal to 1.')
|
|
283
273
|
end
|
|
284
274
|
|
|
285
|
-
pattern = Regexp.new(/^(?:[^\u0000\uD800-\uDFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF])+$/)
|
|
286
|
-
if @user_id !~ pattern
|
|
287
|
-
invalid_properties.push("invalid value for \"user_id\", must conform to the pattern #{pattern}.")
|
|
288
|
-
end
|
|
289
|
-
|
|
290
275
|
if !@hold_token.nil? && @hold_token.to_s.length > 36
|
|
291
276
|
invalid_properties.push('invalid value for "hold_token", the character length must be smaller than or equal to 36.')
|
|
292
277
|
end
|
|
@@ -311,11 +296,6 @@ module SeatsChart
|
|
|
311
296
|
invalid_properties.push('invalid value for "ticket_buyer_id", the character length must be great than or equal to 1.')
|
|
312
297
|
end
|
|
313
298
|
|
|
314
|
-
pattern = Regexp.new(/^(?:[^\u0000-\u001F\u007F\uD800-\uDFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF])+$/)
|
|
315
|
-
if !@ticket_buyer_id.nil? && @ticket_buyer_id !~ pattern
|
|
316
|
-
invalid_properties.push("invalid value for \"ticket_buyer_id\", must conform to the pattern #{pattern}.")
|
|
317
|
-
end
|
|
318
|
-
|
|
319
299
|
invalid_properties
|
|
320
300
|
end
|
|
321
301
|
|
|
@@ -327,10 +307,8 @@ module SeatsChart
|
|
|
327
307
|
return false unless scope_validator.valid?(@scope)
|
|
328
308
|
return false if !@external_order_id.nil? && @external_order_id.to_s.length > 255
|
|
329
309
|
return false if !@external_order_id.nil? && @external_order_id.to_s.length < 1
|
|
330
|
-
return false if !@external_order_id.nil? && @external_order_id !~ Regexp.new(/^(?:[^\u0000\uD800-\uDFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF])+$/)
|
|
331
310
|
return false if !@external_payment_id.nil? && @external_payment_id.to_s.length > 255
|
|
332
311
|
return false if !@external_payment_id.nil? && @external_payment_id.to_s.length < 1
|
|
333
|
-
return false if !@external_payment_id.nil? && @external_payment_id !~ Regexp.new(/^(?:[^\u0000\uD800-\uDFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF])+$/)
|
|
334
312
|
return false if !@paid_amount_cents.nil? && @paid_amount_cents > 2147483647
|
|
335
313
|
return false if !@paid_amount_cents.nil? && @paid_amount_cents < 0
|
|
336
314
|
return false if !@paid_currency.nil? && @paid_currency !~ Regexp.new(/^[A-Z]{3}$/)
|
|
@@ -343,14 +321,12 @@ module SeatsChart
|
|
|
343
321
|
return false if @user_id.nil?
|
|
344
322
|
return false if @user_id.to_s.length > 256
|
|
345
323
|
return false if @user_id.to_s.length < 1
|
|
346
|
-
return false if @user_id !~ Regexp.new(/^(?:[^\u0000\uD800-\uDFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF])+$/)
|
|
347
324
|
return false if !@hold_token.nil? && @hold_token.to_s.length > 36
|
|
348
325
|
return false if !@hold_token.nil? && @hold_token.to_s.length < 36
|
|
349
326
|
return false if !@channel.nil? && @channel.to_s.length > 32
|
|
350
327
|
return false if !@channel.nil? && @channel.to_s.length < 1
|
|
351
328
|
return false if !@ticket_buyer_id.nil? && @ticket_buyer_id.to_s.length > 256
|
|
352
329
|
return false if !@ticket_buyer_id.nil? && @ticket_buyer_id.to_s.length < 1
|
|
353
|
-
return false if !@ticket_buyer_id.nil? && @ticket_buyer_id !~ Regexp.new(/^(?:[^\u0000-\u001F\u007F\uD800-\uDFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF])+$/)
|
|
354
330
|
true
|
|
355
331
|
end
|
|
356
332
|
|
|
@@ -379,11 +355,6 @@ module SeatsChart
|
|
|
379
355
|
fail ArgumentError, 'invalid value for "external_order_id", the character length must be great than or equal to 1.'
|
|
380
356
|
end
|
|
381
357
|
|
|
382
|
-
pattern = Regexp.new(/^(?:[^\u0000\uD800-\uDFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF])+$/)
|
|
383
|
-
if external_order_id !~ pattern
|
|
384
|
-
fail ArgumentError, "invalid value for \"external_order_id\", must conform to the pattern #{pattern}."
|
|
385
|
-
end
|
|
386
|
-
|
|
387
358
|
@external_order_id = external_order_id
|
|
388
359
|
end
|
|
389
360
|
|
|
@@ -402,11 +373,6 @@ module SeatsChart
|
|
|
402
373
|
fail ArgumentError, 'invalid value for "external_payment_id", the character length must be great than or equal to 1.'
|
|
403
374
|
end
|
|
404
375
|
|
|
405
|
-
pattern = Regexp.new(/^(?:[^\u0000\uD800-\uDFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF])+$/)
|
|
406
|
-
if external_payment_id !~ pattern
|
|
407
|
-
fail ArgumentError, "invalid value for \"external_payment_id\", must conform to the pattern #{pattern}."
|
|
408
|
-
end
|
|
409
|
-
|
|
410
376
|
@external_payment_id = external_payment_id
|
|
411
377
|
end
|
|
412
378
|
|
|
@@ -494,11 +460,6 @@ module SeatsChart
|
|
|
494
460
|
fail ArgumentError, 'invalid value for "user_id", the character length must be great than or equal to 1.'
|
|
495
461
|
end
|
|
496
462
|
|
|
497
|
-
pattern = Regexp.new(/^(?:[^\u0000\uD800-\uDFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF])+$/)
|
|
498
|
-
if user_id !~ pattern
|
|
499
|
-
fail ArgumentError, "invalid value for \"user_id\", must conform to the pattern #{pattern}."
|
|
500
|
-
end
|
|
501
|
-
|
|
502
463
|
@user_id = user_id
|
|
503
464
|
end
|
|
504
465
|
|
|
@@ -553,11 +514,6 @@ module SeatsChart
|
|
|
553
514
|
fail ArgumentError, 'invalid value for "ticket_buyer_id", the character length must be great than or equal to 1.'
|
|
554
515
|
end
|
|
555
516
|
|
|
556
|
-
pattern = Regexp.new(/^(?:[^\u0000-\u001F\u007F\uD800-\uDFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF])+$/)
|
|
557
|
-
if ticket_buyer_id !~ pattern
|
|
558
|
-
fail ArgumentError, "invalid value for \"ticket_buyer_id\", must conform to the pattern #{pattern}."
|
|
559
|
-
end
|
|
560
|
-
|
|
561
517
|
@ticket_buyer_id = ticket_buyer_id
|
|
562
518
|
end
|
|
563
519
|
|
|
@@ -135,11 +135,6 @@ module SeatsChart
|
|
|
135
135
|
invalid_properties.push('invalid value for "user_id", the character length must be great than or equal to 1.')
|
|
136
136
|
end
|
|
137
137
|
|
|
138
|
-
pattern = Regexp.new(/^(?:[^\u0000\uD800-\uDFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF])+$/)
|
|
139
|
-
if @user_id !~ pattern
|
|
140
|
-
invalid_properties.push("invalid value for \"user_id\", must conform to the pattern #{pattern}.")
|
|
141
|
-
end
|
|
142
|
-
|
|
143
138
|
if !@hold_token.nil? && @hold_token.to_s.length > 36
|
|
144
139
|
invalid_properties.push('invalid value for "hold_token", the character length must be smaller than or equal to 36.')
|
|
145
140
|
end
|
|
@@ -164,7 +159,6 @@ module SeatsChart
|
|
|
164
159
|
return false if @user_id.nil?
|
|
165
160
|
return false if @user_id.to_s.length > 256
|
|
166
161
|
return false if @user_id.to_s.length < 1
|
|
167
|
-
return false if @user_id !~ Regexp.new(/^(?:[^\u0000\uD800-\uDFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF])+$/)
|
|
168
162
|
return false if !@hold_token.nil? && @hold_token.to_s.length > 36
|
|
169
163
|
return false if !@hold_token.nil? && @hold_token.to_s.length < 36
|
|
170
164
|
true
|
|
@@ -221,11 +215,6 @@ module SeatsChart
|
|
|
221
215
|
fail ArgumentError, 'invalid value for "user_id", the character length must be great than or equal to 1.'
|
|
222
216
|
end
|
|
223
217
|
|
|
224
|
-
pattern = Regexp.new(/^(?:[^\u0000\uD800-\uDFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF])+$/)
|
|
225
|
-
if user_id !~ pattern
|
|
226
|
-
fail ArgumentError, "invalid value for \"user_id\", must conform to the pattern #{pattern}."
|
|
227
|
-
end
|
|
228
|
-
|
|
229
218
|
@user_id = user_id
|
|
230
219
|
end
|
|
231
220
|
|
|
@@ -181,11 +181,6 @@ module SeatsChart
|
|
|
181
181
|
invalid_properties.push('invalid value for "user_id", the character length must be great than or equal to 1.')
|
|
182
182
|
end
|
|
183
183
|
|
|
184
|
-
pattern = Regexp.new(/^(?:[^\u0000\uD800-\uDFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF])+$/)
|
|
185
|
-
if @user_id !~ pattern
|
|
186
|
-
invalid_properties.push("invalid value for \"user_id\", must conform to the pattern #{pattern}.")
|
|
187
|
-
end
|
|
188
|
-
|
|
189
184
|
if !@channel.nil? && @channel.to_s.length > 32
|
|
190
185
|
invalid_properties.push('invalid value for "channel", the character length must be smaller than or equal to 32.')
|
|
191
186
|
end
|
|
@@ -226,11 +221,6 @@ module SeatsChart
|
|
|
226
221
|
invalid_properties.push('invalid value for "ticket_buyer_id", the character length must be great than or equal to 1.')
|
|
227
222
|
end
|
|
228
223
|
|
|
229
|
-
pattern = Regexp.new(/^(?:[^\u0000-\u001F\u007F\uD800-\uDFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF])+$/)
|
|
230
|
-
if !@ticket_buyer_id.nil? && @ticket_buyer_id !~ pattern
|
|
231
|
-
invalid_properties.push("invalid value for \"ticket_buyer_id\", must conform to the pattern #{pattern}.")
|
|
232
|
-
end
|
|
233
|
-
|
|
234
224
|
invalid_properties
|
|
235
225
|
end
|
|
236
226
|
|
|
@@ -247,7 +237,6 @@ module SeatsChart
|
|
|
247
237
|
return false if @user_id.nil?
|
|
248
238
|
return false if @user_id.to_s.length > 256
|
|
249
239
|
return false if @user_id.to_s.length < 1
|
|
250
|
-
return false if @user_id !~ Regexp.new(/^(?:[^\u0000\uD800-\uDFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF])+$/)
|
|
251
240
|
return false if !@channel.nil? && @channel.to_s.length > 32
|
|
252
241
|
return false if !@channel.nil? && @channel.to_s.length < 1
|
|
253
242
|
return false if !@season_id.nil? && @season_id.to_s.length > 36
|
|
@@ -258,7 +247,6 @@ module SeatsChart
|
|
|
258
247
|
return false if !@hold_token.nil? && @hold_token.to_s.length < 36
|
|
259
248
|
return false if !@ticket_buyer_id.nil? && @ticket_buyer_id.to_s.length > 256
|
|
260
249
|
return false if !@ticket_buyer_id.nil? && @ticket_buyer_id.to_s.length < 1
|
|
261
|
-
return false if !@ticket_buyer_id.nil? && @ticket_buyer_id !~ Regexp.new(/^(?:[^\u0000-\u001F\u007F\uD800-\uDFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF])+$/)
|
|
262
250
|
true
|
|
263
251
|
end
|
|
264
252
|
|
|
@@ -313,11 +301,6 @@ module SeatsChart
|
|
|
313
301
|
fail ArgumentError, 'invalid value for "user_id", the character length must be great than or equal to 1.'
|
|
314
302
|
end
|
|
315
303
|
|
|
316
|
-
pattern = Regexp.new(/^(?:[^\u0000\uD800-\uDFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF])+$/)
|
|
317
|
-
if user_id !~ pattern
|
|
318
|
-
fail ArgumentError, "invalid value for \"user_id\", must conform to the pattern #{pattern}."
|
|
319
|
-
end
|
|
320
|
-
|
|
321
304
|
@user_id = user_id
|
|
322
305
|
end
|
|
323
306
|
|
|
@@ -408,11 +391,6 @@ module SeatsChart
|
|
|
408
391
|
fail ArgumentError, 'invalid value for "ticket_buyer_id", the character length must be great than or equal to 1.'
|
|
409
392
|
end
|
|
410
393
|
|
|
411
|
-
pattern = Regexp.new(/^(?:[^\u0000-\u001F\u007F\uD800-\uDFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF])+$/)
|
|
412
|
-
if ticket_buyer_id !~ pattern
|
|
413
|
-
fail ArgumentError, "invalid value for \"ticket_buyer_id\", must conform to the pattern #{pattern}."
|
|
414
|
-
end
|
|
415
|
-
|
|
416
394
|
@ticket_buyer_id = ticket_buyer_id
|
|
417
395
|
end
|
|
418
396
|
|
|
@@ -93,11 +93,6 @@ module SeatsChart
|
|
|
93
93
|
invalid_properties.push('invalid value for "ticket_buyer_id", the character length must be great than or equal to 1.')
|
|
94
94
|
end
|
|
95
95
|
|
|
96
|
-
pattern = Regexp.new(/^(?:[^\u0000-\u001F\u007F\uD800-\uDFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF])+$/)
|
|
97
|
-
if !@ticket_buyer_id.nil? && @ticket_buyer_id !~ pattern
|
|
98
|
-
invalid_properties.push("invalid value for \"ticket_buyer_id\", must conform to the pattern #{pattern}.")
|
|
99
|
-
end
|
|
100
|
-
|
|
101
96
|
invalid_properties
|
|
102
97
|
end
|
|
103
98
|
|
|
@@ -109,7 +104,6 @@ module SeatsChart
|
|
|
109
104
|
return false if !@ttl_seconds.nil? && @ttl_seconds < 60
|
|
110
105
|
return false if !@ticket_buyer_id.nil? && @ticket_buyer_id.to_s.length > 256
|
|
111
106
|
return false if !@ticket_buyer_id.nil? && @ticket_buyer_id.to_s.length < 1
|
|
112
|
-
return false if !@ticket_buyer_id.nil? && @ticket_buyer_id !~ Regexp.new(/^(?:[^\u0000-\u001F\u007F\uD800-\uDFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF])+$/)
|
|
113
107
|
true
|
|
114
108
|
end
|
|
115
109
|
|
|
@@ -146,11 +140,6 @@ module SeatsChart
|
|
|
146
140
|
fail ArgumentError, 'invalid value for "ticket_buyer_id", the character length must be great than or equal to 1.'
|
|
147
141
|
end
|
|
148
142
|
|
|
149
|
-
pattern = Regexp.new(/^(?:[^\u0000-\u001F\u007F\uD800-\uDFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF])+$/)
|
|
150
|
-
if ticket_buyer_id !~ pattern
|
|
151
|
-
fail ArgumentError, "invalid value for \"ticket_buyer_id\", must conform to the pattern #{pattern}."
|
|
152
|
-
end
|
|
153
|
-
|
|
154
143
|
@ticket_buyer_id = ticket_buyer_id
|
|
155
144
|
end
|
|
156
145
|
|
|
@@ -19,7 +19,7 @@ module SeatsChart
|
|
|
19
19
|
|
|
20
20
|
attr_accessor :is_active
|
|
21
21
|
|
|
22
|
-
# Subscribed event types: `[\"*\"]` (default) for every type, or a list of `reservations.confirmed`, `holds.created`, `holds.released`, `ga.confirmed`, `ga.released`, `objects.updated`, `season.objects.updated`, `hold.expired`, `event.created`, `event.updated`, `event.deleted`, `chart.published`, `lots.switched`, `chart.created`, `event.for_sale_changed`, `event.channels_updated`, `event.categories_updated`, `event.table_booking_changed`.
|
|
22
|
+
# Subscribed event types: `[\"*\"]` (default) for every type, or a list of `reservations.confirmed`, `holds.created`, `holds.released`, `ga.confirmed`, `ga.released`, `objects.updated`, `season.objects.updated`, `hold.expired`, `event.created`, `event.updated`, `event.deleted`, `chart.published`, `lots.switched`, `chart.created`, `event.for_sale_changed`, `event.channels_updated`, `event.categories_updated`, `event.table_booking_changed`, `event.listings_updated`. Seats.io-named aliases (`event.for.sale.config.updated`, `event.channels.updated`, `event.categories.updated`, `event.table.booking.config.updated`) are opt-in: listed explicitly, the endpoint also receives the aliased event under that name (same payload, `type` = the alias); `[\"*\"]` never includes them.
|
|
23
23
|
attr_accessor :event_types
|
|
24
24
|
|
|
25
25
|
# Attribute mapping from ruby-style variable name to JSON key.
|