mailslurp_client 15.11.1 → 15.12.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (43) hide show
  1. checksums.yaml +4 -4
  2. data/lib/mailslurp_client/api/api_user_controller_api.rb +74 -0
  3. data/lib/mailslurp_client/api/inbox_controller_api.rb +63 -0
  4. data/lib/mailslurp_client/api/template_controller_api.rb +124 -0
  5. data/lib/mailslurp_client/models/bounce_projection.rb +31 -4
  6. data/lib/mailslurp_client/models/{bounce_recipient.rb → bounce_recipient_projection.rb} +35 -36
  7. data/lib/mailslurp_client/models/bounced_email_dto.rb +19 -1
  8. data/lib/mailslurp_client/models/bounced_recipient_dto.rb +37 -1
  9. data/lib/mailslurp_client/models/email_projection.rb +10 -10
  10. data/lib/mailslurp_client/models/inbox_by_name_result.rb +221 -0
  11. data/lib/mailslurp_client/models/inbox_dto.rb +11 -1
  12. data/lib/mailslurp_client/models/page_alias.rb +10 -10
  13. data/lib/mailslurp_client/models/page_attachment_entity.rb +10 -10
  14. data/lib/mailslurp_client/models/page_bounced_email.rb +10 -10
  15. data/lib/mailslurp_client/models/page_bounced_recipients.rb +11 -11
  16. data/lib/mailslurp_client/models/page_contact_projection.rb +10 -10
  17. data/lib/mailslurp_client/models/page_email_preview.rb +10 -10
  18. data/lib/mailslurp_client/models/page_email_projection.rb +10 -10
  19. data/lib/mailslurp_client/models/page_email_validation_request.rb +10 -10
  20. data/lib/mailslurp_client/models/page_expired_inbox_record_projection.rb +10 -10
  21. data/lib/mailslurp_client/models/page_group_projection.rb +10 -10
  22. data/lib/mailslurp_client/models/page_inbox_forwarder_dto.rb +10 -10
  23. data/lib/mailslurp_client/models/page_inbox_projection.rb +10 -10
  24. data/lib/mailslurp_client/models/page_inbox_ruleset_dto.rb +10 -10
  25. data/lib/mailslurp_client/models/page_missed_email_projection.rb +10 -10
  26. data/lib/mailslurp_client/models/page_organization_inbox_projection.rb +10 -10
  27. data/lib/mailslurp_client/models/page_phone_number_projection.rb +10 -10
  28. data/lib/mailslurp_client/models/page_sent_email_projection.rb +16 -16
  29. data/lib/mailslurp_client/models/page_sent_email_with_queue_projection.rb +16 -16
  30. data/lib/mailslurp_client/models/page_sms_projection.rb +10 -10
  31. data/lib/mailslurp_client/models/page_template_projection.rb +10 -10
  32. data/lib/mailslurp_client/models/page_thread_projection.rb +10 -10
  33. data/lib/mailslurp_client/models/page_tracking_pixel_projection.rb +10 -10
  34. data/lib/mailslurp_client/models/page_unknown_missed_email_projection.rb +10 -10
  35. data/lib/mailslurp_client/models/page_webhook_projection.rb +10 -10
  36. data/lib/mailslurp_client/models/page_webhook_result.rb +10 -10
  37. data/lib/mailslurp_client/models/sent_email_projection.rb +24 -24
  38. data/lib/mailslurp_client/models/template_preview.rb +211 -0
  39. data/lib/mailslurp_client/models/tracking_pixel_projection.rb +13 -13
  40. data/lib/mailslurp_client/models/user_info_dto.rb +334 -0
  41. data/lib/mailslurp_client/version.rb +1 -1
  42. data/lib/mailslurp_client.rb +5 -1
  43. metadata +7 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8405ef6045794e6a9cc24dc15eb01813410bf4120aaec0f63b41d59c59097071
4
- data.tar.gz: b20cef3856ade796cf813a54c318d3c1168bada7543d9eac88c0314e01e1b180
3
+ metadata.gz: 32eea135d18b8fd70fc05ec1a964019736c8a2e4f8578cd76b48ed87426fed99
4
+ data.tar.gz: c5e7f4bf1cc835fbe7e7d5fcfae0199bc1b3640f304c1b99ac63dc2f3f429453
5
5
  SHA512:
