mailslurp_client 17.3.0 → 17.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (107) hide show
  1. checksums.yaml +4 -4
  2. data/lib/mailslurp_client/api/attachment_controller_api.rb +5 -5
  3. data/lib/mailslurp_client/api/email_controller_api.rb +2 -2
  4. data/lib/mailslurp_client/api/email_verification_controller_api.rb +64 -0
  5. data/lib/mailslurp_client/api/inbox_controller_api.rb +229 -0
  6. data/lib/mailslurp_client/api/phone_controller_api.rb +334 -0
  7. data/lib/mailslurp_client/models/abstract_webhook_payload.rb +13 -13
  8. data/lib/mailslurp_client/models/alias_projection.rb +29 -29
  9. data/lib/mailslurp_client/models/alias_thread_projection.rb +16 -16
  10. data/lib/mailslurp_client/models/attachment_projection.rb +29 -29
  11. data/lib/mailslurp_client/models/bounce_recipient_projection.rb +15 -15
  12. data/lib/mailslurp_client/models/connector_event_projection.rb +30 -30
  13. data/lib/mailslurp_client/models/connector_projection.rb +10 -10
  14. data/lib/mailslurp_client/models/contact_projection.rb +15 -15
  15. data/lib/mailslurp_client/models/create_inbox_forwarder_options.rb +58 -29
  16. data/lib/mailslurp_client/models/create_inbox_replier_options.rb +39 -33
  17. data/lib/mailslurp_client/models/create_phone_number_options.rb +37 -4
  18. data/lib/mailslurp_client/models/email_intelligence_list_result.rb +285 -0
  19. data/lib/mailslurp_client/models/email_intelligence_options.rb +308 -0
  20. data/lib/mailslurp_client/models/email_intelligence_result_dto.rb +256 -0
  21. data/lib/mailslurp_client/models/email_intelligence_score_breakdown_dto.rb +296 -0
  22. data/lib/mailslurp_client/models/email_intelligence_signals_dto.rb +352 -0
  23. data/lib/mailslurp_client/models/email_intelligence_tests_options.rb +253 -0
  24. data/lib/mailslurp_client/models/email_thread_projection.rb +16 -16
  25. data/lib/mailslurp_client/models/entity_favourite_item_projection.rb +13 -13
  26. data/lib/mailslurp_client/models/expired_inbox_record_projection.rb +15 -15
  27. data/lib/mailslurp_client/models/extract_attachment_text_options.rb +1 -1
  28. data/lib/mailslurp_client/models/extract_attachment_text_result.rb +1 -1
  29. data/lib/mailslurp_client/models/group_projection.rb +14 -14
  30. data/lib/mailslurp_client/models/guest_portal_user_projection.rb +24 -24
  31. data/lib/mailslurp_client/models/import_email_options.rb +269 -0
  32. data/lib/mailslurp_client/models/inbox_automation_match_option.rb +308 -0
  33. data/lib/mailslurp_client/models/inbox_automation_match_options.rb +273 -0
  34. data/lib/mailslurp_client/models/inbox_forwarder_dto.rb +65 -17
  35. data/lib/mailslurp_client/models/inbox_forwarder_event_projection.rb +16 -16
  36. data/lib/mailslurp_client/models/inbox_forwarder_test_options.rb +17 -9
  37. data/lib/mailslurp_client/models/inbox_replier_dto.rb +41 -16
  38. data/lib/mailslurp_client/models/inbox_replier_event_projection.rb +16 -16
  39. data/lib/mailslurp_client/models/inline_object.rb +12 -58
  40. data/lib/mailslurp_client/models/inline_object1.rb +58 -12
  41. data/lib/mailslurp_client/models/inline_object2.rb +211 -0
  42. data/lib/mailslurp_client/models/opt_in_identity_projection.rb +18 -18
  43. data/lib/mailslurp_client/models/page_ai_transform_mapping_projection.rb +24 -24
  44. data/lib/mailslurp_client/models/page_ai_transform_projection.rb +24 -24
  45. data/lib/mailslurp_client/models/page_ai_transform_result_projection.rb +24 -24
  46. data/lib/mailslurp_client/models/page_alias.rb +24 -24
  47. data/lib/mailslurp_client/models/page_alias_thread_projection.rb +24 -24
  48. data/lib/mailslurp_client/models/page_attachment_entity.rb +24 -24
  49. data/lib/mailslurp_client/models/page_bounced_email.rb +24 -24
  50. data/lib/mailslurp_client/models/page_bounced_recipients.rb +24 -24
  51. data/lib/mailslurp_client/models/page_complaint.rb +24 -24
  52. data/lib/mailslurp_client/models/page_connector.rb +24 -24
  53. data/lib/mailslurp_client/models/page_connector_events.rb +24 -24
  54. data/lib/mailslurp_client/models/page_contact_projection.rb +24 -24
  55. data/lib/mailslurp_client/models/page_delivery_status.rb +24 -24
  56. data/lib/mailslurp_client/models/page_device_preview_run_projection.rb +24 -24
  57. data/lib/mailslurp_client/models/page_email_preview.rb +24 -24
  58. data/lib/mailslurp_client/models/page_email_projection.rb +24 -24
  59. data/lib/mailslurp_client/models/page_email_thread_projection.rb +24 -24
  60. data/lib/mailslurp_client/models/page_email_validation_request.rb +24 -24
  61. data/lib/mailslurp_client/models/page_entity_automation_items.rb +24 -24
  62. data/lib/mailslurp_client/models/page_entity_event_items.rb +24 -24
  63. data/lib/mailslurp_client/models/page_entity_favourite_items.rb +24 -24
  64. data/lib/mailslurp_client/models/page_expired_inbox_record_projection.rb +24 -24
  65. data/lib/mailslurp_client/models/page_group_projection.rb +24 -24
  66. data/lib/mailslurp_client/models/page_guest_portal_users.rb +24 -24
  67. data/lib/mailslurp_client/models/page_inbox_forwarder_dto.rb +24 -24
  68. data/lib/mailslurp_client/models/page_inbox_forwarder_events.rb +24 -24
  69. data/lib/mailslurp_client/models/page_inbox_projection.rb +24 -24
  70. data/lib/mailslurp_client/models/page_inbox_replier_dto.rb +24 -24
  71. data/lib/mailslurp_client/models/page_inbox_replier_events.rb +24 -24
  72. data/lib/mailslurp_client/models/page_inbox_tags.rb +24 -24
  73. data/lib/mailslurp_client/models/page_list_unsubscribe_recipients.rb +24 -24
  74. data/lib/mailslurp_client/models/page_missed_email_projection.rb +24 -24
  75. data/lib/mailslurp_client/models/page_missed_sms_projection.rb +24 -24
  76. data/lib/mailslurp_client/models/page_opt_in_identity_projection.rb +24 -24
  77. data/lib/mailslurp_client/models/page_organization_inbox_projection.rb +24 -24
  78. data/lib/mailslurp_client/models/page_phone_message_thread_item_projection.rb +24 -24
  79. data/lib/mailslurp_client/models/page_phone_message_thread_projection.rb +24 -24
  80. data/lib/mailslurp_client/models/page_phone_number_projection.rb +24 -24
  81. data/lib/mailslurp_client/models/page_phone_number_release_projection.rb +24 -24
  82. data/lib/mailslurp_client/models/page_plus_address_projection.rb +24 -24
  83. data/lib/mailslurp_client/models/page_reputation_items.rb +24 -24
  84. data/lib/mailslurp_client/models/page_ruleset_dto.rb +24 -24
  85. data/lib/mailslurp_client/models/page_scheduled_jobs.rb +24 -24
  86. data/lib/mailslurp_client/models/page_sent_email_projection.rb +24 -24
  87. data/lib/mailslurp_client/models/page_sent_email_with_queue_projection.rb +24 -24
  88. data/lib/mailslurp_client/models/page_sent_sms_projection.rb +24 -24
  89. data/lib/mailslurp_client/models/page_sms_projection.rb +24 -24
  90. data/lib/mailslurp_client/models/page_template_projection.rb +24 -24
  91. data/lib/mailslurp_client/models/page_tracking_pixel_projection.rb +24 -24
  92. data/lib/mailslurp_client/models/page_unknown_missed_email_projection.rb +24 -24
  93. data/lib/mailslurp_client/models/page_webhook_endpoint_projection.rb +24 -24
  94. data/lib/mailslurp_client/models/page_webhook_projection.rb +24 -24
  95. data/lib/mailslurp_client/models/page_webhook_result.rb +24 -24
  96. data/lib/mailslurp_client/models/pageable_object.rb +13 -13
  97. data/lib/mailslurp_client/models/phone_message_thread_item_projection.rb +15 -15
  98. data/lib/mailslurp_client/models/phone_number_dto.rb +17 -1
  99. data/lib/mailslurp_client/models/phone_number_tags_options.rb +213 -0
  100. data/lib/mailslurp_client/models/plus_address_projection.rb +15 -15
  101. data/lib/mailslurp_client/models/reputation_item_projection.rb +13 -13
  102. data/lib/mailslurp_client/models/template_projection.rb +15 -15
  103. data/lib/mailslurp_client/models/update_inbox_replier_options.rb +39 -33
  104. data/lib/mailslurp_client/models/webhook_projection.rb +15 -15
  105. data/lib/mailslurp_client/version.rb +1 -1
  106. data/lib/mailslurp_client.rb +11 -0
  107. metadata +13 -2
