mailslurp_client 15.13.29 → 15.13.31

Sign up to get free protection for your applications and to get access to all the features.
Files changed (45) hide show
  1. checksums.yaml +4 -4
  2. data/lib/mailslurp_client/api/inbox_controller_api.rb +233 -0
  3. data/lib/mailslurp_client/api/webhook_controller_api.rb +98 -0
  4. data/lib/mailslurp_client/models/alias_projection.rb +15 -15
  5. data/lib/mailslurp_client/models/attachment_projection.rb +14 -14
  6. data/lib/mailslurp_client/models/bounce_recipient_projection.rb +13 -13
  7. data/lib/mailslurp_client/models/contact_projection.rb +18 -18
  8. data/lib/mailslurp_client/models/create_webhook_options.rb +16 -5
  9. data/lib/mailslurp_client/models/email_projection.rb +10 -10
  10. data/lib/mailslurp_client/models/page_alias.rb +19 -19
  11. data/lib/mailslurp_client/models/page_attachment_entity.rb +19 -19
  12. data/lib/mailslurp_client/models/page_bounced_email.rb +19 -19
  13. data/lib/mailslurp_client/models/page_bounced_recipients.rb +19 -19
  14. data/lib/mailslurp_client/models/page_complaint.rb +19 -19
  15. data/lib/mailslurp_client/models/page_contact_projection.rb +19 -19
  16. data/lib/mailslurp_client/models/page_delivery_status.rb +19 -19
  17. data/lib/mailslurp_client/models/page_email_preview.rb +19 -19
  18. data/lib/mailslurp_client/models/page_email_projection.rb +19 -19
  19. data/lib/mailslurp_client/models/page_email_validation_request.rb +19 -19
  20. data/lib/mailslurp_client/models/page_expired_inbox_record_projection.rb +19 -19
  21. data/lib/mailslurp_client/models/page_group_projection.rb +19 -19
  22. data/lib/mailslurp_client/models/page_inbox_forwarder_dto.rb +19 -19
  23. data/lib/mailslurp_client/models/page_inbox_projection.rb +19 -19
  24. data/lib/mailslurp_client/models/page_inbox_ruleset_dto.rb +19 -19
  25. data/lib/mailslurp_client/models/page_missed_email_projection.rb +19 -19
  26. data/lib/mailslurp_client/models/page_organization_inbox_projection.rb +19 -19
  27. data/lib/mailslurp_client/models/page_phone_number_projection.rb +19 -19
  28. data/lib/mailslurp_client/models/page_scheduled_jobs.rb +308 -0
  29. data/lib/mailslurp_client/models/page_sms_projection.rb +19 -19
  30. data/lib/mailslurp_client/models/page_template_projection.rb +19 -19
  31. data/lib/mailslurp_client/models/page_thread_projection.rb +19 -19
  32. data/lib/mailslurp_client/models/page_tracking_pixel_projection.rb +19 -19
  33. data/lib/mailslurp_client/models/page_unknown_missed_email_projection.rb +19 -19
  34. data/lib/mailslurp_client/models/page_webhook_projection.rb +19 -19
  35. data/lib/mailslurp_client/models/page_webhook_result.rb +19 -19
  36. data/lib/mailslurp_client/models/phone_number_projection.rb +18 -18
  37. data/lib/mailslurp_client/models/scheduled_job.rb +371 -0
  38. data/lib/mailslurp_client/models/sent_email_projection.rb +59 -59
  39. data/lib/mailslurp_client/models/template_projection.rb +15 -15
  40. data/lib/mailslurp_client/models/thread_projection.rb +26 -26
  41. data/lib/mailslurp_client/models/tracking_pixel_projection.rb +10 -10
  42. data/lib/mailslurp_client/models/webhook_dto.rb +12 -1
  43. data/lib/mailslurp_client/version.rb +1 -1
  44. data/lib/mailslurp_client.rb +2 -0
  45. metadata +4 -2
