mailslurp_client 15.19.6 → 15.19.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (25) hide show
  1. checksums.yaml +4 -4
  2. data/lib/mailslurp_client/models/alias_projection.rb +39 -39
  3. data/lib/mailslurp_client/models/attachment_projection.rb +29 -29
  4. data/lib/mailslurp_client/models/bounce_projection.rb +15 -15
  5. data/lib/mailslurp_client/models/bounce_recipient_projection.rb +15 -15
  6. data/lib/mailslurp_client/models/connector_projection.rb +30 -30
  7. data/lib/mailslurp_client/models/connector_sync_event_projection.rb +15 -15
  8. data/lib/mailslurp_client/models/contact_projection.rb +10 -10
  9. data/lib/mailslurp_client/models/email_projection.rb +23 -23
  10. data/lib/mailslurp_client/models/expired_inbox_record_projection.rb +19 -19
  11. data/lib/mailslurp_client/models/imap_email_projection.rb +15 -15
  12. data/lib/mailslurp_client/models/inbox_forwarder_event_projection.rb +17 -17
  13. data/lib/mailslurp_client/models/inbox_replier_event_projection.rb +20 -20
  14. data/lib/mailslurp_client/models/list_unsubscribe_recipient_projection.rb +15 -15
  15. data/lib/mailslurp_client/models/missed_email_projection.rb +10 -10
  16. data/lib/mailslurp_client/models/phone_number_projection.rb +15 -15
  17. data/lib/mailslurp_client/models/sent_email_projection.rb +35 -35
  18. data/lib/mailslurp_client/models/sms_projection.rb +29 -29
  19. data/lib/mailslurp_client/models/template_projection.rb +17 -17
  20. data/lib/mailslurp_client/models/thread_projection.rb +41 -41
  21. data/lib/mailslurp_client/models/tracking_pixel_projection.rb +27 -27
  22. data/lib/mailslurp_client/models/unknown_missed_email_projection.rb +10 -10
  23. data/lib/mailslurp_client/models/webhook_projection.rb +25 -25
  24. data/lib/mailslurp_client/version.rb +1 -1
  25. metadata +1 -1
@@ -14,23 +14,23 @@ require 'date'
14
14
 
15
15
  module MailSlurpClient
16
16
  class ImapEmailProjection
17
- attr_accessor :created_at
18
-
19
17
  attr_accessor :read
20
18
 
21
19
  attr_accessor :uid
22
20
 
23
21
  attr_accessor :seq_num
24
22
 
23
+ attr_accessor :created_at
24
+
25
25
  attr_accessor :id
26
26
 
27
27
  # Attribute mapping from ruby-style variable name to JSON key.
28
28
  def self.attribute_map
29
29
  {
30
- :'created_at' => :'createdAt',
31
30
  :'read' => :'read',
32
31
  :'uid' => :'uid',
33
32
  :'seq_num' => :'seqNum',
33
+ :'created_at' => :'createdAt',
34
34
  :'id' => :'id'
35
35
  }
36
36
  end
@@ -38,10 +38,10 @@ module MailSlurpClient
38
38
  # Attribute type mapping.
39
39
  def self.openapi_types
40
40
  {
41
- :'created_at' => :'DateTime',
42
41
  :'read' => :'Boolean',
43
42
  :'uid' => :'Integer',
44
43
  :'seq_num' => :'Integer',
44
+ :'created_at' => :'DateTime',
45
45
  :'id' => :'String'
46
46
  }
47
47
  end
@@ -68,10 +68,6 @@ module MailSlurpClient
68
68
  h[k.to_sym] = v
69
69
  }
70
70
 
71
- if attributes.key?(:'created_at')
72
- self.created_at = attributes[:'created_at']
73
- end
74
-
75
71
  if attributes.key?(:'read')
76
72
  self.read = attributes[:'read']
77
73
  end
@@ -84,6 +80,10 @@ module MailSlurpClient
84
80
  self.seq_num = attributes[:'seq_num']
