mailslurp_client 15.0.7 → 15.0.8

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 (34) hide show
  1. checksums.yaml +4 -4
  2. data/lib/mailslurp_client/api/attachment_controller_api.rb +3 -3
  3. data/lib/mailslurp_client/api/email_controller_api.rb +6 -6
  4. data/lib/mailslurp_client/models/abstract_webhook_payload.rb +13 -13
  5. data/lib/mailslurp_client/models/alias_projection.rb +27 -27
  6. data/lib/mailslurp_client/models/attachment_projection.rb +28 -28
  7. data/lib/mailslurp_client/models/contact_projection.rb +13 -13
  8. data/lib/mailslurp_client/models/email_projection.rb +10 -10
  9. data/lib/mailslurp_client/models/page_alias.rb +19 -19
  10. data/lib/mailslurp_client/models/page_attachment_entity.rb +19 -19
  11. data/lib/mailslurp_client/models/page_bounced_email.rb +19 -19
  12. data/lib/mailslurp_client/models/page_bounced_recipients.rb +19 -19
  13. data/lib/mailslurp_client/models/page_contact_projection.rb +19 -19
  14. data/lib/mailslurp_client/models/page_email_preview.rb +19 -19
  15. data/lib/mailslurp_client/models/page_email_projection.rb +19 -19
  16. data/lib/mailslurp_client/models/page_expired_inbox_record_projection.rb +19 -19
  17. data/lib/mailslurp_client/models/page_group_projection.rb +19 -19
  18. data/lib/mailslurp_client/models/page_inbox_forwarder_dto.rb +19 -19
  19. data/lib/mailslurp_client/models/page_inbox_projection.rb +19 -19
  20. data/lib/mailslurp_client/models/page_inbox_ruleset_dto.rb +19 -19
  21. data/lib/mailslurp_client/models/page_missed_email_projection.rb +19 -19
  22. data/lib/mailslurp_client/models/page_organization_inbox_projection.rb +19 -19
  23. data/lib/mailslurp_client/models/page_template_projection.rb +19 -19
  24. data/lib/mailslurp_client/models/page_thread_projection.rb +19 -19
  25. data/lib/mailslurp_client/models/page_tracking_pixel_projection.rb +19 -19
  26. data/lib/mailslurp_client/models/page_unknown_missed_email_projection.rb +19 -19
  27. data/lib/mailslurp_client/models/page_webhook_projection.rb +19 -19
  28. data/lib/mailslurp_client/models/page_webhook_result.rb +19 -19
  29. data/lib/mailslurp_client/models/pageable_object.rb +22 -22
  30. data/lib/mailslurp_client/models/sent_email_projection.rb +15 -15
  31. data/lib/mailslurp_client/models/thread_projection.rb +24 -24
  32. data/lib/mailslurp_client/models/tracking_pixel_projection.rb +10 -10
  33. data/lib/mailslurp_client/version.rb +1 -1
  34. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ac5f0eef39ae9eeb0839508f0d045eb0d63db29220976afbf5e33e8c2eb3e100
4
- data.tar.gz: 150fab57cb6c9b753cede6525f480477475a14426ece6c7e663d02a7e8b1068d
3
+ metadata.gz: b48c90c8c7ef4dc70280caf2bdcdc5391377922b5eb6fbbd77d26f6a7f0888b9
4
+ data.tar.gz: 4888d579ac0cf3130cb99cc5b648c10a1187f7cfa8cb6e99c5d9b46a8fd0d650
5
5
  SHA512:
6
- metadata.gz: d8e1b7ff9639e6931e1d7adf6662629a86264e212e5c27c5717922b6bd888aeb16bf0298b6adc62d2b7dd148d620a89365c619a1ab57df048249fccf1d818121
7
- data.tar.gz: eb89dee4212f7651682c1e56f69c4d642d9dfb09ea96307f81e80faf237717b77a03f72fb8ff8103f575bb4e8088c682556ca295248c126c03a5f01571b55363
6
+ metadata.gz: 26a5ee29aa3225d65e54f9e86041aec98fa2fc9cefddbfa45f0a9f05ef801325690d473944f5a03a9665432b19ae212bf8c4b79318b59a7d6bd85761e20b0fde
7
+ data.tar.gz: 799ffb3e26b414fd2115b72ba181a174e9158fd484c1d46b20fb5bae38d4f0e8331ecc09f9bdca3e09c4d76eff6780a6290d43788f5bfa0999fdd923d170f345
@@ -195,7 +195,7 @@ module MailSlurpClient
195
195
  # Returns the specified attachment for a given email as a stream / array of bytes. You can find attachment ids in email responses endpoint responses. The response type is application/octet-stream.
