mailslurp_client 15.17.41 → 15.18.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (36) hide show
  1. checksums.yaml +4 -4
  2. data/lib/mailslurp_client/api/email_controller_api.rb +62 -0
  3. data/lib/mailslurp_client/api/tools_controller_api.rb +175 -0
  4. data/lib/mailslurp_client/models/alias_projection.rb +39 -39
  5. data/lib/mailslurp_client/models/attachment_projection.rb +29 -29
  6. data/lib/mailslurp_client/models/bounce_projection.rb +15 -15
  7. data/lib/mailslurp_client/models/bounce_recipient_projection.rb +15 -15
  8. data/lib/mailslurp_client/models/check_email_body_results.rb +259 -0
  9. data/lib/mailslurp_client/models/connector_projection.rb +24 -24
  10. data/lib/mailslurp_client/models/connector_sync_event_projection.rb +15 -15
  11. data/lib/mailslurp_client/models/contact_projection.rb +10 -10
  12. data/lib/mailslurp_client/models/email_projection.rb +21 -21
  13. data/lib/mailslurp_client/models/expired_inbox_record_projection.rb +19 -19
  14. data/lib/mailslurp_client/models/fake_email_dto.rb +305 -0
  15. data/lib/mailslurp_client/models/fake_email_preview.rb +291 -0
  16. data/lib/mailslurp_client/models/fake_email_result.rb +206 -0
  17. data/lib/mailslurp_client/models/image_issue.rb +282 -0
  18. data/lib/mailslurp_client/models/imap_smtp_access_details.rb +15 -4
  19. data/lib/mailslurp_client/models/inbox_forwarder_event_projection.rb +20 -20
  20. data/lib/mailslurp_client/models/inbox_replier_event_projection.rb +20 -20
  21. data/lib/mailslurp_client/models/link_issue.rb +282 -0
  22. data/lib/mailslurp_client/models/list_unsubscribe_recipient_projection.rb +15 -15
  23. data/lib/mailslurp_client/models/missed_email_projection.rb +10 -10
  24. data/lib/mailslurp_client/models/new_fake_email_address_result.rb +211 -0
  25. data/lib/mailslurp_client/models/phone_number_projection.rb +15 -15
  26. data/lib/mailslurp_client/models/sent_email_projection.rb +44 -44
  27. data/lib/mailslurp_client/models/sms_projection.rb +29 -29
  28. data/lib/mailslurp_client/models/spelling_issue.rb +287 -0
  29. data/lib/mailslurp_client/models/template_projection.rb +17 -17
  30. data/lib/mailslurp_client/models/thread_projection.rb +41 -41
  31. data/lib/mailslurp_client/models/tracking_pixel_projection.rb +27 -27
  32. data/lib/mailslurp_client/models/unknown_missed_email_projection.rb +10 -10
  33. data/lib/mailslurp_client/models/webhook_projection.rb +25 -25
  34. data/lib/mailslurp_client/version.rb +1 -1
  35. data/lib/mailslurp_client.rb +8 -0
  36. metadata +10 -2
@@ -15,8 +15,6 @@ require 'date'
15
15
  module MailSlurpClient
16
16
  # Bounced recipient
17
17
  class BounceRecipientProjection
18
- attr_accessor :created_at
19
-
20
18
  attr_accessor :sent_email_id
21
19
 
22
20
  attr_accessor :recipient
@@ -25,6 +23,8 @@ module MailSlurpClient
25
23
 
26
24
  attr_accessor :bounce_type
27
25
 
26
+ attr_accessor :created_at
27
+
28
28
  attr_accessor :id
29
29
 
30
30
  attr_accessor :status
@@ -32,11 +32,11 @@ module MailSlurpClient
32
32
  # Attribute mapping from ruby-style variable name to JSON key.
33
33
  def self.attribute_map
34
34
  {
35
- :'created_at' => :'createdAt',
36
35
  :'sent_email_id' => :'sentEmailId',
37
36
  :'recipient' => :'recipient',
38
37
  :'action' => :'action',
39
38
  :'bounce_type' => :'bounceType',
39
+ :'created_at' => :'createdAt',
40
40
  :'id' => :'id',
41
41
  :'status' => :'status'
42
42
  }
@@ -45,11 +45,11 @@ module MailSlurpClient
45
45
  # Attribute type mapping.
46
46
  def self.openapi_types
