mailslurp_client 15.19.21 → 15.19.22

Sign up to get free protection for your applications and to get access to all the features.
Files changed (66) hide show
  1. checksums.yaml +4 -4
  2. data/lib/mailslurp_client/api/imap_controller_api.rb +61 -0
  3. data/lib/mailslurp_client/api/inbox_controller_api.rb +63 -0
  4. data/lib/mailslurp_client/models/alias_projection.rb +38 -38
  5. data/lib/mailslurp_client/models/attachment_projection.rb +29 -29
  6. data/lib/mailslurp_client/models/bounce_projection.rb +22 -22
  7. data/lib/mailslurp_client/models/bounce_recipient_projection.rb +22 -22
  8. data/lib/mailslurp_client/models/connector_projection.rb +24 -24
  9. data/lib/mailslurp_client/models/connector_sync_event_projection.rb +15 -15
  10. data/lib/mailslurp_client/models/contact_projection.rb +10 -10
  11. data/lib/mailslurp_client/models/domain_name_record.rb +16 -4
  12. data/lib/mailslurp_client/models/email_available_result.rb +211 -0
  13. data/lib/mailslurp_client/models/email_projection.rb +15 -15
  14. data/lib/mailslurp_client/models/expired_inbox_record_projection.rb +15 -15
  15. data/lib/mailslurp_client/models/imap_email_projection.rb +15 -15
  16. data/lib/mailslurp_client/models/imap_server_mailbox_result.rb +221 -0
  17. data/lib/mailslurp_client/models/inbox_forwarder_event_projection.rb +10 -10
  18. data/lib/mailslurp_client/models/inbox_replier_event_projection.rb +20 -20
  19. data/lib/mailslurp_client/models/list_unsubscribe_recipient_projection.rb +15 -15
  20. data/lib/mailslurp_client/models/missed_email_projection.rb +10 -10
  21. data/lib/mailslurp_client/models/page_alias.rb +10 -10
  22. data/lib/mailslurp_client/models/page_attachment_entity.rb +10 -10
  23. data/lib/mailslurp_client/models/page_bounced_email.rb +10 -10
  24. data/lib/mailslurp_client/models/page_bounced_recipients.rb +10 -10
  25. data/lib/mailslurp_client/models/page_complaint.rb +10 -10
  26. data/lib/mailslurp_client/models/page_connector.rb +10 -10
  27. data/lib/mailslurp_client/models/page_connector_sync_events.rb +10 -10
  28. data/lib/mailslurp_client/models/page_contact_projection.rb +10 -10
  29. data/lib/mailslurp_client/models/page_delivery_status.rb +10 -10
  30. data/lib/mailslurp_client/models/page_email_preview.rb +10 -10
  31. data/lib/mailslurp_client/models/page_email_projection.rb +10 -10
  32. data/lib/mailslurp_client/models/page_email_validation_request.rb +10 -10
  33. data/lib/mailslurp_client/models/page_expired_inbox_record_projection.rb +10 -10
  34. data/lib/mailslurp_client/models/page_group_projection.rb +10 -10
  35. data/lib/mailslurp_client/models/page_inbox_forwarder_dto.rb +10 -10
  36. data/lib/mailslurp_client/models/page_inbox_forwarder_events.rb +10 -10
  37. data/lib/mailslurp_client/models/page_inbox_projection.rb +10 -10
  38. data/lib/mailslurp_client/models/page_inbox_replier_dto.rb +10 -10
  39. data/lib/mailslurp_client/models/page_inbox_replier_events.rb +10 -10
  40. data/lib/mailslurp_client/models/page_inbox_ruleset_dto.rb +10 -10
  41. data/lib/mailslurp_client/models/page_list_unsubscribe_recipients.rb +10 -10
  42. data/lib/mailslurp_client/models/page_missed_email_projection.rb +10 -10
  43. data/lib/mailslurp_client/models/page_organization_inbox_projection.rb +10 -10
  44. data/lib/mailslurp_client/models/page_phone_number_projection.rb +10 -10
  45. data/lib/mailslurp_client/models/page_scheduled_jobs.rb +10 -10
  46. data/lib/mailslurp_client/models/page_sent_email_projection.rb +10 -10
  47. data/lib/mailslurp_client/models/page_sent_email_with_queue_projection.rb +10 -10
  48. data/lib/mailslurp_client/models/page_sms_projection.rb +10 -10
  49. data/lib/mailslurp_client/models/page_template_projection.rb +10 -10
  50. data/lib/mailslurp_client/models/page_thread_projection.rb +10 -10
  51. data/lib/mailslurp_client/models/page_tracking_pixel_projection.rb +10 -10
  52. data/lib/mailslurp_client/models/page_unknown_missed_email_projection.rb +10 -10
  53. data/lib/mailslurp_client/models/page_webhook_projection.rb +10 -10
  54. data/lib/mailslurp_client/models/page_webhook_result.rb +10 -10
  55. data/lib/mailslurp_client/models/pageable_object.rb +10 -10
  56. data/lib/mailslurp_client/models/phone_number_projection.rb +15 -15
  57. data/lib/mailslurp_client/models/sent_email_projection.rb +15 -15
  58. data/lib/mailslurp_client/models/sms_projection.rb +29 -29
  59. data/lib/mailslurp_client/models/template_projection.rb +17 -17
  60. data/lib/mailslurp_client/models/thread_projection.rb +31 -31
  61. data/lib/mailslurp_client/models/tracking_pixel_projection.rb +15 -15
  62. data/lib/mailslurp_client/models/unknown_missed_email_projection.rb +10 -10
  63. data/lib/mailslurp_client/models/webhook_projection.rb +25 -25
  64. data/lib/mailslurp_client/version.rb +1 -1
  65. data/lib/mailslurp_client.rb +2 -0
  66. metadata +4 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9b398e7045b90e30928b463516af9f65431f2cc5ebb18a27528deab99255aa9d
