mailslurp_client 15.17.23 → 15.17.24

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 (62) hide show
  1. checksums.yaml +4 -4
  2. data/lib/mailslurp_client/api/email_controller_api.rb +69 -0
  3. data/lib/mailslurp_client/models/alias_projection.rb +28 -28
  4. data/lib/mailslurp_client/models/attachment_projection.rb +11 -11
  5. data/lib/mailslurp_client/models/bounce_projection.rb +17 -17
  6. data/lib/mailslurp_client/models/bounce_recipient_projection.rb +22 -22
  7. data/lib/mailslurp_client/models/connector_projection.rb +24 -24
  8. data/lib/mailslurp_client/models/connector_sync_event_projection.rb +15 -15
  9. data/lib/mailslurp_client/models/contact_projection.rb +10 -10
  10. data/lib/mailslurp_client/models/email_content_part_result.rb +207 -0
  11. data/lib/mailslurp_client/models/email_projection.rb +25 -25
  12. data/lib/mailslurp_client/models/expired_inbox_record_projection.rb +15 -15
  13. data/lib/mailslurp_client/models/inbox_forwarder_event_projection.rb +17 -17
  14. data/lib/mailslurp_client/models/inbox_replier_event_projection.rb +27 -27
  15. data/lib/mailslurp_client/models/list_unsubscribe_recipient_projection.rb +10 -10
  16. data/lib/mailslurp_client/models/missed_email_projection.rb +11 -11
  17. data/lib/mailslurp_client/models/page_alias.rb +17 -16
  18. data/lib/mailslurp_client/models/page_attachment_entity.rb +17 -16
  19. data/lib/mailslurp_client/models/page_bounced_email.rb +17 -16
  20. data/lib/mailslurp_client/models/page_bounced_recipients.rb +17 -16
  21. data/lib/mailslurp_client/models/page_complaint.rb +17 -16
  22. data/lib/mailslurp_client/models/page_connector.rb +17 -16
  23. data/lib/mailslurp_client/models/page_connector_sync_events.rb +17 -16
  24. data/lib/mailslurp_client/models/page_contact_projection.rb +17 -16
  25. data/lib/mailslurp_client/models/page_delivery_status.rb +17 -16
  26. data/lib/mailslurp_client/models/page_email_preview.rb +17 -16
  27. data/lib/mailslurp_client/models/page_email_projection.rb +12 -21
  28. data/lib/mailslurp_client/models/page_email_validation_request.rb +17 -16
  29. data/lib/mailslurp_client/models/page_expired_inbox_record_projection.rb +17 -16
  30. data/lib/mailslurp_client/models/page_group_projection.rb +17 -16
  31. data/lib/mailslurp_client/models/page_inbox_forwarder_dto.rb +17 -16
  32. data/lib/mailslurp_client/models/page_inbox_forwarder_events.rb +17 -16
  33. data/lib/mailslurp_client/models/page_inbox_projection.rb +17 -16
  34. data/lib/mailslurp_client/models/page_inbox_replier_dto.rb +17 -16
  35. data/lib/mailslurp_client/models/page_inbox_replier_events.rb +17 -16
  36. data/lib/mailslurp_client/models/page_inbox_ruleset_dto.rb +17 -16
  37. data/lib/mailslurp_client/models/page_list_unsubscribe_recipients.rb +17 -16
  38. data/lib/mailslurp_client/models/page_missed_email_projection.rb +17 -16
  39. data/lib/mailslurp_client/models/page_organization_inbox_projection.rb +17 -16
  40. data/lib/mailslurp_client/models/page_phone_number_projection.rb +17 -16
  41. data/lib/mailslurp_client/models/page_scheduled_jobs.rb +17 -16
  42. data/lib/mailslurp_client/models/page_sent_email_projection.rb +34 -69
  43. data/lib/mailslurp_client/models/page_sent_email_with_queue_projection.rb +34 -69
  44. data/lib/mailslurp_client/models/page_sms_projection.rb +17 -16
  45. data/lib/mailslurp_client/models/page_template_projection.rb +17 -16
  46. data/lib/mailslurp_client/models/page_thread_projection.rb +17 -16
  47. data/lib/mailslurp_client/models/page_tracking_pixel_projection.rb +17 -16
  48. data/lib/mailslurp_client/models/page_unknown_missed_email_projection.rb +17 -16
  49. data/lib/mailslurp_client/models/page_webhook_projection.rb +17 -16
  50. data/lib/mailslurp_client/models/page_webhook_result.rb +17 -16
  51. data/lib/mailslurp_client/models/phone_number_projection.rb +15 -15
  52. data/lib/mailslurp_client/models/send_with_queue_result.rb +0 -1
  53. data/lib/mailslurp_client/models/sent_email_projection.rb +30 -31
  54. data/lib/mailslurp_client/models/sms_projection.rb +29 -29
  55. data/lib/mailslurp_client/models/template_projection.rb +17 -17
  56. data/lib/mailslurp_client/models/thread_projection.rb +45 -45
  57. data/lib/mailslurp_client/models/tracking_pixel_projection.rb +24 -24
  58. data/lib/mailslurp_client/models/unknown_missed_email_projection.rb +13 -13
  59. data/lib/mailslurp_client/models/webhook_projection.rb +27 -27
  60. data/lib/mailslurp_client/version.rb +1 -1
  61. data/lib/mailslurp_client.rb +1 -0
  62. metadata +3 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 66bcc1b9c2023a0e7b55f5487e629d582a0521280f0bd1022cb22adc8492a174