47
47
  {
48
- :'created_at' => :'DateTime',
49
48
  :'sent_email_id' => :'String',
50
49
  :'recipient' => :'String',
51
50
  :'action' => :'String',
52
51
  :'bounce_type' => :'String',
52
+ :'created_at' => :'DateTime',
53
53
  :'id' => :'String',
54
54
  :'status' => :'String'
55
55
  }
@@ -80,10 +80,6 @@ module MailSlurpClient
80
80
  h[k.to_sym] = v
81
81
  }
82
82
 
83
- if attributes.key?(:'created_at')
84
- self.created_at = attributes[:'created_at']
85
- end
86
-
87
83
  if attributes.key?(:'sent_email_id')
88
84
  self.sent_email_id = attributes[:'sent_email_id']
89
85
  end
@@ -100,6 +96,10 @@ module MailSlurpClient
100
96
  self.bounce_type = attributes[:'bounce_type']
101
97
  end
102
98
 
99
+ if attributes.key?(:'created_at')
100
+ self.created_at = attributes[:'created_at']
101
+ end
102
+
103
103
  if attributes.key?(:'id')
104
104
  self.id = attributes[:'id']
105
105
  end
@@ -113,22 +113,22 @@ module MailSlurpClient
113
113
  # @return Array for valid properties with the reasons
114
114
  def list_invalid_properties
115
115
  invalid_properties = Array.new
116
- if @created_at.nil?
117
- invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
118
- end
119
-
120
116
  if @recipient.nil?
121
117
  invalid_properties.push('invalid value for "recipient", recipient cannot be nil.')
122
118
  end
123
119
 
120
+ if @created_at.nil?
121
+ invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
122
+ end
123
+
124
124
  invalid_properties
125
125
  end
126
126
 
127
127
  # Check to see if the all the properties in the model are valid
128
128
  # @return true if the model is valid
129
129
  def valid?
130
- return false if @created_at.nil?
131
130
  return false if @recipient.nil?
131
+ return false if @created_at.nil?
132
132
  true
133
133
  end
134
134
 
@@ -137,11 +137,11 @@ module MailSlurpClient
137
137
  def ==(o)
138
138
  return true if self.equal?(o)
139
139
  self.class == o.class &&
140
- created_at == o.created_at &&
141
140
  sent_email_id == o.sent_email_id &&
142
141
  recipient == o.recipient &&
143
142
  action == o.action &&
144
143
  bounce_type == o.bounce_type &&
144
+ created_at == o.created_at &&
145
145
  id == o.id &&
146
146
  status == o.status
147
147
  end
@@ -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
- [created_at, sent_email_id, recipient, action, bounce_type, id, status].hash
158
+ [sent_email_id, recipient, action, bounce_type, created_at, id, status].hash
159
159
  end
160
160
 
161
161
  # Builds the object from hash
