mailslurp_client 15.11.0 → 15.12.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (82) 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/attachment_controller_api.rb +4 -4
  4. data/lib/mailslurp_client/api/email_controller_api.rb +68 -3
  5. data/lib/mailslurp_client/api/inbox_controller_api.rb +63 -0
  6. data/lib/mailslurp_client/api/missed_email_controller_api.rb +56 -0
  7. data/lib/mailslurp_client/api/phone_controller_api.rb +487 -0
  8. data/lib/mailslurp_client/api/sent_emails_controller_api.rb +73 -0
  9. data/lib/mailslurp_client/api/sms_controller_api.rb +286 -0
  10. data/lib/mailslurp_client/api/template_controller_api.rb +124 -0
  11. data/lib/mailslurp_client/api/wait_for_controller_api.rb +64 -0
  12. data/lib/mailslurp_client/api/webhook_controller_api.rb +2 -2
  13. data/lib/mailslurp_client/models/abstract_webhook_payload.rb +2 -2
  14. data/lib/mailslurp_client/models/alias_projection.rb +27 -27
  15. data/lib/mailslurp_client/models/attachment_projection.rb +14 -14
  16. data/lib/mailslurp_client/models/bounce_projection.rb +31 -4
  17. data/lib/mailslurp_client/models/{bounce_recipient.rb → bounce_recipient_projection.rb} +35 -36
  18. data/lib/mailslurp_client/models/bounced_email_dto.rb +19 -1
  19. data/lib/mailslurp_client/models/bounced_recipient_dto.rb +37 -1
  20. data/lib/mailslurp_client/models/contact_projection.rb +18 -18
  21. data/lib/mailslurp_client/models/create_emergency_address_options.rb +324 -0
  22. data/lib/mailslurp_client/models/create_webhook_options.rb +2 -2
  23. data/lib/mailslurp_client/models/email_html_dto.rb +215 -0
  24. data/lib/mailslurp_client/models/email_projection.rb +19 -19
  25. data/lib/mailslurp_client/models/emergency_address.rb +408 -0
  26. data/lib/mailslurp_client/models/emergency_address_dto.rb +273 -0
  27. data/lib/mailslurp_client/models/empty_response_dto.rb +206 -0
  28. data/lib/mailslurp_client/models/inbox_by_name_result.rb +221 -0
  29. data/lib/mailslurp_client/models/inbox_dto.rb +11 -1
  30. data/lib/mailslurp_client/models/page_alias.rb +22 -22
  31. data/lib/mailslurp_client/models/page_attachment_entity.rb +22 -22
  32. data/lib/mailslurp_client/models/page_bounced_email.rb +22 -22
  33. data/lib/mailslurp_client/models/page_bounced_recipients.rb +23 -23
  34. data/lib/mailslurp_client/models/page_contact_projection.rb +22 -22
  35. data/lib/mailslurp_client/models/page_email_preview.rb +22 -22
  36. data/lib/mailslurp_client/models/page_email_projection.rb +22 -22
  37. data/lib/mailslurp_client/models/page_email_validation_request.rb +22 -22
  38. data/lib/mailslurp_client/models/page_expired_inbox_record_projection.rb +22 -22
  39. data/lib/mailslurp_client/models/page_group_projection.rb +22 -22
  40. data/lib/mailslurp_client/models/page_inbox_forwarder_dto.rb +22 -22
  41. data/lib/mailslurp_client/models/page_inbox_projection.rb +22 -22
  42. data/lib/mailslurp_client/models/page_inbox_ruleset_dto.rb +22 -22
  43. data/lib/mailslurp_client/models/page_missed_email_projection.rb +22 -22
  44. data/lib/mailslurp_client/models/page_organization_inbox_projection.rb +22 -22
  45. data/lib/mailslurp_client/models/page_phone_number_projection.rb +308 -0
  46. data/lib/mailslurp_client/models/page_sent_email_projection.rb +16 -16
  47. data/lib/mailslurp_client/models/page_sent_email_with_queue_projection.rb +344 -0
  48. data/lib/mailslurp_client/models/page_sms_projection.rb +308 -0
  49. data/lib/mailslurp_client/models/page_template_projection.rb +22 -22
  50. data/lib/mailslurp_client/models/page_thread_projection.rb +22 -22
  51. data/lib/mailslurp_client/models/page_tracking_pixel_projection.rb +22 -22
  52. data/lib/mailslurp_client/models/page_unknown_missed_email_projection.rb +22 -22
  53. data/lib/mailslurp_client/models/page_webhook_projection.rb +22 -22
  54. data/lib/mailslurp_client/models/page_webhook_result.rb +22 -22
  55. data/lib/mailslurp_client/models/phone_number_dto.rb +347 -0
  56. data/lib/mailslurp_client/models/phone_number_projection.rb +302 -0
  57. data/lib/mailslurp_client/models/phone_plan_dto.rb +287 -0
  58. data/lib/mailslurp_client/models/send_with_queue_result.rb +318 -0
  59. data/lib/mailslurp_client/models/sent_email_projection.rb +24 -24
  60. data/lib/mailslurp_client/models/sms_match_option.rb +289 -0
  61. data/lib/mailslurp_client/models/sms_message.rb +318 -0
  62. data/lib/mailslurp_client/models/sms_preview.rb +267 -0
  63. data/lib/mailslurp_client/models/sms_projection.rb +282 -0
  64. data/lib/mailslurp_client/models/template_preview.rb +211 -0
  65. data/lib/mailslurp_client/models/template_projection.rb +18 -18
  66. data/lib/mailslurp_client/models/thread_projection.rb +36 -36
  67. data/lib/mailslurp_client/models/tracking_pixel_projection.rb +19 -19
  68. data/lib/mailslurp_client/models/user_info_dto.rb +334 -0
  69. data/lib/mailslurp_client/models/wait_for_sms_conditions.rb +371 -0
  70. data/lib/mailslurp_client/models/webhook_bounce_payload.rb +2 -2
  71. data/lib/mailslurp_client/models/webhook_bounce_recipient_payload.rb +2 -2
  72. data/lib/mailslurp_client/models/webhook_dto.rb +2 -2
  73. data/lib/mailslurp_client/models/webhook_email_opened_payload.rb +2 -2
  74. data/lib/mailslurp_client/models/webhook_email_read_payload.rb +2 -2
  75. data/lib/mailslurp_client/models/webhook_new_attachment_payload.rb +2 -2
  76. data/lib/mailslurp_client/models/webhook_new_contact_payload.rb +2 -2
  77. data/lib/mailslurp_client/models/webhook_new_email_payload.rb +2 -2
  78. data/lib/mailslurp_client/models/webhook_projection.rb +2 -2
  79. data/lib/mailslurp_client/models/webhook_result_dto.rb +2 -2
  80. data/lib/mailslurp_client/version.rb +1 -1
  81. data/lib/mailslurp_client.rb +24 -1
  82. metadata +26 -3