196
196
  # @param attachment_id [String] ID of attachment
197
197
  # @param [Hash] opts the optional parameters
198
- # @return [Array<String>]
198
+ # @return [String]
199
199
  def download_attachment_as_bytes(attachment_id, opts = {})
200
200
  data, _status_code, _headers = download_attachment_as_bytes_with_http_info(attachment_id, opts)
201
201
  data
@@ -205,7 +205,7 @@ module MailSlurpClient
205
205
  # Returns the specified attachment for a given email as a stream / array of bytes. You can find attachment ids in email responses endpoint responses. The response type is application/octet-stream.
206
206
  # @param attachment_id [String] ID of attachment
207
207
  # @param [Hash] opts the optional parameters
208
- # @return [Array<(Array<String>, Integer, Hash)>] Array<String> data, response status code and response headers
208
+ # @return [Array<(String, Integer, Hash)>] String data, response status code and response headers
209
209
  def download_attachment_as_bytes_with_http_info(attachment_id, opts = {})
210
210
  if @api_client.config.debugging
211
211
  @api_client.config.logger.debug 'Calling API: AttachmentControllerApi.download_attachment_as_bytes ...'
@@ -232,7 +232,7 @@ module MailSlurpClient
232
232
  post_body = opts[:body]
233
233
 
234
234
  # return_type
235
- return_type = opts[:return_type] || 'Array<String>'
235
+ return_type = opts[:return_type] || 'String'
236
236
 
237
237
  # auth_names
238
238
  auth_names = opts[:auth_names] || ['API_KEY']
@@ -139,7 +139,7 @@ module MailSlurpClient
139
139
  # @param attachment_id [String] ID of attachment
140
140
  # @param [Hash] opts the optional parameters
141
141
  # @option opts [String] :api_key Can pass apiKey in url for this request if you wish to download the file in a browser. Content type will be set to original content type of the attachment file. This is so that browsers can download the file correctly.
142
- # @return [Array<String>]
142
+ # @return [String]
143
143
  def download_attachment(email_id, attachment_id, opts = {})
144
144
  data, _status_code, _headers = download_attachment_with_http_info(email_id, attachment_id, opts)
145
145
  data
@@ -151,7 +151,7 @@ module MailSlurpClient
151
151
  # @param attachment_id [String] ID of attachment
152
152
  # @param [Hash] opts the optional parameters
153
153
  # @option opts [String] :api_key Can pass apiKey in url for this request if you wish to download the file in a browser. Content type will be set to original content type of the attachment file. This is so that browsers can download the file correctly.
154
- # @return [Array<(Array<String>, Integer, Hash)>] Array<String> data, response status code and response headers
154
+ # @return [Array<(String, Integer, Hash)>] String data, response status code and response headers
155
155
  def download_attachment_with_http_info(email_id, attachment_id, opts = {})
156
156
  if @api_client.config.debugging
157
157
  @api_client.config.logger.debug 'Calling API: EmailControllerApi.download_attachment ...'
@@ -183,7 +183,7 @@ module MailSlurpClient
183
183
  post_body = opts[:body]
184
184
 
185
185
  # return_type
186
- return_type = opts[:return_type] || 'Array<String>'
186
+ return_type = opts[:return_type] || 'String'
187
187
 
188
188
  # auth_names
189
189
  auth_names = opts[:auth_names] || ['API_KEY']
@@ -338,7 +338,7 @@ module MailSlurpClient
338
338
  # Returns the specified email body for a given email as a stream / array of bytes.
339
339
  # @param email_id [String] ID of email
340
340
  # @param [Hash] opts the optional parameters
341
- # @return [Array<String>]
341
+ # @return [String]
342
342
  def download_body_bytes(email_id, opts = {})
343
343
  data, _status_code, _headers = download_body_bytes_with_http_info(email_id, opts)
344
344
  data