@@ -0,0 +1,259 @@
1
+ =begin
2
+ #MailSlurp API
3
+
4
+ #MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository
5
+
6
+ The version of the OpenAPI document: 6.5.2
7
+ Contact: contact@mailslurp.dev
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 4.3.1
10
+
11
+ =end
12
+
13
+ require 'date'
14
+
15
+ module MailSlurpClient
16
+ class CheckEmailBodyResults
17
+ attr_accessor :has_issues
18
+
19
+ attr_accessor :link_issues
20
+
21
+ attr_accessor :image_issues
22
+
23
+ attr_accessor :spelling_issues
24
+
25
+ # Attribute mapping from ruby-style variable name to JSON key.
26
+ def self.attribute_map
27
+ {
28
+ :'has_issues' => :'hasIssues',
29
+ :'link_issues' => :'linkIssues',
30
+ :'image_issues' => :'imageIssues',
31
+ :'spelling_issues' => :'spellingIssues'
32
+ }
33
+ end
34
+
35
+ # Attribute type mapping.
36
+ def self.openapi_types
37
+ {
38
+ :'has_issues' => :'Boolean',
39
+ :'link_issues' => :'Array<LinkIssue>',
40
+ :'image_issues' => :'Array<ImageIssue>',
41
+ :'spelling_issues' => :'Array<SpellingIssue>'
42
+ }
43
+ end
44
+
45
+ # List of attributes with nullable: true
46
+ def self.openapi_nullable
47
+ Set.new([
48
+ ])
49
+ end
50
+
51
+ # Initializes the object
52
+ # @param [Hash] attributes Model attributes in the form of hash
53
+ def initialize(attributes = {})
54
+ if (!attributes.is_a?(Hash))
55
+ fail ArgumentError, "The input argument (attributes) must be a hash in `MailSlurpClient::CheckEmailBodyResults` initialize method"
56
+ end
57
+
58
+ # check to see if the attribute exists and convert string to symbol for hash key
59
+ attributes = attributes.each_with_object({}) { |(k, v), h|
60
+ if (!self.class.attribute_map.key?(k.to_sym))
61
+ fail ArgumentError, "`#{k}` is not a valid attribute in `MailSlurpClient::CheckEmailBodyResults`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
62
+ end
63
+ h[k.to_sym] = v
64
+ }
65
+
66
+ if attributes.key?(:'has_issues')
67
+ self.has_issues = attributes[:'has_issues']
68
+ end
69
+
70
+ if attributes.key?(:'link_issues')
71
+ if (value = attributes[:'link_issues']).is_a?(Array)
72
+ self.link_issues = value
73
+ end
74
+ end
75
+
76
+ if attributes.key?(:'image_issues')
77
+ if (value = attributes[:'image_issues']).is_a?(Array)
78
+ self.image_issues = value
79
+ end
80
+ end
81
+
82
+ if attributes.key?(:'spelling_issues')
83
+ if (value = attributes[:'spelling_issues']).is_a?(Array)
84
+ self.spelling_issues = value
85
+ end
86
+ end
87
+ end
88
+
89
+ # Show invalid properties with the reasons. Usually used together with valid?
90
+ # @return Array for valid properties with the reasons
91
+ def list_invalid_properties
92
+ invalid_properties = Array.new
93
+ if @has_issues.nil?
94
+ invalid_properties.push('invalid value for "has_issues", has_issues cannot be nil.')
95
+ end
96
+
97
+ if @link_issues.nil?
98
+ invalid_properties.push('invalid value for "link_issues", link_issues cannot be nil.')
99
+ end
100
+
101
+ if @image_issues.nil?
102
+ invalid_properties.push('invalid value for "image_issues", image_issues cannot be nil.')
103
+ end
104
+
105
+ if @spelling_issues.nil?
106
+ invalid_properties.push('invalid value for "spelling_issues", spelling_issues cannot be nil.')
107
+ end
108
+
109
+ invalid_properties
110
+ end
111
+
112
+ # Check to see if the all the properties in the model are valid
113
+ # @return true if the model is valid
114
+ def valid?
115
+ return false if @has_issues.nil?
116
+ return false if @link_issues.nil?
117
+ return false if @image_issues.nil?
118
+ return false if @spelling_issues.nil?
119
+ true
120
+ end
121
+
122
+ # Checks equality by comparing each attribute.
123
+ # @param [Object] Object to be compared
124
+ def ==(o)
125
+ return true if self.equal?(o)
126
+ self.class == o.class &&
127
+ has_issues == o.has_issues &&
128
+ link_issues == o.link_issues &&
129
+ image_issues == o.image_issues &&
130
+ spelling_issues == o.spelling_issues
131
+ end
132
+
133
+ # @see the `==` method
134
+ # @param [Object] Object to be compared
135
+ def eql?(o)
136
+ self == o
137
+ end
138
+
139
+ # Calculates hash code according to all attributes.
140
+ # @return [Integer] Hash code
141
+ def hash
142
+ [has_issues, link_issues, image_issues, spelling_issues].hash
143
+ end
144
+
145
+ # Builds the object from hash
146
+ # @param [Hash] attributes Model attributes in the form of hash
147
+ # @return [Object] Returns the model itself
148
+ def self.build_from_hash(attributes)
149
+ new.build_from_hash(attributes)
150
+ end
151
+
152
+ # Builds the object from hash
153
+ # @param [Hash] attributes Model attributes in the form of hash
154
+ # @return [Object] Returns the model itself
155
+ def build_from_hash(attributes)
156
+ return nil unless attributes.is_a?(Hash)
157
+ self.class.openapi_types.each_pair do |key, type|
158
+ if type =~ /\AArray<(.*)>/i
159
+ # check to ensure the input is an array given that the attribute
160
+ # is documented as an array but the input is not
161
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
162
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
163
+ end
164
+ elsif !attributes[self.class.attribute_map[key]].nil?
165
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
166
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
167
+ end
168
+
169
+ self
170
+ end
171
+
172
+ # Deserializes the data based on type
173
+ # @param string type Data type
174
+ # @param string value Value to be deserialized
175
+ # @return [Object] Deserialized data
176
+ def _deserialize(type, value)
177
+ case type.to_sym
178
+ when :DateTime
179
+ DateTime.parse(value)
180
+ when :Date
181
+ Date.parse(value)
182
+ when :String
183
+ value.to_s
184
+ when :Integer
185
+ value.to_i
186
+ when :Float
187
+ value.to_f
188
+ when :Boolean
189
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
190
+ true
191
+ else
192
+ false
193
+ end
194
+ when :Object
195
+ # generic object (usually a Hash), return directly
196
+ value
197
+ when /\AArray<(?<inner_type>.+)>\z/
198
+ inner_type = Regexp.last_match[:inner_type]
199
+ value.map { |v| _deserialize(inner_type, v) }
200
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
201
+ k_type = Regexp.last_match[:k_type]
202
+ v_type = Regexp.last_match[:v_type]
203
+ {}.tap do |hash|
204
+ value.each do |k, v|
205
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
206
+ end
207
+ end
208
+ else # model
209
+ MailSlurpClient.const_get(type).build_from_hash(value)
210
+ end
211
+ end
212
+
213
+ # Returns the string representation of the object
214
+ # @return [String] String presentation of the object
215
+ def to_s
216
+ to_hash.to_s
217
+ end
218
+
219
+ # to_body is an alias to to_hash (backward compatibility)
220
+ # @return [Hash] Returns the object in the form of hash
221
+ def to_body
222
+ to_hash
223
+ end
224
+
225
+ # Returns the object in the form of hash
226
+ # @return [Hash] Returns the object in the form of hash
227
+ def to_hash
228
+ hash = {}
229
+ self.class.attribute_map.each_pair do |attr, param|
230
+ value = self.send(attr)
231
+ if value.nil?
232
+ is_nullable = self.class.openapi_nullable.include?(attr)
233
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
234
+ end
235
+
236
+ hash[param] = _to_hash(value)
237
+ end
238
+ hash
239
+ end
240
+
241
+ # Outputs non-array value in the form of hash
242
+ # For object, use to_hash. Otherwise, just return the value
243
+ # @param [Object] value Any valid value
244
+ # @return [Hash] Returns the value in the form of hash
245
+ def _to_hash(value)
246
+ if value.is_a?(Array)
247
+ value.compact.map { |v| _to_hash(v) }
248
+ elsif value.is_a?(Hash)
249
+ {}.tap do |hash|
250
+ value.each { |k, v| hash[k] = _to_hash(v) }
251
+ end
252
+ elsif value.respond_to? :to_hash
253
+ value.to_hash
254
+ else
255
+ value
256
+ end
257
+ end
258
+ end
259
+ end
@@ -15,12 +15,10 @@ require 'date'
15
15
  module MailSlurpClient
