mailslurp_client 15.17.4 → 15.17.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +13 -13
- data/SECURITY.md +1 -1
- data/SUPPORT.md +2 -2
- data/lib/mailslurp_client/api/domain_controller_api.rb +59 -0
- data/lib/mailslurp_client/api/inbox_ruleset_controller_api.rb +6 -10
- data/lib/mailslurp_client/api/phone_controller_api.rb +1 -1
- data/lib/mailslurp_client/models/alias_projection.rb +15 -15
- data/lib/mailslurp_client/models/attachment_projection.rb +19 -19
- data/lib/mailslurp_client/models/create_emergency_address_options.rb +2 -2
- data/lib/mailslurp_client/models/domain_dto.rb +27 -1
- data/lib/mailslurp_client/models/domain_issues_dto.rb +211 -0
- data/lib/mailslurp_client/models/domain_preview.rb +18 -4
- data/lib/mailslurp_client/models/email_projection.rb +10 -10
- data/lib/mailslurp_client/models/emergency_address.rb +2 -2
- data/lib/mailslurp_client/models/emergency_address_dto.rb +2 -2
- data/lib/mailslurp_client/models/inbox_forwarder_event_projection.rb +11 -11
- data/lib/mailslurp_client/models/inbox_replier_event_projection.rb +23 -23
- data/lib/mailslurp_client/models/inbox_ruleset_dto.rb +0 -5
- data/lib/mailslurp_client/models/missed_email_projection.rb +11 -11
- data/lib/mailslurp_client/models/phone_number_dto.rb +2 -2
- data/lib/mailslurp_client/models/phone_number_projection.rb +2 -2
- data/lib/mailslurp_client/models/phone_plan_dto.rb +2 -2
- data/lib/mailslurp_client/models/sent_email_projection.rb +15 -15
- data/lib/mailslurp_client/models/thread_projection.rb +20 -20
- data/lib/mailslurp_client/models/tracking_pixel_projection.rb +13 -13
- data/lib/mailslurp_client/version.rb +1 -1
- data/lib/mailslurp_client.rb +1 -0
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 37d8da22bc5ca288df790fd14fe17d6189aa7a3e0f09a1086b479a3230536059
|
4
|
+
data.tar.gz: 13396dd20ebc8d45b51b4c6a0375fd7680201c03d910c1759d64f1322c46a36e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1392e6dfff1ab302f5a7b1123b2197204adfd595acba49ae318ef29c39073eb0e5f47b6b36310752f6048318f85f0f3e9f2b08374c46026d0ec705b57d4e0183
|
7
|
+
data.tar.gz: '0808749ae854a7d3122e33b05475db02333887182b77d64d9c28c9f7833a904b5bf2b09461cde70402f15060d019c8786dd56edf19eed39ce8f41a731e9f1268'
|
data/README.md
CHANGED
@@ -6,7 +6,7 @@ MailSlurp is an email API service that lets you create real email addresses in c
|
|
6
6
|
|
7
7
|
## Quick links
|
8
8
|
|
9
|
-
- [Method Documentation](https://mailslurp.
|
9
|
+
- [Method Documentation](https://ruby.mailslurp.com/)
|
10
10
|
- [Gem Package](https://rubygems.org/gems/mailslurp_client)
|
11
11
|
- [Github Source](https://github.com/mailslurp/mailslurp-client-ruby)
|
12
12
|
- [SMTP access details](https://www.mailslurp.com/guides/smtp-imap/)
|
@@ -14,9 +14,9 @@ MailSlurp is an email API service that lets you create real email addresses in c
|
|
14
14
|
|
15
15
|
### Common controllers
|
16
16
|
|
17
|
-
- [Email controller](https://mailslurp.
|
18
|
-
- [Inbox controller](https://mailslurp.
|
19
|
-
- [WaitFor controller](https://mailslurp.
|
17
|
+
- [Email controller](https://ruby.mailslurp.com/MailSlurpClient/EmailControllerApi.html) send and receive emails
|
18
|
+
- [Inbox controller](https://ruby.mailslurp.com/MailSlurpClient/InboxControllerApi.html) create and manage email addresses
|
19
|
+
- [WaitFor controller](https://ruby.mailslurp.com/MailSlurpClient/WaitForControllerApi.html) wait for expected emails to arrive
|
20
20
|
|
21
21
|
|
22
22
|
### Example tutorials
|
@@ -27,7 +27,7 @@ This section describes how to get up and running with the Ruby client.
|
|
27
27
|
|
28
28
|
See the [examples page](https://www.mailslurp.com/examples/) for more examples and use with common frameworks such as Rails and RSpec.
|
29
29
|
|
30
|
-
See the method documentation for a [list of all functions](https://mailslurp.
|
30
|
+
See the method documentation for a [list of all functions](https://ruby.mailslurp.com/)
|
31
31
|
|
32
32
|
### Create API Key
|
33
33
|
|
@@ -82,7 +82,7 @@ Here are some common uses:
|
|
82
82
|
|
83
83
|
### Create inboxes
|
84
84
|
|
85
|
-
To use MailSlurp you need to create inboxes. These are email accounts that have an ID and a real email address. See methods on the [inbox controller](https://mailslurp.
|
85
|
+
To use MailSlurp you need to create inboxes. These are email accounts that have an ID and a real email address. See methods on the [inbox controller](https://ruby.mailslurp.com/MailSlurpClient/InboxControllerApi.html) for more information.
|
86
86
|
|
87
87
|
```ruby
|
88
88
|
inbox_controller = MailSlurpClient::InboxControllerApi.new
|
@@ -177,7 +177,7 @@ end
|
|
177
177
|
|
178
178
|
### List inboxes
|
179
179
|
|
180
|
-
Inboxes you create can be listed in a paginated way using the [InboxController](https://mailslurp.
|
180
|
+
Inboxes you create can be listed in a paginated way using the [InboxController](https://ruby.mailslurp.com/MailSlurpClient/InboxControllerApi.html)).
|
181
181
|
|
182
182
|
```ruby
|
183
183
|
it 'can list inboxes' do
|
@@ -198,7 +198,7 @@ end
|
|
198
198
|
### Send emails
|
199
199
|
|
200
200
|
You can send HTML emails easily with the inbox controller. First create an inbox then use its ID with the `send_email` method.
|
201
|
-
To send attachments see the [Method Documentation](https://mailslurp.
|
201
|
+
To send attachments see the [Method Documentation](https://ruby.mailslurp.com/).
|
202
202
|
|
203
203
|
```ruby
|
204
204
|
# create an inbox
|
@@ -219,7 +219,7 @@ inbox_controller.send_email(inbox.id, {
|
|
219
219
|
})
|
220
220
|
```
|
221
221
|
|
222
|
-
You can also use objects for most [method options](https://mailslurp.
|
222
|
+
You can also use objects for most [method options](https://ruby.mailslurp.com/MailSlurpClient/SendEmailOptions.html):
|
223
223
|
|
224
224
|
```ruby
|
225
225
|
opts = {
|
@@ -239,7 +239,7 @@ inbox_controller.send_email(inbox_1.id, opts)
|
|
239
239
|
|
240
240
|
### Receive emails
|
241
241
|
|
242
|
-
To read already existing emails use the [Email Controller](https://mailslurp.
|
242
|
+
To read already existing emails use the [Email Controller](https://ruby.mailslurp.com/MailSlurpClient/EmailControllerApi.html). To wait for expected emails to arrive use the [WaitFor Controller](https://ruby.mailslurp.com/MailSlurpClient/WaitForControllerApi.html).
|
243
243
|
You can use MailSlurp to wait for at least 1 unread email in an inbox and return it.
|
244
244
|
If a timeout is exceeded it will throw an error instead:
|
245
245
|
|
@@ -273,7 +273,7 @@ code, * = match.captures
|
|
273
273
|
|
274
274
|
### Attachments
|
275
275
|
|
276
|
-
You can send attachments by first uploading files with the [AttachmentControllerApi](https://mailslurp.
|
276
|
+
You can send attachments by first uploading files with the [AttachmentControllerApi](https://ruby.mailslurp.com/MailSlurpClient/AttachmentControllerApi.html) then using the returned attachment IDs in the send email method.
|
277
277
|
|
278
278
|
MailSlurp endpoints use base64 string encoding for upload and download files. To encode or decode strings in Ruby make sure you use the **strict** variables that avoid added newlines.
|
279
279
|
|
@@ -389,7 +389,7 @@ describe 'use MailSlurp ruby sdk to create email addresses then send and receive
|
|
389
389
|
inbox_2 = inbox_controller.create_inbox
|
390
390
|
|
391
391
|
# send email from inbox 1 to inbox 2 (you can send emails to any address)
|
392
|
-
# for send options see https://mailslurp.
|
392
|
+
# for send options see https://ruby.mailslurp.com/MailSlurpClient/SendEmailOptions.html
|
393
393
|
opts = {
|
394
394
|
send_email_options: MailSlurpClient::SendEmailOptions.new(
|
395
395
|
{
|
@@ -419,4 +419,4 @@ end
|
|
419
419
|
|
420
420
|
## SDK Documentation
|
421
421
|
|
422
|
-
See the [examples page](https://www.mailslurp.com/examples/) or the full [Method Documentation](https://mailslurp.
|
422
|
+
See the [examples page](https://www.mailslurp.com/examples/) or the full [Method Documentation](https://ruby.mailslurp.com/) on Github.
|
data/SECURITY.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
1
|
# Security
|
2
2
|
|
3
3
|
This client calls the MailSlurp API endpoints. Connections should be made over secure HTTPS using your secure API Token. Do not share or commit the token if you can avoid doing so.
|
4
|
-
To report security issues or talk with MailSlurp support please email [
|
4
|
+
To report security issues or talk with MailSlurp support please email [contact@mailslurp.dev](mailto:contact@mailslurp.dev).
|
data/SUPPORT.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
1
|
# Support
|
2
2
|
|
3
|
-
To report issues or talk with MailSlurp support please email [
|
4
|
-
Alternatively you can visit our [support portal](https://mailslurp.
|
3
|
+
To report issues or talk with MailSlurp support please email [contact@mailslurp.dev](mailto:contact@mailslurp.dev).
|
4
|
+
Alternatively you can visit our [support portal](https://www.mailslurp.com/support/) or open a ticket in the corresponding [Github repository](https://www.github.com/mailslurp).
|
@@ -211,6 +211,7 @@ module MailSlurpClient
|
|
211
211
|
# Returns domain verification status and tokens for a given domain
|
212
212
|
# @param id [String]
|
213
213
|
# @param [Hash] opts the optional parameters
|
214
|
+
# @option opts [Boolean] :check_for_errors
|
214
215
|
# @return [DomainDto]
|
215
216
|
def get_domain(id, opts = {})
|
216
217
|
data, _status_code, _headers = get_domain_with_http_info(id, opts)
|
@@ -221,6 +222,7 @@ module MailSlurpClient
|
|
221
222
|
# Returns domain verification status and tokens for a given domain
|
222
223
|
# @param id [String]
|
223
224
|
# @param [Hash] opts the optional parameters
|
225
|
+
# @option opts [Boolean] :check_for_errors
|
224
226
|
# @return [Array<(DomainDto, Integer, Hash)>] DomainDto data, response status code and response headers
|
225
227
|
def get_domain_with_http_info(id, opts = {})
|
226
228
|
if @api_client.config.debugging
|
@@ -235,6 +237,7 @@ module MailSlurpClient
|
|
235
237
|
|
236
238
|
# query parameters
|
237
239
|
query_params = opts[:query_params] || {}
|
240
|
+
query_params[:'checkForErrors'] = opts[:'check_for_errors'] if !opts[:'check_for_errors'].nil?
|
238
241
|
|
239
242
|
# header parameters
|
240
243
|
header_params = opts[:header_params] || {}
|
@@ -269,6 +272,62 @@ module MailSlurpClient
|
|
269
272
|
return data, status_code, headers
|
270
273
|
end
|
271
274
|
|
275
|
+
# Get domain issues
|
276
|
+
# List domain issues for domains you have created
|
277
|
+
# @param [Hash] opts the optional parameters
|
278
|
+
# @return [DomainIssuesDto]
|
279
|
+
def get_domain_issues(opts = {})
|
280
|
+
data, _status_code, _headers = get_domain_issues_with_http_info(opts)
|
281
|
+
data
|
282
|
+
end
|
283
|
+
|
284
|
+
# Get domain issues
|
285
|
+
# List domain issues for domains you have created
|
286
|
+
# @param [Hash] opts the optional parameters
|
287
|
+
# @return [Array<(DomainIssuesDto, Integer, Hash)>] DomainIssuesDto data, response status code and response headers
|
288
|
+
def get_domain_issues_with_http_info(opts = {})
|
289
|
+
if @api_client.config.debugging
|
290
|
+
@api_client.config.logger.debug 'Calling API: DomainControllerApi.get_domain_issues ...'
|
291
|
+
end
|
292
|
+
# resource path
|
293
|
+
local_var_path = '/domains/issues'
|
294
|
+
|
295
|
+
# query parameters
|
296
|
+
query_params = opts[:query_params] || {}
|
297
|
+
|
298
|
+
# header parameters
|
299
|
+
header_params = opts[:header_params] || {}
|
300
|
+
# HTTP header 'Accept' (if needed)
|
301
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
302
|
+
|
303
|
+
# form parameters
|
304
|
+
form_params = opts[:form_params] || {}
|
305
|
+
|
306
|
+
# http body (model)
|
307
|
+
post_body = opts[:body]
|
308
|
+
|
309
|
+
# return_type
|
310
|
+
return_type = opts[:return_type] || 'DomainIssuesDto'
|
311
|
+
|
312
|
+
# auth_names
|
313
|
+
auth_names = opts[:auth_names] || ['API_KEY']
|
314
|
+
|
315
|
+
new_options = opts.merge(
|
316
|
+
:header_params => header_params,
|
317
|
+
:query_params => query_params,
|
318
|
+
:form_params => form_params,
|
319
|
+
:body => post_body,
|
320
|
+
:auth_names => auth_names,
|
321
|
+
:return_type => return_type
|
322
|
+
)
|
323
|
+
|
324
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
325
|
+
if @api_client.config.debugging
|
326
|
+
@api_client.config.logger.debug "API called: DomainControllerApi#get_domain_issues\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
327
|
+
end
|
328
|
+
return data, status_code, headers
|
329
|
+
end
|
330
|
+
|
272
331
|
# Get catch all wild card inbox for domain
|
273
332
|
# Get the catch all inbox for a domain for missed emails
|
274
333
|
# @param id [String]
|
@@ -21,29 +21,25 @@ module MailSlurpClient
|
|
21
21
|
end
|
22
22
|
# Create an inbox ruleset
|
23
23
|
# Create a new inbox rule for forwarding, blocking, and allowing emails when sending and receiving
|
24
|
-
# @param inbox_id [String] Inbox id to attach ruleset to
|
25
24
|
# @param create_inbox_ruleset_options [CreateInboxRulesetOptions]
|
26
25
|
# @param [Hash] opts the optional parameters
|
26
|
+
# @option opts [String] :inbox_id Inbox id to attach ruleset to
|
27
27
|
# @return [InboxRulesetDto]
|
28
|
-
def create_new_inbox_ruleset(
|
29
|
-
data, _status_code, _headers = create_new_inbox_ruleset_with_http_info(
|
28
|
+
def create_new_inbox_ruleset(create_inbox_ruleset_options, opts = {})
|
29
|
+
data, _status_code, _headers = create_new_inbox_ruleset_with_http_info(create_inbox_ruleset_options, opts)
|
30
30
|
data
|
31
31
|
end
|
32
32
|
|
33
33
|
# Create an inbox ruleset
|
34
34
|
# Create a new inbox rule for forwarding, blocking, and allowing emails when sending and receiving
|
35
|
-
# @param inbox_id [String] Inbox id to attach ruleset to
|
36
35
|
# @param create_inbox_ruleset_options [CreateInboxRulesetOptions]
|
37
36
|
# @param [Hash] opts the optional parameters
|
37
|
+
# @option opts [String] :inbox_id Inbox id to attach ruleset to
|
38
38
|
# @return [Array<(InboxRulesetDto, Integer, Hash)>] InboxRulesetDto data, response status code and response headers
|
39
|
-
def create_new_inbox_ruleset_with_http_info(
|
39
|
+
def create_new_inbox_ruleset_with_http_info(create_inbox_ruleset_options, opts = {})
|
40
40
|
if @api_client.config.debugging
|
41
41
|
@api_client.config.logger.debug 'Calling API: InboxRulesetControllerApi.create_new_inbox_ruleset ...'
|
42
42
|
end
|
43
|
-
# verify the required parameter 'inbox_id' is set
|
44
|
-
if @api_client.config.client_side_validation && inbox_id.nil?
|
45
|
-
fail ArgumentError, "Missing the required parameter 'inbox_id' when calling InboxRulesetControllerApi.create_new_inbox_ruleset"
|
46
|
-
end
|
47
43
|
# verify the required parameter 'create_inbox_ruleset_options' is set
|
48
44
|
if @api_client.config.client_side_validation && create_inbox_ruleset_options.nil?
|
49
45
|
fail ArgumentError, "Missing the required parameter 'create_inbox_ruleset_options' when calling InboxRulesetControllerApi.create_new_inbox_ruleset"
|
@@ -53,7 +49,7 @@ module MailSlurpClient
|
|
53
49
|
|
54
50
|
# query parameters
|
55
51
|
query_params = opts[:query_params] || {}
|
56
|
-
query_params[:'inboxId'] = inbox_id
|
52
|
+
query_params[:'inboxId'] = opts[:'inbox_id'] if !opts[:'inbox_id'].nil?
|
57
53
|
|
58
54
|
# header parameters
|
59
55
|
header_params = opts[:header_params] || {}
|
@@ -386,7 +386,7 @@ module MailSlurpClient
|
|
386
386
|
if @api_client.config.debugging
|
387
387
|
@api_client.config.logger.debug 'Calling API: PhoneControllerApi.get_phone_numbers ...'
|
388
388
|
end
|
389
|
-
allowable_values = ["US", "GB"]
|
389
|
+
allowable_values = ["US", "GB", "AU"]
|
390
390
|
if @api_client.config.client_side_validation && opts[:'phone_country'] && !allowable_values.include?(opts[:'phone_country'])
|
391
391
|
fail ArgumentError, "invalid value for \"phone_country\", must be one of #{allowable_values}"
|
392
392
|
end
|
@@ -19,12 +19,12 @@ module MailSlurpClient
|
|
19
19
|
|
20
20
|
attr_accessor :id
|
21
21
|
|
22
|
+
attr_accessor :inbox_id
|
23
|
+
|
22
24
|
attr_accessor :user_id
|
23
25
|
|
24
26
|
attr_accessor :email_address
|
25
27
|
|
26
|
-
attr_accessor :inbox_id
|
27
|
-
|
28
28
|
attr_accessor :created_at
|
29
29
|
|
30
30
|
attr_accessor :updated_at
|
@@ -36,9 +36,9 @@ module MailSlurpClient
|
|
36
36
|
{
|
37
37
|
:'name' => :'name',
|
38
38
|
:'id' => :'id',
|
39
|
+
:'inbox_id' => :'inboxId',
|
39
40
|
:'user_id' => :'userId',
|
40
41
|
:'email_address' => :'emailAddress',
|
41
|
-
:'inbox_id' => :'inboxId',
|
42
42
|
:'created_at' => :'createdAt',
|
43
43
|
:'updated_at' => :'updatedAt',
|
44
44
|
:'use_threads' => :'useThreads'
|
@@ -50,9 +50,9 @@ module MailSlurpClient
|
|
50
50
|
{
|
51
51
|
:'name' => :'String',
|
52
52
|
:'id' => :'String',
|
53
|
+
:'inbox_id' => :'String',
|
53
54
|
:'user_id' => :'String',
|
54
55
|
:'email_address' => :'String',
|
55
|
-
:'inbox_id' => :'String',
|
56
56
|
:'created_at' => :'DateTime',
|
57
57
|
:'updated_at' => :'DateTime',
|
58
58
|
:'use_threads' => :'Boolean'
|
@@ -88,6 +88,10 @@ module MailSlurpClient
|
|
88
88
|
self.id = attributes[:'id']
|
89
89
|
end
|
90
90
|
|
91
|
+
if attributes.key?(:'inbox_id')
|
92
|
+
self.inbox_id = attributes[:'inbox_id']
|
93
|
+
end
|
94
|
+
|
91
95
|
if attributes.key?(:'user_id')
|
92
96
|
self.user_id = attributes[:'user_id']
|
93
97
|
end
|
@@ -96,10 +100,6 @@ module MailSlurpClient
|
|
96
100
|
self.email_address = attributes[:'email_address']
|
97
101
|
end
|
98
102
|
|
99
|
-
if attributes.key?(:'inbox_id')
|
100
|
-
self.inbox_id = attributes[:'inbox_id']
|
101
|
-
end
|
102
|
-
|
103
103
|
if attributes.key?(:'created_at')
|
104
104
|
self.created_at = attributes[:'created_at']
|
105
105
|
end
|
@@ -121,6 +121,10 @@ module MailSlurpClient
|
|
121
121
|
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
122
122
|
end
|
123
123
|
|
124
|
+
if @inbox_id.nil?
|
125
|
+
invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
|
126
|
+
end
|
127
|
+
|
124
128
|
if @user_id.nil?
|
125
129
|
invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
|
126
130
|
end
|
@@ -129,10 +133,6 @@ module MailSlurpClient
|
|
129
133
|
invalid_properties.push('invalid value for "email_address", email_address cannot be nil.')
|
130
134
|
end
|
131
135
|
|
132
|
-
if @inbox_id.nil?
|
133
|
-
invalid_properties.push('invalid value for "inbox_id", inbox_id 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
|
@@ -148,9 +148,9 @@ 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 @inbox_id.nil?
|
151
152
|
return false if @user_id.nil?
|
152
153
|
return false if @email_address.nil?
|
153
|
-
return false if @inbox_id.nil?
|
154
154
|
return false if @created_at.nil?
|
155
155
|
return false if @updated_at.nil?
|
156
156
|
true
|
@@ -163,9 +163,9 @@ module MailSlurpClient
|
|
163
163
|
self.class == o.class &&
|
164
164
|
name == o.name &&
|
165
165
|
id == o.id &&
|
166
|
+
inbox_id == o.inbox_id &&
|
166
167
|
user_id == o.user_id &&
|
167
168
|
email_address == o.email_address &&
|
168
|
-
inbox_id == o.inbox_id &&
|
169
169
|
created_at == o.created_at &&
|
170
170
|
updated_at == o.updated_at &&
|
171
171
|
use_threads == o.use_threads
|
@@ -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, user_id, email_address,
|
183
|
+
[name, id, inbox_id, user_id, email_address, created_at, updated_at, use_threads].hash
|
184
184
|
end
|
185
185
|
|
186
186
|
# Builds the object from hash
|
@@ -25,13 +25,13 @@ module MailSlurpClient
|
|
25
25
|
|
26
26
|
attr_accessor :user_id
|
27
27
|
|
28
|
-
# Attachment ID
|
29
|
-
attr_accessor :attachment_id
|
30
|
-
|
31
28
|
attr_accessor :created_at
|
32
29
|
|
33
30
|
attr_accessor :updated_at
|
34
31
|
|
32
|
+
# Attachment ID
|
33
|
+
attr_accessor :attachment_id
|
34
|
+
|
35
35
|
# Attribute mapping from ruby-style variable name to JSON key.
|
36
36
|
def self.attribute_map
|
37
37
|
{
|
@@ -39,9 +39,9 @@ module MailSlurpClient
|
|
39
39
|
:'content_length' => :'contentLength',
|
40
40
|
:'content_type' => :'contentType',
|
41
41
|
:'user_id' => :'userId',
|
42
|
-
:'attachment_id' => :'attachmentId',
|
43
42
|
:'created_at' => :'createdAt',
|
44
|
-
:'updated_at' => :'updatedAt'
|
43
|
+
:'updated_at' => :'updatedAt',
|
44
|
+
:'attachment_id' => :'attachmentId'
|
45
45
|
}
|
46
46
|
end
|
47
47
|
|
@@ -52,9 +52,9 @@ module MailSlurpClient
|
|
52
52
|
:'content_length' => :'Integer',
|
53
53
|
:'content_type' => :'String',
|
54
54
|
:'user_id' => :'String',
|
55
|
-
:'attachment_id' => :'String',
|
56
55
|
:'created_at' => :'DateTime',
|
57
|
-
:'updated_at' => :'DateTime'
|
56
|
+
:'updated_at' => :'DateTime',
|
57
|
+
:'attachment_id' => :'String'
|
58
58
|
}
|
59
59
|
end
|
60
60
|
|
@@ -98,10 +98,6 @@ module MailSlurpClient
|
|
98
98
|
self.user_id = attributes[:'user_id']
|
99
99
|
end
|
100
100
|
|
101
|
-
if attributes.key?(:'attachment_id')
|
102
|
-
self.attachment_id = attributes[:'attachment_id']
|
103
|
-
end
|
104
|
-
|
105
101
|
if attributes.key?(:'created_at')
|
106
102
|
self.created_at = attributes[:'created_at']
|
107
103
|
end
|
@@ -109,6 +105,10 @@ module MailSlurpClient
|
|
109
105
|
if attributes.key?(:'updated_at')
|
110
106
|
self.updated_at = attributes[:'updated_at']
|
111
107
|
end
|
108
|
+
|
109
|
+
if attributes.key?(:'attachment_id')
|
110
|
+
self.attachment_id = attributes[:'attachment_id']
|
111
|
+
end
|
112
112
|
end
|
113
113
|
|
114
114
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -119,10 +119,6 @@ module MailSlurpClient
|
|
119
119
|
invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
|
120
120
|
end
|
121
121
|
|
122
|
-
if @attachment_id.nil?
|
123
|
-
invalid_properties.push('invalid value for "attachment_id", attachment_id cannot be nil.')
|
124
|
-
end
|
125
|
-
|
126
122
|
if @created_at.nil?
|
127
123
|
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
128
124
|
end
|
@@ -131,6 +127,10 @@ module MailSlurpClient
|
|
131
127
|
invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
|
132
128
|
end
|
133
129
|
|
130
|
+
if @attachment_id.nil?
|
131
|
+
invalid_properties.push('invalid value for "attachment_id", attachment_id cannot be nil.')
|
132
|
+
end
|
133
|
+
|
134
134
|
invalid_properties
|
135
135
|
end
|
136
136
|
|
@@ -138,9 +138,9 @@ module MailSlurpClient
|
|
138
138
|
# @return true if the model is valid
|
139
139
|
def valid?
|
140
140
|
return false if @user_id.nil?
|
141
|
-
return false if @attachment_id.nil?
|
142
141
|
return false if @created_at.nil?
|
143
142
|
return false if @updated_at.nil?
|
143
|
+
return false if @attachment_id.nil?
|
144
144
|
true
|
145
145
|
end
|
146
146
|
|
@@ -153,9 +153,9 @@ module MailSlurpClient
|
|
153
153
|
content_length == o.content_length &&
|
154
154
|
content_type == o.content_type &&
|
155
155
|
user_id == o.user_id &&
|
156
|
-
attachment_id == o.attachment_id &&
|
157
156
|
created_at == o.created_at &&
|
158
|
-
updated_at == o.updated_at
|
157
|
+
updated_at == o.updated_at &&
|
158
|
+
attachment_id == o.attachment_id
|
159
159
|
end
|
160
160
|
|
161
161
|
# @see the `==` method
|
@@ -167,7 +167,7 @@ module MailSlurpClient
|
|
167
167
|
# Calculates hash code according to all attributes.
|
168
168
|
# @return [Integer] Hash code
|
169
169
|
def hash
|
170
|
-
[name, content_length, content_type, user_id,
|
170
|
+
[name, content_length, content_type, user_id, created_at, updated_at, attachment_id].hash
|
171
171
|
end
|
172
172
|
|
173
173
|
# Builds the object from hash
|
@@ -166,7 +166,7 @@ module MailSlurpClient
|
|
166
166
|
return false if @region.nil?
|
167
167
|
return false if @postal_code.nil?
|
168
168
|
return false if @iso_country_code.nil?
|
169
|
-
iso_country_code_validator = EnumAttributeValidator.new('String', ["US", "GB"])
|
169
|
+
iso_country_code_validator = EnumAttributeValidator.new('String', ["US", "GB", "AU"])
|
170
170
|
return false unless iso_country_code_validator.valid?(@iso_country_code)
|
171
171
|
true
|
172
172
|
end
|
@@ -174,7 +174,7 @@ module MailSlurpClient
|
|
174
174
|
# Custom attribute writer method checking allowed values (enum).
|
175
175
|
# @param [Object] iso_country_code Object to be assigned
|
176
176
|
def iso_country_code=(iso_country_code)
|
177
|
-
validator = EnumAttributeValidator.new('String', ["US", "GB"])
|
177
|
+
validator = EnumAttributeValidator.new('String', ["US", "GB", "AU"])
|
178
178
|
unless validator.valid?(iso_country_code)
|
179
179
|
fail ArgumentError, "invalid value for \"iso_country_code\", must be one of #{validator.allowable_values}."
|
180
180
|
end
|
@@ -28,6 +28,12 @@ module MailSlurpClient
|
|
28
28
|
# Unique token DKIM tokens
|
29
29
|
attr_accessor :dkim_tokens
|
30
30
|
|
31
|
+
# If the domain is missing records then show which pairs are missing.
|
32
|
+
attr_accessor :missing_records_message
|
33
|
+
|
34
|
+
# Whether the domain has missing required records. If true then see the domain in the dashboard app.
|
35
|
+
attr_accessor :has_missing_records
|
36
|
+
|
31
37
|
# Whether domain has been verified or not. If the domain is not verified after 72 hours there is most likely an issue with the domains DNS records.
|
32
38
|
attr_accessor :is_verified
|
33
39
|
|
@@ -74,6 +80,8 @@ module MailSlurpClient
|
|
74
80
|
:'domain' => :'domain',
|
75
81
|
:'verification_token' => :'verificationToken',
|
76
82
|
:'dkim_tokens' => :'dkimTokens',
|
83
|
+
:'missing_records_message' => :'missingRecordsMessage',
|
84
|
+
:'has_missing_records' => :'hasMissingRecords',
|
77
85
|
:'is_verified' => :'isVerified',
|
78
86
|
:'domain_name_records' => :'domainNameRecords',
|
79
87
|
:'catch_all_inbox_id' => :'catchAllInboxId',
|
@@ -91,6 +99,8 @@ module MailSlurpClient
|
|
91
99
|
:'domain' => :'String',
|
92
100
|
:'verification_token' => :'String',
|
93
101
|
:'dkim_tokens' => :'Array<String>',
|
102
|
+
:'missing_records_message' => :'String',
|
103
|
+
:'has_missing_records' => :'Boolean',
|
94
104
|
:'is_verified' => :'Boolean',
|
95
105
|
:'domain_name_records' => :'Array<DomainNameRecord>',
|
96
106
|
:'catch_all_inbox_id' => :'String',
|
@@ -103,6 +113,7 @@ module MailSlurpClient
|
|
103
113
|
# List of attributes with nullable: true
|
104
114
|
def self.openapi_nullable
|
105
115
|
Set.new([
|
116
|
+
:'missing_records_message',
|
106
117
|
:'catch_all_inbox_id',
|
107
118
|
])
|
108
119
|
end
|
@@ -144,6 +155,14 @@ module MailSlurpClient
|
|
144
155
|
end
|
145
156
|
end
|
146
157
|
|
158
|
+
if attributes.key?(:'missing_records_message')
|
159
|
+
self.missing_records_message = attributes[:'missing_records_message']
|
160
|
+
end
|
161
|
+
|
162
|
+
if attributes.key?(:'has_missing_records')
|
163
|
+
self.has_missing_records = attributes[:'has_missing_records']
|
164
|
+
end
|
165
|
+
|
147
166
|
if attributes.key?(:'is_verified')
|
148
167
|
self.is_verified = attributes[:'is_verified']
|
149
168
|
end
|
@@ -195,6 +214,10 @@ module MailSlurpClient
|
|
195
214
|
invalid_properties.push('invalid value for "dkim_tokens", dkim_tokens cannot be nil.')
|
196
215
|
end
|
197
216
|
|
217
|
+
if @has_missing_records.nil?
|
218
|
+
invalid_properties.push('invalid value for "has_missing_records", has_missing_records cannot be nil.')
|
219
|
+
end
|
220
|
+
|
198
221
|
if @is_verified.nil?
|
199
222
|
invalid_properties.push('invalid value for "is_verified", is_verified cannot be nil.')
|
200
223
|
end
|
@@ -226,6 +249,7 @@ module MailSlurpClient
|
|
226
249
|
return false if @domain.nil?
|
227
250
|
return false if @verification_token.nil?
|
228
251
|
return false if @dkim_tokens.nil?
|
252
|
+
return false if @has_missing_records.nil?
|
229
253
|
return false if @is_verified.nil?
|
230
254
|
return false if @domain_name_records.nil?
|
231
255
|
return false if @created_at.nil?
|
@@ -256,6 +280,8 @@ module MailSlurpClient
|
|
256
280
|
domain == o.domain &&
|
257
281
|
verification_token == o.verification_token &&
|
258
282
|
dkim_tokens == o.dkim_tokens &&
|
283
|
+
missing_records_message == o.missing_records_message &&
|
284
|
+
has_missing_records == o.has_missing_records &&
|
259
285
|
is_verified == o.is_verified &&
|
260
286
|
domain_name_records == o.domain_name_records &&
|
261
287
|
catch_all_inbox_id == o.catch_all_inbox_id &&
|
@@ -273,7 +299,7 @@ module MailSlurpClient
|
|
273
299
|
# Calculates hash code according to all attributes.
|
274
300
|
# @return [Integer] Hash code
|
275
301
|
def hash
|
276
|
-
[id, user_id, domain, verification_token, dkim_tokens, is_verified, domain_name_records, catch_all_inbox_id, created_at, updated_at, domain_type].hash
|
302
|
+
[id, user_id, domain, verification_token, dkim_tokens, missing_records_message, has_missing_records, is_verified, domain_name_records, catch_all_inbox_id, created_at, updated_at, domain_type].hash
|
277
303
|
end
|
278
304
|
|
279
305
|
# Builds the object from hash
|