@@ -30,6 +30,9 @@ module MailSlurpClient
30
30
  # Inbox ID
31
31
  attr_accessor :inbox_id
32
32
 
33
+ # Updated at DateTime
34
+ attr_accessor :updated_at
35
+
33
36
  # Created at DateTime
34
37
  attr_accessor :created_at
35
38
 
@@ -42,9 +45,6 @@ module MailSlurpClient
42
45
  # BCC recipients
43
46
  attr_accessor :bcc
44
47
 
45
- # Updated at DateTime
46
- attr_accessor :updated_at
47
-
48
48
  # Alias ID
49
49
  attr_accessor :alias_id
50
50
 
@@ -56,11 +56,11 @@ module MailSlurpClient
56
56
  :'subject' => :'subject',
57
57
  :'user_id' => :'userId',
58
58
  :'inbox_id' => :'inboxId',
59
+ :'updated_at' => :'updatedAt',
59
60
  :'created_at' => :'createdAt',
60
61
  :'to' => :'to',
61
62
  :'cc' => :'cc',
62
63
  :'bcc' => :'bcc',
63
- :'updated_at' => :'updatedAt',
64
64
  :'alias_id' => :'aliasId'
65
65
  }
66
66
  end
@@ -73,11 +73,11 @@ module MailSlurpClient
73
73
  :'subject' => :'String',