@@ -0,0 +1,371 @@
1
+ =begin
2
+ #MailSlurp API
3
+
4
+ #MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository
5
+
6
+ The version of the OpenAPI document: 6.5.2
7
+ Contact: contact@mailslurp.dev
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 4.3.1
10
+
11
+ =end
12
+
13
+ require 'date'
14
+
15
+ module MailSlurpClient
16
+ class ScheduledJob
17
+ attr_accessor :id
18
+
19
+ attr_accessor :user_id
20
+
21
+ attr_accessor :inbox_id
22
+
23
+ attr_accessor :job_id
24
+
25
+ attr_accessor :group_id
26
+
27
+ attr_accessor :trigger_id
28
+
29
+ attr_accessor :status
30
+
31
+ attr_accessor :send_at_timestamp
32
+
33
+ attr_accessor :created_at
34
+
35
+ attr_accessor :updated_at
36
+
37
+ class EnumAttributeValidator
38
+ attr_reader :datatype
39
+ attr_reader :allowable_values
40
+
41
+ def initialize(datatype, allowable_values)
42
+ @allowable_values = allowable_values.map do |value|
43
+ case datatype.to_s
44
+ when /Integer/i
45
+ value.to_i
46
+ when /Float/i
47
+ value.to_f
48
+ else
49
+ value
50
+ end
51
+ end
52
+ end
53
+
54
+ def valid?(value)
55
+ !value || allowable_values.include?(value)
56
+ end
57
+ end
58
+
59
+ # Attribute mapping from ruby-style variable name to JSON key.
60
+ def self.attribute_map
61
+ {
62
+ :'id' => :'id',
63
+ :'user_id' => :'userId',
64
+ :'inbox_id' => :'inboxId',
65
+ :'job_id' => :'jobId',
66
+ :'group_id' => :'groupId',
67
+ :'trigger_id' => :'triggerId',
68
+ :'status' => :'status',
69
+ :'send_at_timestamp' => :'sendAtTimestamp',
70
+ :'created_at' => :'createdAt',
71
+ :'updated_at' => :'updatedAt'
72
+ }
73
+ end
74
+
75
+ # Attribute type mapping.
76
+ def self.openapi_types
77
+ {
78
+ :'id' => :'String',
79
+ :'user_id' => :'String',
80
+ :'inbox_id' => :'String',
81
+ :'job_id' => :'String',
82
+ :'group_id' => :'String',
83
+ :'trigger_id' => :'String',
84
+ :'status' => :'String',
85
+ :'send_at_timestamp' => :'DateTime',
86
+ :'created_at' => :'DateTime',
87
+ :'updated_at' => :'DateTime'
88
+ }
89
+ end
90
+
91
+ # List of attributes with nullable: true
92
+ def self.openapi_nullable
93
+ Set.new([
94
+ ])
95
+ end
96
+
97
+ # Initializes the object
98
+ # @param [Hash] attributes Model attributes in the form of hash
99
+ def initialize(attributes = {})
100
+ if (!attributes.is_a?(Hash))
101
+ fail ArgumentError, "The input argument (attributes) must be a hash in `MailSlurpClient::ScheduledJob` initialize method"
102
+ end
103
+
104
+ # check to see if the attribute exists and convert string to symbol for hash key
105
+ attributes = attributes.each_with_object({}) { |(k, v), h|
106
+ if (!self.class.attribute_map.key?(k.to_sym))
107
+ fail ArgumentError, "`#{k}` is not a valid attribute in `MailSlurpClient::ScheduledJob`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
108
+ end
109
+ h[k.to_sym] = v
110
+ }
111
+
112
+ if attributes.key?(:'id')
113
+ self.id = attributes[:'id']
114
+ end
115
+
116
+ if attributes.key?(:'user_id')
117
+ self.user_id = attributes[:'user_id']
118
+ end
119
+
120
+ if attributes.key?(:'inbox_id')
121
+ self.inbox_id = attributes[:'inbox_id']
122
+ end
123
+
124
+ if attributes.key?(:'job_id')
125
+ self.job_id = attributes[:'job_id']
126
+ end
127
+
128
+ if attributes.key?(:'group_id')
129
+ self.group_id = attributes[:'group_id']
130
+ end
131
+
132
+ if attributes.key?(:'trigger_id')
133
+ self.trigger_id = attributes[:'trigger_id']
134
+ end
135
+
136
+ if attributes.key?(:'status')
137
+ self.status = attributes[:'status']
138
+ end
139
+
140
+ if attributes.key?(:'send_at_timestamp')
141
+ self.send_at_timestamp = attributes[:'send_at_timestamp']
142
+ end
143
+
144
+ if attributes.key?(:'created_at')
145
+ self.created_at = attributes[:'created_at']
146
+ end
147
+
148
+ if attributes.key?(:'updated_at')
149
+ self.updated_at = attributes[:'updated_at']
150
+ end
151
+ end
152
+
153
+ # Show invalid properties with the reasons. Usually used together with valid?
154
+ # @return Array for valid properties with the reasons
155
+ def list_invalid_properties
156
+ invalid_properties = Array.new
157
+ if @id.nil?
158
+ invalid_properties.push('invalid value for "id", id cannot be nil.')
159
+ end
160
+
161
+ if @user_id.nil?
162
+ invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
163
+ end
164
+
165
+ if @inbox_id.nil?
166
+ invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
167
+ end
168
+
169
+ if @job_id.nil?
170
+ invalid_properties.push('invalid value for "job_id", job_id cannot be nil.')
171
+ end
172
+
173
+ if @group_id.nil?
174
+ invalid_properties.push('invalid value for "group_id", group_id cannot be nil.')
175
+ end
176
+
177
+ if @trigger_id.nil?
178
+ invalid_properties.push('invalid value for "trigger_id", trigger_id cannot be nil.')
179
+ end
180
+
181
+ if @status.nil?
182
+ invalid_properties.push('invalid value for "status", status cannot be nil.')
183
+ end
184
+
185
+ if @send_at_timestamp.nil?
186
+ invalid_properties.push('invalid value for "send_at_timestamp", send_at_timestamp cannot be nil.')
187
+ end
188
+
189
+ if @created_at.nil?
190
+ invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
191
+ end
192
+
193
+ if @updated_at.nil?
194
+ invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
195
+ end
196
+
197
+ invalid_properties
198
+ end
199
+
200
+ # Check to see if the all the properties in the model are valid
201
+ # @return true if the model is valid
202
+ def valid?
203
+ return false if @id.nil?
204
+ return false if @user_id.nil?
205
+ return false if @inbox_id.nil?
206
+ return false if @job_id.nil?
207
+ return false if @group_id.nil?
208
+ return false if @trigger_id.nil?
209
+ return false if @status.nil?
210
+ status_validator = EnumAttributeValidator.new('String', ["SUBMITTED", "COMPLETED", "FAILED"])
211
+ return false unless status_validator.valid?(@status)
212
+ return false if @send_at_timestamp.nil?
213
+ return false if @created_at.nil?
214
+ return false if @updated_at.nil?
215
+ true
216
+ end
217
+
218
+ # Custom attribute writer method checking allowed values (enum).
219
+ # @param [Object] status Object to be assigned
220
+ def status=(status)
221
+ validator = EnumAttributeValidator.new('String', ["SUBMITTED", "COMPLETED", "FAILED"])
222
+ unless validator.valid?(status)
223
+ fail ArgumentError, "invalid value for \"status\", must be one of #{validator.allowable_values}."
224
+ end
225
+ @status = status
226
+ end
227
+
228
+ # Checks equality by comparing each attribute.
229
+ # @param [Object] Object to be compared
230
+ def ==(o)
231
+ return true if self.equal?(o)
232
+ self.class == o.class &&
233
+ id == o.id &&
234
+ user_id == o.user_id &&
235
+ inbox_id == o.inbox_id &&
236
+ job_id == o.job_id &&
237
+ group_id == o.group_id &&
238
+ trigger_id == o.trigger_id &&
239
+ status == o.status &&
240
+ send_at_timestamp == o.send_at_timestamp &&
241
+ created_at == o.created_at &&
242
+ updated_at == o.updated_at
243
+ end
244
+
245
+ # @see the `==` method
246
+ # @param [Object] Object to be compared
247
+ def eql?(o)
248
+ self == o
249
+ end
250
+
251
+ # Calculates hash code according to all attributes.
252
+ # @return [Integer] Hash code
253
+ def hash
254
+ [id, user_id, inbox_id, job_id, group_id, trigger_id, status, send_at_timestamp, created_at, updated_at].hash
255
+ end
256
+
257
+ # Builds the object from hash
258
+ # @param [Hash] attributes Model attributes in the form of hash
259
+ # @return [Object] Returns the model itself
260
+ def self.build_from_hash(attributes)
261
+ new.build_from_hash(attributes)
262
+ end
263
+
264
+ # Builds the object from hash
265
+ # @param [Hash] attributes Model attributes in the form of hash
266
+ # @return [Object] Returns the model itself
267
+ def build_from_hash(attributes)
268
+ return nil unless attributes.is_a?(Hash)
269
+ self.class.openapi_types.each_pair do |key, type|
270
+ if type =~ /\AArray<(.*)>/i
271
+ # check to ensure the input is an array given that the attribute
272
+ # is documented as an array but the input is not
273
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
274
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
275
+ end
276
+ elsif !attributes[self.class.attribute_map[key]].nil?
277
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
278
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
279
+ end
280
+
281
+ self
282
+ end
283
+
284
+ # Deserializes the data based on type
285
+ # @param string type Data type
286
+ # @param string value Value to be deserialized
287
+ # @return [Object] Deserialized data
288
+ def _deserialize(type, value)
289
+ case type.to_sym
290
+ when :DateTime
291
+ DateTime.parse(value)
292
+ when :Date
293
+ Date.parse(value)
294
+ when :String
295
+ value.to_s
296
+ when :Integer
297
+ value.to_i
298
+ when :Float
299
+ value.to_f
300
+ when :Boolean
301
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
302
+ true
303
+ else
304
+ false
305
+ end
306
+ when :Object
307
+ # generic object (usually a Hash), return directly
308
+ value
309
+ when /\AArray<(?<inner_type>.+)>\z/
310
+ inner_type = Regexp.last_match[:inner_type]
311
+ value.map { |v| _deserialize(inner_type, v) }
312
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
313
+ k_type = Regexp.last_match[:k_type]
314
+ v_type = Regexp.last_match[:v_type]
315
+ {}.tap do |hash|
316
+ value.each do |k, v|
317
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
318
+ end
319
+ end
320
+ else # model
321
+ MailSlurpClient.const_get(type).build_from_hash(value)
322
+ end
323
+ end
324
+
325
+ # Returns the string representation of the object
326
+ # @return [String] String presentation of the object
327
+ def to_s
328
+ to_hash.to_s
329
+ end
330
+
331
+ # to_body is an alias to to_hash (backward compatibility)
332
+ # @return [Hash] Returns the object in the form of hash
333
+ def to_body
334
+ to_hash
335
+ end
336
+
337
+ # Returns the object in the form of hash
338
+ # @return [Hash] Returns the object in the form of hash
339
+ def to_hash
340
+ hash = {}
341
+ self.class.attribute_map.each_pair do |attr, param|
342
+ value = self.send(attr)
343
+ if value.nil?
344
+ is_nullable = self.class.openapi_nullable.include?(attr)
345
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
346
+ end
347
+
348
+ hash[param] = _to_hash(value)
349
+ end
350
+ hash
351
+ end
352
+
353
+ # Outputs non-array value in the form of hash
354
+ # For object, use to_hash. Otherwise, just return the value
355
+ # @param [Object] value Any valid value
356
+ # @return [Hash] Returns the value in the form of hash
357
+ def _to_hash(value)
358
+ if value.is_a?(Array)
359
+ value.compact.map { |v| _to_hash(v) }
360
+ elsif value.is_a?(Hash)
361
+ {}.tap do |hash|
362
+ value.each { |k, v| hash[k] = _to_hash(v) }
363
+ end
364
+ elsif value.respond_to? :to_hash
365
+ value.to_hash
366
+ else
367
+ value
368
+ end
369
+ end
370
+ end
371
+ end
@@ -23,14 +23,6 @@ module MailSlurpClient
23
23
 