@@ -348,7 +348,7 @@ module MailSlurpClient
348
348
  # Returns the specified email body for a given email as a stream / array of bytes.
349
349
  # @param email_id [String] ID of email
350
350
  # @param [Hash] opts the optional parameters
351
- # @return [Array<(Array<String>, Integer, Hash)>] Array<String> data, response status code and response headers
351
+ # @return [Array<(String, Integer, Hash)>] String data, response status code and response headers
352
352
  def download_body_bytes_with_http_info(email_id, opts = {})
353
353
  if @api_client.config.debugging
354
354
  @api_client.config.logger.debug 'Calling API: EmailControllerApi.download_body_bytes ...'
@@ -375,7 +375,7 @@ module MailSlurpClient
375
375
  post_body = opts[:body]
376
376
 
377
377
  # return_type
378
- return_type = opts[:return_type] || 'Array<String>'
378
+ return_type = opts[:return_type] || 'String'
379
379
 
380
380
  # auth_names
381
381
  auth_names = opts[:auth_names] || ['API_KEY']
@@ -15,14 +15,14 @@ require 'date'
15
15
  module MailSlurpClient
16
16
  # Abstract webhook payload. Use the correct payload type for your webhook event type in order to access all the specific properties for that event. See the `NEW_EMAIL`,`NEW_CONTACT`, `NEW_ATTACHMENT` and `EMAIL_OPENED` payloads for the properties available for those events.
17
17
  class AbstractWebhookPayload
18
- attr_accessor :webhook_name
19
-
20
18
  attr_accessor :event_name
21
19
 
22
20
  attr_accessor :webhook_id
23
21
 
24
22
  attr_accessor :message_id
25
23
 
24
+ attr_accessor :webhook_name
25
+
26
26
  class EnumAttributeValidator
27
27
  attr_reader :datatype
28
28
  attr_reader :allowable_values
@@ -48,20 +48,20 @@ module MailSlurpClient
48
48
  # Attribute mapping from ruby-style variable name to JSON key.
49
49
  def self.attribute_map
50
50
  {
51
- :'webhook_name' => :'webhookName',
52
51
  :'event_name' => :'eventName',
53
52
  :'webhook_id' => :'webhookId',
54
- :'message_id' => :'messageId'
53
+ :'message_id' => :'messageId',
54
+ :'webhook_name' => :'webhookName'
55
55
  }
56
56
  end
57
57
 
58
58
  # Attribute type mapping.
59
59
  def self.openapi_types
60
60
  {
61
- :'webhook_name' => :'String',
62
61
  :'event_name' => :'String',
63
62
  :'webhook_id' => :'String',
64
- :'message_id' => :'String'
63
+ :'message_id' => :'String',
64
+ :'webhook_name' => :'String'
65
65
  }
66
66
  end
67
67
 
@@ -86,10 +86,6 @@ module MailSlurpClient
86
86
  h[k.to_sym] = v
87
87
  }
88
88
 
89
- if attributes.key?(:'webhook_name')
90
- self.webhook_name = attributes[:'webhook_name']
91
- end
92
-
93
89
  if attributes.key?(:'event_name')
94
90
  self.event_name = attributes[:'event_name']
95
91
  end
@@ -101,6 +97,10 @@ module MailSlurpClient
101
97
  if attributes.key?(:'message_id')
102
98
  self.message_id = attributes[:'message_id']
103
99
  end
100
+
101
+ if attributes.key?(:'webhook_name')
102
+ self.webhook_name = attributes[:'webhook_name']
103
+ end
104
104
  end
105
105
 
106
106
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -148,10 +148,10 @@ module MailSlurpClient
148
148
  def ==(o)
149
149
  return true if self.equal?(o)
150
150
  self.class == o.class &&
151
- webhook_name == o.webhook_name &&
152
151
  event_name == o.event_name &&
153
152
  webhook_id == o.webhook_id &&
154
- message_id == o.message_id
153
+ message_id == o.message_id &&
154
+ webhook_name == o.webhook_name
155
155
  end
156
156
 
157
157
  # @see the `==` method
@@ -163,7 +163,7 @@ module MailSlurpClient
163
163
  # Calculates hash code according to all attributes.
164
164
  # @return [Integer] Hash code
165
165
  def hash