4
- data.tar.gz: 26cd43bb398610f7d180f83e210fe78ea09c6c2e08bb096f3e0ef200980860e9
3
+ metadata.gz: b7e902847cdf6480167b23c48a5d6b02a9fc77fb76d883c96b4ff58808129f3d
4
+ data.tar.gz: '087b4abe397b73ce83d4ff8a9e2d3f0c5fe84044d55a5f20f5f47dc8e37952dc'
5
5
  SHA512:
6
- metadata.gz: 05c7799cb7fcdd1ce7363f4129b96ee4833914309e402bafdfa2ecb9a60509d21ab463d27139b1a14b9021da5d9e56c0a8782afebc2d5d02edc435e7462d98c8
7
- data.tar.gz: 2967a297248f7dfe5db5304eda54de44ea3505fa93bcecd868b43df102bbf68484aa10bc06fd683c4b976e1533dcd8d7fb4ce51b27e69c121f2c5ea2f3b1b8d5
6
+ metadata.gz: cfd0bff6f857b76cbfb202b1abb002bd3589aab56b5f11ee93cd1dc6649269035f00430f51e7d61c5d5e234d534fdfbbf8eddee85f2876a97f778c0dbd7bac83
7
+ data.tar.gz: 471515abf130729e750ba28c6f72bafad55866c9c4a2bc1c261f792e72a2e210a5a61dc5838f6d4cbd9c74ba2ee76f870ac0b761429023821de86bf8b7919e6c
@@ -212,6 +212,67 @@ module MailSlurpClient
212
212
  return data, status_code, headers
213
213
  end
214
214
 
