mailslurp_client 15.19.21 → 15.19.22

Sign up to get free protection for your applications and to get access to all the features.
Files changed (66) hide show
  1. checksums.yaml +4 -4
  2. data/lib/mailslurp_client/api/imap_controller_api.rb +61 -0
  3. data/lib/mailslurp_client/api/inbox_controller_api.rb +63 -0
  4. data/lib/mailslurp_client/models/alias_projection.rb +38 -38
  5. data/lib/mailslurp_client/models/attachment_projection.rb +29 -29
  6. data/lib/mailslurp_client/models/bounce_projection.rb +22 -22
  7. data/lib/mailslurp_client/models/bounce_recipient_projection.rb +22 -22
  8. data/lib/mailslurp_client/models/connector_projection.rb +24 -24
  9. data/lib/mailslurp_client/models/connector_sync_event_projection.rb +15 -15
  10. data/lib/mailslurp_client/models/contact_projection.rb +10 -10
  11. data/lib/mailslurp_client/models/domain_name_record.rb +16 -4
  12. data/lib/mailslurp_client/models/email_available_result.rb +211 -0
  13. data/lib/mailslurp_client/models/email_projection.rb +15 -15
  14. data/lib/mailslurp_client/models/expired_inbox_record_projection.rb +15 -15
  15. data/lib/mailslurp_client/models/imap_email_projection.rb +15 -15
  16. data/lib/mailslurp_client/models/imap_server_mailbox_result.rb +221 -0
  17. data/lib/mailslurp_client/models/inbox_forwarder_event_projection.rb +10 -10
  18. data/lib/mailslurp_client/models/inbox_replier_event_projection.rb +20 -20
  19. data/lib/mailslurp_client/models/list_unsubscribe_recipient_projection.rb +15 -15
  20. data/lib/mailslurp_client/models/missed_email_projection.rb +10 -10
  21. data/lib/mailslurp_client/models/page_alias.rb +10 -10
  22. data/lib/mailslurp_client/models/page_attachment_entity.rb +10 -10
  23. data/lib/mailslurp_client/models/page_bounced_email.rb +10 -10
  24. data/lib/mailslurp_client/models/page_bounced_recipients.rb +10 -10
  25. data/lib/mailslurp_client/models/page_complaint.rb +10 -10
  26. data/lib/mailslurp_client/models/page_connector.rb +10 -10
  27. data/lib/mailslurp_client/models/page_connector_sync_events.rb +10 -10
  28. data/lib/mailslurp_client/models/page_contact_projection.rb +10 -10
  29. data/lib/mailslurp_client/models/page_delivery_status.rb +10 -10
  30. data/lib/mailslurp_client/models/page_email_preview.rb +10 -10
  31. data/lib/mailslurp_client/models/page_email_projection.rb +10 -10
  32. data/lib/mailslurp_client/models/page_email_validation_request.rb +10 -10
  33. data/lib/mailslurp_client/models/page_expired_inbox_record_projection.rb +10 -10
  34. data/lib/mailslurp_client/models/page_group_projection.rb +10 -10
  35. data/lib/mailslurp_client/models/page_inbox_forwarder_dto.rb +10 -10
  36. data/lib/mailslurp_client/models/page_inbox_forwarder_events.rb +10 -10
  37. data/lib/mailslurp_client/models/page_inbox_projection.rb +10 -10
  38. data/lib/mailslurp_client/models/page_inbox_replier_dto.rb +10 -10
  39. data/lib/mailslurp_client/models/page_inbox_replier_events.rb +10 -10
  40. data/lib/mailslurp_client/models/page_inbox_ruleset_dto.rb +10 -10
  41. data/lib/mailslurp_client/models/page_list_unsubscribe_recipients.rb +10 -10
  42. data/lib/mailslurp_client/models/page_missed_email_projection.rb +10 -10
  43. data/lib/mailslurp_client/models/page_organization_inbox_projection.rb +10 -10
  44. data/lib/mailslurp_client/models/page_phone_number_projection.rb +10 -10
  45. data/lib/mailslurp_client/models/page_scheduled_jobs.rb +10 -10
  46. data/lib/mailslurp_client/models/page_sent_email_projection.rb +10 -10
  47. data/lib/mailslurp_client/models/page_sent_email_with_queue_projection.rb +10 -10
  48. data/lib/mailslurp_client/models/page_sms_projection.rb +10 -10
  49. data/lib/mailslurp_client/models/page_template_projection.rb +10 -10
  50. data/lib/mailslurp_client/models/page_thread_projection.rb +10 -10
  51. data/lib/mailslurp_client/models/page_tracking_pixel_projection.rb +10 -10
  52. data/lib/mailslurp_client/models/page_unknown_missed_email_projection.rb +10 -10
  53. data/lib/mailslurp_client/models/page_webhook_projection.rb +10 -10
  54. data/lib/mailslurp_client/models/page_webhook_result.rb +10 -10
  55. data/lib/mailslurp_client/models/pageable_object.rb +10 -10
  56. data/lib/mailslurp_client/models/phone_number_projection.rb +15 -15
  57. data/lib/mailslurp_client/models/sent_email_projection.rb +15 -15
  58. data/lib/mailslurp_client/models/sms_projection.rb +29 -29
  59. data/lib/mailslurp_client/models/template_projection.rb +17 -17
  60. data/lib/mailslurp_client/models/thread_projection.rb +31 -31
  61. data/lib/mailslurp_client/models/tracking_pixel_projection.rb +15 -15
  62. data/lib/mailslurp_client/models/unknown_missed_email_projection.rb +10 -10
  63. data/lib/mailslurp_client/models/webhook_projection.rb +25 -25
  64. data/lib/mailslurp_client/version.rb +1 -1
  65. data/lib/mailslurp_client.rb +2 -0
  66. metadata +4 -2