74
74
  :'user_id' => :'String',
75
75
  :'inbox_id' => :'String',
76
+ :'updated_at' => :'DateTime',
76
77
  :'created_at' => :'DateTime',
77
78
  :'to' => :'Array<String>',
78
79
  :'cc' => :'Array<String>',
79
80
  :'bcc' => :'Array<String>',
80
- :'updated_at' => :'DateTime',
81
81
  :'alias_id' => :'String'
82
82
  }
83
83
  end
@@ -123,6 +123,10 @@ module MailSlurpClient
123
123
  self.inbox_id = attributes[:'inbox_id']
124
124
  end
125
125
 
126
+ if attributes.key?(:'updated_at')
127
+ self.updated_at = attributes[:'updated_at']
128
+ end
129
+
126
130
  if attributes.key?(:'created_at')
127
131
  self.created_at = attributes[:'created_at']
128
132
  end
@@ -145,10 +149,6 @@ module MailSlurpClient
145
149
  end
146
150
  end
147
151
 
148
- if attributes.key?(:'updated_at')
149
- self.updated_at = attributes[:'updated_at']
150
- end
151
-
152
152
  if attributes.key?(:'alias_id')
153
153
  self.alias_id = attributes[:'alias_id']
154
154
  end
@@ -170,6 +170,10 @@ module MailSlurpClient
170
170
  invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
171
171
  end
172
172
 
173
+ if @updated_at.nil?
174
+ invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
175
+ end
176
+
173
177
  if @created_at.nil?
174
178
  invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
175
179
  end