215
+ # Create a new mailbox if possible
216
+ # @param name [String] Inbox email address to create
217
+ # @param [Hash] opts the optional parameters
218
+ # @return [ImapServerMailboxResult]
219
+ def imap_server_mailbox(name, opts = {})
220
+ data, _status_code, _headers = imap_server_mailbox_with_http_info(name, opts)
221
+ data
222
+ end
223
+
224
+ # Create a new mailbox if possible
225
+ # @param name [String] Inbox email address to create
226
+ # @param [Hash] opts the optional parameters
227
+ # @return [Array<(ImapServerMailboxResult, Integer, Hash)>] ImapServerMailboxResult data, response status code and response headers
228
+ def imap_server_mailbox_with_http_info(name, opts = {})
229
+ if @api_client.config.debugging
230
+ @api_client.config.logger.debug 'Calling API: ImapControllerApi.imap_server_mailbox ...'
231
+ end
232
+ # verify the required parameter 'name' is set
233
+ if @api_client.config.client_side_validation && name.nil?
234
+ fail ArgumentError, "Missing the required parameter 'name' when calling ImapControllerApi.imap_server_mailbox"
235
+ end
236
+ # resource path
237
+ local_var_path = '/imap/server/mailbox'
238
+
239
+ # query parameters
240
+ query_params = opts[:query_params] || {}
241
+ query_params[:'name'] = name
242
+
243
+ # header parameters
244
+ header_params = opts[:header_params] || {}
245
+ # HTTP header 'Accept' (if needed)
246
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
247
+
248
+ # form parameters
249
+ form_params = opts[:form_params] || {}
250
+
251
+ # http body (model)
252
+ post_body = opts[:body]
253
+
254
+ # return_type
255
+ return_type = opts[:return_type] || 'ImapServerMailboxResult'
256
+
257
+ # auth_names
258
+ auth_names = opts[:auth_names] || ['API_KEY']
259
+
260
+ new_options = opts.merge(
261
+ :header_params => header_params,
262
+ :query_params => query_params,
263
+ :form_params => form_params,
264
+ :body => post_body,
265
+ :auth_names => auth_names,
266
+ :return_type => return_type
267
+ )
268
+
269
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
270
+ if @api_client.config.debugging
271
+ @api_client.config.logger.debug "API called: ImapControllerApi#imap_server_mailbox\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
272
+ end
273
+ return data, status_code, headers
274
+ end
275
+
215
276
  # Search messages in an inbox
216
277
  # @param imap_server_search_options [ImapServerSearchOptions]
217
278
  # @param [Hash] opts the optional parameters
@@ -2550,6 +2550,69 @@ module MailSlurpClient
2550
2550
  return data, status_code, headers
2551
2551
  end
2552
2552
 
2553
+ # Is email address available
2554
+ # Returns whether an email address is available
2555
+ # @param email_address [String]
2556
+ # @param [Hash] opts the optional parameters
2557
+ # @return [EmailAvailableResult]
2558
+ def is_email_address_available(email_address, opts = {})
2559
+ data, _status_code, _headers = is_email_address_available_with_http_info(email_address, opts)
2560
+ data
2561
+ end
2562
+
2563
+ # Is email address available
2564
+ # Returns whether an email address is available
2565
+ # @param email_address [String]
2566
+ # @param [Hash] opts the optional parameters
2567
+ # @return [Array<(EmailAvailableResult, Integer, Hash)>] EmailAvailableResult data, response status code and response headers
2568
+ def is_email_address_available_with_http_info(email_address, opts = {})
2569
+ if @api_client.config.debugging
2570
+ @api_client.config.logger.debug 'Calling API: InboxControllerApi.is_email_address_available ...'
2571
+ end
2572
+ # verify the required parameter 'email_address' is set
2573
+ if @api_client.config.client_side_validation && email_address.nil?
2574
+ fail ArgumentError, "Missing the required parameter 'email_address' when calling InboxControllerApi.is_email_address_available"
2575
+ end
2576
+ # resource path
2577
+ local_var_path = '/inboxes/available'
2578
+
2579
+ # query parameters
2580
+ query_params = opts[:query_params] || {}
2581
+ query_params[:'emailAddress'] = email_address
2582
+
2583
+ # header parameters
2584
+ header_params = opts[:header_params] || {}
2585
+ # HTTP header 'Accept' (if needed)
2586
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
2587
+
2588
+ # form parameters
2589
+ form_params = opts[:form_params] || {}
2590
+
2591
+ # http body (model)
2592
+ post_body = opts[:body]
2593
+
2594
+ # return_type
2595
+ return_type = opts[:return_type] || 'EmailAvailableResult'
2596
+
2597
+ # auth_names
2598
+ auth_names = opts[:auth_names] || ['API_KEY']
2599
+
2600
+ new_options = opts.merge(
2601
+ :header_params => header_params,
2602
+ :query_params => query_params,
2603
+ :form_params => form_params,
2604
+ :body => post_body,
2605
+ :auth_names => auth_names,
2606
+ :return_type => return_type
2607
+ )
2608
+
2609
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
2610
+ if @api_client.config.debugging
2611
+ @api_client.config.logger.debug "API called: InboxControllerApi#is_email_address_available\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2612
+ end
2613
+ return data, status_code, headers
2614
+ end
2615
+
2553
2616
  # List inbox rulesets