16
16
  # Connector
17
17
  class ConnectorProjection
18
- attr_accessor :created_at
18
+ attr_accessor :inbox_id
19
19
 
20
20
  attr_accessor :user_id
21
21
 
22
- attr_accessor :inbox_id
23
-
24
22
  attr_accessor :sync_enabled
25
23
 
26
24
  attr_accessor :connector_type
@@ -29,6 +27,8 @@ module MailSlurpClient
29
27
 
30
28
  attr_accessor :sync_interval
31
29
 
30
+ attr_accessor :created_at
31
+
32
32
  attr_accessor :id
33
33
 
34
34
  class EnumAttributeValidator
@@ -56,13 +56,13 @@ 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',
60
- :'user_id' => :'userId',
61
59
  :'inbox_id' => :'inboxId',
60
+ :'user_id' => :'userId',
62
61
  :'sync_enabled' => :'syncEnabled',
63
62
  :'connector_type' => :'connectorType',
64
63
  :'sync_schedule_type' => :'syncScheduleType',
65
64
  :'sync_interval' => :'syncInterval',
65
+ :'created_at' => :'createdAt',
66
66
  :'id' => :'id'
67
67
  }
68
68
  end
@@ -70,13 +70,13 @@ module MailSlurpClient
70
70
  # Attribute type mapping.
71
71
  def self.openapi_types
