mailslurp_client 15.19.11 → 15.19.13

Sign up to get free protection for your applications and to get access to all the features.
Files changed (30) hide show
  1. checksums.yaml +4 -4
  2. data/lib/mailslurp_client/api/email_controller_api.rb +65 -2
  3. data/lib/mailslurp_client/api/imap_controller_api.rb +64 -0
  4. data/lib/mailslurp_client/api/inbox_controller_api.rb +57 -0
  5. data/lib/mailslurp_client/models/alias_projection.rb +36 -36
  6. data/lib/mailslurp_client/models/attachment_projection.rb +29 -29
  7. data/lib/mailslurp_client/models/bounce_projection.rb +22 -22
  8. data/lib/mailslurp_client/models/bounce_recipient_projection.rb +15 -15
  9. data/lib/mailslurp_client/models/connector_projection.rb +27 -27
  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 +15 -15
  13. data/lib/mailslurp_client/models/expired_inbox_record_projection.rb +15 -15
  14. data/lib/mailslurp_client/models/imap_email_projection.rb +15 -15
  15. data/lib/mailslurp_client/models/imap_server_get_result.rb +206 -0
  16. data/lib/mailslurp_client/models/inbox_forwarder_event_projection.rb +17 -17
  17. data/lib/mailslurp_client/models/inbox_replier_event_projection.rb +20 -20
  18. data/lib/mailslurp_client/models/list_unsubscribe_recipient_projection.rb +15 -15
  19. data/lib/mailslurp_client/models/missed_email_projection.rb +10 -10
  20. data/lib/mailslurp_client/models/phone_number_projection.rb +15 -15
  21. data/lib/mailslurp_client/models/sent_email_projection.rb +29 -29
  22. data/lib/mailslurp_client/models/sms_projection.rb +29 -29
  23. data/lib/mailslurp_client/models/template_projection.rb +17 -17
  24. data/lib/mailslurp_client/models/thread_projection.rb +41 -41
  25. data/lib/mailslurp_client/models/tracking_pixel_projection.rb +27 -27
  26. data/lib/mailslurp_client/models/unknown_missed_email_projection.rb +10 -10
  27. data/lib/mailslurp_client/models/webhook_projection.rb +25 -25
  28. data/lib/mailslurp_client/version.rb +1 -1
  29. data/lib/mailslurp_client.rb +1 -0
  30. metadata +3 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 67992a3536618cbe458f5a6df45f267c84c8ccf2098c6865e5857580d16ca37a
4
- data.tar.gz: 16a3f043c05995aaba6068d3e2950da656a53ccfd074781a39ad9cd18f72076d
3
+ metadata.gz: 4acb145f88af1078f8631a5eb9300cd6ff9ef841a1f9189cc31623310cb7319e
4
+ data.tar.gz: 4ef3e3016135270de2c58390cd23b6d87478452f63a2288b026d940253d05817
5
5
  SHA512:
6
- metadata.gz: e754e6552af4301f81c18f162fcdf71a9977f87a49c2885e44a4e730576933a6152d832a82efc297208a1b1e5cea8403ab477e09362006b8b6cba05d37b1dca6
7
- data.tar.gz: 71db8d8c2167809143108bc82b8b2b9695911c0991cd6c7f4ee8a80b11f18cbc505dbf19eb94581118e5f3ca9db97e2754a4d51e652679ab90abbac507907629
6
+ metadata.gz: b0cdd13689926f8394089b5abb4072cd37714926cca8f6138c17b4e3559d3d30bb7c9be253e59e2e653d656126f5d8e2305518d02fd51b90c7812af8d21a419b
7
+ data.tar.gz: cc8293b566178ddd66b215cf373a3cbe3e801789d38db0f8f3daa10904e41a84ab8ad5c6f74041de34434033e1478db2aee7a81ff6cf4712f870189b2754ae84
@@ -2293,6 +2293,7 @@ module MailSlurpClient
2293
2293
  # Get unread email count
