seatschart 0.1.1 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (55) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +31 -3
  3. data/lib/seatschart/api/charts_api.rb +9 -9
  4. data/lib/seatschart/api/embed_api.rb +13 -2
  5. data/lib/seatschart/api/event_log_api.rb +2 -2
  6. data/lib/seatschart/api/events_api.rb +186 -20
  7. data/lib/seatschart/api/listings_api.rb +884 -0
  8. data/lib/seatschart/api/object_status_api.rb +2 -2
  9. data/lib/seatschart/api/seasons_api.rb +113 -8
  10. data/lib/seatschart/api/seats_api.rb +3 -22
  11. data/lib/seatschart/api/usage_api.rb +4 -4
  12. data/lib/seatschart/api/webhooks_api.rb +2 -2
  13. data/lib/seatschart/api/workspace_api.rb +4 -4
  14. data/lib/seatschart/models/api_error.rb +307 -0
  15. data/lib/seatschart/models/api_error_params_value.rb +105 -0
  16. data/lib/seatschart/models/get_api_monitoring_requests200_response.rb +17 -1
  17. data/lib/seatschart/models/get_api_monitoring_requests200_response_concurrency.rb +318 -0
  18. data/lib/seatschart/models/get_api_monitoring_requests200_response_concurrency_api_keys_inner.rb +297 -0
  19. data/lib/seatschart/models/get_api_monitoring_requests200_response_points_inner.rb +21 -4
  20. data/lib/seatschart/models/get_api_workspace_settings200_response_effective.rb +20 -4
  21. data/lib/seatschart/models/get_api_workspace_settings200_response_overrides.rb +13 -4
  22. data/lib/seatschart/models/get_api_workspace_settings200_response_sources.rb +32 -4
  23. data/lib/seatschart/models/patch_api_events_by_event_id_listings_by_listing_id_request.rb +379 -0
  24. data/lib/seatschart/models/patch_api_listing_types_by_key_request.rb +376 -0
  25. data/lib/seatschart/models/patch_api_seasons_by_season_id_partial_seasons_by_partial_season_id_request.rb +268 -0
  26. data/lib/seatschart/models/patch_api_seasons_by_season_id_request.rb +27 -1
  27. data/lib/seatschart/models/patch_api_webhooks_by_id_request.rb +1 -1
  28. data/lib/seatschart/models/patch_api_workspace_settings_request.rb +12 -1
  29. data/lib/seatschart/models/post_api_charts_by_chart_id_actions_validate_request_seats_inner_accessibility.rb +6 -6
  30. data/lib/seatschart/models/post_api_events_actions_change_object_status_request_status_changes_inner.rb +0 -11
  31. data/lib/seatschart/models/post_api_events_by_event_id_actions_change_object_status_request.rb +13 -26
  32. data/lib/seatschart/models/post_api_events_by_event_id_actions_change_object_status_request_listing.rb +392 -0
  33. data/lib/seatschart/models/post_api_events_by_event_id_actions_mark_everything_as_not_for_sale_request.rb +215 -0
  34. data/lib/seatschart/models/post_api_events_by_event_id_listings_by_listing_id_actions_mark_sold_request.rb +243 -0
  35. data/lib/seatschart/models/post_api_events_by_event_id_listings_request.rb +435 -0
  36. data/lib/seatschart/models/post_api_events_by_event_id_listings_request_objects_inner.rb +104 -0
  37. data/lib/seatschart/models/post_api_events_by_event_id_listings_request_objects_inner_any_of.rb +325 -0
  38. data/lib/seatschart/models/post_api_ga_confirm_request.rb +0 -44
  39. data/lib/seatschart/models/post_api_ga_release_request.rb +0 -11
  40. data/lib/seatschart/models/post_api_ga_reserve_request.rb +0 -33
  41. data/lib/seatschart/models/post_api_hold_tokens_request.rb +0 -22
  42. data/lib/seatschart/models/post_api_listing_types_request.rb +439 -0
  43. data/lib/seatschart/models/post_api_quotes_request.rb +0 -22
  44. data/lib/seatschart/models/post_api_seasons_by_season_id_partial_seasons_request.rb +27 -1
  45. data/lib/seatschart/models/post_api_seasons_request.rb +27 -1
  46. data/lib/seatschart/models/post_api_seats_best_available_request.rb +0 -11
  47. data/lib/seatschart/models/post_api_seats_confirm_request.rb +0 -44
  48. data/lib/seatschart/models/post_api_seats_release_request.rb +0 -11
  49. data/lib/seatschart/models/post_api_seats_reserve_request.rb +0 -22
  50. data/lib/seatschart/models/post_api_viewer_tokens_request.rb +0 -11
  51. data/lib/seatschart/models/post_api_webhooks_request.rb +1 -1
  52. data/lib/seatschart/models/put_api_charts_by_chart_id_map_draft_request.rb +348 -0
  53. data/lib/seatschart/version.rb +1 -1
  54. data/lib/seatschart.rb +16 -0
  55. metadata +17 -1
