seatschart 0.3.0 → 0.4.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.
Files changed (36) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +39 -6
  3. data/lib/seatschart/api/auth_api.rb +81 -4
  4. data/lib/seatschart/api/billing_api.rb +4 -0
  5. data/lib/seatschart/api/charts_api.rb +11 -11
  6. data/lib/seatschart/api/events_api.rb +20 -20
  7. data/lib/seatschart/api/public_api.rb +6 -6
  8. data/lib/seatschart/api/workspace_api.rb +1213 -47
  9. data/lib/seatschart/models/api_error.rb +4 -4
  10. data/lib/seatschart/models/delete_api_workspaces_by_workspace_id_keys_by_key_id200_response.rb +237 -0
  11. data/lib/seatschart/models/get_api_workspaces200_response_items_inner.rb +50 -4
  12. data/lib/seatschart/models/get_api_workspaces_by_workspace_id_keys200_response.rb +239 -0
  13. data/lib/seatschart/models/get_api_workspaces_by_workspace_id_keys200_response_api_keys_inner.rb +321 -0
  14. data/lib/seatschart/models/get_api_workspaces_created_by_api_parameter.rb +103 -0
  15. data/lib/seatschart/models/get_api_workspaces_overview_created_by_api_parameter.rb +103 -0
  16. data/lib/seatschart/models/patch_api_events_by_event_id_request.rb +15 -15
  17. data/lib/seatschart/models/patch_api_workspaces_by_workspace_id_keys_by_key_id200_response.rb +221 -0
  18. data/lib/seatschart/models/patch_api_workspaces_by_workspace_id_keys_by_key_id_request.rb +292 -0
  19. data/lib/seatschart/models/patch_api_workspaces_by_workspace_id_request.rb +288 -0
  20. data/lib/seatschart/models/post_api_auth_new_workspace_request.rb +294 -0
  21. data/lib/seatschart/models/post_api_workspaces200_response.rb +468 -0
  22. data/lib/seatschart/models/post_api_workspaces200_response_api_key.rb +332 -0
  23. data/lib/seatschart/models/post_api_workspaces200_response_template.rb +260 -0
  24. data/lib/seatschart/models/post_api_workspaces200_response_template_webhooks_inner.rb +284 -0
  25. data/lib/seatschart/models/post_api_workspaces_by_workspace_id_actions_delete200_response.rb +319 -0
  26. data/lib/seatschart/models/post_api_workspaces_by_workspace_id_actions_delete_request.rb +281 -0
  27. data/lib/seatschart/models/post_api_workspaces_by_workspace_id_invitations_request.rb +300 -0
  28. data/lib/seatschart/models/post_api_workspaces_by_workspace_id_keys201_response.rb +237 -0
  29. data/lib/seatschart/models/post_api_workspaces_by_workspace_id_keys201_response_api_key.rb +338 -0
  30. data/lib/seatschart/models/post_api_workspaces_by_workspace_id_keys_request.rb +299 -0
  31. data/lib/seatschart/models/post_api_workspaces_request.rb +100 -4
  32. data/lib/seatschart/models/post_api_workspaces_request_issue_key.rb +294 -0
  33. data/lib/seatschart/version.rb +1 -1
  34. data/lib/seatschart.rb +20 -1
  35. metadata +22 -3
  36. data/lib/seatschart/models/put_api_charts_by_chart_id_map_draft_request.rb +0 -349