2294
2294
  # Get number of emails unread. Unread means has not been viewed in dashboard or returned in an email API response
2295
2295
  # @param [Hash] opts the optional parameters
2296
+ # @option opts [String] :inbox_id Optional inbox ID filter
2296
2297
  # @return [UnreadCount]
2297
2298
  def get_unread_email_count(opts = {})
2298
2299
  data, _status_code, _headers = get_unread_email_count_with_http_info(opts)
@@ -2302,6 +2303,7 @@ module MailSlurpClient
2302
2303
  # Get unread email count
2303
2304
  # Get number of emails unread. Unread means has not been viewed in dashboard or returned in an email API response
2304
2305
  # @param [Hash] opts the optional parameters
2306
+ # @option opts [String] :inbox_id Optional inbox ID filter
2305
2307
  # @return [Array<(UnreadCount, Integer, Hash)>] UnreadCount data, response status code and response headers
2306
2308
  def get_unread_email_count_with_http_info(opts = {})
2307
2309
  if @api_client.config.debugging
@@ -2312,6 +2314,7 @@ module MailSlurpClient
2312
2314
 
2313
2315
  # query parameters
2314
2316
  query_params = opts[:query_params] || {}
2317
+ query_params[:'inboxId'] = opts[:'inbox_id'] if !opts[:'inbox_id'].nil?
2315
2318
 
2316
2319
  # header parameters
2317
2320
  header_params = opts[:header_params] || {}
@@ -2346,7 +2349,67 @@ module MailSlurpClient
2346
2349
  return data, status_code, headers
2347
2350
  end
2348
2351
 
2349
- # Mark an email as read on unread
2352
+ # Mark all emails as read or unread
2353
+ # Marks all emails as read or unread. Pass boolean read flag to set value. This is useful if you want to read an email but keep it as unread
2354
+ # @param [Hash] opts the optional parameters
2355
+ # @option opts [Boolean] :read What value to assign to email read property. Default true. (default to true)
2356
+ # @option opts [String] :inbox_id Optional inbox ID filter
2357
+ # @return [nil]
2358
+ def mark_all_as_read(opts = {})
2359
+ mark_all_as_read_with_http_info(opts)
2360
+ nil
2361
+ end
2362
+
2363
+ # Mark all emails as read or unread
2364
+ # Marks all emails as read or unread. Pass boolean read flag to set value. This is useful if you want to read an email but keep it as unread
2365
+ # @param [Hash] opts the optional parameters
2366
+ # @option opts [Boolean] :read What value to assign to email read property. Default true.
2367
+ # @option opts [String] :inbox_id Optional inbox ID filter
2368
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
2369
+ def mark_all_as_read_with_http_info(opts = {})
2370
+ if @api_client.config.debugging
2371
+ @api_client.config.logger.debug 'Calling API: EmailControllerApi.mark_all_as_read ...'
2372
+ end
2373
+ # resource path
2374
+ local_var_path = '/emails/read'
2375
+
2376
+ # query parameters
2377
+ query_params = opts[:query_params] || {}
2378
+ query_params[:'read'] = opts[:'read'] if !opts[:'read'].nil?
2379
+ query_params[:'inboxId'] = opts[:'inbox_id'] if !opts[:'inbox_id'].nil?
2380
+
2381
+ # header parameters
2382
+ header_params = opts[:header_params] || {}
2383
+
2384
+ # form parameters
2385
+ form_params = opts[:form_params] || {}
2386
+
2387
+ # http body (model)
2388
+ post_body = opts[:body]
2389
+
2390
+ # return_type
2391
+ return_type = opts[:return_type]
2392
+
2393
+ # auth_names
2394
+ auth_names = opts[:auth_names] || ['API_KEY']
2395
+
2396
+ new_options = opts.merge(
2397
+ :header_params => header_params,
2398
+ :query_params => query_params,
2399
+ :form_params => form_params,
2400
+ :body => post_body,
2401
+ :auth_names => auth_names,
2402
+ :return_type => return_type
2403
+ )
2404
+
2405
+ data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
2406
+ if @api_client.config.debugging
2407
+ @api_client.config.logger.debug "API called: EmailControllerApi#mark_all_as_read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2408
+ end
2409
+ return data, status_code, headers
2410
+ end
2411
+
2412
+ # Mark an email as read or unread
2350
2413
  # Marks an email as read or unread. Pass boolean read flag to set value. This is useful if you want to read an email but keep it as unread