6
- metadata.gz: d35ee5a2d41e2b48c77c42a8426dc1eaabb33259dc68cc9d51df09f324a9fa2b9ea3c787cea0804d485599c7b73f47f8d1ee3b30aa5c449412a76d1c60b3293c
7
- data.tar.gz: c6b0deb8bc5645ee744fe674ccbe18cab4884697dc78a881d7834c7ee1cf7333d3746d4539a4504e3b83bced66f145cbef35b7af1523f164fb04dd579b5c901f
6
+ metadata.gz: b3a33d9811ee03ce418624bf4ed12ef03b18c268c842f53bed6d161942a142ae2e8f1663002fd33c654445da6cce05082b4c1be1a861619c662c4f6d335ed263
7
+ data.tar.gz: 456e9cdb58128e69371419eba8a666b344447cf02f091559a74965a1c62a2e320823665c4b22c86a16c60173e29d36166728d1fd3a795c2b86d157ebdf5c7fc8
@@ -0,0 +1,74 @@
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 'cgi'
14
+
15
+ module MailSlurpClient
16
+ class ApiUserControllerApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+ # @param [Hash] opts the optional parameters
23
+ # @return [UserInfoDto]
24
+ def get_user_info(opts = {})
25
+ data, _status_code, _headers = get_user_info_with_http_info(opts)
26
+ data
27
+ end
28
+
29
+ # @param [Hash] opts the optional parameters
30
+ # @return [Array<(UserInfoDto, Integer, Hash)>] UserInfoDto data, response status code and response headers
31
+ def get_user_info_with_http_info(opts = {})
32
+ if @api_client.config.debugging
33
+ @api_client.config.logger.debug 'Calling API: ApiUserControllerApi.get_user_info ...'
34
+ end
35
+ # resource path
36
+ local_var_path = '/user/info'
37
+
38
+ # query parameters
39
+ query_params = opts[:query_params] || {}
40
+
41
+ # header parameters
42
+ header_params = opts[:header_params] || {}
43
+ # HTTP header 'Accept' (if needed)
44
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
45
+
46
+ # form parameters
47
+ form_params = opts[:form_params] || {}
48
+
49
+ # http body (model)
50
+ post_body = opts[:body]
51
+
52
+ # return_type
53
+ return_type = opts[:return_type] || 'UserInfoDto'
54
+
55
+ # auth_names
56
+ auth_names = opts[:auth_names] || ['API_KEY']
57
+
58
+ new_options = opts.merge(
59
+ :header_params => header_params,
60
+ :query_params => query_params,
61
+ :form_params => form_params,
62
+ :body => post_body,
63
+ :auth_names => auth_names,
64
+ :return_type => return_type
65
+ )
66
+
67
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
68
+ if @api_client.config.debugging
69
+ @api_client.config.logger.debug "API called: ApiUserControllerApi#get_user_info\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
70
+ end
71
+ return data, status_code, headers
72
+ end
73
+ end
74
+ end
@@ -966,6 +966,69 @@ module MailSlurpClient
966
966
  return data, status_code, headers
967
967
  end
968
968
 
969
+ # Search for an inbox with the given name
970
+ # Get a inbox result by name
971
+ # @param name [String]
972
+ # @param [Hash] opts the optional parameters
973
+ # @return [InboxByNameResult]
974
+ def get_inbox_by_name(name, opts = {})
975
+ data, _status_code, _headers = get_inbox_by_name_with_http_info(name, opts)
976
+ data
977
+ end
978
+
979
+ # Search for an inbox with the given name
980
+ # Get a inbox result by name
981
+ # @param name [String]
982
+ # @param [Hash] opts the optional parameters
983
+ # @return [Array<(InboxByNameResult, Integer, Hash)>] InboxByNameResult data, response status code and response headers
984
+ def get_inbox_by_name_with_http_info(name, opts = {})
985
+ if @api_client.config.debugging
986
+ @api_client.config.logger.debug 'Calling API: InboxControllerApi.get_inbox_by_name ...'
987
+ end
988
+ # verify the required parameter 'name' is set
989
+ if @api_client.config.client_side_validation && name.nil?
990
+ fail ArgumentError, "Missing the required parameter 'name' when calling InboxControllerApi.get_inbox_by_name"
991
+ end
992
+ # resource path
993
+ local_var_path = '/inboxes/byName'
994
+
995
+ # query parameters
996
+ query_params = opts[:query_params] || {}
997
+ query_params[:'name'] = name
998
+
999
+ # header parameters
1000
+ header_params = opts[:header_params] || {}
1001
+ # HTTP header 'Accept' (if needed)
1002
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
1003
+
1004
+ # form parameters
1005
+ form_params = opts[:form_params] || {}
1006
+
1007
+ # http body (model)
1008
+ post_body = opts[:body]
1009
+
1010
+ # return_type
1011
+ return_type = opts[:return_type] || 'InboxByNameResult'
1012
+
1013
+ # auth_names
1014
+ auth_names = opts[:auth_names] || ['API_KEY']
1015
+
1016
+ new_options = opts.merge(
1017
+ :header_params => header_params,
1018
+ :query_params => query_params,
1019
+ :form_params => form_params,
1020
+ :body => post_body,
1021
+ :auth_names => auth_names,
1022
+ :return_type => return_type
1023
+ )
1024
+
1025
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1026
+ if @api_client.config.debugging
1027
+ @api_client.config.logger.debug "API called: InboxControllerApi#get_inbox_by_name\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1028
+ end
1029
+ return data, status_code, headers
1030
+ end
1031
+
969
1032
  # Get total inbox count