@@ -0,0 +1,104 @@
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 PostApiEventsByEventIdListingsRequestObjectsInner
18
+ class << self
19
+ # List of class defined in anyOf (OpenAPI v3)
20
+ def openapi_any_of
21
+ [
22
+ :'PostApiEventsByEventIdListingsRequestObjectsInnerAnyOf',
23
+ :'String'
24
+ ]
25
+ end
26
+
27
+ # Builds the object
28
+ # @param [Mixed] Data to be matched against the list of anyOf items
29
+ # @return [Object] Returns the model or the data itself
30
+ def build(data)
31
+ # Go through the list of anyOf items and attempt to identify the appropriate one.
32
+ # Note:
33
+ # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 })
34
+ # due to the way the deserialization is made in the base_object template (it just casts without verifying).
35
+ # - TODO: scalar values are de facto behaving as if they were nullable.
36
+ # - TODO: logging when debugging is set.
37
+ openapi_any_of.each do |klass|
38
+ begin
39
+ next if klass == :AnyType # "nullable: true"
40
+ typed_data = find_and_cast_into_type(klass, data)
41
+ return typed_data if typed_data
42
+ rescue # rescue all errors so we keep iterating even if the current item lookup raises
43
+ end
44
+ end
45
+
46
+ openapi_any_of.include?(:AnyType) ? data : nil
47
+ end
48
+
49
+ private
50
+
51
+ SchemaMismatchError = Class.new(StandardError)
52
+
53
+ # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse.
54
+ def find_and_cast_into_type(klass, data)
55
+ return if data.nil?
56
+
57
+ case klass.to_s
58
+ when 'Boolean'
59
+ return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass)
60
+ when 'Float'
61
+ return data if data.instance_of?(Float)
62
+ when 'Integer'
63
+ return data if data.instance_of?(Integer)
64
+ when 'Time'
65
+ return Time.parse(data)
66
+ when 'Date'
67
+ return Date.parse(data)
68
+ when 'String'
69
+ return data if data.instance_of?(String)
70
+ when 'Object' # "type: object"
71
+ return data if data.instance_of?(Hash)
72
+ when /\AArray<(?<sub_type>.+)>\z/ # "type: array"
73
+ if data.instance_of?(Array)
74
+ sub_type = Regexp.last_match[:sub_type]
75
+ return data.map { |item| find_and_cast_into_type(sub_type, item) }
76
+ end
77
+ when /\AHash<String, (?<sub_type>.+)>\z/ # "type: object" with "additionalProperties: { ... }"
78
+ if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) }
79
+ sub_type = Regexp.last_match[:sub_type]
80
+ return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) }
81
+ end
82
+ else # model
83
+ const = SeatsChart.const_get(klass)
84
+ if const
85
+ if const.respond_to?(:openapi_any_of) # nested anyOf model
86
+ model = const.build(data)
87
+ return model if model
88
+ else
89
+ # raise if data contains keys that are not known to the model
90
+ raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty?
91
+ model = const.build_from_hash(data)
92
+ return model if model
93
+ end
94
+ end
95
+ end
96
+
97
+ raise # if no match by now, raise
98
+ rescue
99
+ raise SchemaMismatchError, "#{data} doesn't match the #{klass} type"
100
+ end
101
+ end
102
+ end
103
+
104
+ end
@@ -0,0 +1,325 @@
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 PostApiEventsByEventIdListingsRequestObjectsInnerAnyOf
18
+ # Seat id or label, or general-admission area id or name (with quantity).
19
+ attr_accessor :object_id
20
+
21
+ # General-admission places (required for an area).
22
+ attr_accessor :quantity
23
+
24
+ attr_accessor :price_cents
25
+
26
+ # Attribute mapping from ruby-style variable name to JSON key.
27
+ def self.attribute_map
28
+ {
29
+ :'object_id' => :'objectId',
30
+ :'quantity' => :'quantity',
31
+ :'price_cents' => :'priceCents'
32
+ }
33
+ end
34
+
35
+ # Returns all the JSON keys this model knows about
36
+ def self.acceptable_attributes
37
+ attribute_map.values
38
+ end
39
+
40
+ # Attribute type mapping.
41
+ def self.openapi_types
42
+ {
43
+ :'object_id' => :'String',
44
+ :'quantity' => :'Integer',
45
+ :'price_cents' => :'Integer'
46
+ }
47
+ end
48
+
49
+ # List of attributes with nullable: true
50
+ def self.openapi_nullable
51
+ Set.new([
52
+ ])
53
+ end
54
+
55
+ # Initializes the object
56
+ # @param [Hash] attributes Model attributes in the form of hash
57
+ def initialize(attributes = {})
58
+ if (!attributes.is_a?(Hash))
59
+ fail ArgumentError, "The input argument (attributes) must be a hash in `SeatsChart::PostApiEventsByEventIdListingsRequestObjectsInnerAnyOf` initialize method"
60
+ end
61
+
62
+ # check to see if the attribute exists and convert string to symbol for hash key
63
+ attributes = attributes.each_with_object({}) { |(k, v), h|
64
+ if (!self.class.attribute_map.key?(k.to_sym))
65
+ fail ArgumentError, "`#{k}` is not a valid attribute in `SeatsChart::PostApiEventsByEventIdListingsRequestObjectsInnerAnyOf`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
66
+ end
67
+ h[k.to_sym] = v
68
+ }
69
+
70
+ if attributes.key?(:'object_id')
71
+ self.object_id = attributes[:'object_id']
72
+ else
73
+ self.object_id = nil
74
+ end
75
+
76
+ if attributes.key?(:'quantity')
77
+ self.quantity = attributes[:'quantity']
78
+ end
79
+
80
+ if attributes.key?(:'price_cents')
81
+ self.price_cents = attributes[:'price_cents']
82
+ end
83
+ end
84
+
85
+ # Show invalid properties with the reasons. Usually used together with valid?
86
+ # @return Array for valid properties with the reasons
87
+ def list_invalid_properties
88
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
89
+ invalid_properties = Array.new
90
+ if @object_id.nil?
91
+ invalid_properties.push('invalid value for "object_id", object_id cannot be nil.')
92
+ end
93
+
94
+ if @object_id.to_s.length > 128
95
+ invalid_properties.push('invalid value for "object_id", the character length must be smaller than or equal to 128.')
96
+ end
97
+
98
+ if @object_id.to_s.length < 1
99
+ invalid_properties.push('invalid value for "object_id", the character length must be great than or equal to 1.')
100
+ end
101
+
102
+ if !@quantity.nil? && @quantity > 10000
103
+ invalid_properties.push('invalid value for "quantity", must be smaller than or equal to 10000.')
104
+ end
105
+
106
+ if !@quantity.nil? && @quantity < 1
107
+ invalid_properties.push('invalid value for "quantity", must be greater than or equal to 1.')
108
+ end
109
+
110
+ if !@price_cents.nil? && @price_cents > 99999999
111
+ invalid_properties.push('invalid value for "price_cents", must be smaller than or equal to 99999999.')
112
+ end
113
+
114
+ if !@price_cents.nil? && @price_cents < 0
115
+ invalid_properties.push('invalid value for "price_cents", must be greater than or equal to 0.')
116
+ end
117
+
118
+ invalid_properties
119
+ end
120
+
121
+ # Check to see if the all the properties in the model are valid
122
+ # @return true if the model is valid
123
+ def valid?
124
+ warn '[DEPRECATED] the `valid?` method is obsolete'
125
+ return false if @object_id.nil?
126
+ return false if @object_id.to_s.length > 128
127
+ return false if @object_id.to_s.length < 1
128
+ return false if !@quantity.nil? && @quantity > 10000
129
+ return false if !@quantity.nil? && @quantity < 1
130
+ return false if !@price_cents.nil? && @price_cents > 99999999
131
+ return false if !@price_cents.nil? && @price_cents < 0
132
+ true
133
+ end
134
+
135
+ # Custom attribute writer method with validation
136
+ # @param [Object] object_id Value to be assigned
137
+ def object_id=(object_id)
138
+ if object_id.nil?
139
+ fail ArgumentError, 'object_id cannot be nil'
140
+ end
141
+
142
+ if object_id.to_s.length > 128
143
+ fail ArgumentError, 'invalid value for "object_id", the character length must be smaller than or equal to 128.'
144
+ end
145
+
146
+ if object_id.to_s.length < 1
147
+ fail ArgumentError, 'invalid value for "object_id", the character length must be great than or equal to 1.'
148
+ end
149
+
150
+ @object_id = object_id
151
+ end
152
+
153
+ # Custom attribute writer method with validation
154
+ # @param [Object] quantity Value to be assigned
155
+ def quantity=(quantity)
156
+ if quantity.nil?
157
+ fail ArgumentError, 'quantity cannot be nil'
158
+ end
159
+
160
+ if quantity > 10000
161
+ fail ArgumentError, 'invalid value for "quantity", must be smaller than or equal to 10000.'
162
+ end
163
+
164
+ if quantity < 1
165
+ fail ArgumentError, 'invalid value for "quantity", must be greater than or equal to 1.'
166
+ end
167
+
168
+ @quantity = quantity
169
+ end
170
+
171
+ # Custom attribute writer method with validation
172
+ # @param [Object] price_cents Value to be assigned
173
+ def price_cents=(price_cents)
174
+ if price_cents.nil?
175
+ fail ArgumentError, 'price_cents cannot be nil'
176
+ end
177
+
178
+ if price_cents > 99999999
179
+ fail ArgumentError, 'invalid value for "price_cents", must be smaller than or equal to 99999999.'
180
+ end
181
+
182
+ if price_cents < 0
183
+ fail ArgumentError, 'invalid value for "price_cents", must be greater than or equal to 0.'
184
+ end
185
+
186
+ @price_cents = price_cents
187
+ end
188
+
189
+ # Checks equality by comparing each attribute.
190
+ # @param [Object] Object to be compared
191
+ def ==(o)
192
+ return true if self.equal?(o)
193
+ self.class == o.class &&
194
+ object_id == o.object_id &&
195
+ quantity == o.quantity &&
196
+ price_cents == o.price_cents
197
+ end
198
+
199
+ # @see the `==` method
200
+ # @param [Object] Object to be compared
201
+ def eql?(o)
202
+ self == o
203
+ end
204
+
205
+ # Calculates hash code according to all attributes.
206
+ # @return [Integer] Hash code
207
+ def hash
208
+ [object_id, quantity, price_cents].hash
209
+ end
210
+
211
+ # Builds the object from hash
212
+ # @param [Hash] attributes Model attributes in the form of hash
213
+ # @return [Object] Returns the model itself
214
+ def self.build_from_hash(attributes)
215
+ return nil unless attributes.is_a?(Hash)
216
+ attributes = attributes.transform_keys(&:to_sym)
217
+ transformed_hash = {}
218
+ openapi_types.each_pair do |key, type|
219
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
220
+ transformed_hash["#{key}"] = nil
221
+ elsif type =~ /\AArray<(.*)>/i
222
+ # check to ensure the input is an array given that the attribute
223
+ # is documented as an array but the input is not
224
+ if attributes[attribute_map[key]].is_a?(Array)
225
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
226
+ end
227
+ elsif !attributes[attribute_map[key]].nil?
228
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
229
+ end
230
+ end
231
+ new(transformed_hash)
232
+ end
233
+
234
+ # Deserializes the data based on type
235
+ # @param string type Data type
236
+ # @param string value Value to be deserialized
237
+ # @return [Object] Deserialized data
238
+ def self._deserialize(type, value)
239
+ case type.to_sym
240
+ when :Time
241
+ Time.parse(value)
242
+ when :Date
243
+ Date.parse(value)
244
+ when :String
245
+ value.to_s
246
+ when :Integer
247
+ value.to_i
248
+ when :Float
249
+ value.to_f
250
+ when :Boolean
251
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
252
+ true
253
+ else
254
+ false
255
+ end
256
+ when :Object
257
+ # generic object (usually a Hash), return directly
258
+ value
259
+ when /\AArray<(?<inner_type>.+)>\z/
260
+ inner_type = Regexp.last_match[:inner_type]
261
+ value.map { |v| _deserialize(inner_type, v) }
262
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
263
+ k_type = Regexp.last_match[:k_type]
264
+ v_type = Regexp.last_match[:v_type]
265
+ {}.tap do |hash|
266
+ value.each do |k, v|
267
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
268
+ end
269
+ end
270
+ else # model
271
+ # models (e.g. Pet) or oneOf
272
+ klass = SeatsChart.const_get(type)
273
+ klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
274
+ end
275
+ end
276
+
277
+ # Returns the string representation of the object
278
+ # @return [String] String presentation of the object
279
+ def to_s
280
+ to_hash.to_s
281
+ end
282
+
283
+ # to_body is an alias to to_hash (backward compatibility)
284
+ # @return [Hash] Returns the object in the form of hash
285
+ def to_body
286
+ to_hash
287
+ end
288
+
289
+ # Returns the object in the form of hash
290
+ # @return [Hash] Returns the object in the form of hash
291
+ def to_hash
292
+ hash = {}
293
+ self.class.attribute_map.each_pair do |attr, param|
294
+ value = self.send(attr)
295
+ if value.nil?
296
+ is_nullable = self.class.openapi_nullable.include?(attr)
297
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
298
+ end
299
+
300
+ hash[param] = _to_hash(value)
301
+ end
302
+ hash
303
+ end
304
+
305
+ # Outputs non-array value in the form of hash
306
+ # For object, use to_hash. Otherwise, just return the value
307
+ # @param [Object] value Any valid value
308
+ # @return [Hash] Returns the value in the form of hash
309
+ def _to_hash(value)
310
+ if value.is_a?(Array)
311
+ value.compact.map { |v| _to_hash(v) }
312
+ elsif value.is_a?(Hash)
313
+ {}.tap do |hash|
314
+ value.each { |k, v| hash[k] = _to_hash(v) }
315
+ end
316
+ elsif value.respond_to? :to_hash
317
+ value.to_hash
318
+ else
319
+ value
320
+ end
321
+ end
322
+
323
+ end
324
+
325
+ end
@@ -212,11 +212,6 @@ module SeatsChart
212
212
  invalid_properties.push('invalid value for "user_id", the character length must be great than or equal to 1.')
