mailslurp_client 15.17.24 → 15.17.25

Sign up to get free protection for your applications and to get access to all the features.
Files changed (50) hide show
  1. checksums.yaml +4 -4
  2. data/lib/mailslurp_client/models/alias_projection.rb +19 -19
  3. data/lib/mailslurp_client/models/bounce_projection.rb +11 -11
  4. data/lib/mailslurp_client/models/connector_projection.rb +15 -15
  5. data/lib/mailslurp_client/models/email_projection.rb +11 -11
  6. data/lib/mailslurp_client/models/expired_inbox_record_projection.rb +15 -15
  7. data/lib/mailslurp_client/models/inbox_forwarder_event_projection.rb +11 -11
  8. data/lib/mailslurp_client/models/inbox_replier_event_projection.rb +11 -11
  9. data/lib/mailslurp_client/models/missed_email_projection.rb +11 -11
  10. data/lib/mailslurp_client/models/page_alias.rb +16 -17
  11. data/lib/mailslurp_client/models/page_attachment_entity.rb +16 -17
  12. data/lib/mailslurp_client/models/page_bounced_email.rb +16 -17
  13. data/lib/mailslurp_client/models/page_bounced_recipients.rb +16 -17
  14. data/lib/mailslurp_client/models/page_complaint.rb +16 -17
  15. data/lib/mailslurp_client/models/page_connector.rb +16 -17
  16. data/lib/mailslurp_client/models/page_connector_sync_events.rb +16 -17
  17. data/lib/mailslurp_client/models/page_contact_projection.rb +16 -17
  18. data/lib/mailslurp_client/models/page_delivery_status.rb +16 -17
  19. data/lib/mailslurp_client/models/page_email_preview.rb +16 -17
  20. data/lib/mailslurp_client/models/page_email_projection.rb +21 -12
  21. data/lib/mailslurp_client/models/page_email_validation_request.rb +16 -17
  22. data/lib/mailslurp_client/models/page_expired_inbox_record_projection.rb +16 -17
  23. data/lib/mailslurp_client/models/page_group_projection.rb +16 -17
  24. data/lib/mailslurp_client/models/page_inbox_forwarder_dto.rb +16 -17
  25. data/lib/mailslurp_client/models/page_inbox_forwarder_events.rb +16 -17
  26. data/lib/mailslurp_client/models/page_inbox_projection.rb +16 -17
  27. data/lib/mailslurp_client/models/page_inbox_replier_dto.rb +16 -17
  28. data/lib/mailslurp_client/models/page_inbox_replier_events.rb +16 -17
  29. data/lib/mailslurp_client/models/page_inbox_ruleset_dto.rb +16 -17
  30. data/lib/mailslurp_client/models/page_list_unsubscribe_recipients.rb +16 -17
  31. data/lib/mailslurp_client/models/page_missed_email_projection.rb +16 -17
  32. data/lib/mailslurp_client/models/page_organization_inbox_projection.rb +16 -17
  33. data/lib/mailslurp_client/models/page_phone_number_projection.rb +16 -17
  34. data/lib/mailslurp_client/models/page_scheduled_jobs.rb +16 -17
  35. data/lib/mailslurp_client/models/page_sent_email_projection.rb +69 -34
  36. data/lib/mailslurp_client/models/page_sent_email_with_queue_projection.rb +69 -34
  37. data/lib/mailslurp_client/models/page_sms_projection.rb +16 -17
  38. data/lib/mailslurp_client/models/page_template_projection.rb +16 -17
  39. data/lib/mailslurp_client/models/page_thread_projection.rb +16 -17
  40. data/lib/mailslurp_client/models/page_tracking_pixel_projection.rb +16 -17
  41. data/lib/mailslurp_client/models/page_unknown_missed_email_projection.rb +16 -17
  42. data/lib/mailslurp_client/models/page_webhook_projection.rb +16 -17
  43. data/lib/mailslurp_client/models/page_webhook_result.rb +16 -17
  44. data/lib/mailslurp_client/models/send_with_queue_result.rb +1 -0
  45. data/lib/mailslurp_client/models/sent_email_projection.rb +22 -21
  46. data/lib/mailslurp_client/models/thread_projection.rb +23 -23
  47. data/lib/mailslurp_client/models/tracking_pixel_projection.rb +10 -10
  48. data/lib/mailslurp_client/models/unknown_missed_email_projection.rb +10 -10
  49. data/lib/mailslurp_client/version.rb +1 -1
  50. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 99978a46a96b4204b28a127447fded7dff2c2b24080324f2fdad86bb9458af09