970
1033
  # @param [Hash] opts the optional parameters
971
1034
  # @return [CountDto]
@@ -280,6 +280,130 @@ module MailSlurpClient
280
280
  return data, status_code, headers
281
281
  end
282
282
 
283
+ # Get template preview HTML
284
+ # Get email template preview with passed template variables in HTML format for browsers. Pass template variables as query params.
285
+ # @param template_id [String] Template ID
286
+ # @param [Hash] opts the optional parameters
287
+ # @return [String]
288
+ def get_template_preview_html(template_id, opts = {})
289
+ data, _status_code, _headers = get_template_preview_html_with_http_info(template_id, opts)
290
+ data
291
+ end
292
+
293
+ # Get template preview HTML
294
+ # Get email template preview with passed template variables in HTML format for browsers. Pass template variables as query params.
295
+ # @param template_id [String] Template ID
296
+ # @param [Hash] opts the optional parameters
297
+ # @return [Array<(String, Integer, Hash)>] String data, response status code and response headers
298
+ def get_template_preview_html_with_http_info(template_id, opts = {})
299
+ if @api_client.config.debugging
300
+ @api_client.config.logger.debug 'Calling API: TemplateControllerApi.get_template_preview_html ...'
301
+ end
302
+ # verify the required parameter 'template_id' is set
303
+ if @api_client.config.client_side_validation && template_id.nil?
304
+ fail ArgumentError, "Missing the required parameter 'template_id' when calling TemplateControllerApi.get_template_preview_html"
305
+ end
306
+ # resource path
307
+ local_var_path = '/templates/{templateId}/preview/html'.sub('{' + 'templateId' + '}', CGI.escape(template_id.to_s))
308
+
309
+ # query parameters
310
+ query_params = opts[:query_params] || {}
311
+
312
+ # header parameters
313
+ header_params = opts[:header_params] || {}
314
+ # HTTP header 'Accept' (if needed)
315
+ header_params['Accept'] = @api_client.select_header_accept(['text/html;charset=utf-8', 'text/html'])
316
+
317
+ # form parameters
318
+ form_params = opts[:form_params] || {}
319
+
320
+ # http body (model)
321
+ post_body = opts[:body]
322
+
323
+ # return_type
324
+ return_type = opts[:return_type] || 'String'
325
+
326
+ # auth_names
327
+ auth_names = opts[:auth_names] || ['API_KEY']
328
+
329
+ new_options = opts.merge(
330
+ :header_params => header_params,
331
+ :query_params => query_params,
332
+ :form_params => form_params,
333
+ :body => post_body,
334
+ :auth_names => auth_names,
335
+ :return_type => return_type
336
+ )
337
+
338
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
339
+ if @api_client.config.debugging
340
+ @api_client.config.logger.debug "API called: TemplateControllerApi#get_template_preview_html\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
341
+ end
342
+ return data, status_code, headers
343
+ end
344
+
345
+ # Get template preview Json
346
+ # Get email template preview with passed template variables in JSON format. Pass template variables as query params.
347
+ # @param template_id [String] Template ID
348
+ # @param [Hash] opts the optional parameters
349
+ # @return [TemplatePreview]
350
+ def get_template_preview_json(template_id, opts = {})
351
+ data, _status_code, _headers = get_template_preview_json_with_http_info(template_id, opts)
352
+ data
353
+ end
354
+
355
+ # Get template preview Json
356
+ # Get email template preview with passed template variables in JSON format. Pass template variables as query params.
357
+ # @param template_id [String] Template ID
358
+ # @param [Hash] opts the optional parameters
359
+ # @return [Array<(TemplatePreview, Integer, Hash)>] TemplatePreview data, response status code and response headers
360
+ def get_template_preview_json_with_http_info(template_id, opts = {})
361
+ if @api_client.config.debugging
362
+ @api_client.config.logger.debug 'Calling API: TemplateControllerApi.get_template_preview_json ...'
363
+ end
364
+ # verify the required parameter 'template_id' is set
365
+ if @api_client.config.client_side_validation && template_id.nil?
366
+ fail ArgumentError, "Missing the required parameter 'template_id' when calling TemplateControllerApi.get_template_preview_json"
367
+ end
368
+ # resource path
369
+ local_var_path = '/templates/{templateId}/preview/json'.sub('{' + 'templateId' + '}', CGI.escape(template_id.to_s))
370
+
371
+ # query parameters
372
+ query_params = opts[:query_params] || {}
373
+
374
+ # header parameters
375
+ header_params = opts[:header_params] || {}
376
+ # HTTP header 'Accept' (if needed)
377
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
378
+
379
+ # form parameters
380
+ form_params = opts[:form_params] || {}
381
+
382
+ # http body (model)
383
+ post_body = opts[:body]
384
+
385
+ # return_type
386
+ return_type = opts[:return_type] || 'TemplatePreview'
387
+
388
+ # auth_names
389
+ auth_names = opts[:auth_names] || ['API_KEY']
390
+
391
+ new_options = opts.merge(
392
+ :header_params => header_params,
393
+ :query_params => query_params,
394
+ :form_params => form_params,
395
+ :body => post_body,
396
+ :auth_names => auth_names,
397
+ :return_type => return_type
398
+ )
399
+
400
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
401
+ if @api_client.config.debugging
402
+ @api_client.config.logger.debug "API called: TemplateControllerApi#get_template_preview_json\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
403
+ end
404
+ return data, status_code, headers
405
+ end
406
+
283
407
  # List templates