72
72
  {
73
- :'created_at' => :'DateTime',
74
- :'user_id' => :'String',
75
73
  :'inbox_id' => :'String',
74
+ :'user_id' => :'String',
76
75
  :'sync_enabled' => :'Boolean',
77
76
  :'connector_type' => :'String',
78
77
  :'sync_schedule_type' => :'String',
79
78
  :'sync_interval' => :'Integer',
79
+ :'created_at' => :'DateTime',
80
80
  :'id' => :'String'
81
81
  }
82
82
  end
@@ -102,18 +102,14 @@ module MailSlurpClient
102
102
  h[k.to_sym] = v
103
103
  }
104
104
 
105
- if attributes.key?(:'created_at')
106
- self.created_at = attributes[:'created_at']
105
+ if attributes.key?(:'inbox_id')
106
+ self.inbox_id = attributes[:'inbox_id']
107
107
  end
108
108
 
109
109
  if attributes.key?(:'user_id')
110
110
  self.user_id = attributes[:'user_id']
111
111
  end
112
112
 
113
- if attributes.key?(:'inbox_id')
114
- self.inbox_id = attributes[:'inbox_id']
115
- end
116
-
117
113
  if attributes.key?(:'sync_enabled')
118
114
  self.sync_enabled = attributes[:'sync_enabled']
119
115
  end
@@ -130,6 +126,10 @@ module MailSlurpClient
130
126
  self.sync_interval = attributes[:'sync_interval']
131
127
  end
132
128
 
129
+ if attributes.key?(:'created_at')
130
+ self.created_at = attributes[:'created_at']
131
+ end
132
+
133
133
  if attributes.key?(:'id')
134
134
  self.id = attributes[:'id']
135
135
  end
@@ -139,18 +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 @created_at.nil?
143
- invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
142
+ if @inbox_id.nil?
143
+ invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
144
144
  end
145
145
 
146
146
  if @user_id.nil?
147
147
  invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
148
148
  end
149
149
 
150
- if @inbox_id.nil?
151
- invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
152
- end
153
-
154
150
  if @sync_enabled.nil?
155
151
  invalid_properties.push('invalid value for "sync_enabled", sync_enabled cannot be nil.')
156
152
  end
@@ -163,15 +159,18 @@ module MailSlurpClient
163
159
  invalid_properties.push('invalid value for "sync_schedule_type", sync_schedule_type cannot be nil.')
164
160
  end
165
161
 
162
+ if @created_at.nil?
163
+ invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
164
+ end
165
+
166
166
  invalid_properties
167
167
  end
168
168
 
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 @created_at.nil?
173
- return false if @user_id.nil?
174
172
  return false if @inbox_id.nil?
173
+ return false if @user_id.nil?
175
174
  return false if @sync_enabled.nil?
176
175
  return false if @connector_type.nil?
177
176
  connector_type_validator = EnumAttributeValidator.new('String', ["IMAP"])
@@ -179,6 +178,7 @@ module MailSlurpClient
179
178
  return false if @sync_schedule_type.nil?
180
179
  sync_schedule_type_validator = EnumAttributeValidator.new('String', ["INTERVAL"])
181
180
  return false unless sync_schedule_type_validator.valid?(@sync_schedule_type)
181
+ return false if @created_at.nil?
182
182
  true
183
183
  end
184
184
 
@@ -207,13 +207,13 @@ module MailSlurpClient
207
207
  def ==(o)
208
208
  return true if self.equal?(o)
209
209
  self.class == o.class &&
210
- created_at == o.created_at &&
211
- user_id == o.user_id &&
212
210
  inbox_id == o.inbox_id &&
211
+ user_id == o.user_id &&
213
212
  sync_enabled == o.sync_enabled &&
214
213
  connector_type == o.connector_type &&
215
214
  sync_schedule_type == o.sync_schedule_type &&
216
215
  sync_interval == o.sync_interval &&
216
+ created_at == o.created_at &&
217
217
  id == o.id
218
218
  end
219
219
 