4
- data.tar.gz: 73816834c85b73ad98beddc512609599d0eb427a21f26e162611fe45cf7bcdac
3
+ metadata.gz: '069c60cb02edc0e46a16323ae5a55e1d4cb370b913736790d194af46719deccb'
4
+ data.tar.gz: bef2efe59bc04522932e6148ed61026942ae0b16fc38c489bd68d6123b350b89
5
5
  SHA512:
6
- metadata.gz: 7b641786cc473ae378ec04d14c5161e2b9d91338f0f90aa14c92ed8c40bd88dd8b6c53c4679ab27ce426984dd3b78ec11072d517acb05a625645a2272206ad31
7
- data.tar.gz: 67ab483b9f7cead055adfb4fbce09ff804bbfb58cde962bc639daefa48132ed376364ac4fd2369e2682628632c0af6665126eed167b8fe32c0082e9948bf9e11
6
+ metadata.gz: 4f0888b1b1e87ac89d6fe37264f94ee1970deb9c3b1b70efb2168137b441fbfcf1cd110083a79edfc1e06b9b9080681d1c0502f31436c402c2a45fbe95a82a26
7
+ data.tar.gz: ca93df1ddd045b90a7b7fd385b5954688dcb78cc64b54487185b6a95a30b99dec66f0c6dfc2a37bf190f3b1952c620e53acfbb2e783df13a33365f27f21eed91
@@ -15,11 +15,11 @@ require 'date'
15
15
  module MailSlurpClient
16
16
  # Representation of a alias
17
17
  class AliasProjection
18
- attr_accessor :email_address
18
+ attr_accessor :inbox_id
19
19
 
20
20
  attr_accessor :user_id
21
21
 
22
- attr_accessor :inbox_id
22
+ attr_accessor :email_address
23
23
 
24
24
  attr_accessor :use_threads
25
25
 
@@ -34,9 +34,9 @@ module MailSlurpClient
34
34
  # Attribute mapping from ruby-style variable name to JSON key.
35
35
  def self.attribute_map