284
408
  # Get all templates
285
409
  # @param [Hash] opts the optional parameters
@@ -19,14 +19,23 @@ module MailSlurpClient
19
19
 
20
20
  attr_accessor :sender
21
21
 
22
+ attr_accessor :subject
23
+
22
24
  attr_accessor :created_at
23
25
 
26
+ attr_accessor :bounce_type
27
+
28
+ attr_accessor :bounce_mta
29
+
24
30
  # Attribute mapping from ruby-style variable name to JSON key.
25
31
  def self.attribute_map
26
32
  {
27
33
  :'id' => :'id',
28
34
  :'sender' => :'sender',
29
- :'created_at' => :'createdAt'
35
+ :'subject' => :'subject',
36
+ :'created_at' => :'createdAt',
37
+ :'bounce_type' => :'bounceType',
38
+ :'bounce_mta' => :'bounceMta'
30
39
  }
31
40
  end
32
41
 
@@ -35,7 +44,10 @@ module MailSlurpClient
35
44
  {
36
45
  :'id' => :'String',
37
46
  :'sender' => :'String',
38
- :'created_at' => :'DateTime'
47
+ :'subject' => :'String',
48
+ :'created_at' => :'DateTime',
49
+ :'bounce_type' => :'String',
50
+ :'bounce_mta' => :'String'
39
51
  }
40
52
  end
41
53
 
@@ -68,9 +80,21 @@ module MailSlurpClient
68
80
  self.sender = attributes[:'sender']
69
81
  end
70
82
 
83
+ if attributes.key?(:'subject')
84
+ self.subject = attributes[:'subject']
85
+ end
86
+
71
87
  if attributes.key?(:'created_at')
72
88
  self.created_at = attributes[:'created_at']
73
89
  end
90
+
91
+ if attributes.key?(:'bounce_type')
92
+ self.bounce_type = attributes[:'bounce_type']
93
+ end
94
+
95
+ if attributes.key?(:'bounce_mta')
96
+ self.bounce_mta = attributes[:'bounce_mta']
97
+ end
74
98
  end