213
213
  end
214
214
 
215
- pattern = Regexp.new(/^(?:[^\u0000\uD800-\uDFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF])+$/)
216
- if @user_id !~ pattern
217
- invalid_properties.push("invalid value for \"user_id\", must conform to the pattern #{pattern}.")
218
- end
219
-
220
215
  if !@hold_token.nil? && @hold_token.to_s.length > 36
221
216
  invalid_properties.push('invalid value for "hold_token", the character length must be smaller than or equal to 36.')
222
217
  end
@@ -233,11 +228,6 @@ module SeatsChart
233
228
  invalid_properties.push('invalid value for "ticket_type_id", the character length must be great than or equal to 1.')
234
229
  end
235
230
 
236
- pattern = Regexp.new(/^(?:[^\u0000\uD800-\uDFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF])+$/)
237
- if !@ticket_type_id.nil? && @ticket_type_id !~ pattern
238
- invalid_properties.push("invalid value for \"ticket_type_id\", must conform to the pattern #{pattern}.")
239
- end
240
-
241
231
  if !@external_payment_id.nil? && @external_payment_id.to_s.length > 255
242
232
  invalid_properties.push('invalid value for "external_payment_id", the character length must be smaller than or equal to 255.')
243
233
  end
@@ -246,11 +236,6 @@ module SeatsChart
246
236
  invalid_properties.push('invalid value for "external_payment_id", the character length must be great than or equal to 1.')