36
36
  {
37
- :'email_address' => :'emailAddress',
38
- :'user_id' => :'userId',
39
37
  :'inbox_id' => :'inboxId',
38
+ :'user_id' => :'userId',
39
+ :'email_address' => :'emailAddress',
40
40
  :'use_threads' => :'useThreads',
41
41
  :'created_at' => :'createdAt',
42
42
  :'updated_at' => :'updatedAt',
@@ -48,9 +48,9 @@ module MailSlurpClient
48
48
  # Attribute type mapping.
49
49
  def self.openapi_types
50
50
  {
51
- :'email_address' => :'String',
52
- :'user_id' => :'String',
53
51
  :'inbox_id' => :'String',
52
+ :'user_id' => :'String',
53
+ :'email_address' => :'String',
54
54
  :'use_threads' => :'Boolean',
55
55
  :'created_at' => :'DateTime',
56
56
  :'updated_at' => :'DateTime',
@@ -80,16 +80,16 @@ module MailSlurpClient
80
80
  h[k.to_sym] = v
81
81
  }
82
82
 
83
- if attributes.key?(:'email_address')
84
- self.email_address = attributes[:'email_address']
83
+ if attributes.key?(:'inbox_id')
84
+ self.inbox_id = attributes[:'inbox_id']
85
85
  end
86
86
 
87
87
  if attributes.key?(:'user_id')
88
88
  self.user_id = attributes[:'user_id']
89
89
  end
90
90
 
91
- if attributes.key?(:'inbox_id')
92
- self.inbox_id = attributes[:'inbox_id']
91
+ if attributes.key?(:'email_address')
92
+ self.email_address = attributes[:'email_address']
93
93
  end
94
94
 
95
95
  if attributes.key?(:'use_threads')
@@ -117,16 +117,16 @@ module MailSlurpClient
117
117
  # @return Array for valid properties with the reasons
118
118
  def list_invalid_properties
119
119
  invalid_properties = Array.new
120
- if @email_address.nil?
121
- invalid_properties.push('invalid value for "email_address", email_address cannot be nil.')
120
+ if @inbox_id.nil?
121
+ invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
122
122
  end
123
123
 
124
124
  if @user_id.nil?
125
125
  invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
126
126
  end
127
127
 
128
- if @inbox_id.nil?
129
- invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
128
+ if @email_address.nil?
129
+ invalid_properties.push('invalid value for "email_address", email_address cannot be nil.')
130
130
  end
131
131
 
132
132
  if @created_at.nil?
@@ -147,9 +147,9 @@ module MailSlurpClient
147
147
  # Check to see if the all the properties in the model are valid
148
148
  # @return true if the model is valid
149
149
  def valid?
150
- return false if @email_address.nil?
151
- return false if @user_id.nil?
152
150
  return false if @inbox_id.nil?
151
+ return false if @user_id.nil?
152
+ return false if @email_address.nil?
153
153
  return false if @created_at.nil?
154
154
  return false if @updated_at.nil?
155
155
  return false if @id.nil?
@@ -161,9 +161,9 @@ module MailSlurpClient
161
161
  def ==(o)
162
162
  return true if self.equal?(o)
163
163
  self.class == o.class &&
164
- email_address == o.email_address &&
165
- user_id == o.user_id &&
166
164
  inbox_id == o.inbox_id &&
165
+ user_id == o.user_id &&
166
+ email_address == o.email_address &&
167
167
  use_threads == o.use_threads &&
168
168
  created_at == o.created_at &&
169
169
  updated_at == o.updated_at &&
@@ -180,7 +180,7 @@ module MailSlurpClient
180
180
  # Calculates hash code according to all attributes.
181
181
  # @return [Integer] Hash code
182
182
  def hash
183
- [email_address, user_id, inbox_id, use_threads, created_at, updated_at, name, id].hash
183
+ [inbox_id, user_id, email_address, use_threads, created_at, updated_at, name, id].hash
184
184
  end
185
185
 
186
186
  # Builds the object from hash
@@ -15,8 +15,6 @@ require 'date'
15
15
  module MailSlurpClient
16
16
  # Bounced email event
17
17
  class BounceProjection
18
- attr_accessor :subject
19
-
20
18
  attr_accessor :sender
21
19
 
22
20
  attr_accessor :bounce_type
@@ -25,16 +23,18 @@ module MailSlurpClient
25
23
 
26
24
  attr_accessor :created_at
27
25
 
26
+ attr_accessor :subject
27
+
28
28
  attr_accessor :id
29
29
 
30
30
  # Attribute mapping from ruby-style variable name to JSON key.
31
31
  def self.attribute_map
32
32
  {
33
- :'subject' => :'subject',
34
33
  :'sender' => :'sender',
35
34
  :'bounce_type' => :'bounceType',
36
35
  :'bounce_mta' => :'bounceMta',
37
36
  :'created_at' => :'createdAt',
37
+ :'subject' => :'subject',
38
38
  :'id' => :'id'
39
39
  }
40
40
  end
@@ -42,11 +42,11 @@ module MailSlurpClient
42
42
  # Attribute type mapping.
43
43
  def self.openapi_types
44
44
  {
45
- :'subject' => :'String',
46
45
  :'sender' => :'String',
47
46
  :'bounce_type' => :'String',
48
47
  :'bounce_mta' => :'String',
49
48
  :'created_at' => :'DateTime',
49
+ :'subject' => :'String',
50
50
  :'id' => :'String'
51
51
  }
52
52
  end
@@ -54,9 +54,9 @@ module MailSlurpClient
54
54
  # List of attributes with nullable: true
55
55
  def self.openapi_nullable
56
56
  Set.new([
57
- :'subject',
58
57
  :'bounce_type',
59
58
  :'bounce_mta',
59
+ :'subject',
60
60
  ])
61
61
  end
62
62
 
@@ -75,10 +75,6 @@ module MailSlurpClient
75
75
  h[k.to_sym] = v
76
76
  }
77
77
 
78
- if attributes.key?(:'subject')
79
- self.subject = attributes[:'subject']
80
- end
81
-
82
78
  if attributes.key?(:'sender')
83
79
  self.sender = attributes[:'sender']
84
80
  end
@@ -95,6 +91,10 @@ module MailSlurpClient
95
91
  self.created_at = attributes[:'created_at']
96
92
  end
97
93
 