4
- data.tar.gz: eaef14dc4fb39fc17cf7d83f3cfa5d22c3fd2b59eff8174ef1c8f079c28e64d8
3
+ metadata.gz: 99978a46a96b4204b28a127447fded7dff2c2b24080324f2fdad86bb9458af09
4
+ data.tar.gz: 73816834c85b73ad98beddc512609599d0eb427a21f26e162611fe45cf7bcdac
5
5
  SHA512:
6
- metadata.gz: 6de28c0aa93168651435a0f8fba67eab86b13a4673299e6f56943d9918e6ed2ca3785f6b0df27f59881e0c1b30d168961955df25500687d85967225e801060d9
7
- data.tar.gz: f200f52162b6aa2c90329f7dfb608b7869c48036196552701d9049206d5536640ea915a81567b758ad1c9a4c5ee322d4d3d4e647d91725d714d9bb1735fcf1a5
6
+ metadata.gz: 7b641786cc473ae378ec04d14c5161e2b9d91338f0f90aa14c92ed8c40bd88dd8b6c53c4679ab27ce426984dd3b78ec11072d517acb05a625645a2272206ad31
7
+ data.tar.gz: 67ab483b9f7cead055adfb4fbce09ff804bbfb58cde962bc639daefa48132ed376364ac4fd2369e2682628632c0af6665126eed167b8fe32c0082e9948bf9e11
@@ -998,6 +998,75 @@ module MailSlurpClient
998
998
  return data, status_code, headers
999
999
  end
1000
1000
 