24
24
  attr_accessor :subject
25
25
 
26
- attr_accessor :body_md5_hash
27
-
28
- attr_accessor :bcc
29
-
30
- attr_accessor :cc
31
-
32
- attr_accessor :virtual_send
33
-
34
26
  attr_accessor :inbox_id
35
27
 
36
28
  attr_accessor :attachments
@@ -39,6 +31,14 @@ module MailSlurpClient
39
31
 
40
32
  attr_accessor :created_at
41
33
 
34
+ attr_accessor :bcc
35
+
36
+ attr_accessor :cc
37
+
38
+ attr_accessor :body_md5_hash
39
+
40
+ attr_accessor :virtual_send
41
+
42
42
  # Attribute mapping from ruby-style variable name to JSON key.
43
43
  def self.attribute_map
44
44
  {
@@ -46,14 +46,14 @@ module MailSlurpClient
46
46
  :'from' => :'from',
47
47
  :'user_id' => :'userId',
48
48
  :'subject' => :'subject',
49
- :'body_md5_hash' => :'bodyMD5Hash',
50
- :'bcc' => :'bcc',
51
- :'cc' => :'cc',
52
- :'virtual_send' => :'virtualSend',
53
49
  :'inbox_id' => :'inboxId',
54
50
  :'attachments' => :'attachments',
55
51
  :'to' => :'to',
56
- :'created_at' => :'createdAt'
52
+ :'created_at' => :'createdAt',
53
+ :'bcc' => :'bcc',
54
+ :'cc' => :'cc',
55
+ :'body_md5_hash' => :'bodyMD5Hash',
56
+ :'virtual_send' => :'virtualSend'
57
57
  }