94
+ if attributes.key?(:'subject')
95
+ self.subject = attributes[:'subject']
96
+ end
97
+
98
98
  if attributes.key?(:'id')
99
99
  self.id = attributes[:'id']
100
100
  end
@@ -128,11 +128,11 @@ module MailSlurpClient
128
128
  def ==(o)
129
129
  return true if self.equal?(o)
130
130
  self.class == o.class &&
131
- subject == o.subject &&
132
131
  sender == o.sender &&
133
132
  bounce_type == o.bounce_type &&
134
133
  bounce_mta == o.bounce_mta &&
135
134
  created_at == o.created_at &&
135
+ subject == o.subject &&
136
136
  id == o.id
137
137
  end
138
138
 
@@ -145,7 +145,7 @@ module MailSlurpClient
145
145
  # Calculates hash code according to all attributes.
146
146
  # @return [Integer] Hash code
147
147
  def hash
148
- [subject, sender, bounce_type, bounce_mta, created_at, id].hash
148
+ [sender, bounce_type, bounce_mta, created_at, subject, id].hash
149
149
  end
150
150
 
151
151
  # Builds the object from hash
@@ -15,10 +15,10 @@ require 'date'
15
15
  module MailSlurpClient
16
16
  # Connector
17
17
  class ConnectorProjection
18
- attr_accessor :user_id
19
-
20
18
  attr_accessor :inbox_id
21
19
 
20
+ attr_accessor :user_id
21
+
22
22
  attr_accessor :sync_enabled
23
23
 
24
24
  attr_accessor :connector_type
@@ -56,8 +56,8 @@ module MailSlurpClient
56
56
  # Attribute mapping from ruby-style variable name to JSON key.
57
57
  def self.attribute_map