@@ -0,0 +1,321 @@
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
+ class GetApiWorkspacesByWorkspaceIdKeys200ResponseApiKeysInner
18
+ attr_accessor :id
19
+
20
+ attr_accessor :name
21
+
22
+ # Non-secret fingerprint (`sk_live_1a2b3c4d…`).
23
+ attr_accessor :prefix
24
+
25
+ attr_accessor :created_at
26
+
27
+ attr_accessor :scopes
28
+
29
+ attr_accessor :full_access
30
+
31
+ # A workspace admin key (read only here).
32
+ attr_accessor :workspace_admin
33
+
34
+ # Attribute mapping from ruby-style variable name to JSON key.
35
+ def self.attribute_map
36
+ {
37
+ :'id' => :'id',
38
+ :'name' => :'name',
39
+ :'prefix' => :'prefix',
40
+ :'created_at' => :'createdAt',
41
+ :'scopes' => :'scopes',
42
+ :'full_access' => :'fullAccess',
43
+ :'workspace_admin' => :'workspaceAdmin'
44
+ }
45
+ end
46
+
47
+ # Returns all the JSON keys this model knows about
48
+ def self.acceptable_attributes
49
+ attribute_map.values
50
+ end
51
+
52
+ # Attribute type mapping.
53
+ def self.openapi_types
54
+ {
55
+ :'id' => :'String',
56
+ :'name' => :'String',
57
+ :'prefix' => :'String',
58
+ :'created_at' => :'Time',
59
+ :'scopes' => :'Array<String>',
60
+ :'full_access' => :'Boolean',
61
+ :'workspace_admin' => :'Boolean'
62
+ }
63
+ end
64
+
65
+ # List of attributes with nullable: true
66
+ def self.openapi_nullable
67
+ Set.new([
68
+ ])
69
+ end
70
+
71
+ # Initializes the object
72
+ # @param [Hash] attributes Model attributes in the form of hash
73
+ def initialize(attributes = {})
74
+ if (!attributes.is_a?(Hash))
75
+ fail ArgumentError, "The input argument (attributes) must be a hash in `SeatsChart::GetApiWorkspacesByWorkspaceIdKeys200ResponseApiKeysInner` initialize method"
76
+ end
77
+
78
+ # check to see if the attribute exists and convert string to symbol for hash key
79
+ attributes = attributes.each_with_object({}) { |(k, v), h|
80
+ if (!self.class.attribute_map.key?(k.to_sym))
81
+ fail ArgumentError, "`#{k}` is not a valid attribute in `SeatsChart::GetApiWorkspacesByWorkspaceIdKeys200ResponseApiKeysInner`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
82
+ end
83
+ h[k.to_sym] = v
84
+ }
85
+
86
+ if attributes.key?(:'id')
87
+ self.id = attributes[:'id']
88
+ else
89
+ self.id = nil
90
+ end
91
+
92
+ if attributes.key?(:'name')
93
+ self.name = attributes[:'name']
94
+ else
95
+ self.name = nil
96
+ end
97
+
98
+ if attributes.key?(:'prefix')
99
+ self.prefix = attributes[:'prefix']
100
+ else
101
+ self.prefix = nil
102
+ end
103
+
104
+ if attributes.key?(:'created_at')
105
+ self.created_at = attributes[:'created_at']
106
+ else
107
+ self.created_at = nil
108
+ end
109
+
110
+ if attributes.key?(:'scopes')
111
+ if (value = attributes[:'scopes']).is_a?(Array)
112
+ self.scopes = value
113
+ end
114
+ else
115
+ self.scopes = nil
116
+ end
117
+
118
+ if attributes.key?(:'full_access')
119
+ self.full_access = attributes[:'full_access']
120
+ else
121
+ self.full_access = nil
122
+ end
123
+
124
+ if attributes.key?(:'workspace_admin')
125
+ self.workspace_admin = attributes[:'workspace_admin']
126
+ else
127
+ self.workspace_admin = nil
128
+ end
129
+ end
130
+
131
+ # Show invalid properties with the reasons. Usually used together with valid?
132
+ # @return Array for valid properties with the reasons
133
+ def list_invalid_properties
134
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
135
+ invalid_properties = Array.new
136
+ if @id.nil?
137
+ invalid_properties.push('invalid value for "id", id cannot be nil.')
138
+ end
139
+
140
+ if @name.nil?
141
+ invalid_properties.push('invalid value for "name", name cannot be nil.')
142
+ end
143
+
144
+ if @prefix.nil?
145
+ invalid_properties.push('invalid value for "prefix", prefix cannot be nil.')
146
+ end
147
+
148
+ if @created_at.nil?
149
+ invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
150
+ end
151
+
152
+ if @scopes.nil?
153
+ invalid_properties.push('invalid value for "scopes", scopes cannot be nil.')
154
+ end
155
+
156
+ if @full_access.nil?
157
+ invalid_properties.push('invalid value for "full_access", full_access cannot be nil.')
158
+ end
159
+
160
+ if @workspace_admin.nil?
161
+ invalid_properties.push('invalid value for "workspace_admin", workspace_admin cannot be nil.')
162
+ end
163
+
164
+ invalid_properties
165
+ end
166
+
167
+ # Check to see if the all the properties in the model are valid
168
+ # @return true if the model is valid
169
+ def valid?
170
+ warn '[DEPRECATED] the `valid?` method is obsolete'
171
+ return false if @id.nil?
172
+ return false if @name.nil?
173
+ return false if @prefix.nil?
174
+ return false if @created_at.nil?
175
+ return false if @scopes.nil?
176
+ return false if @full_access.nil?
177
+ return false if @workspace_admin.nil?
178
+ true
179
+ end
180
+
181
+ # Checks equality by comparing each attribute.
182
+ # @param [Object] Object to be compared
183
+ def ==(o)
184
+ return true if self.equal?(o)
185
+ self.class == o.class &&
186
+ id == o.id &&
187
+ name == o.name &&
188
+ prefix == o.prefix &&
189
+ created_at == o.created_at &&
190
+ scopes == o.scopes &&
191
+ full_access == o.full_access &&
192
+ workspace_admin == o.workspace_admin
193
+ end
194
+
195
+ # @see the `==` method
196
+ # @param [Object] Object to be compared
197
+ def eql?(o)
198
+ self == o
199
+ end
200
+
201
+ # Calculates hash code according to all attributes.
202
+ # @return [Integer] Hash code
203
+ def hash
204
+ [id, name, prefix, created_at, scopes, full_access, workspace_admin].hash
205
+ end
206
+
207
+ # Builds the object from hash
208
+ # @param [Hash] attributes Model attributes in the form of hash
209
+ # @return [Object] Returns the model itself
210
+ def self.build_from_hash(attributes)
211
+ return nil unless attributes.is_a?(Hash)
212
+ attributes = attributes.transform_keys(&:to_sym)
213
+ transformed_hash = {}
214
+ openapi_types.each_pair do |key, type|
215
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
216
+ transformed_hash["#{key}"] = nil
217
+ elsif type =~ /\AArray<(.*)>/i
218
+ # check to ensure the input is an array given that the attribute
219
+ # is documented as an array but the input is not
220
+ if attributes[attribute_map[key]].is_a?(Array)
221
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
222
+ end
223
+ elsif !attributes[attribute_map[key]].nil?
224
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
225
+ end
226
+ end
227
+ new(transformed_hash)
228
+ end
229
+
230
+ # Deserializes the data based on type
231
+ # @param string type Data type
232
+ # @param string value Value to be deserialized
233
+ # @return [Object] Deserialized data
234
+ def self._deserialize(type, value)
235
+ case type.to_sym
236
+ when :Time
237
+ Time.parse(value)
238
+ when :Date
239
+ Date.parse(value)
240
+ when :String
241
+ value.to_s
242
+ when :Integer
243
+ value.to_i
244
+ when :Float
245
+ value.to_f
246
+ when :Boolean
247
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
248
+ true
249
+ else
250
+ false
251
+ end
252
+ when :Object
253
+ # generic object (usually a Hash), return directly
254
+ value
255
+ when /\AArray<(?<inner_type>.+)>\z/
256
+ inner_type = Regexp.last_match[:inner_type]
257
+ value.map { |v| _deserialize(inner_type, v) }
258
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
259
+ k_type = Regexp.last_match[:k_type]
260
+ v_type = Regexp.last_match[:v_type]
261
+ {}.tap do |hash|
262
+ value.each do |k, v|
263
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
264
+ end
265
+ end
266
+ else # model
267
+ # models (e.g. Pet) or oneOf
268
+ klass = SeatsChart.const_get(type)
269
+ klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
270
+ end
271
+ end
272
+
273
+ # Returns the string representation of the object
274
+ # @return [String] String presentation of the object
275
+ def to_s
276
+ to_hash.to_s
277
+ end
278
+
279
+ # to_body is an alias to to_hash (backward compatibility)
280
+ # @return [Hash] Returns the object in the form of hash
281
+ def to_body
282
+ to_hash
283
+ end
284
+
285
+ # Returns the object in the form of hash
286
+ # @return [Hash] Returns the object in the form of hash
287
+ def to_hash
288
+ hash = {}
289
+ self.class.attribute_map.each_pair do |attr, param|
290
+ value = self.send(attr)
291
+ if value.nil?
292
+ is_nullable = self.class.openapi_nullable.include?(attr)
293
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
294
+ end
295
+
296
+ hash[param] = _to_hash(value)
297
+ end
298
+ hash
299
+ end
300
+
301
+ # Outputs non-array value in the form of hash
302
+ # For object, use to_hash. Otherwise, just return the value
303
+ # @param [Object] value Any valid value
304
+ # @return [Hash] Returns the value in the form of hash
305
+ def _to_hash(value)
306
+ if value.is_a?(Array)
307
+ value.compact.map { |v| _to_hash(v) }
308
+ elsif value.is_a?(Hash)
309
+ {}.tap do |hash|
310
+ value.each { |k, v| hash[k] = _to_hash(v) }
311
+ end
312
+ elsif value.respond_to? :to_hash
313
+ value.to_hash
314
+ else
315
+ value
316
+ end
317
+ end
318
+
319
+ end
320
+
321
+ end
@@ -0,0 +1,103 @@
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
+ module GetApiWorkspacesCreatedByApiParameter
18
+ class << self
19
+ # List of class defined in anyOf (OpenAPI v3)
20
+ def openapi_any_of
21
+ [
22
+ :'Boolean'
23
+ ]
24
+ end
25
+
26
+ # Builds the object
27
+ # @param [Mixed] Data to be matched against the list of anyOf items
28
+ # @return [Object] Returns the model or the data itself
29
+ def build(data)
30
+ # Go through the list of anyOf items and attempt to identify the appropriate one.
31
+ # Note:
32
+ # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 })
33
+ # due to the way the deserialization is made in the base_object template (it just casts without verifying).
34
+ # - TODO: scalar values are de facto behaving as if they were nullable.
35
+ # - TODO: logging when debugging is set.
36
+ openapi_any_of.each do |klass|
37
+ begin
38
+ next if klass == :AnyType # "nullable: true"
39
+ typed_data = find_and_cast_into_type(klass, data)
40
+ return typed_data if typed_data
41
+ rescue # rescue all errors so we keep iterating even if the current item lookup raises
42
+ end
43
+ end
44
+
45
+ openapi_any_of.include?(:AnyType) ? data : nil
46
+ end
47
+
48
+ private
49
+
50
+ SchemaMismatchError = Class.new(StandardError)
51
+
52
+ # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse.
53
+ def find_and_cast_into_type(klass, data)
54
+ return if data.nil?
55
+
56
+ case klass.to_s
57
+ when 'Boolean'
58
+ return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass)
59
+ when 'Float'
60
+ return data if data.instance_of?(Float)
61
+ when 'Integer'
62
+ return data if data.instance_of?(Integer)
63
+ when 'Time'
64
+ return Time.parse(data)
65
+ when 'Date'
66
+ return Date.parse(data)
67
+ when 'String'
68
+ return data if data.instance_of?(String)
69
+ when 'Object' # "type: object"
70
+ return data if data.instance_of?(Hash)
71
+ when /\AArray<(?<sub_type>.+)>\z/ # "type: array"
72
+ if data.instance_of?(Array)
73
+ sub_type = Regexp.last_match[:sub_type]
74
+ return data.map { |item| find_and_cast_into_type(sub_type, item) }
75
+ end
76
+ when /\AHash<String, (?<sub_type>.+)>\z/ # "type: object" with "additionalProperties: { ... }"
77
+ if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) }
78
+ sub_type = Regexp.last_match[:sub_type]
79
+ return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) }
80
+ end
81
+ else # model
82
+ const = SeatsChart.const_get(klass)
83
+ if const
84
+ if const.respond_to?(:openapi_any_of) # nested anyOf model
85
+ model = const.build(data)
86
+ return model if model
87
+ else
88
+ # raise if data contains keys that are not known to the model
89
+ raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty?
90
+ model = const.build_from_hash(data)
91
+ return model if model
92
+ end
93
+ end
94
+ end
95
+
96
+ raise # if no match by now, raise
97
+ rescue
98
+ raise SchemaMismatchError, "#{data} doesn't match the #{klass} type"
99
+ end
100
+ end
101
+ end
102
+
103
+ end
@@ -0,0 +1,103 @@
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
+ module GetApiWorkspacesOverviewCreatedByApiParameter
18
+ class << self
19
+ # List of class defined in anyOf (OpenAPI v3)
20
+ def openapi_any_of
21
+ [
22
+ :'Boolean'
23
+ ]
24
+ end
25
+
26
+ # Builds the object
27
+ # @param [Mixed] Data to be matched against the list of anyOf items
28
+ # @return [Object] Returns the model or the data itself
29
+ def build(data)
30
+ # Go through the list of anyOf items and attempt to identify the appropriate one.
31
+ # Note:
32
+ # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 })
33
+ # due to the way the deserialization is made in the base_object template (it just casts without verifying).
34
+ # - TODO: scalar values are de facto behaving as if they were nullable.
35
+ # - TODO: logging when debugging is set.
36
+ openapi_any_of.each do |klass|
37
+ begin
38
+ next if klass == :AnyType # "nullable: true"
39
+ typed_data = find_and_cast_into_type(klass, data)
40
+ return typed_data if typed_data
41
+ rescue # rescue all errors so we keep iterating even if the current item lookup raises
42
+ end
43
+ end
44
+
45
+ openapi_any_of.include?(:AnyType) ? data : nil
46
+ end
47
+
48
+ private
49
+
50
+ SchemaMismatchError = Class.new(StandardError)
51
+
52
+ # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse.
53
+ def find_and_cast_into_type(klass, data)
54
+ return if data.nil?
55
+
56
+ case klass.to_s
57
+ when 'Boolean'
58
+ return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass)
59
+ when 'Float'
60
+ return data if data.instance_of?(Float)
61
+ when 'Integer'
62
+ return data if data.instance_of?(Integer)
63
+ when 'Time'
64
+ return Time.parse(data)
65
+ when 'Date'
66
+ return Date.parse(data)
67
+ when 'String'
68
+ return data if data.instance_of?(String)
69
+ when 'Object' # "type: object"
70
+ return data if data.instance_of?(Hash)
71
+ when /\AArray<(?<sub_type>.+)>\z/ # "type: array"
72
+ if data.instance_of?(Array)
73
+ sub_type = Regexp.last_match[:sub_type]
74
+ return data.map { |item| find_and_cast_into_type(sub_type, item) }
75
+ end
76
+ when /\AHash<String, (?<sub_type>.+)>\z/ # "type: object" with "additionalProperties: { ... }"
77
+ if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) }
78
+ sub_type = Regexp.last_match[:sub_type]
79
+ return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) }
80
+ end
81
+ else # model
82
+ const = SeatsChart.const_get(klass)
83
+ if const
84
+ if const.respond_to?(:openapi_any_of) # nested anyOf model
85
+ model = const.build(data)
86
+ return model if model
87
+ else
88
+ # raise if data contains keys that are not known to the model
89
+ raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty?
90
+ model = const.build_from_hash(data)
91
+ return model if model
92
+ end
93
+ end
94
+ end
95
+
96
+ raise # if no match by now, raise
97
+ rescue
98
+ raise SchemaMismatchError, "#{data} doesn't match the #{klass} type"
99
+ end
100
+ end
101
+ end
102
+
103
+ end
@@ -35,15 +35,15 @@ module SeatsChart
35
35
  # Switch the event to another published chart of the workspace (see description).