@@ -178,10 +182,6 @@ module MailSlurpClient
178
182
  invalid_properties.push('invalid value for "to", to cannot be nil.')
179
183
  end
180
184
 
181
- if @updated_at.nil?
182
- invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
183
- end
184
-
185
185
  if @alias_id.nil?
186
186
  invalid_properties.push('invalid value for "alias_id", alias_id cannot be nil.')
187
187
  end
@@ -195,9 +195,9 @@ module MailSlurpClient
195
195
  return false if @id.nil?
196
196
  return false if @user_id.nil?
197
197
  return false if @inbox_id.nil?
198
+ return false if @updated_at.nil?
198
199
  return false if @created_at.nil?
199
200
  return false if @to.nil?
200
- return false if @updated_at.nil?
201
201
  return false if @alias_id.nil?
202
202
  true
203
203
  end
@@ -212,11 +212,11 @@ module MailSlurpClient
212
212
  subject == o.subject &&
213
213
  user_id == o.user_id &&
214
214
  inbox_id == o.inbox_id &&
215
+ updated_at == o.updated_at &&
215
216
  created_at == o.created_at &&
216
217
  to == o.to &&
217
218
  cc == o.cc &&
218
219
  bcc == o.bcc &&
219
- updated_at == o.updated_at &&
220
220
  alias_id == o.alias_id
221
221
  end
222
222
 
@@ -229,7 +229,7 @@ module MailSlurpClient
229
229
  # Calculates hash code according to all attributes.
230
230
  # @return [Integer] Hash code
231
231
  def hash
232
- [name, id, subject, user_id, inbox_id, created_at, to, cc, bcc, updated_at, alias_id].hash
232
+ [name, id, subject, user_id, inbox_id, updated_at, created_at, to, cc, bcc, alias_id].hash
233
233
  end
234
234
 
235
235
  # Builds the object from hash
@@ -23,37 +23,37 @@ module MailSlurpClient
23
23
  # Content length of attachment in bytes
24
24
  attr_accessor :content_length
25
25
 
26
+ # Content type of attachment.
27
+ attr_accessor :content_type
28
+
26
29
  attr_accessor :user_id
27
30
 
28
31
  # Inbox ID
29
32
  attr_accessor :inbox_id
30
33
 
31
- attr_accessor :created_at
32
-
33
34
  attr_accessor :updated_at
34
35
 
36
+ attr_accessor :created_at
37
+
35
38
  # Content ID of attachment.
36
39
  attr_accessor :content_id
37
40
 
38
41
  # Attachment ID
39
42
  attr_accessor :attachment_id
40
43
 
41
- # Content type of attachment.
42
- attr_accessor :content_type
43
-
44
44
  # Attribute mapping from ruby-style variable name to JSON key.
45
45
  def self.attribute_map
46
46
  {
47
47
  :'name' => :'name',
48
48
  :'id' => :'id',
49
49
  :'content_length' => :'contentLength',
50
+ :'content_type' => :'contentType',
50
51
  :'user_id' => :'userId',
51
52
  :'inbox_id' => :'inboxId',
52
- :'created_at' => :'createdAt',
53
53
  :'updated_at' => :'updatedAt',
54
+ :'created_at' => :'createdAt',
54
55
  :'content_id' => :'contentId',
55
- :'attachment_id' => :'attachmentId',
56
- :'content_type' => :'contentType'
56
+ :'attachment_id' => :'attachmentId'
57
57
  }
58
58
  end
59
59
 
@@ -63,13 +63,13 @@ module MailSlurpClient
63
63
  :'name' => :'String',
64
64
  :'id' => :'String',
65
65
  :'content_length' => :'Integer',
66
+ :'content_type' => :'String',
66
67
  :'user_id' => :'String',
67
68
  :'inbox_id' => :'String',
68
- :'created_at' => :'DateTime',
69
69
  :'updated_at' => :'DateTime',
70
+ :'created_at' => :'DateTime',
70
71
  :'content_id' => :'String',
71
- :'attachment_id' => :'String',
72
- :'content_type' => :'String'
72
+ :'attachment_id' => :'String'
73
73
  }
74
74
  end
75
75
 
