mailslurp_client 15.5.3 → 15.5.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/mailslurp_client/api/email_controller_api.rb +68 -6
- data/lib/mailslurp_client/api/inbox_controller_api.rb +70 -0
- data/lib/mailslurp_client/api/sent_emails_controller_api.rb +186 -0
- data/lib/mailslurp_client/models/alias_projection.rb +13 -13
- data/lib/mailslurp_client/models/attachment_projection.rb +15 -15
- data/lib/mailslurp_client/models/contact_projection.rb +13 -13
- data/lib/mailslurp_client/models/email_preview_urls.rb +225 -0
- data/lib/mailslurp_client/models/email_projection.rb +26 -26
- data/lib/mailslurp_client/models/sent_email_projection.rb +31 -31
- data/lib/mailslurp_client/models/template_projection.rb +15 -15
- data/lib/mailslurp_client/models/thread_projection.rb +15 -15
- data/lib/mailslurp_client/models/unknown_missed_email_projection.rb +13 -13
- data/lib/mailslurp_client/models/webhook_projection.rb +12 -12
- data/lib/mailslurp_client/version.rb +1 -1
- data/lib/mailslurp_client.rb +1 -0
- metadata +3 -2
@@ -25,14 +25,14 @@ module MailSlurpClient
|
|
25
25
|
|
26
26
|
attr_accessor :inbox_id
|
27
27
|
|
28
|
+
attr_accessor :created_at
|
29
|
+
|
28
30
|
attr_accessor :to
|
29
31
|
|
30
32
|
attr_accessor :bcc
|
31
33
|
|
32
34
|
attr_accessor :cc
|
33
35
|
|
34
|
-
attr_accessor :created_at
|
35
|
-
|
36
36
|
attr_accessor :updated_at
|
37
37
|
|
38
38
|
attr_accessor :alias_id
|
@@ -45,10 +45,10 @@ module MailSlurpClient
|
|
45
45
|
:'subject' => :'subject',
|
46
46
|
:'user_id' => :'userId',
|
47
47
|
:'inbox_id' => :'inboxId',
|
48
|
+
:'created_at' => :'createdAt',
|
48
49
|
:'to' => :'to',
|
49
50
|
:'bcc' => :'bcc',
|
50
51
|
:'cc' => :'cc',
|
51
|
-
:'created_at' => :'createdAt',
|
52
52
|
:'updated_at' => :'updatedAt',
|
53
53
|
:'alias_id' => :'aliasId'
|
54
54
|
}
|
@@ -62,10 +62,10 @@ module MailSlurpClient
|
|
62
62
|
:'subject' => :'String',
|
63
63
|
:'user_id' => :'String',
|
64
64
|
:'inbox_id' => :'String',
|
65
|
+
:'created_at' => :'DateTime',
|
65
66
|
:'to' => :'Array<String>',
|
66
67
|
:'bcc' => :'Array<String>',
|
67
68
|
:'cc' => :'Array<String>',
|
68
|
-
:'created_at' => :'DateTime',
|
69
69
|
:'updated_at' => :'DateTime',
|
70
70
|
:'alias_id' => :'String'
|
71
71
|
}
|
@@ -112,6 +112,10 @@ module MailSlurpClient
|
|
112
112
|
self.inbox_id = attributes[:'inbox_id']
|
113
113
|
end
|
114
114
|
|
115
|
+
if attributes.key?(:'created_at')
|
116
|
+
self.created_at = attributes[:'created_at']
|
117
|
+
end
|
118
|
+
|
115
119
|
if attributes.key?(:'to')
|
116
120
|
if (value = attributes[:'to']).is_a?(Array)
|
117
121
|
self.to = value
|
@@ -130,10 +134,6 @@ module MailSlurpClient
|
|
130
134
|
end
|
131
135
|
end
|
132
136
|
|
133
|
-
if attributes.key?(:'created_at')
|
134
|
-
self.created_at = attributes[:'created_at']
|
135
|
-
end
|
136
|
-
|
137
137
|
if attributes.key?(:'updated_at')
|
138
138
|
self.updated_at = attributes[:'updated_at']
|
139
139
|
end
|
@@ -159,14 +159,14 @@ module MailSlurpClient
|
|
159
159
|
invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
|
160
160
|
end
|
161
161
|
|
162
|
-
if @to.nil?
|
163
|
-
invalid_properties.push('invalid value for "to", to cannot be nil.')
|
164
|
-
end
|
165
|
-
|
166
162
|
if @created_at.nil?
|
167
163
|
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
168
164
|
end
|
169
165
|
|
166
|
+
if @to.nil?
|
167
|
+
invalid_properties.push('invalid value for "to", to cannot be nil.')
|
168
|
+
end
|
169
|
+
|
170
170
|
if @updated_at.nil?
|
171
171
|
invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
|
172
172
|
end
|
@@ -184,8 +184,8 @@ module MailSlurpClient
|
|
184
184
|
return false if @id.nil?
|
185
185
|
return false if @user_id.nil?
|
186
186
|
return false if @inbox_id.nil?
|
187
|
-
return false if @to.nil?
|
188
187
|
return false if @created_at.nil?
|
188
|
+
return false if @to.nil?
|
189
189
|
return false if @updated_at.nil?
|
190
190
|
return false if @alias_id.nil?
|
191
191
|
true
|
@@ -201,10 +201,10 @@ module MailSlurpClient
|
|
201
201
|
subject == o.subject &&
|
202
202
|
user_id == o.user_id &&
|
203
203
|
inbox_id == o.inbox_id &&
|
204
|
+
created_at == o.created_at &&
|
204
205
|
to == o.to &&
|
205
206
|
bcc == o.bcc &&
|
206
207
|
cc == o.cc &&
|
207
|
-
created_at == o.created_at &&
|
208
208
|
updated_at == o.updated_at &&
|
209
209
|
alias_id == o.alias_id
|
210
210
|
end
|
@@ -218,7 +218,7 @@ module MailSlurpClient
|
|
218
218
|
# Calculates hash code according to all attributes.
|
219
219
|
# @return [Integer] Hash code
|
220
220
|
def hash
|
221
|
-
[name, id, subject, user_id, inbox_id, to, bcc, cc,
|
221
|
+
[name, id, subject, user_id, inbox_id, created_at, to, bcc, cc, updated_at, alias_id].hash
|
222
222
|
end
|
223
223
|
|
224
224
|
# Builds the object from hash
|
@@ -20,18 +20,18 @@ module MailSlurpClient
|
|
20
20
|
|
21
21
|
attr_accessor :subject
|
22
22
|
|
23
|
-
attr_accessor :to
|
24
|
-
|
25
23
|
attr_accessor :created_at
|
26
24
|
|
25
|
+
attr_accessor :to
|
26
|
+
|
27
27
|
# Attribute mapping from ruby-style variable name to JSON key.
|
28
28
|
def self.attribute_map
|
29
29
|
{
|
30
30
|
:'id' => :'id',
|
31
31
|
:'from' => :'from',
|
32
32
|
:'subject' => :'subject',
|
33
|
-
:'
|
34
|
-
:'
|
33
|
+
:'created_at' => :'createdAt',
|
34
|
+
:'to' => :'to'
|
35
35
|
}
|
36
36
|
end
|
37
37
|
|
@@ -41,8 +41,8 @@ module MailSlurpClient
|
|
41
41
|
:'id' => :'String',
|
42
42
|
:'from' => :'String',
|
43
43
|
:'subject' => :'String',
|
44
|
-
:'
|
45
|
-
:'
|
44
|
+
:'created_at' => :'DateTime',
|
45
|
+
:'to' => :'Array<String>'
|
46
46
|
}
|
47
47
|
end
|
48
48
|
|
@@ -79,15 +79,15 @@ module MailSlurpClient
|
|
79
79
|
self.subject = attributes[:'subject']
|
80
80
|
end
|
81
81
|
|
82
|
+
if attributes.key?(:'created_at')
|
83
|
+
self.created_at = attributes[:'created_at']
|
84
|
+
end
|
85
|
+
|
82
86
|
if attributes.key?(:'to')
|
83
87
|
if (value = attributes[:'to']).is_a?(Array)
|
84
88
|
self.to = value
|
85
89
|
end
|
86
90
|
end
|
87
|
-
|
88
|
-
if attributes.key?(:'created_at')
|
89
|
-
self.created_at = attributes[:'created_at']
|
90
|
-
end
|
91
91
|
end
|
92
92
|
|
93
93
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -121,8 +121,8 @@ module MailSlurpClient
|
|
121
121
|
id == o.id &&
|
122
122
|
from == o.from &&
|
123
123
|
subject == o.subject &&
|
124
|
-
|
125
|
-
|
124
|
+
created_at == o.created_at &&
|
125
|
+
to == o.to
|
126
126
|
end
|
127
127
|
|
128
128
|
# @see the `==` method
|
@@ -134,7 +134,7 @@ module MailSlurpClient
|
|
134
134
|
# Calculates hash code according to all attributes.
|
135
135
|
# @return [Integer] Hash code
|
136
136
|
def hash
|
137
|
-
[id, from, subject,
|
137
|
+
[id, from, subject, created_at, to].hash
|
138
138
|
end
|
139
139
|
|
140
140
|
# Builds the object from hash
|
@@ -19,12 +19,12 @@ module MailSlurpClient
|
|
19
19
|
|
20
20
|
attr_accessor :id
|
21
21
|
|
22
|
+
attr_accessor :event_name
|
23
|
+
|
22
24
|
attr_accessor :url
|
23
25
|
|
24
26
|
attr_accessor :inbox_id
|
25
27
|
|
26
|
-
attr_accessor :event_name
|
27
|
-
|
28
28
|
attr_accessor :created_at
|
29
29
|
|
30
30
|
attr_accessor :updated_at
|
@@ -56,9 +56,9 @@ module MailSlurpClient
|
|
56
56
|
{
|
57
57
|
:'name' => :'name',
|
58
58
|
:'id' => :'id',
|
59
|
+
:'event_name' => :'eventName',
|
59
60
|
:'url' => :'url',
|
60
61
|
:'inbox_id' => :'inboxId',
|
61
|
-
:'event_name' => :'eventName',
|
62
62
|
:'created_at' => :'createdAt',
|
63
63
|
:'updated_at' => :'updatedAt'
|
64
64
|
}
|
@@ -69,9 +69,9 @@ module MailSlurpClient
|
|
69
69
|
{
|
70
70
|
:'name' => :'String',
|
71
71
|
:'id' => :'String',
|
72
|
+
:'event_name' => :'String',
|
72
73
|
:'url' => :'String',
|
73
74
|
:'inbox_id' => :'String',
|
74
|
-
:'event_name' => :'String',
|
75
75
|
:'created_at' => :'DateTime',
|
76
76
|
:'updated_at' => :'DateTime'
|
77
77
|
}
|
@@ -106,6 +106,10 @@ module MailSlurpClient
|
|
106
106
|
self.id = attributes[:'id']
|
107
107
|
end
|
108
108
|
|
109
|
+
if attributes.key?(:'event_name')
|
110
|
+
self.event_name = attributes[:'event_name']
|
111
|
+
end
|
112
|
+
|
109
113
|
if attributes.key?(:'url')
|
110
114
|
self.url = attributes[:'url']
|
111
115
|
end
|
@@ -114,10 +118,6 @@ module MailSlurpClient
|
|
114
118
|
self.inbox_id = attributes[:'inbox_id']
|
115
119
|
end
|
116
120
|
|
117
|
-
if attributes.key?(:'event_name')
|
118
|
-
self.event_name = attributes[:'event_name']
|
119
|
-
end
|
120
|
-
|
121
121
|
if attributes.key?(:'created_at')
|
122
122
|
self.created_at = attributes[:'created_at']
|
123
123
|
end
|
@@ -158,10 +158,10 @@ module MailSlurpClient
|
|
158
158
|
# @return true if the model is valid
|
159
159
|
def valid?
|
160
160
|
return false if @id.nil?
|
161
|
-
return false if @url.nil?
|
162
|
-
return false if @inbox_id.nil?
|
163
161
|
event_name_validator = EnumAttributeValidator.new('String', ["EMAIL_RECEIVED", "NEW_EMAIL", "NEW_CONTACT", "NEW_ATTACHMENT", "EMAIL_OPENED", "EMAIL_READ"])
|
164
162
|
return false unless event_name_validator.valid?(@event_name)
|
163
|
+
return false if @url.nil?
|
164
|
+
return false if @inbox_id.nil?
|
165
165
|
return false if @created_at.nil?
|
166
166
|
return false if @updated_at.nil?
|
167
167
|
true
|
@@ -184,9 +184,9 @@ module MailSlurpClient
|
|
184
184
|
self.class == o.class &&
|
185
185
|
name == o.name &&
|
186
186
|
id == o.id &&
|
187
|
+
event_name == o.event_name &&
|
187
188
|
url == o.url &&
|
188
189
|
inbox_id == o.inbox_id &&
|
189
|
-
event_name == o.event_name &&
|
190
190
|
created_at == o.created_at &&
|
191
191
|
updated_at == o.updated_at
|
192
192
|
end
|
@@ -200,7 +200,7 @@ module MailSlurpClient
|
|
200
200
|
# Calculates hash code according to all attributes.
|
201
201
|
# @return [Integer] Hash code
|
202
202
|
def hash
|
203
|
-
[name, id, url, inbox_id,
|
203
|
+
[name, id, event_name, url, inbox_id, created_at, updated_at].hash
|
204
204
|
end
|
205
205
|
|
206
206
|
# Builds the object from hash
|
data/lib/mailslurp_client.rb
CHANGED
@@ -58,6 +58,7 @@ require 'mailslurp_client/models/email_analysis'
|
|
58
58
|
require 'mailslurp_client/models/email_content_match_result'
|
59
59
|
require 'mailslurp_client/models/email_links_result'
|
60
60
|
require 'mailslurp_client/models/email_preview'
|
61
|
+
require 'mailslurp_client/models/email_preview_urls'
|
61
62
|
require 'mailslurp_client/models/email_projection'
|
62
63
|
require 'mailslurp_client/models/email_recipients'
|
63
64
|
require 'mailslurp_client/models/email_text_lines_result'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mailslurp_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 15.5.
|
4
|
+
version: 15.5.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- mailslurp
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-01-
|
11
|
+
date: 2022-01-29 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Create emails addresses in Ruby then send and receive real emails and
|
14
14
|
attachments. See https://www.mailslurp.com/docs/ruby/ for full Ruby documentation.
|
@@ -89,6 +89,7 @@ files:
|
|
89
89
|
- lib/mailslurp_client/models/email_content_match_result.rb
|
90
90
|
- lib/mailslurp_client/models/email_links_result.rb
|
91
91
|
- lib/mailslurp_client/models/email_preview.rb
|
92
|
+
- lib/mailslurp_client/models/email_preview_urls.rb
|
92
93
|
- lib/mailslurp_client/models/email_projection.rb
|
93
94
|
- lib/mailslurp_client/models/email_recipients.rb
|
94
95
|
- lib/mailslurp_client/models/email_text_lines_result.rb
|