36
36
  attr_accessor :chart_id
37
37
 
38
+ # Chart switch only: withdraw the active listings whose objects have no counterpart in the target chart, in the same transaction (409 `listing_has_holds` while any of their objects is held). Without it such a switch is refused with 409 `listing_objects_removed` (`listings`).
39
+ attr_accessor :withdraw_affected_listings
40
+
38
41
  # Event-only categories (replaces the list; null clears).
39
42
  attr_accessor :categories
40
43
 
41
44
  # Object label (seat label or GA area name) → category key (event category key, chart category id or name). Replaces the map; null clears.
42
45
  attr_accessor :object_categories
43
46
 
44
- # Chart switch only: withdraw the active listings whose objects have no counterpart in the target chart, in the same transaction (409 `listing_has_holds` while any of their objects is held). Without it such a switch is refused with 409 `listing_objects_removed` (`listings`).
45
- attr_accessor :withdraw_affected_listings
46
-
47
47
  # Attribute mapping from ruby-style variable name to JSON key.
48
48
  def self.attribute_map
49
49
  {
@@ -56,9 +56,9 @@ module SeatsChart
56
56
  :'for_sale_per_category' => :'forSalePerCategory',
57
57
  :'key' => :'key',
58
58
  :'chart_id' => :'chartId',
59
+ :'withdraw_affected_listings' => :'withdrawAffectedListings',
59
60
  :'categories' => :'categories',
60
- :'object_categories' => :'objectCategories',
61
- :'withdraw_affected_listings' => :'withdrawAffectedListings'
61
+ :'object_categories' => :'objectCategories'
62
62
  }