75
99
 
76
100
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -103,7 +127,10 @@ module MailSlurpClient
103
127
  self.class == o.class &&
104
128
  id == o.id &&
105
129
  sender == o.sender &&
106
- created_at == o.created_at
130
+ subject == o.subject &&
131
+ created_at == o.created_at &&
132
+ bounce_type == o.bounce_type &&
133
+ bounce_mta == o.bounce_mta
107
134
  end
108
135
 
109
136
  # @see the `==` method
@@ -115,7 +142,7 @@ module MailSlurpClient
115
142
  # Calculates hash code according to all attributes.
116
143
  # @return [Integer] Hash code
117
144
  def hash
118
- [id, sender, created_at].hash
145
+ [id, sender, subject, created_at, bounce_type, bounce_mta].hash
119
146
  end
120
147
 
121
148
  # Builds the object from hash
@@ -13,26 +13,29 @@ OpenAPI Generator version: 4.3.1
13
13
  require 'date'
14
14
 
15
15
  module MailSlurpClient
16
- # Bounced email recipient address
17
- class BounceRecipient
16
+ # Bounced recipient
17
+ class BounceRecipientProjection
18
18
  attr_accessor :id
19
19
 
20
- attr_accessor :user_id
20
+ attr_accessor :action
21
21
 
22
- attr_accessor :recipient
22
+ attr_accessor :status
23
+
24
+ attr_accessor :sent_email_id
23
25
 
24
26
  attr_accessor :created_at
25
27
 
26
- attr_accessor :updated_at
28
+ attr_accessor :recipient
27
29
 
28
30
  # Attribute mapping from ruby-style variable name to JSON key.
29
31
  def self.attribute_map
30
32
  {
31
33
  :'id' => :'id',
32
- :'user_id' => :'userId',
33
- :'recipient' => :'recipient',
34
+ :'action' => :'action',
35
+ :'status' => :'status',
36
+ :'sent_email_id' => :'sentEmailId',
34
37
  :'created_at' => :'createdAt',
35
- :'updated_at' => :'updatedAt'
38
+ :'recipient' => :'recipient'
36
39
  }
37
40
  end
38
41
 
@@ -40,10 +43,11 @@ module MailSlurpClient
40
43
  def self.openapi_types
41
44
  {
42
45
  :'id' => :'String',
43
- :'user_id' => :'String',
44
- :'recipient' => :'String',
46
+ :'action' => :'String',
47
+ :'status' => :'String',
48
+ :'sent_email_id' => :'String',
45
49
  :'created_at' => :'DateTime',
46
- :'updated_at' => :'DateTime'
50
+ :'recipient' => :'String'
47
51
  }
48
52
  end
49
53
 
@@ -57,13 +61,13 @@ module MailSlurpClient
57
61
  # @param [Hash] attributes Model attributes in the form of hash
58
62
  def initialize(attributes = {})
59
63
  if (!attributes.is_a?(Hash))
60
- fail ArgumentError, "The input argument (attributes) must be a hash in `MailSlurpClient::BounceRecipient` initialize method"
64
+ fail ArgumentError, "The input argument (attributes) must be a hash in `MailSlurpClient::BounceRecipientProjection` initialize method"
61
65
  end
62
66
 
63
67
  # check to see if the attribute exists and convert string to symbol for hash key
64
68
  attributes = attributes.each_with_object({}) { |(k, v), h|
65
69
  if (!self.class.attribute_map.key?(k.to_sym))
66
- fail ArgumentError, "`#{k}` is not a valid attribute in `MailSlurpClient::BounceRecipient`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
70
+ fail ArgumentError, "`#{k}` is not a valid attribute in `MailSlurpClient::BounceRecipientProjection`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
67
71
  end
68
72
  h[k.to_sym] = v
69
73
  }
@@ -72,20 +76,24 @@ module MailSlurpClient
72
76
  self.id = attributes[:'id']
73
77
  end
74
78
 
75
- if attributes.key?(:'user_id')
76
- self.user_id = attributes[:'user_id']
79
+ if attributes.key?(:'action')
80
+ self.action = attributes[:'action']
77
81
  end
78
82
 
79
- if attributes.key?(:'recipient')
80
- self.recipient = attributes[:'recipient']
83
+ if attributes.key?(:'status')
84
+ self.status = attributes[:'status']
85
+ end
86
+
87
+ if attributes.key?(:'sent_email_id')
88
+ self.sent_email_id = attributes[:'sent_email_id']
81
89
  end