247
237
  end
248
238
 
249
- pattern = Regexp.new(/^(?:[^\u0000\uD800-\uDFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF])+$/)
250
- if !@external_payment_id.nil? && @external_payment_id !~ pattern
251
- invalid_properties.push("invalid value for \"external_payment_id\", must conform to the pattern #{pattern}.")
252
- end
253
-
254
239
  if !@paid_amount_cents.nil? && @paid_amount_cents > 2147483647
255
240
  invalid_properties.push('invalid value for "paid_amount_cents", must be smaller than or equal to 2147483647.')
256
241
  end
@@ -280,11 +265,6 @@ module SeatsChart
280
265
  invalid_properties.push('invalid value for "ticket_buyer_id", the character length must be great than or equal to 1.')
281
266
  end
282
267
 
283
- pattern = Regexp.new(/^(?:[^\u0000-\u001F\u007F\uD800-\uDFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF])+$/)
284
- if !@ticket_buyer_id.nil? && @ticket_buyer_id !~ pattern
285
- invalid_properties.push("invalid value for \"ticket_buyer_id\", must conform to the pattern #{pattern}.")
286
- end
287
-
288
268
  invalid_properties
289
269
  end
290
270
 
@@ -304,15 +284,12 @@ module SeatsChart
304
284
  return false if @user_id.nil?
