seatschart 0.4.0 → 0.6.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 +46 -10
- data/lib/seatschart/api/audit_api.rb +2 -2
- data/lib/seatschart/api/auth_api.rb +4 -4
- data/lib/seatschart/api/billing_api.rb +93 -12
- data/lib/seatschart/api/charts_api.rb +52 -52
- data/lib/seatschart/api/embed_origins_api.rb +55 -0
- data/lib/seatschart/api/events_api.rb +110 -104
- data/lib/seatschart/api/orders_api.rb +6 -6
- data/lib/seatschart/api/seasons_api.rb +88 -88
- data/lib/seatschart/api/seats_api.rb +8 -8
- data/lib/seatschart/api/usage_api.rb +4 -4
- data/lib/seatschart/api/workspace_api.rb +52 -40
- data/lib/seatschart/models/{api_error.rb → api_error_body.rb} +7 -7
- data/lib/seatschart/models/delete_api_workspaces_by_workspace_id_members_by_user_id200_response.rb +221 -0
- data/lib/seatschart/models/get_api_workspaces_by_workspace_id_invitations200_response.rb +239 -0
- data/lib/seatschart/models/get_api_workspaces_by_workspace_id_invitations200_response_invitations_inner.rb +286 -0
- data/lib/seatschart/models/get_api_workspaces_by_workspace_id_members200_response.rb +239 -0
- data/lib/seatschart/models/get_api_workspaces_by_workspace_id_members200_response_members_inner.rb +288 -0
- data/lib/seatschart/models/get_api_workspaces_overview200_response.rb +288 -0
- data/lib/seatschart/models/get_api_workspaces_overview200_response_account.rb +270 -0
- data/lib/seatschart/models/get_api_workspaces_overview200_response_account_charts.rb +233 -0
- data/lib/seatschart/models/get_api_workspaces_overview200_response_account_plan.rb +237 -0
- data/lib/seatschart/models/get_api_workspaces_overview200_response_items_inner.rb +439 -0
- data/lib/seatschart/models/get_api_workspaces_overview200_response_items_inner_revenue.rb +234 -0
- data/lib/seatschart/models/get_api_workspaces_overview200_response_items_inner_usage.rb +271 -0
- data/lib/seatschart/models/get_api_workspaces_overview200_response_seats.rb +431 -0
- data/lib/seatschart/models/get_api_workspaces_overview200_response_seats_overage.rb +233 -0
- data/lib/seatschart/models/get_api_workspaces_overview200_response_seats_projected.rb +237 -0
- data/lib/seatschart/models/get_api_workspaces_overview200_response_totals.rb +318 -0
- data/lib/seatschart/models/get_api_workspaces_overview200_response_totals_revenue.rb +238 -0
- data/lib/seatschart/models/get_api_workspaces_overview200_response_totals_seats.rb +253 -0
- data/lib/seatschart/models/post_api_billing_actions_change_plan_request.rb +256 -0
- data/lib/seatschart/models/post_api_events_by_event_id_actions_update_extra_data_request_objects_inner.rb +0 -2
- data/lib/seatschart/models/post_api_orders_by_order_id_cancel_request.rb +44 -4
- data/lib/seatschart/models/post_api_sandboxes201_response.rb +0 -4
- data/lib/seatschart/models/post_api_sandboxes_by_sandbox_id_actions_reset200_response.rb +0 -2
- data/lib/seatschart/models/post_api_seats_confirm_request.rb +26 -4
- data/lib/seatschart/models/post_api_workspaces200_response.rb +0 -4
- data/lib/seatschart/models/post_api_workspaces_by_workspace_id_invitations201_response.rb +238 -0
- data/lib/seatschart/models/post_api_workspaces_by_workspace_id_invitations201_response_invitation.rb +286 -0
- data/lib/seatschart/version.rb +1 -1
- data/lib/seatschart/workspaces.rb +172 -0
- data/lib/seatschart.rb +23 -3
- metadata +25 -5
- data/lib/seatschart/models/get_api_workspaces_created_by_api_parameter.rb +0 -103
- data/lib/seatschart/models/get_api_workspaces_overview_created_by_api_parameter.rb +0 -103
|
@@ -0,0 +1,256 @@
|
|
|
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 PostApiBillingActionsChangePlanRequest
|
|
18
|
+
# The plan to switch to. Only `free` changes here; paid plans (`starter`, `pro`, `business`, `scale`) start through checkout.
|
|
19
|
+
attr_accessor :plan_id
|
|
20
|
+
|
|
21
|
+
class EnumAttributeValidator
|
|
22
|
+
attr_reader :datatype
|
|
23
|
+
attr_reader :allowable_values
|
|
24
|
+
|
|
25
|
+
def initialize(datatype, allowable_values)
|
|
26
|
+
@allowable_values = allowable_values.map do |value|
|
|
27
|
+
case datatype.to_s
|
|
28
|
+
when /Integer/i
|
|
29
|
+
value.to_i
|
|
30
|
+
when /Float/i
|
|
31
|
+
value.to_f
|
|
32
|
+
else
|
|
33
|
+
value
|
|
34
|
+
end
|
|
35
|
+
end
|
|
36
|
+
end
|
|
37
|
+
|
|
38
|
+
def valid?(value)
|
|
39
|
+
!value || allowable_values.include?(value)
|
|
40
|
+
end
|
|
41
|
+
end
|
|
42
|
+
|
|
43
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
44
|
+
def self.attribute_map
|
|
45
|
+
{
|
|
46
|
+
:'plan_id' => :'planId'
|
|
47
|
+
}
|
|
48
|
+
end
|
|
49
|
+
|
|
50
|
+
# Returns all the JSON keys this model knows about
|
|
51
|
+
def self.acceptable_attributes
|
|
52
|
+
attribute_map.values
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
# Attribute type mapping.
|
|
56
|
+
def self.openapi_types
|
|
57
|
+
{
|
|
58
|
+
:'plan_id' => :'String'
|
|
59
|
+
}
|
|
60
|
+
end
|
|
61
|
+
|
|
62
|
+
# List of attributes with nullable: true
|
|
63
|
+
def self.openapi_nullable
|
|
64
|
+
Set.new([
|
|
65
|
+
])
|
|
66
|
+
end
|
|
67
|
+
|
|
68
|
+
# Initializes the object
|
|
69
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
70
|
+
def initialize(attributes = {})
|
|
71
|
+
if (!attributes.is_a?(Hash))
|
|
72
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `SeatsChart::PostApiBillingActionsChangePlanRequest` initialize method"
|
|
73
|
+
end
|
|
74
|
+
|
|
75
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
76
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
77
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
78
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `SeatsChart::PostApiBillingActionsChangePlanRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
79
|
+
end
|
|
80
|
+
h[k.to_sym] = v
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
if attributes.key?(:'plan_id')
|
|
84
|
+
self.plan_id = attributes[:'plan_id']
|
|
85
|
+
else
|
|
86
|
+
self.plan_id = nil
|
|
87
|
+
end
|
|
88
|
+
end
|
|
89
|
+
|
|
90
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
91
|
+
# @return Array for valid properties with the reasons
|
|
92
|
+
def list_invalid_properties
|
|
93
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
94
|
+
invalid_properties = Array.new
|
|
95
|
+
if @plan_id.nil?
|
|
96
|
+
invalid_properties.push('invalid value for "plan_id", plan_id cannot be nil.')
|
|
97
|
+
end
|
|
98
|
+
|
|
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
|
+
return false if @plan_id.nil?
|
|
107
|
+
plan_id_validator = EnumAttributeValidator.new('String', ["free", "starter", "pro", "business", "scale", "ultra"])
|
|
108
|
+
return false unless plan_id_validator.valid?(@plan_id)
|
|
109
|
+
true
|
|
110
|
+
end
|
|
111
|
+
|
|
112
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
113
|
+
# @param [Object] plan_id Object to be assigned
|
|
114
|
+
def plan_id=(plan_id)
|
|
115
|
+
validator = EnumAttributeValidator.new('String', ["free", "starter", "pro", "business", "scale", "ultra"])
|
|
116
|
+
unless validator.valid?(plan_id)
|
|
117
|
+
fail ArgumentError, "invalid value for \"plan_id\", must be one of #{validator.allowable_values}."
|
|
118
|
+
end
|
|
119
|
+
@plan_id = plan_id
|
|
120
|
+
end
|
|
121
|
+
|
|
122
|
+
# Checks equality by comparing each attribute.
|
|
123
|
+
# @param [Object] Object to be compared
|
|
124
|
+
def ==(o)
|
|
125
|
+
return true if self.equal?(o)
|
|
126
|
+
self.class == o.class &&
|
|
127
|
+
plan_id == o.plan_id
|
|
128
|
+
end
|
|
129
|
+
|
|
130
|
+
# @see the `==` method
|
|
131
|
+
# @param [Object] Object to be compared
|
|
132
|
+
def eql?(o)
|
|
133
|
+
self == o
|
|
134
|
+
end
|
|
135
|
+
|
|
136
|
+
# Calculates hash code according to all attributes.
|
|
137
|
+
# @return [Integer] Hash code
|
|
138
|
+
def hash
|
|
139
|
+
[plan_id].hash
|
|
140
|
+
end
|
|
141
|
+
|
|
142
|
+
# Builds the object from hash
|
|
143
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
144
|
+
# @return [Object] Returns the model itself
|
|
145
|
+
def self.build_from_hash(attributes)
|
|
146
|
+
return nil unless attributes.is_a?(Hash)
|
|
147
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
148
|
+
transformed_hash = {}
|
|
149
|
+
openapi_types.each_pair do |key, type|
|
|
150
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
151
|
+
transformed_hash["#{key}"] = nil
|
|
152
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
153
|
+
# check to ensure the input is an array given that the attribute
|
|
154
|
+
# is documented as an array but the input is not
|
|
155
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
156
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
157
|
+
end
|
|
158
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
159
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
160
|
+
end
|
|
161
|
+
end
|
|
162
|
+
new(transformed_hash)
|
|
163
|
+
end
|
|
164
|
+
|
|
165
|
+
# Deserializes the data based on type
|
|
166
|
+
# @param string type Data type
|
|
167
|
+
# @param string value Value to be deserialized
|
|
168
|
+
# @return [Object] Deserialized data
|
|
169
|
+
def self._deserialize(type, value)
|
|
170
|
+
case type.to_sym
|
|
171
|
+
when :Time
|
|
172
|
+
Time.parse(value)
|
|
173
|
+
when :Date
|
|
174
|
+
Date.parse(value)
|
|
175
|
+
when :String
|
|
176
|
+
value.to_s
|
|
177
|
+
when :Integer
|
|
178
|
+
value.to_i
|
|
179
|
+
when :Float
|
|
180
|
+
value.to_f
|
|
181
|
+
when :Boolean
|
|
182
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
183
|
+
true
|
|
184
|
+
else
|
|
185
|
+
false
|
|
186
|
+
end
|
|
187
|
+
when :Object
|
|
188
|
+
# generic object (usually a Hash), return directly
|
|
189
|
+
value
|
|
190
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
191
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
192
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
193
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
194
|
+
k_type = Regexp.last_match[:k_type]
|
|
195
|
+
v_type = Regexp.last_match[:v_type]
|
|
196
|
+
{}.tap do |hash|
|
|
197
|
+
value.each do |k, v|
|
|
198
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
199
|
+
end
|
|
200
|
+
end
|
|
201
|
+
else # model
|
|
202
|
+
# models (e.g. Pet) or oneOf
|
|
203
|
+
klass = SeatsChart.const_get(type)
|
|
204
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
205
|
+
end
|
|
206
|
+
end
|
|
207
|
+
|
|
208
|
+
# Returns the string representation of the object
|
|
209
|
+
# @return [String] String presentation of the object
|
|
210
|
+
def to_s
|
|
211
|
+
to_hash.to_s
|
|
212
|
+
end
|
|
213
|
+
|
|
214
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
215
|
+
# @return [Hash] Returns the object in the form of hash
|
|
216
|
+
def to_body
|
|
217
|
+
to_hash
|
|
218
|
+
end
|
|
219
|
+
|
|
220
|
+
# Returns the object in the form of hash
|
|
221
|
+
# @return [Hash] Returns the object in the form of hash
|
|
222
|
+
def to_hash
|
|
223
|
+
hash = {}
|
|
224
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
225
|
+
value = self.send(attr)
|
|
226
|
+
if value.nil?
|
|
227
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
228
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
229
|
+
end
|
|
230
|
+
|
|
231
|
+
hash[param] = _to_hash(value)
|
|
232
|
+
end
|
|
233
|
+
hash
|
|
234
|
+
end
|
|
235
|
+
|
|
236
|
+
# Outputs non-array value in the form of hash
|
|
237
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
238
|
+
# @param [Object] value Any valid value
|
|
239
|
+
# @return [Hash] Returns the value in the form of hash
|
|
240
|
+
def _to_hash(value)
|
|
241
|
+
if value.is_a?(Array)
|
|
242
|
+
value.compact.map { |v| _to_hash(v) }
|
|
243
|
+
elsif value.is_a?(Hash)
|
|
244
|
+
{}.tap do |hash|
|
|
245
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
246
|
+
end
|
|
247
|
+
elsif value.respond_to? :to_hash
|
|
248
|
+
value.to_hash
|
|
249
|
+
else
|
|
250
|
+
value
|
|
251
|
+
end
|
|
252
|
+
end
|
|
253
|
+
|
|
254
|
+
end
|
|
255
|
+
|
|
256
|
+
end
|
|
@@ -17,10 +17,14 @@ module SeatsChart
|
|
|
17
17
|
class PostApiOrdersByOrderIdCancelRequest
|
|
18
18
|
attr_accessor :reason
|
|
19
19
|
|
|
20
|
+
# Cancel only these seats of the order (1 to 64 seat ids of its items). Omitted: the whole order.
|
|
21
|
+
attr_accessor :seat_ids
|
|
22
|
+
|
|
20
23
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
21
24
|
def self.attribute_map
|
|
22
25
|
{
|
|
23
|
-
:'reason' => :'reason'
|
|
26
|
+
:'reason' => :'reason',
|
|
27
|
+
:'seat_ids' => :'seatIds'
|
|
24
28
|
}
|
|
25
29
|
end
|
|
26
30
|
|
|
@@ -32,7 +36,8 @@ module SeatsChart
|
|
|
32
36
|
# Attribute type mapping.
|
|
33
37
|
def self.openapi_types
|
|
34
38
|
{
|
|
35
|
-
:'reason' => :'String'
|
|
39
|
+
:'reason' => :'String',
|
|
40
|
+
:'seat_ids' => :'Array<String>'
|
|
36
41
|
}
|
|
37
42
|
end
|
|
38
43
|
|
|
@@ -62,6 +67,12 @@ module SeatsChart
|
|
|
62
67
|
else
|
|
63
68
|
self.reason = nil
|
|
64
69
|
end
|
|
70
|
+
|
|
71
|
+
if attributes.key?(:'seat_ids')
|
|
72
|
+
if (value = attributes[:'seat_ids']).is_a?(Array)
|
|
73
|
+
self.seat_ids = value
|
|
74
|
+
end
|
|
75
|
+
end
|
|
65
76
|
end
|
|
66
77
|
|
|
67
78
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -81,6 +92,14 @@ module SeatsChart
|
|
|
81
92
|
invalid_properties.push('invalid value for "reason", the character length must be great than or equal to 1.')
|
|
82
93
|
end
|
|
83
94
|
|
|
95
|
+
if !@seat_ids.nil? && @seat_ids.length > 64
|
|
96
|
+
invalid_properties.push('invalid value for "seat_ids", number of items must be less than or equal to 64.')
|
|
97
|
+
end
|
|
98
|
+
|
|
99
|
+
if !@seat_ids.nil? && @seat_ids.length < 1
|
|
100
|
+
invalid_properties.push('invalid value for "seat_ids", number of items must be greater than or equal to 1.')
|
|
101
|
+
end
|
|
102
|
+
|
|
84
103
|
invalid_properties
|
|
85
104
|
end
|
|
86
105
|
|
|
@@ -91,6 +110,8 @@ module SeatsChart
|
|
|
91
110
|
return false if @reason.nil?
|
|
92
111
|
return false if @reason.to_s.length > 512
|
|
93
112
|
return false if @reason.to_s.length < 1
|
|
113
|
+
return false if !@seat_ids.nil? && @seat_ids.length > 64
|
|
114
|
+
return false if !@seat_ids.nil? && @seat_ids.length < 1
|
|
94
115
|
true
|
|
95
116
|
end
|
|
96
117
|
|
|
@@ -112,12 +133,31 @@ module SeatsChart
|
|
|
112
133
|
@reason = reason
|
|
113
134
|
end
|
|
114
135
|
|
|
136
|
+
# Custom attribute writer method with validation
|
|
137
|
+
# @param [Object] seat_ids Value to be assigned
|
|
138
|
+
def seat_ids=(seat_ids)
|
|
139
|
+
if seat_ids.nil?
|
|
140
|
+
fail ArgumentError, 'seat_ids cannot be nil'
|
|
141
|
+
end
|
|
142
|
+
|
|
143
|
+
if seat_ids.length > 64
|
|
144
|
+
fail ArgumentError, 'invalid value for "seat_ids", number of items must be less than or equal to 64.'
|
|
145
|
+
end
|
|
146
|
+
|
|
147
|
+
if seat_ids.length < 1
|
|
148
|
+
fail ArgumentError, 'invalid value for "seat_ids", number of items must be greater than or equal to 1.'
|
|
149
|
+
end
|
|
150
|
+
|
|
151
|
+
@seat_ids = seat_ids
|
|
152
|
+
end
|
|
153
|
+
|
|
115
154
|
# Checks equality by comparing each attribute.
|
|
116
155
|
# @param [Object] Object to be compared
|
|
117
156
|
def ==(o)
|
|
118
157
|
return true if self.equal?(o)
|
|
119
158
|
self.class == o.class &&
|
|
120
|
-
reason == o.reason
|
|
159
|
+
reason == o.reason &&
|
|
160
|
+
seat_ids == o.seat_ids
|
|
121
161
|
end
|
|
122
162
|
|
|
123
163
|
# @see the `==` method
|
|
@@ -129,7 +169,7 @@ module SeatsChart
|
|
|
129
169
|
# Calculates hash code according to all attributes.
|
|
130
170
|
# @return [Integer] Hash code
|
|
131
171
|
def hash
|
|
132
|
-
[reason].hash
|
|
172
|
+
[reason, seat_ids].hash
|
|
133
173
|
end
|
|
134
174
|
|
|
135
175
|
# Builds the object from hash
|
|
@@ -75,14 +75,10 @@ module SeatsChart
|
|
|
75
75
|
|
|
76
76
|
if attributes.key?(:'admin_key')
|
|
77
77
|
self.admin_key = attributes[:'admin_key']
|
|
78
|
-
else
|
|
79
|
-
self.admin_key = nil
|
|
80
78
|
end
|
|
81
79
|
|
|
82
80
|
if attributes.key?(:'copied')
|
|
83
81
|
self.copied = attributes[:'copied']
|
|
84
|
-
else
|
|
85
|
-
self.copied = nil
|
|
86
82
|
end
|
|
87
83
|
end
|
|
88
84
|
|
|
@@ -45,6 +45,9 @@ module SeatsChart
|
|
|
45
45
|
# Partner and synced-catalog pricing: amount charged per seat in cents (stored on the order items for reports; validated against the synced price table).
|
|
46
46
|
attr_accessor :seat_prices
|
|
47
47
|
|
|
48
|
+
# Late payment: when the hold expired, is unknown or lost seats, claim the seats if every one is still free (same sales rules, all or nothing; 409 `seats_unavailable` otherwise). Requires `holdToken`.
|
|
49
|
+
attr_accessor :if_hold_expired
|
|
50
|
+
|
|
48
51
|
class EnumAttributeValidator
|
|
49
52
|
attr_reader :datatype
|
|
50
53
|
attr_reader :allowable_values
|
|
@@ -83,7 +86,8 @@ module SeatsChart
|
|
|
83
86
|
:'hold_token' => :'holdToken',
|
|
84
87
|
:'channel' => :'channel',
|
|
85
88
|
:'ticket_buyer_id' => :'ticketBuyerId',
|
|
86
|
-
:'seat_prices' => :'seatPrices'
|
|
89
|
+
:'seat_prices' => :'seatPrices',
|
|
90
|
+
:'if_hold_expired' => :'ifHoldExpired'
|
|
87
91
|
}
|
|
88
92
|
end
|
|
89
93
|
|
|
@@ -108,7 +112,8 @@ module SeatsChart
|
|
|
108
112
|
:'hold_token' => :'String',
|
|
109
113
|
:'channel' => :'String',
|
|
110
114
|
:'ticket_buyer_id' => :'String',
|
|
111
|
-
:'seat_prices' => :'Hash<String, Integer>'
|
|
115
|
+
:'seat_prices' => :'Hash<String, Integer>',
|
|
116
|
+
:'if_hold_expired' => :'String'
|
|
112
117
|
}
|
|
113
118
|
end
|
|
114
119
|
|
|
@@ -200,6 +205,10 @@ module SeatsChart
|
|
|
200
205
|
self.seat_prices = value
|
|
201
206
|
end
|
|
202
207
|
end
|
|
208
|
+
|
|
209
|
+
if attributes.key?(:'if_hold_expired')
|
|
210
|
+
self.if_hold_expired = attributes[:'if_hold_expired']
|
|
211
|
+
end
|
|
203
212
|
end
|
|
204
213
|
|
|
205
214
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -327,6 +336,8 @@ module SeatsChart
|
|
|
327
336
|
return false if !@channel.nil? && @channel.to_s.length < 1
|
|
328
337
|
return false if !@ticket_buyer_id.nil? && @ticket_buyer_id.to_s.length > 256
|
|
329
338
|
return false if !@ticket_buyer_id.nil? && @ticket_buyer_id.to_s.length < 1
|
|
339
|
+
if_hold_expired_validator = EnumAttributeValidator.new('String', ["claimIfFree"])
|
|
340
|
+
return false unless if_hold_expired_validator.valid?(@if_hold_expired)
|
|
330
341
|
true
|
|
331
342
|
end
|
|
332
343
|
|
|
@@ -517,6 +528,16 @@ module SeatsChart
|
|
|
517
528
|
@ticket_buyer_id = ticket_buyer_id
|
|
518
529
|
end
|
|
519
530
|
|
|
531
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
532
|
+
# @param [Object] if_hold_expired Object to be assigned
|
|
533
|
+
def if_hold_expired=(if_hold_expired)
|
|
534
|
+
validator = EnumAttributeValidator.new('String', ["claimIfFree"])
|
|
535
|
+
unless validator.valid?(if_hold_expired)
|
|
536
|
+
fail ArgumentError, "invalid value for \"if_hold_expired\", must be one of #{validator.allowable_values}."
|
|
537
|
+
end
|
|
538
|
+
@if_hold_expired = if_hold_expired
|
|
539
|
+
end
|
|
540
|
+
|
|
520
541
|
# Checks equality by comparing each attribute.
|
|
521
542
|
# @param [Object] Object to be compared
|
|
522
543
|
def ==(o)
|
|
@@ -535,7 +556,8 @@ module SeatsChart
|
|
|
535
556
|
hold_token == o.hold_token &&
|
|
536
557
|
channel == o.channel &&
|
|
537
558
|
ticket_buyer_id == o.ticket_buyer_id &&
|
|
538
|
-
seat_prices == o.seat_prices
|
|
559
|
+
seat_prices == o.seat_prices &&
|
|
560
|
+
if_hold_expired == o.if_hold_expired
|
|
539
561
|
end
|
|
540
562
|
|
|
541
563
|
# @see the `==` method
|
|
@@ -547,7 +569,7 @@ module SeatsChart
|
|
|
547
569
|
# Calculates hash code according to all attributes.
|
|
548
570
|
# @return [Integer] Hash code
|
|
549
571
|
def hash
|
|
550
|
-
[scope, external_order_id, external_payment_id, quote_id, paid_amount_cents, paid_currency, event_id, seat_ids, user_id, seat_ticket_types, hold_token, channel, ticket_buyer_id, seat_prices].hash
|
|
572
|
+
[scope, external_order_id, external_payment_id, quote_id, paid_amount_cents, paid_currency, event_id, seat_ids, user_id, seat_ticket_types, hold_token, channel, ticket_buyer_id, seat_prices, if_hold_expired].hash
|
|
551
573
|
end
|
|
552
574
|
|
|
553
575
|
# Builds the object from hash
|
|
@@ -212,14 +212,10 @@ module SeatsChart
|
|
|
212
212
|
|
|
213
213
|
if attributes.key?(:'template')
|
|
214
214
|
self.template = attributes[:'template']
|
|
215
|
-
else
|
|
216
|
-
self.template = nil
|
|
217
215
|
end
|
|
218
216
|
|
|
219
217
|
if attributes.key?(:'api_key')
|
|
220
218
|
self.api_key = attributes[:'api_key']
|
|
221
|
-
else
|
|
222
|
-
self.api_key = nil
|
|
223
219
|
end
|
|
224
220
|
|
|
225
221
|
if attributes.key?(:'idempotent_replay')
|