@@ -78,8 +78,8 @@ module MailSlurpClient
78
78
  Set.new([
79
79
  :'name',
80
80
  :'content_length',
81
+ :'content_type',
81
82
  :'content_id',
82
- :'content_type'
83
83
  ])
84
84
  end
85
85
 
@@ -110,6 +110,10 @@ module MailSlurpClient
110
110
  self.content_length = attributes[:'content_length']
111
111
  end
112
112
 
113
+ if attributes.key?(:'content_type')
114
+ self.content_type = attributes[:'content_type']
115
+ end
116
+
113
117
  if attributes.key?(:'user_id')
114
118
  self.user_id = attributes[:'user_id']
115
119
  end
@@ -118,14 +122,14 @@ module MailSlurpClient
118
122
  self.inbox_id = attributes[:'inbox_id']
119
123
  end
120
124
 
121
- if attributes.key?(:'created_at')
122
- self.created_at = attributes[:'created_at']
123
- end
124
-
125
125
  if attributes.key?(:'updated_at')
126
126
  self.updated_at = attributes[:'updated_at']
127
127
  end
128
128
 
129
+ if attributes.key?(:'created_at')
130
+ self.created_at = attributes[:'created_at']
131
+ end
132
+
129
133
  if attributes.key?(:'content_id')
130
134
  self.content_id = attributes[:'content_id']
131
135
  end
@@ -133,10 +137,6 @@ module MailSlurpClient
133
137
  if attributes.key?(:'attachment_id')
134
138
  self.attachment_id = attributes[:'attachment_id']
135
139
  end
136
-
137
- if attributes.key?(:'content_type')
138
- self.content_type = attributes[:'content_type']
139
- end
140
140
  end
141
141
 
142
142
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -151,14 +151,14 @@ module MailSlurpClient
151
151
  invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
152
152
  end
153
153
 
154
- if @created_at.nil?
155
- invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
156
- end
157
-
158
154
  if @updated_at.nil?
159
155
  invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
160
156
  end
161
157
 
158
+ if @created_at.nil?
159
+ invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
160
+ end
161
+
162
162
  if @attachment_id.nil?
163
163
  invalid_properties.push('invalid value for "attachment_id", attachment_id cannot be nil.')
164
164
  end
@@ -171,8 +171,8 @@ module MailSlurpClient
171
171
  def valid?
172
172
  return false if @id.nil?
173
173
  return false if @user_id.nil?
174
- return false if @created_at.nil?
175
174
  return false if @updated_at.nil?
175
+ return false if @created_at.nil?
176
176
  return false if @attachment_id.nil?
177
177
  true
178
178
  end
@@ -185,13 +185,13 @@ module MailSlurpClient
185
185
  name == o.name &&
186
186
  id == o.id &&
187
187
  content_length == o.content_length &&
188
+ content_type == o.content_type &&
188
189
  user_id == o.user_id &&
189
190
  inbox_id == o.inbox_id &&
190
- created_at == o.created_at &&
191
191
  updated_at == o.updated_at &&
192
+ created_at == o.created_at &&
192
193
  content_id == o.content_id &&
193
- attachment_id == o.attachment_id &&
194
- content_type == o.content_type
194
+ attachment_id == o.attachment_id
195
195
  end
196
196
 
197
197
  # @see the `==` method
@@ -203,7 +203,7 @@ module MailSlurpClient
203
203
  # Calculates hash code according to all attributes.
204
204
  # @return [Integer] Hash code
205
205
  def hash
206
- [name, id, content_length, user_id, inbox_id, created_at, updated_at, content_id, attachment_id, content_type].hash
206
+ [name, id, content_length, content_type, user_id, inbox_id, updated_at, created_at, content_id, attachment_id].hash
207
207
  end
208
208
 
209
209
  # Builds the object from hash
@@ -17,6 +17,8 @@ module MailSlurpClient
17
17
  class BounceRecipientProjection
18
18
  attr_accessor :id
19
19
 
20
+ attr_accessor :status
21
+
20
22
  attr_accessor :sent_email_id
21
23
 
22
24
  attr_accessor :created_at
@@ -27,18 +29,16 @@ module MailSlurpClient
27
29
 