2351
2414
  # @param email_id [String]
2352
2415
  # @param [Hash] opts the optional parameters
@@ -2357,7 +2420,7 @@ module MailSlurpClient
2357
2420
  data
2358
2421
  end
2359
2422
 
2360
- # Mark an email as read on unread
2423
+ # Mark an email as read or unread
2361
2424
  # Marks an email as read or unread. Pass boolean read flag to set value. This is useful if you want to read an email but keep it as unread
2362
2425
  # @param email_id [String]
2363
2426
  # @param [Hash] opts the optional parameters
@@ -83,6 +83,70 @@ module MailSlurpClient
83
83
  return data, status_code, headers
84
84
  end
85
85
 
86
+ # Get a message by email ID
87
+ # @param email_id [String] Email ID to get
88
+ # @param [Hash] opts the optional parameters
89
+ # @option opts [String] :inbox_id Inbox ID to search
90
+ # @return [ImapServerGetResult]
91
+ def imap_server_get(email_id, opts = {})
92
+ data, _status_code, _headers = imap_server_get_with_http_info(email_id, opts)
93
+ data
94
+ end
95
+
96
+ # Get a message by email ID
97
+ # @param email_id [String] Email ID to get
98
+ # @param [Hash] opts the optional parameters
99
+ # @option opts [String] :inbox_id Inbox ID to search
100
+ # @return [Array<(ImapServerGetResult, Integer, Hash)>] ImapServerGetResult data, response status code and response headers
101
+ def imap_server_get_with_http_info(email_id, opts = {})
102
+ if @api_client.config.debugging
103
+ @api_client.config.logger.debug 'Calling API: ImapControllerApi.imap_server_get ...'
104
+ end
105
+ # verify the required parameter 'email_id' is set
106
+ if @api_client.config.client_side_validation && email_id.nil?
107
+ fail ArgumentError, "Missing the required parameter 'email_id' when calling ImapControllerApi.imap_server_get"
108
+ end
109
+ # resource path
110
+ local_var_path = '/imap/server/get'
111
+
112
+ # query parameters
113
+ query_params = opts[:query_params] || {}
114
+ query_params[:'emailId'] = email_id
115
+ query_params[:'inboxId'] = opts[:'inbox_id'] if !opts[:'inbox_id'].nil?
116
+
117
+ # header parameters
118
+ header_params = opts[:header_params] || {}
119
+ # HTTP header 'Accept' (if needed)
120
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
121
+
122
+ # form parameters
123
+ form_params = opts[:form_params] || {}
124
+
125
+ # http body (model)
126
+ post_body = opts[:body]
127
+
128
+ # return_type
129
+ return_type = opts[:return_type] || 'ImapServerGetResult'
130
+
131
+ # auth_names
132
+ auth_names = opts[:auth_names] || ['API_KEY']
133
+
134
+ new_options = opts.merge(
135
+ :header_params => header_params,
136
+ :query_params => query_params,
137
+ :form_params => form_params,
138
+ :body => post_body,
139
+ :auth_names => auth_names,
140
+ :return_type => return_type
141
+ )
142
+
143
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
144
+ if @api_client.config.debugging
145
+ @api_client.config.logger.debug "API called: ImapControllerApi#imap_server_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
146
+ end
147
+ return data, status_code, headers
148
+ end
149
+
86
150
  # List messages in an inbox