1001
+ # Get email content part by content type
1002
+ # Get email body content parts from a multipart email message for a given content type
1003
+ # @param email_id [String] ID of email to match against
1004
+ # @param content_type [String] Content type
1005
+ # @param [Hash] opts the optional parameters
1006
+ # @return [EmailContentPartResult]
1007
+ def get_email_content_part(email_id, content_type, opts = {})
1008
+ data, _status_code, _headers = get_email_content_part_with_http_info(email_id, content_type, opts)
1009
+ data
1010
+ end
1011
+
1012
+ # Get email content part by content type
1013
+ # Get email body content parts from a multipart email message for a given content type
1014
+ # @param email_id [String] ID of email to match against
1015
+ # @param content_type [String] Content type
1016
+ # @param [Hash] opts the optional parameters
1017
+ # @return [Array<(EmailContentPartResult, Integer, Hash)>] EmailContentPartResult data, response status code and response headers
1018
+ def get_email_content_part_with_http_info(email_id, content_type, opts = {})
1019
+ if @api_client.config.debugging
1020
+ @api_client.config.logger.debug 'Calling API: EmailControllerApi.get_email_content_part ...'
1021
+ end
1022
+ # verify the required parameter 'email_id' is set
1023
+ if @api_client.config.client_side_validation && email_id.nil?
1024
+ fail ArgumentError, "Missing the required parameter 'email_id' when calling EmailControllerApi.get_email_content_part"
1025
+ end
1026
+ # verify the required parameter 'content_type' is set
1027
+ if @api_client.config.client_side_validation && content_type.nil?
1028
+ fail ArgumentError, "Missing the required parameter 'content_type' when calling EmailControllerApi.get_email_content_part"
1029
+ end
1030
+ # resource path
1031
+ local_var_path = '/emails/{emailId}/contentPart'.sub('{' + 'emailId' + '}', CGI.escape(email_id.to_s))
1032
+
1033
+ # query parameters
1034
+ query_params = opts[:query_params] || {}
1035
+ query_params[:'contentType'] = content_type
1036
+
1037
+ # header parameters
1038
+ header_params = opts[:header_params] || {}
1039
+ # HTTP header 'Accept' (if needed)
1040
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
1041
+
1042
+ # form parameters
1043
+ form_params = opts[:form_params] || {}
1044
+
1045
+ # http body (model)
1046
+ post_body = opts[:body]
1047
+
1048
+ # return_type
1049
+ return_type = opts[:return_type] || 'EmailContentPartResult'
1050
+
1051
+ # auth_names
1052
+ auth_names = opts[:auth_names] || ['API_KEY']
1053
+
1054
+ new_options = opts.merge(
1055
+ :header_params => header_params,
1056
+ :query_params => query_params,
1057
+ :form_params => form_params,
1058
+ :body => post_body,
1059
+ :auth_names => auth_names,
1060
+ :return_type => return_type
1061
+ )
1062
+
1063
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1064
+ if @api_client.config.debugging
1065
+ @api_client.config.logger.debug "API called: EmailControllerApi#get_email_content_part\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1066
+ end
1067
+ return data, status_code, headers
1068
+ end
1069
+
1001
1070
  # Get email count
1002
1071
  # @param [Hash] opts the optional parameters
1003
1072
  # @return [CountDto]
@@ -15,18 +15,18 @@ require 'date'
15
15
  module MailSlurpClient
16
16
  # Representation of a alias
17
17
  class AliasProjection
18
- attr_accessor :inbox_id
18
+ attr_accessor :email_address
19
19
 
20
20
  attr_accessor :user_id
21
21
 
22
- attr_accessor :email_address
22
+ attr_accessor :inbox_id
23
+
24
+ attr_accessor :use_threads
23
25
 
24
26
  attr_accessor :created_at
25
27
 
26
28
  attr_accessor :updated_at
27
29
 
28
- attr_accessor :use_threads
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
- :'inbox_id' => :'inboxId',
38
- :'user_id' => :'userId',
39
37
  :'email_address' => :'emailAddress',
38
+ :'user_id' => :'userId',
39
+ :'inbox_id' => :'inboxId',
40
+ :'use_threads' => :'useThreads',
40
41
  :'created_at' => :'createdAt',
41
42
  :'updated_at' => :'updatedAt',
42
- :'use_threads' => :'useThreads',
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
- :'inbox_id' => :'String',
52
- :'user_id' => :'String',
53
51
  :'email_address' => :'String',
52
+ :'user_id' => :'String',
53
+ :'inbox_id' => :'String',
54
+ :'use_threads' => :'Boolean',
54
55
  :'created_at' => :'DateTime',
55
56
  :'updated_at' => :'DateTime',
56
- :'use_threads' => :'Boolean',
57
57
  :'name' => :'String',
58
58
  :'id' => :'String'
59
59
  }
@@ -80,16 +80,20 @@ module MailSlurpClient
80
80
  h[k.to_sym] = v
81
81
  }
82
82
 
83
- if attributes.key?(:'inbox_id')
84
- self.inbox_id = attributes[:'inbox_id']
83
+ if attributes.key?(:'email_address')
84
+ self.email_address = attributes[:'email_address']
85
85
  end
86
86
 
87
87
  if attributes.key?(:'user_id')
88
88
  self.user_id = attributes[:'user_id']
89
89
  end
90
90
 
91
- if attributes.key?(:'email_address')
92
- self.email_address = attributes[:'email_address']
91
+ if attributes.key?(:'inbox_id')
92
+ self.inbox_id = attributes[:'inbox_id']
93
+ end
94
+
95
+ if attributes.key?(:'use_threads')
96
+ self.use_threads = attributes[:'use_threads']
93
97
  end
94
98
 
95
99
  if attributes.key?(:'created_at')