58
58
  end
59
59
 
@@ -64,14 +64,14 @@ module MailSlurpClient
64
64
  :'from' => :'String',
65
65
  :'user_id' => :'String',
66
66
  :'subject' => :'String',
67
- :'body_md5_hash' => :'String',
68
- :'bcc' => :'Array<String>',
69
- :'cc' => :'Array<String>',
70
- :'virtual_send' => :'Boolean',
71
67
  :'inbox_id' => :'String',
72
68
  :'attachments' => :'Array<String>',
73
69
  :'to' => :'Array<String>',
74
- :'created_at' => :'DateTime'
70
+ :'created_at' => :'DateTime',
71
+ :'bcc' => :'Array<String>',
72
+ :'cc' => :'Array<String>',
73
+ :'body_md5_hash' => :'String',
74
+ :'virtual_send' => :'Boolean'
75
75
  }
76
76
  end
77
77
 
@@ -112,26 +112,6 @@ module MailSlurpClient
112
112
  self.subject = attributes[:'subject']
113
113
  end
114
114
 
115
- if attributes.key?(:'body_md5_hash')
116
- self.body_md5_hash = attributes[:'body_md5_hash']
117
- end
118
-
119
- if attributes.key?(:'bcc')
120
- if (value = attributes[:'bcc']).is_a?(Array)
121
- self.bcc = value
122
- end
123
- end
124
-
125
- if attributes.key?(:'cc')
126
- if (value = attributes[:'cc']).is_a?(Array)
127
- self.cc = value
128
- end
129
- end
130
-
131
- if attributes.key?(:'virtual_send')
132
- self.virtual_send = attributes[:'virtual_send']
133
- end
134
-
135
115
  if attributes.key?(:'inbox_id')