58
58
  {
59
- :'user_id' => :'userId',
60
59
  :'inbox_id' => :'inboxId',
60
+ :'user_id' => :'userId',
61
61
  :'sync_enabled' => :'syncEnabled',
62
62
  :'connector_type' => :'connectorType',
63
63
  :'sync_schedule_type' => :'syncScheduleType',
@@ -70,8 +70,8 @@ module MailSlurpClient
70
70
  # Attribute type mapping.
71
71
  def self.openapi_types
72
72
  {
73
- :'user_id' => :'String',
74
73
  :'inbox_id' => :'String',
74
+ :'user_id' => :'String',
75
75
  :'sync_enabled' => :'Boolean',
76
76
  :'connector_type' => :'String',
77
77
  :'sync_schedule_type' => :'String',
@@ -102,14 +102,14 @@ module MailSlurpClient
102
102
  h[k.to_sym] = v
103
103
  }
104
104
 
105
- if attributes.key?(:'user_id')
106
- self.user_id = attributes[:'user_id']
107
- end
108
-
109
105
  if attributes.key?(:'inbox_id')
110
106
  self.inbox_id = attributes[:'inbox_id']
111
107
  end
112
108
 
109
+ if attributes.key?(:'user_id')
110
+ self.user_id = attributes[:'user_id']
111
+ end
112
+
113
113
  if attributes.key?(:'sync_enabled')
114
114
  self.sync_enabled = attributes[:'sync_enabled']
115
115
  end
@@ -139,14 +139,14 @@ module MailSlurpClient
139
139
  # @return Array for valid properties with the reasons
140
140
  def list_invalid_properties
141
141
  invalid_properties = Array.new
142
- if @user_id.nil?
143
- invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
144
- end
145
-
146
142
  if @inbox_id.nil?
147
143
  invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
148
144
  end
149
145
 
146
+ if @user_id.nil?
147
+ invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
148
+ end
149
+
150
150
  if @sync_enabled.nil?
151
151
  invalid_properties.push('invalid value for "sync_enabled", sync_enabled cannot be nil.')
152
152
  end
@@ -169,8 +169,8 @@ module MailSlurpClient
169
169
  # Check to see if the all the properties in the model are valid
170
170
  # @return true if the model is valid
171
171
  def valid?
172
- return false if @user_id.nil?
173
172
  return false if @inbox_id.nil?
173
+ return false if @user_id.nil?
174
174
  return false if @sync_enabled.nil?
175
175
  return false if @connector_type.nil?
176
176
  connector_type_validator = EnumAttributeValidator.new('String', ["IMAP"])
@@ -207,8 +207,8 @@ module MailSlurpClient
207
207
  def ==(o)
208
208
  return true if self.equal?(o)
209
209
  self.class == o.class &&
210
- user_id == o.user_id &&
211
210
  inbox_id == o.inbox_id &&
211
+ user_id == o.user_id &&
212
212
  sync_enabled == o.sync_enabled &&
213
213
  connector_type == o.connector_type &&
214
214
  sync_schedule_type == o.sync_schedule_type &&
@@ -226,7 +226,7 @@ module MailSlurpClient
226
226
  # Calculates hash code according to all attributes.
227
227
  # @return [Integer] Hash code
228
228
  def hash
229
- [user_id, inbox_id, sync_enabled, connector_type, sync_schedule_type, sync_interval, created_at, id].hash
229
+ [inbox_id, user_id, sync_enabled, connector_type, sync_schedule_type, sync_interval, created_at, id].hash
230
230
  end
231
231
 
232
232
  # Builds the object from hash
@@ -15,8 +15,6 @@ require 'date'
15
15
  module MailSlurpClient
16
16
  # A compact representation of a full email. Used in list endpoints to keep response sizes low. Body and attachments are not included. To get all fields of the email use the `getEmail` method with the email projection's ID. See `EmailDto` for documentation on projection properties.
17
17
  class EmailProjection
18
- attr_accessor :subject
19
-
20
18
  attr_accessor :attachments
21
19
 
22
20
  attr_accessor :inbox_id
@@ -41,6 +39,8 @@ module MailSlurpClient
41
39
 
42
40
  attr_accessor :created_at
43
41
 
42
+ attr_accessor :subject
43
+
44
44
  attr_accessor :id
45
45
 
46
46
  attr_accessor :from
@@ -48,7 +48,6 @@ module MailSlurpClient
48
48
  # Attribute mapping from ruby-style variable name to JSON key.
49
49
  def self.attribute_map
50
50
  {
51
- :'subject' => :'subject',
52
51
  :'attachments' => :'attachments',
53
52
  :'inbox_id' => :'inboxId',
54
53
  :'to' => :'to',
@@ -61,6 +60,7 @@ module MailSlurpClient
61
60
  :'body_md5_hash' => :'bodyMD5Hash',
62
61
  :'text_excerpt' => :'textExcerpt',
63
62
  :'created_at' => :'createdAt',
63
+ :'subject' => :'subject',
64
64
  :'id' => :'id',
65
65
  :'from' => :'from'
66
66
  }
@@ -69,7 +69,6 @@ module MailSlurpClient
69
69
  # Attribute type mapping.
70
70
  def self.openapi_types
71
71
  {
72
- :'subject' => :'String',
73
72
  :'attachments' => :'Array<String>',
74
73
  :'inbox_id' => :'String',
75
74
  :'to' => :'Array<String>',
@@ -82,6 +81,7 @@ module MailSlurpClient
82
81
  :'body_md5_hash' => :'String',
83
82
  :'text_excerpt' => :'String',
84
83
  :'created_at' => :'DateTime',
84
+ :'subject' => :'String',
85
85
  :'id' => :'String',
86
86
  :'from' => :'String'
87
87
  }
@@ -90,7 +90,6 @@ module MailSlurpClient
90
90
  # List of attributes with nullable: true
91
91
  def self.openapi_nullable
92
92
  Set.new([
93
- :'subject',
94
93
  :'attachments',
95
94
  :'bcc',
96
95
  :'cc',
@@ -98,6 +97,7 @@ module MailSlurpClient
98
97
  :'body_excerpt',
99
98
  :'body_md5_hash',
100
99
  :'text_excerpt',
100
+ :'subject',
101
101
  :'from'
102
102
  ])
103
103
  end
@@ -117,10 +117,6 @@ module MailSlurpClient
117
117
  h[k.to_sym] = v
118
118
  }
119
119
 
120
- if attributes.key?(:'subject')
121
- self.subject = attributes[:'subject']
122
- end
123
-
124
120
  if attributes.key?(:'attachments')
125
121
  if (value = attributes[:'attachments']).is_a?(Array)
126
122
  self.attachments = value
@@ -177,6 +173,10 @@ module MailSlurpClient
177
173
  self.created_at = attributes[:'created_at']
178
174
  end
179
175
 
176
+ if attributes.key?(:'subject')
177
+ self.subject = attributes[:'subject']
178
+ end
179
+
180
180
  if attributes.key?(:'id')