@@ -20,6 +20,9 @@ module MailSlurpClient
20
20
  # Content length of attachment in bytes
21
21
  attr_accessor :content_length
22
22
 
23
+ # Content type of attachment.
24
+ attr_accessor :content_type
25
+
23
26
  attr_accessor :user_id
24
27
 
25
28
  # Attachment ID
@@ -29,19 +32,16 @@ module MailSlurpClient
29
32
 
30
33
  attr_accessor :updated_at
31
34
 
32
- # Content type of attachment.
33
- attr_accessor :content_type
34
-
35
35
  # Attribute mapping from ruby-style variable name to JSON key.
36
36
  def self.attribute_map
37
37
  {
38
38
  :'name' => :'name',
39
39
  :'content_length' => :'contentLength',
40
+ :'content_type' => :'contentType',
40
41
  :'user_id' => :'userId',
41
42
  :'attachment_id' => :'attachmentId',
42
43
  :'created_at' => :'createdAt',
43
- :'updated_at' => :'updatedAt',
44
- :'content_type' => :'contentType'
44
+ :'updated_at' => :'updatedAt'
45
45
  }
46
46
  end
47
47
 
@@ -50,11 +50,11 @@ module MailSlurpClient
50
50
  {
51
51
  :'name' => :'String',
52
52
  :'content_length' => :'Integer',
53
+ :'content_type' => :'String',
53
54
  :'user_id' => :'String',
54
55
  :'attachment_id' => :'String',
55
56
  :'created_at' => :'DateTime',
56
- :'updated_at' => :'DateTime',
57
- :'content_type' => :'String'
57
+ :'updated_at' => :'DateTime'
58
58
  }
59
59
  end
60
60
 
@@ -87,6 +87,10 @@ module MailSlurpClient
87
87
  self.content_length = attributes[:'content_length']
88
88
  end
89
89
 
90
+ if attributes.key?(:'content_type')
91
+ self.content_type = attributes[:'content_type']
92
+ end
93
+
90
94
  if attributes.key?(:'user_id')
91
95
  self.user_id = attributes[:'user_id']
92
96
  end
@@ -102,10 +106,6 @@ module MailSlurpClient
102
106
  if attributes.key?(:'updated_at')
103
107
  self.updated_at = attributes[:'updated_at']
104
108
  end
105
-
106
- if attributes.key?(:'content_type')
107
- self.content_type = attributes[:'content_type']
108
- end
109
109
  end
110
110
 
111
111
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -148,11 +148,11 @@ module MailSlurpClient
148
148
  self.class == o.class &&
149
149
  name == o.name &&
150
150
  content_length == o.content_length &&
151
+ content_type == o.content_type &&
151
152
  user_id == o.user_id &&
152
153
  attachment_id == o.attachment_id &&
153
154
  created_at == o.created_at &&
154
- updated_at == o.updated_at &&
155
- content_type == o.content_type
155
+ updated_at == o.updated_at
156
156
  end