@@ -27,14 +27,14 @@ module MailSlurpClient
27
27
 
28
28
  attr_accessor :number_of_elements
29
29
 
30
+ attr_accessor :first
31
+
30
32
  attr_accessor :size
31
33
 
32
34
  attr_accessor :number
33
35
 
34
36
  attr_accessor :sort
35
37
 
36
- attr_accessor :first
37
-
38
38
  attr_accessor :empty
39
39
 
40
40
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -46,10 +46,10 @@ module MailSlurpClient
46
46
  :'total_elements' => :'totalElements',
47
47
  :'last' => :'last',
48
48
  :'number_of_elements' => :'numberOfElements',
49
+ :'first' => :'first',
49
50
  :'size' => :'size',
50
51
  :'number' => :'number',
51
52
  :'sort' => :'sort',
52
- :'first' => :'first',
53
53
  :'empty' => :'empty'
54
54
  }
55
55
  end
@@ -63,10 +63,10 @@ module MailSlurpClient
63
63
  :'total_elements' => :'Integer',
64
64
  :'last' => :'Boolean',
65
65
  :'number_of_elements' => :'Integer',
66
+ :'first' => :'Boolean',
66
67
  :'size' => :'Integer',
67
68
  :'number' => :'Integer',
68
69
  :'sort' => :'SortObject',
69
- :'first' => :'Boolean',
70
70
  :'empty' => :'Boolean'
71
71
  }
72
72
  end
@@ -118,6 +118,10 @@ module MailSlurpClient
118
118
  self.number_of_elements = attributes[:'number_of_elements']
119
119
  end
120
120
 
121
+ if attributes.key?(:'first')
122
+ self.first = attributes[:'first']
123
+ end
124
+
121
125
  if attributes.key?(:'size')
122
126
  self.size = attributes[:'size']
123
127
  end
@@ -130,10 +134,6 @@ module MailSlurpClient
130
134
  self.sort = attributes[:'sort']
131
135
  end
132
136
 
133
- if attributes.key?(:'first')
134
- self.first = attributes[:'first']
135
- end
136
-
137
137
  if attributes.key?(:'empty')
138
138
  self.empty = attributes[:'empty']
139
139
  end
@@ -173,10 +173,10 @@ module MailSlurpClient
173
173
  total_elements == o.total_elements &&
174
174
  last == o.last &&
175
175
  number_of_elements == o.number_of_elements &&
176
+ first == o.first &&
176
177
  size == o.size &&
177
178
  number == o.number &&
178
179
  sort == o.sort &&
179
- first == o.first &&
180
180
  empty == o.empty
181
181
  end
182
182
 
@@ -189,7 +189,7 @@ module MailSlurpClient
189
189
  # Calculates hash code according to all attributes.
190
190
  # @return [Integer] Hash code
191
191
  def hash
192
- [content, pageable, total_pages, total_elements, last, number_of_elements, size, number, sort, first, empty].hash
192
+ [content, pageable, total_pages, total_elements, last, number_of_elements, first, size, number, sort, empty].hash
193
193
  end