2554
2617
  # List all rulesets attached to an inbox
2555
2618
  # @param inbox_id [String]
@@ -15,18 +15,18 @@ require 'date'
15
15
  module MailSlurpClient
16
16
  # Representation of a alias
17
17
  class AliasProjection
18
- attr_accessor :email_address
18
+ attr_accessor :created_at
19
+
20
+ attr_accessor :updated_at
19
21
 
20
22
  attr_accessor :inbox_id
21
23
 
24
+ attr_accessor :email_address
25
+
22
26
  attr_accessor :user_id
23
27
 
24
28
  attr_accessor :use_threads
25
29
 
26
- attr_accessor :created_at
27
-
28
- attr_accessor :updated_at
29
-
30
30
  attr_accessor :name
31
31
 
32
32
  attr_accessor :id
@@ -34,12 +34,12 @@ 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',
37
+ :'created_at' => :'createdAt',
38
+ :'updated_at' => :'updatedAt',
38
39
  :'inbox_id' => :'inboxId',
40
+ :'email_address' => :'emailAddress',
39
41
  :'user_id' => :'userId',
40
42
  :'use_threads' => :'useThreads',
41
- :'created_at' => :'createdAt',
42
- :'updated_at' => :'updatedAt',
43
43
  :'name' => :'name',
44
44
  :'id' => :'id'
45
45
  }
@@ -48,12 +48,12 @@ module MailSlurpClient
48
48
  # Attribute type mapping.
49
49
  def self.openapi_types
50
50
  {
51
- :'email_address' => :'String',
51
+ :'created_at' => :'DateTime',
52
+ :'updated_at' => :'DateTime',
52
53
  :'inbox_id' => :'String',
54
+ :'email_address' => :'String',
53
55
  :'user_id' => :'String',
54
56
  :'use_threads' => :'Boolean',
55
- :'created_at' => :'DateTime',
56
- :'updated_at' => :'DateTime',
57
57
  :'name' => :'String',
58
58
  :'id' => :'String'
59
59
  }
@@ -80,14 +80,22 @@ 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?(:'created_at')
84
+ self.created_at = attributes[:'created_at']
85
+ end
86
+
87
+ if attributes.key?(:'updated_at')
88
+ self.updated_at = attributes[:'updated_at']
85
89
  end
86
90
 
87
91
  if attributes.key?(:'inbox_id')
88
92
  self.inbox_id = attributes[:'inbox_id']
89
93
  end
90
94
 
95
+ if attributes.key?(:'email_address')
96
+ self.email_address = attributes[:'email_address']
97
+ end
98
+
91
99
  if attributes.key?(:'user_id')
92
100
  self.user_id = attributes[:'user_id']
93
101
  end
@@ -96,14 +104,6 @@ module MailSlurpClient
96
104
  self.use_threads = attributes[:'use_threads']
97
105
  end
98
106
 
99
- if attributes.key?(:'created_at')
100
- self.created_at = attributes[:'created_at']
101
- end
102
-
103
- if attributes.key?(:'updated_at')
104
- self.updated_at = attributes[:'updated_at']
105
- end
106
-
107
107
  if attributes.key?(:'name')