166
- [webhook_name, event_name, webhook_id, message_id].hash
166
+ [event_name, webhook_id, message_id, webhook_name].hash
167
167
  end
168
168
 
169
169
  # Builds the object from hash
@@ -19,29 +19,29 @@ module MailSlurpClient
19
19
 
20
20
  attr_accessor :id
21
21
 
22
- attr_accessor :inbox_id
23
-
24
22
  attr_accessor :user_id
25
23
 
26
24
  attr_accessor :email_address
27
25
 
28
- attr_accessor :created_at
26
+ attr_accessor :inbox_id
29
27
 
30
- attr_accessor :use_threads
28
+ attr_accessor :created_at
31
29
 
32
30
  attr_accessor :updated_at
33
31
 
32
+ attr_accessor :use_threads
33
+
34
34
  # Attribute mapping from ruby-style variable name to JSON key.
35
35
  def self.attribute_map
36
36
  {
37
37
  :'name' => :'name',
38
38
  :'id' => :'id',
39
- :'inbox_id' => :'inboxId',
40
39
  :'user_id' => :'userId',
41
40
  :'email_address' => :'emailAddress',
41
+ :'inbox_id' => :'inboxId',
42
42
  :'created_at' => :'createdAt',
43
- :'use_threads' => :'useThreads',
44
- :'updated_at' => :'updatedAt'
43
+ :'updated_at' => :'updatedAt',
44
+ :'use_threads' => :'useThreads'
45
45
  }
46
46
  end
47
47
 
@@ -50,12 +50,12 @@ module MailSlurpClient
50
50
  {
51
51
  :'name' => :'String',
52
52
  :'id' => :'String',
53
- :'inbox_id' => :'String',
54
53
  :'user_id' => :'String',
55
54
  :'email_address' => :'String',
55
+ :'inbox_id' => :'String',
56
56
  :'created_at' => :'DateTime',
57
- :'use_threads' => :'Boolean',
58
- :'updated_at' => :'DateTime'
57
+ :'updated_at' => :'DateTime',
58
+ :'use_threads' => :'Boolean'
59
59
  }
60
60
  end
61
61
 
@@ -88,10 +88,6 @@ module MailSlurpClient
88
88
  self.id = attributes[:'id']
89
89
  end
90
90
 
91
- if attributes.key?(:'inbox_id')
92
- self.inbox_id = attributes[:'inbox_id']
93
- end
94
-
95
91
  if attributes.key?(:'user_id')
96
92
  self.user_id = attributes[:'user_id']
97
93
  end
@@ -100,17 +96,21 @@ module MailSlurpClient
100
96
  self.email_address = attributes[:'email_address']
101
97
  end
102
98
 
103
- if attributes.key?(:'created_at')
104
- self.created_at = attributes[:'created_at']
99
+ if attributes.key?(:'inbox_id')
100
+ self.inbox_id = attributes[:'inbox_id']
105
101
  end
106
102
 
107
- if attributes.key?(:'use_threads')
108
- self.use_threads = attributes[:'use_threads']
103
+ if attributes.key?(:'created_at')
104
+ self.created_at = attributes[:'created_at']
109
105
  end
110
106
 
111
107
  if attributes.key?(:'updated_at')
112
108
  self.updated_at = attributes[:'updated_at']
113
109
  end
110
+
111
+ if attributes.key?(:'use_threads')
112
+ self.use_threads = attributes[:'use_threads']
113
+ end
114
114
  end
115
115
 
116
116
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -121,10 +121,6 @@ module MailSlurpClient
121
121
  invalid_properties.push('invalid value for "id", id cannot be nil.')
122
122
  end
123
123
 
124
- if @inbox_id.nil?
125
- invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
126
- end
127
-
128
124
  if @user_id.nil?
129
125
  invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
130
126
  end
@@ -133,6 +129,10 @@ module MailSlurpClient
133
129
  invalid_properties.push('invalid value for "email_address", email_address cannot be nil.')
134
130
  end
135
131
 
132
+ if @inbox_id.nil?
133
+ invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
134
+ end
135
+
136
136
  if @created_at.nil?
137
137
  invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
138
138
  end
@@ -148,9 +148,9 @@ module MailSlurpClient
148
148
  # @return true if the model is valid
149
149
  def valid?
150
150
  return false if @id.nil?