85
81
  end
86
82
 
83
+ if attributes.key?(:'created_at')
84
+ self.created_at = attributes[:'created_at']
85
+ end
86
+
87
87
  if attributes.key?(:'id')
88
88
  self.id = attributes[:'id']
89
89
  end
@@ -93,10 +93,6 @@ module MailSlurpClient
93
93
  # @return Array for valid properties with the reasons
94
94
  def list_invalid_properties
95
95
  invalid_properties = Array.new
96
- if @created_at.nil?
97
- invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
98
- end
99
-
100
96
  if @uid.nil?
101
97
  invalid_properties.push('invalid value for "uid", uid cannot be nil.')
102
98
  end
@@ -105,6 +101,10 @@ module MailSlurpClient
105
101
  invalid_properties.push('invalid value for "seq_num", seq_num cannot be nil.')
106
102
  end
107
103
 
104
+ if @created_at.nil?
105
+ invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
106
+ end
107
+
108
108
  if @id.nil?
109
109
  invalid_properties.push('invalid value for "id", id cannot be nil.')
110
110
  end
@@ -115,9 +115,9 @@ module MailSlurpClient
115
115
  # Check to see if the all the properties in the model are valid
116
116
  # @return true if the model is valid
117
117
  def valid?
118
- return false if @created_at.nil?
119
118
  return false if @uid.nil?
120
119
  return false if @seq_num.nil?
120
+ return false if @created_at.nil?
121
121
  return false if @id.nil?
122
122
  true
123
123
  end
@@ -127,10 +127,10 @@ module MailSlurpClient
127
127
  def ==(o)
128
128
  return true if self.equal?(o)
129
129
  self.class == o.class &&
130
- created_at == o.created_at &&
131
130
  read == o.read &&
132
131
  uid == o.uid &&
133
132
  seq_num == o.seq_num &&
133
+ created_at == o.created_at &&
134
134
  id == o.id
135
135
  end
136
136
 
@@ -143,7 +143,7 @@ module MailSlurpClient
143
143
  # Calculates hash code according to all attributes.
144
144
  # @return [Integer] Hash code
145
145
  def hash
146
- [created_at, read, uid, seq_num, id].hash
146
+ [read, uid, seq_num, created_at, id].hash
147
147
  end
148
148
 
149
149
  # Builds the object from hash
@@ -15,16 +15,16 @@ require 'date'
15
15
  module MailSlurpClient
16
16
  # Inbox forwarder event
17
17
  class InboxForwarderEventProjection
18
- attr_accessor :created_at
18
+ attr_accessor :user_id
19
19
 
20
20
  attr_accessor :email_id
21
21
 
22
22
  attr_accessor :inbox_id
23
23
 
24
- attr_accessor :user_id
25
-
26
24
  attr_accessor :forwarder_id
27
25
 
26
+ attr_accessor :created_at
27
+
28
28
  attr_accessor :message
29
29
 
30
30
  attr_accessor :id
@@ -56,11 +56,11 @@ module MailSlurpClient
56
56
  # Attribute mapping from ruby-style variable name to JSON key.
57
57
  def self.attribute_map