87
151
  # @param imap_server_list_options [ImapServerListOptions]
88
152
  # @param [Hash] opts the optional parameters
@@ -1433,6 +1433,63 @@ module MailSlurpClient
1433
1433
  return data, status_code, headers
1434
1434
  end
1435
1435
 
1436
+ # Get IMAP and SMTP access details in .env format
1437
+ # @param [Hash] opts the optional parameters
1438
+ # @option opts [String] :inbox_id Inbox ID
1439
+ # @return [String]
1440
+ def get_imap_smtp_access_env(opts = {})
1441
+ data, _status_code, _headers = get_imap_smtp_access_env_with_http_info(opts)
1442
+ data
1443
+ end
1444
+
1445
+ # Get IMAP and SMTP access details in .env format
1446
+ # @param [Hash] opts the optional parameters
1447
+ # @option opts [String] :inbox_id Inbox ID
1448
+ # @return [Array<(String, Integer, Hash)>] String data, response status code and response headers
1449
+ def get_imap_smtp_access_env_with_http_info(opts = {})
1450
+ if @api_client.config.debugging
1451
+ @api_client.config.logger.debug 'Calling API: InboxControllerApi.get_imap_smtp_access_env ...'
1452
+ end
1453
+ # resource path
1454
+ local_var_path = '/inboxes/imap-smtp-access/env'
1455
+
1456
+ # query parameters
1457
+ query_params = opts[:query_params] || {}
1458
+ query_params[:'inboxId'] = opts[:'inbox_id'] if !opts[:'inbox_id'].nil?
1459
+
1460
+ # header parameters
1461
+ header_params = opts[:header_params] || {}
1462
+ # HTTP header 'Accept' (if needed)
1463
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
1464
+
1465
+ # form parameters
1466
+ form_params = opts[:form_params] || {}
1467
+
1468
+ # http body (model)
1469
+ post_body = opts[:body]
1470
+
1471
+ # return_type
1472
+ return_type = opts[:return_type] || 'String'
1473
+
1474
+ # auth_names
1475
+ auth_names = opts[:auth_names] || ['API_KEY']
1476
+
1477
+ new_options = opts.merge(
1478
+ :header_params => header_params,
1479
+ :query_params => query_params,
1480
+ :form_params => form_params,
1481
+ :body => post_body,
1482
+ :auth_names => auth_names,
1483
+ :return_type => return_type
1484
+ )
1485
+
1486
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1487
+ if @api_client.config.debugging
1488
+ @api_client.config.logger.debug "API called: InboxControllerApi#get_imap_smtp_access_env\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1489
+ end
1490
+ return data, status_code, headers
1491
+ end
1492
+
1436
1493
  # Get Inbox. Returns properties of an inbox.
1437
1494
  # Returns an inbox's properties, including its email address and ID.
1438
1495
  # @param inbox_id [String]
@@ -15,17 +15,17 @@ require 'date'
15
15
  module MailSlurpClient
16
16
  # Representation of a alias
17
17
  class AliasProjection
18
- attr_accessor :created_at
18
+ attr_accessor :email_address
19
19
 
20
- attr_accessor :updated_at
20
+ attr_accessor :user_id
21
21
 
22
22
  attr_accessor :inbox_id
23
23
 
24
- attr_accessor :email_address
24
+ attr_accessor :use_threads
25
25
 
26
- attr_accessor :user_id
26
+ attr_accessor :created_at
27
27
 
28
- attr_accessor :use_threads
28
+ attr_accessor :updated_at
29
29
 
30
30
  attr_accessor :name
31
31
 
@@ -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
- :'created_at' => :'createdAt',
38
- :'updated_at' => :'updatedAt',
39
- :'inbox_id' => :'inboxId',
40
37
  :'email_address' => :'emailAddress',
41
38
  :'user_id' => :'userId',
39
+ :'inbox_id' => :'inboxId',
42
40
  :'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
