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
|
@@ -0,0 +1,246 @@
|
|
|
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 'date'
|
|
14
|
+
require 'time'
|
|
15
|
+
|
|
16
|
+
module SeatsChart
|
|
17
|
+
# Renderer defaults this workspace sets; an absent option uses the built-in default.
|
|
18
|
+
class GetApiWorkspaceDefaults200ResponseRenderer
|
|
19
|
+
# Buyers may select more than one object (built-in: true).
|
|
20
|
+
attr_accessor :multi_select_enabled
|
|
21
|
+
|
|
22
|
+
# The fullscreen button of the seat map (built-in: true).
|
|
23
|
+
attr_accessor :show_full_screen_button
|
|
24
|
+
|
|
25
|
+
# A selected companion seat needs a selected accessible seat next to it (built-in: true, warn-only).
|
|
26
|
+
attr_accessor :companion_seat_validation_enabled
|
|
27
|
+
|
|
28
|
+
# Confirming a quantity in a general admission area holds the places at once (built-in: true).
|
|
29
|
+
attr_accessor :hold_on_select_for_gas
|
|
30
|
+
|
|
31
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
32
|
+
def self.attribute_map
|
|
33
|
+
{
|
|
34
|
+
:'multi_select_enabled' => :'multiSelectEnabled',
|
|
35
|
+
:'show_full_screen_button' => :'showFullScreenButton',
|
|
36
|
+
:'companion_seat_validation_enabled' => :'companionSeatValidationEnabled',
|
|
37
|
+
:'hold_on_select_for_gas' => :'holdOnSelectForGAs'
|
|
38
|
+
}
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
# Returns all the JSON keys this model knows about
|
|
42
|
+
def self.acceptable_attributes
|
|
43
|
+
attribute_map.values
|
|
44
|
+
end
|
|
45
|
+
|
|
46
|
+
# Attribute type mapping.
|
|
47
|
+
def self.openapi_types
|
|
48
|
+
{
|
|
49
|
+
:'multi_select_enabled' => :'Boolean',
|
|
50
|
+
:'show_full_screen_button' => :'Boolean',
|
|
51
|
+
:'companion_seat_validation_enabled' => :'Boolean',
|
|
52
|
+
:'hold_on_select_for_gas' => :'Boolean'
|
|
53
|
+
}
|
|
54
|
+
end
|
|
55
|
+
|
|
56
|
+
# List of attributes with nullable: true
|
|
57
|
+
def self.openapi_nullable
|
|
58
|
+
Set.new([
|
|
59
|
+
])
|
|
60
|
+
end
|
|
61
|
+
|
|
62
|
+
# Initializes the object
|
|
63
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
64
|
+
def initialize(attributes = {})
|
|
65
|
+
if (!attributes.is_a?(Hash))
|
|
66
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `SeatsChart::GetApiWorkspaceDefaults200ResponseRenderer` initialize method"
|
|
67
|
+
end
|
|
68
|
+
|
|
69
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
70
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
71
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
72
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `SeatsChart::GetApiWorkspaceDefaults200ResponseRenderer`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
73
|
+
end
|
|
74
|
+
h[k.to_sym] = v
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
if attributes.key?(:'multi_select_enabled')
|
|
78
|
+
self.multi_select_enabled = attributes[:'multi_select_enabled']
|
|
79
|
+
end
|
|
80
|
+
|
|
81
|
+
if attributes.key?(:'show_full_screen_button')
|
|
82
|
+
self.show_full_screen_button = attributes[:'show_full_screen_button']
|
|
83
|
+
end
|
|
84
|
+
|
|
85
|
+
if attributes.key?(:'companion_seat_validation_enabled')
|
|
86
|
+
self.companion_seat_validation_enabled = attributes[:'companion_seat_validation_enabled']
|
|
87
|
+
end
|
|
88
|
+
|
|
89
|
+
if attributes.key?(:'hold_on_select_for_gas')
|
|
90
|
+
self.hold_on_select_for_gas = attributes[:'hold_on_select_for_gas']
|
|
91
|
+
end
|
|
92
|
+
end
|
|
93
|
+
|
|
94
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
95
|
+
# @return Array for valid properties with the reasons
|
|
96
|
+
def list_invalid_properties
|
|
97
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
98
|
+
invalid_properties = Array.new
|
|
99
|
+
invalid_properties
|
|
100
|
+
end
|
|
101
|
+
|
|
102
|
+
# Check to see if the all the properties in the model are valid
|
|
103
|
+
# @return true if the model is valid
|
|
104
|
+
def valid?
|
|
105
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
106
|
+
true
|
|
107
|
+
end
|
|
108
|
+
|
|
109
|
+
# Checks equality by comparing each attribute.
|
|
110
|
+
# @param [Object] Object to be compared
|
|
111
|
+
def ==(o)
|
|
112
|
+
return true if self.equal?(o)
|
|
113
|
+
self.class == o.class &&
|
|
114
|
+
multi_select_enabled == o.multi_select_enabled &&
|
|
115
|
+
show_full_screen_button == o.show_full_screen_button &&
|
|
116
|
+
companion_seat_validation_enabled == o.companion_seat_validation_enabled &&
|
|
117
|
+
hold_on_select_for_gas == o.hold_on_select_for_gas
|
|
118
|
+
end
|
|
119
|
+
|
|
120
|
+
# @see the `==` method
|
|
121
|
+
# @param [Object] Object to be compared
|
|
122
|
+
def eql?(o)
|
|
123
|
+
self == o
|
|
124
|
+
end
|
|
125
|
+
|
|
126
|
+
# Calculates hash code according to all attributes.
|
|
127
|
+
# @return [Integer] Hash code
|
|
128
|
+
def hash
|
|
129
|
+
[multi_select_enabled, show_full_screen_button, companion_seat_validation_enabled, hold_on_select_for_gas].hash
|
|
130
|
+
end
|
|
131
|
+
|
|
132
|
+
# Builds the object from hash
|
|
133
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
134
|
+
# @return [Object] Returns the model itself
|
|
135
|
+
def self.build_from_hash(attributes)
|
|
136
|
+
return nil unless attributes.is_a?(Hash)
|
|
137
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
138
|
+
transformed_hash = {}
|
|
139
|
+
openapi_types.each_pair do |key, type|
|
|
140
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
141
|
+
transformed_hash["#{key}"] = nil
|
|
142
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
143
|
+
# check to ensure the input is an array given that the attribute
|
|
144
|
+
# is documented as an array but the input is not
|
|
145
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
146
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
147
|
+
end
|
|
148
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
149
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
150
|
+
end
|
|
151
|
+
end
|
|
152
|
+
new(transformed_hash)
|
|
153
|
+
end
|
|
154
|
+
|
|
155
|
+
# Deserializes the data based on type
|
|
156
|
+
# @param string type Data type
|
|
157
|
+
# @param string value Value to be deserialized
|
|
158
|
+
# @return [Object] Deserialized data
|
|
159
|
+
def self._deserialize(type, value)
|
|
160
|
+
case type.to_sym
|
|
161
|
+
when :Time
|
|
162
|
+
Time.parse(value)
|
|
163
|
+
when :Date
|
|
164
|
+
Date.parse(value)
|
|
165
|
+
when :String
|
|
166
|
+
value.to_s
|
|
167
|
+
when :Integer
|
|
168
|
+
value.to_i
|
|
169
|
+
when :Float
|
|
170
|
+
value.to_f
|
|
171
|
+
when :Boolean
|
|
172
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
173
|
+
true
|
|
174
|
+
else
|
|
175
|
+
false
|
|
176
|
+
end
|
|
177
|
+
when :Object
|
|
178
|
+
# generic object (usually a Hash), return directly
|
|
179
|
+
value
|
|
180
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
181
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
182
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
183
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
184
|
+
k_type = Regexp.last_match[:k_type]
|
|
185
|
+
v_type = Regexp.last_match[:v_type]
|
|
186
|
+
{}.tap do |hash|
|
|
187
|
+
value.each do |k, v|
|
|
188
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
189
|
+
end
|
|
190
|
+
end
|
|
191
|
+
else # model
|
|
192
|
+
# models (e.g. Pet) or oneOf
|
|
193
|
+
klass = SeatsChart.const_get(type)
|
|
194
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
195
|
+
end
|
|
196
|
+
end
|
|
197
|
+
|
|
198
|
+
# Returns the string representation of the object
|
|
199
|
+
# @return [String] String presentation of the object
|
|
200
|
+
def to_s
|
|
201
|
+
to_hash.to_s
|
|
202
|
+
end
|
|
203
|
+
|
|
204
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
205
|
+
# @return [Hash] Returns the object in the form of hash
|
|
206
|
+
def to_body
|
|
207
|
+
to_hash
|
|
208
|
+
end
|
|
209
|
+
|
|
210
|
+
# Returns the object in the form of hash
|
|
211
|
+
# @return [Hash] Returns the object in the form of hash
|
|
212
|
+
def to_hash
|
|
213
|
+
hash = {}
|
|
214
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
215
|
+
value = self.send(attr)
|
|
216
|
+
if value.nil?
|
|
217
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
218
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
219
|
+
end
|
|
220
|
+
|
|
221
|
+
hash[param] = _to_hash(value)
|
|
222
|
+
end
|
|
223
|
+
hash
|
|
224
|
+
end
|
|
225
|
+
|
|
226
|
+
# Outputs non-array value in the form of hash
|
|
227
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
228
|
+
# @param [Object] value Any valid value
|
|
229
|
+
# @return [Hash] Returns the value in the form of hash
|
|
230
|
+
def _to_hash(value)
|
|
231
|
+
if value.is_a?(Array)
|
|
232
|
+
value.compact.map { |v| _to_hash(v) }
|
|
233
|
+
elsif value.is_a?(Hash)
|
|
234
|
+
{}.tap do |hash|
|
|
235
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
236
|
+
end
|
|
237
|
+
elsif value.respond_to? :to_hash
|
|
238
|
+
value.to_hash
|
|
239
|
+
else
|
|
240
|
+
value
|
|
241
|
+
end
|
|
242
|
+
end
|
|
243
|
+
|
|
244
|
+
end
|
|
245
|
+
|
|
246
|
+
end
|
|
@@ -0,0 +1,270 @@
|
|
|
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 'date'
|
|
14
|
+
require 'time'
|
|
15
|
+
|
|
16
|
+
module SeatsChart
|
|
17
|
+
# What the seat map does when neither the embed nor the workspace sets an option.
|
|
18
|
+
class GetApiWorkspaceDefaults200ResponseRendererBuiltIn
|
|
19
|
+
attr_accessor :multi_select_enabled
|
|
20
|
+
|
|
21
|
+
attr_accessor :show_full_screen_button
|
|
22
|
+
|
|
23
|
+
attr_accessor :companion_seat_validation_enabled
|
|
24
|
+
|
|
25
|
+
attr_accessor :hold_on_select_for_gas
|
|
26
|
+
|
|
27
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
28
|
+
def self.attribute_map
|
|
29
|
+
{
|
|
30
|
+
:'multi_select_enabled' => :'multiSelectEnabled',
|
|
31
|
+
:'show_full_screen_button' => :'showFullScreenButton',
|
|
32
|
+
:'companion_seat_validation_enabled' => :'companionSeatValidationEnabled',
|
|
33
|
+
:'hold_on_select_for_gas' => :'holdOnSelectForGAs'
|
|
34
|
+
}
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
# Returns all the JSON keys this model knows about
|
|
38
|
+
def self.acceptable_attributes
|
|
39
|
+
attribute_map.values
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
# Attribute type mapping.
|
|
43
|
+
def self.openapi_types
|
|
44
|
+
{
|
|
45
|
+
:'multi_select_enabled' => :'Boolean',
|
|
46
|
+
:'show_full_screen_button' => :'Boolean',
|
|
47
|
+
:'companion_seat_validation_enabled' => :'Boolean',
|
|
48
|
+
:'hold_on_select_for_gas' => :'Boolean'
|
|
49
|
+
}
|
|
50
|
+
end
|
|
51
|
+
|
|
52
|
+
# List of attributes with nullable: true
|
|
53
|
+
def self.openapi_nullable
|
|
54
|
+
Set.new([
|
|
55
|
+
])
|
|
56
|
+
end
|
|
57
|
+
|
|
58
|
+
# Initializes the object
|
|
59
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
60
|
+
def initialize(attributes = {})
|
|
61
|
+
if (!attributes.is_a?(Hash))
|
|
62
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `SeatsChart::GetApiWorkspaceDefaults200ResponseRendererBuiltIn` initialize method"
|
|
63
|
+
end
|
|
64
|
+
|
|
65
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
66
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
67
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
68
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `SeatsChart::GetApiWorkspaceDefaults200ResponseRendererBuiltIn`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
69
|
+
end
|
|
70
|
+
h[k.to_sym] = v
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
if attributes.key?(:'multi_select_enabled')
|
|
74
|
+
self.multi_select_enabled = attributes[:'multi_select_enabled']
|
|
75
|
+
else
|
|
76
|
+
self.multi_select_enabled = nil
|
|
77
|
+
end
|
|
78
|
+
|
|
79
|
+
if attributes.key?(:'show_full_screen_button')
|
|
80
|
+
self.show_full_screen_button = attributes[:'show_full_screen_button']
|
|
81
|
+
else
|
|
82
|
+
self.show_full_screen_button = nil
|
|
83
|
+
end
|
|
84
|
+
|
|
85
|
+
if attributes.key?(:'companion_seat_validation_enabled')
|
|
86
|
+
self.companion_seat_validation_enabled = attributes[:'companion_seat_validation_enabled']
|
|
87
|
+
else
|
|
88
|
+
self.companion_seat_validation_enabled = nil
|
|
89
|
+
end
|
|
90
|
+
|
|
91
|
+
if attributes.key?(:'hold_on_select_for_gas')
|
|
92
|
+
self.hold_on_select_for_gas = attributes[:'hold_on_select_for_gas']
|
|
93
|
+
else
|
|
94
|
+
self.hold_on_select_for_gas = nil
|
|
95
|
+
end
|
|
96
|
+
end
|
|
97
|
+
|
|
98
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
99
|
+
# @return Array for valid properties with the reasons
|
|
100
|
+
def list_invalid_properties
|
|
101
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
102
|
+
invalid_properties = Array.new
|
|
103
|
+
if @multi_select_enabled.nil?
|
|
104
|
+
invalid_properties.push('invalid value for "multi_select_enabled", multi_select_enabled cannot be nil.')
|
|
105
|
+
end
|
|
106
|
+
|
|
107
|
+
if @show_full_screen_button.nil?
|
|
108
|
+
invalid_properties.push('invalid value for "show_full_screen_button", show_full_screen_button cannot be nil.')
|
|
109
|
+
end
|
|
110
|
+
|
|
111
|
+
if @companion_seat_validation_enabled.nil?
|
|
112
|
+
invalid_properties.push('invalid value for "companion_seat_validation_enabled", companion_seat_validation_enabled cannot be nil.')
|
|
113
|
+
end
|
|
114
|
+
|
|
115
|
+
if @hold_on_select_for_gas.nil?
|
|
116
|
+
invalid_properties.push('invalid value for "hold_on_select_for_gas", hold_on_select_for_gas cannot be nil.')
|
|
117
|
+
end
|
|
118
|
+
|
|
119
|
+
invalid_properties
|
|
120
|
+
end
|
|
121
|
+
|
|
122
|
+
# Check to see if the all the properties in the model are valid
|
|
123
|
+
# @return true if the model is valid
|
|
124
|
+
def valid?
|
|
125
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
126
|
+
return false if @multi_select_enabled.nil?
|
|
127
|
+
return false if @show_full_screen_button.nil?
|
|
128
|
+
return false if @companion_seat_validation_enabled.nil?
|
|
129
|
+
return false if @hold_on_select_for_gas.nil?
|
|
130
|
+
true
|
|
131
|
+
end
|
|
132
|
+
|
|
133
|
+
# Checks equality by comparing each attribute.
|
|
134
|
+
# @param [Object] Object to be compared
|
|
135
|
+
def ==(o)
|
|
136
|
+
return true if self.equal?(o)
|
|
137
|
+
self.class == o.class &&
|
|
138
|
+
multi_select_enabled == o.multi_select_enabled &&
|
|
139
|
+
show_full_screen_button == o.show_full_screen_button &&
|
|
140
|
+
companion_seat_validation_enabled == o.companion_seat_validation_enabled &&
|
|
141
|
+
hold_on_select_for_gas == o.hold_on_select_for_gas
|
|
142
|
+
end
|
|
143
|
+
|
|
144
|
+
# @see the `==` method
|
|
145
|
+
# @param [Object] Object to be compared
|
|
146
|
+
def eql?(o)
|
|
147
|
+
self == o
|
|
148
|
+
end
|
|
149
|
+
|
|
150
|
+
# Calculates hash code according to all attributes.
|
|
151
|
+
# @return [Integer] Hash code
|
|
152
|
+
def hash
|
|
153
|
+
[multi_select_enabled, show_full_screen_button, companion_seat_validation_enabled, hold_on_select_for_gas].hash
|
|
154
|
+
end
|
|
155
|
+
|
|
156
|
+
# Builds the object from hash
|
|
157
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
158
|
+
# @return [Object] Returns the model itself
|
|
159
|
+
def self.build_from_hash(attributes)
|
|
160
|
+
return nil unless attributes.is_a?(Hash)
|
|
161
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
162
|
+
transformed_hash = {}
|
|
163
|
+
openapi_types.each_pair do |key, type|
|
|
164
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
165
|
+
transformed_hash["#{key}"] = nil
|
|
166
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
167
|
+
# check to ensure the input is an array given that the attribute
|
|
168
|
+
# is documented as an array but the input is not
|
|
169
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
170
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
171
|
+
end
|
|
172
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
173
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
174
|
+
end
|
|
175
|
+
end
|
|
176
|
+
new(transformed_hash)
|
|
177
|
+
end
|
|
178
|
+
|
|
179
|
+
# Deserializes the data based on type
|
|
180
|
+
# @param string type Data type
|
|
181
|
+
# @param string value Value to be deserialized
|
|
182
|
+
# @return [Object] Deserialized data
|
|
183
|
+
def self._deserialize(type, value)
|
|
184
|
+
case type.to_sym
|
|
185
|
+
when :Time
|
|
186
|
+
Time.parse(value)
|
|
187
|
+
when :Date
|
|
188
|
+
Date.parse(value)
|
|
189
|
+
when :String
|
|
190
|
+
value.to_s
|
|
191
|
+
when :Integer
|
|
192
|
+
value.to_i
|
|
193
|
+
when :Float
|
|
194
|
+
value.to_f
|
|
195
|
+
when :Boolean
|
|
196
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
197
|
+
true
|
|
198
|
+
else
|
|
199
|
+
false
|
|
200
|
+
end
|
|
201
|
+
when :Object
|
|
202
|
+
# generic object (usually a Hash), return directly
|
|
203
|
+
value
|
|
204
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
205
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
206
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
207
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
208
|
+
k_type = Regexp.last_match[:k_type]
|
|
209
|
+
v_type = Regexp.last_match[:v_type]
|
|
210
|
+
{}.tap do |hash|
|
|
211
|
+
value.each do |k, v|
|
|
212
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
213
|
+
end
|
|
214
|
+
end
|
|
215
|
+
else # model
|
|
216
|
+
# models (e.g. Pet) or oneOf
|
|
217
|
+
klass = SeatsChart.const_get(type)
|
|
218
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
219
|
+
end
|
|
220
|
+
end
|
|
221
|
+
|
|
222
|
+
# Returns the string representation of the object
|
|
223
|
+
# @return [String] String presentation of the object
|
|
224
|
+
def to_s
|
|
225
|
+
to_hash.to_s
|
|
226
|
+
end
|
|
227
|
+
|
|
228
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
229
|
+
# @return [Hash] Returns the object in the form of hash
|
|
230
|
+
def to_body
|
|
231
|
+
to_hash
|
|
232
|
+
end
|
|
233
|
+
|
|
234
|
+
# Returns the object in the form of hash
|
|
235
|
+
# @return [Hash] Returns the object in the form of hash
|
|
236
|
+
def to_hash
|
|
237
|
+
hash = {}
|
|
238
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
239
|
+
value = self.send(attr)
|
|
240
|
+
if value.nil?
|
|
241
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
242
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
243
|
+
end
|
|
244
|
+
|
|
245
|
+
hash[param] = _to_hash(value)
|
|
246
|
+
end
|
|
247
|
+
hash
|
|
248
|
+
end
|
|
249
|
+
|
|
250
|
+
# Outputs non-array value in the form of hash
|
|
251
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
252
|
+
# @param [Object] value Any valid value
|
|
253
|
+
# @return [Hash] Returns the value in the form of hash
|
|
254
|
+
def _to_hash(value)
|
|
255
|
+
if value.is_a?(Array)
|
|
256
|
+
value.compact.map { |v| _to_hash(v) }
|
|
257
|
+
elsif value.is_a?(Hash)
|
|
258
|
+
{}.tap do |hash|
|
|
259
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
260
|
+
end
|
|
261
|
+
elsif value.respond_to? :to_hash
|
|
262
|
+
value.to_hash
|
|
263
|
+
else
|
|
264
|
+
value
|
|
265
|
+
end
|
|
266
|
+
end
|
|
267
|
+
|
|
268
|
+
end
|
|
269
|
+
|
|
270
|
+
end
|
|
@@ -23,13 +23,16 @@ module SeatsChart
|
|
|
23
23
|
|
|
24
24
|
attr_accessor :ga_places_to_channels
|
|
25
25
|
|
|
26
|
+
attr_accessor :new_events_not_for_sale
|
|
27
|
+
|
|
26
28
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
27
29
|
def self.attribute_map
|
|
28
30
|
{
|
|
29
31
|
:'hold_period_minutes' => :'holdPeriodMinutes',
|
|
30
32
|
:'max_seats_per_hold_token' => :'maxSeatsPerHoldToken',
|
|
31
33
|
:'ticket_buyer_validation' => :'ticketBuyerValidation',
|
|
32
|
-
:'ga_places_to_channels' => :'gaPlacesToChannels'
|
|
34
|
+
:'ga_places_to_channels' => :'gaPlacesToChannels',
|
|
35
|
+
:'new_events_not_for_sale' => :'newEventsNotForSale'
|
|
33
36
|
}
|
|
34
37
|
end
|
|
35
38
|
|
|
@@ -44,7 +47,8 @@ module SeatsChart
|
|
|
44
47
|
:'hold_period_minutes' => :'Integer',
|
|
45
48
|
:'max_seats_per_hold_token' => :'Integer',
|
|
46
49
|
:'ticket_buyer_validation' => :'Boolean',
|
|
47
|
-
:'ga_places_to_channels' => :'Boolean'
|
|
50
|
+
:'ga_places_to_channels' => :'Boolean',
|
|
51
|
+
:'new_events_not_for_sale' => :'Boolean'
|
|
48
52
|
}
|
|
49
53
|
end
|
|
50
54
|
|
|
@@ -92,6 +96,12 @@ module SeatsChart
|
|
|
92
96
|
else
|
|
93
97
|
self.ga_places_to_channels = nil
|
|
94
98
|
end
|
|
99
|
+
|
|
100
|
+
if attributes.key?(:'new_events_not_for_sale')
|
|
101
|
+
self.new_events_not_for_sale = attributes[:'new_events_not_for_sale']
|
|
102
|
+
else
|
|
103
|
+
self.new_events_not_for_sale = nil
|
|
104
|
+
end
|
|
95
105
|
end
|
|
96
106
|
|
|
97
107
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -115,6 +125,10 @@ module SeatsChart
|
|
|
115
125
|
invalid_properties.push('invalid value for "ga_places_to_channels", ga_places_to_channels cannot be nil.')
|
|
116
126
|
end
|
|
117
127
|
|
|
128
|
+
if @new_events_not_for_sale.nil?
|
|
129
|
+
invalid_properties.push('invalid value for "new_events_not_for_sale", new_events_not_for_sale cannot be nil.')
|
|
130
|
+
end
|
|
131
|
+
|
|
118
132
|
invalid_properties
|
|
119
133
|
end
|
|
120
134
|
|
|
@@ -126,6 +140,7 @@ module SeatsChart
|
|
|
126
140
|
return false if @max_seats_per_hold_token.nil?
|
|
127
141
|
return false if @ticket_buyer_validation.nil?
|
|
128
142
|
return false if @ga_places_to_channels.nil?
|
|
143
|
+
return false if @new_events_not_for_sale.nil?
|
|
129
144
|
true
|
|
130
145
|
end
|
|
131
146
|
|
|
@@ -137,7 +152,8 @@ module SeatsChart
|
|
|
137
152
|
hold_period_minutes == o.hold_period_minutes &&
|
|
138
153
|
max_seats_per_hold_token == o.max_seats_per_hold_token &&
|
|
139
154
|
ticket_buyer_validation == o.ticket_buyer_validation &&
|
|
140
|
-
ga_places_to_channels == o.ga_places_to_channels
|
|
155
|
+
ga_places_to_channels == o.ga_places_to_channels &&
|
|
156
|
+
new_events_not_for_sale == o.new_events_not_for_sale
|
|
141
157
|
end
|
|
142
158
|
|
|
143
159
|
# @see the `==` method
|
|
@@ -149,7 +165,7 @@ module SeatsChart
|
|
|
149
165
|
# Calculates hash code according to all attributes.
|
|
150
166
|
# @return [Integer] Hash code
|
|
151
167
|
def hash
|
|
152
|
-
[hold_period_minutes, max_seats_per_hold_token, ticket_buyer_validation, ga_places_to_channels].hash
|
|
168
|
+
[hold_period_minutes, max_seats_per_hold_token, ticket_buyer_validation, ga_places_to_channels, new_events_not_for_sale].hash
|
|
153
169
|
end
|
|
154
170
|
|
|
155
171
|
# Builds the object from hash
|
|
@@ -23,13 +23,16 @@ module SeatsChart
|
|
|
23
23
|
|
|
24
24
|
attr_accessor :ga_places_to_channels
|
|
25
25
|
|
|
26
|
+
attr_accessor :new_events_not_for_sale
|
|
27
|
+
|
|
26
28
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
27
29
|
def self.attribute_map
|
|
28
30
|
{
|
|
29
31
|
:'hold_period_minutes' => :'holdPeriodMinutes',
|
|
30
32
|
:'max_seats_per_hold_token' => :'maxSeatsPerHoldToken',
|
|
31
33
|
:'ticket_buyer_validation' => :'ticketBuyerValidation',
|
|
32
|
-
:'ga_places_to_channels' => :'gaPlacesToChannels'
|
|
34
|
+
:'ga_places_to_channels' => :'gaPlacesToChannels',
|
|
35
|
+
:'new_events_not_for_sale' => :'newEventsNotForSale'
|
|
33
36
|
}
|
|
34
37
|
end
|
|
35
38
|
|
|
@@ -44,7 +47,8 @@ module SeatsChart
|
|
|
44
47
|
:'hold_period_minutes' => :'Integer',
|
|
45
48
|
:'max_seats_per_hold_token' => :'Integer',
|
|
46
49
|
:'ticket_buyer_validation' => :'Boolean',
|
|
47
|
-
:'ga_places_to_channels' => :'Boolean'
|
|
50
|
+
:'ga_places_to_channels' => :'Boolean',
|
|
51
|
+
:'new_events_not_for_sale' => :'Boolean'
|
|
48
52
|
}
|
|
49
53
|
end
|
|
50
54
|
|
|
@@ -84,6 +88,10 @@ module SeatsChart
|
|
|
84
88
|
if attributes.key?(:'ga_places_to_channels')
|
|
85
89
|
self.ga_places_to_channels = attributes[:'ga_places_to_channels']
|
|
86
90
|
end
|
|
91
|
+
|
|
92
|
+
if attributes.key?(:'new_events_not_for_sale')
|
|
93
|
+
self.new_events_not_for_sale = attributes[:'new_events_not_for_sale']
|
|
94
|
+
end
|
|
87
95
|
end
|
|
88
96
|
|
|
89
97
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -109,7 +117,8 @@ module SeatsChart
|
|
|
109
117
|
hold_period_minutes == o.hold_period_minutes &&
|
|
110
118
|
max_seats_per_hold_token == o.max_seats_per_hold_token &&
|
|
111
119
|
ticket_buyer_validation == o.ticket_buyer_validation &&
|
|
112
|
-
ga_places_to_channels == o.ga_places_to_channels
|
|
120
|
+
ga_places_to_channels == o.ga_places_to_channels &&
|
|
121
|
+
new_events_not_for_sale == o.new_events_not_for_sale
|
|
113
122
|
end
|
|
114
123
|
|
|
115
124
|
# @see the `==` method
|
|
@@ -121,7 +130,7 @@ module SeatsChart
|
|
|
121
130
|
# Calculates hash code according to all attributes.
|
|
122
131
|
# @return [Integer] Hash code
|
|
123
132
|
def hash
|
|
124
|
-
[hold_period_minutes, max_seats_per_hold_token, ticket_buyer_validation, ga_places_to_channels].hash
|
|
133
|
+
[hold_period_minutes, max_seats_per_hold_token, ticket_buyer_validation, ga_places_to_channels, new_events_not_for_sale].hash
|
|
125
134
|
end
|
|
126
135
|
|
|
127
136
|
# Builds the object from hash
|