mailslurp_client 15.19.2 → 15.19.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (64) hide show
  1. checksums.yaml +4 -4
  2. data/lib/mailslurp_client/api/imap_controller_api.rb +65 -0
  3. data/lib/mailslurp_client/models/alias_projection.rb +29 -29
  4. data/lib/mailslurp_client/models/attachment_projection.rb +29 -29
  5. data/lib/mailslurp_client/models/bounce_projection.rb +19 -19
  6. data/lib/mailslurp_client/models/bounce_recipient_projection.rb +15 -15
  7. data/lib/mailslurp_client/models/connector_projection.rb +15 -15
  8. data/lib/mailslurp_client/models/connector_sync_event_projection.rb +15 -15
  9. data/lib/mailslurp_client/models/contact_projection.rb +10 -10
  10. data/lib/mailslurp_client/models/email_projection.rb +19 -19
  11. data/lib/mailslurp_client/models/expired_inbox_record_projection.rb +15 -15
  12. data/lib/mailslurp_client/models/imap_email_projection.rb +25 -1
  13. data/lib/mailslurp_client/models/imap_mailbox_status.rb +367 -0
  14. data/lib/mailslurp_client/models/imap_server_status_options.rb +241 -0
  15. data/lib/mailslurp_client/models/imap_server_status_result.rb +207 -0
  16. data/lib/mailslurp_client/models/inbox_forwarder_event_projection.rb +10 -10
  17. data/lib/mailslurp_client/models/inbox_replier_event_projection.rb +14 -14
  18. data/lib/mailslurp_client/models/list_unsubscribe_recipient_projection.rb +15 -15
  19. data/lib/mailslurp_client/models/missed_email_projection.rb +14 -14
  20. data/lib/mailslurp_client/models/page_alias.rb +15 -15
  21. data/lib/mailslurp_client/models/page_attachment_entity.rb +15 -15
  22. data/lib/mailslurp_client/models/page_bounced_email.rb +15 -15
  23. data/lib/mailslurp_client/models/page_bounced_recipients.rb +15 -15
  24. data/lib/mailslurp_client/models/page_complaint.rb +15 -15
  25. data/lib/mailslurp_client/models/page_connector.rb +15 -15
  26. data/lib/mailslurp_client/models/page_connector_sync_events.rb +15 -15
  27. data/lib/mailslurp_client/models/page_contact_projection.rb +15 -15
  28. data/lib/mailslurp_client/models/page_delivery_status.rb +15 -15
  29. data/lib/mailslurp_client/models/page_email_preview.rb +15 -15
  30. data/lib/mailslurp_client/models/page_email_projection.rb +15 -15
  31. data/lib/mailslurp_client/models/page_email_validation_request.rb +15 -15
  32. data/lib/mailslurp_client/models/page_expired_inbox_record_projection.rb +15 -15
  33. data/lib/mailslurp_client/models/page_group_projection.rb +15 -15
  34. data/lib/mailslurp_client/models/page_inbox_forwarder_dto.rb +15 -15
  35. data/lib/mailslurp_client/models/page_inbox_forwarder_events.rb +15 -15
  36. data/lib/mailslurp_client/models/page_inbox_projection.rb +15 -15
  37. data/lib/mailslurp_client/models/page_inbox_replier_dto.rb +15 -15
  38. data/lib/mailslurp_client/models/page_inbox_replier_events.rb +15 -15
  39. data/lib/mailslurp_client/models/page_inbox_ruleset_dto.rb +15 -15
  40. data/lib/mailslurp_client/models/page_list_unsubscribe_recipients.rb +15 -15
  41. data/lib/mailslurp_client/models/page_missed_email_projection.rb +15 -15
  42. data/lib/mailslurp_client/models/page_organization_inbox_projection.rb +15 -15
  43. data/lib/mailslurp_client/models/page_phone_number_projection.rb +15 -15
  44. data/lib/mailslurp_client/models/page_scheduled_jobs.rb +15 -15
  45. data/lib/mailslurp_client/models/page_sent_email_projection.rb +15 -15
  46. data/lib/mailslurp_client/models/page_sent_email_with_queue_projection.rb +15 -15
  47. data/lib/mailslurp_client/models/page_sms_projection.rb +15 -15
  48. data/lib/mailslurp_client/models/page_template_projection.rb +15 -15
  49. data/lib/mailslurp_client/models/page_thread_projection.rb +15 -15
  50. data/lib/mailslurp_client/models/page_tracking_pixel_projection.rb +15 -15
  51. data/lib/mailslurp_client/models/page_unknown_missed_email_projection.rb +15 -15
  52. data/lib/mailslurp_client/models/page_webhook_projection.rb +15 -15
  53. data/lib/mailslurp_client/models/page_webhook_result.rb +15 -15
  54. data/lib/mailslurp_client/models/phone_number_projection.rb +15 -15
  55. data/lib/mailslurp_client/models/sent_email_projection.rb +27 -27
  56. data/lib/mailslurp_client/models/sms_projection.rb +29 -29
  57. data/lib/mailslurp_client/models/template_projection.rb +17 -17
  58. data/lib/mailslurp_client/models/thread_projection.rb +35 -35
  59. data/lib/mailslurp_client/models/tracking_pixel_projection.rb +15 -15
  60. data/lib/mailslurp_client/models/unknown_missed_email_projection.rb +13 -13
  61. data/lib/mailslurp_client/models/webhook_projection.rb +25 -25
  62. data/lib/mailslurp_client/version.rb +1 -1
  63. data/lib/mailslurp_client.rb +3 -0
  64. metadata +5 -2