194
194
 
195
195
  # Builds the object from hash
@@ -18,10 +18,10 @@ module MailSlurpClient
18
18
 
19
19
  attr_accessor :page_size
20
20
 
21
- attr_accessor :paged
22
-
23
21
  attr_accessor :unpaged
24
22
 
23
+ attr_accessor :paged
24
+
25
25
  attr_accessor :offset
26
26
 
27
27
  attr_accessor :sort
@@ -31,8 +31,8 @@ module MailSlurpClient
31
31
  {
32
32
  :'page_number' => :'pageNumber',
33
33
  :'page_size' => :'pageSize',
34
- :'paged' => :'paged',
35
34
  :'unpaged' => :'unpaged',
35
+ :'paged' => :'paged',
36
36
  :'offset' => :'offset',
37
37
  :'sort' => :'sort'
38
38
  }
@@ -43,8 +43,8 @@ module MailSlurpClient
43
43
  {
44
44
  :'page_number' => :'Integer',
45
45
  :'page_size' => :'Integer',
46
- :'paged' => :'Boolean',
47
46
  :'unpaged' => :'Boolean',
47
+ :'paged' => :'Boolean',
48
48
  :'offset' => :'Integer',
49
49
  :'sort' => :'SortObject'
50
50
  }
@@ -79,14 +79,14 @@ module MailSlurpClient
79
79
  self.page_size = attributes[:'page_size']
80
80
  end
81
81
 
82
- if attributes.key?(:'paged')
83
- self.paged = attributes[:'paged']
84
- end
85
-
86
82
  if attributes.key?(:'unpaged')
87
83
  self.unpaged = attributes[:'unpaged']
88
84
  end
89
85
 
86
+ if attributes.key?(:'paged')
87
+ self.paged = attributes[:'paged']
88
+ end
89
+
90
90
  if attributes.key?(:'offset')
91
91
  self.offset = attributes[:'offset']
92
92
  end
@@ -116,8 +116,8 @@ module MailSlurpClient
116
116
  self.class == o.class &&
117
117
  page_number == o.page_number &&
118
118
  page_size == o.page_size &&
119
- paged == o.paged &&
120
119
  unpaged == o.unpaged &&
120
+ paged == o.paged &&
121
121
  offset == o.offset &&
122
122
  sort == o.sort
123
123
  end
@@ -131,7 +131,7 @@ module MailSlurpClient
131
131
  # Calculates hash code according to all attributes.
132
132
  # @return [Integer] Hash code
133
133
  def hash
134
- [page_number, page_size, paged, unpaged, offset, sort].hash
134
+ [page_number, page_size, unpaged, paged, offset, sort].hash
135
135
  end
136
136
 
137
137
  # Builds the object from hash
@@ -15,14 +15,14 @@ require 'date'
15
15
  module MailSlurpClient
16
16
  # Phone number projection
17
17
  class PhoneNumberProjection
18
+ attr_accessor :created_at
19
+
18
20
  attr_accessor :user_id
19
21
 
20
22
  attr_accessor :phone_number
21
23
 
22
24
  attr_accessor :phone_country
23
25
 
24
- attr_accessor :created_at
25
-
26
26
  attr_accessor :id
27
27
 
28
28
  class EnumAttributeValidator
@@ -50,10 +50,10 @@ module MailSlurpClient
50
50
  # Attribute mapping from ruby-style variable name to JSON key.
51
51
  def self.attribute_map
52
52
  {
53
+ :'created_at' => :'createdAt',
53
54
  :'user_id' => :'userId',
54
55
  :'phone_number' => :'phoneNumber',
55
56
  :'phone_country' => :'phoneCountry',
56
- :'created_at' => :'createdAt',
57
57
  :'id' => :'id'
58
58
  }
59
59
  end
@@ -61,10 +61,10 @@ module MailSlurpClient
61
61
  # Attribute type mapping.
62
62
  def self.openapi_types
63
63
  {
64
+ :'created_at' => :'DateTime',
64
65
  :'user_id' => :'String',
65
66
  :'phone_number' => :'String',
66
67
  :'phone_country' => :'String',
67
- :'created_at' => :'DateTime',
68
68
  :'id' => :'String'
69
69
  }
70
70
  end
@@ -90,6 +90,10 @@ module MailSlurpClient
90
90
  h[k.to_sym] = v
91
91
  }
92
92
 