181
181
  self.id = attributes[:'id']
182
182
  end
@@ -234,7 +234,6 @@ module MailSlurpClient
234
234
  def ==(o)
235
235
  return true if self.equal?(o)
236
236
  self.class == o.class &&
237
- subject == o.subject &&
238
237
  attachments == o.attachments &&
239
238
  inbox_id == o.inbox_id &&
240
239
  to == o.to &&
@@ -247,6 +246,7 @@ module MailSlurpClient
247
246
  body_md5_hash == o.body_md5_hash &&
248
247
  text_excerpt == o.text_excerpt &&
249
248
  created_at == o.created_at &&
249
+ subject == o.subject &&
250
250
  id == o.id &&
251
251
  from == o.from
252
252
  end
@@ -260,7 +260,7 @@ module MailSlurpClient
260
260
  # Calculates hash code according to all attributes.
261
261
  # @return [Integer] Hash code
262
262
  def hash
263
- [subject, attachments, inbox_id, to, bcc, cc, domain_id, read, body_excerpt, team_access, body_md5_hash, text_excerpt, created_at, id, from].hash
263
+ [attachments, inbox_id, to, bcc, cc, domain_id, read, body_excerpt, team_access, body_md5_hash, text_excerpt, created_at, subject, id, from].hash
264
264
  end
265
265
 
266
266
  # Builds the object from hash
@@ -15,10 +15,10 @@ require 'date'
15
15
  module MailSlurpClient
16
16
  # Record of inbox expiration
17
17
  class ExpiredInboxRecordProjection
18
- attr_accessor :email_address
19
-
20
18
  attr_accessor :user_id
21
19
 
20
+ attr_accessor :email_address
21
+
22
22
  attr_accessor :created_at
23
23
 
24
24
  attr_accessor :id
@@ -26,8 +26,8 @@ module MailSlurpClient
26
26
  # Attribute mapping from ruby-style variable name to JSON key.
27
27
  def self.attribute_map
28
28
  {
29
- :'email_address' => :'emailAddress',
30
29
  :'user_id' => :'userId',
30
+ :'email_address' => :'emailAddress',
31
31
  :'created_at' => :'createdAt',
32
32
  :'id' => :'id'
33
33
  }
@@ -36,8 +36,8 @@ module MailSlurpClient
36
36
  # Attribute type mapping.
37
37
  def self.openapi_types
38
38
  {
39
- :'email_address' => :'String',
40
39
  :'user_id' => :'String',
40
+ :'email_address' => :'String',
41
41
  :'created_at' => :'DateTime',
42
42
  :'id' => :'String'
43
43
  }
@@ -64,14 +64,14 @@ module MailSlurpClient
64
64
  h[k.to_sym] = v
65
65
  }
66
66
 
67
- if attributes.key?(:'email_address')
68
- self.email_address = attributes[:'email_address']
69
- end
70
-
71
67
  if attributes.key?(:'user_id')
72
68
  self.user_id = attributes[:'user_id']
73
69
  end
74
70
 
71
+ if attributes.key?(:'email_address')
72
+ self.email_address = attributes[:'email_address']
73
+ end
74
+
75
75
  if attributes.key?(:'created_at')
76
76
  self.created_at = attributes[:'created_at']
77
77
  end
@@ -85,14 +85,14 @@ module MailSlurpClient
85
85
  # @return Array for valid properties with the reasons
86
86
  def list_invalid_properties
87
87
  invalid_properties = Array.new
88
- if @email_address.nil?
89
- invalid_properties.push('invalid value for "email_address", email_address cannot be nil.')
90
- end
91
-
92
88
  if @user_id.nil?
93
89
  invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
94
90
  end
95
91
 
92
+ if @email_address.nil?
93
+ invalid_properties.push('invalid value for "email_address", email_address cannot be nil.')
94
+ end
95
+
96
96
  if @created_at.nil?
97
97
  invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
98
98
  end
@@ -107,8 +107,8 @@ module MailSlurpClient
107
107
  # Check to see if the all the properties in the model are valid
108
108
  # @return true if the model is valid
109
109
  def valid?
110
- return false if @email_address.nil?
111
110
  return false if @user_id.nil?
111
+ return false if @email_address.nil?
112
112
  return false if @created_at.nil?
113
113
  return false if @id.nil?
114
114
  true