157
157
 
158
158
  # @see the `==` method
@@ -164,7 +164,7 @@ module MailSlurpClient
164
164
  # Calculates hash code according to all attributes.
165
165
  # @return [Integer] Hash code
166
166
  def hash
167
- [name, content_length, user_id, attachment_id, created_at, updated_at, content_type].hash
167
+ [name, content_length, content_type, user_id, attachment_id, created_at, updated_at].hash
168
168
  end
169
169
 
170
170
  # Builds the object from hash
@@ -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
@@ -19,6 +19,8 @@ module MailSlurpClient
19
19
 
20
20
  attr_accessor :group_id
21
21
 
22
+ attr_accessor :created_at
23
+
22
24
  attr_accessor :first_name
23
25
 
24
26
  attr_accessor :last_name
@@ -29,19 +31,17 @@ module MailSlurpClient
29
31
 
30
32
  attr_accessor :opt_out
31
33
 
32
- attr_accessor :created_at
33
-
34
34
  # Attribute mapping from ruby-style variable name to JSON key.
35
35
  def self.attribute_map
36
36
  {
37
37
  :'id' => :'id',
38
38
  :'group_id' => :'groupId',
39
+ :'created_at' => :'createdAt',
39
40
  :'first_name' => :'firstName',
40
41
  :'last_name' => :'lastName',
41
42
  :'company' => :'company',
42
43
  :'email_addresses' => :'emailAddresses',
43
- :'opt_out' => :'optOut',
44
- :'created_at' => :'createdAt'
44
+ :'opt_out' => :'optOut'
45
45
  }
46
46
  end
47
47
 
@@ -50,12 +50,12 @@ module MailSlurpClient
50
50
  {
51
51
  :'id' => :'String',
52
52
  :'group_id' => :'String',
53
+ :'created_at' => :'DateTime',
53
54
  :'first_name' => :'String',
54
55
  :'last_name' => :'String',
55
56
  :'company' => :'String',
56
57
  :'email_addresses' => :'Array<String>',
57
- :'opt_out' => :'Boolean',
58
- :'created_at' => :'DateTime'
58
+ :'opt_out' => :'Boolean'
59
59
  }
60
60
  end
61
61
 
@@ -88,6 +88,10 @@ module MailSlurpClient
88
88
  self.group_id = attributes[:'group_id']
89
89
  end
90
90
 
91
+ if attributes.key?(:'created_at')
92
+ self.created_at = attributes[:'created_at']
93
+ end
94
+
91
95
  if attributes.key?(:'first_name')
92
96
  self.first_name = attributes[:'first_name']
93
97
  end
@@ -109,10 +113,6 @@ module MailSlurpClient
109
113
  if attributes.key?(:'opt_out')
110
114
  self.opt_out = attributes[:'opt_out']
111
115
  end
112
-
113
- if attributes.key?(:'created_at')
114
- self.created_at = attributes[:'created_at']
115
- end
116
116
  end
117
117
 
118
118
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -123,14 +123,14 @@ module MailSlurpClient
123
123
  invalid_properties.push('invalid value for "id", id cannot be nil.')
124
124
  end
125
125
 
126
- if @opt_out.nil?
127
- invalid_properties.push('invalid value for "opt_out", opt_out cannot be nil.')
128
- end
129
-
130
126
  if @created_at.nil?
131
127
  invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
132
128
  end
133
129
 
130
+ if @opt_out.nil?
131
+ invalid_properties.push('invalid value for "opt_out", opt_out cannot be nil.')
132
+ end
133
+
134
134
  invalid_properties
135
135
  end
136
136
 
@@ -138,8 +138,8 @@ module MailSlurpClient
138
138
  # @return true if the model is valid
139
139
  def valid?
140
140
  return false if @id.nil?
141
- return false if @opt_out.nil?
142
141
  return false if @created_at.nil?
142
+ return false if @opt_out.nil?
143
143
  true
144
144
  end
145
145
 
@@ -150,12 +150,12 @@ module MailSlurpClient
150
150
  self.class == o.class &&
151
151
  id == o.id &&
152
152
  group_id == o.group_id &&
153
+ created_at == o.created_at &&
153
154
  first_name == o.first_name &&
154
155
  last_name == o.last_name &&
155
156
  company == o.company &&
156
157
  email_addresses == o.email_addresses &&
157
- opt_out == o.opt_out &&
158
- created_at == o.created_at
158
+ opt_out == o.opt_out
159
159
  end
160
160
 
161
161
  # @see the `==` method
@@ -167,7 +167,7 @@ module MailSlurpClient
167
167
  # Calculates hash code according to all attributes.
168
168
  # @return [Integer] Hash code
169
169
  def hash
170
- [id, group_id, first_name, last_name, company, email_addresses, opt_out, created_at].hash
170
+ [id, group_id, created_at, first_name, last_name, company, email_addresses, opt_out].hash
171
171
  end
172
172
 
173
173
  # Builds the object from hash