108
108
  self.name = attributes[:'name']
109
109
  end
@@ -117,24 +117,24 @@ 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 @created_at.nil?
121
+ invalid_properties.push('invalid value for "created_at", created_at 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.')
124
+ if @updated_at.nil?
125
+ invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
126
126
  end
127
127
 
128
- if @user_id.nil?
129
- invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
128
+ if @inbox_id.nil?
129
+ invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
130
130
  end
131
131
 
132
- if @created_at.nil?
133
- invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
132
+ if @email_address.nil?
133
+ invalid_properties.push('invalid value for "email_address", email_address cannot be nil.')
134
134
  end
135
135
 
136
- if @updated_at.nil?
137
- invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
136
+ if @user_id.nil?
137
+ invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
138
138
  end
139
139
 
140
140
  if @id.nil?
@@ -147,11 +147,11 @@ 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 @inbox_id.nil?
152
- return false if @user_id.nil?
153
150
  return false if @created_at.nil?
154
151
  return false if @updated_at.nil?
152
+ return false if @inbox_id.nil?
153
+ return false if @email_address.nil?
154
+ return false if @user_id.nil?
155
155
  return false if @id.nil?
156
156
  true
157
157
  end
@@ -161,12 +161,12 @@ 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 &&
164
+ created_at == o.created_at &&
165
+ updated_at == o.updated_at &&
165
166
  inbox_id == o.inbox_id &&
167
+ email_address == o.email_address &&
166
168
  user_id == o.user_id &&
167
169
  use_threads == o.use_threads &&
168
- created_at == o.created_at &&
169
- updated_at == o.updated_at &&
170
170
  name == o.name &&
171
171
  id == o.id
172
172
  end
@@ -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, inbox_id, user_id, use_threads, created_at, updated_at, name, id].hash
183
+ [created_at, updated_at, inbox_id, email_address, user_id, use_threads, name, id].hash
184
184
  end
185
185
 
186
186
  # Builds the object from hash
@@ -15,6 +15,10 @@ require 'date'
15
15
  module MailSlurpClient
16
16
  # Email attachment data
17
17
  class AttachmentProjection
18
+ attr_accessor :created_at
19
+
20
+ attr_accessor :updated_at
21
+
18
22
  attr_accessor :user_id
19
23
 
20
24
  # Content ID of attachment.
@@ -23,10 +27,6 @@ module MailSlurpClient
23
27
  # Attachment ID
24
28
  attr_accessor :attachment_id
25
29
 
26
- attr_accessor :created_at
27
-
28
- attr_accessor :updated_at
29
-
30
30
  attr_accessor :name
31
31
 
32
32
  # Content length of attachment in bytes
@@ -38,11 +38,11 @@ module MailSlurpClient
38
38
  # Attribute mapping from ruby-style variable name to JSON key.
39
39
  def self.attribute_map