@@ -19,10 +19,10 @@ module MailSlurpClient
19
19
 
20
20
  attr_accessor :pageable
21
21
 
22
- attr_accessor :total_elements
23
-
24
22
  attr_accessor :total_pages
25
23
 
24
+ attr_accessor :total_elements
25
+
26
26
  attr_accessor :last
27
27
 
28
28
  attr_accessor :number_of_elements
@@ -42,8 +42,8 @@ module MailSlurpClient
42
42
  {
43
43
  :'content' => :'content',
44
44
  :'pageable' => :'pageable',
45
- :'total_elements' => :'totalElements',
46
45
  :'total_pages' => :'totalPages',
46
+ :'total_elements' => :'totalElements',
47
47
  :'last' => :'last',
48
48
  :'number_of_elements' => :'numberOfElements',
49
49
  :'first' => :'first',
@@ -59,8 +59,8 @@ module MailSlurpClient
59
59
  {
60
60
  :'content' => :'Array<ThreadProjection>',
61
61
  :'pageable' => :'PageableObject',
62
- :'total_elements' => :'Integer',
63
62
  :'total_pages' => :'Integer',
63
+ :'total_elements' => :'Integer',
64
64
  :'last' => :'Boolean',
65
65
  :'number_of_elements' => :'Integer',
66
66
  :'first' => :'Boolean',
@@ -102,14 +102,14 @@ module MailSlurpClient
102
102
  self.pageable = attributes[:'pageable']
103
103
  end
104
104
 
105
- if attributes.key?(:'total_elements')
106
- self.total_elements = attributes[:'total_elements']
107
- end
108
-
109
105
  if attributes.key?(:'total_pages')
110
106
  self.total_pages = attributes[:'total_pages']
111
107
  end
112
108
 
109
+ if attributes.key?(:'total_elements')
110
+ self.total_elements = attributes[:'total_elements']
111
+ end
112
+
113
113
  if attributes.key?(:'last')
114
114
  self.last = attributes[:'last']
115
115
  end
@@ -143,22 +143,22 @@ module MailSlurpClient
143
143
  # @return Array for valid properties with the reasons
144
144
  def list_invalid_properties
145
145
  invalid_properties = Array.new
146
- if @total_elements.nil?
147
- invalid_properties.push('invalid value for "total_elements", total_elements cannot be nil.')
148
- end
149
-
150
146
  if @total_pages.nil?
151
147
  invalid_properties.push('invalid value for "total_pages", total_pages cannot be nil.')
152
148
  end
153
149
 
150
+ if @total_elements.nil?
151
+ invalid_properties.push('invalid value for "total_elements", total_elements cannot be nil.')
152
+ end
153
+
154
154
  invalid_properties
155
155
  end
156
156
 
157
157
  # Check to see if the all the properties in the model are valid
158
158
  # @return true if the model is valid
159
159
  def valid?
160
- return false if @total_elements.nil?
161
160
  return false if @total_pages.nil?
161
+ return false if @total_elements.nil?
162
162
  true
163
163
  end
164
164
 
@@ -169,8 +169,8 @@ module MailSlurpClient
169
169
  self.class == o.class &&
170
170
  content == o.content &&
171
171
  pageable == o.pageable &&
172
- total_elements == o.total_elements &&
173
172
  total_pages == o.total_pages &&
173
+ total_elements == o.total_elements &&
174
174
  last == o.last &&
175
175
  number_of_elements == o.number_of_elements &&
176
176
  first == o.first &&
@@ -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_elements, total_pages, last, number_of_elements, first, size, number, sort, 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
@@ -19,10 +19,10 @@ module MailSlurpClient
19
19
 
20
20
  attr_accessor :pageable
21
21
 
22
- attr_accessor :total_elements
23
-
24
22
  attr_accessor :total_pages
25
23
 
24
+ attr_accessor :total_elements
25
+
26
26
  attr_accessor :last
27
27
 
28
28
  attr_accessor :number_of_elements
@@ -42,8 +42,8 @@ module MailSlurpClient
42
42
  {
43
43
  :'content' => :'content',
44
44
  :'pageable' => :'pageable',
45
- :'total_elements' => :'totalElements',
46
45
  :'total_pages' => :'totalPages',
46
+ :'total_elements' => :'totalElements',
47
47
  :'last' => :'last',
48
48
  :'number_of_elements' => :'numberOfElements',
49
49
  :'first' => :'first',
@@ -59,8 +59,8 @@ module MailSlurpClient
59
59
  {
60
60
  :'content' => :'Array<TrackingPixelProjection>',
61
61
  :'pageable' => :'PageableObject',
62
- :'total_elements' => :'Integer',
63
62
  :'total_pages' => :'Integer',
63
+ :'total_elements' => :'Integer',
64
64
  :'last' => :'Boolean',
65
65
  :'number_of_elements' => :'Integer',
66
66
  :'first' => :'Boolean',
@@ -102,14 +102,14 @@ module MailSlurpClient
102
102
  self.pageable = attributes[:'pageable']
103
103
  end
104
104
 
105
- if attributes.key?(:'total_elements')
106
- self.total_elements = attributes[:'total_elements']
107
- end
108
-
109
105
  if attributes.key?(:'total_pages')
110
106
  self.total_pages = attributes[:'total_pages']
111
107
  end
112
108
 
109
+ if attributes.key?(:'total_elements')
110
+ self.total_elements = attributes[:'total_elements']
111
+ end
112
+
113
113
  if attributes.key?(:'last')
114
114
  self.last = attributes[:'last']
115
115
  end
@@ -143,22 +143,22 @@ module MailSlurpClient
143
143
  # @return Array for valid properties with the reasons
144
144
  def list_invalid_properties
145
145
  invalid_properties = Array.new
146
- if @total_elements.nil?
147
- invalid_properties.push('invalid value for "total_elements", total_elements cannot be nil.')
148
- end
149
-
150
146
  if @total_pages.nil?
151
147
  invalid_properties.push('invalid value for "total_pages", total_pages cannot be nil.')
152
148
  end
153
149
 
150
+ if @total_elements.nil?
151
+ invalid_properties.push('invalid value for "total_elements", total_elements cannot be nil.')
152
+ end
153
+
154
154
  invalid_properties
155
155
  end
156
156
 
157
157
  # Check to see if the all the properties in the model are valid
158
158
  # @return true if the model is valid
159
159
  def valid?
160
- return false if @total_elements.nil?
161
160
  return false if @total_pages.nil?
161
+ return false if @total_elements.nil?
162
162
  true
163
163
  end
164
164
 
@@ -169,8 +169,8 @@ module MailSlurpClient
169
169
  self.class == o.class &&
170
170
  content == o.content &&
171
171
  pageable == o.pageable &&
172
- total_elements == o.total_elements &&
173
172
  total_pages == o.total_pages &&
173
+ total_elements == o.total_elements &&
174
174
  last == o.last &&
175
175
  number_of_elements == o.number_of_elements &&
176
176
  first == o.first &&
@@ -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_elements, total_pages, last, number_of_elements, first, size, number, sort, 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
@@ -19,10 +19,10 @@ module MailSlurpClient
19
19
 
20
20
  attr_accessor :pageable
21
21
 
22
- attr_accessor :total_elements
23
-
24
22
  attr_accessor :total_pages
25
23
 
24
+ attr_accessor :total_elements
25
+
26
26
  attr_accessor :last
27
27
 
28
28
  attr_accessor :number_of_elements
@@ -42,8 +42,8 @@ module MailSlurpClient
42
42
  {
43
43
  :'content' => :'content',
44
44
  :'pageable' => :'pageable',
45
- :'total_elements' => :'totalElements',
46
45
  :'total_pages' => :'totalPages',
46
+ :'total_elements' => :'totalElements',
47
47
  :'last' => :'last',
48
48
  :'number_of_elements' => :'numberOfElements',
49
49
  :'first' => :'first',
@@ -59,8 +59,8 @@ module MailSlurpClient
59
59
  {
60
60
  :'content' => :'Array<UnknownMissedEmailProjection>',
61
61
  :'pageable' => :'PageableObject',
62
- :'total_elements' => :'Integer',
63
62
  :'total_pages' => :'Integer',
63
+ :'total_elements' => :'Integer',
64
64
  :'last' => :'Boolean',
65
65
  :'number_of_elements' => :'Integer',
66
66
  :'first' => :'Boolean',
@@ -102,14 +102,14 @@ module MailSlurpClient
102
102
  self.pageable = attributes[:'pageable']
103
103
  end
104
104
 
105
- if attributes.key?(:'total_elements')
106
- self.total_elements = attributes[:'total_elements']
107
- end
108
-
109
105
  if attributes.key?(:'total_pages')
110
106
  self.total_pages = attributes[:'total_pages']
111
107
  end
112
108
 
109
+ if attributes.key?(:'total_elements')
110
+ self.total_elements = attributes[:'total_elements']
111
+ end
112
+
113
113
  if attributes.key?(:'last')
114
114
  self.last = attributes[:'last']
115
115
  end
@@ -143,22 +143,22 @@ module MailSlurpClient
143
143
  # @return Array for valid properties with the reasons
144
144
  def list_invalid_properties
145
145
  invalid_properties = Array.new
146
- if @total_elements.nil?
147
- invalid_properties.push('invalid value for "total_elements", total_elements cannot be nil.')
148
- end
149
-
150
146
  if @total_pages.nil?
151
147
  invalid_properties.push('invalid value for "total_pages", total_pages cannot be nil.')
152
148
  end
153
149
 
150
+ if @total_elements.nil?
151
+ invalid_properties.push('invalid value for "total_elements", total_elements cannot be nil.')
152
+ end
153
+
154
154
  invalid_properties
155
155
  end
156
156
 
157
157
  # Check to see if the all the properties in the model are valid
158
158
  # @return true if the model is valid
159
159
  def valid?
160
- return false if @total_elements.nil?
161
160
  return false if @total_pages.nil?
161
+ return false if @total_elements.nil?
162
162
  true
163
163
  end
164
164
 
@@ -169,8 +169,8 @@ module MailSlurpClient
169
169
  self.class == o.class &&
170
170
  content == o.content &&
171
171
  pageable == o.pageable &&
172
- total_elements == o.total_elements &&
173
172
  total_pages == o.total_pages &&
173
+ total_elements == o.total_elements &&
174
174
  last == o.last &&
175
175
  number_of_elements == o.number_of_elements &&
176
176
  first == o.first &&
@@ -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_elements, total_pages, last, number_of_elements, first, size, number, sort, 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
@@ -19,10 +19,10 @@ module MailSlurpClient
19
19
 
20
20
  attr_accessor :pageable
21
21
 
22
- attr_accessor :total_elements
23
-
24
22
  attr_accessor :total_pages
25
23
 
24
+ attr_accessor :total_elements
25
+
26
26
  attr_accessor :last
27
27
 
28
28
  attr_accessor :number_of_elements
@@ -42,8 +42,8 @@ module MailSlurpClient
42
42
  {
43
43
  :'content' => :'content',
44
44
  :'pageable' => :'pageable',
45
- :'total_elements' => :'totalElements',
46
45
  :'total_pages' => :'totalPages',
46
+ :'total_elements' => :'totalElements',
47
47
  :'last' => :'last',
48
48
  :'number_of_elements' => :'numberOfElements',
49
49
  :'first' => :'first',
@@ -59,8 +59,8 @@ module MailSlurpClient
59
59
  {
60
60
  :'content' => :'Array<WebhookProjection>',
61
61
  :'pageable' => :'PageableObject',
62
- :'total_elements' => :'Integer',
63
62
  :'total_pages' => :'Integer',
63
+ :'total_elements' => :'Integer',
64
64
  :'last' => :'Boolean',
65
65
  :'number_of_elements' => :'Integer',
66
66
  :'first' => :'Boolean',
@@ -102,14 +102,14 @@ module MailSlurpClient
102
102
  self.pageable = attributes[:'pageable']
103
103
  end
104
104
 
105
- if attributes.key?(:'total_elements')
106
- self.total_elements = attributes[:'total_elements']
107
- end
108
-
109
105
  if attributes.key?(:'total_pages')
110
106
  self.total_pages = attributes[:'total_pages']
111
107
  end
112
108
 
109
+ if attributes.key?(:'total_elements')
110
+ self.total_elements = attributes[:'total_elements']
111
+ end
112
+
113
113
  if attributes.key?(:'last')
114
114
  self.last = attributes[:'last']
115
115
  end
@@ -143,22 +143,22 @@ module MailSlurpClient
143
143
  # @return Array for valid properties with the reasons
144
144
  def list_invalid_properties
145
145
  invalid_properties = Array.new
146
- if @total_elements.nil?
147
- invalid_properties.push('invalid value for "total_elements", total_elements cannot be nil.')
148
- end
149
-
150
146
  if @total_pages.nil?
151
147
  invalid_properties.push('invalid value for "total_pages", total_pages cannot be nil.')
152
148
  end
153
149
 
150
+ if @total_elements.nil?
151
+ invalid_properties.push('invalid value for "total_elements", total_elements cannot be nil.')
152
+ end
153
+
154
154
  invalid_properties
155
155
  end
156
156
 
157
157
  # Check to see if the all the properties in the model are valid
158
158
  # @return true if the model is valid
159
159
  def valid?
160
- return false if @total_elements.nil?
161
160
  return false if @total_pages.nil?
161
+ return false if @total_elements.nil?
162
162
  true
163
163
  end
164
164
 
@@ -169,8 +169,8 @@ module MailSlurpClient
169
169
  self.class == o.class &&
170
170
  content == o.content &&
171
171
  pageable == o.pageable &&
172
- total_elements == o.total_elements &&
173
172
  total_pages == o.total_pages &&
173
+ total_elements == o.total_elements &&
174
174
  last == o.last &&
175
175
  number_of_elements == o.number_of_elements &&
176
176
  first == o.first &&
@@ -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_elements, total_pages, last, number_of_elements, first, size, number, sort, 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
@@ -19,10 +19,10 @@ module MailSlurpClient
19
19
 
20
20
  attr_accessor :pageable
21
21
 
22
- attr_accessor :total_elements
23
-
24
22
  attr_accessor :total_pages
25
23
 
24
+ attr_accessor :total_elements
25
+
26
26
  attr_accessor :last
27
27
 
28
28
  attr_accessor :number_of_elements
@@ -42,8 +42,8 @@ module MailSlurpClient
42
42
  {
43
43
  :'content' => :'content',
44
44
  :'pageable' => :'pageable',
45
- :'total_elements' => :'totalElements',
46
45
  :'total_pages' => :'totalPages',
46
+ :'total_elements' => :'totalElements',
47
47
  :'last' => :'last',
48
48
  :'number_of_elements' => :'numberOfElements',
49
49
  :'first' => :'first',
@@ -59,8 +59,8 @@ module MailSlurpClient
59
59
  {
60
60
  :'content' => :'Array<WebhookResultDto>',
61
61
  :'pageable' => :'PageableObject',
62
- :'total_elements' => :'Integer',
63
62
  :'total_pages' => :'Integer',
63
+ :'total_elements' => :'Integer',
64
64
  :'last' => :'Boolean',
65
65
  :'number_of_elements' => :'Integer',
66
66
  :'first' => :'Boolean',
@@ -102,14 +102,14 @@ module MailSlurpClient
102
102
  self.pageable = attributes[:'pageable']
103
103
  end
104
104
 
105
- if attributes.key?(:'total_elements')
106
- self.total_elements = attributes[:'total_elements']
107
- end
108
-
109
105
  if attributes.key?(:'total_pages')
110
106
  self.total_pages = attributes[:'total_pages']
111
107
  end
112
108
 
109
+ if attributes.key?(:'total_elements')
110
+ self.total_elements = attributes[:'total_elements']
111
+ end
112
+
113
113
  if attributes.key?(:'last')
114
114
  self.last = attributes[:'last']
115
115
  end
@@ -143,22 +143,22 @@ module MailSlurpClient
143
143
  # @return Array for valid properties with the reasons
144
144
  def list_invalid_properties
145
145
  invalid_properties = Array.new
146
- if @total_elements.nil?
147
- invalid_properties.push('invalid value for "total_elements", total_elements cannot be nil.')
148
- end
149
-
150
146
  if @total_pages.nil?
151
147
  invalid_properties.push('invalid value for "total_pages", total_pages cannot be nil.')
152
148
  end
153
149
 
150
+ if @total_elements.nil?
151
+ invalid_properties.push('invalid value for "total_elements", total_elements cannot be nil.')
152
+ end
153
+
154
154
  invalid_properties
155
155
  end
156
156
 
157
157
  # Check to see if the all the properties in the model are valid
158
158
  # @return true if the model is valid
159
159
  def valid?
160
- return false if @total_elements.nil?
161
160
  return false if @total_pages.nil?
161
+ return false if @total_elements.nil?
162
162
  true
163
163
  end
164
164
 
@@ -169,8 +169,8 @@ module MailSlurpClient
169
169
  self.class == o.class &&
170
170
  content == o.content &&
171
171
  pageable == o.pageable &&
172
- total_elements == o.total_elements &&
173
172
  total_pages == o.total_pages &&
173
+ total_elements == o.total_elements &&
174
174
  last == o.last &&
175
175
  number_of_elements == o.number_of_elements &&
176
176
  first == o.first &&
@@ -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_elements, total_pages, last, number_of_elements, first, size, number, sort, 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
@@ -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