mailslurp_client 15.12.17 → 15.13.2
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.
- checksums.yaml +4 -4
- data/lib/mailslurp_client/api/phone_controller_api.rb +74 -0
- data/lib/mailslurp_client/api/sms_controller_api.rb +3 -3
- data/lib/mailslurp_client/api/wait_for_controller_api.rb +64 -0
- data/lib/mailslurp_client/api/webhook_controller_api.rb +70 -0
- data/lib/mailslurp_client/models/alias_projection.rb +15 -15
- data/lib/mailslurp_client/models/attachment_projection.rb +14 -14
- data/lib/mailslurp_client/models/bounce_projection.rb +13 -13
- data/lib/mailslurp_client/models/bounce_recipient_projection.rb +13 -13
- data/lib/mailslurp_client/models/contact_projection.rb +13 -13
- data/lib/mailslurp_client/models/email_projection.rb +39 -39
- data/lib/mailslurp_client/models/page_alias.rb +22 -22
- data/lib/mailslurp_client/models/page_attachment_entity.rb +22 -22
- data/lib/mailslurp_client/models/page_bounced_email.rb +22 -22
- data/lib/mailslurp_client/models/page_bounced_recipients.rb +22 -22
- data/lib/mailslurp_client/models/page_complaint.rb +22 -22
- data/lib/mailslurp_client/models/page_contact_projection.rb +22 -22
- data/lib/mailslurp_client/models/page_delivery_status.rb +22 -22
- data/lib/mailslurp_client/models/page_email_preview.rb +22 -22
- data/lib/mailslurp_client/models/page_email_projection.rb +22 -22
- data/lib/mailslurp_client/models/page_email_validation_request.rb +22 -22
- data/lib/mailslurp_client/models/page_expired_inbox_record_projection.rb +22 -22
- data/lib/mailslurp_client/models/page_group_projection.rb +22 -22
- data/lib/mailslurp_client/models/page_inbox_forwarder_dto.rb +22 -22
- data/lib/mailslurp_client/models/page_inbox_projection.rb +22 -22
- data/lib/mailslurp_client/models/page_inbox_ruleset_dto.rb +22 -22
- data/lib/mailslurp_client/models/page_missed_email_projection.rb +22 -22
- data/lib/mailslurp_client/models/page_organization_inbox_projection.rb +22 -22
- data/lib/mailslurp_client/models/page_phone_number_projection.rb +22 -22
- data/lib/mailslurp_client/models/page_sent_email_projection.rb +16 -16
- data/lib/mailslurp_client/models/page_sent_email_with_queue_projection.rb +16 -16
- data/lib/mailslurp_client/models/page_sms_projection.rb +22 -22
- data/lib/mailslurp_client/models/page_template_projection.rb +22 -22
- data/lib/mailslurp_client/models/page_thread_projection.rb +22 -22
- data/lib/mailslurp_client/models/page_tracking_pixel_projection.rb +22 -22
- data/lib/mailslurp_client/models/page_unknown_missed_email_projection.rb +22 -22
- data/lib/mailslurp_client/models/page_webhook_projection.rb +22 -22
- data/lib/mailslurp_client/models/page_webhook_result.rb +22 -22
- data/lib/mailslurp_client/models/sent_email_projection.rb +56 -56
- data/lib/mailslurp_client/models/{sms_message.rb → sms_dto.rb} +9 -18
- data/lib/mailslurp_client/models/sms_preview.rb +15 -1
- data/lib/mailslurp_client/models/sms_projection.rb +32 -18
- data/lib/mailslurp_client/models/sort.rb +13 -13
- data/lib/mailslurp_client/models/test_phone_number_options.rb +211 -0
- data/lib/mailslurp_client/models/thread_projection.rb +16 -16
- data/lib/mailslurp_client/models/tracking_pixel_projection.rb +19 -19
- data/lib/mailslurp_client/models/wait_for_single_sms_options.rb +304 -0
- data/lib/mailslurp_client/version.rb +1 -1
- data/lib/mailslurp_client.rb +3 -1
- metadata +5 -3
@@ -23,21 +23,21 @@ module MailSlurpClient
|
|
23
23
|
|
24
24
|
attr_accessor :subject
|
25
25
|
|
26
|
+
attr_accessor :attachments
|
27
|
+
|
26
28
|
attr_accessor :inbox_id
|
27
29
|
|
28
|
-
attr_accessor :
|
30
|
+
attr_accessor :to
|
31
|
+
|
32
|
+
attr_accessor :created_at
|
29
33
|
|
30
34
|
attr_accessor :bcc
|
31
35
|
|
32
36
|
attr_accessor :cc
|
33
37
|
|
34
|
-
attr_accessor :
|
35
|
-
|
36
|
-
attr_accessor :attachments
|
37
|
-
|
38
|
-
attr_accessor :to
|
38
|
+
attr_accessor :body_md5_hash
|
39
39
|
|
40
|
-
attr_accessor :
|
40
|
+
attr_accessor :virtual_send
|
41
41
|
|
42
42
|
# Attribute mapping from ruby-style variable name to JSON key.
|
43
43
|
def self.attribute_map
|
@@ -46,14 +46,14 @@ module MailSlurpClient
|
|
46
46
|
:'from' => :'from',
|
47
47
|
:'user_id' => :'userId',
|
48
48
|
:'subject' => :'subject',
|
49
|
+
:'attachments' => :'attachments',
|
49
50
|
:'inbox_id' => :'inboxId',
|
50
|
-
:'
|
51
|
+
:'to' => :'to',
|
52
|
+
:'created_at' => :'createdAt',
|
51
53
|
:'bcc' => :'bcc',
|
52
54
|
:'cc' => :'cc',
|
53
|
-
:'
|
54
|
-
:'
|
55
|
-
:'to' => :'to',
|
56
|
-
:'created_at' => :'createdAt'
|
55
|
+
:'body_md5_hash' => :'bodyMD5Hash',
|
56
|
+
:'virtual_send' => :'virtualSend'
|
57
57
|
}
|
58
58
|
end
|
59
59
|
|
@@ -64,14 +64,14 @@ module MailSlurpClient
|
|
64
64
|
:'from' => :'String',
|
65
65
|
:'user_id' => :'String',
|
66
66
|
:'subject' => :'String',
|
67
|
+
:'attachments' => :'Array<String>',
|
67
68
|
:'inbox_id' => :'String',
|
68
|
-
:'
|
69
|
+
:'to' => :'Array<String>',
|
70
|
+
:'created_at' => :'DateTime',
|
69
71
|
:'bcc' => :'Array<String>',
|
70
72
|
:'cc' => :'Array<String>',
|
71
|
-
:'
|
72
|
-
:'
|
73
|
-
:'to' => :'Array<String>',
|
74
|
-
:'created_at' => :'DateTime'
|
73
|
+
:'body_md5_hash' => :'String',
|
74
|
+
:'virtual_send' => :'Boolean'
|
75
75
|
}
|
76
76
|
end
|
77
77
|
|
@@ -112,12 +112,24 @@ module MailSlurpClient
|
|
112
112
|
self.subject = attributes[:'subject']
|
113
113
|
end
|
114
114
|
|
115
|
+
if attributes.key?(:'attachments')
|
116
|
+
if (value = attributes[:'attachments']).is_a?(Array)
|
117
|
+
self.attachments = value
|
118
|
+
end
|
119
|
+
end
|
120
|
+
|
115
121
|
if attributes.key?(:'inbox_id')
|
116
122
|
self.inbox_id = attributes[:'inbox_id']
|
117
123
|
end
|
118
124
|
|
119
|
-
if attributes.key?(:'
|
120
|
-
|
125
|
+
if attributes.key?(:'to')
|
126
|
+
if (value = attributes[:'to']).is_a?(Array)
|
127
|
+
self.to = value
|
128
|
+
end
|
129
|
+
end
|
130
|
+
|
131
|
+
if attributes.key?(:'created_at')
|
132
|
+
self.created_at = attributes[:'created_at']
|
121
133
|
end
|
122
134
|
|
123
135
|
if attributes.key?(:'bcc')
|
@@ -132,24 +144,12 @@ module MailSlurpClient
|
|
132
144
|
end
|
133
145
|
end
|
134
146
|
|
135
|
-
if attributes.key?(:'
|
136
|
-
self.
|
137
|
-
end
|
138
|
-
|
139
|
-
if attributes.key?(:'attachments')
|
140
|
-
if (value = attributes[:'attachments']).is_a?(Array)
|
141
|
-
self.attachments = value
|
142
|
-
end
|
143
|
-
end
|
144
|
-
|
145
|
-
if attributes.key?(:'to')
|
146
|
-
if (value = attributes[:'to']).is_a?(Array)
|
147
|
-
self.to = value
|
148
|
-
end
|
147
|
+
if attributes.key?(:'body_md5_hash')
|
148
|
+
self.body_md5_hash = attributes[:'body_md5_hash']
|
149
149
|
end
|
150
150
|
|
151
|
-
if attributes.key?(:'
|
152
|
-
self.
|
151
|
+
if attributes.key?(:'virtual_send')
|
152
|
+
self.virtual_send = attributes[:'virtual_send']
|
153
153
|
end
|
154
154
|
end
|
155
155
|
|
@@ -165,10 +165,22 @@ module MailSlurpClient
|
|
165
165
|
invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
|
166
166
|
end
|
167
167
|
|
168
|
+
if @attachments.nil?
|
169
|
+
invalid_properties.push('invalid value for "attachments", attachments cannot be nil.')
|
170
|
+
end
|
171
|
+
|
168
172
|
if @inbox_id.nil?
|
169
173
|
invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
|
170
174
|
end
|
171
175
|
|
176
|
+
if @to.nil?
|
177
|
+
invalid_properties.push('invalid value for "to", to cannot be nil.')
|
178
|
+
end
|
179
|
+
|
180
|
+
if @created_at.nil?
|
181
|
+
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
182
|
+
end
|
183
|
+
|
172
184
|
if @bcc.nil?
|
173
185
|
invalid_properties.push('invalid value for "bcc", bcc cannot be nil.')
|
174
186
|
end
|
@@ -181,18 +193,6 @@ module MailSlurpClient
|
|
181
193
|
invalid_properties.push('invalid value for "virtual_send", virtual_send cannot be nil.')
|
182
194
|
end
|
183
195
|
|
184
|
-
if @attachments.nil?
|
185
|
-
invalid_properties.push('invalid value for "attachments", attachments cannot be nil.')
|
186
|
-
end
|
187
|
-
|
188
|
-
if @to.nil?
|
189
|
-
invalid_properties.push('invalid value for "to", to cannot be nil.')
|
190
|
-
end
|
191
|
-
|
192
|
-
if @created_at.nil?
|
193
|
-
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
194
|
-
end
|
195
|
-
|
196
196
|
invalid_properties
|
197
197
|
end
|
198
198
|
|
@@ -201,13 +201,13 @@ module MailSlurpClient
|
|
201
201
|
def valid?
|
202
202
|
return false if @id.nil?
|
203
203
|
return false if @user_id.nil?
|
204
|
+
return false if @attachments.nil?
|
204
205
|
return false if @inbox_id.nil?
|
206
|
+
return false if @to.nil?
|
207
|
+
return false if @created_at.nil?
|
205
208
|
return false if @bcc.nil?
|
206
209
|
return false if @cc.nil?
|
207
210
|
return false if @virtual_send.nil?
|
208
|
-
return false if @attachments.nil?
|
209
|
-
return false if @to.nil?
|
210
|
-
return false if @created_at.nil?
|
211
211
|
true
|
212
212
|
end
|
213
213
|
|
@@ -220,14 +220,14 @@ module MailSlurpClient
|
|
220
220
|
from == o.from &&
|
221
221
|
user_id == o.user_id &&
|
222
222
|
subject == o.subject &&
|
223
|
+
attachments == o.attachments &&
|
223
224
|
inbox_id == o.inbox_id &&
|
224
|
-
|
225
|
+
to == o.to &&
|
226
|
+
created_at == o.created_at &&
|
225
227
|
bcc == o.bcc &&
|
226
228
|
cc == o.cc &&
|
227
|
-
|
228
|
-
|
229
|
-
to == o.to &&
|
230
|
-
created_at == o.created_at
|
229
|
+
body_md5_hash == o.body_md5_hash &&
|
230
|
+
virtual_send == o.virtual_send
|
231
231
|
end
|
232
232
|
|
233
233
|
# @see the `==` method
|
@@ -239,7 +239,7 @@ module MailSlurpClient
|
|
239
239
|
# Calculates hash code according to all attributes.
|
240
240
|
# @return [Integer] Hash code
|
241
241
|
def hash
|
242
|
-
[id, from, user_id, subject,
|
242
|
+
[id, from, user_id, subject, attachments, inbox_id, to, created_at, bcc, cc, body_md5_hash, virtual_send].hash
|
243
243
|
end
|
244
244
|
|
245
245
|
# Builds the object from hash
|
@@ -13,7 +13,7 @@ OpenAPI Generator version: 4.3.1
|
|
13
13
|
require 'date'
|
14
14
|
|
15
15
|
module MailSlurpClient
|
16
|
-
class
|
16
|
+
class SmsDto
|
17
17
|
attr_accessor :id
|
18
18
|
|
19
19
|
attr_accessor :user_id
|
@@ -26,8 +26,6 @@ module MailSlurpClient
|
|
26
26
|
|
27
27
|
attr_accessor :read
|
28
28
|
|
29
|
-
attr_accessor :sid
|
30
|
-
|
31
29
|
attr_accessor :created_at
|
32
30
|
|
33
31
|
attr_accessor :updated_at
|
@@ -41,7 +39,6 @@ module MailSlurpClient
|
|
41
39
|
:'from_number' => :'fromNumber',
|
42
40
|
:'body' => :'body',
|
43
41
|
:'read' => :'read',
|
44
|
-
:'sid' => :'sid',
|
45
42
|
:'created_at' => :'createdAt',
|
46
43
|
:'updated_at' => :'updatedAt'
|
47
44
|
}
|
@@ -56,7 +53,6 @@ module MailSlurpClient
|
|
56
53
|
:'from_number' => :'String',
|
57
54
|
:'body' => :'String',
|
58
55
|
:'read' => :'Boolean',
|
59
|
-
:'sid' => :'String',
|
60
56
|
:'created_at' => :'DateTime',
|
61
57
|
:'updated_at' => :'DateTime'
|
62
58
|
}
|
@@ -72,13 +68,13 @@ module MailSlurpClient
|
|
72
68
|
# @param [Hash] attributes Model attributes in the form of hash
|
73
69
|
def initialize(attributes = {})
|
74
70
|
if (!attributes.is_a?(Hash))
|
75
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `MailSlurpClient::
|
71
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `MailSlurpClient::SmsDto` initialize method"
|
76
72
|
end
|
77
73
|
|
78
74
|
# check to see if the attribute exists and convert string to symbol for hash key
|
79
75
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
80
76
|
if (!self.class.attribute_map.key?(k.to_sym))
|
81
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `MailSlurpClient::
|
77
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `MailSlurpClient::SmsDto`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
82
78
|
end
|
83
79
|
h[k.to_sym] = v
|
84
80
|
}
|
@@ -107,10 +103,6 @@ module MailSlurpClient
|
|
107
103
|
self.read = attributes[:'read']
|
108
104
|
end
|
109
105
|
|
110
|
-
if attributes.key?(:'sid')
|
111
|
-
self.sid = attributes[:'sid']
|
112
|
-
end
|
113
|
-
|
114
106
|
if attributes.key?(:'created_at')
|
115
107
|
self.created_at = attributes[:'created_at']
|
116
108
|
end
|
@@ -124,6 +116,10 @@ module MailSlurpClient
|
|
124
116
|
# @return Array for valid properties with the reasons
|
125
117
|
def list_invalid_properties
|
126
118
|
invalid_properties = Array.new
|
119
|
+
if @id.nil?
|
120
|
+
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
121
|
+
end
|
122
|
+
|
127
123
|
if @user_id.nil?
|
128
124
|
invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
|
129
125
|
end
|
@@ -144,10 +140,6 @@ module MailSlurpClient
|
|
144
140
|
invalid_properties.push('invalid value for "read", read cannot be nil.')
|
145
141
|
end
|
146
142
|
|
147
|
-
if @sid.nil?
|
148
|
-
invalid_properties.push('invalid value for "sid", sid cannot be nil.')
|
149
|
-
end
|
150
|
-
|
151
143
|
if @created_at.nil?
|
152
144
|
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
153
145
|
end
|
@@ -162,12 +154,12 @@ module MailSlurpClient
|
|
162
154
|
# Check to see if the all the properties in the model are valid
|
163
155
|
# @return true if the model is valid
|
164
156
|
def valid?
|
157
|
+
return false if @id.nil?
|
165
158
|
return false if @user_id.nil?
|
166
159
|
return false if @phone_number.nil?
|
167
160
|
return false if @from_number.nil?
|
168
161
|
return false if @body.nil?
|
169
162
|
return false if @read.nil?
|
170
|
-
return false if @sid.nil?
|
171
163
|
return false if @created_at.nil?
|
172
164
|
return false if @updated_at.nil?
|
173
165
|
true
|
@@ -184,7 +176,6 @@ module MailSlurpClient
|
|
184
176
|
from_number == o.from_number &&
|
185
177
|
body == o.body &&
|
186
178
|
read == o.read &&
|
187
|
-
sid == o.sid &&
|
188
179
|
created_at == o.created_at &&
|
189
180
|
updated_at == o.updated_at
|
190
181
|
end
|
@@ -198,7 +189,7 @@ module MailSlurpClient
|
|
198
189
|
# Calculates hash code according to all attributes.
|
199
190
|
# @return [Integer] Hash code
|
200
191
|
def hash
|
201
|
-
[id, user_id, phone_number, from_number, body, read,
|
192
|
+
[id, user_id, phone_number, from_number, body, read, created_at, updated_at].hash
|
202
193
|
end
|
203
194
|
|
204
195
|
# Builds the object from hash
|
@@ -18,6 +18,8 @@ module MailSlurpClient
|
|
18
18
|
|
19
19
|
attr_accessor :user_id
|
20
20
|
|
21
|
+
attr_accessor :body
|
22
|
+
|
21
23
|
attr_accessor :phone_number
|
22
24
|
|
23
25
|
attr_accessor :from_number
|
@@ -29,6 +31,7 @@ module MailSlurpClient
|
|
29
31
|
{
|
30
32
|
:'id' => :'id',
|
31
33
|
:'user_id' => :'userId',
|
34
|
+
:'body' => :'body',
|
32
35
|
:'phone_number' => :'phoneNumber',
|
33
36
|
:'from_number' => :'fromNumber',
|
34
37
|
:'created_at' => :'createdAt'
|
@@ -40,6 +43,7 @@ module MailSlurpClient
|
|
40
43
|
{
|
41
44
|
:'id' => :'String',
|
42
45
|
:'user_id' => :'String',
|
46
|
+
:'body' => :'String',
|
43
47
|
:'phone_number' => :'String',
|
44
48
|
:'from_number' => :'String',
|
45
49
|
:'created_at' => :'DateTime'
|
@@ -75,6 +79,10 @@ module MailSlurpClient
|
|
75
79
|
self.user_id = attributes[:'user_id']
|
76
80
|
end
|
77
81
|
|
82
|
+
if attributes.key?(:'body')
|
83
|
+
self.body = attributes[:'body']
|
84
|
+
end
|
85
|
+
|
78
86
|
if attributes.key?(:'phone_number')
|
79
87
|
self.phone_number = attributes[:'phone_number']
|
80
88
|
end
|
@@ -100,6 +108,10 @@ module MailSlurpClient
|
|
100
108
|
invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
|
101
109
|
end
|
102
110
|
|
111
|
+
if @body.nil?
|
112
|
+
invalid_properties.push('invalid value for "body", body cannot be nil.')
|
113
|
+
end
|
114
|
+
|
103
115
|
if @phone_number.nil?
|
104
116
|
invalid_properties.push('invalid value for "phone_number", phone_number cannot be nil.')
|
105
117
|
end
|
@@ -120,6 +132,7 @@ module MailSlurpClient
|
|
120
132
|
def valid?
|
121
133
|
return false if @id.nil?
|
122
134
|
return false if @user_id.nil?
|
135
|
+
return false if @body.nil?
|
123
136
|
return false if @phone_number.nil?
|
124
137
|
return false if @from_number.nil?
|
125
138
|
return false if @created_at.nil?
|
@@ -133,6 +146,7 @@ module MailSlurpClient
|
|
133
146
|
self.class == o.class &&
|
134
147
|
id == o.id &&
|
135
148
|
user_id == o.user_id &&
|
149
|
+
body == o.body &&
|
136
150
|
phone_number == o.phone_number &&
|
137
151
|
from_number == o.from_number &&
|
138
152
|
created_at == o.created_at
|
@@ -147,7 +161,7 @@ module MailSlurpClient
|
|
147
161
|
# Calculates hash code according to all attributes.
|
148
162
|
# @return [Integer] Hash code
|
149
163
|
def hash
|
150
|
-
[id, user_id, phone_number, from_number, created_at].hash
|
164
|
+
[id, user_id, body, phone_number, from_number, created_at].hash
|
151
165
|
end
|
152
166
|
|
153
167
|
# Builds the object from hash
|
@@ -17,25 +17,28 @@ module MailSlurpClient
|
|
17
17
|
class SmsProjection
|
18
18
|
attr_accessor :id
|
19
19
|
|
20
|
+
attr_accessor :body
|
21
|
+
|
20
22
|
attr_accessor :user_id
|
21
23
|
|
22
24
|
attr_accessor :phone_number
|
23
25
|
|
24
26
|
attr_accessor :created_at
|
25
27
|
|
26
|
-
attr_accessor :read
|
27
|
-
|
28
28
|
attr_accessor :from_number
|
29
29
|
|
30
|
+
attr_accessor :read
|
31
|
+
|
30
32
|
# Attribute mapping from ruby-style variable name to JSON key.
|
31
33
|
def self.attribute_map
|
32
34
|
{
|
33
35
|
:'id' => :'id',
|
36
|
+
:'body' => :'body',
|
34
37
|
:'user_id' => :'userId',
|
35
38
|
:'phone_number' => :'phoneNumber',
|
36
39
|
:'created_at' => :'createdAt',
|
37
|
-
:'
|
38
|
-
:'
|
40
|
+
:'from_number' => :'fromNumber',
|
41
|
+
:'read' => :'read'
|
39
42
|
}
|
40
43
|
end
|
41
44
|
|
@@ -43,11 +46,12 @@ module MailSlurpClient
|
|
43
46
|
def self.openapi_types
|
44
47
|
{
|
45
48
|
:'id' => :'String',
|
49
|
+
:'body' => :'String',
|
46
50
|
:'user_id' => :'String',
|
47
51
|
:'phone_number' => :'String',
|
48
52
|
:'created_at' => :'DateTime',
|
49
|
-
:'
|
50
|
-
:'
|
53
|
+
:'from_number' => :'String',
|
54
|
+
:'read' => :'Boolean'
|
51
55
|
}
|
52
56
|
end
|
53
57
|
|
@@ -76,6 +80,10 @@ module MailSlurpClient
|
|
76
80
|
self.id = attributes[:'id']
|
77
81
|
end
|
78
82
|
|
83
|
+
if attributes.key?(:'body')
|
84
|
+
self.body = attributes[:'body']
|
85
|
+
end
|
86
|
+
|
79
87
|
if attributes.key?(:'user_id')
|
80
88
|
self.user_id = attributes[:'user_id']
|
81
89
|
end
|
@@ -88,13 +96,13 @@ module MailSlurpClient
|
|
88
96
|
self.created_at = attributes[:'created_at']
|
89
97
|
end
|
90
98
|
|
91
|
-
if attributes.key?(:'read')
|
92
|
-
self.read = attributes[:'read']
|
93
|
-
end
|
94
|
-
|
95
99
|
if attributes.key?(:'from_number')
|
96
100
|
self.from_number = attributes[:'from_number']
|
97
101
|
end
|
102
|
+
|
103
|
+
if attributes.key?(:'read')
|
104
|
+
self.read = attributes[:'read']
|
105
|
+
end
|
98
106
|
end
|
99
107
|
|
100
108
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -105,6 +113,10 @@ module MailSlurpClient
|
|
105
113
|
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
106
114
|
end
|
107
115
|
|
116
|
+
if @body.nil?
|
117
|
+
invalid_properties.push('invalid value for "body", body cannot be nil.')
|
118
|
+
end
|
119
|
+
|
108
120
|
if @user_id.nil?
|
109
121
|
invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
|
110
122
|
end
|
@@ -117,14 +129,14 @@ module MailSlurpClient
|
|
117
129
|
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
118
130
|
end
|
119
131
|
|
120
|
-
if @read.nil?
|
121
|
-
invalid_properties.push('invalid value for "read", read cannot be nil.')
|
122
|
-
end
|
123
|
-
|
124
132
|
if @from_number.nil?
|
125
133
|
invalid_properties.push('invalid value for "from_number", from_number cannot be nil.')
|
126
134
|
end
|
127
135
|
|
136
|
+
if @read.nil?
|
137
|
+
invalid_properties.push('invalid value for "read", read cannot be nil.')
|
138
|
+
end
|
139
|
+
|
128
140
|
invalid_properties
|
129
141
|
end
|
130
142
|
|
@@ -132,11 +144,12 @@ module MailSlurpClient
|
|
132
144
|
# @return true if the model is valid
|
133
145
|
def valid?
|
134
146
|
return false if @id.nil?
|
147
|
+
return false if @body.nil?
|
135
148
|
return false if @user_id.nil?
|
136
149
|
return false if @phone_number.nil?
|
137
150
|
return false if @created_at.nil?
|
138
|
-
return false if @read.nil?
|
139
151
|
return false if @from_number.nil?
|
152
|
+
return false if @read.nil?
|
140
153
|
true
|
141
154
|
end
|
142
155
|
|
@@ -146,11 +159,12 @@ module MailSlurpClient
|
|
146
159
|
return true if self.equal?(o)
|
147
160
|
self.class == o.class &&
|
148
161
|
id == o.id &&
|
162
|
+
body == o.body &&
|
149
163
|
user_id == o.user_id &&
|
150
164
|
phone_number == o.phone_number &&
|
151
165
|
created_at == o.created_at &&
|
152
|
-
|
153
|
-
|
166
|
+
from_number == o.from_number &&
|
167
|
+
read == o.read
|
154
168
|
end
|
155
169
|
|
156
170
|
# @see the `==` method
|
@@ -162,7 +176,7 @@ module MailSlurpClient
|
|
162
176
|
# Calculates hash code according to all attributes.
|
163
177
|
# @return [Integer] Hash code
|
164
178
|
def hash
|
165
|
-
[id, user_id, phone_number, created_at,
|
179
|
+
[id, body, user_id, phone_number, created_at, from_number, read].hash
|
166
180
|
end
|
167
181
|
|
168
182
|
# Builds the object from hash
|
@@ -16,16 +16,16 @@ module MailSlurpClient
|
|
16
16
|
class Sort
|
17
17
|
attr_accessor :empty
|
18
18
|
|
19
|
-
attr_accessor :unsorted
|
20
|
-
|
21
19
|
attr_accessor :sorted
|
22
20
|
|
21
|
+
attr_accessor :unsorted
|
22
|
+
|
23
23
|
# Attribute mapping from ruby-style variable name to JSON key.
|
24
24
|
def self.attribute_map
|
25
25
|
{
|
26
26
|
:'empty' => :'empty',
|
27
|
-
:'
|
28
|
-
:'
|
27
|
+
:'sorted' => :'sorted',
|
28
|
+
:'unsorted' => :'unsorted'
|
29
29
|
}
|
30
30
|
end
|
31
31
|
|
@@ -33,8 +33,8 @@ module MailSlurpClient
|
|
33
33
|
def self.openapi_types
|
34
34
|
{
|
35
35
|
:'empty' => :'Boolean',
|
36
|
-
:'
|
37
|
-
:'
|
36
|
+
:'sorted' => :'Boolean',
|
37
|
+
:'unsorted' => :'Boolean'
|
38
38
|
}
|
39
39
|
end
|
40
40
|
|
@@ -63,13 +63,13 @@ module MailSlurpClient
|
|
63
63
|
self.empty = attributes[:'empty']
|
64
64
|
end
|
65
65
|
|
66
|
-
if attributes.key?(:'unsorted')
|
67
|
-
self.unsorted = attributes[:'unsorted']
|
68
|
-
end
|
69
|
-
|
70
66
|
if attributes.key?(:'sorted')
|
71
67
|
self.sorted = attributes[:'sorted']
|
72
68
|
end
|
69
|
+
|
70
|
+
if attributes.key?(:'unsorted')
|
71
|
+
self.unsorted = attributes[:'unsorted']
|
72
|
+
end
|
73
73
|
end
|
74
74
|
|
75
75
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -91,8 +91,8 @@ module MailSlurpClient
|
|
91
91
|
return true if self.equal?(o)
|
92
92
|
self.class == o.class &&
|
93
93
|
empty == o.empty &&
|
94
|
-
|
95
|
-
|
94
|
+
sorted == o.sorted &&
|
95
|
+
unsorted == o.unsorted
|
96
96
|
end
|
97
97
|
|
98
98
|
# @see the `==` method
|
@@ -104,7 +104,7 @@ module MailSlurpClient
|
|
104
104
|
# Calculates hash code according to all attributes.
|
105
105
|
# @return [Integer] Hash code
|
106
106
|
def hash
|
107
|
-
[empty,
|
107
|
+
[empty, sorted, unsorted].hash
|
108
108
|
end
|
109
109
|
|
110
110
|
# Builds the object from hash
|