mailslurp_client 15.9.0 → 15.11.0
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/inbox_controller_api.rb +75 -0
- data/lib/mailslurp_client/models/alias_projection.rb +21 -21
- data/lib/mailslurp_client/models/attachment_entity.rb +10 -1
- data/lib/mailslurp_client/models/contact_projection.rb +5 -0
- data/lib/mailslurp_client/models/email_preview.rb +5 -0
- data/lib/mailslurp_client/models/email_projection.rb +10 -0
- data/lib/mailslurp_client/models/expired_inbox_record_projection.rb +15 -15
- data/lib/mailslurp_client/models/inbox_preview.rb +5 -0
- data/lib/mailslurp_client/models/missed_email.rb +37 -1
- data/lib/mailslurp_client/models/organization_inbox_projection.rb +5 -0
- data/lib/mailslurp_client/models/sent_email_projection.rb +20 -15
- data/lib/mailslurp_client/models/webhook_new_contact_payload.rb +5 -0
- data/lib/mailslurp_client/models/webhook_result_dto.rb +5 -0
- data/lib/mailslurp_client/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bb28388cd42137297e9d5fa250da26aeacd023947c07c52eb5d026e2e8c54ee7
|
4
|
+
data.tar.gz: 93a6d324de23969dae38e67a2ac53c07bb510bec2cace2911798c554dcc9e65f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ed93867a50c961ec32e9a347d4f98ac2dc4dc891ecc10a6d228fc4d7ad84ab2b413ce34f39a89d42600609ce3dbfa430f042b97663de28ce800a7cec6481f4d4
|
7
|
+
data.tar.gz: 369c2cca0f0d3de706eaf13503f8e28356c51d5170ac3722ab62d6a0da5bf2785e6f3299345ef1bde0503b12377e2842260f707afd742ef40e02db694745024a
|
@@ -1887,6 +1887,81 @@ module MailSlurpClient
|
|
1887
1887
|
return data, status_code, headers
|
1888
1888
|
end
|
1889
1889
|
|
1890
|
+
# Send email with queue
|
1891
|
+
# Send an email using a queue. Will place the email onto a queue that will then be processed and sent. Use this queue method to enable any failed email sending to be recovered. This will prevent lost emails when sending if your account encounters a block or payment issue.
|
1892
|
+
# @param inbox_id [String] ID of the inbox you want to send the email from
|
1893
|
+
# @param validate_before_enqueue [Boolean] Validate before adding to queue
|
1894
|
+
# @param send_email_options [SendEmailOptions]
|
1895
|
+
# @param [Hash] opts the optional parameters
|
1896
|
+
# @return [nil]
|
1897
|
+
def send_email_with_queue(inbox_id, validate_before_enqueue, send_email_options, opts = {})
|
1898
|
+
send_email_with_queue_with_http_info(inbox_id, validate_before_enqueue, send_email_options, opts)
|
1899
|
+
nil
|
1900
|
+
end
|
1901
|
+
|
1902
|
+
# Send email with queue
|
1903
|
+
# Send an email using a queue. Will place the email onto a queue that will then be processed and sent. Use this queue method to enable any failed email sending to be recovered. This will prevent lost emails when sending if your account encounters a block or payment issue.
|
1904
|
+
# @param inbox_id [String] ID of the inbox you want to send the email from
|
1905
|
+
# @param validate_before_enqueue [Boolean] Validate before adding to queue
|
1906
|
+
# @param send_email_options [SendEmailOptions]
|
1907
|
+
# @param [Hash] opts the optional parameters
|
1908
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
1909
|
+
def send_email_with_queue_with_http_info(inbox_id, validate_before_enqueue, send_email_options, opts = {})
|
1910
|
+
if @api_client.config.debugging
|
1911
|
+
@api_client.config.logger.debug 'Calling API: InboxControllerApi.send_email_with_queue ...'
|
1912
|
+
end
|
1913
|
+
# verify the required parameter 'inbox_id' is set
|
1914
|
+
if @api_client.config.client_side_validation && inbox_id.nil?
|
1915
|
+
fail ArgumentError, "Missing the required parameter 'inbox_id' when calling InboxControllerApi.send_email_with_queue"
|
1916
|
+
end
|
1917
|
+
# verify the required parameter 'validate_before_enqueue' is set
|
1918
|
+
if @api_client.config.client_side_validation && validate_before_enqueue.nil?
|
1919
|
+
fail ArgumentError, "Missing the required parameter 'validate_before_enqueue' when calling InboxControllerApi.send_email_with_queue"
|
1920
|
+
end
|
1921
|
+
# verify the required parameter 'send_email_options' is set
|
1922
|
+
if @api_client.config.client_side_validation && send_email_options.nil?
|
1923
|
+
fail ArgumentError, "Missing the required parameter 'send_email_options' when calling InboxControllerApi.send_email_with_queue"
|
1924
|
+
end
|
1925
|
+
# resource path
|
1926
|
+
local_var_path = '/inboxes/{inboxId}/with-queue'.sub('{' + 'inboxId' + '}', CGI.escape(inbox_id.to_s))
|
1927
|
+
|
1928
|
+
# query parameters
|
1929
|
+
query_params = opts[:query_params] || {}
|
1930
|
+
query_params[:'validateBeforeEnqueue'] = validate_before_enqueue
|
1931
|
+
|
1932
|
+
# header parameters
|
1933
|
+
header_params = opts[:header_params] || {}
|
1934
|
+
# HTTP header 'Content-Type'
|
1935
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
1936
|
+
|
1937
|
+
# form parameters
|
1938
|
+
form_params = opts[:form_params] || {}
|
1939
|
+
|
1940
|
+
# http body (model)
|
1941
|
+
post_body = opts[:body] || @api_client.object_to_http_body(send_email_options)
|
1942
|
+
|
1943
|
+
# return_type
|
1944
|
+
return_type = opts[:return_type]
|
1945
|
+
|
1946
|
+
# auth_names
|
1947
|
+
auth_names = opts[:auth_names] || ['API_KEY']
|
1948
|
+
|
1949
|
+
new_options = opts.merge(
|
1950
|
+
:header_params => header_params,
|
1951
|
+
:query_params => query_params,
|
1952
|
+
:form_params => form_params,
|
1953
|
+
:body => post_body,
|
1954
|
+
:auth_names => auth_names,
|
1955
|
+
:return_type => return_type
|
1956
|
+
)
|
1957
|
+
|
1958
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
1959
|
+
if @api_client.config.debugging
|
1960
|
+
@api_client.config.logger.debug "API called: InboxControllerApi#send_email_with_queue\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1961
|
+
end
|
1962
|
+
return data, status_code, headers
|
1963
|
+
end
|
1964
|
+
|
1890
1965
|
# Send email using an SMTP mail envelope and message body and return sent confirmation
|
1891
1966
|
# Send email using an SMTP envelope containing RCPT TO, MAIL FROM, and a SMTP BODY.
|
1892
1967
|
# @param inbox_id [String] ID of the inbox you want to send the email from
|
@@ -21,14 +21,14 @@ module MailSlurpClient
|
|
21
21
|
|
22
22
|
attr_accessor :inbox_id
|
23
23
|
|
24
|
-
attr_accessor :email_address
|
25
|
-
|
26
24
|
attr_accessor :user_id
|
27
25
|
|
28
|
-
attr_accessor :
|
26
|
+
attr_accessor :email_address
|
29
27
|
|
30
28
|
attr_accessor :created_at
|
31
29
|
|
30
|
+
attr_accessor :use_threads
|
31
|
+
|
32
32
|
attr_accessor :updated_at
|
33
33
|
|
34
34
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -37,10 +37,10 @@ module MailSlurpClient
|
|
37
37
|
:'name' => :'name',
|
38
38
|
:'id' => :'id',
|
39
39
|
:'inbox_id' => :'inboxId',
|
40
|
-
:'email_address' => :'emailAddress',
|
41
40
|
:'user_id' => :'userId',
|
42
|
-
:'
|
41
|
+
:'email_address' => :'emailAddress',
|
43
42
|
:'created_at' => :'createdAt',
|
43
|
+
:'use_threads' => :'useThreads',
|
44
44
|
:'updated_at' => :'updatedAt'
|
45
45
|
}
|
46
46
|
end
|
@@ -51,10 +51,10 @@ module MailSlurpClient
|
|
51
51
|
:'name' => :'String',
|
52
52
|
:'id' => :'String',
|
53
53
|
:'inbox_id' => :'String',
|
54
|
-
:'email_address' => :'String',
|
55
54
|
:'user_id' => :'String',
|
56
|
-
:'
|
55
|
+
:'email_address' => :'String',
|
57
56
|
:'created_at' => :'DateTime',
|
57
|
+
:'use_threads' => :'Boolean',
|
58
58
|
:'updated_at' => :'DateTime'
|
59
59
|
}
|
60
60
|
end
|
@@ -92,22 +92,22 @@ module MailSlurpClient
|
|
92
92
|
self.inbox_id = attributes[:'inbox_id']
|
93
93
|
end
|
94
94
|
|
95
|
-
if attributes.key?(:'email_address')
|
96
|
-
self.email_address = attributes[:'email_address']
|
97
|
-
end
|
98
|
-
|
99
95
|
if attributes.key?(:'user_id')
|
100
96
|
self.user_id = attributes[:'user_id']
|
101
97
|
end
|
102
98
|
|
103
|
-
if attributes.key?(:'
|
104
|
-
self.
|
99
|
+
if attributes.key?(:'email_address')
|
100
|
+
self.email_address = attributes[:'email_address']
|
105
101
|
end
|
106
102
|
|
107
103
|
if attributes.key?(:'created_at')
|
108
104
|
self.created_at = attributes[:'created_at']
|
109
105
|
end
|
110
106
|
|
107
|
+
if attributes.key?(:'use_threads')
|
108
|
+
self.use_threads = attributes[:'use_threads']
|
109
|
+
end
|
110
|
+
|
111
111
|
if attributes.key?(:'updated_at')
|
112
112
|
self.updated_at = attributes[:'updated_at']
|
113
113
|
end
|
@@ -125,14 +125,14 @@ module MailSlurpClient
|
|
125
125
|
invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
|
126
126
|
end
|
127
127
|
|
128
|
-
if @email_address.nil?
|
129
|
-
invalid_properties.push('invalid value for "email_address", email_address cannot be nil.')
|
130
|
-
end
|
131
|
-
|
132
128
|
if @user_id.nil?
|
133
129
|
invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
|
134
130
|
end
|
135
131
|
|
132
|
+
if @email_address.nil?
|
133
|
+
invalid_properties.push('invalid value for "email_address", email_address cannot be nil.')
|
134
|
+
end
|
135
|
+
|
136
136
|
if @created_at.nil?
|
137
137
|
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
138
138
|
end
|
@@ -149,8 +149,8 @@ module MailSlurpClient
|
|
149
149
|
def valid?
|
150
150
|
return false if @id.nil?
|
151
151
|
return false if @inbox_id.nil?
|
152
|
-
return false if @email_address.nil?
|
153
152
|
return false if @user_id.nil?
|
153
|
+
return false if @email_address.nil?
|
154
154
|
return false if @created_at.nil?
|
155
155
|
return false if @updated_at.nil?
|
156
156
|
true
|
@@ -164,10 +164,10 @@ module MailSlurpClient
|
|
164
164
|
name == o.name &&
|
165
165
|
id == o.id &&
|
166
166
|
inbox_id == o.inbox_id &&
|
167
|
-
email_address == o.email_address &&
|
168
167
|
user_id == o.user_id &&
|
169
|
-
|
168
|
+
email_address == o.email_address &&
|
170
169
|
created_at == o.created_at &&
|
170
|
+
use_threads == o.use_threads &&
|
171
171
|
updated_at == o.updated_at
|
172
172
|
end
|
173
173
|
|
@@ -180,7 +180,7 @@ module MailSlurpClient
|
|
180
180
|
# Calculates hash code according to all attributes.
|
181
181
|
# @return [Integer] Hash code
|
182
182
|
def hash
|
183
|
-
[name, id, inbox_id, email_address,
|
183
|
+
[name, id, inbox_id, user_id, email_address, created_at, use_threads, updated_at].hash
|
184
184
|
end
|
185
185
|
|
186
186
|
# Builds the object from hash
|
@@ -19,6 +19,8 @@ module MailSlurpClient
|
|
19
19
|
|
20
20
|
attr_accessor :attachment_id
|
21
21
|
|
22
|
+
attr_accessor :bucket
|
23
|
+
|
22
24
|
attr_accessor :user_id
|
23
25
|
|
24
26
|
attr_accessor :content_type
|
@@ -36,6 +38,7 @@ module MailSlurpClient
|
|
36
38
|
{
|
37
39
|
:'id' => :'id',
|
38
40
|
:'attachment_id' => :'attachmentId',
|
41
|
+
:'bucket' => :'bucket',
|
39
42
|
:'user_id' => :'userId',
|
40
43
|
:'content_type' => :'contentType',
|
41
44
|
:'content_length' => :'contentLength',
|
@@ -50,6 +53,7 @@ module MailSlurpClient
|
|
50
53
|
{
|
51
54
|
:'id' => :'String',
|
52
55
|
:'attachment_id' => :'String',
|
56
|
+
:'bucket' => :'String',
|
53
57
|
:'user_id' => :'String',
|
54
58
|
:'content_type' => :'String',
|
55
59
|
:'content_length' => :'Integer',
|
@@ -88,6 +92,10 @@ module MailSlurpClient
|
|
88
92
|
self.attachment_id = attributes[:'attachment_id']
|
89
93
|
end
|
90
94
|
|
95
|
+
if attributes.key?(:'bucket')
|
96
|
+
self.bucket = attributes[:'bucket']
|
97
|
+
end
|
98
|
+
|
91
99
|
if attributes.key?(:'user_id')
|
92
100
|
self.user_id = attributes[:'user_id']
|
93
101
|
end
|
@@ -153,6 +161,7 @@ module MailSlurpClient
|
|
153
161
|
self.class == o.class &&
|
154
162
|
id == o.id &&
|
155
163
|
attachment_id == o.attachment_id &&
|
164
|
+
bucket == o.bucket &&
|
156
165
|
user_id == o.user_id &&
|
157
166
|
content_type == o.content_type &&
|
158
167
|
content_length == o.content_length &&
|
@@ -170,7 +179,7 @@ module MailSlurpClient
|
|
170
179
|
# Calculates hash code according to all attributes.
|
171
180
|
# @return [Integer] Hash code
|
172
181
|
def hash
|
173
|
-
[id, attachment_id, user_id, content_type, content_length, name, created_at, updated_at].hash
|
182
|
+
[id, attachment_id, bucket, user_id, content_type, content_length, name, created_at, updated_at].hash
|
174
183
|
end
|
175
184
|
|
176
185
|
# Builds the object from hash
|
@@ -123,6 +123,10 @@ 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
|
+
|
126
130
|
if @created_at.nil?
|
127
131
|
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
128
132
|
end
|
@@ -134,6 +138,7 @@ module MailSlurpClient
|
|
134
138
|
# @return true if the model is valid
|
135
139
|
def valid?
|
136
140
|
return false if @id.nil?
|
141
|
+
return false if @opt_out.nil?
|
137
142
|
return false if @created_at.nil?
|
138
143
|
true
|
139
144
|
end
|
@@ -154,6 +154,10 @@ module MailSlurpClient
|
|
154
154
|
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
155
155
|
end
|
156
156
|
|
157
|
+
if @read.nil?
|
158
|
+
invalid_properties.push('invalid value for "read", read cannot be nil.')
|
159
|
+
end
|
160
|
+
|
157
161
|
invalid_properties
|
158
162
|
end
|
159
163
|
|
@@ -163,6 +167,7 @@ module MailSlurpClient
|
|
163
167
|
return false if @id.nil?
|
164
168
|
return false if @to.nil?
|
165
169
|
return false if @created_at.nil?
|
170
|
+
return false if @read.nil?
|
166
171
|
true
|
167
172
|
end
|
168
173
|
|
@@ -181,6 +181,14 @@ module MailSlurpClient
|
|
181
181
|
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
182
182
|
end
|
183
183
|
|
184
|
+
if @team_access.nil?
|
185
|
+
invalid_properties.push('invalid value for "team_access", team_access cannot be nil.')
|
186
|
+
end
|
187
|
+
|
188
|
+
if @read.nil?
|
189
|
+
invalid_properties.push('invalid value for "read", read cannot be nil.')
|
190
|
+
end
|
191
|
+
|
184
192
|
invalid_properties
|
185
193
|
end
|
186
194
|
|
@@ -191,6 +199,8 @@ module MailSlurpClient
|
|
191
199
|
return false if @inbox_id.nil?
|
192
200
|
return false if @to.nil?
|
193
201
|
return false if @created_at.nil?
|
202
|
+
return false if @team_access.nil?
|
203
|
+
return false if @read.nil?
|
194
204
|
true
|
195
205
|
end
|
196
206
|
|
@@ -17,18 +17,18 @@ module MailSlurpClient
|
|
17
17
|
class ExpiredInboxRecordProjection
|
18
18
|
attr_accessor :id
|
19
19
|
|
20
|
-
attr_accessor :email_address
|
21
|
-
|
22
20
|
attr_accessor :user_id
|
23
21
|
|
22
|
+
attr_accessor :email_address
|
23
|
+
|
24
24
|
attr_accessor :created_at
|
25
25
|
|
26
26
|
# Attribute mapping from ruby-style variable name to JSON key.
|
27
27
|
def self.attribute_map
|
28
28
|
{
|
29
29
|
:'id' => :'id',
|
30
|
-
:'email_address' => :'emailAddress',
|
31
30
|
:'user_id' => :'userId',
|
31
|
+
:'email_address' => :'emailAddress',
|
32
32
|
:'created_at' => :'createdAt'
|
33
33
|
}
|
34
34
|
end
|
@@ -37,8 +37,8 @@ module MailSlurpClient
|
|
37
37
|
def self.openapi_types
|
38
38
|
{
|
39
39
|
:'id' => :'String',
|
40
|
-
:'email_address' => :'String',
|
41
40
|
:'user_id' => :'String',
|
41
|
+
:'email_address' => :'String',
|
42
42
|
:'created_at' => :'DateTime'
|
43
43
|
}
|
44
44
|
end
|
@@ -68,14 +68,14 @@ module MailSlurpClient
|
|
68
68
|
self.id = attributes[:'id']
|
69
69
|
end
|
70
70
|
|
71
|
-
if attributes.key?(:'email_address')
|
72
|
-
self.email_address = attributes[:'email_address']
|
73
|
-
end
|
74
|
-
|
75
71
|
if attributes.key?(:'user_id')
|
76
72
|
self.user_id = attributes[:'user_id']
|
77
73
|
end
|
78
74
|
|
75
|
+
if attributes.key?(:'email_address')
|
76
|
+
self.email_address = attributes[:'email_address']
|
77
|
+
end
|
78
|
+
|
79
79
|
if attributes.key?(:'created_at')
|
80
80
|
self.created_at = attributes[:'created_at']
|
81
81
|
end
|
@@ -89,14 +89,14 @@ module MailSlurpClient
|
|
89
89
|
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
90
90
|
end
|
91
91
|
|
92
|
-
if @email_address.nil?
|
93
|
-
invalid_properties.push('invalid value for "email_address", email_address cannot be nil.')
|
94
|
-
end
|
95
|
-
|
96
92
|
if @user_id.nil?
|
97
93
|
invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
|
98
94
|
end
|
99
95
|
|
96
|
+
if @email_address.nil?
|
97
|
+
invalid_properties.push('invalid value for "email_address", email_address cannot be nil.')
|
98
|
+
end
|
99
|
+
|
100
100
|
if @created_at.nil?
|
101
101
|
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
102
102
|
end
|
@@ -108,8 +108,8 @@ module MailSlurpClient
|
|
108
108
|
# @return true if the model is valid
|
109
109
|
def valid?
|
110
110
|
return false if @id.nil?
|
111
|
-
return false if @email_address.nil?
|
112
111
|
return false if @user_id.nil?
|
112
|
+
return false if @email_address.nil?
|
113
113
|
return false if @created_at.nil?
|
114
114
|
true
|
115
115
|
end
|
@@ -120,8 +120,8 @@ module MailSlurpClient
|
|
120
120
|
return true if self.equal?(o)
|
121
121
|
self.class == o.class &&
|
122
122
|
id == o.id &&
|
123
|
-
email_address == o.email_address &&
|
124
123
|
user_id == o.user_id &&
|
124
|
+
email_address == o.email_address &&
|
125
125
|
created_at == o.created_at
|
126
126
|
end
|
127
127
|
|
@@ -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,
|
137
|
+
[id, user_id, email_address, created_at].hash
|
138
138
|
end
|
139
139
|
|
140
140
|
# Builds the object from hash
|
@@ -183,6 +183,10 @@ module MailSlurpClient
|
|
183
183
|
invalid_properties.push('invalid value for "team_access", team_access cannot be nil.')
|
184
184
|
end
|
185
185
|
|
186
|
+
if @virtual_inbox.nil?
|
187
|
+
invalid_properties.push('invalid value for "virtual_inbox", virtual_inbox cannot be nil.')
|
188
|
+
end
|
189
|
+
|
186
190
|
invalid_properties
|
187
191
|
end
|
188
192
|
|
@@ -195,6 +199,7 @@ module MailSlurpClient
|
|
195
199
|
return false if @team_access.nil?
|
196
200
|
inbox_type_validator = EnumAttributeValidator.new('String', ["HTTP_INBOX", "SMTP_INBOX"])
|
197
201
|
return false unless inbox_type_validator.valid?(@inbox_type)
|
202
|
+
return false if @virtual_inbox.nil?
|
198
203
|
true
|
199
204
|
end
|
200
205
|
|
@@ -27,6 +27,14 @@ module MailSlurpClient
|
|
27
27
|
|
28
28
|
attr_accessor :from
|
29
29
|
|
30
|
+
attr_accessor :raw_url
|
31
|
+
|
32
|
+
attr_accessor :raw_key
|
33
|
+
|
34
|
+
attr_accessor :raw_bucket
|
35
|
+
|
36
|
+
attr_accessor :can_restore
|
37
|
+
|
30
38
|
attr_accessor :to
|
31
39
|
|
32
40
|
attr_accessor :cc
|
@@ -48,6 +56,10 @@ module MailSlurpClient
|
|
48
56
|
:'body_excerpt' => :'bodyExcerpt',
|
49
57
|
:'attachment_count' => :'attachmentCount',
|
50
58
|
:'from' => :'from',
|
59
|
+
:'raw_url' => :'rawUrl',
|
60
|
+
:'raw_key' => :'rawKey',
|
61
|
+
:'raw_bucket' => :'rawBucket',
|
62
|
+
:'can_restore' => :'canRestore',
|
51
63
|
:'to' => :'to',
|
52
64
|
:'cc' => :'cc',
|
53
65
|
:'bcc' => :'bcc',
|
@@ -66,6 +78,10 @@ module MailSlurpClient
|
|
66
78
|
:'body_excerpt' => :'String',
|
67
79
|
:'attachment_count' => :'Integer',
|
68
80
|
:'from' => :'String',
|
81
|
+
:'raw_url' => :'String',
|
82
|
+
:'raw_key' => :'String',
|
83
|
+
:'raw_bucket' => :'String',
|
84
|
+
:'can_restore' => :'Boolean',
|
69
85
|
:'to' => :'Array<String>',
|
70
86
|
:'cc' => :'Array<String>',
|
71
87
|
:'bcc' => :'Array<String>',
|
@@ -120,6 +136,22 @@ module MailSlurpClient
|
|
120
136
|
self.from = attributes[:'from']
|
121
137
|
end
|
122
138
|
|
139
|
+
if attributes.key?(:'raw_url')
|
140
|
+
self.raw_url = attributes[:'raw_url']
|
141
|
+
end
|
142
|
+
|
143
|
+
if attributes.key?(:'raw_key')
|
144
|
+
self.raw_key = attributes[:'raw_key']
|
145
|
+
end
|
146
|
+
|
147
|
+
if attributes.key?(:'raw_bucket')
|
148
|
+
self.raw_bucket = attributes[:'raw_bucket']
|
149
|
+
end
|
150
|
+
|
151
|
+
if attributes.key?(:'can_restore')
|
152
|
+
self.can_restore = attributes[:'can_restore']
|
153
|
+
end
|
154
|
+
|
123
155
|
if attributes.key?(:'to')
|
124
156
|
if (value = attributes[:'to']).is_a?(Array)
|
125
157
|
self.to = value
|
@@ -212,6 +244,10 @@ module MailSlurpClient
|
|
212
244
|
body_excerpt == o.body_excerpt &&
|
213
245
|
attachment_count == o.attachment_count &&
|
214
246
|
from == o.from &&
|
247
|
+
raw_url == o.raw_url &&
|
248
|
+
raw_key == o.raw_key &&
|
249
|
+
raw_bucket == o.raw_bucket &&
|
250
|
+
can_restore == o.can_restore &&
|
215
251
|
to == o.to &&
|
216
252
|
cc == o.cc &&
|
217
253
|
bcc == o.bcc &&
|
@@ -229,7 +265,7 @@ module MailSlurpClient
|
|
229
265
|
# Calculates hash code according to all attributes.
|
230
266
|
# @return [Integer] Hash code
|
231
267
|
def hash
|
232
|
-
[id, user_id, subject, body_excerpt, attachment_count, from, to, cc, bcc, inbox_ids, created_at, updated_at].hash
|
268
|
+
[id, user_id, subject, body_excerpt, attachment_count, from, raw_url, raw_key, raw_bucket, can_restore, to, cc, bcc, inbox_ids, created_at, updated_at].hash
|
233
269
|
end
|
234
270
|
|
235
271
|
# Builds the object from hash
|
@@ -187,6 +187,10 @@ module MailSlurpClient
|
|
187
187
|
invalid_properties.push('invalid value for "read_only", read_only cannot be nil.')
|
188
188
|
end
|
189
189
|
|
190
|
+
if @virtual_inbox.nil?
|
191
|
+
invalid_properties.push('invalid value for "virtual_inbox", virtual_inbox cannot be nil.')
|
192
|
+
end
|
193
|
+
|
190
194
|
invalid_properties
|
191
195
|
end
|
192
196
|
|
@@ -200,6 +204,7 @@ module MailSlurpClient
|
|
200
204
|
inbox_type_validator = EnumAttributeValidator.new('String', ["HTTP_INBOX", "SMTP_INBOX"])
|
201
205
|
return false unless inbox_type_validator.valid?(@inbox_type)
|
202
206
|
return false if @read_only.nil?
|
207
|
+
return false if @virtual_inbox.nil?
|
203
208
|
true
|
204
209
|
end
|
205
210
|
|
@@ -23,10 +23,10 @@ module MailSlurpClient
|
|
23
23
|
|
24
24
|
attr_accessor :subject
|
25
25
|
|
26
|
-
attr_accessor :attachments
|
27
|
-
|
28
26
|
attr_accessor :inbox_id
|
29
27
|
|
28
|
+
attr_accessor :attachments
|
29
|
+
|
30
30
|
attr_accessor :to
|
31
31
|
|
32
32
|
attr_accessor :bcc
|
@@ -46,8 +46,8 @@ module MailSlurpClient
|
|
46
46
|
:'from' => :'from',
|
47
47
|
:'user_id' => :'userId',
|
48
48
|
:'subject' => :'subject',
|
49
|
-
:'attachments' => :'attachments',
|
50
49
|
:'inbox_id' => :'inboxId',
|
50
|
+
:'attachments' => :'attachments',
|
51
51
|
:'to' => :'to',
|
52
52
|
:'bcc' => :'bcc',
|
53
53
|
:'cc' => :'cc',
|
@@ -64,8 +64,8 @@ module MailSlurpClient
|
|
64
64
|
:'from' => :'String',
|
65
65
|
:'user_id' => :'String',
|
66
66
|
:'subject' => :'String',
|
67
|
-
:'attachments' => :'Array<String>',
|
68
67
|
:'inbox_id' => :'String',
|
68
|
+
:'attachments' => :'Array<String>',
|
69
69
|
:'to' => :'Array<String>',
|
70
70
|
:'bcc' => :'Array<String>',
|
71
71
|
:'cc' => :'Array<String>',
|
@@ -112,16 +112,16 @@ module MailSlurpClient
|
|
112
112
|
self.subject = attributes[:'subject']
|
113
113
|
end
|
114
114
|
|
115
|
+
if attributes.key?(:'inbox_id')
|
116
|
+
self.inbox_id = attributes[:'inbox_id']
|
117
|
+
end
|
118
|
+
|
115
119
|
if attributes.key?(:'attachments')
|
116
120
|
if (value = attributes[:'attachments']).is_a?(Array)
|
117
121
|
self.attachments = value
|
118
122
|
end
|
119
123
|
end
|
120
124
|
|
121
|
-
if attributes.key?(:'inbox_id')
|
122
|
-
self.inbox_id = attributes[:'inbox_id']
|
123
|
-
end
|
124
|
-
|
125
125
|
if attributes.key?(:'to')
|
126
126
|
if (value = attributes[:'to']).is_a?(Array)
|
127
127
|
self.to = value
|
@@ -165,14 +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 @attachments.nil?
|
169
|
-
invalid_properties.push('invalid value for "attachments", attachments cannot be nil.')
|
170
|
-
end
|
171
|
-
|
172
168
|
if @inbox_id.nil?
|
173
169
|
invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
|
174
170
|
end
|
175
171
|
|
172
|
+
if @attachments.nil?
|
173
|
+
invalid_properties.push('invalid value for "attachments", attachments cannot be nil.')
|
174
|
+
end
|
175
|
+
|
176
176
|
if @to.nil?
|
177
177
|
invalid_properties.push('invalid value for "to", to cannot be nil.')
|
178
178
|
end
|
@@ -189,6 +189,10 @@ module MailSlurpClient
|
|
189
189
|
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
190
190
|
end
|
191
191
|
|
192
|
+
if @virtual_send.nil?
|
193
|
+
invalid_properties.push('invalid value for "virtual_send", virtual_send cannot be nil.')
|
194
|
+
end
|
195
|
+
|
192
196
|
invalid_properties
|
193
197
|
end
|
194
198
|
|
@@ -197,12 +201,13 @@ module MailSlurpClient
|
|
197
201
|
def valid?
|
198
202
|
return false if @id.nil?
|
199
203
|
return false if @user_id.nil?
|
200
|
-
return false if @attachments.nil?
|
201
204
|
return false if @inbox_id.nil?
|
205
|
+
return false if @attachments.nil?
|
202
206
|
return false if @to.nil?
|
203
207
|
return false if @bcc.nil?
|
204
208
|
return false if @cc.nil?
|
205
209
|
return false if @created_at.nil?
|
210
|
+
return false if @virtual_send.nil?
|
206
211
|
true
|
207
212
|
end
|
208
213
|
|
@@ -215,8 +220,8 @@ module MailSlurpClient
|
|
215
220
|
from == o.from &&
|
216
221
|
user_id == o.user_id &&
|
217
222
|
subject == o.subject &&
|
218
|
-
attachments == o.attachments &&
|
219
223
|
inbox_id == o.inbox_id &&
|
224
|
+
attachments == o.attachments &&
|
220
225
|
to == o.to &&
|
221
226
|
bcc == o.bcc &&
|
222
227
|
cc == o.cc &&
|
@@ -234,7 +239,7 @@ module MailSlurpClient
|
|
234
239
|
# Calculates hash code according to all attributes.
|
235
240
|
# @return [Integer] Hash code
|
236
241
|
def hash
|
237
|
-
[id, from, user_id, subject,
|
242
|
+
[id, from, user_id, subject, inbox_id, attachments, to, bcc, cc, created_at, body_md5_hash, virtual_send].hash
|
238
243
|
end
|
239
244
|
|
240
245
|
# Builds the object from hash
|
@@ -227,6 +227,10 @@ module MailSlurpClient
|
|
227
227
|
invalid_properties.push('invalid value for "tags", tags cannot be nil.')
|
228
228
|
end
|
229
229
|
|
230
|
+
if @opt_out.nil?
|
231
|
+
invalid_properties.push('invalid value for "opt_out", opt_out cannot be nil.')
|
232
|
+
end
|
233
|
+
|
230
234
|
if @created_at.nil?
|
231
235
|
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
232
236
|
end
|
@@ -245,6 +249,7 @@ module MailSlurpClient
|
|
245
249
|
return false if @contact_id.nil?
|
246
250
|
return false if @email_addresses.nil?
|
247
251
|
return false if @tags.nil?
|
252
|
+
return false if @opt_out.nil?
|
248
253
|
return false if @created_at.nil?
|
249
254
|
true
|
250
255
|
end
|
@@ -239,6 +239,10 @@ module MailSlurpClient
|
|
239
239
|
invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
|
240
240
|
end
|
241
241
|
|
242
|
+
if @seen.nil?
|
243
|
+
invalid_properties.push('invalid value for "seen", seen cannot be nil.')
|
244
|
+
end
|
245
|
+
|
242
246
|
invalid_properties
|
243
247
|
end
|
244
248
|
|
@@ -260,6 +264,7 @@ module MailSlurpClient
|
|
260
264
|
return false unless result_type_validator.valid?(@result_type)
|
261
265
|
return false if @created_at.nil?
|
262
266
|
return false if @updated_at.nil?
|
267
|
+
return false if @seen.nil?
|
263
268
|
true
|
264
269
|
end
|
265
270
|
|
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.
|
4
|
+
version: 15.11.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- mailslurp
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-06-10 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.
|