63
63
  end
64
64
 
@@ -79,9 +79,9 @@ module SeatsChart
79
79
  :'for_sale_per_category' => :'Hash<String, Boolean>',
80
80
  :'key' => :'String',
81
81
  :'chart_id' => :'String',
82
+ :'withdraw_affected_listings' => :'Boolean',
82
83
  :'categories' => :'Array<PostApiEventsRequestCategoriesInner>',
83
- :'object_categories' => :'Hash<String, String>',
84
- :'withdraw_affected_listings' => :'Boolean'
84
+ :'object_categories' => :'Hash<String, String>'
85
85
  }
86
86
  end
87
87
 
@@ -92,7 +92,7 @@ module SeatsChart
92
92
  :'category_overrides',
93
93
  :'key',
94
94
  :'categories',
95
- :'object_categories',
95
+ :'object_categories'
96
96
  ])
97
97
  end
98
98
 
@@ -151,6 +151,10 @@ module SeatsChart
151
151
  self.chart_id = attributes[:'chart_id']
152
152
  end
153
153
 
154
+ if attributes.key?(:'withdraw_affected_listings')
155
+ self.withdraw_affected_listings = attributes[:'withdraw_affected_listings']
156
+ end
157
+
154
158
  if attributes.key?(:'categories')
155
159
  if (value = attributes[:'categories']).is_a?(Array)
