mailslurp_client 15.7.17 → 15.9.0
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/form_controller_api.rb +2 -2
- data/lib/mailslurp_client/api/inbox_controller_api.rb +2 -2
- data/lib/mailslurp_client/api/template_controller_api.rb +28 -16
- data/lib/mailslurp_client/api/webhook_controller_api.rb +68 -10
- data/lib/mailslurp_client/configuration.rb +2 -2
- data/lib/mailslurp_client/models/abstract_webhook_payload.rb +15 -15
- data/lib/mailslurp_client/models/alias_projection.rb +33 -33
- data/lib/mailslurp_client/models/attachment_projection.rb +28 -28
- data/lib/mailslurp_client/models/contact_projection.rb +13 -13
- data/lib/mailslurp_client/models/create_template_options.rb +3 -1
- data/lib/mailslurp_client/models/create_webhook_options.rb +1 -1
- data/lib/mailslurp_client/models/email_projection.rb +15 -15
- data/lib/mailslurp_client/models/expired_inbox_record_projection.rb +19 -19
- data/lib/mailslurp_client/models/flush_expired_inboxes_result.rb +2 -0
- data/lib/mailslurp_client/models/missed_email_projection.rb +13 -13
- data/lib/mailslurp_client/models/page_alias.rb +19 -19
- data/lib/mailslurp_client/models/page_attachment_entity.rb +19 -19
- data/lib/mailslurp_client/models/page_bounced_email.rb +19 -19
- data/lib/mailslurp_client/models/page_bounced_recipients.rb +19 -19
- data/lib/mailslurp_client/models/page_contact_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_email_preview.rb +19 -19
- data/lib/mailslurp_client/models/page_email_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_email_validation_request.rb +19 -19
- data/lib/mailslurp_client/models/page_expired_inbox_record_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_group_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_inbox_forwarder_dto.rb +19 -19
- data/lib/mailslurp_client/models/page_inbox_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_inbox_ruleset_dto.rb +19 -19
- data/lib/mailslurp_client/models/page_missed_email_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_organization_inbox_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_template_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_thread_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_tracking_pixel_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_unknown_missed_email_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_webhook_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_webhook_result.rb +19 -19
- data/lib/mailslurp_client/models/sent_email_projection.rb +26 -26
- data/lib/mailslurp_client/models/template_dto.rb +5 -0
- data/lib/mailslurp_client/models/template_variable.rb +2 -0
- data/lib/mailslurp_client/models/thread_projection.rb +35 -24
- data/lib/mailslurp_client/models/tracking_pixel_projection.rb +18 -18
- data/lib/mailslurp_client/models/unknown_missed_email_projection.rb +13 -13
- data/lib/mailslurp_client/models/verify_webhook_signature_options.rb +225 -0
- data/lib/mailslurp_client/models/verify_webhook_signature_results.rb +211 -0
- data/lib/mailslurp_client/models/webhook_dto.rb +1 -1
- data/lib/mailslurp_client/models/webhook_projection.rb +11 -11
- data/lib/mailslurp_client/version.rb +1 -1
- data/lib/mailslurp_client.rb +2 -0
- metadata +4 -2
@@ -21,22 +21,22 @@ module MailSlurpClient
|
|
21
21
|
|
22
22
|
attr_accessor :total
|
23
23
|
|
24
|
-
attr_accessor :last
|
25
|
-
|
26
24
|
attr_accessor :total_elements
|
27
25
|
|
28
26
|
attr_accessor :total_pages
|
29
27
|
|
28
|
+
attr_accessor :last
|
29
|
+
|
30
30
|
attr_accessor :size
|
31
31
|
|
32
32
|
attr_accessor :number
|
33
33
|
|
34
34
|
attr_accessor :sort
|
35
35
|
|
36
|
-
attr_accessor :first
|
37
|
-
|
38
36
|
attr_accessor :number_of_elements
|
39
37
|
|
38
|
+
attr_accessor :first
|
39
|
+
|
40
40
|
attr_accessor :empty
|
41
41
|
|
42
42
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -45,14 +45,14 @@ module MailSlurpClient
|
|
45
45
|
:'content' => :'content',
|
46
46
|
:'pageable' => :'pageable',
|
47
47
|
:'total' => :'total',
|
48
|
-
:'last' => :'last',
|
49
48
|
:'total_elements' => :'totalElements',
|
50
49
|
:'total_pages' => :'totalPages',
|
50
|
+
:'last' => :'last',
|
51
51
|
:'size' => :'size',
|
52
52
|
:'number' => :'number',
|
53
53
|
:'sort' => :'sort',
|
54
|
-
:'first' => :'first',
|
55
54
|
:'number_of_elements' => :'numberOfElements',
|
55
|
+
:'first' => :'first',
|
56
56
|
:'empty' => :'empty'
|
57
57
|
}
|
58
58
|
end
|
@@ -63,14 +63,14 @@ module MailSlurpClient
|
|
63
63
|
:'content' => :'Array<WebhookResultDto>',
|
64
64
|
:'pageable' => :'PageableObject',
|
65
65
|
:'total' => :'Integer',
|
66
|
-
:'last' => :'Boolean',
|
67
66
|
:'total_elements' => :'Integer',
|
68
67
|
:'total_pages' => :'Integer',
|
68
|
+
:'last' => :'Boolean',
|
69
69
|
:'size' => :'Integer',
|
70
70
|
:'number' => :'Integer',
|
71
71
|
:'sort' => :'Sort',
|
72
|
-
:'first' => :'Boolean',
|
73
72
|
:'number_of_elements' => :'Integer',
|
73
|
+
:'first' => :'Boolean',
|
74
74
|
:'empty' => :'Boolean'
|
75
75
|
}
|
76
76
|
end
|
@@ -110,10 +110,6 @@ module MailSlurpClient
|
|
110
110
|
self.total = attributes[:'total']
|
111
111
|
end
|
112
112
|
|
113
|
-
if attributes.key?(:'last')
|
114
|
-
self.last = attributes[:'last']
|
115
|
-
end
|
116
|
-
|
117
113
|
if attributes.key?(:'total_elements')
|
118
114
|
self.total_elements = attributes[:'total_elements']
|
119
115
|
end
|
@@ -122,6 +118,10 @@ module MailSlurpClient
|
|
122
118
|
self.total_pages = attributes[:'total_pages']
|
123
119
|
end
|
124
120
|
|
121
|
+
if attributes.key?(:'last')
|
122
|
+
self.last = attributes[:'last']
|
123
|
+
end
|
124
|
+
|
125
125
|
if attributes.key?(:'size')
|
126
126
|
self.size = attributes[:'size']
|
127
127
|
end
|
@@ -134,14 +134,14 @@ module MailSlurpClient
|
|
134
134
|
self.sort = attributes[:'sort']
|
135
135
|
end
|
136
136
|
|
137
|
-
if attributes.key?(:'first')
|
138
|
-
self.first = attributes[:'first']
|
139
|
-
end
|
140
|
-
|
141
137
|
if attributes.key?(:'number_of_elements')
|
142
138
|
self.number_of_elements = attributes[:'number_of_elements']
|
143
139
|
end
|
144
140
|
|
141
|
+
if attributes.key?(:'first')
|
142
|
+
self.first = attributes[:'first']
|
143
|
+
end
|
144
|
+
|
145
145
|
if attributes.key?(:'empty')
|
146
146
|
self.empty = attributes[:'empty']
|
147
147
|
end
|
@@ -168,14 +168,14 @@ module MailSlurpClient
|
|
168
168
|
content == o.content &&
|
169
169
|
pageable == o.pageable &&
|
170
170
|
total == o.total &&
|
171
|
-
last == o.last &&
|
172
171
|
total_elements == o.total_elements &&
|
173
172
|
total_pages == o.total_pages &&
|
173
|
+
last == o.last &&
|
174
174
|
size == o.size &&
|
175
175
|
number == o.number &&
|
176
176
|
sort == o.sort &&
|
177
|
-
first == o.first &&
|
178
177
|
number_of_elements == o.number_of_elements &&
|
178
|
+
first == o.first &&
|
179
179
|
empty == o.empty
|
180
180
|
end
|
181
181
|
|
@@ -188,7 +188,7 @@ module MailSlurpClient
|
|
188
188
|
# Calculates hash code according to all attributes.
|
189
189
|
# @return [Integer] Hash code
|
190
190
|
def hash
|
191
|
-
[content, pageable, total,
|
191
|
+
[content, pageable, total, total_elements, total_pages, last, size, number, sort, number_of_elements, first, empty].hash
|
192
192
|
end
|
193
193
|
|
194
194
|
# Builds the object from hash
|
@@ -23,18 +23,18 @@ module MailSlurpClient
|
|
23
23
|
|
24
24
|
attr_accessor :subject
|
25
25
|
|
26
|
-
attr_accessor :
|
26
|
+
attr_accessor :attachments
|
27
27
|
|
28
28
|
attr_accessor :inbox_id
|
29
29
|
|
30
|
-
attr_accessor :attachments
|
31
|
-
|
32
30
|
attr_accessor :to
|
33
31
|
|
34
32
|
attr_accessor :bcc
|
35
33
|
|
36
34
|
attr_accessor :cc
|
37
35
|
|
36
|
+
attr_accessor :created_at
|
37
|
+
|
38
38
|
attr_accessor :body_md5_hash
|
39
39
|
|
40
40
|
attr_accessor :virtual_send
|
@@ -46,12 +46,12 @@ module MailSlurpClient
|
|
46
46
|
:'from' => :'from',
|
47
47
|
:'user_id' => :'userId',
|
48
48
|
:'subject' => :'subject',
|
49
|
-
:'created_at' => :'createdAt',
|
50
|
-
:'inbox_id' => :'inboxId',
|
51
49
|
:'attachments' => :'attachments',
|
50
|
+
:'inbox_id' => :'inboxId',
|
52
51
|
:'to' => :'to',
|
53
52
|
:'bcc' => :'bcc',
|
54
53
|
:'cc' => :'cc',
|
54
|
+
:'created_at' => :'createdAt',
|
55
55
|
:'body_md5_hash' => :'bodyMD5Hash',
|
56
56
|
:'virtual_send' => :'virtualSend'
|
57
57
|
}
|
@@ -64,12 +64,12 @@ module MailSlurpClient
|
|
64
64
|
:'from' => :'String',
|
65
65
|
:'user_id' => :'String',
|
66
66
|
:'subject' => :'String',
|
67
|
-
:'created_at' => :'DateTime',
|
68
|
-
:'inbox_id' => :'String',
|
69
67
|
:'attachments' => :'Array<String>',
|
68
|
+
:'inbox_id' => :'String',
|
70
69
|
:'to' => :'Array<String>',
|
71
70
|
:'bcc' => :'Array<String>',
|
72
71
|
:'cc' => :'Array<String>',
|
72
|
+
:'created_at' => :'DateTime',
|
73
73
|
:'body_md5_hash' => :'String',
|
74
74
|
:'virtual_send' => :'Boolean'
|
75
75
|
}
|
@@ -112,20 +112,16 @@ module MailSlurpClient
|
|
112
112
|
self.subject = attributes[:'subject']
|
113
113
|
end
|
114
114
|
|
115
|
-
if attributes.key?(:'created_at')
|
116
|
-
self.created_at = attributes[:'created_at']
|
117
|
-
end
|
118
|
-
|
119
|
-
if attributes.key?(:'inbox_id')
|
120
|
-
self.inbox_id = attributes[:'inbox_id']
|
121
|
-
end
|
122
|
-
|
123
115
|
if attributes.key?(:'attachments')
|
124
116
|
if (value = attributes[:'attachments']).is_a?(Array)
|
125
117
|
self.attachments = value
|
126
118
|
end
|
127
119
|
end
|
128
120
|
|
121
|
+
if attributes.key?(:'inbox_id')
|
122
|
+
self.inbox_id = attributes[:'inbox_id']
|
123
|
+
end
|
124
|
+
|
129
125
|
if attributes.key?(:'to')
|
130
126
|
if (value = attributes[:'to']).is_a?(Array)
|
131
127
|
self.to = value
|
@@ -144,6 +140,10 @@ module MailSlurpClient
|
|
144
140
|
end
|
145
141
|
end
|
146
142
|
|
143
|
+
if attributes.key?(:'created_at')
|
144
|
+
self.created_at = attributes[:'created_at']
|
145
|
+
end
|
146
|
+
|
147
147
|
if attributes.key?(:'body_md5_hash')
|
148
148
|
self.body_md5_hash = attributes[:'body_md5_hash']
|
149
149
|
end
|
@@ -165,18 +165,14 @@ module MailSlurpClient
|
|
165
165
|
invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
|
166
166
|
end
|
167
167
|
|
168
|
-
if @
|
169
|
-
invalid_properties.push('invalid value for "
|
168
|
+
if @attachments.nil?
|
169
|
+
invalid_properties.push('invalid value for "attachments", attachments cannot be nil.')
|
170
170
|
end
|
171
171
|
|
172
172
|
if @inbox_id.nil?
|
173
173
|
invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
|
174
174
|
end
|
175
175
|
|
176
|
-
if @attachments.nil?
|
177
|
-
invalid_properties.push('invalid value for "attachments", attachments cannot be nil.')
|
178
|
-
end
|
179
|
-
|
180
176
|
if @to.nil?
|
181
177
|
invalid_properties.push('invalid value for "to", to cannot be nil.')
|
182
178
|
end
|
@@ -189,6 +185,10 @@ module MailSlurpClient
|
|
189
185
|
invalid_properties.push('invalid value for "cc", cc cannot be nil.')
|
190
186
|
end
|
191
187
|
|
188
|
+
if @created_at.nil?
|
189
|
+
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
190
|
+
end
|
191
|
+
|
192
192
|
invalid_properties
|
193
193
|
end
|
194
194
|
|
@@ -197,12 +197,12 @@ module MailSlurpClient
|
|
197
197
|
def valid?
|
198
198
|
return false if @id.nil?
|
199
199
|
return false if @user_id.nil?
|
200
|
-
return false if @created_at.nil?
|
201
|
-
return false if @inbox_id.nil?
|
202
200
|
return false if @attachments.nil?
|
201
|
+
return false if @inbox_id.nil?
|
203
202
|
return false if @to.nil?
|
204
203
|
return false if @bcc.nil?
|
205
204
|
return false if @cc.nil?
|
205
|
+
return false if @created_at.nil?
|
206
206
|
true
|
207
207
|
end
|
208
208
|
|
@@ -215,12 +215,12 @@ module MailSlurpClient
|
|
215
215
|
from == o.from &&
|
216
216
|
user_id == o.user_id &&
|
217
217
|
subject == o.subject &&
|
218
|
-
created_at == o.created_at &&
|
219
|
-
inbox_id == o.inbox_id &&
|
220
218
|
attachments == o.attachments &&
|
219
|
+
inbox_id == o.inbox_id &&
|
221
220
|
to == o.to &&
|
222
221
|
bcc == o.bcc &&
|
223
222
|
cc == o.cc &&
|
223
|
+
created_at == o.created_at &&
|
224
224
|
body_md5_hash == o.body_md5_hash &&
|
225
225
|
virtual_send == o.virtual_send
|
226
226
|
end
|
@@ -234,7 +234,7 @@ module MailSlurpClient
|
|
234
234
|
# Calculates hash code according to all attributes.
|
235
235
|
# @return [Integer] Hash code
|
236
236
|
def hash
|
237
|
-
[id, from, user_id, subject,
|
237
|
+
[id, from, user_id, subject, attachments, inbox_id, to, bcc, cc, created_at, body_md5_hash, virtual_send].hash
|
238
238
|
end
|
239
239
|
|
240
240
|
# Builds the object from hash
|
@@ -15,14 +15,19 @@ require 'date'
|
|
15
15
|
module MailSlurpClient
|
16
16
|
# Email template
|
17
17
|
class TemplateDto
|
18
|
+
# ID of template
|
18
19
|
attr_accessor :id
|
19
20
|
|
21
|
+
# Template name
|
20
22
|
attr_accessor :name
|
21
23
|
|
24
|
+
# Variables available in template that can be replaced with values
|
22
25
|
attr_accessor :variables
|
23
26
|
|
27
|
+
# Content of the template
|
24
28
|
attr_accessor :content
|
25
29
|
|
30
|
+
# Created at time
|
26
31
|
attr_accessor :created_at
|
27
32
|
|
28
33
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -15,8 +15,10 @@ require 'date'
|
|
15
15
|
module MailSlurpClient
|
16
16
|
# Variable for use with email template
|
17
17
|
class TemplateVariable
|
18
|
+
# Name of variable. This can be used in a template as {{name}}
|
18
19
|
attr_accessor :name
|
19
20
|
|
21
|
+
# The type of variable
|
20
22
|
attr_accessor :variable_type
|
21
23
|
|
22
24
|
class EnumAttributeValidator
|
@@ -15,26 +15,37 @@ 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
|
+
# Name of thread
|
18
19
|
attr_accessor :name
|
19
20
|
|
21
|
+
# ID of email thread
|
20
22
|
attr_accessor :id
|
21
23
|
|
24
|
+
# Thread subject
|
22
25
|
attr_accessor :subject
|
23
26
|
|
24
|
-
|
27
|
+
# Inbox ID
|
28
|
+
attr_accessor :inbox_id
|
25
29
|
|
30
|
+
# User ID
|
26
31
|
attr_accessor :user_id
|
27
32
|
|
28
|
-
|
29
|
-
|
33
|
+
# To recipients
|
30
34
|
attr_accessor :to
|
31
35
|
|
36
|
+
# BCC recipients
|
32
37
|
attr_accessor :bcc
|
33
38
|
|
39
|
+
# CC recipients
|
34
40
|
attr_accessor :cc
|
35
41
|
|
42
|
+
# Created at DateTime
|
43
|
+
attr_accessor :created_at
|
44
|
+
|
45
|
+
# Updated at DateTime
|
36
46
|
attr_accessor :updated_at
|
37
47
|
|
48
|
+
# Alias ID
|
38
49
|
attr_accessor :alias_id
|
39
50
|
|
40
51
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -43,12 +54,12 @@ module MailSlurpClient
|
|
43
54
|
:'name' => :'name',
|
44
55
|
:'id' => :'id',
|
45
56
|
:'subject' => :'subject',
|
46
|
-
:'created_at' => :'createdAt',
|
47
|
-
:'user_id' => :'userId',
|
48
57
|
:'inbox_id' => :'inboxId',
|
58
|
+
:'user_id' => :'userId',
|
49
59
|
:'to' => :'to',
|
50
60
|
:'bcc' => :'bcc',
|
51
61
|
:'cc' => :'cc',
|
62
|
+
:'created_at' => :'createdAt',
|
52
63
|
:'updated_at' => :'updatedAt',
|
53
64
|
:'alias_id' => :'aliasId'
|
54
65
|
}
|
@@ -60,12 +71,12 @@ module MailSlurpClient
|
|
60
71
|
:'name' => :'String',
|
61
72
|
:'id' => :'String',
|
62
73
|
:'subject' => :'String',
|
63
|
-
:'created_at' => :'DateTime',
|
64
|
-
:'user_id' => :'String',
|
65
74
|
:'inbox_id' => :'String',
|
75
|
+
:'user_id' => :'String',
|
66
76
|
:'to' => :'Array<String>',
|
67
77
|
:'bcc' => :'Array<String>',
|
68
78
|
:'cc' => :'Array<String>',
|
79
|
+
:'created_at' => :'DateTime',
|
69
80
|
:'updated_at' => :'DateTime',
|
70
81
|
:'alias_id' => :'String'
|
71
82
|
}
|
@@ -104,18 +115,14 @@ module MailSlurpClient
|
|
104
115
|
self.subject = attributes[:'subject']
|
105
116
|
end
|
106
117
|
|
107
|
-
if attributes.key?(:'
|
108
|
-
self.
|
118
|
+
if attributes.key?(:'inbox_id')
|
119
|
+
self.inbox_id = attributes[:'inbox_id']
|
109
120
|
end
|
110
121
|
|
111
122
|
if attributes.key?(:'user_id')
|
112
123
|
self.user_id = attributes[:'user_id']
|
113
124
|
end
|
114
125
|
|
115
|
-
if attributes.key?(:'inbox_id')
|
116
|
-
self.inbox_id = attributes[:'inbox_id']
|
117
|
-
end
|
118
|
-
|
119
126
|
if attributes.key?(:'to')
|
120
127
|
if (value = attributes[:'to']).is_a?(Array)
|
121
128
|
self.to = value
|
@@ -134,6 +141,10 @@ module MailSlurpClient
|
|
134
141
|
end
|
135
142
|
end
|
136
143
|
|
144
|
+
if attributes.key?(:'created_at')
|
145
|
+
self.created_at = attributes[:'created_at']
|
146
|
+
end
|
147
|
+
|
137
148
|
if attributes.key?(:'updated_at')
|
138
149
|
self.updated_at = attributes[:'updated_at']
|
139
150
|
end
|
@@ -151,22 +162,22 @@ module MailSlurpClient
|
|
151
162
|
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
152
163
|
end
|
153
164
|
|
154
|
-
if @
|
155
|
-
invalid_properties.push('invalid value for "
|
165
|
+
if @inbox_id.nil?
|
166
|
+
invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
|
156
167
|
end
|
157
168
|
|
158
169
|
if @user_id.nil?
|
159
170
|
invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
|
160
171
|
end
|
161
172
|
|
162
|
-
if @inbox_id.nil?
|
163
|
-
invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
|
164
|
-
end
|
165
|
-
|
166
173
|
if @to.nil?
|
167
174
|
invalid_properties.push('invalid value for "to", to cannot be nil.')
|
168
175
|
end
|
169
176
|
|
177
|
+
if @created_at.nil?
|
178
|
+
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
179
|
+
end
|
180
|
+
|
170
181
|
if @updated_at.nil?
|
171
182
|
invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
|
172
183
|
end
|
@@ -182,10 +193,10 @@ module MailSlurpClient
|
|
182
193
|
# @return true if the model is valid
|
183
194
|
def valid?
|
184
195
|
return false if @id.nil?
|
185
|
-
return false if @created_at.nil?
|
186
|
-
return false if @user_id.nil?
|
187
196
|
return false if @inbox_id.nil?
|
197
|
+
return false if @user_id.nil?
|
188
198
|
return false if @to.nil?
|
199
|
+
return false if @created_at.nil?
|
189
200
|
return false if @updated_at.nil?
|
190
201
|
return false if @alias_id.nil?
|
191
202
|
true
|
@@ -199,12 +210,12 @@ module MailSlurpClient
|
|
199
210
|
name == o.name &&
|
200
211
|
id == o.id &&
|
201
212
|
subject == o.subject &&
|
202
|
-
created_at == o.created_at &&
|
203
|
-
user_id == o.user_id &&
|
204
213
|
inbox_id == o.inbox_id &&
|
214
|
+
user_id == o.user_id &&
|
205
215
|
to == o.to &&
|
206
216
|
bcc == o.bcc &&
|
207
217
|
cc == o.cc &&
|
218
|
+
created_at == o.created_at &&
|
208
219
|
updated_at == o.updated_at &&
|
209
220
|
alias_id == o.alias_id
|
210
221
|
end
|
@@ -218,7 +229,7 @@ module MailSlurpClient
|
|
218
229
|
# Calculates hash code according to all attributes.
|
219
230
|
# @return [Integer] Hash code
|
220
231
|
def hash
|
221
|
-
[name, id, subject,
|
232
|
+
[name, id, subject, inbox_id, user_id, to, bcc, cc, created_at, updated_at, alias_id].hash
|
222
233
|
end
|
223
234
|
|
224
235
|
# Builds the object from hash
|
@@ -19,11 +19,11 @@ module MailSlurpClient
|
|
19
19
|
|
20
20
|
attr_accessor :id
|
21
21
|
|
22
|
-
attr_accessor :
|
22
|
+
attr_accessor :inbox_id
|
23
23
|
|
24
24
|
attr_accessor :user_id
|
25
25
|
|
26
|
-
attr_accessor :
|
26
|
+
attr_accessor :created_at
|
27
27
|
|
28
28
|
attr_accessor :recipient
|
29
29
|
|
@@ -38,9 +38,9 @@ module MailSlurpClient
|
|
38
38
|
{
|
39
39
|
:'name' => :'name',
|
40
40
|
:'id' => :'id',
|
41
|
-
:'created_at' => :'createdAt',
|
42
|
-
:'user_id' => :'userId',
|
43
41
|
:'inbox_id' => :'inboxId',
|
42
|
+
:'user_id' => :'userId',
|
43
|
+
:'created_at' => :'createdAt',
|
44
44
|
:'recipient' => :'recipient',
|
45
45
|
:'seen' => :'seen',
|
46
46
|
:'seen_at' => :'seenAt',
|
@@ -53,9 +53,9 @@ module MailSlurpClient
|
|
53
53
|
{
|
54
54
|
:'name' => :'String',
|
55
55
|
:'id' => :'String',
|
56
|
-
:'created_at' => :'DateTime',
|
57
|
-
:'user_id' => :'String',
|
58
56
|
:'inbox_id' => :'String',
|
57
|
+
:'user_id' => :'String',
|
58
|
+
:'created_at' => :'DateTime',
|
59
59
|
:'recipient' => :'String',
|
60
60
|
:'seen' => :'Boolean',
|
61
61
|
:'seen_at' => :'DateTime',
|
@@ -92,16 +92,16 @@ module MailSlurpClient
|
|
92
92
|
self.id = attributes[:'id']
|
93
93
|
end
|
94
94
|
|
95
|
-
if attributes.key?(:'
|
96
|
-
self.
|
95
|
+
if attributes.key?(:'inbox_id')
|
96
|
+
self.inbox_id = attributes[:'inbox_id']
|
97
97
|
end
|
98
98
|
|
99
99
|
if attributes.key?(:'user_id')
|
100
100
|
self.user_id = attributes[:'user_id']
|
101
101
|
end
|
102
102
|
|
103
|
-
if attributes.key?(:'
|
104
|
-
self.
|
103
|
+
if attributes.key?(:'created_at')
|
104
|
+
self.created_at = attributes[:'created_at']
|
105
105
|
end
|
106
106
|
|
107
107
|
if attributes.key?(:'recipient')
|
@@ -129,14 +129,14 @@ module MailSlurpClient
|
|
129
129
|
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
130
130
|
end
|
131
131
|
|
132
|
-
if @created_at.nil?
|
133
|
-
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
134
|
-
end
|
135
|
-
|
136
132
|
if @user_id.nil?
|
137
133
|
invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
|
138
134
|
end
|
139
135
|
|
136
|
+
if @created_at.nil?
|
137
|
+
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
138
|
+
end
|
139
|
+
|
140
140
|
if @seen.nil?
|
141
141
|
invalid_properties.push('invalid value for "seen", seen cannot be nil.')
|
142
142
|
end
|
@@ -148,8 +148,8 @@ module MailSlurpClient
|
|
148
148
|
# @return true if the model is valid
|
149
149
|
def valid?
|
150
150
|
return false if @id.nil?
|
151
|
-
return false if @created_at.nil?
|
152
151
|
return false if @user_id.nil?
|
152
|
+
return false if @created_at.nil?
|
153
153
|
return false if @seen.nil?
|
154
154
|
true
|
155
155
|
end
|
@@ -161,9 +161,9 @@ module MailSlurpClient
|
|
161
161
|
self.class == o.class &&
|
162
162
|
name == o.name &&
|
163
163
|
id == o.id &&
|
164
|
-
created_at == o.created_at &&
|
165
|
-
user_id == o.user_id &&
|
166
164
|
inbox_id == o.inbox_id &&
|
165
|
+
user_id == o.user_id &&
|
166
|
+
created_at == o.created_at &&
|
167
167
|
recipient == o.recipient &&
|
168
168
|
seen == o.seen &&
|
169
169
|
seen_at == o.seen_at &&
|
@@ -179,7 +179,7 @@ module MailSlurpClient
|
|
179
179
|
# Calculates hash code according to all attributes.
|
180
180
|
# @return [Integer] Hash code
|
181
181
|
def hash
|
182
|
-
[name, id,
|
182
|
+
[name, id, inbox_id, user_id, created_at, recipient, seen, seen_at, sent_email_id].hash
|
183
183
|
end
|
184
184
|
|
185
185
|
# Builds the object from hash
|
@@ -21,18 +21,18 @@ module MailSlurpClient
|
|
21
21
|
|
22
22
|
attr_accessor :subject
|
23
23
|
|
24
|
-
attr_accessor :created_at
|
25
|
-
|
26
24
|
attr_accessor :to
|
27
25
|
|
26
|
+
attr_accessor :created_at
|
27
|
+
|
28
28
|
# Attribute mapping from ruby-style variable name to JSON key.
|
29
29
|
def self.attribute_map
|
30
30
|
{
|
31
31
|
:'id' => :'id',
|
32
32
|
:'from' => :'from',
|
33
33
|
:'subject' => :'subject',
|
34
|
-
:'
|
35
|
-
:'
|
34
|
+
:'to' => :'to',
|
35
|
+
:'created_at' => :'createdAt'
|
36
36
|
}
|
37
37
|
end
|
38
38
|
|
@@ -42,8 +42,8 @@ module MailSlurpClient
|
|
42
42
|
:'id' => :'String',
|
43
43
|
:'from' => :'String',
|
44
44
|
:'subject' => :'String',
|
45
|
-
:'
|
46
|
-
:'
|
45
|
+
:'to' => :'Array<String>',
|
46
|
+
:'created_at' => :'DateTime'
|
47
47
|
}
|
48
48
|
end
|
49
49
|
|
@@ -80,15 +80,15 @@ module MailSlurpClient
|
|
80
80
|
self.subject = attributes[:'subject']
|
81
81
|
end
|
82
82
|
|
83
|
-
if attributes.key?(:'created_at')
|
84
|
-
self.created_at = attributes[:'created_at']
|
85
|
-
end
|
86
|
-
|
87
83
|
if attributes.key?(:'to')
|
88
84
|
if (value = attributes[:'to']).is_a?(Array)
|
89
85
|
self.to = value
|
90
86
|
end
|
91
87
|
end
|
88
|
+
|
89
|
+
if attributes.key?(:'created_at')
|
90
|
+
self.created_at = attributes[:'created_at']
|
91
|
+
end
|
92
92
|
end
|
93
93
|
|
94
94
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -122,8 +122,8 @@ module MailSlurpClient
|
|
122
122
|
id == o.id &&
|
123
123
|
from == o.from &&
|
124
124
|
subject == o.subject &&
|
125
|
-
|
126
|
-
|
125
|
+
to == o.to &&
|
126
|
+
created_at == o.created_at
|
127
127
|
end
|
128
128
|
|
129
129
|
# @see the `==` method
|
@@ -135,7 +135,7 @@ module MailSlurpClient
|
|
135
135
|
# Calculates hash code according to all attributes.
|
136
136
|
# @return [Integer] Hash code
|
137
137
|
def hash
|
138
|
-
[id, from, subject,
|
138
|
+
[id, from, subject, to, created_at].hash
|
139
139
|
end
|
140
140
|
|
141
141
|
# Builds the object from hash
|