305
285
  return false if @user_id.to_s.length > 256
306
286
  return false if @user_id.to_s.length < 1
307
- return false if @user_id !~ Regexp.new(/^(?:[^\u0000\uD800-\uDFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF])+$/)
308
287
  return false if !@hold_token.nil? && @hold_token.to_s.length > 36
309
288
  return false if !@hold_token.nil? && @hold_token.to_s.length < 36
310
289
  return false if !@ticket_type_id.nil? && @ticket_type_id.to_s.length > 64
311
290
  return false if !@ticket_type_id.nil? && @ticket_type_id.to_s.length < 1
312
- return false if !@ticket_type_id.nil? && @ticket_type_id !~ Regexp.new(/^(?:[^\u0000\uD800-\uDFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF])+$/)
313
291
  return false if !@external_payment_id.nil? && @external_payment_id.to_s.length > 255
314
292
  return false if !@external_payment_id.nil? && @external_payment_id.to_s.length < 1
315
- return false if !@external_payment_id.nil? && @external_payment_id !~ Regexp.new(/^(?:[^\u0000\uD800-\uDFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF])+$/)
316
293
  return false if !@paid_amount_cents.nil? && @paid_amount_cents > 2147483647
317
294
  return false if !@paid_amount_cents.nil? && @paid_amount_cents < 0