93
+ if attributes.key?(:'created_at')
94
+ self.created_at = attributes[:'created_at']
95
+ end
96
+
93
97
  if attributes.key?(:'user_id')
94
98
  self.user_id = attributes[:'user_id']
95
99
  end
@@ -102,10 +106,6 @@ module MailSlurpClient
102
106
  self.phone_country = attributes[:'phone_country']
103
107
  end
104
108
 
105
- if attributes.key?(:'created_at')
106
- self.created_at = attributes[:'created_at']
107
- end
108
-
109
109
  if attributes.key?(:'id')
110
110
  self.id = attributes[:'id']
111
111
  end
@@ -115,6 +115,10 @@ module MailSlurpClient
115
115
  # @return Array for valid properties with the reasons
116
116
  def list_invalid_properties
117
117
  invalid_properties = Array.new
118
+ if @created_at.nil?
119
+ invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
120
+ end
121
+
118
122
  if @user_id.nil?
119
123
  invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
120
124
  end
@@ -127,10 +131,6 @@ module MailSlurpClient
127
131
  invalid_properties.push('invalid value for "phone_country", phone_country cannot be nil.')
128
132
  end
129
133
 
130
- if @created_at.nil?
131
- invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
132
- end
133
-
134
134
  if @id.nil?
135
135
  invalid_properties.push('invalid value for "id", id cannot be nil.')
136
136
  end
@@ -141,12 +141,12 @@ module MailSlurpClient
141
141
  # Check to see if the all the properties in the model are valid
142
142
  # @return true if the model is valid
143
143
  def valid?
144
+ return false if @created_at.nil?
144
145
  return false if @user_id.nil?
145
146
  return false if @phone_number.nil?
146
147
  return false if @phone_country.nil?
147
148
  phone_country_validator = EnumAttributeValidator.new('String', ["US", "GB", "AU"])
148
149
  return false unless phone_country_validator.valid?(@phone_country)
149
- return false if @created_at.nil?
150
150
  return false if @id.nil?
151
151
  true
152
152
  end
@@ -166,10 +166,10 @@ module MailSlurpClient
166
166
  def ==(o)
167
167
  return true if self.equal?(o)
168
168
  self.class == o.class &&
169
+ created_at == o.created_at &&
169
170
  user_id == o.user_id &&
170
171
  phone_number == o.phone_number &&
171
172
  phone_country == o.phone_country &&
172
- created_at == o.created_at &&
173
173
  id == o.id
174
174
  end
175
175
 
@@ -182,7 +182,7 @@ module MailSlurpClient
182
182
  # Calculates hash code according to all attributes.
183
183
  # @return [Integer] Hash code
184
184
  def hash
185
- [user_id, phone_number, phone_country, created_at, id].hash
185
+ [created_at, user_id, phone_number, phone_country, id].hash
186
186
  end
187
187
 
188
188
  # Builds the object from hash
@@ -14,6 +14,8 @@ require 'date'
14
14
 
15
15
  module MailSlurpClient
16
16
  class SentEmailProjection
17
+ attr_accessor :created_at
18
+
17
19
  attr_accessor :id
18
20
 
19
21
  attr_accessor :from
@@ -32,8 +34,6 @@ module MailSlurpClient
32
34
 
33
35
  attr_accessor :cc
34
36
 
35
- attr_accessor :created_at
36
-
37
37
  attr_accessor :body_md5_hash
38
38
 
39
39
  attr_accessor :virtual_send
@@ -41,6 +41,7 @@ module MailSlurpClient
41
41
  # Attribute mapping from ruby-style variable name to JSON key.
42
42
  def self.attribute_map
43
43
  {
44
+ :'created_at' => :'createdAt',
44
45
  :'id' => :'id',
45
46
  :'from' => :'from',
46
47
  :'subject' => :'subject',
@@ -50,7 +51,6 @@ module MailSlurpClient
50
51
  :'to' => :'to',
51
52
  :'bcc' => :'bcc',
52
53
  :'cc' => :'cc',
53
- :'created_at' => :'createdAt',
54
54
  :'body_md5_hash' => :'bodyMD5Hash',
55
55
  :'virtual_send' => :'virtualSend'
56
56
  }
@@ -59,6 +59,7 @@ module MailSlurpClient
59
59
  # Attribute type mapping.
60
60
  def self.openapi_types