28
30
  attr_accessor :action
29
31
 
30
- attr_accessor :status
31
-
32
32
  # Attribute mapping from ruby-style variable name to JSON key.
33
33
  def self.attribute_map
34
34
  {
35
35
  :'id' => :'id',
36
+ :'status' => :'status',
36
37
  :'sent_email_id' => :'sentEmailId',
37
38
  :'created_at' => :'createdAt',
38
39
  :'recipient' => :'recipient',
39
40
  :'bounce_type' => :'bounceType',
40
- :'action' => :'action',
41
- :'status' => :'status'
41
+ :'action' => :'action'
42
42
  }
43
43
  end
44
44
 
@@ -46,22 +46,22 @@ module MailSlurpClient
46
46
  def self.openapi_types
47
47
  {
48
48
  :'id' => :'String',
49
+ :'status' => :'String',
49
50
  :'sent_email_id' => :'String',
50
51
  :'created_at' => :'DateTime',
51
52
  :'recipient' => :'String',
52
53
  :'bounce_type' => :'String',
53
- :'action' => :'String',
54
- :'status' => :'String'
54
+ :'action' => :'String'
55
55
  }
56
56
  end
57
57
 
58
58
  # List of attributes with nullable: true
59
59
  def self.openapi_nullable
60
60
  Set.new([
61
+ :'status',
61
62
  :'sent_email_id',
62
63
  :'bounce_type',
63
- :'action',
64
- :'status'
64
+ :'action'
65
65
  ])
66
66
  end
67
67
 
@@ -84,6 +84,10 @@ module MailSlurpClient
84
84
  self.id = attributes[:'id']
85
85
  end
86
86
 
87
+ if attributes.key?(:'status')
88
+ self.status = attributes[:'status']
89
+ end
90
+
87
91
  if attributes.key?(:'sent_email_id')
88
92
  self.sent_email_id = attributes[:'sent_email_id']
89
93
  end
@@ -103,10 +107,6 @@ module MailSlurpClient
103
107
  if attributes.key?(:'action')
104
108
  self.action = attributes[:'action']
105
109
  end
106
-
107
- if attributes.key?(:'status')
108
- self.status = attributes[:'status']
109
- end
110
110
  end
111
111
 
112
112
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -138,12 +138,12 @@ module MailSlurpClient
138
138
  return true if self.equal?(o)
139
139
  self.class == o.class &&
140
140
  id == o.id &&
141
+ status == o.status &&
141
142
  sent_email_id == o.sent_email_id &&
142
143
  created_at == o.created_at &&
143
144
  recipient == o.recipient &&
144
145
  bounce_type == o.bounce_type &&
145
- action == o.action &&
146
- status == o.status
146
+ action == o.action
147
147
  end
148
148
 
149
149
  # @see the `==` method
@@ -155,7 +155,7 @@ module MailSlurpClient
155
155
  # Calculates hash code according to all attributes.
156
156
  # @return [Integer] Hash code
157
157
  def hash
158
- [id, sent_email_id, created_at, recipient, bounce_type, action, status].hash
158
+ [id, status, sent_email_id, created_at, recipient, bounce_type, action].hash
159
159
  end
160
160
 
161
161
  # Builds the object from hash
@@ -21,6 +21,8 @@ module MailSlurpClient
21
21
 
22
22
  attr_accessor :size
23
23
 
24
+ attr_accessor :status
25
+
24
26
  attr_accessor :event_type
25
27
 
26
28
  attr_accessor :created_at
@@ -29,8 +31,6 @@ module MailSlurpClient
29
31
 
30
32
  attr_accessor :seen
31
33
 
32
- attr_accessor :status
33
-
34
34
  class EnumAttributeValidator
35
35
  attr_reader :datatype
36
36
  attr_reader :allowable_values
@@ -59,11 +59,11 @@ module MailSlurpClient
59
59
  :'message' => :'message',
60
60
  :'id' => :'id',
61
61
  :'size' => :'size',
62
+ :'status' => :'status',
62
63
  :'event_type' => :'eventType',
63
64
  :'created_at' => :'createdAt',
64
65
  :'connector_id' => :'connectorId',