@@ -100,10 +104,6 @@ module MailSlurpClient
100
104
  self.updated_at = attributes[:'updated_at']
101
105
  end
102
106
 
103
- if attributes.key?(:'use_threads')
104
- self.use_threads = attributes[:'use_threads']
105
- end
106
-
107
107
  if attributes.key?(:'name')
108
108
  self.name = attributes[:'name']
109
109
  end
@@ -117,16 +117,16 @@ 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 @inbox_id.nil?
121
- invalid_properties.push('invalid value for "inbox_id", inbox_id 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
124
  if @user_id.nil?
125
125
  invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
126
126
  end
127
127
 
128
- if @email_address.nil?
129
- invalid_properties.push('invalid value for "email_address", email_address 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
132
  if @created_at.nil?
@@ -147,9 +147,9 @@ 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 @inbox_id.nil?
151
- return false if @user_id.nil?
152
150
  return false if @email_address.nil?
151
+ return false if @user_id.nil?
152
+ return false if @inbox_id.nil?
153
153
  return false if @created_at.nil?
154
154
  return false if @updated_at.nil?
155
155
  return false if @id.nil?
@@ -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
- inbox_id == o.inbox_id &&
165
- user_id == o.user_id &&
166
164
  email_address == o.email_address &&
165
+ user_id == o.user_id &&
166
+ inbox_id == o.inbox_id &&
167
+ use_threads == o.use_threads &&
167
168
  created_at == o.created_at &&
168
169
  updated_at == o.updated_at &&
169
- use_threads == o.use_threads &&
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
- [inbox_id, user_id, email_address, created_at, updated_at, 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
@@ -17,6 +17,9 @@ module MailSlurpClient
17
17
  class AttachmentProjection
18
18
  attr_accessor :user_id
19
19
 
20
+ # Content ID of attachment.
21
+ attr_accessor :content_id
22
+
20
23
  # Attachment ID
21
24
  attr_accessor :attachment_id
22
25
 
@@ -24,9 +27,6 @@ module MailSlurpClient
24
27
 
25
28
  attr_accessor :updated_at
26
29
 
27
- # Content ID of attachment.
28
- attr_accessor :content_id
29
-
30
30
  attr_accessor :name
31
31
 
32
32
  # Content length of attachment in bytes
@@ -39,10 +39,10 @@ module MailSlurpClient
39
39
  def self.attribute_map
40
40
  {
41
41
  :'user_id' => :'userId',
42
+ :'content_id' => :'contentId',
42
43
  :'attachment_id' => :'attachmentId',
43
44
  :'created_at' => :'createdAt',
44
45
  :'updated_at' => :'updatedAt',
45
- :'content_id' => :'contentId',
46
46
  :'name' => :'name',
47
47
  :'content_length' => :'contentLength',
48
48
  :'content_type' => :'contentType'
@@ -53,10 +53,10 @@ module MailSlurpClient
53
53
  def self.openapi_types
54
54
  {
55
55
  :'user_id' => :'String',
56
+ :'content_id' => :'String',
56
57
  :'attachment_id' => :'String',
57
58
  :'created_at' => :'DateTime',
58
59
  :'updated_at' => :'DateTime',
59
- :'content_id' => :'String',
60
60
  :'name' => :'String',
61
61
  :'content_length' => :'Integer',
62
62
  :'content_type' => :'String'
@@ -92,6 +92,10 @@ module MailSlurpClient
92
92
  self.user_id = attributes[:'user_id']
93
93
  end
94
94
 
95
+ if attributes.key?(:'content_id')
96
+ self.content_id = attributes[:'content_id']
97
+ end
98
+
95
99
  if attributes.key?(:'attachment_id')
96
100
  self.attachment_id = attributes[:'attachment_id']
97
101
  end
@@ -104,10 +108,6 @@ module MailSlurpClient
104
108
  self.updated_at = attributes[:'updated_at']
105
109
  end
106
110
 
107
- if attributes.key?(:'content_id')
108
- self.content_id = attributes[:'content_id']
109
- end
110
-
111
111
  if attributes.key?(:'name')
112
112
  self.name = attributes[:'name']
113
113
  end
@@ -160,10 +160,10 @@ module MailSlurpClient
160
160
  return true if self.equal?(o)
161
161
  self.class == o.class &&
162
162
  user_id == o.user_id &&
163
+ content_id == o.content_id &&
163
164
  attachment_id == o.attachment_id &&
164
165
  created_at == o.created_at &&
165
166
  updated_at == o.updated_at &&
166
- content_id == o.content_id &&
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, attachment_id, created_at, updated_at, content_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,26 +15,26 @@ require 'date'
15
15
  module MailSlurpClient
16
16
  # Bounced email event
17
17
  class BounceProjection
18
- attr_accessor :sender
18
+ attr_accessor :subject
19
19
 
20
- attr_accessor :created_at
20
+ attr_accessor :sender
21
21
 
22
22
  attr_accessor :bounce_type
23
23
 
24
24
  attr_accessor :bounce_mta
25
25
 
26
- attr_accessor :subject
26
+ attr_accessor :created_at
27
27
 
28
28
  attr_accessor :id
29
29
 
30
30
  # Attribute mapping from ruby-style variable name to JSON key.
31
31
  def self.attribute_map
32
32
  {
33
+ :'subject' => :'subject',
33
34
  :'sender' => :'sender',
34
- :'created_at' => :'createdAt',
35
35
  :'bounce_type' => :'bounceType',
36
36
  :'bounce_mta' => :'bounceMta',
37
- :'subject' => :'subject',
37
+ :'created_at' => :'createdAt',
38
38
  :'id' => :'id'
39
39
  }
40
40
  end
@@ -42,11 +42,11 @@ module MailSlurpClient
42
42
  # Attribute type mapping.
43
43
  def self.openapi_types
44
44
  {
45
+ :'subject' => :'String',
45
46
  :'sender' => :'String',
46
- :'created_at' => :'DateTime',
47
47
  :'bounce_type' => :'String',
48
48
  :'bounce_mta' => :'String',
49
- :'subject' => :'String',
49
+ :'created_at' => :'DateTime',
50
50
  :'id' => :'String'
51
51
  }
52
52
  end
@@ -54,9 +54,9 @@ module MailSlurpClient
54
54
  # List of attributes with nullable: true
55
55
  def self.openapi_nullable
56
56
  Set.new([
57
+ :'subject',
57
58
  :'bounce_type',
58
59
  :'bounce_mta',
59
- :'subject',
60
60
  ])
61
61
  end
62
62
 
@@ -75,12 +75,12 @@ 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?(:'subject')
79
+ self.subject = attributes[:'subject']
80
80
  end
81
81
 
82
- if attributes.key?(:'created_at')
83
- self.created_at = attributes[:'created_at']
82
+ if attributes.key?(:'sender')
83
+ self.sender = attributes[:'sender']
84
84
  end
85
85
 
86
86
  if attributes.key?(:'bounce_type')
@@ -91,8 +91,8 @@ module MailSlurpClient
91
91
  self.bounce_mta = attributes[:'bounce_mta']
92
92
  end
93
93
 
94
- if attributes.key?(:'subject')
95
- self.subject = attributes[:'subject']
94
+ if attributes.key?(:'created_at')
95
+ self.created_at = attributes[:'created_at']
96
96
  end
97
97
 
98
98
  if attributes.key?(:'id')
@@ -128,11 +128,11 @@ module MailSlurpClient
128
128
  def ==(o)
129
129
  return true if self.equal?(o)
130
130
  self.class == o.class &&
131
+ subject == o.subject &&
131
132
  sender == o.sender &&
132
- created_at == o.created_at &&
133
133
  bounce_type == o.bounce_type &&
134
134
  bounce_mta == o.bounce_mta &&
135
- subject == o.subject &&
135
+ created_at == o.created_at &&
136
136
  id == o.id
137
137
  end
138
138
 
@@ -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, created_at, bounce_type, bounce_mta, subject, id].hash
148
+ [subject, sender, bounce_type, bounce_mta, created_at, id].hash
149
149
  end
150
150
 
151
151
  # Builds the object from hash
@@ -17,13 +17,13 @@ module MailSlurpClient
17
17
  class BounceRecipientProjection
18
18
  attr_accessor :sent_email_id
19
19
 
20
- attr_accessor :created_at
21
-
22
20
  attr_accessor :recipient
23
21
 
22
+ attr_accessor :bounce_type
23
+
24
24
  attr_accessor :action
25
25
 
26
- attr_accessor :bounce_type
26
+ attr_accessor :created_at
27
27
 
28
28
  attr_accessor :id
29
29
 
@@ -33,10 +33,10 @@ module MailSlurpClient
33
33
  def self.attribute_map
34
34
  {
35
35
  :'sent_email_id' => :'sentEmailId',
36
- :'created_at' => :'createdAt',
37
36
  :'recipient' => :'recipient',
38
- :'action' => :'action',
39
37
  :'bounce_type' => :'bounceType',
38
+ :'action' => :'action',
39
+ :'created_at' => :'createdAt',
40
40
  :'id' => :'id',
41
41
  :'status' => :'status'
42
42
  }
@@ -46,10 +46,10 @@ module MailSlurpClient
46
46
  def self.openapi_types
47
47
  {
48
48
  :'sent_email_id' => :'String',
49
- :'created_at' => :'DateTime',
50
49
  :'recipient' => :'String',
51
- :'action' => :'String',
52
50
  :'bounce_type' => :'String',
51
+ :'action' => :'String',
52
+ :'created_at' => :'DateTime',
53
53
  :'id' => :'String',
54
54
  :'status' => :'String'
55
55
  }
@@ -59,8 +59,8 @@ module MailSlurpClient
59
59
  def self.openapi_nullable
60
60
  Set.new([
61
61
  :'sent_email_id',
62
- :'action',
63
62
  :'bounce_type',
63
+ :'action',
64
64
  :'status'
65
65
  ])
66
66
  end
@@ -84,20 +84,20 @@ module MailSlurpClient
84
84
  self.sent_email_id = attributes[:'sent_email_id']
85
85
  end
86
86
 
87
- if attributes.key?(:'created_at')
88
- self.created_at = attributes[:'created_at']
89
- end
90
-
91
87
  if attributes.key?(:'recipient')
92
88
  self.recipient = attributes[:'recipient']
93
89
  end
94
90
 
91
+ if attributes.key?(:'bounce_type')
92
+ self.bounce_type = attributes[:'bounce_type']
93
+ end
94
+
95
95
  if attributes.key?(:'action')
96
96
  self.action = attributes[:'action']
97
97
  end
98
98
 
99
- if attributes.key?(:'bounce_type')
100
- self.bounce_type = attributes[:'bounce_type']
99
+ if attributes.key?(:'created_at')
100
+ self.created_at = attributes[:'created_at']
101
101
  end
102
102
 
103
103
  if attributes.key?(:'id')
@@ -113,22 +113,22 @@ module MailSlurpClient
113
113
  # @return Array for valid properties with the reasons
114
114
  def list_invalid_properties
115
115
  invalid_properties = Array.new
116
- if @created_at.nil?
117
- invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
118
- end
119
-
120
116
  if @recipient.nil?
121
117
  invalid_properties.push('invalid value for "recipient", recipient cannot be nil.')
122
118
  end
123
119
 
120
+ if @created_at.nil?
121
+ invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
122
+ end
123
+
124
124
  invalid_properties
125
125
  end
126
126
 
127
127
  # Check to see if the all the properties in the model are valid
128
128
  # @return true if the model is valid
129
129
  def valid?
130
- return false if @created_at.nil?
131
130
  return false if @recipient.nil?
131
+ return false if @created_at.nil?
132
132
  true
133
133
  end
134
134
 
@@ -138,10 +138,10 @@ module MailSlurpClient
138
138
  return true if self.equal?(o)
139
139
  self.class == o.class &&
140
140
  sent_email_id == o.sent_email_id &&
141
- created_at == o.created_at &&
142
141
  recipient == o.recipient &&
143
- action == o.action &&
144
142
  bounce_type == o.bounce_type &&
143
+ action == o.action &&
144
+ created_at == o.created_at &&
145
145
  id == o.id &&
146
146
  status == o.status
147
147
  end
@@ -155,7 +155,7 @@ module MailSlurpClient
155
155
  # Calculates hash code according to all attributes.
156
156
  # @return [Integer] Hash code
157
157
  def hash
158
- [sent_email_id, created_at, recipient, action, bounce_type, id, status].hash
158
+ [sent_email_id, recipient, bounce_type, action, created_at, id, status].hash
159
159
  end
160
160
 
161
161
  # Builds the object from hash