- :'created_at' => :'DateTime',
52
- :'updated_at' => :'DateTime',
53
- :'inbox_id' => :'String',
54
51
  :'email_address' => :'String',
55
52
  :'user_id' => :'String',
53
+ :'inbox_id' => :'String',
56
54
  :'use_threads' => :'Boolean',
55
+ :'created_at' => :'DateTime',
56
+ :'updated_at' => :'DateTime',
57
57
  :'name' => :'String',
58
58
  :'id' => :'String'
59
59
  }
@@ -80,28 +80,28 @@ 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']
83
+ if attributes.key?(:'email_address')
84
+ self.email_address = attributes[:'email_address']
85
85
  end
86
86
 
87
- if attributes.key?(:'updated_at')
88
- self.updated_at = attributes[:'updated_at']
87
+ if attributes.key?(:'user_id')
88
+ self.user_id = attributes[:'user_id']
89
89
  end
90
90
 
91
91
  if attributes.key?(:'inbox_id')
92
92
  self.inbox_id = attributes[:'inbox_id']
93
93
  end
94
94
 
95
- if attributes.key?(:'email_address')
96
- self.email_address = attributes[:'email_address']
95
+ if attributes.key?(:'use_threads')
96
+ self.use_threads = attributes[:'use_threads']
97
97
  end
98
98
 
99
- if attributes.key?(:'user_id')
100
- self.user_id = attributes[:'user_id']
99
+ if attributes.key?(:'created_at')
100
+ self.created_at = attributes[:'created_at']
101
101
  end
102
102
 
103
- if attributes.key?(:'use_threads')
104
- self.use_threads = attributes[:'use_threads']
103
+ if attributes.key?(:'updated_at')
104
+ self.updated_at = attributes[:'updated_at']
105
105
  end
106
106
 
107
107
  if attributes.key?(:'name')
@@ -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 @created_at.nil?
121
- invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
120
+ if @email_address.nil?
121
+ invalid_properties.push('invalid value for "email_address", email_address cannot be nil.')
122
122
  end
123
123
 
124
- if @updated_at.nil?
125
- invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
124
+ if @user_id.nil?
125
+ invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
126
126
  end
127
127
 
128
128
  if @inbox_id.nil?
129
129
  invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
130
130
  end
131
131
 
132
- if @email_address.nil?
133
- invalid_properties.push('invalid value for "email_address", email_address cannot be nil.')
132
+ if @created_at.nil?
133
+ invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
134
134
  end
135
135
 