40
40
  {
41
+ :'created_at' => :'createdAt',
42
+ :'updated_at' => :'updatedAt',
41
43
  :'user_id' => :'userId',
42
44
  :'content_id' => :'contentId',
43
45
  :'attachment_id' => :'attachmentId',
44
- :'created_at' => :'createdAt',
45
- :'updated_at' => :'updatedAt',
46
46
  :'name' => :'name',
47
47
  :'content_length' => :'contentLength',
48
48
  :'content_type' => :'contentType'
@@ -52,11 +52,11 @@ module MailSlurpClient
52
52
  # Attribute type mapping.
53
53
  def self.openapi_types
54
54
  {
55
+ :'created_at' => :'DateTime',
56
+ :'updated_at' => :'DateTime',
55
57
  :'user_id' => :'String',
56
58
  :'content_id' => :'String',
57
59
  :'attachment_id' => :'String',
58
- :'created_at' => :'DateTime',
59
- :'updated_at' => :'DateTime',
60
60
  :'name' => :'String',
61
61
  :'content_length' => :'Integer',
62
62
  :'content_type' => :'String'
@@ -88,6 +88,14 @@ module MailSlurpClient
88
88
  h[k.to_sym] = v
89
89
  }
90
90
 
91
+ if attributes.key?(:'created_at')
92
+ self.created_at = attributes[:'created_at']
93
+ end
94
+
95
+ if attributes.key?(:'updated_at')
96
+ self.updated_at = attributes[:'updated_at']
97
+ end
98
+
91
99
  if attributes.key?(:'user_id')
92
100
  self.user_id = attributes[:'user_id']
93
101
  end
@@ -100,14 +108,6 @@ module MailSlurpClient
100
108
  self.attachment_id = attributes[:'attachment_id']
101
109
  end
102
110
 
103
- if attributes.key?(:'created_at')
104
- self.created_at = attributes[:'created_at']
105
- end
106
-
107
- if attributes.key?(:'updated_at')
108
- self.updated_at = attributes[:'updated_at']
109
- end
110
-
111
111
  if attributes.key?(:'name')
112
112
  self.name = attributes[:'name']
113
113
  end
@@ -125,14 +125,6 @@ module MailSlurpClient
125
125
  # @return Array for valid properties with the reasons
126
126
  def list_invalid_properties
127
127
  invalid_properties = Array.new
128
- if @user_id.nil?
129
- invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
130
- end
131
-
132
- if @attachment_id.nil?
133
- invalid_properties.push('invalid value for "attachment_id", attachment_id cannot be nil.')
134
- end
135
-
136
128
  if @created_at.nil?
137
129
  invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
138
130
  end
@@ -141,16 +133,24 @@ module MailSlurpClient
141
133
  invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
142
134
  end
143
135
 
136
+ if @user_id.nil?
137
+ invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
138
+ end
139
+
140
+ if @attachment_id.nil?
141
+ invalid_properties.push('invalid value for "attachment_id", attachment_id cannot be nil.')
142
+ end
143
+
144
144
  invalid_properties
145
145
  end
146
146
 
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 @user_id.nil?
151
- return false if @attachment_id.nil?
152
150
  return false if @created_at.nil?
153
151
  return false if @updated_at.nil?
152
+ return false if @user_id.nil?
153
+ return false if @attachment_id.nil?
154
154
  true
155
155
  end
156
156
 
@@ -159,11 +159,11 @@ module MailSlurpClient
159
159
  def ==(o)
160
160
  return true if self.equal?(o)
161
161
  self.class == o.class &&
162
+ created_at == o.created_at &&
163
+ updated_at == o.updated_at &&
162
164
  user_id == o.user_id &&
163
165
  content_id == o.content_id &&
164
166
  attachment_id == o.attachment_id &&
165
- created_at == o.created_at &&
166
- updated_at == o.updated_at &&
167
167
  name == o.name &&
168
168
  content_length == o.content_length &&
169
169
  content_type == o.content_type
@@ -178,7 +178,7 @@ module MailSlurpClient
178
178
  # Calculates hash code according to all attributes.
179
179
  # @return [Integer] Hash code
180
180
  def hash
181
- [user_id, content_id, attachment_id, created_at, updated_at, name, content_length, content_type].hash
181
+ [created_at, updated_at, user_id, content_id, attachment_id, name, content_length, content_type].hash
182
182
  end
183
183
 
184
184
  # Builds the object from hash
@@ -15,13 +15,13 @@ require 'date'
15
15
  module MailSlurpClient
16
16
  # Bounced email event
17
17
  class BounceProjection
18
- attr_accessor :sender
18
+ attr_accessor :created_at
19
19
 
20
- attr_accessor :bounce_mta
20
+ attr_accessor :sender
21
21
 
22
22
  attr_accessor :bounce_type
23
23
 
24
- attr_accessor :created_at
24
+ attr_accessor :bounce_mta
25
25
 
26
26
  attr_accessor :subject
27
27
 
@@ -30,10 +30,10 @@ module MailSlurpClient
30
30
  # Attribute mapping from ruby-style variable name to JSON key.
31
31
  def self.attribute_map
32
32
  {
33
+ :'created_at' => :'createdAt',
33
34
  :'sender' => :'sender',
34
- :'bounce_mta' => :'bounceMta',
35
35
  :'bounce_type' => :'bounceType',
36
- :'created_at' => :'createdAt',
36
+ :'bounce_mta' => :'bounceMta',
37
37
  :'subject' => :'subject',
38
38
  :'id' => :'id'
39
39
  }
@@ -42,10 +42,10 @@ module MailSlurpClient
42
42
  # Attribute type mapping.
43
43
  def self.openapi_types
44
44
  {
45
+ :'created_at' => :'DateTime',
45
46
  :'sender' => :'String',
46
- :'bounce_mta' => :'String',
47
47
  :'bounce_type' => :'String',
48
- :'created_at' => :'DateTime',
48
+ :'bounce_mta' => :'String',
49
49
  :'subject' => :'String',
50
50
  :'id' => :'String'
51
51
  }
@@ -54,8 +54,8 @@ module MailSlurpClient
54
54
  # List of attributes with nullable: true
55
55
  def self.openapi_nullable
56
56
  Set.new([
57
- :'bounce_mta',
58
57
  :'bounce_type',
58
+ :'bounce_mta',
59
59
  :'subject',
60
60
  ])
61
61
  end
@@ -75,20 +75,20 @@ module MailSlurpClient
75
75
  h[k.to_sym] = v
76
76
  }