82
90
 
83
91
  if attributes.key?(:'created_at')
84
92
  self.created_at = attributes[:'created_at']
85
93
  end
86
94
 
87
- if attributes.key?(:'updated_at')
88
- self.updated_at = attributes[:'updated_at']
95
+ if attributes.key?(:'recipient')
96
+ self.recipient = attributes[:'recipient']
89
97
  end
90
98
  end
91
99
 
@@ -93,20 +101,12 @@ module MailSlurpClient
93
101
  # @return Array for valid properties with the reasons
94
102
  def list_invalid_properties
95
103
  invalid_properties = Array.new
96
- if @id.nil?
97
- invalid_properties.push('invalid value for "id", id cannot be nil.')
98
- end
99
-
100
- if @recipient.nil?
101
- invalid_properties.push('invalid value for "recipient", recipient cannot be nil.')
102
- end
103
-
104
104
  if @created_at.nil?
105
105
  invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
106
106
  end
107
107
 
108
- if @updated_at.nil?
109
- invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
108
+ if @recipient.nil?
109
+ invalid_properties.push('invalid value for "recipient", recipient cannot be nil.')
110
110
  end
111
111
 
112
112
  invalid_properties
@@ -115,10 +115,8 @@ module MailSlurpClient
115
115
  # Check to see if the all the properties in the model are valid
116
116
  # @return true if the model is valid
117
117
  def valid?
118
- return false if @id.nil?
119
- return false if @recipient.nil?
120
118
  return false if @created_at.nil?
121
- return false if @updated_at.nil?
119
+ return false if @recipient.nil?
122
120
  true
123
121
  end
124
122
 
@@ -128,10 +126,11 @@ module MailSlurpClient
128
126
  return true if self.equal?(o)
129
127
  self.class == o.class &&
130
128
  id == o.id &&
131
- user_id == o.user_id &&
132
- recipient == o.recipient &&
129
+ action == o.action &&
130
+ status == o.status &&
131
+ sent_email_id == o.sent_email_id &&
133
132
  created_at == o.created_at &&
134
- updated_at == o.updated_at
133
+ recipient == o.recipient
135
134
  end
136
135
 
137
136
  # @see the `==` method
@@ -143,7 +142,7 @@ module MailSlurpClient
143
142
  # Calculates hash code according to all attributes.
144
143
  # @return [Integer] Hash code
145
144
  def hash
146
- [id, user_id, recipient, created_at, updated_at].hash
145
+ [id, action, status, sent_email_id, created_at, recipient].hash
147
146
  end
148
147
 
149
148
  # Builds the object from hash
@@ -33,6 +33,10 @@ module MailSlurpClient
33
33
 
34
34
  attr_accessor :bounce_sub_type
35
35
 
36
+ attr_accessor :sent_email_id
37
+
38
+ attr_accessor :subject
39
+
36
40
  attr_accessor :created_at
37
41
 
38
42
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -47,6 +51,8 @@ module MailSlurpClient
47
51
  :'bounce_type' => :'bounceType',
48
52
  :'bounce_recipients' => :'bounceRecipients',
49
53
  :'bounce_sub_type' => :'bounceSubType',
54
+ :'sent_email_id' => :'sentEmailId',
55
+ :'subject' => :'subject',
50
56
  :'created_at' => :'createdAt'
51
57
  }
52
58
  end
@@ -63,6 +69,8 @@ module MailSlurpClient
63
69
  :'bounce_type' => :'String',
64
70
  :'bounce_recipients' => :'Array<String>',
65
71
  :'bounce_sub_type' => :'String',
72
+ :'sent_email_id' => :'String',
73
+ :'subject' => :'String',
66
74
  :'created_at' => :'DateTime'
67
75
  }
68
76
  end
@@ -128,6 +136,14 @@ module MailSlurpClient
128
136
  self.bounce_sub_type = attributes[:'bounce_sub_type']
129
137
  end
130
138
 
139
+ if attributes.key?(:'sent_email_id')
140
+ self.sent_email_id = attributes[:'sent_email_id']
141
+ end
142
+
143
+ if attributes.key?(:'subject')
144
+ self.subject = attributes[:'subject']
145
+ end
146
+
131
147
  if attributes.key?(:'created_at')