61
61
  {
62
+ :'created_at' => :'DateTime',
62
63
  :'id' => :'String',
63
64
  :'from' => :'String',
64
65
  :'subject' => :'String',
@@ -68,7 +69,6 @@ module MailSlurpClient
68
69
  :'to' => :'Array<String>',
69
70
  :'bcc' => :'Array<String>',
70
71
  :'cc' => :'Array<String>',
71
- :'created_at' => :'DateTime',
72
72
  :'body_md5_hash' => :'String',
73
73
  :'virtual_send' => :'Boolean'
74
74
  }
@@ -95,6 +95,10 @@ module MailSlurpClient
95
95
  h[k.to_sym] = v
96
96
  }
97
97
 
98
+ if attributes.key?(:'created_at')
99
+ self.created_at = attributes[:'created_at']
100
+ end
101
+
98
102
  if attributes.key?(:'id')
99
103
  self.id = attributes[:'id']
100
104
  end
@@ -139,10 +143,6 @@ module MailSlurpClient
139
143
  end
140
144
  end
141
145
 
142
- if attributes.key?(:'created_at')
143
- self.created_at = attributes[:'created_at']
144
- end
145
-
146
146
  if attributes.key?(:'body_md5_hash')
147
147
  self.body_md5_hash = attributes[:'body_md5_hash']
148
148
  end
@@ -156,6 +156,10 @@ module MailSlurpClient
156
156
  # @return Array for valid properties with the reasons
157
157
  def list_invalid_properties
158
158
  invalid_properties = Array.new
159
+ if @created_at.nil?
160
+ invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
161
+ end
162
+
159
163
  if @id.nil?
160
164
  invalid_properties.push('invalid value for "id", id cannot be nil.')
161
165
  end
@@ -184,10 +188,6 @@ module MailSlurpClient
184
188
  invalid_properties.push('invalid value for "cc", cc cannot be nil.')
185
189
  end
186
190
 
187
- if @created_at.nil?
188
- invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
189
- end
190
-
191
191
  if @virtual_send.nil?
192
192
  invalid_properties.push('invalid value for "virtual_send", virtual_send cannot be nil.')
193
193
  end
@@ -198,6 +198,7 @@ module MailSlurpClient
198
198
  # Check to see if the all the properties in the model are valid
199
199
  # @return true if the model is valid
200
200
  def valid?
201
+ return false if @created_at.nil?
201
202
  return false if @id.nil?
202
203
  return false if @attachments.nil?
203
204
  return false if @inbox_id.nil?
@@ -205,7 +206,6 @@ module MailSlurpClient
205
206
  return false if @to.nil?
206
207
  return false if @bcc.nil?
207
208
  return false if @cc.nil?
208
- return false if @created_at.nil?
209
209
  return false if @virtual_send.nil?
210
210
  true
211
211
  end
@@ -215,6 +215,7 @@ module MailSlurpClient
215
215
  def ==(o)
216
216
  return true if self.equal?(o)
217
217
  self.class == o.class &&
218
+ created_at == o.created_at &&
218
219
  id == o.id &&
219
220
  from == o.from &&
220
221
  subject == o.subject &&
@@ -224,7 +225,6 @@ module MailSlurpClient
224
225
  to == o.to &&
225
226
  bcc == o.bcc &&
226
227
  cc == o.cc &&
227
- created_at == o.created_at &&
228
228
  body_md5_hash == o.body_md5_hash &&
229
229
  virtual_send == o.virtual_send
230
230
  end
@@ -238,7 +238,7 @@ module MailSlurpClient
238
238
  # Calculates hash code according to all attributes.
239
239
  # @return [Integer] Hash code
240
240
  def hash
241
- [id, from, subject, attachments, inbox_id, user_id, to, bcc, cc, created_at, body_md5_hash, virtual_send].hash
241
+ [created_at, id, from, subject, attachments, inbox_id, user_id, to, bcc, cc, body_md5_hash, virtual_send].hash
242
242
  end
243
243
 
244
244
  # Builds the object from hash
@@ -15,6 +15,10 @@ require 'date'
15
15
  module MailSlurpClient
16
16
  # SMS projection
17
17
  class SmsProjection
18
+ attr_accessor :body
19
+
20
+ attr_accessor :created_at
21
+
18
22
  attr_accessor :user_id
19
23
 
20
24
  attr_accessor :phone_number
@@ -23,21 +27,17 @@ module MailSlurpClient
23
27
 
24
28
  attr_accessor :read
25
29
 