318
295
  return false if !@paid_currency.nil? && @paid_currency !~ Regexp.new(/^[A-Z]{3}$/)
@@ -320,7 +297,6 @@ module SeatsChart
320
297
  return false if !@channel.nil? && @channel.to_s.length < 1
321
298
  return false if !@ticket_buyer_id.nil? && @ticket_buyer_id.to_s.length > 256
322
299
  return false if !@ticket_buyer_id.nil? && @ticket_buyer_id.to_s.length < 1
323
- return false if !@ticket_buyer_id.nil? && @ticket_buyer_id !~ Regexp.new(/^(?:[^\u0000-\u001F\u007F\uD800-\uDFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF])+$/)
324
300
  true
325
301
  end
326
302
 
@@ -393,11 +369,6 @@ module SeatsChart
393
369
  fail ArgumentError, 'invalid value for "user_id", the character length must be great than or equal to 1.'
394
370
  end
395
371
 
396
- pattern = Regexp.new(/^(?:[^\u0000\uD800-\uDFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF])+$/)
397
- if user_id !~ pattern
398
- fail ArgumentError, "invalid value for \"user_id\", must conform to the pattern #{pattern}."
399
- end
400
-
401
372
  @user_id = user_id
402
373
  end
403
374
 
@@ -434,11 +405,6 @@ module SeatsChart
434
405
  fail ArgumentError, 'invalid value for "ticket_type_id", the character length must be great than or equal to 1.'
435
406
  end
436
407
 