136
116
  self.inbox_id = attributes[:'inbox_id']
137
117
  end
@@ -151,6 +131,26 @@ module MailSlurpClient
151
131
  if attributes.key?(:'created_at')
152
132
  self.created_at = attributes[:'created_at']
153
133
  end
134
+
135
+ if attributes.key?(:'bcc')
136
+ if (value = attributes[:'bcc']).is_a?(Array)
137
+ self.bcc = value
138
+ end
139
+ end
140
+
141
+ if attributes.key?(:'cc')
142
+ if (value = attributes[:'cc']).is_a?(Array)
143
+ self.cc = value
144
+ end
145
+ end
146
+
147
+ if attributes.key?(:'body_md5_hash')
148
+ self.body_md5_hash = attributes[:'body_md5_hash']
149
+ end
150
+
151
+ if attributes.key?(:'virtual_send')
152
+ self.virtual_send = attributes[:'virtual_send']
153
+ end
154
154
  end
155
155
 
156
156
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -165,18 +165,6 @@ module MailSlurpClient
165
165
  invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
166
166
  end
167
167
 
168
- if @bcc.nil?
169
- invalid_properties.push('invalid value for "bcc", bcc cannot be nil.')
170
- end
171
-
172
- if @cc.nil?
173
- invalid_properties.push('invalid value for "cc", cc cannot be nil.')
174
- end
175
-
176
- if @virtual_send.nil?
177
- invalid_properties.push('invalid value for "virtual_send", virtual_send cannot be nil.')
178
- end
179
-
180
168
  if @inbox_id.nil?