58
58
  {
59
- :'created_at' => :'createdAt',
59
+ :'user_id' => :'userId',
60
60
  :'email_id' => :'emailId',
61
61
  :'inbox_id' => :'inboxId',
62
- :'user_id' => :'userId',
63
62
  :'forwarder_id' => :'forwarderId',
63
+ :'created_at' => :'createdAt',
64
64
  :'message' => :'message',
65
65
  :'id' => :'id',
66
66
  :'status' => :'status'
@@ -70,11 +70,11 @@ module MailSlurpClient
70
70
  # Attribute type mapping.
71
71
  def self.openapi_types
72
72
  {
73
- :'created_at' => :'DateTime',
73
+ :'user_id' => :'String',
74
74
  :'email_id' => :'String',
75
75
  :'inbox_id' => :'String',
76
- :'user_id' => :'String',
77
76
  :'forwarder_id' => :'String',
77
+ :'created_at' => :'DateTime',
78
78
  :'message' => :'String',
79
79
  :'id' => :'String',
80
80
  :'status' => :'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',
87
88
  :'email_id',
88
89
  :'inbox_id',
89
- :'user_id',
90
90
  :'forwarder_id',
91
91
  :'message',
92
92
  :'id',
@@ -109,8 +109,8 @@ module MailSlurpClient
109
109
  h[k.to_sym] = v
110
110
  }
111
111
 
112
- if attributes.key?(:'created_at')
113
- self.created_at = attributes[:'created_at']
112
+ if attributes.key?(:'user_id')
113
+ self.user_id = attributes[:'user_id']
114
114
  end
115
115
 
116
116
  if attributes.key?(:'email_id')
@@ -121,14 +121,14 @@ module MailSlurpClient
121
121
  self.inbox_id = attributes[:'inbox_id']
122
122
  end
123
123
 
124
- if attributes.key?(:'user_id')
125
- self.user_id = attributes[:'user_id']
126
- end
127
-
128
124
  if attributes.key?(:'forwarder_id')
129
125
  self.forwarder_id = attributes[:'forwarder_id']
130
126
  end
131
127
 
128
+ if attributes.key?(:'created_at')
129
+ self.created_at = attributes[:'created_at']
130
+ end
131
+
132
132
  if attributes.key?(:'message')
133
133
  self.message = attributes[:'message']
134
134
  end
@@ -177,11 +177,11 @@ module MailSlurpClient
177
177
  def ==(o)
178
178
  return true if self.equal?(o)
179
179
  self.class == o.class &&
180
- created_at == o.created_at &&
180
+ user_id == o.user_id &&
181
181
  email_id == o.email_id &&
182
182
  inbox_id == o.inbox_id &&
183
- user_id == o.user_id &&
184
183
  forwarder_id == o.forwarder_id &&
184
+ created_at == o.created_at &&
185
185
  message == o.message &&
186
186
  id == o.id &&
187
187
  status == o.status
@@ -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
- [created_at, email_id, inbox_id, user_id, forwarder_id, message, id, status].hash
199
+ [user_id, email_id, inbox_id, forwarder_id, created_at, message, id, status].hash
200
200
  end
201
201
 
202
202
  # Builds the object from hash
@@ -15,20 +15,20 @@ require 'date'
15
15
  module MailSlurpClient
16
16
  # Inbox replier event
17
17
  class InboxReplierEventProjection
18
- attr_accessor :created_at
19
-
20
18
  attr_accessor :recipients
21
19
 
20
+ attr_accessor :user_id
21
+
22
22
  attr_accessor :email_id
23
23
 
24
24
  attr_accessor :inbox_id
25
25
 
26
- attr_accessor :user_id
27
-
28
26
  attr_accessor :sent_id
29
27
 
30
28
  attr_accessor :replier_id
31
29
 
30
+ attr_accessor :created_at
31
+
32
32
  attr_accessor :message
33
33
 
34
34
  attr_accessor :id
@@ -60,13 +60,13 @@ module MailSlurpClient
60
60
  # Attribute mapping from ruby-style variable name to JSON key.
61
61
  def self.attribute_map
62
62
  {
63
- :'created_at' => :'createdAt',
64
63
  :'recipients' => :'recipients',
64
+ :'user_id' => :'userId',
65
65
  :'email_id' => :'emailId',
66
66
  :'inbox_id' => :'inboxId',
67
- :'user_id' => :'userId',
68
67
  :'sent_id' => :'sentId',
69
68
  :'replier_id' => :'replierId',
69
+ :'created_at' => :'createdAt',
70
70
  :'message' => :'message',
71
71
  :'id' => :'id',
72
72
  :'status' => :'status'
@@ -76,13 +76,13 @@ module MailSlurpClient
76
76
  # Attribute type mapping.
77
77
  def self.openapi_types
78
78
  {
79
- :'created_at' => :'DateTime',
80
79
  :'recipients' => :'Array<String>',
80
+ :'user_id' => :'String',
81
81
  :'email_id' => :'String',
82
82
  :'inbox_id' => :'String',
83
- :'user_id' => :'String',
84
83
  :'sent_id' => :'String',
85
84
  :'replier_id' => :'String',
85
+ :'created_at' => :'DateTime',
86
86
  :'message' => :'String',
87
87
  :'id' => :'String',
88
88
  :'status' => :'String'
@@ -93,9 +93,9 @@ module MailSlurpClient
93
93
  def self.openapi_nullable
94
94
  Set.new([
95
95
  :'recipients',
96
+ :'user_id',
96
97
  :'email_id',
97
98
  :'inbox_id',
98
- :'user_id',
99
99
  :'sent_id',
100
100
  :'replier_id',
101
101
  :'message',
@@ -119,16 +119,16 @@ module MailSlurpClient
119
119
  h[k.to_sym] = v
120
120
  }
121
121
 
122
- if attributes.key?(:'created_at')
123
- self.created_at = attributes[:'created_at']
124
- end
125
-
126
122
  if attributes.key?(:'recipients')
127
123
  if (value = attributes[:'recipients']).is_a?(Array)
128
124
  self.recipients = value
129
125
  end
130
126
  end
131
127
 
128
+ if attributes.key?(:'user_id')
129
+ self.user_id = attributes[:'user_id']
130
+ end
131
+
132
132
  if attributes.key?(:'email_id')
133
133
  self.email_id = attributes[:'email_id']
134
134
  end
@@ -137,10 +137,6 @@ module MailSlurpClient
137
137
  self.inbox_id = attributes[:'inbox_id']
138
138
  end
139
139
 
140
- if attributes.key?(:'user_id')
141
- self.user_id = attributes[:'user_id']
142
- end
143
-
144
140
  if attributes.key?(:'sent_id')
145
141
  self.sent_id = attributes[:'sent_id']
146
142
  end
@@ -149,6 +145,10 @@ module MailSlurpClient
149
145
  self.replier_id = attributes[:'replier_id']
150
146
  end
151
147
 
148
+ if attributes.key?(:'created_at')
149
+ self.created_at = attributes[:'created_at']
150
+ end
151
+
152
152
  if attributes.key?(:'message')
153
153
  self.message = attributes[:'message']
154
154
  end
@@ -197,13 +197,13 @@ module MailSlurpClient
197
197
  def ==(o)
198
198
  return true if self.equal?(o)
199
199
  self.class == o.class &&
200
- created_at == o.created_at &&
201
200
  recipients == o.recipients &&
201
+ user_id == o.user_id &&
202
202
  email_id == o.email_id &&
203
203
  inbox_id == o.inbox_id &&
204
- user_id == o.user_id &&
205
204
  sent_id == o.sent_id &&
206
205
  replier_id == o.replier_id &&
206
+ created_at == o.created_at &&
207
207
  message == o.message &&
208
208
  id == o.id &&
209
209
  status == o.status
@@ -218,7 +218,7 @@ module MailSlurpClient
218
218
  # Calculates hash code according to all attributes.
219
219
  # @return [Integer] Hash code
220
220
  def hash
221
- [created_at, recipients, email_id, inbox_id, user_id, sent_id, replier_id, message, id, status].hash
221
+ [recipients, user_id, email_id, inbox_id, sent_id, replier_id, created_at, message, id, status].hash
222
222
  end
223
223
 
224
224
  # Builds the object from hash
@@ -15,20 +15,20 @@ require 'date'
15
15
  module MailSlurpClient
16
16
  # List unsubscribe recipient
17
17
  class ListUnsubscribeRecipientProjection
18
- attr_accessor :created_at
19
-
20
18
  attr_accessor :email_address
21
19
 
22
20
  attr_accessor :domain_id
23
21
 
22
+ attr_accessor :created_at
23
+
24
24
  attr_accessor :id
25
25
 
26
26
  # Attribute mapping from ruby-style variable name to JSON key.
27
27
  def self.attribute_map
28
28
  {
29
- :'created_at' => :'createdAt',
30
29
  :'email_address' => :'emailAddress',
31
30
  :'domain_id' => :'domainId',
31
+ :'created_at' => :'createdAt',
32
32
  :'id' => :'id'
33
33
  }
34
34
  end
@@ -36,9 +36,9 @@ module MailSlurpClient
36
36
  # Attribute type mapping.
37
37
  def self.openapi_types
38
38
  {
39
- :'created_at' => :'DateTime',
40
39
  :'email_address' => :'String',
41
40
  :'domain_id' => :'String',
41
+ :'created_at' => :'DateTime',
42
42
  :'id' => :'String'
43
43
  }
44
44
  end
@@ -65,10 +65,6 @@ module MailSlurpClient
65
65
  h[k.to_sym] = v
66
66
  }
67
67
 
68
- if attributes.key?(:'created_at')
69
- self.created_at = attributes[:'created_at']
70
- end
71
-
72
68
  if attributes.key?(:'email_address')
73
69
  self.email_address = attributes[:'email_address']
74
70
  end
@@ -77,6 +73,10 @@ module MailSlurpClient
77
73
  self.domain_id = attributes[:'domain_id']
78
74
  end
79
75
 
76
+ if attributes.key?(:'created_at')
77
+ self.created_at = attributes[:'created_at']
78
+ end
79
+
80
80
  if attributes.key?(:'id')
81
81
  self.id = attributes[:'id']
82
82
  end
@@ -86,14 +86,14 @@ module MailSlurpClient
86
86
  # @return Array for valid properties with the reasons
87
87
  def list_invalid_properties
88
88
  invalid_properties = Array.new
89
- if @created_at.nil?
90
- invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
91
- end
92
-
93
89
  if @email_address.nil?
94
90
  invalid_properties.push('invalid value for "email_address", email_address cannot be nil.')
95
91
  end
96
92
 
93
+ if @created_at.nil?
94
+ invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
95
+ end
96
+
97
97
  if @id.nil?
98
98
  invalid_properties.push('invalid value for "id", id cannot be nil.')
99
99
  end
@@ -104,8 +104,8 @@ module MailSlurpClient
104
104
  # Check to see if the all the properties in the model are valid
105
105
  # @return true if the model is valid
106
106
  def valid?
107
- return false if @created_at.nil?
108
107
  return false if @email_address.nil?
108
+ return false if @created_at.nil?
109
109
  return false if @id.nil?
110
110
  true
111
111
  end
@@ -115,9 +115,9 @@ module MailSlurpClient
115
115
  def ==(o)
116
116
  return true if self.equal?(o)
117
117
  self.class == o.class &&
118
- created_at == o.created_at &&
119
118
  email_address == o.email_address &&
120
119
  domain_id == o.domain_id &&
120
+ created_at == o.created_at &&
121
121
  id == o.id
122
122
  end
123
123
 
@@ -130,7 +130,7 @@ module MailSlurpClient
130
130
  # Calculates hash code according to all attributes.
131
131
  # @return [Integer] Hash code
132
132
  def hash
133
- [created_at, email_address, domain_id, id].hash
133
+ [email_address, domain_id, created_at, id].hash
134
134
  end
135
135
 
136
136
  # Builds the object from hash
@@ -15,10 +15,10 @@ require 'date'
15
15
  module MailSlurpClient
16
16
  # Missed email data
17
17
  class MissedEmailProjection
18
- attr_accessor :created_at
19
-
20
18
  attr_accessor :user_id
21
19
 
20
+ attr_accessor :created_at
21
+
22
22
  attr_accessor :subject
23
23
 
24
24
  attr_accessor :id
@@ -28,8 +28,8 @@ module MailSlurpClient
28
28
  # Attribute mapping from ruby-style variable name to JSON key.
29
29
  def self.attribute_map
30
30
  {
31
- :'created_at' => :'createdAt',
32
31
  :'user_id' => :'userId',
32
+ :'created_at' => :'createdAt',
33
33
  :'subject' => :'subject',
34
34
  :'id' => :'id',
35
35
  :'from' => :'from'
@@ -39,8 +39,8 @@ module MailSlurpClient
39
39
  # Attribute type mapping.
40
40
  def self.openapi_types
41
41
  {
42
- :'created_at' => :'DateTime',
43
42
  :'user_id' => :'String',
43
+ :'created_at' => :'DateTime',
44
44
  :'subject' => :'String',
45
45
  :'id' => :'String',
46
46
  :'from' => :'String'
@@ -71,14 +71,14 @@ module MailSlurpClient
71
71
  h[k.to_sym] = v
72
72
  }
73
73
 
74
- if attributes.key?(:'created_at')
75
- self.created_at = attributes[:'created_at']
76
- end
77
-
78
74
  if attributes.key?(:'user_id')
79
75
  self.user_id = attributes[:'user_id']
80
76
  end
81
77
 
78
+ if attributes.key?(:'created_at')
79
+ self.created_at = attributes[:'created_at']
80
+ end
81
+
82
82
  if attributes.key?(:'subject')
83
83
  self.subject = attributes[:'subject']
84
84
  end
@@ -120,8 +120,8 @@ module MailSlurpClient
120
120
  def ==(o)
121
121
  return true if self.equal?(o)
122
122
  self.class == o.class &&
123
- created_at == o.created_at &&
124
123
  user_id == o.user_id &&
124
+ created_at == o.created_at &&
125
125
  subject == o.subject &&
126
126
  id == o.id &&
127
127
  from == o.from
@@ -136,7 +136,7 @@ module MailSlurpClient
136
136
  # Calculates hash code according to all attributes.
137
137
  # @return [Integer] Hash code
138
138
  def hash
139
- [created_at, user_id, subject, id, from].hash
139
+ [user_id, created_at, subject, id, from].hash
140
140
  end
141
141
 
142
142
  # 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
-
20
18
  attr_accessor :user_id
21
19
 
22
20
  attr_accessor :phone_number
23
21
 
24
22
  attr_accessor :phone_country
25
23
 
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',
54
53
  :'user_id' => :'userId',
55
54
  :'phone_number' => :'phoneNumber',
56
55
  :'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',
65
64
  :'user_id' => :'String',
66
65
  :'phone_number' => :'String',
67
66
  :'phone_country' => :'String',
67
+ :'created_at' => :'DateTime',
68
68
  :'id' => :'String'
69
69
  }
70
70
  end
@@ -90,10 +90,6 @@ 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
-
97
93
  if attributes.key?(:'user_id')
98
94
  self.user_id = attributes[:'user_id']
99
95
  end
@@ -106,6 +102,10 @@ module MailSlurpClient
106
102
  self.phone_country = attributes[:'phone_country']
107
103
  end
108
104
 
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,10 +115,6 @@ 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
-
122
118
  if @user_id.nil?
123
119
  invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
124
120
  end
@@ -131,6 +127,10 @@ module MailSlurpClient
131
127
  invalid_properties.push('invalid value for "phone_country", phone_country cannot be nil.')
132
128
  end
133
129
 
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?
145
144
  return false if @user_id.nil?
146
145
  return false if @phone_number.nil?
147
146
  return false if @phone_country.nil?
148
147
  phone_country_validator = EnumAttributeValidator.new('String', ["US", "GB", "AU"])
149
148
  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 &&
170
169
  user_id == o.user_id &&
171
170
  phone_number == o.phone_number &&
172
171
  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
- [created_at, user_id, phone_number, phone_country, id].hash
185
+ [user_id, phone_number, phone_country, created_at, id].hash
186
186
  end
187
187
 
188
188
  # Builds the object from hash