mailslurp_client 15.19.6 → 15.19.8
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/models/alias_projection.rb +39 -39
- data/lib/mailslurp_client/models/attachment_projection.rb +29 -29
- data/lib/mailslurp_client/models/bounce_projection.rb +15 -15
- data/lib/mailslurp_client/models/bounce_recipient_projection.rb +15 -15
- data/lib/mailslurp_client/models/connector_projection.rb +30 -30
- data/lib/mailslurp_client/models/connector_sync_event_projection.rb +15 -15
- data/lib/mailslurp_client/models/contact_projection.rb +10 -10
- data/lib/mailslurp_client/models/email_projection.rb +23 -23
- data/lib/mailslurp_client/models/expired_inbox_record_projection.rb +19 -19
- data/lib/mailslurp_client/models/imap_email_projection.rb +15 -15
- data/lib/mailslurp_client/models/inbox_forwarder_event_projection.rb +17 -17
- data/lib/mailslurp_client/models/inbox_replier_event_projection.rb +20 -20
- data/lib/mailslurp_client/models/list_unsubscribe_recipient_projection.rb +15 -15
- data/lib/mailslurp_client/models/missed_email_projection.rb +10 -10
- data/lib/mailslurp_client/models/phone_number_projection.rb +15 -15
- data/lib/mailslurp_client/models/sent_email_projection.rb +35 -35
- data/lib/mailslurp_client/models/sms_projection.rb +29 -29
- data/lib/mailslurp_client/models/template_projection.rb +17 -17
- data/lib/mailslurp_client/models/thread_projection.rb +41 -41
- data/lib/mailslurp_client/models/tracking_pixel_projection.rb +27 -27
- data/lib/mailslurp_client/models/unknown_missed_email_projection.rb +10 -10
- data/lib/mailslurp_client/models/webhook_projection.rb +25 -25
- data/lib/mailslurp_client/version.rb +1 -1
- metadata +1 -1
@@ -14,19 +14,17 @@ require 'date'
|
|
14
14
|
|
15
15
|
module MailSlurpClient
|
16
16
|
class SentEmailProjection
|
17
|
-
attr_accessor :created_at
|
18
|
-
|
19
17
|
attr_accessor :id
|
20
18
|
|
21
19
|
attr_accessor :from
|
22
20
|
|
23
21
|
attr_accessor :subject
|
24
22
|
|
25
|
-
attr_accessor :
|
23
|
+
attr_accessor :attachments
|
26
24
|
|
27
25
|
attr_accessor :user_id
|
28
26
|
|
29
|
-
attr_accessor :
|
27
|
+
attr_accessor :inbox_id
|
30
28
|
|
31
29
|
attr_accessor :to
|
32
30
|
|
@@ -34,6 +32,8 @@ module MailSlurpClient
|
|
34
32
|
|
35
33
|
attr_accessor :cc
|
36
34
|
|
35
|
+
attr_accessor :created_at
|
36
|
+
|
37
37
|
attr_accessor :body_md5_hash
|
38
38
|
|
39
39
|
attr_accessor :virtual_send
|
@@ -41,16 +41,16 @@ module MailSlurpClient
|
|
41
41
|
# Attribute mapping from ruby-style variable name to JSON key.
|
42
42
|
def self.attribute_map
|
43
43
|
{
|
44
|
-
:'created_at' => :'createdAt',
|
45
44
|
:'id' => :'id',
|
46
45
|
:'from' => :'from',
|
47
46
|
:'subject' => :'subject',
|
48
|
-
:'inbox_id' => :'inboxId',
|
49
|
-
:'user_id' => :'userId',
|
50
47
|
:'attachments' => :'attachments',
|
48
|
+
:'user_id' => :'userId',
|
49
|
+
:'inbox_id' => :'inboxId',
|
51
50
|
:'to' => :'to',
|
52
51
|
:'bcc' => :'bcc',
|
53
52
|
:'cc' => :'cc',
|
53
|
+
:'created_at' => :'createdAt',
|
54
54
|
:'body_md5_hash' => :'bodyMD5Hash',
|
55
55
|
:'virtual_send' => :'virtualSend'
|
56
56
|
}
|
@@ -59,16 +59,16 @@ module MailSlurpClient
|
|
59
59
|
# Attribute type mapping.
|
60
60
|
def self.openapi_types
|
61
61
|
{
|
62
|
-
:'created_at' => :'DateTime',
|
63
62
|
:'id' => :'String',
|
64
63
|
:'from' => :'String',
|
65
64
|
:'subject' => :'String',
|
66
|
-
:'inbox_id' => :'String',
|
67
|
-
:'user_id' => :'String',
|
68
65
|
:'attachments' => :'Array<String>',
|
66
|
+
:'user_id' => :'String',
|
67
|
+
:'inbox_id' => :'String',
|
69
68
|
:'to' => :'Array<String>',
|
70
69
|
:'bcc' => :'Array<String>',
|
71
70
|
:'cc' => :'Array<String>',
|
71
|
+
:'created_at' => :'DateTime',
|
72
72
|
:'body_md5_hash' => :'String',
|
73
73
|
:'virtual_send' => :'Boolean'
|
74
74
|
}
|
@@ -95,10 +95,6 @@ module MailSlurpClient
|
|
95
95
|
h[k.to_sym] = v
|
96
96
|
}
|
97
97
|
|
98
|
-
if attributes.key?(:'created_at')
|
99
|
-
self.created_at = attributes[:'created_at']
|
100
|
-
end
|
101
|
-
|
102
98
|
if attributes.key?(:'id')
|
103
99
|
self.id = attributes[:'id']
|
104
100
|
end
|
@@ -111,18 +107,18 @@ module MailSlurpClient
|
|
111
107
|
self.subject = attributes[:'subject']
|
112
108
|
end
|
113
109
|
|
114
|
-
if attributes.key?(:'
|
115
|
-
|
110
|
+
if attributes.key?(:'attachments')
|
111
|
+
if (value = attributes[:'attachments']).is_a?(Array)
|
112
|
+
self.attachments = value
|
113
|
+
end
|
116
114
|
end
|
117
115
|
|
118
116
|
if attributes.key?(:'user_id')
|
119
117
|
self.user_id = attributes[:'user_id']
|
120
118
|
end
|
121
119
|
|
122
|
-
if attributes.key?(:'
|
123
|
-
|
124
|
-
self.attachments = value
|
125
|
-
end
|
120
|
+
if attributes.key?(:'inbox_id')
|
121
|
+
self.inbox_id = attributes[:'inbox_id']
|
126
122
|
end
|
127
123
|
|
128
124
|
if attributes.key?(:'to')
|
@@ -143,6 +139,10 @@ module MailSlurpClient
|
|
143
139
|
end
|
144
140
|
end
|
145
141
|
|
142
|
+
if attributes.key?(:'created_at')
|
143
|
+
self.created_at = attributes[:'created_at']
|
144
|
+
end
|
145
|
+
|
146
146
|
if attributes.key?(:'body_md5_hash')
|
147
147
|
self.body_md5_hash = attributes[:'body_md5_hash']
|
148
148
|
end
|
@@ -156,24 +156,20 @@ module MailSlurpClient
|
|
156
156
|
# @return Array for valid properties with the reasons
|
157
157
|
def list_invalid_properties
|
158
158
|
invalid_properties = Array.new
|
159
|
-
if @created_at.nil?
|
160
|
-
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
161
|
-
end
|
162
|
-
|
163
159
|
if @id.nil?
|
164
160
|
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
165
161
|
end
|
166
162
|
|
167
|
-
if @
|
168
|
-
invalid_properties.push('invalid value for "
|
163
|
+
if @attachments.nil?
|
164
|
+
invalid_properties.push('invalid value for "attachments", attachments cannot be nil.')
|
169
165
|
end
|
170
166
|
|
171
167
|
if @user_id.nil?
|
172
168
|
invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
|
173
169
|
end
|
174
170
|
|
175
|
-
if @
|
176
|
-
invalid_properties.push('invalid value for "
|
171
|
+
if @inbox_id.nil?
|
172
|
+
invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
|
177
173
|
end
|
178
174
|
|
179
175
|
if @to.nil?
|
@@ -188,6 +184,10 @@ module MailSlurpClient
|
|
188
184
|
invalid_properties.push('invalid value for "cc", cc cannot be nil.')
|
189
185
|
end
|
190
186
|
|
187
|
+
if @created_at.nil?
|
188
|
+
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
189
|
+
end
|
190
|
+
|
191
191
|
if @virtual_send.nil?
|
192
192
|
invalid_properties.push('invalid value for "virtual_send", virtual_send cannot be nil.')
|
193
193
|
end
|
@@ -198,14 +198,14 @@ module MailSlurpClient
|
|
198
198
|
# Check to see if the all the properties in the model are valid
|
199
199
|
# @return true if the model is valid
|
200
200
|
def valid?
|
201
|
-
return false if @created_at.nil?
|
202
201
|
return false if @id.nil?
|
203
|
-
return false if @inbox_id.nil?
|
204
|
-
return false if @user_id.nil?
|
205
202
|
return false if @attachments.nil?
|
203
|
+
return false if @user_id.nil?
|
204
|
+
return false if @inbox_id.nil?
|
206
205
|
return false if @to.nil?
|
207
206
|
return false if @bcc.nil?
|
208
207
|
return false if @cc.nil?
|
208
|
+
return false if @created_at.nil?
|
209
209
|
return false if @virtual_send.nil?
|
210
210
|
true
|
211
211
|
end
|
@@ -215,16 +215,16 @@ module MailSlurpClient
|
|
215
215
|
def ==(o)
|
216
216
|
return true if self.equal?(o)
|
217
217
|
self.class == o.class &&
|
218
|
-
created_at == o.created_at &&
|
219
218
|
id == o.id &&
|
220
219
|
from == o.from &&
|
221
220
|
subject == o.subject &&
|
222
|
-
inbox_id == o.inbox_id &&
|
223
|
-
user_id == o.user_id &&
|
224
221
|
attachments == o.attachments &&
|
222
|
+
user_id == o.user_id &&
|
223
|
+
inbox_id == o.inbox_id &&
|
225
224
|
to == o.to &&
|
226
225
|
bcc == o.bcc &&
|
227
226
|
cc == o.cc &&
|
227
|
+
created_at == o.created_at &&
|
228
228
|
body_md5_hash == o.body_md5_hash &&
|
229
229
|
virtual_send == o.virtual_send
|
230
230
|
end
|
@@ -238,7 +238,7 @@ module MailSlurpClient
|
|
238
238
|
# Calculates hash code according to all attributes.
|
239
239
|
# @return [Integer] Hash code
|
240
240
|
def hash
|
241
|
-
[
|
241
|
+
[id, from, subject, attachments, user_id, inbox_id, to, bcc, cc, created_at, body_md5_hash, virtual_send].hash
|
242
242
|
end
|
243
243
|
|
244
244
|
# Builds the object from hash
|
@@ -15,10 +15,6 @@ require 'date'
|
|
15
15
|
module MailSlurpClient
|
16
16
|
# SMS projection
|
17
17
|
class SmsProjection
|
18
|
-
attr_accessor :body
|
19
|
-
|
20
|
-
attr_accessor :created_at
|
21
|
-
|
22
18
|
attr_accessor :user_id
|
23
19
|
|
24
20
|
attr_accessor :phone_number
|
@@ -27,17 +23,21 @@ module MailSlurpClient
|
|
27
23
|
|
28
24
|
attr_accessor :read
|
29
25
|
|
26
|
+
attr_accessor :body
|
27
|
+
|
28
|
+
attr_accessor :created_at
|
29
|
+
|
30
30
|
attr_accessor :id
|
31
31
|
|
32
32
|
# Attribute mapping from ruby-style variable name to JSON key.
|
33
33
|
def self.attribute_map
|
34
34
|
{
|
35
|
-
:'body' => :'body',
|
36
|
-
:'created_at' => :'createdAt',
|
37
35
|
:'user_id' => :'userId',
|
38
36
|
:'phone_number' => :'phoneNumber',
|
39
37
|
:'from_number' => :'fromNumber',
|
40
38
|
:'read' => :'read',
|
39
|
+
:'body' => :'body',
|
40
|
+
:'created_at' => :'createdAt',
|
41
41
|
:'id' => :'id'
|
42
42
|
}
|
43
43
|
end
|
@@ -45,12 +45,12 @@ module MailSlurpClient
|
|
45
45
|
# Attribute type mapping.
|
46
46
|
def self.openapi_types
|
47
47
|
{
|
48
|
-
:'body' => :'String',
|
49
|
-
:'created_at' => :'DateTime',
|
50
48
|
:'user_id' => :'String',
|
51
49
|
:'phone_number' => :'String',
|
52
50
|
:'from_number' => :'String',
|
53
51
|
:'read' => :'Boolean',
|
52
|
+
:'body' => :'String',
|
53
|
+
:'created_at' => :'DateTime',
|
54
54
|
:'id' => :'String'
|
55
55
|
}
|
56
56
|
end
|
@@ -76,14 +76,6 @@ module MailSlurpClient
|
|
76
76
|
h[k.to_sym] = v
|
77
77
|
}
|
78
78
|
|
79
|
-
if attributes.key?(:'body')
|
80
|
-
self.body = attributes[:'body']
|
81
|
-
end
|
82
|
-
|
83
|
-
if attributes.key?(:'created_at')
|
84
|
-
self.created_at = attributes[:'created_at']
|
85
|
-
end
|
86
|
-
|
87
79
|
if attributes.key?(:'user_id')
|
88
80
|
self.user_id = attributes[:'user_id']
|
89
81
|
end
|
@@ -100,6 +92,14 @@ module MailSlurpClient
|
|
100
92
|
self.read = attributes[:'read']
|
101
93
|
end
|
102
94
|
|
95
|
+
if attributes.key?(:'body')
|
96
|
+
self.body = attributes[:'body']
|
97
|
+
end
|
98
|
+
|
99
|
+
if attributes.key?(:'created_at')
|
100
|
+
self.created_at = attributes[:'created_at']
|
101
|
+
end
|
102
|
+
|
103
103
|
if attributes.key?(:'id')
|
104
104
|
self.id = attributes[:'id']
|
105
105
|
end
|
@@ -109,14 +109,6 @@ module MailSlurpClient
|
|
109
109
|
# @return Array for valid properties with the reasons
|
110
110
|
def list_invalid_properties
|
111
111
|
invalid_properties = Array.new
|
112
|
-
if @body.nil?
|
113
|
-
invalid_properties.push('invalid value for "body", body cannot be nil.')
|
114
|
-
end
|
115
|
-
|
116
|
-
if @created_at.nil?
|
117
|
-
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
118
|
-
end
|
119
|
-
|
120
112
|
if @user_id.nil?
|
121
113
|
invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
|
122
114
|
end
|
@@ -133,6 +125,14 @@ module MailSlurpClient
|
|
133
125
|
invalid_properties.push('invalid value for "read", read cannot be nil.')
|
134
126
|
end
|
135
127
|
|
128
|
+
if @body.nil?
|
129
|
+
invalid_properties.push('invalid value for "body", body cannot be nil.')
|
130
|
+
end
|
131
|
+
|
132
|
+
if @created_at.nil?
|
133
|
+
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
134
|
+
end
|
135
|
+
|
136
136
|
if @id.nil?
|
137
137
|
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
138
138
|
end
|
@@ -143,12 +143,12 @@ module MailSlurpClient
|
|
143
143
|
# Check to see if the all the properties in the model are valid
|
144
144
|
# @return true if the model is valid
|
145
145
|
def valid?
|
146
|
-
return false if @body.nil?
|
147
|
-
return false if @created_at.nil?
|
148
146
|
return false if @user_id.nil?
|
149
147
|
return false if @phone_number.nil?
|
150
148
|
return false if @from_number.nil?
|
151
149
|
return false if @read.nil?
|
150
|
+
return false if @body.nil?
|
151
|
+
return false if @created_at.nil?
|
152
152
|
return false if @id.nil?
|
153
153
|
true
|
154
154
|
end
|
@@ -158,12 +158,12 @@ module MailSlurpClient
|
|
158
158
|
def ==(o)
|
159
159
|
return true if self.equal?(o)
|
160
160
|
self.class == o.class &&
|
161
|
-
body == o.body &&
|
162
|
-
created_at == o.created_at &&
|
163
161
|
user_id == o.user_id &&
|
164
162
|
phone_number == o.phone_number &&
|
165
163
|
from_number == o.from_number &&
|
166
164
|
read == o.read &&
|
165
|
+
body == o.body &&
|
166
|
+
created_at == o.created_at &&
|
167
167
|
id == o.id
|
168
168
|
end
|
169
169
|
|
@@ -176,7 +176,7 @@ module MailSlurpClient
|
|
176
176
|
# Calculates hash code according to all attributes.
|
177
177
|
# @return [Integer] Hash code
|
178
178
|
def hash
|
179
|
-
[
|
179
|
+
[user_id, phone_number, from_number, read, body, created_at, id].hash
|
180
180
|
end
|
181
181
|
|
182
182
|
# Builds the object from hash
|
@@ -15,12 +15,12 @@ require 'date'
|
|
15
15
|
module MailSlurpClient
|
16
16
|
# Email template data
|
17
17
|
class TemplateProjection
|
18
|
+
attr_accessor :variables
|
19
|
+
|
18
20
|
attr_accessor :created_at
|
19
21
|
|
20
22
|
attr_accessor :updated_at
|
21
23
|
|
22
|
-
attr_accessor :variables
|
23
|
-
|
24
24
|
attr_accessor :name
|
25
25
|
|
26
26
|
attr_accessor :id
|
@@ -28,9 +28,9 @@ module MailSlurpClient
|
|
28
28
|
# Attribute mapping from ruby-style variable name to JSON key.
|
29
29
|
def self.attribute_map
|
30
30
|
{
|
31
|
+
:'variables' => :'variables',
|
31
32
|
:'created_at' => :'createdAt',
|
32
33
|
:'updated_at' => :'updatedAt',
|
33
|
-
:'variables' => :'variables',
|
34
34
|
:'name' => :'name',
|
35
35
|
:'id' => :'id'
|
36
36
|
}
|
@@ -39,9 +39,9 @@ module MailSlurpClient
|
|
39
39
|
# Attribute type mapping.
|
40
40
|
def self.openapi_types
|
41
41
|
{
|
42
|
+
:'variables' => :'Array<String>',
|
42
43
|
:'created_at' => :'DateTime',
|
43
44
|
:'updated_at' => :'DateTime',
|
44
|
-
:'variables' => :'Array<String>',
|
45
45
|
:'name' => :'String',
|
46
46
|
:'id' => :'String'
|
47
47
|
}
|
@@ -68,6 +68,12 @@ module MailSlurpClient
|
|
68
68
|
h[k.to_sym] = v
|
69
69
|
}
|
70
70
|
|
71
|
+
if attributes.key?(:'variables')
|
72
|
+
if (value = attributes[:'variables']).is_a?(Array)
|
73
|
+
self.variables = value
|
74
|
+
end
|
75
|
+
end
|
76
|
+
|
71
77
|
if attributes.key?(:'created_at')
|
72
78
|
self.created_at = attributes[:'created_at']
|
73
79
|
end
|
@@ -76,12 +82,6 @@ module MailSlurpClient
|
|
76
82
|
self.updated_at = attributes[:'updated_at']
|
77
83
|
end
|
78
84
|
|
79
|
-
if attributes.key?(:'variables')
|
80
|
-
if (value = attributes[:'variables']).is_a?(Array)
|
81
|
-
self.variables = value
|
82
|
-
end
|
83
|
-
end
|
84
|
-
|
85
85
|
if attributes.key?(:'name')
|
86
86
|
self.name = attributes[:'name']
|
87
87
|
end
|
@@ -95,6 +95,10 @@ module MailSlurpClient
|
|
95
95
|
# @return Array for valid properties with the reasons
|
96
96
|
def list_invalid_properties
|
97
97
|
invalid_properties = Array.new
|
98
|
+
if @variables.nil?
|
99
|
+
invalid_properties.push('invalid value for "variables", variables cannot be nil.')
|
100
|
+
end
|
101
|
+
|
98
102
|
if @created_at.nil?
|
99
103
|
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
100
104
|
end
|
@@ -103,10 +107,6 @@ module MailSlurpClient
|
|
103
107
|
invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
|
104
108
|
end
|
105
109
|
|
106
|
-
if @variables.nil?
|
107
|
-
invalid_properties.push('invalid value for "variables", variables cannot be nil.')
|
108
|
-
end
|
109
|
-
|
110
110
|
if @name.nil?
|
111
111
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
112
112
|
end
|
@@ -121,9 +121,9 @@ module MailSlurpClient
|
|
121
121
|
# Check to see if the all the properties in the model are valid
|
122
122
|
# @return true if the model is valid
|
123
123
|
def valid?
|
124
|
+
return false if @variables.nil?
|
124
125
|
return false if @created_at.nil?
|
125
126
|
return false if @updated_at.nil?
|
126
|
-
return false if @variables.nil?
|
127
127
|
return false if @name.nil?
|
128
128
|
return false if @id.nil?
|
129
129
|
true
|
@@ -134,9 +134,9 @@ module MailSlurpClient
|
|
134
134
|
def ==(o)
|
135
135
|
return true if self.equal?(o)
|
136
136
|
self.class == o.class &&
|
137
|
+
variables == o.variables &&
|
137
138
|
created_at == o.created_at &&
|
138
139
|
updated_at == o.updated_at &&
|
139
|
-
variables == o.variables &&
|
140
140
|
name == o.name &&
|
141
141
|
id == o.id
|
142
142
|
end
|
@@ -150,7 +150,7 @@ module MailSlurpClient
|
|
150
150
|
# Calculates hash code according to all attributes.
|
151
151
|
# @return [Integer] Hash code
|
152
152
|
def hash
|
153
|
-
[created_at, updated_at,
|
153
|
+
[variables, created_at, updated_at, name, id].hash
|
154
154
|
end
|
155
155
|
|
156
156
|
# Builds the object from hash
|
@@ -15,18 +15,12 @@ require 'date'
|
|
15
15
|
module MailSlurpClient
|
16
16
|
# A thread is a message thread created for a message received by an alias
|
17
17
|
class ThreadProjection
|
18
|
-
#
|
19
|
-
attr_accessor :
|
20
|
-
|
21
|
-
# Updated at DateTime
|
22
|
-
attr_accessor :updated_at
|
18
|
+
# User ID
|
19
|
+
attr_accessor :user_id
|
23
20
|
|
24
21
|
# Inbox ID
|
25
22
|
attr_accessor :inbox_id
|
26
23
|
|
27
|
-
# User ID
|
28
|
-
attr_accessor :user_id
|
29
|
-
|
30
24
|
# To recipients
|
31
25
|
attr_accessor :to
|
32
26
|
|
@@ -39,6 +33,12 @@ module MailSlurpClient
|
|
39
33
|
# Alias ID
|
40
34
|
attr_accessor :alias_id
|
41
35
|
|
36
|
+
# Created at DateTime
|
37
|
+
attr_accessor :created_at
|
38
|
+
|
39
|
+
# Updated at DateTime
|
40
|
+
attr_accessor :updated_at
|
41
|
+
|
42
42
|
# Thread subject
|
43
43
|
attr_accessor :subject
|
44
44
|
|
@@ -51,14 +51,14 @@ module MailSlurpClient
|
|
51
51
|
# Attribute mapping from ruby-style variable name to JSON key.
|
52
52
|
def self.attribute_map
|
53
53
|
{
|
54
|
-
:'created_at' => :'createdAt',
|
55
|
-
:'updated_at' => :'updatedAt',
|
56
|
-
:'inbox_id' => :'inboxId',
|
57
54
|
:'user_id' => :'userId',
|
55
|
+
:'inbox_id' => :'inboxId',
|
58
56
|
:'to' => :'to',
|
59
57
|
:'bcc' => :'bcc',
|
60
58
|
:'cc' => :'cc',
|
61
59
|
:'alias_id' => :'aliasId',
|
60
|
+
:'created_at' => :'createdAt',
|
61
|
+
:'updated_at' => :'updatedAt',
|
62
62
|
:'subject' => :'subject',
|
63
63
|
:'name' => :'name',
|
64
64
|
:'id' => :'id'
|
@@ -68,14 +68,14 @@ module MailSlurpClient
|
|
68
68
|
# Attribute type mapping.
|
69
69
|
def self.openapi_types
|
70
70
|
{
|
71
|
-
:'created_at' => :'DateTime',
|
72
|
-
:'updated_at' => :'DateTime',
|
73
|
-
:'inbox_id' => :'String',
|
74
71
|
:'user_id' => :'String',
|
72
|
+
:'inbox_id' => :'String',
|
75
73
|
:'to' => :'Array<String>',
|
76
74
|
:'bcc' => :'Array<String>',
|
77
75
|
:'cc' => :'Array<String>',
|
78
76
|
:'alias_id' => :'String',
|
77
|
+
:'created_at' => :'DateTime',
|
78
|
+
:'updated_at' => :'DateTime',
|
79
79
|
:'subject' => :'String',
|
80
80
|
:'name' => :'String',
|
81
81
|
:'id' => :'String'
|
@@ -103,22 +103,14 @@ module MailSlurpClient
|
|
103
103
|
h[k.to_sym] = v
|
104
104
|
}
|
105
105
|
|
106
|
-
if attributes.key?(:'
|
107
|
-
self.
|
108
|
-
end
|
109
|
-
|
110
|
-
if attributes.key?(:'updated_at')
|
111
|
-
self.updated_at = attributes[:'updated_at']
|
106
|
+
if attributes.key?(:'user_id')
|
107
|
+
self.user_id = attributes[:'user_id']
|
112
108
|
end
|
113
109
|
|
114
110
|
if attributes.key?(:'inbox_id')
|
115
111
|
self.inbox_id = attributes[:'inbox_id']
|
116
112
|
end
|
117
113
|
|
118
|
-
if attributes.key?(:'user_id')
|
119
|
-
self.user_id = attributes[:'user_id']
|
120
|
-
end
|
121
|
-
|
122
114
|
if attributes.key?(:'to')
|
123
115
|
if (value = attributes[:'to']).is_a?(Array)
|
124
116
|
self.to = value
|
@@ -141,6 +133,14 @@ module MailSlurpClient
|
|
141
133
|
self.alias_id = attributes[:'alias_id']
|
142
134
|
end
|
143
135
|
|
136
|
+
if attributes.key?(:'created_at')
|
137
|
+
self.created_at = attributes[:'created_at']
|
138
|
+
end
|
139
|
+
|
140
|
+
if attributes.key?(:'updated_at')
|
141
|
+
self.updated_at = attributes[:'updated_at']
|
142
|
+
end
|
143
|
+
|
144
144
|
if attributes.key?(:'subject')
|
145
145
|
self.subject = attributes[:'subject']
|
146
146
|
end
|
@@ -158,22 +158,14 @@ module MailSlurpClient
|
|
158
158
|
# @return Array for valid properties with the reasons
|
159
159
|
def list_invalid_properties
|
160
160
|
invalid_properties = Array.new
|
161
|
-
if @
|
162
|
-
invalid_properties.push('invalid value for "
|
163
|
-
end
|
164
|
-
|
165
|
-
if @updated_at.nil?
|
166
|
-
invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
|
161
|
+
if @user_id.nil?
|
162
|
+
invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
|
167
163
|
end
|
168
164
|
|
169
165
|
if @inbox_id.nil?
|
170
166
|
invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
|
171
167
|
end
|
172
168
|
|
173
|
-
if @user_id.nil?
|
174
|
-
invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
|
175
|
-
end
|
176
|
-
|
177
169
|
if @to.nil?
|
178
170
|
invalid_properties.push('invalid value for "to", to cannot be nil.')
|
179
171
|
end
|
@@ -182,6 +174,14 @@ module MailSlurpClient
|
|
182
174
|
invalid_properties.push('invalid value for "alias_id", alias_id cannot be nil.')
|
183
175
|
end
|
184
176
|
|
177
|
+
if @created_at.nil?
|
178
|
+
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
179
|
+
end
|
180
|
+
|
181
|
+
if @updated_at.nil?
|
182
|
+
invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
|
183
|
+
end
|
184
|
+
|
185
185
|
if @id.nil?
|
186
186
|
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
187
187
|
end
|
@@ -192,12 +192,12 @@ module MailSlurpClient
|
|
192
192
|
# Check to see if the all the properties in the model are valid
|
193
193
|
# @return true if the model is valid
|
194
194
|
def valid?
|
195
|
-
return false if @created_at.nil?
|
196
|
-
return false if @updated_at.nil?
|
197
|
-
return false if @inbox_id.nil?
|
198
195
|
return false if @user_id.nil?
|
196
|
+
return false if @inbox_id.nil?
|
199
197
|
return false if @to.nil?
|
200
198
|
return false if @alias_id.nil?
|
199
|
+
return false if @created_at.nil?
|
200
|
+
return false if @updated_at.nil?
|
201
201
|
return false if @id.nil?
|
202
202
|
true
|
203
203
|
end
|
@@ -207,14 +207,14 @@ module MailSlurpClient
|
|
207
207
|
def ==(o)
|
208
208
|
return true if self.equal?(o)
|
209
209
|
self.class == o.class &&
|
210
|
-
created_at == o.created_at &&
|
211
|
-
updated_at == o.updated_at &&
|
212
|
-
inbox_id == o.inbox_id &&
|
213
210
|
user_id == o.user_id &&
|
211
|
+
inbox_id == o.inbox_id &&
|
214
212
|
to == o.to &&
|
215
213
|
bcc == o.bcc &&
|
216
214
|
cc == o.cc &&
|
217
215
|
alias_id == o.alias_id &&
|
216
|
+
created_at == o.created_at &&
|
217
|
+
updated_at == o.updated_at &&
|
218
218
|
subject == o.subject &&
|
219
219
|
name == o.name &&
|
220
220
|
id == o.id
|
@@ -229,7 +229,7 @@ module MailSlurpClient
|
|
229
229
|
# Calculates hash code according to all attributes.
|
230
230
|
# @return [Integer] Hash code
|
231
231
|
def hash
|
232
|
-
[
|
232
|
+
[user_id, inbox_id, to, bcc, cc, alias_id, created_at, updated_at, subject, name, id].hash
|
233
233
|
end
|
234
234
|
|
235
235
|
# Builds the object from hash
|