@@ -119,8 +119,8 @@ module MailSlurpClient
119
119
  def ==(o)
120
120
  return true if self.equal?(o)
121
121
  self.class == o.class &&
122
- email_address == o.email_address &&
123
122
  user_id == o.user_id &&
123
+ email_address == o.email_address &&
124
124
  created_at == o.created_at &&
125
125
  id == o.id
126
126
  end
@@ -134,7 +134,7 @@ module MailSlurpClient
134
134
  # Calculates hash code according to all attributes.
135
135
  # @return [Integer] Hash code
136
136
  def hash
137
- [email_address, user_id, created_at, id].hash
137
+ [user_id, email_address, created_at, id].hash
138
138
  end
139
139
 
140
140
  # Builds the object from hash
@@ -15,12 +15,12 @@ require 'date'
15
15
  module MailSlurpClient
16
16
  # Inbox forwarder event
17
17
  class InboxForwarderEventProjection
18
- attr_accessor :user_id
19
-
20
18
  attr_accessor :email_id
21
19
 
22
20
  attr_accessor :inbox_id
23
21
 
22
+ attr_accessor :user_id
23
+
24
24
  attr_accessor :forwarder_id
25
25
 
26
26
  attr_accessor :created_at
@@ -56,9 +56,9 @@ module MailSlurpClient
56
56
  # Attribute mapping from ruby-style variable name to JSON key.
57
57
  def self.attribute_map
58
58
  {
59
- :'user_id' => :'userId',
60
59
  :'email_id' => :'emailId',
61
60
  :'inbox_id' => :'inboxId',
61
+ :'user_id' => :'userId',
62
62
  :'forwarder_id' => :'forwarderId',
63
63
  :'created_at' => :'createdAt',
64
64
  :'message' => :'message',
@@ -70,9 +70,9 @@ module MailSlurpClient
70
70
  # Attribute type mapping.
71
71
  def self.openapi_types
72
72
  {
73
- :'user_id' => :'String',
74
73
  :'email_id' => :'String',
75
74
  :'inbox_id' => :'String',
75
+ :'user_id' => :'String',
76
76
  :'forwarder_id' => :'String',
77
77
  :'created_at' => :'DateTime',
78
78
  :'message' => :'String',
@@ -84,9 +84,9 @@ module MailSlurpClient
84
84
  # List of attributes with nullable: true
85
85
  def self.openapi_nullable
86
86
  Set.new([
87
- :'user_id',
88
87
  :'email_id',
89
88
  :'inbox_id',
89
+ :'user_id',
90
90
  :'forwarder_id',
91
91
  :'message',
92
92
  :'id',
@@ -109,10 +109,6 @@ module MailSlurpClient
109
109
  h[k.to_sym] = v
110
110
  }
111
111
 
112
- if attributes.key?(:'user_id')
113
- self.user_id = attributes[:'user_id']
114
- end
115
-
116
112
  if attributes.key?(:'email_id')
117
113
  self.email_id = attributes[:'email_id']
118
114
  end
@@ -121,6 +117,10 @@ module MailSlurpClient
121
117
  self.inbox_id = attributes[:'inbox_id']
122
118
  end
123
119
 
120
+ if attributes.key?(:'user_id')
121
+ self.user_id = attributes[:'user_id']
122
+ end
123
+
124
124
  if attributes.key?(:'forwarder_id')
125
125
  self.forwarder_id = attributes[:'forwarder_id']
126
126
  end
@@ -177,9 +177,9 @@ module MailSlurpClient
177
177
  def ==(o)
178
178
  return true if self.equal?(o)
179
179
  self.class == o.class &&
180
- user_id == o.user_id &&
181
180
  email_id == o.email_id &&
182
181
  inbox_id == o.inbox_id &&
182
+ user_id == o.user_id &&
183
183
  forwarder_id == o.forwarder_id &&
184
184
  created_at == o.created_at &&
185
185
  message == o.message &&
@@ -196,7 +196,7 @@ module MailSlurpClient
196
196
  # Calculates hash code according to all attributes.
197
197
  # @return [Integer] Hash code
198
198
  def hash
199
- [user_id, email_id, inbox_id, forwarder_id, created_at, message, id, status].hash
199
+ [email_id, inbox_id, user_id, forwarder_id, created_at, message, id, status].hash
200
200
  end
201
201
 
202
202
  # Builds the object from hash