mailslurp_client 15.8.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/form_controller_api.rb +2 -2
- data/lib/mailslurp_client/api/inbox_controller_api.rb +75 -0
- data/lib/mailslurp_client/configuration.rb +2 -2
- data/lib/mailslurp_client/models/alias_projection.rb +18 -18
- data/lib/mailslurp_client/models/attachment_entity.rb +10 -1
- data/lib/mailslurp_client/models/attachment_projection.rb +15 -15
- data/lib/mailslurp_client/models/contact_projection.rb +18 -13
- data/lib/mailslurp_client/models/create_webhook_options.rb +1 -1
- data/lib/mailslurp_client/models/email_preview.rb +5 -0
- data/lib/mailslurp_client/models/email_projection.rb +45 -35
- 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 +40 -35
- data/lib/mailslurp_client/models/template_projection.rb +18 -18
- data/lib/mailslurp_client/models/thread_projection.rb +26 -26
- data/lib/mailslurp_client/models/webhook_dto.rb +1 -1
- data/lib/mailslurp_client/models/webhook_new_contact_payload.rb +5 -0
- data/lib/mailslurp_client/models/webhook_projection.rb +18 -18
- 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
|
@@ -20,7 +20,7 @@ module MailSlurpClient
|
|
20
20
|
@api_client = api_client
|
21
21
|
end
|
22
22
|
# Submit a form to be parsed and sent as an email to an address determined by the form fields
|
23
|
-
# This endpoint allows you to submit HTML forms and receive the field values and files via email. #### Parameters The endpoint looks for special meta parameters in the form fields OR in the URL request parameters. The meta parameters can be used to specify the behaviour of the email. You must provide at-least a `_to` email address to tell the endpoint where the form should be emailed. These can be submitted as hidden HTML input fields with the corresponding `name` attributes or as URL query parameters such as `?_to=test@example.com` The endpoint takes all other form fields that are named and includes them in the message body of the email. Files are sent as attachments. #### Submitting This endpoint accepts form submission via POST method. It accepts `application/x-www-form-urlencoded`, and `multipart/form-data` content-types. #### HTML Example ```html <form action=\"https://api.mailslurp.com/forms\" method=\"post\" > <input name=\"_to\" type=\"hidden\" value=\"test@example.com\"/> <textarea name=\"feedback\"></textarea> <button type=\"submit\">Submit</button> </form> ``` #### URL Example ```html <form action=\"https://api.mailslurp.com/forms?_to=test@example.com\" method=\"post\" > <textarea name=\"feedback\"></textarea> <button type=\"submit\">Submit</button> </form> ``` The email address is specified by a `_to` field OR is extracted from an email alias specified by a `_toAlias` field (see the alias controller for more information). Endpoint accepts . You can specify a content type in HTML forms using the `enctype` attribute, for instance: `<form enctype=\"multipart/form-data\">`.
|
23
|
+
# This endpoint allows you to submit HTML forms and receive the field values and files via email. #### Parameters The endpoint looks for special meta parameters in the form fields OR in the URL request parameters. The meta parameters can be used to specify the behaviour of the email. You must provide at-least a `_to` email address to tell the endpoint where the form should be emailed. These can be submitted as hidden HTML input fields with the corresponding `name` attributes or as URL query parameters such as `?_to=test@example.com` The endpoint takes all other form fields that are named and includes them in the message body of the email. Files are sent as attachments. #### Submitting This endpoint accepts form submission via POST method. It accepts `application/x-www-form-urlencoded`, and `multipart/form-data` content-types. #### HTML Example ```html <form action=\"https://ruby.api.mailslurp.com/forms\" method=\"post\" > <input name=\"_to\" type=\"hidden\" value=\"test@example.com\"/> <textarea name=\"feedback\"></textarea> <button type=\"submit\">Submit</button> </form> ``` #### URL Example ```html <form action=\"https://ruby.api.mailslurp.com/forms?_to=test@example.com\" method=\"post\" > <textarea name=\"feedback\"></textarea> <button type=\"submit\">Submit</button> </form> ``` The email address is specified by a `_to` field OR is extracted from an email alias specified by a `_toAlias` field (see the alias controller for more information). Endpoint accepts . You can specify a content type in HTML forms using the `enctype` attribute, for instance: `<form enctype=\"multipart/form-data\">`.
|
24
24
|
# @param [Hash] opts the optional parameters
|
25
25
|
# @option opts [String] :_to The email address that submitted form should be sent to.
|
26
26
|
# @option opts [String] :_subject Optional subject of the email that will be sent.
|
@@ -36,7 +36,7 @@ module MailSlurpClient
|
|
36
36
|
end
|
37
37
|
|
38
38
|
# Submit a form to be parsed and sent as an email to an address determined by the form fields
|
39
|
-
# This endpoint allows you to submit HTML forms and receive the field values and files via email. #### Parameters The endpoint looks for special meta parameters in the form fields OR in the URL request parameters. The meta parameters can be used to specify the behaviour of the email. You must provide at-least a `_to` email address to tell the endpoint where the form should be emailed. These can be submitted as hidden HTML input fields with the corresponding `name` attributes or as URL query parameters such as `?_to=test@example.com` The endpoint takes all other form fields that are named and includes them in the message body of the email. Files are sent as attachments. #### Submitting This endpoint accepts form submission via POST method. It accepts `application/x-www-form-urlencoded`, and `multipart/form-data` content-types. #### HTML Example ```html <form action=\"https://api.mailslurp.com/forms\" method=\"post\" > <input name=\"_to\" type=\"hidden\" value=\"test@example.com\"/> <textarea name=\"feedback\"></textarea> <button type=\"submit\">Submit</button> </form> ``` #### URL Example ```html <form action=\"https://api.mailslurp.com/forms?_to=test@example.com\" method=\"post\" > <textarea name=\"feedback\"></textarea> <button type=\"submit\">Submit</button> </form> ``` The email address is specified by a `_to` field OR is extracted from an email alias specified by a `_toAlias` field (see the alias controller for more information). Endpoint accepts . You can specify a content type in HTML forms using the `enctype` attribute, for instance: `<form enctype=\"multipart/form-data\">`.
|
39
|
+
# This endpoint allows you to submit HTML forms and receive the field values and files via email. #### Parameters The endpoint looks for special meta parameters in the form fields OR in the URL request parameters. The meta parameters can be used to specify the behaviour of the email. You must provide at-least a `_to` email address to tell the endpoint where the form should be emailed. These can be submitted as hidden HTML input fields with the corresponding `name` attributes or as URL query parameters such as `?_to=test@example.com` The endpoint takes all other form fields that are named and includes them in the message body of the email. Files are sent as attachments. #### Submitting This endpoint accepts form submission via POST method. It accepts `application/x-www-form-urlencoded`, and `multipart/form-data` content-types. #### HTML Example ```html <form action=\"https://ruby.api.mailslurp.com/forms\" method=\"post\" > <input name=\"_to\" type=\"hidden\" value=\"test@example.com\"/> <textarea name=\"feedback\"></textarea> <button type=\"submit\">Submit</button> </form> ``` #### URL Example ```html <form action=\"https://ruby.api.mailslurp.com/forms?_to=test@example.com\" method=\"post\" > <textarea name=\"feedback\"></textarea> <button type=\"submit\">Submit</button> </form> ``` The email address is specified by a `_to` field OR is extracted from an email alias specified by a `_toAlias` field (see the alias controller for more information). Endpoint accepts . You can specify a content type in HTML forms using the `enctype` attribute, for instance: `<form enctype=\"multipart/form-data\">`.
|
40
40
|
# @param [Hash] opts the optional parameters
|
41
41
|
# @option opts [String] :_to The email address that submitted form should be sent to.
|
42
42
|
# @option opts [String] :_subject Optional subject of the email that will be sent.
|
@@ -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
|
@@ -127,7 +127,7 @@ module MailSlurpClient
|
|
127
127
|
|
128
128
|
def initialize
|
129
129
|
@scheme = 'https'
|
130
|
-
@host = 'api.mailslurp.com'
|
130
|
+
@host = 'ruby.api.mailslurp.com'
|
131
131
|
@base_path = ''
|
132
132
|
@api_key = {}
|
133
133
|
@api_key_prefix = {}
|
@@ -207,7 +207,7 @@ module MailSlurpClient
|
|
207
207
|
def server_settings
|
208
208
|
[
|
209
209
|
{
|
210
|
-
url: "https://api.mailslurp.com",
|
210
|
+
url: "https://ruby.api.mailslurp.com",
|
211
211
|
description: "MailSlurp API Server",
|
212
212
|
}
|
213
213
|
]
|
@@ -25,12 +25,12 @@ module MailSlurpClient
|
|
25
25
|
|
26
26
|
attr_accessor :email_address
|
27
27
|
|
28
|
-
attr_accessor :updated_at
|
29
|
-
|
30
28
|
attr_accessor :created_at
|
31
29
|
|
32
30
|
attr_accessor :use_threads
|
33
31
|
|
32
|
+
attr_accessor :updated_at
|
33
|
+
|
34
34
|
# Attribute mapping from ruby-style variable name to JSON key.
|
35
35
|
def self.attribute_map
|
36
36
|
{
|
@@ -39,9 +39,9 @@ module MailSlurpClient
|
|
39
39
|
:'inbox_id' => :'inboxId',
|
40
40
|
:'user_id' => :'userId',
|
41
41
|
:'email_address' => :'emailAddress',
|
42
|
-
:'updated_at' => :'updatedAt',
|
43
42
|
:'created_at' => :'createdAt',
|
44
|
-
:'use_threads' => :'useThreads'
|
43
|
+
:'use_threads' => :'useThreads',
|
44
|
+
:'updated_at' => :'updatedAt'
|
45
45
|
}
|
46
46
|
end
|
47
47
|
|
@@ -53,9 +53,9 @@ module MailSlurpClient
|
|
53
53
|
:'inbox_id' => :'String',
|
54
54
|
:'user_id' => :'String',
|
55
55
|
:'email_address' => :'String',
|
56
|
-
:'updated_at' => :'DateTime',
|
57
56
|
:'created_at' => :'DateTime',
|
58
|
-
:'use_threads' => :'Boolean'
|
57
|
+
:'use_threads' => :'Boolean',
|
58
|
+
:'updated_at' => :'DateTime'
|
59
59
|
}
|
60
60
|
end
|
61
61
|
|
@@ -100,10 +100,6 @@ module MailSlurpClient
|
|
100
100
|
self.email_address = attributes[:'email_address']
|
101
101
|
end
|
102
102
|
|
103
|
-
if attributes.key?(:'updated_at')
|
104
|
-
self.updated_at = attributes[:'updated_at']
|
105
|
-
end
|
106
|
-
|
107
103
|
if attributes.key?(:'created_at')
|
108
104
|
self.created_at = attributes[:'created_at']
|
109
105
|
end
|
@@ -111,6 +107,10 @@ module MailSlurpClient
|
|
111
107
|
if attributes.key?(:'use_threads')
|
112
108
|
self.use_threads = attributes[:'use_threads']
|
113
109
|
end
|
110
|
+
|
111
|
+
if attributes.key?(:'updated_at')
|
112
|
+
self.updated_at = attributes[:'updated_at']
|
113
|
+
end
|
114
114
|
end
|
115
115
|
|
116
116
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -133,14 +133,14 @@ module MailSlurpClient
|
|
133
133
|
invalid_properties.push('invalid value for "email_address", email_address cannot be nil.')
|
134
134
|
end
|
135
135
|
|
136
|
-
if @updated_at.nil?
|
137
|
-
invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
|
138
|
-
end
|
139
|
-
|
140
136
|
if @created_at.nil?
|
141
137
|
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
142
138
|
end
|
143
139
|
|
140
|
+
if @updated_at.nil?
|
141
|
+
invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
|
142
|
+
end
|
143
|
+
|
144
144
|
invalid_properties
|
145
145
|
end
|
146
146
|
|
@@ -151,8 +151,8 @@ module MailSlurpClient
|
|
151
151
|
return false if @inbox_id.nil?
|
152
152
|
return false if @user_id.nil?
|
153
153
|
return false if @email_address.nil?
|
154
|
-
return false if @updated_at.nil?
|
155
154
|
return false if @created_at.nil?
|
155
|
+
return false if @updated_at.nil?
|
156
156
|
true
|
157
157
|
end
|
158
158
|
|
@@ -166,9 +166,9 @@ module MailSlurpClient
|
|
166
166
|
inbox_id == o.inbox_id &&
|
167
167
|
user_id == o.user_id &&
|
168
168
|
email_address == o.email_address &&
|
169
|
-
updated_at == o.updated_at &&
|
170
169
|
created_at == o.created_at &&
|
171
|
-
use_threads == o.use_threads
|
170
|
+
use_threads == o.use_threads &&
|
171
|
+
updated_at == o.updated_at
|
172
172
|
end
|
173
173
|
|
174
174
|
# @see the `==` method
|
@@ -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, user_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
|
@@ -25,10 +25,10 @@ module MailSlurpClient
|
|
25
25
|
# Attachment ID
|
26
26
|
attr_accessor :attachment_id
|
27
27
|
|
28
|
-
attr_accessor :updated_at
|
29
|
-
|
30
28
|
attr_accessor :created_at
|
31
29
|
|
30
|
+
attr_accessor :updated_at
|
31
|
+
|
32
32
|
# Content type of attachment.
|
33
33
|
attr_accessor :content_type
|
34
34
|
|
@@ -39,8 +39,8 @@ module MailSlurpClient
|
|
39
39
|
:'content_length' => :'contentLength',
|
40
40
|
:'user_id' => :'userId',
|
41
41
|
:'attachment_id' => :'attachmentId',
|
42
|
-
:'updated_at' => :'updatedAt',
|
43
42
|
:'created_at' => :'createdAt',
|
43
|
+
:'updated_at' => :'updatedAt',
|
44
44
|
:'content_type' => :'contentType'
|
45
45
|
}
|
46
46
|
end
|
@@ -52,8 +52,8 @@ module MailSlurpClient
|
|
52
52
|
:'content_length' => :'Integer',
|
53
53
|
:'user_id' => :'String',
|
54
54
|
:'attachment_id' => :'String',
|
55
|
-
:'updated_at' => :'DateTime',
|
56
55
|
:'created_at' => :'DateTime',
|
56
|
+
:'updated_at' => :'DateTime',
|
57
57
|
:'content_type' => :'String'
|
58
58
|
}
|
59
59
|
end
|
@@ -95,14 +95,14 @@ module MailSlurpClient
|
|
95
95
|
self.attachment_id = attributes[:'attachment_id']
|
96
96
|
end
|
97
97
|
|
98
|
-
if attributes.key?(:'updated_at')
|
99
|
-
self.updated_at = attributes[:'updated_at']
|
100
|
-
end
|
101
|
-
|
102
98
|
if attributes.key?(:'created_at')
|
103
99
|
self.created_at = attributes[:'created_at']
|
104
100
|
end
|
105
101
|
|
102
|
+
if attributes.key?(:'updated_at')
|
103
|
+
self.updated_at = attributes[:'updated_at']
|
104
|
+
end
|
105
|
+
|
106
106
|
if attributes.key?(:'content_type')
|
107
107
|
self.content_type = attributes[:'content_type']
|
108
108
|
end
|
@@ -120,14 +120,14 @@ module MailSlurpClient
|
|
120
120
|
invalid_properties.push('invalid value for "attachment_id", attachment_id cannot be nil.')
|
121
121
|
end
|
122
122
|
|
123
|
-
if @updated_at.nil?
|
124
|
-
invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
|
125
|
-
end
|
126
|
-
|
127
123
|
if @created_at.nil?
|
128
124
|
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
129
125
|
end
|
130
126
|
|
127
|
+
if @updated_at.nil?
|
128
|
+
invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
|
129
|
+
end
|
130
|
+
|
131
131
|
invalid_properties
|
132
132
|
end
|
133
133
|
|
@@ -136,8 +136,8 @@ module MailSlurpClient
|
|
136
136
|
def valid?
|
137
137
|
return false if @user_id.nil?
|
138
138
|
return false if @attachment_id.nil?
|
139
|
-
return false if @updated_at.nil?
|
140
139
|
return false if @created_at.nil?
|
140
|
+
return false if @updated_at.nil?
|
141
141
|
true
|
142
142
|
end
|
143
143
|
|
@@ -150,8 +150,8 @@ module MailSlurpClient
|
|
150
150
|
content_length == o.content_length &&
|
151
151
|
user_id == o.user_id &&
|
152
152
|
attachment_id == o.attachment_id &&
|
153
|
-
updated_at == o.updated_at &&
|
154
153
|
created_at == o.created_at &&
|
154
|
+
updated_at == o.updated_at &&
|
155
155
|
content_type == o.content_type
|
156
156
|
end
|
157
157
|
|
@@ -164,7 +164,7 @@ module MailSlurpClient
|
|
164
164
|
# Calculates hash code according to all attributes.
|
165
165
|
# @return [Integer] Hash code
|
166
166
|
def hash
|
167
|
-
[name, content_length, user_id, attachment_id,
|
167
|
+
[name, content_length, user_id, attachment_id, created_at, updated_at, content_type].hash
|
168
168
|
end
|
169
169
|
|
170
170
|
# Builds the object from hash
|
@@ -19,8 +19,6 @@ module MailSlurpClient
|
|
19
19
|
|
20
20
|
attr_accessor :group_id
|
21
21
|
|
22
|
-
attr_accessor :created_at
|
23
|
-
|
24
22
|
attr_accessor :first_name
|
25
23
|
|
26
24
|
attr_accessor :last_name
|
@@ -31,17 +29,19 @@ module MailSlurpClient
|
|
31
29
|
|
32
30
|
attr_accessor :opt_out
|
33
31
|
|
32
|
+
attr_accessor :created_at
|
33
|
+
|
34
34
|
# Attribute mapping from ruby-style variable name to JSON key.
|
35
35
|
def self.attribute_map
|
36
36
|
{
|
37
37
|
:'id' => :'id',
|
38
38
|
:'group_id' => :'groupId',
|
39
|
-
:'created_at' => :'createdAt',
|
40
39
|
:'first_name' => :'firstName',
|
41
40
|
:'last_name' => :'lastName',
|
42
41
|
:'company' => :'company',
|
43
42
|
:'email_addresses' => :'emailAddresses',
|
44
|
-
:'opt_out' => :'optOut'
|
43
|
+
:'opt_out' => :'optOut',
|
44
|
+
:'created_at' => :'createdAt'
|
45
45
|
}
|
46
46
|
end
|
47
47
|
|
@@ -50,12 +50,12 @@ module MailSlurpClient
|
|
50
50
|
{
|
51
51
|
:'id' => :'String',
|
52
52
|
:'group_id' => :'String',
|
53
|
-
:'created_at' => :'DateTime',
|
54
53
|
:'first_name' => :'String',
|
55
54
|
:'last_name' => :'String',
|
56
55
|
:'company' => :'String',
|
57
56
|
:'email_addresses' => :'Array<String>',
|
58
|
-
:'opt_out' => :'Boolean'
|
57
|
+
:'opt_out' => :'Boolean',
|
58
|
+
:'created_at' => :'DateTime'
|
59
59
|
}
|
60
60
|
end
|
61
61
|
|
@@ -88,10 +88,6 @@ module MailSlurpClient
|
|
88
88
|
self.group_id = attributes[:'group_id']
|
89
89
|
end
|
90
90
|
|
91
|
-
if attributes.key?(:'created_at')
|
92
|
-
self.created_at = attributes[:'created_at']
|
93
|
-
end
|
94
|
-
|
95
91
|
if attributes.key?(:'first_name')
|
96
92
|
self.first_name = attributes[:'first_name']
|
97
93
|
end
|
@@ -113,6 +109,10 @@ module MailSlurpClient
|
|
113
109
|
if attributes.key?(:'opt_out')
|
114
110
|
self.opt_out = attributes[:'opt_out']
|
115
111
|
end
|
112
|
+
|
113
|
+
if attributes.key?(:'created_at')
|
114
|
+
self.created_at = attributes[:'created_at']
|
115
|
+
end
|
116
116
|
end
|
117
117
|
|
118
118
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -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
|
@@ -145,12 +150,12 @@ module MailSlurpClient
|
|
145
150
|
self.class == o.class &&
|
146
151
|
id == o.id &&
|
147
152
|
group_id == o.group_id &&
|
148
|
-
created_at == o.created_at &&
|
149
153
|
first_name == o.first_name &&
|
150
154
|
last_name == o.last_name &&
|
151
155
|
company == o.company &&
|
152
156
|
email_addresses == o.email_addresses &&
|
153
|
-
opt_out == o.opt_out
|
157
|
+
opt_out == o.opt_out &&
|
158
|
+
created_at == o.created_at
|
154
159
|
end
|
155
160
|
|
156
161
|
# @see the `==` method
|
@@ -162,7 +167,7 @@ module MailSlurpClient
|
|
162
167
|
# Calculates hash code according to all attributes.
|
163
168
|
# @return [Integer] Hash code
|
164
169
|
def hash
|
165
|
-
[id, group_id,
|
170
|
+
[id, group_id, first_name, last_name, company, email_addresses, opt_out, created_at].hash
|
166
171
|
end
|
167
172
|
|
168
173
|
# Builds the object from hash
|
@@ -15,7 +15,7 @@ require 'date'
|
|
15
15
|
module MailSlurpClient
|
16
16
|
# Options for creating a webhook. Webhooks can be attached to inboxes and MailSlurp will POST a webhook payload to the URL specified whenever the inbox receives an email. Webhooks are great for processing many inbound emails.
|
17
17
|
class CreateWebhookOptions
|
18
|
-
# Public URL on your server that MailSlurp can post WebhookNotification payload to when an email is received or an event is trigger. The payload of the submitted JSON is dependent on the webhook event type. The default `EMAIL_RECEIVED` payload is described by `https://api.mailslurp.com/schemas/webhook-payload`. The other events, `NEW_EMAIL`, `NEW_CONTACT`, and `NEW_ATTACHMENT` are described by `https://api.mailslurp.com/schemas/webhook-new-email-payload`, `https://api.mailslurp.com/schemas/webhook-new-contact-payload`,`https://api.mailslurp.com/schemas/webhook-new-attachment-payload` respectively.
|
18
|
+
# Public URL on your server that MailSlurp can post WebhookNotification payload to when an email is received or an event is trigger. The payload of the submitted JSON is dependent on the webhook event type. The default `EMAIL_RECEIVED` payload is described by `https://ruby.api.mailslurp.com/schemas/webhook-payload`. The other events, `NEW_EMAIL`, `NEW_CONTACT`, and `NEW_ATTACHMENT` are described by `https://ruby.api.mailslurp.com/schemas/webhook-new-email-payload`, `https://ruby.api.mailslurp.com/schemas/webhook-new-contact-payload`,`https://ruby.api.mailslurp.com/schemas/webhook-new-attachment-payload` respectively.
|
19
19
|
attr_accessor :url
|
20
20
|
|
21
21
|
attr_accessor :basic_auth
|
@@ -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
|
|