77
77
 
78
- if attributes.key?(:'sender')
79
- self.sender = attributes[:'sender']
78
+ if attributes.key?(:'created_at')
79
+ self.created_at = attributes[:'created_at']
80
80
  end
81
81
 
82
- if attributes.key?(:'bounce_mta')
83
- self.bounce_mta = attributes[:'bounce_mta']
82
+ if attributes.key?(:'sender')
83
+ self.sender = attributes[:'sender']
84
84
  end
85
85
 
86
86
  if attributes.key?(:'bounce_type')
87
87
  self.bounce_type = attributes[:'bounce_type']
88
88
  end
89
89
 
90
- if attributes.key?(:'created_at')
91
- self.created_at = attributes[:'created_at']
90
+ if attributes.key?(:'bounce_mta')
91
+ self.bounce_mta = attributes[:'bounce_mta']
92
92
  end
93
93
 
94
94
  if attributes.key?(:'subject')
@@ -104,22 +104,22 @@ module MailSlurpClient
104
104
  # @return Array for valid properties with the reasons
105
105
  def list_invalid_properties
106
106
  invalid_properties = Array.new
107
- if @sender.nil?
108
- invalid_properties.push('invalid value for "sender", sender cannot be nil.')
109
- end
110
-
111
107
  if @created_at.nil?
112
108
  invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
113
109
  end
114
110
 
111
+ if @sender.nil?
112
+ invalid_properties.push('invalid value for "sender", sender cannot be nil.')
113
+ end
114
+
115
115
  invalid_properties
116
116
  end
117
117
 
118
118
  # Check to see if the all the properties in the model are valid
119
119
  # @return true if the model is valid
120
120
  def valid?
121
- return false if @sender.nil?
122
121
  return false if @created_at.nil?
122
+ return false if @sender.nil?
123
123
  true
124
124
  end
125
125
 
@@ -128,10 +128,10 @@ module MailSlurpClient
128
128
  def ==(o)
129
129
  return true if self.equal?(o)
130
130
  self.class == o.class &&
131
+ created_at == o.created_at &&
131
132
  sender == o.sender &&
132
- bounce_mta == o.bounce_mta &&
133
133
  bounce_type == o.bounce_type &&
134
- created_at == o.created_at &&
134
+ bounce_mta == o.bounce_mta &&
135
135
  subject == o.subject &&
136
136
  id == o.id
137
137
  end
@@ -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
- [sender, bounce_mta, bounce_type, created_at, subject, id].hash
148
+ [created_at, sender, bounce_type, bounce_mta, subject, id].hash
149
149
  end
150
150
 
151
151
  # Builds the object from hash