156
160
  self.categories = value
@@ -162,10 +166,6 @@ module SeatsChart
162
166
  self.object_categories = value
163
167
  end
164
168
  end
165
-
166
- if attributes.key?(:'withdraw_affected_listings')
167
- self.withdraw_affected_listings = attributes[:'withdraw_affected_listings']
168
- end
169
169
  end
170
170
 
171
171
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -324,9 +324,9 @@ module SeatsChart
324
324
  for_sale_per_category == o.for_sale_per_category &&
325
325
  key == o.key &&
326
326
  chart_id == o.chart_id &&
327
+ withdraw_affected_listings == o.withdraw_affected_listings &&
327
328
  categories == o.categories &&
328
- object_categories == o.object_categories &&
329
- withdraw_affected_listings == o.withdraw_affected_listings
329
+ object_categories == o.object_categories
330
330
  end
331
331
 
332
332
  # @see the `==` method
@@ -338,7 +338,7 @@ module SeatsChart
338
338
  # Calculates hash code according to all attributes.
339
339
  # @return [Integer] Hash code
340
340
  def hash
341
- [is_in_the_past, name, currency, date, table_booking_config, category_overrides, for_sale_per_category, key, chart_id, categories, object_categories, withdraw_affected_listings].hash
341
+ [is_in_the_past, name, currency, date, table_booking_config, category_overrides, for_sale_per_category, key, chart_id, withdraw_affected_listings, categories, object_categories].hash
342
342
  end
343
343
 
344
344
  # Builds the object from hash