26
- attr_accessor :body
27
-
28
- attr_accessor :created_at
29
-
30
30
  attr_accessor :id
31
31
 
32
32
  # Attribute mapping from ruby-style variable name to JSON key.
33
33
  def self.attribute_map
34
34
  {
35
+ :'body' => :'body',
36
+ :'created_at' => :'createdAt',
35
37
  :'user_id' => :'userId',
36
38
  :'phone_number' => :'phoneNumber',
37
39
  :'from_number' => :'fromNumber',
38
40
  :'read' => :'read',
39
- :'body' => :'body',
40
- :'created_at' => :'createdAt',
41
41
  :'id' => :'id'
42
42
  }
43
43
  end
@@ -45,12 +45,12 @@ module MailSlurpClient
45
45
  # Attribute type mapping.
46
46
  def self.openapi_types
47
47
  {
48
+ :'body' => :'String',
49
+ :'created_at' => :'DateTime',
48
50
  :'user_id' => :'String',
49
51
  :'phone_number' => :'String',
50
52
  :'from_number' => :'String',
51
53
  :'read' => :'Boolean',
52
- :'body' => :'String',
53
- :'created_at' => :'DateTime',
54
54
  :'id' => :'String'
55
55
  }
56
56
  end
@@ -76,6 +76,14 @@ module MailSlurpClient
76
76
  h[k.to_sym] = v
77
77
  }
78
78
 
79
+ if attributes.key?(:'body')
80
+ self.body = attributes[:'body']
81
+ end
82
+
83
+ if attributes.key?(:'created_at')
84
+ self.created_at = attributes[:'created_at']
85
+ end
86
+
79
87
  if attributes.key?(:'user_id')
80
88
  self.user_id = attributes[:'user_id']
81
89
  end
@@ -92,14 +100,6 @@ module MailSlurpClient
92
100
  self.read = attributes[:'read']
93
101
  end
94
102
 
95
- if attributes.key?(:'body')
96
- self.body = attributes[:'body']
97
- end
98
-
99
- if attributes.key?(:'created_at')
100
- self.created_at = attributes[:'created_at']
101
- end
102
-
103
103
  if attributes.key?(:'id')
104
104
  self.id = attributes[:'id']
105
105
  end
@@ -109,6 +109,14 @@ module MailSlurpClient
109
109
  # @return Array for valid properties with the reasons
110
110
  def list_invalid_properties
111
111
  invalid_properties = Array.new
112
+ if @body.nil?
113
+ invalid_properties.push('invalid value for "body", body cannot be nil.')
114
+ end
115
+
116
+ if @created_at.nil?
117
+ invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
118
+ end
119
+
112
120
  if @user_id.nil?
113
121
  invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
114
122
  end
@@ -125,14 +133,6 @@ module MailSlurpClient
125
133
  invalid_properties.push('invalid value for "read", read cannot be nil.')
126
134
  end
127
135
 
128
- if @body.nil?
129
- invalid_properties.push('invalid value for "body", body cannot be nil.')
130
- end
131
-
132
- if @created_at.nil?
133
- invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
134
- end
135
-
136
136
  if @id.nil?
137
137
  invalid_properties.push('invalid value for "id", id cannot be nil.')
138
138
  end
@@ -143,12 +143,12 @@ module MailSlurpClient
143
143
  # Check to see if the all the properties in the model are valid
144
144
  # @return true if the model is valid
145
145
  def valid?
146
+ return false if @body.nil?
147
+ return false if @created_at.nil?
146
148
  return false if @user_id.nil?
147
149
  return false if @phone_number.nil?
148
150
  return false if @from_number.nil?
149
151
  return false if @read.nil?
150
- return false if @body.nil?
151
- return false if @created_at.nil?
152
152
  return false if @id.nil?
153
153
  true
154
154
  end
@@ -158,12 +158,12 @@ module MailSlurpClient
158
158
  def ==(o)
159
159
  return true if self.equal?(o)
160
160
  self.class == o.class &&
161
+ body == o.body &&
162
+ created_at == o.created_at &&
161
163
  user_id == o.user_id &&
162
164
  phone_number == o.phone_number &&
163
165
  from_number == o.from_number &&
164
166
  read == o.read &&
165
- body == o.body &&
166
- created_at == o.created_at &&
167
167
  id == o.id
168
168
  end
169
169
 
@@ -176,7 +176,7 @@ module MailSlurpClient
176
176
  # Calculates hash code according to all attributes.