65
- :'seen' => :'seen',
66
- :'status' => :'status'
66
+ :'seen' => :'seen'
67
67
  }
68
68
  end
69
69
 
@@ -73,11 +73,11 @@ module MailSlurpClient
73
73
  :'message' => :'String',
74
74
  :'id' => :'String',
75
75
  :'size' => :'Integer',
76
+ :'status' => :'String',
76
77
  :'event_type' => :'String',
77
78
  :'created_at' => :'DateTime',
78
79
  :'connector_id' => :'String',
79
- :'seen' => :'Boolean',
80
- :'status' => :'String'
80
+ :'seen' => :'Boolean'
81
81
  }
82
82
  end
83
83
 
@@ -114,6 +114,10 @@ module MailSlurpClient
114
114
  self.size = attributes[:'size']
115
115
  end
116
116
 
117
+ if attributes.key?(:'status')
118
+ self.status = attributes[:'status']
119
+ end
120
+
117
121
  if attributes.key?(:'event_type')
118
122
  self.event_type = attributes[:'event_type']
119
123
  end
@@ -129,10 +133,6 @@ module MailSlurpClient
129
133
  if attributes.key?(:'seen')
130
134
  self.seen = attributes[:'seen']
131
135
  end
132
-
133
- if attributes.key?(:'status')
134
- self.status = attributes[:'status']
135
- end
136
136
  end
137
137
 
138
138
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -143,6 +143,10 @@ module MailSlurpClient
143
143
  invalid_properties.push('invalid value for "size", size cannot be nil.')
144
144
  end
145
145
 
146
+ if @status.nil?
147
+ invalid_properties.push('invalid value for "status", status cannot be nil.')
148
+ end
149
+
146
150
  if @event_type.nil?
147
151
  invalid_properties.push('invalid value for "event_type", event_type cannot be nil.')
148
152
  end
@@ -155,10 +159,6 @@ module MailSlurpClient
155
159
  invalid_properties.push('invalid value for "connector_id", connector_id cannot be nil.')
156
160
  end
157
161
 
158
- if @status.nil?
159
- invalid_properties.push('invalid value for "status", status cannot be nil.')
160
- end
161
-
162
162
  invalid_properties
163
163
  end
164
164
 
@@ -166,27 +166,17 @@ module MailSlurpClient
166
166
  # @return true if the model is valid
167
167
  def valid?
168
168
  return false if @size.nil?
169
+ return false if @status.nil?
170
+ status_validator = EnumAttributeValidator.new('String', ["SUCCESS", "INTERNAL_ERROR", "SUBSCRIPTION_ERROR", "CONNECTION_ERROR", "NOT_FOUND"])
171
+ return false unless status_validator.valid?(@status)
169
172
  return false if @event_type.nil?
170
173
  event_type_validator = EnumAttributeValidator.new('String', ["SEND", "SYNC"])
171
174
  return false unless event_type_validator.valid?(@event_type)
172
175
  return false if @created_at.nil?
173
176
  return false if @connector_id.nil?
174
- return false if @status.nil?
175
- status_validator = EnumAttributeValidator.new('String', ["SUCCESS", "INTERNAL_ERROR", "SUBSCRIPTION_ERROR", "CONNECTION_ERROR", "NOT_FOUND"])
176
- return false unless status_validator.valid?(@status)
177
177
  true
178
178
  end
179
179
 
180
- # Custom attribute writer method checking allowed values (enum).
181
- # @param [Object] event_type Object to be assigned
182
- def event_type=(event_type)
183
- validator = EnumAttributeValidator.new('String', ["SEND", "SYNC"])
184
- unless validator.valid?(event_type)
185
- fail ArgumentError, "invalid value for \"event_type\", must be one of #{validator.allowable_values}."
186
- end
187
- @event_type = event_type
188
- end
189
-
190
180
  # Custom attribute writer method checking allowed values (enum).
191
181
  # @param [Object] status Object to be assigned
192
182
  def status=(status)
@@ -197,6 +187,16 @@ module MailSlurpClient
197
187
  @status = status
198
188
  end
199
189
 