437
- pattern = Regexp.new(/^(?:[^\u0000\uD800-\uDFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF])+$/)
438
- if ticket_type_id !~ pattern
439
- fail ArgumentError, "invalid value for \"ticket_type_id\", must conform to the pattern #{pattern}."
440
- end
441
-
442
408
  @ticket_type_id = ticket_type_id
443
409
  end
444
410
 
@@ -457,11 +423,6 @@ module SeatsChart
457
423
  fail ArgumentError, 'invalid value for "external_payment_id", the character length must be great than or equal to 1.'
458
424
  end
459
425
 
460
- pattern = Regexp.new(/^(?:[^\u0000\uD800-\uDFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF])+$/)
461
- if external_payment_id !~ pattern
462
- fail ArgumentError, "invalid value for \"external_payment_id\", must conform to the pattern #{pattern}."
463
- end
464
-
465
426
  @external_payment_id = external_payment_id
466
427
  end
467
428
 
@@ -531,11 +492,6 @@ module SeatsChart
531
492
  fail ArgumentError, 'invalid value for "ticket_buyer_id", the character length must be great than or equal to 1.'
532
493
  end
533
494
 
534
- pattern = Regexp.new(/^(?:[^\u0000-\u001F\u007F\uD800-\uDFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF])+$/)
535
- if ticket_buyer_id !~ pattern
536
- fail ArgumentError, "invalid value for \"ticket_buyer_id\", must conform to the pattern #{pattern}."
537
- end
538
-
539
495
  @ticket_buyer_id = ticket_buyer_id
540
496
  end
541
497
 
@@ -133,11 +133,6 @@ module SeatsChart
133
133
  invalid_properties.push('invalid value for "user_id", the character length must be great than or equal to 1.')
134
134
  end
135
135
 
136
- pattern = Regexp.new(/^(?:[^\u0000\uD800-\uDFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF])+$/)
137
- if @user_id !~ pattern
138
- invalid_properties.push("invalid value for \"user_id\", must conform to the pattern #{pattern}.")
139
- end
140
-
141
136
  if !@hold_token.nil? && @hold_token.to_s.length > 36
142
137
  invalid_properties.push('invalid value for "hold_token", the character length must be smaller than or equal to 36.')
143
138
  end
@@ -162,7 +157,6 @@ module SeatsChart
162
157
  return false if @user_id.nil?
163
158
  return false if @user_id.to_s.length > 256
164
159
  return false if @user_id.to_s.length < 1
165
- return false if @user_id !~ Regexp.new(/^(?:[^\u0000\uD800-\uDFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF])+$/)
166
160
  return false if !@hold_token.nil? && @hold_token.to_s.length > 36
167
161
  return false if !@hold_token.nil? && @hold_token.to_s.length < 36
168
162
  true
@@ -219,11 +213,6 @@ module SeatsChart
219
213
  fail ArgumentError, 'invalid value for "user_id", the character length must be great than or equal to 1.'
220
214
  end
221
215
 
222
- pattern = Regexp.new(/^(?:[^\u0000\uD800-\uDFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF])+$/)
223
- if user_id !~ pattern
224
- fail ArgumentError, "invalid value for \"user_id\", must conform to the pattern #{pattern}."
225
- end
226
-
227
216
  @user_id = user_id
228
217
  end
229
218
 
@@ -173,11 +173,6 @@ module SeatsChart
173
173
  invalid_properties.push('invalid value for "user_id", the character length must be great than or equal to 1.')
174
174
  end
175
175
 
176
- pattern = Regexp.new(/^(?:[^\u0000\uD800-\uDFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF])+$/)
177
- if @user_id !~ pattern
178
- invalid_properties.push("invalid value for \"user_id\", must conform to the pattern #{pattern}.")
179
- end
180
-
181
176
  if !@channel.nil? && @channel.to_s.length > 32
182
177
  invalid_properties.push('invalid value for "channel", the character length must be smaller than or equal to 32.')
183
178
  end
@@ -194,11 +189,6 @@ module SeatsChart
194
189
  invalid_properties.push('invalid value for "ticket_buyer_id", the character length must be great than or equal to 1.')
195
190
  end
196
191
 