177
177
  # @return [Integer] Hash code
178
178
  def hash
179
- [user_id, phone_number, from_number, read, body, created_at, id].hash
179
+ [body, created_at, user_id, phone_number, from_number, read, id].hash
180
180
  end
181
181
 
182
182
  # Builds the object from hash
@@ -15,12 +15,12 @@ require 'date'
15
15
  module MailSlurpClient
16
16
  # Email template data
17
17
  class TemplateProjection
18
- attr_accessor :variables
19
-
20
18
  attr_accessor :created_at
21
19
 
22
20
  attr_accessor :updated_at
23
21
 
22
+ attr_accessor :variables
23
+
24
24
  attr_accessor :name
25
25
 
26
26
  attr_accessor :id
@@ -28,9 +28,9 @@ module MailSlurpClient
28
28
  # Attribute mapping from ruby-style variable name to JSON key.
29
29
  def self.attribute_map
30
30
  {
31
- :'variables' => :'variables',
32
31
  :'created_at' => :'createdAt',
33
32
  :'updated_at' => :'updatedAt',
33
+ :'variables' => :'variables',
34
34
  :'name' => :'name',
35
35
  :'id' => :'id'
36
36
  }
@@ -39,9 +39,9 @@ module MailSlurpClient
39
39
  # Attribute type mapping.
40
40
  def self.openapi_types
41
41
  {
42
- :'variables' => :'Array<String>',
43
42
  :'created_at' => :'DateTime',
44
43
  :'updated_at' => :'DateTime',
44
+ :'variables' => :'Array<String>',
45
45
  :'name' => :'String',
46
46
  :'id' => :'String'
47
47
  }
@@ -68,12 +68,6 @@ module MailSlurpClient
68
68
  h[k.to_sym] = v
69
69
  }
70
70
 
71
- if attributes.key?(:'variables')
72
- if (value = attributes[:'variables']).is_a?(Array)
73
- self.variables = value
74
- end
75
- end
76
-
77
71
  if attributes.key?(:'created_at')
78
72
  self.created_at = attributes[:'created_at']
79
73
  end
@@ -82,6 +76,12 @@ module MailSlurpClient
82
76
  self.updated_at = attributes[:'updated_at']
83
77
  end
84
78
 
79
+ if attributes.key?(:'variables')
80
+ if (value = attributes[:'variables']).is_a?(Array)
81
+ self.variables = value
82
+ end
83
+ end
84
+
85
85
  if attributes.key?(:'name')
86
86
  self.name = attributes[:'name']
87
87
  end
@@ -95,10 +95,6 @@ module MailSlurpClient
95
95
  # @return Array for valid properties with the reasons
96
96
  def list_invalid_properties
97
97
  invalid_properties = Array.new
98
- if @variables.nil?
99
- invalid_properties.push('invalid value for "variables", variables cannot be nil.')
100
- end
101
-
102
98
  if @created_at.nil?
103
99
  invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
104
100
  end
@@ -107,6 +103,10 @@ module MailSlurpClient
107
103
  invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
108
104
  end
109
105
 
106
+ if @variables.nil?
107
+ invalid_properties.push('invalid value for "variables", variables cannot be nil.')
108
+ end
109
+
110
110
  if @name.nil?
111
111
  invalid_properties.push('invalid value for "name", name cannot be nil.')
112
112
  end
@@ -121,9 +121,9 @@ module MailSlurpClient
121
121
  # Check to see if the all the properties in the model are valid
122
122
  # @return true if the model is valid
123
123
  def valid?
124
- return false if @variables.nil?
125
124
  return false if @created_at.nil?
126
125
  return false if @updated_at.nil?
126
+ return false if @variables.nil?
127
127
  return false if @name.nil?
128
128
  return false if @id.nil?
129
129
  true
@@ -134,9 +134,9 @@ module MailSlurpClient
134
134
  def ==(o)
135
135
  return true if self.equal?(o)
136
136
  self.class == o.class &&
137
- variables == o.variables &&
138
137
  created_at == o.created_at &&
139
138
  updated_at == o.updated_at &&
139
+ variables == o.variables &&
140
140
  name == o.name &&
141
141
  id == o.id
142
142
  end
@@ -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
- [variables, created_at, updated_at, name, id].hash
153
+ [created_at, updated_at, variables, name, id].hash
154
154
  end
155
155
 
156
156
  # Builds the object from hash