151
- return false if @inbox_id.nil?
152
151
  return false if @user_id.nil?
153
152
  return false if @email_address.nil?
153
+ return false if @inbox_id.nil?
154
154
  return false if @created_at.nil?
155
155
  return false if @updated_at.nil?
156
156
  true
@@ -163,12 +163,12 @@ module MailSlurpClient
163
163
  self.class == o.class &&
164
164
  name == o.name &&
165
165
  id == o.id &&
166
- inbox_id == o.inbox_id &&
167
166
  user_id == o.user_id &&
168
167
  email_address == o.email_address &&
168
+ inbox_id == o.inbox_id &&
169
169
  created_at == o.created_at &&
170
- use_threads == o.use_threads &&
171
- updated_at == o.updated_at
170
+ updated_at == o.updated_at &&
171
+ use_threads == o.use_threads
172
172
  end
173
173
 
174
174
  # @see the `==` method
@@ -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
- [name, id, inbox_id, user_id, email_address, created_at, use_threads, updated_at].hash
183
+ [name, id, user_id, email_address, inbox_id, created_at, updated_at, use_threads].hash
184
184
  end
185
185
 
186
186
  # Builds the object from hash
@@ -19,28 +19,28 @@ module MailSlurpClient
19
19
  # Content length of attachment in bytes
20
20
  attr_accessor :content_length
21
21
 
22
- attr_accessor :user_id
22
+ # Content type of attachment.
23
+ attr_accessor :content_type
23
24
 
24
- attr_accessor :created_at
25
+ attr_accessor :user_id
25
26
 
26
27
  # Attachment ID
27
28
  attr_accessor :attachment_id
28
29
 
29
- attr_accessor :updated_at
30
+ attr_accessor :created_at
30
31
 
31
- # Content type of attachment.
32
- attr_accessor :content_type
32
+ attr_accessor :updated_at
33
33
 
34
34
  # Attribute mapping from ruby-style variable name to JSON key.
35
35
  def self.attribute_map
36
36
  {
37
37
  :'name' => :'name',
38
38
  :'content_length' => :'contentLength',
39
+ :'content_type' => :'contentType',
39
40
  :'user_id' => :'userId',
40
- :'created_at' => :'createdAt',
41
41
  :'attachment_id' => :'attachmentId',
42
- :'updated_at' => :'updatedAt',
43
- :'content_type' => :'contentType'
42
+ :'created_at' => :'createdAt',
43
+ :'updated_at' => :'updatedAt'
44
44
  }
45
45
  end
46
46
 
@@ -49,11 +49,11 @@ module MailSlurpClient
49
49
  {
50
50
  :'name' => :'String',
51
51
  :'content_length' => :'Integer',
52
+ :'content_type' => :'String',
52
53
  :'user_id' => :'String',
53
- :'created_at' => :'DateTime',
54
54
  :'attachment_id' => :'String',
55
- :'updated_at' => :'DateTime',
56
- :'content_type' => :'String'
55
+ :'created_at' => :'DateTime',
56
+ :'updated_at' => :'DateTime'
57
57
  }
58
58
  end
59
59
 
@@ -86,24 +86,24 @@ module MailSlurpClient
86
86
  self.content_length = attributes[:'content_length']
87
87
  end
88
88
 
89
- if attributes.key?(:'user_id')
90
- self.user_id = attributes[:'user_id']
89
+ if attributes.key?(:'content_type')
90
+ self.content_type = attributes[:'content_type']
91
91
  end
92
92
 
93
- if attributes.key?(:'created_at')
94
- self.created_at = attributes[:'created_at']
93
+ if attributes.key?(:'user_id')
94
+ self.user_id = attributes[:'user_id']
95
95
  end
96
96
 
97
97
  if attributes.key?(:'attachment_id')
98
98
  self.attachment_id = attributes[:'attachment_id']
99
99
  end
100
100
 
101
- if attributes.key?(:'updated_at')
102
- self.updated_at = attributes[:'updated_at']
101
+ if attributes.key?(:'created_at')
102
+ self.created_at = attributes[:'created_at']
103
103
  end
104
104
 
105
- if attributes.key?(:'content_type')
106
- self.content_type = attributes[:'content_type']
105
+ if attributes.key?(:'updated_at')
106
+ self.updated_at = attributes[:'updated_at']
107
107
  end