190
+ # Custom attribute writer method checking allowed values (enum).
191
+ # @param [Object] event_type Object to be assigned
192
+ def event_type=(event_type)
193
+ validator = EnumAttributeValidator.new('String', ["SEND", "SYNC"])
194
+ unless validator.valid?(event_type)
195
+ fail ArgumentError, "invalid value for \"event_type\", must be one of #{validator.allowable_values}."
196
+ end
197
+ @event_type = event_type
198
+ end
199
+
200
200
  # Checks equality by comparing each attribute.
201
201
  # @param [Object] Object to be compared
202
202
  def ==(o)
@@ -205,11 +205,11 @@ module MailSlurpClient
205
205
  message == o.message &&
206
206
  id == o.id &&
207
207
  size == o.size &&
208
+ status == o.status &&
208
209
  event_type == o.event_type &&
209
210
  created_at == o.created_at &&
210
211
  connector_id == o.connector_id &&
211
- seen == o.seen &&
212
- status == o.status
212
+ seen == o.seen
213
213
  end
214
214
 
215
215
  # @see the `==` method
@@ -221,7 +221,7 @@ module MailSlurpClient
221
221
  # Calculates hash code according to all attributes.
222
222
  # @return [Integer] Hash code
223
223
  def hash
224
- [message, id, size, event_type, created_at, connector_id, seen, status].hash
224
+ [message, id, size, status, event_type, created_at, connector_id, seen].hash
225
225
  end
226
226
 
227
227
  # Builds the object from hash
@@ -21,10 +21,10 @@ module MailSlurpClient
21
21
 
22
22
  attr_accessor :enabled
23
23
 
24
- attr_accessor :email_address
25
-
26
24
  attr_accessor :user_id
27
25
 
26
+ attr_accessor :email_address
27
+
28
28
  attr_accessor :inbox_id
29
29
 
30
30
  attr_accessor :created_at
@@ -35,8 +35,8 @@ module MailSlurpClient
35
35
  :'name' => :'name',
36
36
  :'id' => :'id',
37
37
  :'enabled' => :'enabled',
38
- :'email_address' => :'emailAddress',
39
38
  :'user_id' => :'userId',
39
+ :'email_address' => :'emailAddress',
40
40
  :'inbox_id' => :'inboxId',
41
41
  :'created_at' => :'createdAt'
42
42
  }
@@ -48,8 +48,8 @@ module MailSlurpClient
48
48
  :'name' => :'String',
49
49
  :'id' => :'String',
50
50
  :'enabled' => :'Boolean',
51
- :'email_address' => :'String',
52
51
  :'user_id' => :'String',
52
+ :'email_address' => :'String',
53
53
  :'inbox_id' => :'String',
54
54
  :'created_at' => :'DateTime'
55
55
  }
@@ -88,14 +88,14 @@ module MailSlurpClient
88
88
  self.enabled = attributes[:'enabled']
89
89
  end
90
90
 
91
- if attributes.key?(:'email_address')
92
- self.email_address = attributes[:'email_address']
93
- end
94
-
95
91
  if attributes.key?(:'user_id')
96
92
  self.user_id = attributes[:'user_id']
97
93
  end
98
94
 
95
+ if attributes.key?(:'email_address')
96
+ self.email_address = attributes[:'email_address']
97
+ end
98
+
99
99
  if attributes.key?(:'inbox_id')
100
100
  self.inbox_id = attributes[:'inbox_id']
101
101
  end
@@ -146,8 +146,8 @@ module MailSlurpClient
146
146
  name == o.name &&
147
147
  id == o.id &&
148
148
  enabled == o.enabled &&
149
- email_address == o.email_address &&
150
149
  user_id == o.user_id &&
150
+ email_address == o.email_address &&
151
151
  inbox_id == o.inbox_id &&
152
152
  created_at == o.created_at
153
153
  end
@@ -161,7 +161,7 @@ module MailSlurpClient
161
161
  # Calculates hash code according to all attributes.
162
162
  # @return [Integer] Hash code
163
163
  def hash
164
- [name, id, enabled, email_address, user_id, inbox_id, created_at].hash
164
+ [name, id, enabled, user_id, email_address, inbox_id, created_at].hash
165
165
  end
166
166
 
167
167
  # Builds the object from hash