136
- if @user_id.nil?
137
- invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
136
+ if @updated_at.nil?
137
+ invalid_properties.push('invalid value for "updated_at", updated_at 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 @created_at.nil?
151
- return false if @updated_at.nil?
152
- return false if @inbox_id.nil?
153
150
  return false if @email_address.nil?
154
151
  return false if @user_id.nil?
152
+ return false if @inbox_id.nil?
153
+ return false if @created_at.nil?
154
+ return false if @updated_at.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
- created_at == o.created_at &&
165
- updated_at == o.updated_at &&
166
- inbox_id == o.inbox_id &&
167
164
  email_address == o.email_address &&
168
165
  user_id == o.user_id &&
166
+ inbox_id == o.inbox_id &&
169
167
  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
- [created_at, updated_at, inbox_id, email_address, user_id, use_threads, name, id].hash
183
+ [email_address, user_id, inbox_id, use_threads, created_at, updated_at, name, id].hash
184
184
  end
185
185
 
186
186
  # Builds the object from hash
@@ -15,10 +15,6 @@ 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
-
22
18
  attr_accessor :user_id
23
19
 
24
20
  # Content ID of attachment.
@@ -27,6 +23,10 @@ module MailSlurpClient
27
23
  # Attachment ID
28
24
  attr_accessor :attachment_id
29
25
 
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',
43
41
  :'user_id' => :'userId',
44
42
  :'content_id' => :'contentId',
45
43
  :'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',
57
55
  :'user_id' => :'String',
58
56
  :'content_id' => :'String',
59
57
  :'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,14 +88,6 @@ 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
-
99
91
  if attributes.key?(:'user_id')
100
92
  self.user_id = attributes[:'user_id']
101
93
  end
@@ -108,6 +100,14 @@ module MailSlurpClient
108
100
  self.attachment_id = attributes[:'attachment_id']
109
101
  end
110
102
 
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 @created_at.nil?
129
- invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
130
- end
131
-
132
- if @updated_at.nil?
133
- invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
134
- end
135
-
136
128
  if @user_id.nil?
137
129
  invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
138
130
  end
@@ -141,16 +133,24 @@ module MailSlurpClient
141
133
  invalid_properties.push('invalid value for "attachment_id", attachment_id cannot be nil.')
142
134
  end
143
135
 
136
+ if @created_at.nil?
137
+ invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
138
+ end
139
+
140
+ if @updated_at.nil?
141
+ invalid_properties.push('invalid value for "updated_at", updated_at 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 @created_at.nil?
151
- return false if @updated_at.nil?
152
150
  return false if @user_id.nil?
153
151
  return false if @attachment_id.nil?
152
+ return false if @created_at.nil?
153
+ return false if @updated_at.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 &&
164
162
  user_id == o.user_id &&
165
163
  content_id == o.content_id &&
166
164
  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
- [created_at, updated_at, user_id, content_id, attachment_id, name, content_length, content_type].hash
181
+ [user_id, content_id, attachment_id, created_at, updated_at, 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 :created_at
19
-
20
18
  attr_accessor :sender
21
19
 
20
+ attr_accessor :bounce_mta
21
+
22
22
  attr_accessor :bounce_type
23
23
 
24
- attr_accessor :bounce_mta
24
+ attr_accessor :created_at
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',
34
33
  :'sender' => :'sender',
35
- :'bounce_type' => :'bounceType',
36
34
  :'bounce_mta' => :'bounceMta',
35
+ :'bounce_type' => :'bounceType',
36
+ :'created_at' => :'createdAt',
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',
46
45
  :'sender' => :'String',
47
- :'bounce_type' => :'String',
48
46
  :'bounce_mta' => :'String',
47
+ :'bounce_type' => :'String',
48
+ :'created_at' => :'DateTime',
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_type',
58
57
  :'bounce_mta',
58
+ :'bounce_type',
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?(:'created_at')
79
- self.created_at = attributes[:'created_at']
80
- end
81
-
82
78
  if attributes.key?(:'sender')
83
79
  self.sender = attributes[:'sender']
84
80
  end
85
81
 
82
+ if attributes.key?(:'bounce_mta')
83
+ self.bounce_mta = attributes[:'bounce_mta']
84
+ end
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?(:'bounce_mta')
91
- self.bounce_mta = attributes[:'bounce_mta']
90
+ if attributes.key?(:'created_at')
91
+ self.created_at = attributes[:'created_at']
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 @created_at.nil?
108
- invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
109
- end
110
-
111
107
  if @sender.nil?
112
108
  invalid_properties.push('invalid value for "sender", sender cannot be nil.')
113
109
  end
114
110
 
111
+ if @created_at.nil?
112
+ invalid_properties.push('invalid value for "created_at", created_at 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 @created_at.nil?
122
121
  return false if @sender.nil?
122
+ return false if @created_at.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 &&
132
131
  sender == o.sender &&
133
- bounce_type == o.bounce_type &&
134
132
  bounce_mta == o.bounce_mta &&
133
+ bounce_type == o.bounce_type &&
134
+ created_at == o.created_at &&
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
- [created_at, sender, bounce_type, bounce_mta, subject, id].hash
148
+ [sender, bounce_mta, bounce_type, created_at, subject, id].hash
149
149
  end
150
150
 
151
151
  # Builds the object from hash