@@ -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
- [created_at, user_id, inbox_id, sync_enabled, connector_type, sync_schedule_type, sync_interval, 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,14 +15,14 @@ require 'date'
15
15
  module MailSlurpClient
16
16
  # ConnectorSyncEventProjection
17
17
  class ConnectorSyncEventProjection
18
- attr_accessor :created_at
19
-
20
18
  attr_accessor :connector_id
21
19
 
22
20
  attr_accessor :sync_count
23
21
 
24
22
  attr_accessor :sync_status
25
23
 
24
+ attr_accessor :created_at
25
+
26
26
  attr_accessor :message
27
27
 
28
28
  attr_accessor :id
@@ -52,10 +52,10 @@ module MailSlurpClient
52
52
  # Attribute mapping from ruby-style variable name to JSON key.
53
53
  def self.attribute_map
54
54
  {
55
- :'created_at' => :'createdAt',
56
55
  :'connector_id' => :'connectorId',
57
56
  :'sync_count' => :'syncCount',
58
57
  :'sync_status' => :'syncStatus',
58
+ :'created_at' => :'createdAt',
59
59
  :'message' => :'message',
60
60
  :'id' => :'id'
61
61
  }
@@ -64,10 +64,10 @@ module MailSlurpClient
64
64
  # Attribute type mapping.
65
65
  def self.openapi_types
66
66
  {
67
- :'created_at' => :'DateTime',
68
67
  :'connector_id' => :'String',
69
68
  :'sync_count' => :'Integer',
70
69
  :'sync_status' => :'String',
70
+ :'created_at' => :'DateTime',
71
71
  :'message' => :'String',
72
72
  :'id' => :'String'
73
73
  }
@@ -94,10 +94,6 @@ module MailSlurpClient
94
94
  h[k.to_sym] = v
95
95
  }
96
96
 
97
- if attributes.key?(:'created_at')
98
- self.created_at = attributes[:'created_at']
99
- end
100
-
101
97
  if attributes.key?(:'connector_id')
102
98
  self.connector_id = attributes[:'connector_id']
103
99
  end
@@ -110,6 +106,10 @@ module MailSlurpClient
110
106
  self.sync_status = attributes[:'sync_status']
111
107
  end
112
108
 
109
+ if attributes.key?(:'created_at')
110
+ self.created_at = attributes[:'created_at']
111
+ end
112
+
113
113
  if attributes.key?(:'message')
114
114
  self.message = attributes[:'message']
115
115
  end
@@ -123,10 +123,6 @@ module MailSlurpClient
123
123
  # @return Array for valid properties with the reasons
124
124
  def list_invalid_properties
125
125
  invalid_properties = Array.new
126
- if @created_at.nil?
127
- invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
128
- end
129
-
130
126
  if @connector_id.nil?
131
127
  invalid_properties.push('invalid value for "connector_id", connector_id cannot be nil.')
132
128
  end
@@ -139,18 +135,22 @@ module MailSlurpClient
139
135
  invalid_properties.push('invalid value for "sync_status", sync_status cannot be nil.')
140
136
  end
141
137
 
138
+ if @created_at.nil?
139
+ invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
140
+ end
141
+
142
142
  invalid_properties
143
143
  end
144
144
 
145
145
  # Check to see if the all the properties in the model are valid
146
146
  # @return true if the model is valid
147
147
  def valid?
148
- return false if @created_at.nil?
149
148
  return false if @connector_id.nil?
150
149
  return false if @sync_count.nil?
151
150
  return false if @sync_status.nil?
152
151
  sync_status_validator = EnumAttributeValidator.new('String', ["SUCCESS", "INTERNAL_ERROR", "SUBSCRIPTION_ERROR", "CONNECTION_ERROR", "NOT_FOUND"])
153
152
  return false unless sync_status_validator.valid?(@sync_status)
153
+ return false if @created_at.nil?
154
154
  true
155
155
  end
156
156
 
@@ -169,10 +169,10 @@ module MailSlurpClient
169
169
  def ==(o)
170
170
  return true if self.equal?(o)
171
171
  self.class == o.class &&
172
- created_at == o.created_at &&
173
172
  connector_id == o.connector_id &&
174
173
  sync_count == o.sync_count &&
175
174
  sync_status == o.sync_status &&
175
+ created_at == o.created_at &&
176
176
  message == o.message &&
177
177
  id == o.id
178
178
  end
@@ -186,7 +186,7 @@ module MailSlurpClient
186
186
  # Calculates hash code according to all attributes.
187
187
  # @return [Integer] Hash code
188
188
  def hash
189
- [created_at, connector_id, sync_count, sync_status, message, id].hash
189
+ [connector_id, sync_count, sync_status, created_at, message, id].hash
190
190
  end
191
191
 
192
192
  # Builds the object from hash