197
- pattern = Regexp.new(/^(?:[^\u0000-\u001F\u007F\uD800-\uDFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF])+$/)
198
- if !@ticket_buyer_id.nil? && @ticket_buyer_id !~ pattern
199
- invalid_properties.push("invalid value for \"ticket_buyer_id\", must conform to the pattern #{pattern}.")
200
- end
201
-
202
192
  if !@ticket_type_id.nil? && @ticket_type_id.to_s.length > 64
203
193
  invalid_properties.push('invalid value for "ticket_type_id", the character length must be smaller than or equal to 64.')
204
194
  end
@@ -207,11 +197,6 @@ module SeatsChart
207
197
  invalid_properties.push('invalid value for "ticket_type_id", the character length must be great than or equal to 1.')
208
198
  end
209
199
 
210
- pattern = Regexp.new(/^(?:[^\u0000\uD800-\uDFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF])+$/)
211
- if !@ticket_type_id.nil? && @ticket_type_id !~ pattern
212
- invalid_properties.push("invalid value for \"ticket_type_id\", must conform to the pattern #{pattern}.")
213
- end
214
-
215
200
  invalid_properties
216
201
  end
217
202
 
@@ -231,15 +216,12 @@ module SeatsChart
231
216
  return false if @user_id.nil?
232
217
  return false if @user_id.to_s.length > 256
233
218
  return false if @user_id.to_s.length < 1
234
- return false if @user_id !~ Regexp.new(/^(?:[^\u0000\uD800-\uDFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF])+$/)
235
219
  return false if !@channel.nil? && @channel.to_s.length > 32
236
220
  return false if !@channel.nil? && @channel.to_s.length < 1
237
221
  return false if !@ticket_buyer_id.nil? && @ticket_buyer_id.to_s.length > 256
238
222
  return false if !@ticket_buyer_id.nil? && @ticket_buyer_id.to_s.length < 1
239
- return false if !@ticket_buyer_id.nil? && @ticket_buyer_id !~ Regexp.new(/^(?:[^\u0000-\u001F\u007F\uD800-\uDFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF])+$/)
240
223
  return false if !@ticket_type_id.nil? && @ticket_type_id.to_s.length > 64
241
224
  return false if !@ticket_type_id.nil? && @ticket_type_id.to_s.length < 1
242
- return false if !@ticket_type_id.nil? && @ticket_type_id !~ Regexp.new(/^(?:[^\u0000\uD800-\uDFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF])+$/)
243
225
  true
244
226
  end
245
227
 
@@ -312,11 +294,6 @@ module SeatsChart
312
294
  fail ArgumentError, 'invalid value for "user_id", the character length must be great than or equal to 1.'
313
295
  end
314
296
 
315
- pattern = Regexp.new(/^(?:[^\u0000\uD800-\uDFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF])+$/)
316
- if user_id !~ pattern
317
- fail ArgumentError, "invalid value for \"user_id\", must conform to the pattern #{pattern}."
318
- end
319
-
320
297
  @user_id = user_id
321
298
  end
322
299
 
@@ -353,11 +330,6 @@ module SeatsChart
353
330
  fail ArgumentError, 'invalid value for "ticket_buyer_id", the character length must be great than or equal to 1.'
354
331
  end
355
332
 
356
- pattern = Regexp.new(/^(?:[^\u0000-\u001F\u007F\uD800-\uDFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF])+$/)
357
- if ticket_buyer_id !~ pattern
358
- fail ArgumentError, "invalid value for \"ticket_buyer_id\", must conform to the pattern #{pattern}."
359
- end
360
-
361
333
  @ticket_buyer_id = ticket_buyer_id
362
334
  end
363
335
 
@@ -376,11 +348,6 @@ module SeatsChart
376
348
  fail ArgumentError, 'invalid value for "ticket_type_id", the character length must be great than or equal to 1.'
377
349
  end
378
350
 
379
- pattern = Regexp.new(/^(?:[^\u0000\uD800-\uDFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF])+$/)
380
- if ticket_type_id !~ pattern
381
- fail ArgumentError, "invalid value for \"ticket_type_id\", must conform to the pattern #{pattern}."
382
- end
383
-
384
351
  @ticket_type_id = ticket_type_id
385
352
  end
386
353