108
108
  end
109
109
 
@@ -115,14 +115,14 @@ module MailSlurpClient
115
115
  invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
116
116
  end
117
117
 
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 @attachment_id.nil?
123
119
  invalid_properties.push('invalid value for "attachment_id", attachment_id cannot be nil.')
124
120
  end
125
121
 
122
+ if @created_at.nil?
123
+ invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
124
+ end
125
+
126
126
  if @updated_at.nil?
127
127
  invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
128
128
  end
@@ -134,8 +134,8 @@ module MailSlurpClient
134
134
  # @return true if the model is valid
135
135
  def valid?
136
136
  return false if @user_id.nil?
137
- return false if @created_at.nil?
138
137
  return false if @attachment_id.nil?
138
+ return false if @created_at.nil?
139
139
  return false if @updated_at.nil?
140
140
  true
141
141
  end
@@ -147,11 +147,11 @@ module MailSlurpClient
147
147
  self.class == o.class &&
148
148
  name == o.name &&
149
149
  content_length == o.content_length &&
150
+ content_type == o.content_type &&
150
151
  user_id == o.user_id &&
151
- created_at == o.created_at &&
152
152
  attachment_id == o.attachment_id &&
153
- updated_at == o.updated_at &&
154
- content_type == o.content_type
153
+ created_at == o.created_at &&
154
+ updated_at == o.updated_at
155
155
  end
156
156
 
157
157
  # @see the `==` method
@@ -163,7 +163,7 @@ module MailSlurpClient
163
163
  # Calculates hash code according to all attributes.
164
164
  # @return [Integer] Hash code
165
165
  def hash
166
- [name, content_length, user_id, created_at, attachment_id, updated_at, content_type].hash
166
+ [name, content_length, content_type, user_id, attachment_id, created_at, updated_at].hash
167
167
  end
168
168
 
169
169
  # Builds the object from hash
@@ -18,8 +18,6 @@ module MailSlurpClient
18
18
 
19
19
  attr_accessor :group_id
20
20
 
21
- attr_accessor :created_at
22
-
23
21
  attr_accessor :first_name
24
22
 
25
23
  attr_accessor :last_name
@@ -30,17 +28,19 @@ module MailSlurpClient
30
28
 
31
29
  attr_accessor :opt_out
32
30
 
31
+ attr_accessor :created_at
32
+
33
33
  # Attribute mapping from ruby-style variable name to JSON key.
34
34
  def self.attribute_map
35
35
  {
36
36
  :'id' => :'id',
37
37
  :'group_id' => :'groupId',
38
- :'created_at' => :'createdAt',
39
38
  :'first_name' => :'firstName',
40
39
  :'last_name' => :'lastName',
41
40
  :'company' => :'company',
42
41
  :'email_addresses' => :'emailAddresses',
43
- :'opt_out' => :'optOut'
42
+ :'opt_out' => :'optOut',
43
+ :'created_at' => :'createdAt'
44
44
  }
45
45
  end
46
46
 
@@ -49,12 +49,12 @@ module MailSlurpClient
49
49
  {
50
50
  :'id' => :'String',
51
51
  :'group_id' => :'String',
52
- :'created_at' => :'DateTime',
53
52
  :'first_name' => :'String',
54
53
  :'last_name' => :'String',
55
54
  :'company' => :'String',
56
55
  :'email_addresses' => :'Array<String>',
57
- :'opt_out' => :'Boolean'
56
+ :'opt_out' => :'Boolean',
57
+ :'created_at' => :'DateTime'
58
58
  }
59
59
  end
60
60
 
@@ -87,10 +87,6 @@ module MailSlurpClient
87
87
  self.group_id = attributes[:'group_id']
88
88
  end
89
89
 
90
- if attributes.key?(:'created_at')
91
- self.created_at = attributes[:'created_at']
92
- end
93
-
94
90
  if attributes.key?(:'first_name')
95
91
  self.first_name = attributes[:'first_name']
96
92
  end
@@ -112,6 +108,10 @@ module MailSlurpClient
112
108
  if attributes.key?(:'opt_out')
113
109
  self.opt_out = attributes[:'opt_out']
114
110
  end
111
+
112
+ if attributes.key?(:'created_at')
113
+ self.created_at = attributes[:'created_at']
114
+ end
115
115
  end