181
169
  invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
182
170
  end
@@ -193,6 +181,18 @@ module MailSlurpClient
193
181
  invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
194
182
  end
195
183
 
184
+ if @bcc.nil?
185
+ invalid_properties.push('invalid value for "bcc", bcc cannot be nil.')
186
+ end
187
+
188
+ if @cc.nil?
189
+ invalid_properties.push('invalid value for "cc", cc cannot be nil.')
190
+ end
191
+
192
+ if @virtual_send.nil?
193
+ invalid_properties.push('invalid value for "virtual_send", virtual_send cannot be nil.')
194
+ end
195
+
196
196
  invalid_properties
197
197
  end
198
198
 
@@ -201,13 +201,13 @@ module MailSlurpClient
201
201
  def valid?
202
202
  return false if @id.nil?
203
203
  return false if @user_id.nil?
204
- return false if @bcc.nil?
205
- return false if @cc.nil?
206
- return false if @virtual_send.nil?
207
204
  return false if @inbox_id.nil?
208
205
  return false if @attachments.nil?
209
206
  return false if @to.nil?
210
207
  return false if @created_at.nil?
208
+ return false if @bcc.nil?
209
+ return false if @cc.nil?
210
+ return false if @virtual_send.nil?
211
211
  true
212
212
  end
213
213
 
@@ -220,14 +220,14 @@ module MailSlurpClient
220
220
  from == o.from &&
221
221
  user_id == o.user_id &&
222
222
  subject == o.subject &&
223
- body_md5_hash == o.body_md5_hash &&
224
- bcc == o.bcc &&
225
- cc == o.cc &&
226
- virtual_send == o.virtual_send &&
227
223
  inbox_id == o.inbox_id &&
228
224
  attachments == o.attachments &&
229
225
  to == o.to &&
230
- created_at == o.created_at
226
+ created_at == o.created_at &&
227
+ bcc == o.bcc &&
228
+ cc == o.cc &&
229
+ body_md5_hash == o.body_md5_hash &&
230
+ virtual_send == o.virtual_send
231
231
  end
232
232
 
233
233
  # @see the `==` method
@@ -239,7 +239,7 @@ module MailSlurpClient
239
239
  # Calculates hash code according to all attributes.
