seatschart 0.1.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 +7 -0
- data/LICENSE +21 -0
- data/README.md +552 -0
- data/lib/seatschart/api/api_keys_api.rb +364 -0
- data/lib/seatschart/api/assets_api.rb +95 -0
- data/lib/seatschart/api/audit_api.rb +88 -0
- data/lib/seatschart/api/auth_api.rb +1187 -0
- data/lib/seatschart/api/billing_api.rb +355 -0
- data/lib/seatschart/api/charts_api.rb +4195 -0
- data/lib/seatschart/api/default_api.rb +763 -0
- data/lib/seatschart/api/embed_api.rb +407 -0
- data/lib/seatschart/api/embed_origins_api.rb +281 -0
- data/lib/seatschart/api/event_log_api.rb +148 -0
- data/lib/seatschart/api/events_api.rb +6608 -0
- data/lib/seatschart/api/health_api.rb +77 -0
- data/lib/seatschart/api/map_designer_api.rb +135 -0
- data/lib/seatschart/api/object_status_api.rb +805 -0
- data/lib/seatschart/api/orders_api.rb +166 -0
- data/lib/seatschart/api/public_api.rb +455 -0
- data/lib/seatschart/api/quotes_api.rb +103 -0
- data/lib/seatschart/api/seasons_api.rb +5543 -0
- data/lib/seatschart/api/seats_api.rb +1103 -0
- data/lib/seatschart/api/sse_api.rb +83 -0
- data/lib/seatschart/api/team_api.rb +428 -0
- data/lib/seatschart/api/usage_api.rb +540 -0
- data/lib/seatschart/api/webhooks_api.rb +771 -0
- data/lib/seatschart/api/workspace_api.rb +1244 -0
- data/lib/seatschart/api_client.rb +394 -0
- data/lib/seatschart/api_error.rb +58 -0
- data/lib/seatschart/configuration.rb +316 -0
- data/lib/seatschart/models/delete_api_workspaces_by_workspace_id200_response.rb +283 -0
- data/lib/seatschart/models/get_api_charts_by_chart_id_versions200_response.rb +247 -0
- data/lib/seatschart/models/get_api_charts_by_chart_id_versions200_response_items_inner.rb +473 -0
- data/lib/seatschart/models/get_api_charts_by_chart_id_versions200_response_items_inner_published_by.rb +280 -0
- data/lib/seatschart/models/get_api_events_by_event_id_map_versions200_response.rb +247 -0
- data/lib/seatschart/models/get_api_events_by_event_id_map_versions200_response_items_inner.rb +444 -0
- data/lib/seatschart/models/get_api_events_by_event_id_seat_views200_response.rb +267 -0
- data/lib/seatschart/models/get_api_events_by_event_id_seat_views200_response_views_value.rb +273 -0
- data/lib/seatschart/models/get_api_events_by_event_id_seat_views404_response.rb +237 -0
- data/lib/seatschart/models/get_api_monitoring_requests200_response.rb +388 -0
- data/lib/seatschart/models/get_api_monitoring_requests200_response_lanes.rb +237 -0
- data/lib/seatschart/models/get_api_monitoring_requests200_response_lanes_sales.rb +256 -0
- data/lib/seatschart/models/get_api_monitoring_requests200_response_points_inner.rb +286 -0
- data/lib/seatschart/models/get_api_workspace_integration200_response.rb +287 -0
- data/lib/seatschart/models/get_api_workspace_settings200_response.rb +329 -0
- data/lib/seatschart/models/get_api_workspace_settings200_response_bounds.rb +237 -0
- data/lib/seatschart/models/get_api_workspace_settings200_response_bounds_hold_period_minutes.rb +237 -0
- data/lib/seatschart/models/get_api_workspace_settings200_response_effective.rb +269 -0
- data/lib/seatschart/models/get_api_workspace_settings200_response_overrides.rb +241 -0
- data/lib/seatschart/models/get_api_workspace_settings200_response_sources.rb +339 -0
- data/lib/seatschart/models/get_api_workspaces200_response.rb +223 -0
- data/lib/seatschart/models/get_api_workspaces200_response_items_inner.rb +423 -0
- data/lib/seatschart/models/patch_api_charts_by_chart_id_categories_by_category_id_request.rb +304 -0
- data/lib/seatschart/models/patch_api_charts_by_chart_id_request.rb +288 -0
- data/lib/seatschart/models/patch_api_events_by_event_id_inventory_channels_by_channel_key_id_request.rb +272 -0
- data/lib/seatschart/models/patch_api_events_by_event_id_request.rb +448 -0
- data/lib/seatschart/models/patch_api_events_by_event_id_request_categories_inner.rb +343 -0
- data/lib/seatschart/models/patch_api_events_by_event_id_request_table_booking_config.rb +266 -0
- data/lib/seatschart/models/patch_api_keys_by_id_request.rb +292 -0
- data/lib/seatschart/models/patch_api_seasons_by_season_id_events_by_event_id_request.rb +221 -0
- data/lib/seatschart/models/patch_api_seasons_by_season_id_request.rb +276 -0
- data/lib/seatschart/models/patch_api_team_members_by_user_id_request.rb +255 -0
- data/lib/seatschart/models/patch_api_webhooks_by_id_request.rb +291 -0
- data/lib/seatschart/models/patch_api_workspace_chart_validation_request.rb +224 -0
- data/lib/seatschart/models/patch_api_workspace_chart_validation_request_severities.rb +543 -0
- data/lib/seatschart/models/patch_api_workspace_integration_request.rb +257 -0
- data/lib/seatschart/models/patch_api_workspace_request.rb +249 -0
- data/lib/seatschart/models/patch_api_workspace_settings_request.rb +307 -0
- data/lib/seatschart/models/post_api_auth2fa_disable_request.rb +281 -0
- data/lib/seatschart/models/post_api_auth2fa_enable_request.rb +250 -0
- data/lib/seatschart/models/post_api_auth2fa_enroll_confirm_request.rb +295 -0
- data/lib/seatschart/models/post_api_auth2fa_enroll_start_request.rb +250 -0
- data/lib/seatschart/models/post_api_auth2fa_verify_request.rb +326 -0
- data/lib/seatschart/models/post_api_auth_accept_invite_request.rb +293 -0
- data/lib/seatschart/models/post_api_auth_login_request.rb +293 -0
- data/lib/seatschart/models/post_api_auth_logout_request.rb +242 -0
- data/lib/seatschart/models/post_api_auth_refresh_request.rb +292 -0
- data/lib/seatschart/models/post_api_auth_signup_request.rb +321 -0
- data/lib/seatschart/models/post_api_auth_switch_workspace_request.rb +249 -0
- data/lib/seatschart/models/post_api_billing_checkout_session_request.rb +249 -0
- data/lib/seatschart/models/post_api_billing_confirm_checkout_request.rb +249 -0
- data/lib/seatschart/models/post_api_charts_by_chart_id_actions_archive200_response.rb +221 -0
- data/lib/seatschart/models/post_api_charts_by_chart_id_actions_archive200_response_chart.rb +249 -0
- data/lib/seatschart/models/post_api_charts_by_chart_id_actions_copy_to_workspace_request.rb +287 -0
- data/lib/seatschart/models/post_api_charts_by_chart_id_actions_validate_request.rb +348 -0
- data/lib/seatschart/models/post_api_charts_by_chart_id_actions_validate_request_seats_inner.rb +555 -0
- data/lib/seatschart/models/post_api_charts_by_chart_id_actions_validate_request_seats_inner_accessibility.rb +356 -0
- data/lib/seatschart/models/post_api_charts_by_chart_id_categories_request.rb +361 -0
- data/lib/seatschart/models/post_api_charts_by_chart_id_categories_request_ticket_types_inner.rb +448 -0
- data/lib/seatschart/models/post_api_charts_by_chart_id_duplicate_request.rb +233 -0
- data/lib/seatschart/models/post_api_charts_by_chart_id_map_publish422_response.rb +289 -0
- data/lib/seatschart/models/post_api_charts_by_chart_id_map_publish422_response_issues_inner.rb +402 -0
- data/lib/seatschart/models/post_api_charts_by_chart_id_map_publish_request.rb +244 -0
- data/lib/seatschart/models/post_api_charts_by_chart_id_preview_link_request.rb +243 -0
- data/lib/seatschart/models/post_api_charts_by_chart_id_versions_by_version_actions_copy_request.rb +242 -0
- data/lib/seatschart/models/post_api_charts_request.rb +372 -0
- data/lib/seatschart/models/post_api_charts_request_categories_inner.rb +346 -0
- data/lib/seatschart/models/post_api_embed_origins_request.rb +249 -0
- data/lib/seatschart/models/post_api_embed_tokens_request.rb +394 -0
- data/lib/seatschart/models/post_api_events_actions_change_object_status_request.rb +251 -0
- data/lib/seatschart/models/post_api_events_actions_change_object_status_request_status_changes_inner.rb +737 -0
- data/lib/seatschart/models/post_api_events_actions_change_object_status_request_status_changes_inner_objects_inner.rb +104 -0
- data/lib/seatschart/models/post_api_events_actions_change_object_status_request_status_changes_inner_objects_inner_any_of.rb +335 -0
- data/lib/seatschart/models/post_api_events_bulk_request.rb +332 -0
- data/lib/seatschart/models/post_api_events_bulk_request_events_inner.rb +398 -0
- data/lib/seatschart/models/post_api_events_by_event_id_actions_change_object_status_request.rb +824 -0
- data/lib/seatschart/models/post_api_events_by_event_id_actions_override_season_status_request.rb +272 -0
- data/lib/seatschart/models/post_api_events_by_event_id_actions_update_extra_data_request.rb +260 -0
- data/lib/seatschart/models/post_api_events_by_event_id_actions_update_extra_data_request_objects_inner.rb +263 -0
- data/lib/seatschart/models/post_api_events_by_event_id_actions_use_season_status_request.rb +252 -0
- data/lib/seatschart/models/post_api_events_by_event_id_duplicate_request.rb +261 -0
- data/lib/seatschart/models/post_api_events_by_event_id_inventory_channels_assign_request.rb +321 -0
- data/lib/seatschart/models/post_api_events_by_event_id_inventory_channels_request.rb +323 -0
- data/lib/seatschart/models/post_api_events_by_event_id_inventory_for_sale_apply_request.rb +333 -0
- data/lib/seatschart/models/post_api_events_by_event_id_objects_actions_retrieve_request.rb +252 -0
- data/lib/seatschart/models/post_api_events_request.rb +502 -0
- data/lib/seatschart/models/post_api_events_request_category_overrides_value.rb +276 -0
- data/lib/seatschart/models/post_api_events_request_channels_inner.rb +360 -0
- data/lib/seatschart/models/post_api_events_request_for_sale_config.rb +295 -0
- data/lib/seatschart/models/post_api_events_request_table_booking_config.rb +267 -0
- data/lib/seatschart/models/post_api_extract_seats_request.rb +279 -0
- data/lib/seatschart/models/post_api_ga_confirm409_response.rb +271 -0
- data/lib/seatschart/models/post_api_ga_confirm_request.rb +687 -0
- data/lib/seatschart/models/post_api_ga_release_request.rb +385 -0
- data/lib/seatschart/models/post_api_ga_reserve_request.rb +527 -0
- data/lib/seatschart/models/post_api_hold_tokens_by_token_request.rb +249 -0
- data/lib/seatschart/models/post_api_hold_tokens_request.rb +391 -0
- data/lib/seatschart/models/post_api_keys_request.rb +299 -0
- data/lib/seatschart/models/post_api_orders_by_order_id_cancel_request.rb +249 -0
- data/lib/seatschart/models/post_api_quotes_request.rb +351 -0
- data/lib/seatschart/models/post_api_seasons_by_season_id_actions_add_events_request.rb +261 -0
- data/lib/seatschart/models/post_api_seasons_by_season_id_actions_create_events_request.rb +322 -0
- data/lib/seatschart/models/post_api_seasons_by_season_id_actions_create_events_request_events_inner.rb +289 -0
- data/lib/seatschart/models/post_api_seasons_by_season_id_actions_remove_events_request.rb +251 -0
- data/lib/seatschart/models/post_api_seasons_by_season_id_events_request.rb +267 -0
- data/lib/seatschart/models/post_api_seasons_by_season_id_inventory_sync_request.rb +235 -0
- data/lib/seatschart/models/post_api_seasons_by_season_id_partial_seasons_request.rb +279 -0
- data/lib/seatschart/models/post_api_seasons_request.rb +395 -0
- data/lib/seatschart/models/post_api_seats_best_available_request.rb +809 -0
- data/lib/seatschart/models/post_api_seats_confirm409_response.rb +271 -0
- data/lib/seatschart/models/post_api_seats_confirm_request.rb +711 -0
- data/lib/seatschart/models/post_api_seats_holds_renew_request.rb +249 -0
- data/lib/seatschart/models/post_api_seats_release_request.rb +387 -0
- data/lib/seatschart/models/post_api_seats_reserve_request.rb +561 -0
- data/lib/seatschart/models/post_api_team_invitations_request.rb +299 -0
- data/lib/seatschart/models/post_api_ticket_buyers_request.rb +252 -0
- data/lib/seatschart/models/post_api_viewer_tokens_request.rb +292 -0
- data/lib/seatschart/models/post_api_webhooks_request.rb +298 -0
- data/lib/seatschart/models/post_api_workspaces_request.rb +269 -0
- data/lib/seatschart/models/put_api_charts_by_chart_id_tags_request.rb +243 -0
- data/lib/seatschart/models/put_api_charts_by_chart_id_versions_by_version_thumbnail_request.rb +261 -0
- data/lib/seatschart/models/put_api_events_by_event_id_inventory_channels_definitions_request.rb +242 -0
- data/lib/seatschart/models/put_api_events_by_event_id_inventory_channels_definitions_request_channels_inner.rb +405 -0
- data/lib/seatschart/models/put_api_events_by_event_id_inventory_channels_request.rb +242 -0
- data/lib/seatschart/models/put_api_events_by_event_id_inventory_channels_request_assignments_inner.rb +320 -0
- data/lib/seatschart/models/put_api_events_by_event_id_inventory_for_sale_request.rb +333 -0
- data/lib/seatschart/models/put_api_events_by_event_id_pricing_request.rb +297 -0
- data/lib/seatschart/models/put_api_events_by_event_id_pricing_request_categories_inner.rb +295 -0
- data/lib/seatschart/models/put_api_events_by_event_id_pricing_request_categories_inner_ticket_types_inner.rb +425 -0
- data/lib/seatschart/models/put_api_events_by_event_id_sales_rules_request.rb +320 -0
- data/lib/seatschart/models/put_api_events_by_event_id_sales_rules_request_buyer_limit.rb +259 -0
- data/lib/seatschart/models/put_api_events_by_event_id_sales_rules_request_lot_plans_inner.rb +374 -0
- data/lib/seatschart/models/put_api_events_by_event_id_sales_rules_request_lot_plans_inner_lots_inner.rb +364 -0
- data/lib/seatschart/models/put_api_events_by_event_id_sales_rules_request_quotas_inner.rb +418 -0
- data/lib/seatschart/retry.rb +118 -0
- data/lib/seatschart/version.rb +15 -0
- data/lib/seatschart.rb +198 -0
- metadata +254 -0
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#SeatsChart API
|
|
3
|
+
|
|
4
|
+
#Seat inventory and locking API for B2B2C integrations. Authenticate using `x-api-key` (partners) or `Authorization: Bearer` with an HS256 JWT.
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
|
7
|
+
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.11.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'cgi'
|
|
14
|
+
|
|
15
|
+
module SeatsChart
|
|
16
|
+
class OrdersApi
|
|
17
|
+
attr_accessor :api_client
|
|
18
|
+
|
|
19
|
+
def initialize(api_client = ApiClient.default)
|
|
20
|
+
@api_client = api_client
|
|
21
|
+
end
|
|
22
|
+
# Read a durable confirmation and its requested items
|
|
23
|
+
# Partner API key with the `bookings` scope, or a dashboard session of a workspace member (any role); tenant-scoped. Returns the order status, `ticketBuyerId`, seat `items` and general-admission receipts (`gaItems`: quantity, `remaining` places after administrative releases, `cancelledAt`).
|
|
24
|
+
# @param order_id [String]
|
|
25
|
+
# @param [Hash] opts the optional parameters
|
|
26
|
+
# @return [nil]
|
|
27
|
+
def get_api_orders_by_order_id(order_id, opts = {})
|
|
28
|
+
get_api_orders_by_order_id_with_http_info(order_id, opts)
|
|
29
|
+
nil
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
# Read a durable confirmation and its requested items
|
|
33
|
+
# Partner API key with the `bookings` scope, or a dashboard session of a workspace member (any role); tenant-scoped. Returns the order status, `ticketBuyerId`, seat `items` and general-admission receipts (`gaItems`: quantity, `remaining` places after administrative releases, `cancelledAt`).
|
|
34
|
+
# @param order_id [String]
|
|
35
|
+
# @param [Hash] opts the optional parameters
|
|
36
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
37
|
+
def get_api_orders_by_order_id_with_http_info(order_id, opts = {})
|
|
38
|
+
if @api_client.config.debugging
|
|
39
|
+
@api_client.config.logger.debug 'Calling API: OrdersApi.get_api_orders_by_order_id ...'
|
|
40
|
+
end
|
|
41
|
+
# verify the required parameter 'order_id' is set
|
|
42
|
+
if @api_client.config.client_side_validation && order_id.nil?
|
|
43
|
+
fail ArgumentError, "Missing the required parameter 'order_id' when calling OrdersApi.get_api_orders_by_order_id"
|
|
44
|
+
end
|
|
45
|
+
# resource path
|
|
46
|
+
local_var_path = '/api/orders/{orderId}'.sub('{' + 'orderId' + '}', CGI.escape(order_id.to_s))
|
|
47
|
+
|
|
48
|
+
# query parameters
|
|
49
|
+
query_params = opts[:query_params] || {}
|
|
50
|
+
|
|
51
|
+
# header parameters
|
|
52
|
+
header_params = opts[:header_params] || {}
|
|
53
|
+
|
|
54
|
+
# form parameters
|
|
55
|
+
form_params = opts[:form_params] || {}
|
|
56
|
+
|
|
57
|
+
# http body (model)
|
|
58
|
+
post_body = opts[:debug_body]
|
|
59
|
+
|
|
60
|
+
# return_type
|
|
61
|
+
return_type = opts[:debug_return_type]
|
|
62
|
+
|
|
63
|
+
# auth_names
|
|
64
|
+
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth', 'BearerAuth']
|
|
65
|
+
|
|
66
|
+
new_options = opts.merge(
|
|
67
|
+
:operation => :"OrdersApi.get_api_orders_by_order_id",
|
|
68
|
+
:header_params => header_params,
|
|
69
|
+
:query_params => query_params,
|
|
70
|
+
:form_params => form_params,
|
|
71
|
+
:body => post_body,
|
|
72
|
+
:auth_names => auth_names,
|
|
73
|
+
:return_type => return_type
|
|
74
|
+
)
|
|
75
|
+
|
|
76
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
77
|
+
if @api_client.config.debugging
|
|
78
|
+
@api_client.config.logger.debug "API called: OrdersApi#get_api_orders_by_order_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
79
|
+
end
|
|
80
|
+
return data, status_code, headers
|
|
81
|
+
end
|
|
82
|
+
|
|
83
|
+
# Cancel the entire order and preserve its history; does not refund payment
|
|
84
|
+
# Requires `Idempotency-Key`. Partner API key with the `bookings` scope, or a dashboard session of a workspace admin / map editor; `reason` is stored on the cancelled reservations and receipts. Cancels every seat of the order (seats become free, or retired when not for sale) and, for **administrative bookings**, every general-admission receipt: its remaining places (quantity minus administrative releases) are returned to the area under the GA row lock in the same transaction (`gaAreas: [{ eventId, areaId, returnedPlaces }]`). Receipts stay as history with `cancelledAt`. Retrying a cancelled order returns it unchanged. Orders with non-administrative GA receipts, legacy or failed orders fail closed (409 `inventory_conflict`). Payment refunds are the integrator's responsibility.
|
|
85
|
+
# @param order_id [String]
|
|
86
|
+
# @param post_api_orders_by_order_id_cancel_request [PostApiOrdersByOrderIdCancelRequest]
|
|
87
|
+
# @param [Hash] opts the optional parameters
|
|
88
|
+
# @option opts [String] :idempotency_key Required on transactional routes. Reuse the same key for every retry of one logical operation; the API replays the stored outcome.
|
|
89
|
+
# @return [nil]
|
|
90
|
+
def post_api_orders_by_order_id_cancel(order_id, post_api_orders_by_order_id_cancel_request, opts = {})
|
|
91
|
+
post_api_orders_by_order_id_cancel_with_http_info(order_id, post_api_orders_by_order_id_cancel_request, opts)
|
|
92
|
+
nil
|
|
93
|
+
end
|
|
94
|
+
|
|
95
|
+
# Cancel the entire order and preserve its history; does not refund payment
|
|
96
|
+
# Requires `Idempotency-Key`. Partner API key with the `bookings` scope, or a dashboard session of a workspace admin / map editor; `reason` is stored on the cancelled reservations and receipts. Cancels every seat of the order (seats become free, or retired when not for sale) and, for **administrative bookings**, every general-admission receipt: its remaining places (quantity minus administrative releases) are returned to the area under the GA row lock in the same transaction (`gaAreas: [{ eventId, areaId, returnedPlaces }]`). Receipts stay as history with `cancelledAt`. Retrying a cancelled order returns it unchanged. Orders with non-administrative GA receipts, legacy or failed orders fail closed (409 `inventory_conflict`). Payment refunds are the integrator's responsibility.
|
|
97
|
+
# @param order_id [String]
|
|
98
|
+
# @param post_api_orders_by_order_id_cancel_request [PostApiOrdersByOrderIdCancelRequest]
|
|
99
|
+
# @param [Hash] opts the optional parameters
|
|
100
|
+
# @option opts [String] :idempotency_key Required on transactional routes. Reuse the same key for every retry of one logical operation; the API replays the stored outcome.
|
|
101
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
102
|
+
def post_api_orders_by_order_id_cancel_with_http_info(order_id, post_api_orders_by_order_id_cancel_request, opts = {})
|
|
103
|
+
if @api_client.config.debugging
|
|
104
|
+
@api_client.config.logger.debug 'Calling API: OrdersApi.post_api_orders_by_order_id_cancel ...'
|
|
105
|
+
end
|
|
106
|
+
# verify the required parameter 'order_id' is set
|
|
107
|
+
if @api_client.config.client_side_validation && order_id.nil?
|
|
108
|
+
fail ArgumentError, "Missing the required parameter 'order_id' when calling OrdersApi.post_api_orders_by_order_id_cancel"
|
|
109
|
+
end
|
|
110
|
+
# verify the required parameter 'post_api_orders_by_order_id_cancel_request' is set
|
|
111
|
+
if @api_client.config.client_side_validation && post_api_orders_by_order_id_cancel_request.nil?
|
|
112
|
+
fail ArgumentError, "Missing the required parameter 'post_api_orders_by_order_id_cancel_request' when calling OrdersApi.post_api_orders_by_order_id_cancel"
|
|
113
|
+
end
|
|
114
|
+
if @api_client.config.client_side_validation && !opts[:'idempotency_key'].nil? && opts[:'idempotency_key'].to_s.length > 255
|
|
115
|
+
fail ArgumentError, 'invalid value for "opts[:"idempotency_key"]" when calling OrdersApi.post_api_orders_by_order_id_cancel, the character length must be smaller than or equal to 255.'
|
|
116
|
+
end
|
|
117
|
+
|
|
118
|
+
if @api_client.config.client_side_validation && !opts[:'idempotency_key'].nil? && opts[:'idempotency_key'].to_s.length < 1
|
|
119
|
+
fail ArgumentError, 'invalid value for "opts[:"idempotency_key"]" when calling OrdersApi.post_api_orders_by_order_id_cancel, the character length must be great than or equal to 1.'
|
|
120
|
+
end
|
|
121
|
+
|
|
122
|
+
# resource path
|
|
123
|
+
local_var_path = '/api/orders/{orderId}/cancel'.sub('{' + 'orderId' + '}', CGI.escape(order_id.to_s))
|
|
124
|
+
|
|
125
|
+
# query parameters
|
|
126
|
+
query_params = opts[:query_params] || {}
|
|
127
|
+
|
|
128
|
+
# header parameters
|
|
129
|
+
header_params = opts[:header_params] || {}
|
|
130
|
+
# HTTP header 'Content-Type'
|
|
131
|
+
content_type = @api_client.select_header_content_type(['application/json', 'multipart/form-data', 'text/plain'])
|
|
132
|
+
if !content_type.nil?
|
|
133
|
+
header_params['Content-Type'] = content_type
|
|
134
|
+
end
|
|
135
|
+
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
|
136
|
+
|
|
137
|
+
# form parameters
|
|
138
|
+
form_params = opts[:form_params] || {}
|
|
139
|
+
|
|
140
|
+
# http body (model)
|
|
141
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(post_api_orders_by_order_id_cancel_request)
|
|
142
|
+
|
|
143
|
+
# return_type
|
|
144
|
+
return_type = opts[:debug_return_type]
|
|
145
|
+
|
|
146
|
+
# auth_names
|
|
147
|
+
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth', 'BearerAuth']
|
|
148
|
+
|
|
149
|
+
new_options = opts.merge(
|
|
150
|
+
:operation => :"OrdersApi.post_api_orders_by_order_id_cancel",
|
|
151
|
+
:header_params => header_params,
|
|
152
|
+
:query_params => query_params,
|
|
153
|
+
:form_params => form_params,
|
|
154
|
+
:body => post_body,
|
|
155
|
+
:auth_names => auth_names,
|
|
156
|
+
:return_type => return_type
|
|
157
|
+
)
|
|
158
|
+
|
|
159
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
160
|
+
if @api_client.config.debugging
|
|
161
|
+
@api_client.config.logger.debug "API called: OrdersApi#post_api_orders_by_order_id_cancel\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
162
|
+
end
|
|
163
|
+
return data, status_code, headers
|
|
164
|
+
end
|
|
165
|
+
end
|
|
166
|
+
end
|
|
@@ -0,0 +1,455 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#SeatsChart API
|
|
3
|
+
|
|
4
|
+
#Seat inventory and locking API for B2B2C integrations. Authenticate using `x-api-key` (partners) or `Authorization: Bearer` with an HS256 JWT.
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
|
7
|
+
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.11.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'cgi'
|
|
14
|
+
|
|
15
|
+
module SeatsChart
|
|
16
|
+
class PublicApi
|
|
17
|
+
attr_accessor :api_client
|
|
18
|
+
|
|
19
|
+
def initialize(api_client = ApiClient.default)
|
|
20
|
+
@api_client = api_client
|
|
21
|
+
end
|
|
22
|
+
# Public immutable geometry (CDN-cacheable)
|
|
23
|
+
# Content-addressed geometry (sha256 of the canonical JSON). br/gzip negotiated from Accept-Encoding. `Cache-Control: public, max-age=31536000, immutable`. Clients must verify the hash. Unknown key, event or hash: 404 no-store. `eventId` also accepts the event key. A deactivated workspace returns 403 `workspace_deactivated` (no-store). CDN cache key: path + Origin + normalized Accept-Encoding. Never forward or key on cookies, Authorization, x-api-key, x-channel-key or the query string.
|
|
24
|
+
# @param public_key [String] Workspace public key (`pub_…`).
|
|
25
|
+
# @param event_id [String]
|
|
26
|
+
# @param hash [String]
|
|
27
|
+
# @param [Hash] opts the optional parameters
|
|
28
|
+
# @return [nil]
|
|
29
|
+
def get_api_public_by_public_key_events_by_event_id_geometry_by_hash(public_key, event_id, hash, opts = {})
|
|
30
|
+
get_api_public_by_public_key_events_by_event_id_geometry_by_hash_with_http_info(public_key, event_id, hash, opts)
|
|
31
|
+
nil
|
|
32
|
+
end
|
|
33
|
+
|
|
34
|
+
# Public immutable geometry (CDN-cacheable)
|
|
35
|
+
# Content-addressed geometry (sha256 of the canonical JSON). br/gzip negotiated from Accept-Encoding. `Cache-Control: public, max-age=31536000, immutable`. Clients must verify the hash. Unknown key, event or hash: 404 no-store. `eventId` also accepts the event key. A deactivated workspace returns 403 `workspace_deactivated` (no-store). CDN cache key: path + Origin + normalized Accept-Encoding. Never forward or key on cookies, Authorization, x-api-key, x-channel-key or the query string.
|
|
36
|
+
# @param public_key [String] Workspace public key (`pub_…`).
|
|
37
|
+
# @param event_id [String]
|
|
38
|
+
# @param hash [String]
|
|
39
|
+
# @param [Hash] opts the optional parameters
|
|
40
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
41
|
+
def get_api_public_by_public_key_events_by_event_id_geometry_by_hash_with_http_info(public_key, event_id, hash, opts = {})
|
|
42
|
+
if @api_client.config.debugging
|
|
43
|
+
@api_client.config.logger.debug 'Calling API: PublicApi.get_api_public_by_public_key_events_by_event_id_geometry_by_hash ...'
|
|
44
|
+
end
|
|
45
|
+
# verify the required parameter 'public_key' is set
|
|
46
|
+
if @api_client.config.client_side_validation && public_key.nil?
|
|
47
|
+
fail ArgumentError, "Missing the required parameter 'public_key' when calling PublicApi.get_api_public_by_public_key_events_by_event_id_geometry_by_hash"
|
|
48
|
+
end
|
|
49
|
+
if @api_client.config.client_side_validation && public_key.to_s.length > 64
|
|
50
|
+
fail ArgumentError, 'invalid value for "public_key" when calling PublicApi.get_api_public_by_public_key_events_by_event_id_geometry_by_hash, the character length must be smaller than or equal to 64.'
|
|
51
|
+
end
|
|
52
|
+
|
|
53
|
+
if @api_client.config.client_side_validation && public_key.to_s.length < 1
|
|
54
|
+
fail ArgumentError, 'invalid value for "public_key" when calling PublicApi.get_api_public_by_public_key_events_by_event_id_geometry_by_hash, the character length must be great than or equal to 1.'
|
|
55
|
+
end
|
|
56
|
+
|
|
57
|
+
# verify the required parameter 'event_id' is set
|
|
58
|
+
if @api_client.config.client_side_validation && event_id.nil?
|
|
59
|
+
fail ArgumentError, "Missing the required parameter 'event_id' when calling PublicApi.get_api_public_by_public_key_events_by_event_id_geometry_by_hash"
|
|
60
|
+
end
|
|
61
|
+
# verify the required parameter 'hash' is set
|
|
62
|
+
if @api_client.config.client_side_validation && hash.nil?
|
|
63
|
+
fail ArgumentError, "Missing the required parameter 'hash' when calling PublicApi.get_api_public_by_public_key_events_by_event_id_geometry_by_hash"
|
|
64
|
+
end
|
|
65
|
+
pattern = Regexp.new(/^[a-f0-9]{64}$/)
|
|
66
|
+
if @api_client.config.client_side_validation && hash !~ pattern
|
|
67
|
+
fail ArgumentError, "invalid value for 'hash' when calling PublicApi.get_api_public_by_public_key_events_by_event_id_geometry_by_hash, must conform to the pattern #{pattern}."
|
|
68
|
+
end
|
|
69
|
+
|
|
70
|
+
# resource path
|
|
71
|
+
local_var_path = '/api/public/{publicKey}/events/{eventId}/geometry/{hash}'.sub('{' + 'publicKey' + '}', CGI.escape(public_key.to_s)).sub('{' + 'eventId' + '}', CGI.escape(event_id.to_s)).sub('{' + 'hash' + '}', CGI.escape(hash.to_s))
|
|
72
|
+
|
|
73
|
+
# query parameters
|
|
74
|
+
query_params = opts[:query_params] || {}
|
|
75
|
+
|
|
76
|
+
# header parameters
|
|
77
|
+
header_params = opts[:header_params] || {}
|
|
78
|
+
|
|
79
|
+
# form parameters
|
|
80
|
+
form_params = opts[:form_params] || {}
|
|
81
|
+
|
|
82
|
+
# http body (model)
|
|
83
|
+
post_body = opts[:debug_body]
|
|
84
|
+
|
|
85
|
+
# return_type
|
|
86
|
+
return_type = opts[:debug_return_type]
|
|
87
|
+
|
|
88
|
+
# auth_names
|
|
89
|
+
auth_names = opts[:debug_auth_names] || []
|
|
90
|
+
|
|
91
|
+
new_options = opts.merge(
|
|
92
|
+
:operation => :"PublicApi.get_api_public_by_public_key_events_by_event_id_geometry_by_hash",
|
|
93
|
+
:header_params => header_params,
|
|
94
|
+
:query_params => query_params,
|
|
95
|
+
:form_params => form_params,
|
|
96
|
+
:body => post_body,
|
|
97
|
+
:auth_names => auth_names,
|
|
98
|
+
:return_type => return_type
|
|
99
|
+
)
|
|
100
|
+
|
|
101
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
102
|
+
if @api_client.config.debugging
|
|
103
|
+
@api_client.config.logger.debug "API called: PublicApi#get_api_public_by_public_key_events_by_event_id_geometry_by_hash\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
104
|
+
end
|
|
105
|
+
return data, status_code, headers
|
|
106
|
+
end
|
|
107
|
+
|
|
108
|
+
# Public geometry manifest (CDN-cacheable)
|
|
109
|
+
# Published geometry pointer for the event. `geometryUrl` points at the public geometry path. ETag = mapRevision + currency. Includes the event catalog `currency` (ISO 4217, null for legacy events). `Cache-Control: public, max-age=5, stale-while-revalidate=30` (PUBLIC_MANIFEST_* env). A stale manifest is safe: the state carries mapRevision and clients switch geometry when it differs. Unknown key or event: 404 no-store. `eventId` also accepts the event key. A deactivated workspace returns 403 `workspace_deactivated` (no-store). CDN cache key: path + Origin + normalized Accept-Encoding. Never forward or key on cookies, Authorization, x-api-key, x-channel-key or the query string.
|
|
110
|
+
# @param public_key [String] Workspace public key (`pub_…`).
|
|
111
|
+
# @param event_id [String]
|
|
112
|
+
# @param [Hash] opts the optional parameters
|
|
113
|
+
# @return [nil]
|
|
114
|
+
def get_api_public_by_public_key_events_by_event_id_manifest(public_key, event_id, opts = {})
|
|
115
|
+
get_api_public_by_public_key_events_by_event_id_manifest_with_http_info(public_key, event_id, opts)
|
|
116
|
+
nil
|
|
117
|
+
end
|
|
118
|
+
|
|
119
|
+
# Public geometry manifest (CDN-cacheable)
|
|
120
|
+
# Published geometry pointer for the event. `geometryUrl` points at the public geometry path. ETag = mapRevision + currency. Includes the event catalog `currency` (ISO 4217, null for legacy events). `Cache-Control: public, max-age=5, stale-while-revalidate=30` (PUBLIC_MANIFEST_* env). A stale manifest is safe: the state carries mapRevision and clients switch geometry when it differs. Unknown key or event: 404 no-store. `eventId` also accepts the event key. A deactivated workspace returns 403 `workspace_deactivated` (no-store). CDN cache key: path + Origin + normalized Accept-Encoding. Never forward or key on cookies, Authorization, x-api-key, x-channel-key or the query string.
|
|
121
|
+
# @param public_key [String] Workspace public key (`pub_…`).
|
|
122
|
+
# @param event_id [String]
|
|
123
|
+
# @param [Hash] opts the optional parameters
|
|
124
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
125
|
+
def get_api_public_by_public_key_events_by_event_id_manifest_with_http_info(public_key, event_id, opts = {})
|
|
126
|
+
if @api_client.config.debugging
|
|
127
|
+
@api_client.config.logger.debug 'Calling API: PublicApi.get_api_public_by_public_key_events_by_event_id_manifest ...'
|
|
128
|
+
end
|
|
129
|
+
# verify the required parameter 'public_key' is set
|
|
130
|
+
if @api_client.config.client_side_validation && public_key.nil?
|
|
131
|
+
fail ArgumentError, "Missing the required parameter 'public_key' when calling PublicApi.get_api_public_by_public_key_events_by_event_id_manifest"
|
|
132
|
+
end
|
|
133
|
+
if @api_client.config.client_side_validation && public_key.to_s.length > 64
|
|
134
|
+
fail ArgumentError, 'invalid value for "public_key" when calling PublicApi.get_api_public_by_public_key_events_by_event_id_manifest, the character length must be smaller than or equal to 64.'
|
|
135
|
+
end
|
|
136
|
+
|
|
137
|
+
if @api_client.config.client_side_validation && public_key.to_s.length < 1
|
|
138
|
+
fail ArgumentError, 'invalid value for "public_key" when calling PublicApi.get_api_public_by_public_key_events_by_event_id_manifest, the character length must be great than or equal to 1.'
|
|
139
|
+
end
|
|
140
|
+
|
|
141
|
+
# verify the required parameter 'event_id' is set
|
|
142
|
+
if @api_client.config.client_side_validation && event_id.nil?
|
|
143
|
+
fail ArgumentError, "Missing the required parameter 'event_id' when calling PublicApi.get_api_public_by_public_key_events_by_event_id_manifest"
|
|
144
|
+
end
|
|
145
|
+
# resource path
|
|
146
|
+
local_var_path = '/api/public/{publicKey}/events/{eventId}/manifest'.sub('{' + 'publicKey' + '}', CGI.escape(public_key.to_s)).sub('{' + 'eventId' + '}', CGI.escape(event_id.to_s))
|
|
147
|
+
|
|
148
|
+
# query parameters
|
|
149
|
+
query_params = opts[:query_params] || {}
|
|
150
|
+
|
|
151
|
+
# header parameters
|
|
152
|
+
header_params = opts[:header_params] || {}
|
|
153
|
+
|
|
154
|
+
# form parameters
|
|
155
|
+
form_params = opts[:form_params] || {}
|
|
156
|
+
|
|
157
|
+
# http body (model)
|
|
158
|
+
post_body = opts[:debug_body]
|
|
159
|
+
|
|
160
|
+
# return_type
|
|
161
|
+
return_type = opts[:debug_return_type]
|
|
162
|
+
|
|
163
|
+
# auth_names
|
|
164
|
+
auth_names = opts[:debug_auth_names] || []
|
|
165
|
+
|
|
166
|
+
new_options = opts.merge(
|
|
167
|
+
:operation => :"PublicApi.get_api_public_by_public_key_events_by_event_id_manifest",
|
|
168
|
+
:header_params => header_params,
|
|
169
|
+
:query_params => query_params,
|
|
170
|
+
:form_params => form_params,
|
|
171
|
+
:body => post_body,
|
|
172
|
+
:auth_names => auth_names,
|
|
173
|
+
:return_type => return_type
|
|
174
|
+
)
|
|
175
|
+
|
|
176
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
177
|
+
if @api_client.config.debugging
|
|
178
|
+
@api_client.config.logger.debug "API called: PublicApi#get_api_public_by_public_key_events_by_event_id_manifest\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
179
|
+
end
|
|
180
|
+
return data, status_code, headers
|
|
181
|
+
end
|
|
182
|
+
|
|
183
|
+
# Public compact visual state (CDN-cacheable)
|
|
184
|
+
# Compact availability of the default public cohort (channel-restricted objects are reported as not for sale; no holder identities or ops fields). Coalesced per API process (single-flight + micro-cache validated by the inventory version, <= 1 s). Weak ETag = stateToken + epoch.sequence; If-None-Match returns 304. `Cache-Control: public, max-age=1, s-maxage=2, stale-while-revalidate=5` (PUBLIC_STATE_* env). Live changes continue on the authenticated SSE stream; reserve/confirm remain authoritative. `eventId` also accepts the event key. A deactivated workspace returns 403 `workspace_deactivated` (no-store). CDN cache key: path + Origin + normalized Accept-Encoding. Never forward or key on cookies, Authorization, x-api-key, x-channel-key or the query string.
|
|
185
|
+
# @param public_key [String] Workspace public key (`pub_…`).
|
|
186
|
+
# @param event_id [String]
|
|
187
|
+
# @param [Hash] opts the optional parameters
|
|
188
|
+
# @return [nil]
|
|
189
|
+
def get_api_public_by_public_key_events_by_event_id_state(public_key, event_id, opts = {})
|
|
190
|
+
get_api_public_by_public_key_events_by_event_id_state_with_http_info(public_key, event_id, opts)
|
|
191
|
+
nil
|
|
192
|
+
end
|
|
193
|
+
|
|
194
|
+
# Public compact visual state (CDN-cacheable)
|
|
195
|
+
# Compact availability of the default public cohort (channel-restricted objects are reported as not for sale; no holder identities or ops fields). Coalesced per API process (single-flight + micro-cache validated by the inventory version, <= 1 s). Weak ETag = stateToken + epoch.sequence; If-None-Match returns 304. `Cache-Control: public, max-age=1, s-maxage=2, stale-while-revalidate=5` (PUBLIC_STATE_* env). Live changes continue on the authenticated SSE stream; reserve/confirm remain authoritative. `eventId` also accepts the event key. A deactivated workspace returns 403 `workspace_deactivated` (no-store). CDN cache key: path + Origin + normalized Accept-Encoding. Never forward or key on cookies, Authorization, x-api-key, x-channel-key or the query string.
|
|
196
|
+
# @param public_key [String] Workspace public key (`pub_…`).
|
|
197
|
+
# @param event_id [String]
|
|
198
|
+
# @param [Hash] opts the optional parameters
|
|
199
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
200
|
+
def get_api_public_by_public_key_events_by_event_id_state_with_http_info(public_key, event_id, opts = {})
|
|
201
|
+
if @api_client.config.debugging
|
|
202
|
+
@api_client.config.logger.debug 'Calling API: PublicApi.get_api_public_by_public_key_events_by_event_id_state ...'
|
|
203
|
+
end
|
|
204
|
+
# verify the required parameter 'public_key' is set
|
|
205
|
+
if @api_client.config.client_side_validation && public_key.nil?
|
|
206
|
+
fail ArgumentError, "Missing the required parameter 'public_key' when calling PublicApi.get_api_public_by_public_key_events_by_event_id_state"
|
|
207
|
+
end
|
|
208
|
+
if @api_client.config.client_side_validation && public_key.to_s.length > 64
|
|
209
|
+
fail ArgumentError, 'invalid value for "public_key" when calling PublicApi.get_api_public_by_public_key_events_by_event_id_state, the character length must be smaller than or equal to 64.'
|
|
210
|
+
end
|
|
211
|
+
|
|
212
|
+
if @api_client.config.client_side_validation && public_key.to_s.length < 1
|
|
213
|
+
fail ArgumentError, 'invalid value for "public_key" when calling PublicApi.get_api_public_by_public_key_events_by_event_id_state, the character length must be great than or equal to 1.'
|
|
214
|
+
end
|
|
215
|
+
|
|
216
|
+
# verify the required parameter 'event_id' is set
|
|
217
|
+
if @api_client.config.client_side_validation && event_id.nil?
|
|
218
|
+
fail ArgumentError, "Missing the required parameter 'event_id' when calling PublicApi.get_api_public_by_public_key_events_by_event_id_state"
|
|
219
|
+
end
|
|
220
|
+
# resource path
|
|
221
|
+
local_var_path = '/api/public/{publicKey}/events/{eventId}/state'.sub('{' + 'publicKey' + '}', CGI.escape(public_key.to_s)).sub('{' + 'eventId' + '}', CGI.escape(event_id.to_s))
|
|
222
|
+
|
|
223
|
+
# query parameters
|
|
224
|
+
query_params = opts[:query_params] || {}
|
|
225
|
+
|
|
226
|
+
# header parameters
|
|
227
|
+
header_params = opts[:header_params] || {}
|
|
228
|
+
|
|
229
|
+
# form parameters
|
|
230
|
+
form_params = opts[:form_params] || {}
|
|
231
|
+
|
|
232
|
+
# http body (model)
|
|
233
|
+
post_body = opts[:debug_body]
|
|
234
|
+
|
|
235
|
+
# return_type
|
|
236
|
+
return_type = opts[:debug_return_type]
|
|
237
|
+
|
|
238
|
+
# auth_names
|
|
239
|
+
auth_names = opts[:debug_auth_names] || []
|
|
240
|
+
|
|
241
|
+
new_options = opts.merge(
|
|
242
|
+
:operation => :"PublicApi.get_api_public_by_public_key_events_by_event_id_state",
|
|
243
|
+
:header_params => header_params,
|
|
244
|
+
:query_params => query_params,
|
|
245
|
+
:form_params => form_params,
|
|
246
|
+
:body => post_body,
|
|
247
|
+
:auth_names => auth_names,
|
|
248
|
+
:return_type => return_type
|
|
249
|
+
)
|
|
250
|
+
|
|
251
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
252
|
+
if @api_client.config.debugging
|
|
253
|
+
@api_client.config.logger.debug "API called: PublicApi#get_api_public_by_public_key_events_by_event_id_state\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
254
|
+
end
|
|
255
|
+
return data, status_code, headers
|
|
256
|
+
end
|
|
257
|
+
|
|
258
|
+
# Chart preview geometry (signed link)
|
|
259
|
+
# Content-addressed published geometry (sha256 of the canonical JSON; clients verify it). Structural fields only — no prices, inventory or event data. Cacheable while the link is valid (max one day).
|
|
260
|
+
# @param chart_id [String]
|
|
261
|
+
# @param hash [String]
|
|
262
|
+
# @param exp [String] Expiry (unix seconds) from the link.
|
|
263
|
+
# @param sig [String] Signature from the link.
|
|
264
|
+
# @param [Hash] opts the optional parameters
|
|
265
|
+
# @return [nil]
|
|
266
|
+
def get_api_public_chart_previews_by_chart_id_geometry_by_hash(chart_id, hash, exp, sig, opts = {})
|
|
267
|
+
get_api_public_chart_previews_by_chart_id_geometry_by_hash_with_http_info(chart_id, hash, exp, sig, opts)
|
|
268
|
+
nil
|
|
269
|
+
end
|
|
270
|
+
|
|
271
|
+
# Chart preview geometry (signed link)
|
|
272
|
+
# Content-addressed published geometry (sha256 of the canonical JSON; clients verify it). Structural fields only — no prices, inventory or event data. Cacheable while the link is valid (max one day).
|
|
273
|
+
# @param chart_id [String]
|
|
274
|
+
# @param hash [String]
|
|
275
|
+
# @param exp [String] Expiry (unix seconds) from the link.
|
|
276
|
+
# @param sig [String] Signature from the link.
|
|
277
|
+
# @param [Hash] opts the optional parameters
|
|
278
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
279
|
+
def get_api_public_chart_previews_by_chart_id_geometry_by_hash_with_http_info(chart_id, hash, exp, sig, opts = {})
|
|
280
|
+
if @api_client.config.debugging
|
|
281
|
+
@api_client.config.logger.debug 'Calling API: PublicApi.get_api_public_chart_previews_by_chart_id_geometry_by_hash ...'
|
|
282
|
+
end
|
|
283
|
+
# verify the required parameter 'chart_id' is set
|
|
284
|
+
if @api_client.config.client_side_validation && chart_id.nil?
|
|
285
|
+
fail ArgumentError, "Missing the required parameter 'chart_id' when calling PublicApi.get_api_public_chart_previews_by_chart_id_geometry_by_hash"
|
|
286
|
+
end
|
|
287
|
+
pattern = Regexp.new(/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/)
|
|
288
|
+
if @api_client.config.client_side_validation && chart_id !~ pattern
|
|
289
|
+
fail ArgumentError, "invalid value for 'chart_id' when calling PublicApi.get_api_public_chart_previews_by_chart_id_geometry_by_hash, must conform to the pattern #{pattern}."
|
|
290
|
+
end
|
|
291
|
+
|
|
292
|
+
# verify the required parameter 'hash' is set
|
|
293
|
+
if @api_client.config.client_side_validation && hash.nil?
|
|
294
|
+
fail ArgumentError, "Missing the required parameter 'hash' when calling PublicApi.get_api_public_chart_previews_by_chart_id_geometry_by_hash"
|
|
295
|
+
end
|
|
296
|
+
pattern = Regexp.new(/^[a-f0-9]{64}$/)
|
|
297
|
+
if @api_client.config.client_side_validation && hash !~ pattern
|
|
298
|
+
fail ArgumentError, "invalid value for 'hash' when calling PublicApi.get_api_public_chart_previews_by_chart_id_geometry_by_hash, must conform to the pattern #{pattern}."
|
|
299
|
+
end
|
|
300
|
+
|
|
301
|
+
# verify the required parameter 'exp' is set
|
|
302
|
+
if @api_client.config.client_side_validation && exp.nil?
|
|
303
|
+
fail ArgumentError, "Missing the required parameter 'exp' when calling PublicApi.get_api_public_chart_previews_by_chart_id_geometry_by_hash"
|
|
304
|
+
end
|
|
305
|
+
pattern = Regexp.new(/^[0-9]{1,12}$/)
|
|
306
|
+
if @api_client.config.client_side_validation && exp !~ pattern
|
|
307
|
+
fail ArgumentError, "invalid value for 'exp' when calling PublicApi.get_api_public_chart_previews_by_chart_id_geometry_by_hash, must conform to the pattern #{pattern}."
|
|
308
|
+
end
|
|
309
|
+
|
|
310
|
+
# verify the required parameter 'sig' is set
|
|
311
|
+
if @api_client.config.client_side_validation && sig.nil?
|
|
312
|
+
fail ArgumentError, "Missing the required parameter 'sig' when calling PublicApi.get_api_public_chart_previews_by_chart_id_geometry_by_hash"
|
|
313
|
+
end
|
|
314
|
+
if @api_client.config.client_side_validation && sig.to_s.length > 64
|
|
315
|
+
fail ArgumentError, 'invalid value for "sig" when calling PublicApi.get_api_public_chart_previews_by_chart_id_geometry_by_hash, the character length must be smaller than or equal to 64.'
|
|
316
|
+
end
|
|
317
|
+
|
|
318
|
+
if @api_client.config.client_side_validation && sig.to_s.length < 1
|
|
319
|
+
fail ArgumentError, 'invalid value for "sig" when calling PublicApi.get_api_public_chart_previews_by_chart_id_geometry_by_hash, the character length must be great than or equal to 1.'
|
|
320
|
+
end
|
|
321
|
+
|
|
322
|
+
# resource path
|
|
323
|
+
local_var_path = '/api/public/chart-previews/{chartId}/geometry/{hash}'.sub('{' + 'chartId' + '}', CGI.escape(chart_id.to_s)).sub('{' + 'hash' + '}', CGI.escape(hash.to_s))
|
|
324
|
+
|
|
325
|
+
# query parameters
|
|
326
|
+
query_params = opts[:query_params] || {}
|
|
327
|
+
query_params[:'exp'] = exp
|
|
328
|
+
query_params[:'sig'] = sig
|
|
329
|
+
|
|
330
|
+
# header parameters
|
|
331
|
+
header_params = opts[:header_params] || {}
|
|
332
|
+
|
|
333
|
+
# form parameters
|
|
334
|
+
form_params = opts[:form_params] || {}
|
|
335
|
+
|
|
336
|
+
# http body (model)
|
|
337
|
+
post_body = opts[:debug_body]
|
|
338
|
+
|
|
339
|
+
# return_type
|
|
340
|
+
return_type = opts[:debug_return_type]
|
|
341
|
+
|
|
342
|
+
# auth_names
|
|
343
|
+
auth_names = opts[:debug_auth_names] || []
|
|
344
|
+
|
|
345
|
+
new_options = opts.merge(
|
|
346
|
+
:operation => :"PublicApi.get_api_public_chart_previews_by_chart_id_geometry_by_hash",
|
|
347
|
+
:header_params => header_params,
|
|
348
|
+
:query_params => query_params,
|
|
349
|
+
:form_params => form_params,
|
|
350
|
+
:body => post_body,
|
|
351
|
+
:auth_names => auth_names,
|
|
352
|
+
:return_type => return_type
|
|
353
|
+
)
|
|
354
|
+
|
|
355
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
356
|
+
if @api_client.config.debugging
|
|
357
|
+
@api_client.config.logger.debug "API called: PublicApi#get_api_public_chart_previews_by_chart_id_geometry_by_hash\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
358
|
+
end
|
|
359
|
+
return data, status_code, headers
|
|
360
|
+
end
|
|
361
|
+
|
|
362
|
+
# Chart preview manifest (signed link)
|
|
363
|
+
# Validates a preview link and returns `{ chartId, name, mapRevision, geometryHash, seatCount, gaCount, expiresAt, geometryUrl }`. 403 `preview_link_invalid` (bad signature or revoked), 410 `preview_link_expired`, 404 unknown/unpublished/archived chart. `Cache-Control: public, max-age=30`; `X-Robots-Tag: noindex`.
|
|
364
|
+
# @param chart_id [String]
|
|
365
|
+
# @param exp [String] Expiry (unix seconds) from the link.
|
|
366
|
+
# @param sig [String] Signature from the link.
|
|
367
|
+
# @param [Hash] opts the optional parameters
|
|
368
|
+
# @return [nil]
|
|
369
|
+
def get_api_public_chart_previews_by_chart_id_manifest(chart_id, exp, sig, opts = {})
|
|
370
|
+
get_api_public_chart_previews_by_chart_id_manifest_with_http_info(chart_id, exp, sig, opts)
|
|
371
|
+
nil
|
|
372
|
+
end
|
|
373
|
+
|
|
374
|
+
# Chart preview manifest (signed link)
|
|
375
|
+
# Validates a preview link and returns `{ chartId, name, mapRevision, geometryHash, seatCount, gaCount, expiresAt, geometryUrl }`. 403 `preview_link_invalid` (bad signature or revoked), 410 `preview_link_expired`, 404 unknown/unpublished/archived chart. `Cache-Control: public, max-age=30`; `X-Robots-Tag: noindex`.
|
|
376
|
+
# @param chart_id [String]
|
|
377
|
+
# @param exp [String] Expiry (unix seconds) from the link.
|
|
378
|
+
# @param sig [String] Signature from the link.
|
|
379
|
+
# @param [Hash] opts the optional parameters
|
|
380
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
381
|
+
def get_api_public_chart_previews_by_chart_id_manifest_with_http_info(chart_id, exp, sig, opts = {})
|
|
382
|
+
if @api_client.config.debugging
|
|
383
|
+
@api_client.config.logger.debug 'Calling API: PublicApi.get_api_public_chart_previews_by_chart_id_manifest ...'
|
|
384
|
+
end
|
|
385
|
+
# verify the required parameter 'chart_id' is set
|
|
386
|
+
if @api_client.config.client_side_validation && chart_id.nil?
|
|
387
|
+
fail ArgumentError, "Missing the required parameter 'chart_id' when calling PublicApi.get_api_public_chart_previews_by_chart_id_manifest"
|
|
388
|
+
end
|
|
389
|
+
pattern = Regexp.new(/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/)
|
|
390
|
+
if @api_client.config.client_side_validation && chart_id !~ pattern
|
|
391
|
+
fail ArgumentError, "invalid value for 'chart_id' when calling PublicApi.get_api_public_chart_previews_by_chart_id_manifest, must conform to the pattern #{pattern}."
|
|
392
|
+
end
|
|
393
|
+
|
|
394
|
+
# verify the required parameter 'exp' is set
|
|
395
|
+
if @api_client.config.client_side_validation && exp.nil?
|
|
396
|
+
fail ArgumentError, "Missing the required parameter 'exp' when calling PublicApi.get_api_public_chart_previews_by_chart_id_manifest"
|
|
397
|
+
end
|
|
398
|
+
pattern = Regexp.new(/^[0-9]{1,12}$/)
|
|
399
|
+
if @api_client.config.client_side_validation && exp !~ pattern
|
|
400
|
+
fail ArgumentError, "invalid value for 'exp' when calling PublicApi.get_api_public_chart_previews_by_chart_id_manifest, must conform to the pattern #{pattern}."
|
|
401
|
+
end
|
|
402
|
+
|
|
403
|
+
# verify the required parameter 'sig' is set
|
|
404
|
+
if @api_client.config.client_side_validation && sig.nil?
|
|
405
|
+
fail ArgumentError, "Missing the required parameter 'sig' when calling PublicApi.get_api_public_chart_previews_by_chart_id_manifest"
|
|
406
|
+
end
|
|
407
|
+
if @api_client.config.client_side_validation && sig.to_s.length > 64
|
|
408
|
+
fail ArgumentError, 'invalid value for "sig" when calling PublicApi.get_api_public_chart_previews_by_chart_id_manifest, the character length must be smaller than or equal to 64.'
|
|
409
|
+
end
|
|
410
|
+
|
|
411
|
+
if @api_client.config.client_side_validation && sig.to_s.length < 1
|
|
412
|
+
fail ArgumentError, 'invalid value for "sig" when calling PublicApi.get_api_public_chart_previews_by_chart_id_manifest, the character length must be great than or equal to 1.'
|
|
413
|
+
end
|
|
414
|
+
|
|
415
|
+
# resource path
|
|
416
|
+
local_var_path = '/api/public/chart-previews/{chartId}/manifest'.sub('{' + 'chartId' + '}', CGI.escape(chart_id.to_s))
|
|
417
|
+
|
|
418
|
+
# query parameters
|
|
419
|
+
query_params = opts[:query_params] || {}
|
|
420
|
+
query_params[:'exp'] = exp
|
|
421
|
+
query_params[:'sig'] = sig
|
|
422
|
+
|
|
423
|
+
# header parameters
|
|
424
|
+
header_params = opts[:header_params] || {}
|
|
425
|
+
|
|
426
|
+
# form parameters
|
|
427
|
+
form_params = opts[:form_params] || {}
|
|
428
|
+
|
|
429
|
+
# http body (model)
|
|
430
|
+
post_body = opts[:debug_body]
|
|
431
|
+
|
|
432
|
+
# return_type
|
|
433
|
+
return_type = opts[:debug_return_type]
|
|
434
|
+
|
|
435
|
+
# auth_names
|
|
436
|
+
auth_names = opts[:debug_auth_names] || []
|
|
437
|
+
|
|
438
|
+
new_options = opts.merge(
|
|
439
|
+
:operation => :"PublicApi.get_api_public_chart_previews_by_chart_id_manifest",
|
|
440
|
+
:header_params => header_params,
|
|
441
|
+
:query_params => query_params,
|
|
442
|
+
:form_params => form_params,
|
|
443
|
+
:body => post_body,
|
|
444
|
+
:auth_names => auth_names,
|
|
445
|
+
:return_type => return_type
|
|
446
|
+
)
|
|
447
|
+
|
|
448
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
449
|
+
if @api_client.config.debugging
|
|
450
|
+
@api_client.config.logger.debug "API called: PublicApi#get_api_public_chart_previews_by_chart_id_manifest\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
451
|
+
end
|
|
452
|
+
return data, status_code, headers
|
|
453
|
+
end
|
|
454
|
+
end
|
|
455
|
+
end
|