116
116
 
117
117
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -144,12 +144,12 @@ module MailSlurpClient
144
144
  self.class == o.class &&
145
145
  id == o.id &&
146
146
  group_id == o.group_id &&
147
- created_at == o.created_at &&
148
147
  first_name == o.first_name &&
149
148
  last_name == o.last_name &&
150
149
  company == o.company &&
151
150
  email_addresses == o.email_addresses &&
152
- opt_out == o.opt_out
151
+ opt_out == o.opt_out &&
152
+ created_at == o.created_at
153
153
  end
154
154
 
155
155
  # @see the `==` method
@@ -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
- [id, group_id, created_at, first_name, last_name, company, email_addresses, opt_out].hash
164
+ [id, group_id, first_name, last_name, company, email_addresses, opt_out, created_at].hash
165
165
  end
166
166
 
167
167
  # Builds the object from hash
@@ -27,12 +27,12 @@ module MailSlurpClient
27
27
 
28
28
  attr_accessor :attachments
29
29
 
30
- attr_accessor :created_at
31
-
32
30
  attr_accessor :bcc
33
31
 
34
32
  attr_accessor :cc
35
33
 
34
+ attr_accessor :created_at
35
+
36
36
  attr_accessor :team_access
37
37
 
38
38
  attr_accessor :read
@@ -50,9 +50,9 @@ module MailSlurpClient
50
50
  :'inbox_id' => :'inboxId',
51
51
  :'to' => :'to',
52
52
  :'attachments' => :'attachments',
53
- :'created_at' => :'createdAt',
54
53
  :'bcc' => :'bcc',
55
54
  :'cc' => :'cc',
55
+ :'created_at' => :'createdAt',
56
56
  :'team_access' => :'teamAccess',
57
57
  :'read' => :'read',
58
58
  :'body_md5_hash' => :'bodyMD5Hash',
@@ -69,9 +69,9 @@ module MailSlurpClient
69
69
  :'inbox_id' => :'String',
70
70
  :'to' => :'Array<String>',
71
71
  :'attachments' => :'Array<String>',
72
- :'created_at' => :'DateTime',
73
72
  :'bcc' => :'Array<String>',
74
73
  :'cc' => :'Array<String>',
74
+ :'created_at' => :'DateTime',
75
75
  :'team_access' => :'Boolean',
76
76
  :'read' => :'Boolean',
77
77
  :'body_md5_hash' => :'String',
@@ -128,10 +128,6 @@ module MailSlurpClient
128
128
  end
129
129
  end
130
130
 
131
- if attributes.key?(:'created_at')
132
- self.created_at = attributes[:'created_at']
133
- end
134
-
135
131
  if attributes.key?(:'bcc')
136
132
  if (value = attributes[:'bcc']).is_a?(Array)
137
133
  self.bcc = value
@@ -144,6 +140,10 @@ module MailSlurpClient
144
140
  end
145
141
  end
146
142
 
143
+ if attributes.key?(:'created_at')
144
+ self.created_at = attributes[:'created_at']
145
+ end
146
+
147
147
  if attributes.key?(:'team_access')
148
148
  self.team_access = attributes[:'team_access']
149
149
  end
@@ -205,9 +205,9 @@ module MailSlurpClient
205
205
  inbox_id == o.inbox_id &&
206
206
  to == o.to &&
207
207
  attachments == o.attachments &&
208
- created_at == o.created_at &&
209
208
  bcc == o.bcc &&
210
209
  cc == o.cc &&
210
+ created_at == o.created_at &&
211
211
  team_access == o.team_access &&
212
212
  read == o.read &&
213
213
  body_md5_hash == o.body_md5_hash &&
@@ -223,7 +223,7 @@ module MailSlurpClient
223
223
  # Calculates hash code according to all attributes.
224
224
  # @return [Integer] Hash code
225
225
  def hash
226
- [id, from, subject, inbox_id, to, attachments, created_at, bcc, cc, team_access, read, body_md5_hash, body_excerpt].hash
226
+ [id, from, subject, inbox_id, to, attachments, bcc, cc, created_at, team_access, read, body_md5_hash, body_excerpt].hash
227
227
  end
228
228
 
229
229
  # Builds the object from hash