132
148
  self.created_at = attributes[:'created_at']
133
149
  end
@@ -180,6 +196,8 @@ module MailSlurpClient
180
196
  bounce_type == o.bounce_type &&
181
197
  bounce_recipients == o.bounce_recipients &&
182
198
  bounce_sub_type == o.bounce_sub_type &&
199
+ sent_email_id == o.sent_email_id &&
200
+ subject == o.subject &&
183
201
  created_at == o.created_at
184
202
  end
185
203
 
@@ -192,7 +210,7 @@ module MailSlurpClient
192
210
  # Calculates hash code according to all attributes.
193
211
  # @return [Integer] Hash code
194
212
  def hash
195
- [id, user_id, notification_type, sent_to_recipients, sender, bounce_mta, bounce_type, bounce_recipients, bounce_sub_type, created_at].hash
213
+ [id, user_id, notification_type, sent_to_recipients, sender, bounce_mta, bounce_type, bounce_recipients, bounce_sub_type, sent_email_id, subject, created_at].hash
196
214
  end
197
215
 
198
216
  # Builds the object from hash
@@ -19,8 +19,16 @@ module MailSlurpClient
19
19
 
20
20
  attr_accessor :user_id
21
21
 
22
+ attr_accessor :sent_email_id
23
+
22
24
  attr_accessor :recipient
23
25
 
26
+ attr_accessor :diagnostic_code
27
+
28
+ attr_accessor :action
29
+
30
+ attr_accessor :status
31
+
24
32
  attr_accessor :created_at
25
33
 
26
34
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -28,7 +36,11 @@ module MailSlurpClient
28
36
  {
29
37
  :'id' => :'id',
30
38
  :'user_id' => :'userId',
39
+ :'sent_email_id' => :'sentEmailId',
31
40
  :'recipient' => :'recipient',
41
+ :'diagnostic_code' => :'diagnosticCode',
42
+ :'action' => :'action',
43
+ :'status' => :'status',
32
44
  :'created_at' => :'createdAt'
33
45
  }
34
46
  end
@@ -38,7 +50,11 @@ module MailSlurpClient
38
50
  {
39
51
  :'id' => :'String',
40
52
  :'user_id' => :'String',
53
+ :'sent_email_id' => :'String',
41
54
  :'recipient' => :'String',
55
+ :'diagnostic_code' => :'String',
56
+ :'action' => :'String',
57
+ :'status' => :'String',
42
58
  :'created_at' => :'DateTime'
43
59
  }
44
60
  end
@@ -72,10 +88,26 @@ module MailSlurpClient
72
88
  self.user_id = attributes[:'user_id']
73
89
  end
74
90
 
91
+ if attributes.key?(:'sent_email_id')
92
+ self.sent_email_id = attributes[:'sent_email_id']
93
+ end
94
+
75
95
  if attributes.key?(:'recipient')
76
96
  self.recipient = attributes[:'recipient']
77
97
  end
78
98
 
99
+ if attributes.key?(:'diagnostic_code')
100
+ self.diagnostic_code = attributes[:'diagnostic_code']
101
+ end
102
+
103
+ if attributes.key?(:'action')
104
+ self.action = attributes[:'action']
105
+ end
106
+
107
+ if attributes.key?(:'status')
108
+ self.status = attributes[:'status']
109
+ end
110
+
79
111
  if attributes.key?(:'created_at')
80
112
  self.created_at = attributes[:'created_at']
81
113
  end
@@ -111,7 +143,11 @@ module MailSlurpClient
111
143
  self.class == o.class &&
112
144
  id == o.id &&
113
145
  user_id == o.user_id &&
146
+ sent_email_id == o.sent_email_id &&
114
147
  recipient == o.recipient &&
148
+ diagnostic_code == o.diagnostic_code &&
149
+ action == o.action &&
150
+ status == o.status &&
115
151
  created_at == o.created_at
116
152
  end
117
153
 
@@ -124,7 +160,7 @@ module MailSlurpClient
124
160
  # Calculates hash code according to all attributes.
125
161
  # @return [Integer] Hash code
126
162
  def hash
127
- [id, user_id, recipient, created_at].hash
163
+ [id, user_id, sent_email_id, recipient, diagnostic_code, action, status, created_at].hash
128
164
  end
129
165
 
130
166
  # Builds the object from hash