seatschart 0.1.1 → 0.3.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 +191 -16
- data/lib/seatschart/api/audit_api.rb +2 -2
- data/lib/seatschart/api/charts_api.rb +808 -75
- data/lib/seatschart/api/embed_api.rb +18 -7
- data/lib/seatschart/api/embed_origins_api.rb +63 -2
- data/lib/seatschart/api/event_log_api.rb +2 -2
- data/lib/seatschart/api/events_api.rb +1594 -112
- data/lib/seatschart/api/health_api.rb +244 -0
- data/lib/seatschart/api/listings_api.rb +884 -0
- data/lib/seatschart/api/map_designer_api.rb +11 -9
- data/lib/seatschart/api/object_status_api.rb +2 -2
- data/lib/seatschart/api/public_api.rb +350 -0
- data/lib/seatschart/api/sandboxes_api.rb +672 -0
- data/lib/seatschart/api/seasons_api.rb +455 -42
- data/lib/seatschart/api/seats_api.rb +13 -32
- data/lib/seatschart/api/usage_api.rb +20 -17
- data/lib/seatschart/api/webhooks_api.rb +2 -2
- data/lib/seatschart/api/workspace_api.rb +306 -20
- data/lib/seatschart/models/api_error.rb +307 -0
- data/lib/seatschart/models/api_error_params_value.rb +105 -0
- data/lib/seatschart/models/delete_api_sandboxes_by_sandbox_id200_response.rb +255 -0
- data/lib/seatschart/models/get_api_monitoring_requests200_response.rb +78 -4
- 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 +38 -4
- data/lib/seatschart/models/get_api_sandboxes200_response.rb +239 -0
- data/lib/seatschart/models/get_api_sandboxes200_response_items_inner.rb +431 -0
- data/lib/seatschart/models/get_api_sandboxes200_response_items_inner_rate_limits.rb +270 -0
- data/lib/seatschart/models/get_api_sandboxes200_response_items_inner_usage.rb +287 -0
- data/lib/seatschart/models/get_api_status200_response.rb +387 -0
- data/lib/seatschart/models/get_api_status200_response_components_inner.rb +330 -0
- data/lib/seatschart/models/get_api_status200_response_components_inner_days_inner.rb +301 -0
- data/lib/seatschart/models/get_api_status200_response_incidents_inner.rb +374 -0
- data/lib/seatschart/models/get_api_status200_response_maintenance_inner.rb +350 -0
- data/lib/seatschart/models/get_api_status503_response.rb +271 -0
- data/lib/seatschart/models/get_api_workspace_buyer_extra_data200_response.rb +241 -0
- data/lib/seatschart/models/get_api_workspace_defaults200_response.rb +254 -0
- data/lib/seatschart/models/get_api_workspace_defaults200_response_renderer.rb +246 -0
- data/lib/seatschart/models/get_api_workspace_defaults200_response_renderer_built_in.rb +270 -0
- 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/get_api_workspaces200_response_items_inner.rb +34 -5
- data/lib/seatschart/models/patch_api_events_by_event_id_listings_by_listing_id_request.rb +379 -0
- data/lib/seatschart/models/patch_api_events_by_event_id_request.rb +16 -6
- 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 +41 -5
- data/lib/seatschart/models/patch_api_webhooks_by_id_request.rb +1 -1
- data/lib/seatschart/models/patch_api_workspace_chart_validation_request_severities.rb +25 -4
- data/lib/seatschart/models/patch_api_workspace_defaults_request.rb +224 -0
- data/lib/seatschart/models/patch_api_workspace_defaults_request_renderer.rb +249 -0
- data/lib/seatschart/models/patch_api_workspace_settings_request.rb +18 -7
- data/lib/seatschart/models/post_api_charts_by_chart_id_actions_copy_to_workspace_request.rb +39 -1
- data/lib/seatschart/models/post_api_charts_by_chart_id_actions_validate_request.rb +1 -0
- 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_charts_by_chart_id_map_publish422_response_issues_inner.rb +64 -6
- data/lib/seatschart/models/post_api_charts_by_chart_id_map_publish_request.rb +1 -1
- data/lib/seatschart/models/post_api_embed_tokens_request.rb +18 -15
- data/lib/seatschart/models/post_api_embed_tokens_request_safe_mode_options.rb +226 -0
- 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_actions_edit_for_sale_config_request.rb +251 -0
- data/lib/seatschart/models/post_api_events_actions_edit_for_sale_config_request_events_inner.rb +322 -0
- data/lib/seatschart/models/post_api_events_bulk_request_events_inner.rb +42 -1
- 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_edit_for_sale_config_request.rb +277 -0
- data/lib/seatschart/models/post_api_events_by_event_id_actions_edit_for_sale_config_request_for_sale_inner.rb +319 -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_events_by_event_id_map_publish_request.rb +215 -0
- data/lib/seatschart/models/post_api_events_request.rb +42 -1
- data/lib/seatschart/models/{patch_api_events_by_event_id_request_categories_inner.rb → post_api_events_request_categories_inner.rb} +3 -3
- data/lib/seatschart/models/post_api_extract_seats200_response.rb +459 -0
- data/lib/seatschart/models/post_api_extract_seats200_response_seats_inner.rb +323 -0
- data/lib/seatschart/models/post_api_extract_seats200_response_suggested_inner.rb +320 -0
- data/lib/seatschart/models/post_api_extract_seats_request.rb +124 -4
- data/lib/seatschart/models/post_api_extract_seats_request_examples.rb +105 -0
- data/lib/seatschart/models/post_api_extract_seats_request_examples_any_of_inner.rb +293 -0
- data/lib/seatschart/models/post_api_extract_seats_request_negatives.rb +105 -0
- data/lib/seatschart/models/post_api_extract_seats_request_region.rb +105 -0
- data/lib/seatschart/models/post_api_extract_seats_request_region_any_of.rb +363 -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_sandboxes201_response.rb +245 -0
- data/lib/seatschart/models/post_api_sandboxes201_response_admin_key.rb +286 -0
- data/lib/seatschart/models/post_api_sandboxes201_response_copied.rb +313 -0
- data/lib/seatschart/models/post_api_sandboxes201_response_copied_charts_inner.rb +281 -0
- data/lib/seatschart/models/post_api_sandboxes201_response_copied_events_inner.rb +281 -0
- data/lib/seatschart/models/post_api_sandboxes201_response_copied_events_with_own_map_inner.rb +265 -0
- data/lib/seatschart/models/post_api_sandboxes201_response_copied_key_conflicts_inner.rb +287 -0
- data/lib/seatschart/models/post_api_sandboxes201_response_copied_seasons_inner.rb +312 -0
- data/lib/seatschart/models/post_api_sandboxes_by_sandbox_id_actions_copy_from_production200_response.rb +313 -0
- data/lib/seatschart/models/post_api_sandboxes_by_sandbox_id_actions_copy_from_production_request.rb +255 -0
- data/lib/seatschart/models/post_api_sandboxes_by_sandbox_id_actions_join200_response.rb +271 -0
- data/lib/seatschart/models/post_api_sandboxes_by_sandbox_id_actions_reset200_response.rb +268 -0
- data/lib/seatschart/models/post_api_sandboxes_by_sandbox_id_actions_reset_request.rb +225 -0
- data/lib/seatschart/models/post_api_sandboxes_by_sandbox_id_admin_key201_response.rb +253 -0
- data/lib/seatschart/models/post_api_sandboxes_by_sandbox_id_admin_key201_response_api_key.rb +286 -0
- data/lib/seatschart/models/post_api_sandboxes_by_sandbox_id_admin_key_request.rb +252 -0
- data/lib/seatschart/models/post_api_sandboxes_request.rb +319 -0
- 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 +40 -4
- data/lib/seatschart/models/post_api_seats_best_available_request.rb +0 -11
- data/lib/seatschart/models/post_api_seats_confirm_request.rb +5 -49
- data/lib/seatschart/models/post_api_seats_release_request.rb +5 -16
- data/lib/seatschart/models/post_api_seats_reserve_request.rb +5 -27
- 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/post_api_workspaces_request.rb +1 -1
- data/lib/seatschart/models/put_api_charts_by_chart_id_map_draft_request.rb +349 -0
- data/lib/seatschart/models/put_api_workspace_buyer_extra_data_request.rb +260 -0
- data/lib/seatschart/models/put_internal_status_notices_request.rb +242 -0
- data/lib/seatschart/models/put_internal_status_notices_request_notices_inner.rb +445 -0
- data/lib/seatschart/retry.rb +106 -7
- data/lib/seatschart/version.rb +1 -1
- data/lib/seatschart.rb +69 -2
- metadata +71 -4
- data/lib/seatschart/api/default_api.rb +0 -763
|
@@ -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
|
|
@@ -262,8 +252,8 @@ module SeatsChart
|
|
|
262
252
|
invalid_properties.push('invalid value for "seat_ids", seat_ids cannot be nil.')
|
|
263
253
|
end
|
|
264
254
|
|
|
265
|
-
if @seat_ids.length >
|
|
266
|
-
invalid_properties.push('invalid value for "seat_ids", number of items must be less than or equal to
|
|
255
|
+
if @seat_ids.length > 1000
|
|
256
|
+
invalid_properties.push('invalid value for "seat_ids", number of items must be less than or equal to 1000.')
|
|
267
257
|
end
|
|
268
258
|
|
|
269
259
|
if @seat_ids.length < 1
|
|
@@ -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}$/)
|
|
@@ -338,19 +316,17 @@ module SeatsChart
|
|
|
338
316
|
return false if @event_id.to_s.length > 36
|
|
339
317
|
return false if @event_id.to_s.length < 36
|
|
340
318
|
return false if @seat_ids.nil?
|
|
341
|
-
return false if @seat_ids.length >
|
|
319
|
+
return false if @seat_ids.length > 1000
|
|
342
320
|
return false if @seat_ids.length < 1
|
|
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
|
|
|
@@ -468,8 +434,8 @@ module SeatsChart
|
|
|
468
434
|
fail ArgumentError, 'seat_ids cannot be nil'
|
|
469
435
|
end
|
|
470
436
|
|
|
471
|
-
if seat_ids.length >
|
|
472
|
-
fail ArgumentError, 'invalid value for "seat_ids", number of items must be less than or equal to
|
|
437
|
+
if seat_ids.length > 1000
|
|
438
|
+
fail ArgumentError, 'invalid value for "seat_ids", number of items must be less than or equal to 1000.'
|
|
473
439
|
end
|
|
474
440
|
|
|
475
441
|
if seat_ids.length < 1
|
|
@@ -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
|
|
|
@@ -115,8 +115,8 @@ module SeatsChart
|
|
|
115
115
|
invalid_properties.push('invalid value for "seat_ids", seat_ids cannot be nil.')
|
|
116
116
|
end
|
|
117
117
|
|
|
118
|
-
if @seat_ids.length >
|
|
119
|
-
invalid_properties.push('invalid value for "seat_ids", number of items must be less than or equal to
|
|
118
|
+
if @seat_ids.length > 1000
|
|
119
|
+
invalid_properties.push('invalid value for "seat_ids", number of items must be less than or equal to 1000.')
|
|
120
120
|
end
|
|
121
121
|
|
|
122
122
|
if @seat_ids.length < 1
|
|
@@ -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
|
|
@@ -159,12 +154,11 @@ module SeatsChart
|
|
|
159
154
|
return false if @event_id.to_s.length > 36
|
|
160
155
|
return false if @event_id.to_s.length < 36
|
|
161
156
|
return false if @seat_ids.nil?
|
|
162
|
-
return false if @seat_ids.length >
|
|
157
|
+
return false if @seat_ids.length > 1000
|
|
163
158
|
return false if @seat_ids.length < 1
|
|
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
|
|
@@ -195,8 +189,8 @@ module SeatsChart
|
|
|
195
189
|
fail ArgumentError, 'seat_ids cannot be nil'
|
|
196
190
|
end
|
|
197
191
|
|
|
198
|
-
if seat_ids.length >
|
|
199
|
-
fail ArgumentError, 'invalid value for "seat_ids", number of items must be less than or equal to
|
|
192
|
+
if seat_ids.length > 1000
|
|
193
|
+
fail ArgumentError, 'invalid value for "seat_ids", number of items must be less than or equal to 1000.'
|
|
200
194
|
end
|
|
201
195
|
|
|
202
196
|
if seat_ids.length < 1
|
|
@@ -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
|
|
|
@@ -161,8 +161,8 @@ module SeatsChart
|
|
|
161
161
|
invalid_properties.push('invalid value for "seat_ids", seat_ids cannot be nil.')
|
|
162
162
|
end
|
|
163
163
|
|
|
164
|
-
if @seat_ids.length >
|
|
165
|
-
invalid_properties.push('invalid value for "seat_ids", number of items must be less than or equal to
|
|
164
|
+
if @seat_ids.length > 1000
|
|
165
|
+
invalid_properties.push('invalid value for "seat_ids", number of items must be less than or equal to 1000.')
|
|
166
166
|
end
|
|
167
167
|
|
|
168
168
|
if @seat_ids.length < 1
|
|
@@ -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
|
|
|
@@ -242,12 +232,11 @@ module SeatsChart
|
|
|
242
232
|
return false if @event_id.to_s.length > 36
|
|
243
233
|
return false if @event_id.to_s.length < 36
|
|
244
234
|
return false if @seat_ids.nil?
|
|
245
|
-
return false if @seat_ids.length >
|
|
235
|
+
return false if @seat_ids.length > 1000
|
|
246
236
|
return false if @seat_ids.length < 1
|
|
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
|
|
|
@@ -287,8 +275,8 @@ module SeatsChart
|
|
|
287
275
|
fail ArgumentError, 'seat_ids cannot be nil'
|
|
288
276
|
end
|
|
289
277
|
|
|
290
|
-
if seat_ids.length >
|
|
291
|
-
fail ArgumentError, 'invalid value for "seat_ids", number of items must be less than or equal to
|
|
278
|
+
if seat_ids.length > 1000
|
|
279
|
+
fail ArgumentError, 'invalid value for "seat_ids", number of items must be less than or equal to 1000.'
|
|
292
280
|
end
|
|
293
281
|
|
|
294
282
|
if seat_ids.length < 1
|
|
@@ -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.
|
|
@@ -17,7 +17,7 @@ module SeatsChart
|
|
|
17
17
|
class PostApiWorkspacesRequest
|
|
18
18
|
attr_accessor :display_name
|
|
19
19
|
|
|
20
|
-
# Create a
|
|
20
|
+
# Create a sandbox of the current workspace (prefer `POST /sandboxes`): never billed (usage shown, not counted), no chart/event caps, `sk_test_` API keys, a Sandbox ribbon for buyers. Permanent.
|
|
21
21
|
attr_accessor :is_test
|
|
22
22
|
|
|
23
23
|
# Test workspaces only: copy the current workspace's charts as unpublished drafts (up to 50, archived skipped). Default false.
|