240
240
  # @return [Integer] Hash code
241
241
  def hash
242
- [id, from, user_id, subject, body_md5_hash, bcc, cc, virtual_send, inbox_id, attachments, to, created_at].hash
242
+ [id, from, user_id, subject, inbox_id, attachments, to, created_at, bcc, cc, body_md5_hash, virtual_send].hash
243
243
  end
244
244
 
245
245
  # Builds the object from hash
@@ -19,10 +19,10 @@ module MailSlurpClient
19
19
 
20
20
  attr_accessor :id
21
21
 
22
- attr_accessor :variables
23
-
24
22
  attr_accessor :created_at
25
23
 
24
+ attr_accessor :variables
25
+
26
26
  attr_accessor :updated_at
27
27
 
28
28
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -30,8 +30,8 @@ module MailSlurpClient
30
30
  {
31
31
  :'name' => :'name',
32
32
  :'id' => :'id',
33
- :'variables' => :'variables',
34
33
  :'created_at' => :'createdAt',
34
+ :'variables' => :'variables',
35
35
  :'updated_at' => :'updatedAt'
36
36
  }
37
37
  end
@@ -41,8 +41,8 @@ module MailSlurpClient
41
41
  {
42
42
  :'name' => :'String',
43
43
  :'id' => :'String',
44
- :'variables' => :'Array<String>',
45
44
  :'created_at' => :'DateTime',
45
+ :'variables' => :'Array<String>',
46
46
  :'updated_at' => :'DateTime'
47
47
  }
48
48
  end
@@ -76,16 +76,16 @@ module MailSlurpClient
76
76
  self.id = attributes[:'id']
77
77
  end
78
78
 
79
+ if attributes.key?(:'created_at')
80
+ self.created_at = attributes[:'created_at']
81
+ end
82
+
79
83
  if attributes.key?(:'variables')
80
84
  if (value = attributes[:'variables']).is_a?(Array)
81
85
  self.variables = value
82
86
  end
83
87
  end
84
88
 
85
- if attributes.key?(:'created_at')
86
- self.created_at = attributes[:'created_at']
87
- end
88
-
89
89
  if attributes.key?(:'updated_at')
90
90
  self.updated_at = attributes[:'updated_at']
91
91
  end
@@ -103,14 +103,14 @@ module MailSlurpClient
103
103
  invalid_properties.push('invalid value for "id", id cannot be nil.')
104
104
  end
105
105
 
106
- if @variables.nil?
107
- invalid_properties.push('invalid value for "variables", variables cannot be nil.')
108
- end
109
-
110
106
  if @created_at.nil?
111
107
  invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
112
108
  end
113
109
 
110
+ if @variables.nil?
111
+ invalid_properties.push('invalid value for "variables", variables cannot be nil.')
112
+ end
113
+
114
114
  if @updated_at.nil?
115
115
  invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
116
116
  end
@@ -123,8 +123,8 @@ module MailSlurpClient
123
123
  def valid?
124
124
  return false if @name.nil?
125
125
  return false if @id.nil?
126
- return false if @variables.nil?
127
126
  return false if @created_at.nil?
127
+ return false if @variables.nil?
128
128
  return false if @updated_at.nil?
129
129
  true
130
130
  end
@@ -136,8 +136,8 @@ module MailSlurpClient
136
136
  self.class == o.class &&
137
137
  name == o.name &&
138
138
  id == o.id &&
139
- variables == o.variables &&
140
139
  created_at == o.created_at &&
140
+ variables == o.variables &&
141
141
  updated_at == o.updated_at
142
142
  end
143
143
 
@@ -150,7 +150,7 @@ module MailSlurpClient
150
150
  # Calculates hash code according to all attributes.
151
151
  # @return [Integer] Hash code
152
152
  def hash
153
- [name, id, variables, created_at, updated_at].hash
153
+ [name, id, created_at, variables, updated_at].hash
154
154
  end
155
155
 
156
156
  # Builds the object from hash