mailslurp_client 15.16.18 → 15.16.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +11 -11
- data/lib/mailslurp_client/api/{api_user_controller_api.rb → user_controller_api.rb} +8 -6
- data/lib/mailslurp_client/models/alias_projection.rb +15 -15
- data/lib/mailslurp_client/models/domain_name_record.rb +42 -1
- data/lib/mailslurp_client/models/inbox_forwarder_event_projection.rb +11 -11
- data/lib/mailslurp_client/models/sent_email_projection.rb +15 -15
- data/lib/mailslurp_client/models/thread_projection.rb +16 -16
- data/lib/mailslurp_client/models/tracking_pixel_projection.rb +10 -10
- data/lib/mailslurp_client/version.rb +1 -1
- data/lib/mailslurp_client.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: c4c0db099ff213877a3d0cc12d29803ad5d32ca43f66ff1fd0668d77fb9aedeb
|
4
|
+
data.tar.gz: dfc5770d1ba07fffb23083fbb8d098401e71f75391eedaae2ecef912a8d424ed
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a7704a7c3faf0d603062e3ce4e41c1db7c139e02a958409272e05009d2a8d33a04cf8b47dcc667a690d9a0904ec1a8e55fe3375a13b894f56af8e7e900b6a0b2
|
7
|
+
data.tar.gz: 0a7accae7995be10afc95ceae245d4b72fb58a92fb2d401aac8f0694df4289ea2a5df601241fa2a10e6253c4b9706c7e12f169191f57a70219a18b0f303e8434
|
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://
|
9
|
+
- [Method Documentation](https://mailslurp.github.io/mailslurp-client-ruby/)
|
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://
|
18
|
-
- [Inbox controller](https://
|
19
|
-
- [WaitFor controller](https://
|
17
|
+
- [Email controller](https://mailslurp.github.io/mailslurp-client-ruby/MailSlurpClient/EmailControllerApi.html) send and receive emails
|
18
|
+
- [Inbox controller](https://mailslurp.github.io/mailslurp-client-ruby/MailSlurpClient/InboxControllerApi.html) create and manage email addresses
|
19
|
+
- [WaitFor controller](https://mailslurp.github.io/mailslurp-client-ruby/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://
|
30
|
+
See the method documentation for a [list of all functions](https://mailslurp.github.io/mailslurp-client-ruby/)
|
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://
|
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.github.io/mailslurp-client-ruby/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://
|
180
|
+
Inboxes you create can be listed in a paginated way using the [InboxController](https://mailslurp.github.io/mailslurp-client-ruby/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://
|
201
|
+
To send attachments see the [Method Documentation](https://mailslurp.github.io/mailslurp-client-ruby/).
|
202
202
|
|
203
203
|
```ruby
|
204
204
|
# create an inbox
|
@@ -240,7 +240,7 @@ inbox_controller.send_email(inbox_1.id, opts)
|
|
240
240
|
|
241
241
|
### Receive emails
|
242
242
|
|
243
|
-
To read already existing emails use the [Email Controller](https://
|
243
|
+
To read already existing emails use the [Email Controller](https://mailslurp.github.io/mailslurp-client-ruby/MailSlurpClient/EmailControllerApi.html). To wait for expected emails to arrive use the [WaitFor Controller](https://mailslurp.github.io/mailslurp-client-ruby/MailSlurpClient/WaitForControllerApi.html).
|
244
244
|
You can use MailSlurp to wait for at least 1 unread email in an inbox and return it.
|
245
245
|
If a timeout is exceeded it will throw an error instead:
|
246
246
|
|
@@ -274,7 +274,7 @@ code, * = match.captures
|
|
274
274
|
|
275
275
|
### Attachments
|
276
276
|
|
277
|
-
You can send attachments by first uploading files with the [AttachmentControllerApi](https://
|
277
|
+
You can send attachments by first uploading files with the [AttachmentControllerApi](https://mailslurp.github.io/mailslurp-client-ruby/MailSlurpClient/AttachmentControllerApi.html) then using the returned attachment IDs in the send email method.
|
278
278
|
|
279
279
|
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.
|
280
280
|
|
@@ -420,4 +420,4 @@ end
|
|
420
420
|
|
421
421
|
## SDK Documentation
|
422
422
|
|
423
|
-
See the [examples page](https://www.mailslurp.com/examples/) or the full [Method Documentation](https://
|
423
|
+
See the [examples page](https://www.mailslurp.com/examples/) or the full [Method Documentation](https://mailslurp.github.io/mailslurp-client-ruby/) on Github.
|
@@ -13,7 +13,7 @@ OpenAPI Generator version: 4.3.1
|
|
13
13
|
require 'cgi'
|
14
14
|
|
15
15
|
module MailSlurpClient
|
16
|
-
class
|
16
|
+
class UserControllerApi
|
17
17
|
attr_accessor :api_client
|
18
18
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
@@ -36,11 +36,11 @@ module MailSlurpClient
|
|
36
36
|
# @return [Array<(String, Integer, Hash)>] String data, response status code and response headers
|
37
37
|
def get_json_property_as_string_with_http_info(property, body, opts = {})
|
38
38
|
if @api_client.config.debugging
|
39
|
-
@api_client.config.logger.debug 'Calling API:
|
39
|
+
@api_client.config.logger.debug 'Calling API: UserControllerApi.get_json_property_as_string ...'
|
40
40
|
end
|
41
41
|
# verify the required parameter 'property' is set
|
42
42
|
if @api_client.config.client_side_validation && property.nil?
|
43
|
-
fail ArgumentError, "Missing the required parameter 'property' when calling
|
43
|
+
fail ArgumentError, "Missing the required parameter 'property' when calling UserControllerApi.get_json_property_as_string"
|
44
44
|
end
|
45
45
|
# resource path
|
46
46
|
local_var_path = '/user/json/pluck'
|
@@ -79,11 +79,12 @@ module MailSlurpClient
|
|
79
79
|
|
80
80
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
81
81
|
if @api_client.config.debugging
|
82
|
-
@api_client.config.logger.debug "API called:
|
82
|
+
@api_client.config.logger.debug "API called: UserControllerApi#get_json_property_as_string\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
83
83
|
end
|
84
84
|
return data, status_code, headers
|
85
85
|
end
|
86
86
|
|
87
|
+
# Get account information for your user
|
87
88
|
# @param [Hash] opts the optional parameters
|
88
89
|
# @return [UserInfoDto]
|
89
90
|
def get_user_info(opts = {})
|
@@ -91,11 +92,12 @@ module MailSlurpClient
|
|
91
92
|
data
|
92
93
|
end
|
93
94
|
|
95
|
+
# Get account information for your user
|
94
96
|
# @param [Hash] opts the optional parameters
|
95
97
|
# @return [Array<(UserInfoDto, Integer, Hash)>] UserInfoDto data, response status code and response headers
|
96
98
|
def get_user_info_with_http_info(opts = {})
|
97
99
|
if @api_client.config.debugging
|
98
|
-
@api_client.config.logger.debug 'Calling API:
|
100
|
+
@api_client.config.logger.debug 'Calling API: UserControllerApi.get_user_info ...'
|
99
101
|
end
|
100
102
|
# resource path
|
101
103
|
local_var_path = '/user/info'
|
@@ -131,7 +133,7 @@ module MailSlurpClient
|
|
131
133
|
|
132
134
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
133
135
|
if @api_client.config.debugging
|
134
|
-
@api_client.config.logger.debug "API called:
|
136
|
+
@api_client.config.logger.debug "API called: UserControllerApi#get_user_info\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
135
137
|
end
|
136
138
|
return data, status_code, headers
|
137
139
|
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
|
@@ -15,6 +15,11 @@ require 'date'
|
|
15
15
|
module MailSlurpClient
|
16
16
|
# DNS Record required for verification of a domain. Record vary depending on domain type.
|
17
17
|
class DomainNameRecord
|
18
|
+
# Domain Name Server Record Label
|
19
|
+
attr_accessor :label
|
20
|
+
|
21
|
+
attr_accessor :required
|
22
|
+
|
18
23
|
# Domain Name Server Record Types
|
19
24
|
attr_accessor :record_type
|
20
25
|
|
@@ -49,6 +54,8 @@ module MailSlurpClient
|
|
49
54
|
# Attribute mapping from ruby-style variable name to JSON key.
|
50
55
|
def self.attribute_map
|
51
56
|
{
|
57
|
+
:'label' => :'label',
|
58
|
+
:'required' => :'required',
|
52
59
|
:'record_type' => :'recordType',
|
53
60
|
:'name' => :'name',
|
54
61
|
:'record_entries' => :'recordEntries',
|
@@ -59,6 +66,8 @@ module MailSlurpClient
|
|
59
66
|
# Attribute type mapping.
|
60
67
|
def self.openapi_types
|
61
68
|
{
|
69
|
+
:'label' => :'String',
|
70
|
+
:'required' => :'Boolean',
|
62
71
|
:'record_type' => :'String',
|
63
72
|
:'name' => :'String',
|
64
73
|
:'record_entries' => :'Array<String>',
|
@@ -87,6 +96,14 @@ module MailSlurpClient
|
|
87
96
|
h[k.to_sym] = v
|
88
97
|
}
|
89
98
|
|
99
|
+
if attributes.key?(:'label')
|
100
|
+
self.label = attributes[:'label']
|
101
|
+
end
|
102
|
+
|
103
|
+
if attributes.key?(:'required')
|
104
|
+
self.required = attributes[:'required']
|
105
|
+
end
|
106
|
+
|
90
107
|
if attributes.key?(:'record_type')
|
91
108
|
self.record_type = attributes[:'record_type']
|
92
109
|
end
|
@@ -110,6 +127,14 @@ module MailSlurpClient
|
|
110
127
|
# @return Array for valid properties with the reasons
|
111
128
|
def list_invalid_properties
|
112
129
|
invalid_properties = Array.new
|
130
|
+
if @label.nil?
|
131
|
+
invalid_properties.push('invalid value for "label", label cannot be nil.')
|
132
|
+
end
|
133
|
+
|
134
|
+
if @required.nil?
|
135
|
+
invalid_properties.push('invalid value for "required", required cannot be nil.')
|
136
|
+
end
|
137
|
+
|
113
138
|
if @record_type.nil?
|
114
139
|
invalid_properties.push('invalid value for "record_type", record_type cannot be nil.')
|
115
140
|
end
|
@@ -132,6 +157,10 @@ module MailSlurpClient
|
|
132
157
|
# Check to see if the all the properties in the model are valid
|
133
158
|
# @return true if the model is valid
|
134
159
|
def valid?
|
160
|
+
return false if @label.nil?
|
161
|
+
label_validator = EnumAttributeValidator.new('String', ["VERIFICATION", "MX", "SPF", "DKIM", "DMARC"])
|
162
|
+
return false unless label_validator.valid?(@label)
|
163
|
+
return false if @required.nil?
|
135
164
|
return false if @record_type.nil?
|
136
165
|
record_type_validator = EnumAttributeValidator.new('String', ["A", "NS", "MD", "MF", "CNAME", "SOA", "MB", "MG", "MR", "NULL", "WKS", "PTR", "HINFO", "MINFO", "MX", "TXT", "RP", "AFSDB", "X25", "ISDN", "RT", "NSAP", "NSAP_PTR", "SIG", "KEY", "PX", "GPOS", "AAAA", "LOC", "NXT", "EID", "NIMLOC", "SRV", "ATMA", "NAPTR", "KX", "CERT", "A6", "DNAME", "SINK", "OPT", "APL", "DS", "SSHFP", "IPSECKEY", "RRSIG", "NSEC", "DNSKEY", "DHCID", "NSEC3", "NSEC3PARAM", "TLSA", "SMIMEA", "HIP", "NINFO", "RKEY", "TALINK", "CDS", "CDNSKEY", "OPENPGPKEY", "CSYNC", "ZONEMD", "SVCB", "HTTPS", "SPF", "UINFO", "UID", "GID", "UNSPEC", "NID", "L32", "L64", "LP", "EUI48", "EUI64", "TKEY", "TSIG", "IXFR", "AXFR", "MAILB", "MAILA", "ANY", "URI", "CAA", "AVC", "DOA", "AMTRELAY", "TA", "DLV"])
|
137
166
|
return false unless record_type_validator.valid?(@record_type)
|
@@ -141,6 +170,16 @@ module MailSlurpClient
|
|
141
170
|
true
|
142
171
|
end
|
143
172
|
|
173
|
+
# Custom attribute writer method checking allowed values (enum).
|
174
|
+
# @param [Object] label Object to be assigned
|
175
|
+
def label=(label)
|
176
|
+
validator = EnumAttributeValidator.new('String', ["VERIFICATION", "MX", "SPF", "DKIM", "DMARC"])
|
177
|
+
unless validator.valid?(label)
|
178
|
+
fail ArgumentError, "invalid value for \"label\", must be one of #{validator.allowable_values}."
|
179
|
+
end
|
180
|
+
@label = label
|
181
|
+
end
|
182
|
+
|
144
183
|
# Custom attribute writer method checking allowed values (enum).
|
145
184
|
# @param [Object] record_type Object to be assigned
|
146
185
|
def record_type=(record_type)
|
@@ -156,6 +195,8 @@ module MailSlurpClient
|
|
156
195
|
def ==(o)
|
157
196
|
return true if self.equal?(o)
|
158
197
|
self.class == o.class &&
|
198
|
+
label == o.label &&
|
199
|
+
required == o.required &&
|
159
200
|
record_type == o.record_type &&
|
160
201
|
name == o.name &&
|
161
202
|
record_entries == o.record_entries &&
|
@@ -171,7 +212,7 @@ module MailSlurpClient
|
|
171
212
|
# Calculates hash code according to all attributes.
|
172
213
|
# @return [Integer] Hash code
|
173
214
|
def hash
|
174
|
-
[record_type, name, record_entries, ttl].hash
|
215
|
+
[label, required, record_type, name, record_entries, ttl].hash
|
175
216
|
end
|
176
217
|
|
177
218
|
# Builds the object from hash
|
@@ -21,12 +21,12 @@ module MailSlurpClient
|
|
21
21
|
|
22
22
|
attr_accessor :status
|
23
23
|
|
24
|
-
attr_accessor :user_id
|
25
|
-
|
26
24
|
attr_accessor :email_id
|
27
25
|
|
28
26
|
attr_accessor :inbox_id
|
29
27
|
|
28
|
+
attr_accessor :user_id
|
29
|
+
|
30
30
|
attr_accessor :created_at
|
31
31
|
|
32
32
|
attr_accessor :forwarder_id
|
@@ -59,9 +59,9 @@ module MailSlurpClient
|
|
59
59
|
:'message' => :'message',
|
60
60
|
:'id' => :'id',
|
61
61
|
:'status' => :'status',
|
62
|
-
:'user_id' => :'userId',
|
63
62
|
:'email_id' => :'emailId',
|
64
63
|
:'inbox_id' => :'inboxId',
|
64
|
+
:'user_id' => :'userId',
|
65
65
|
:'created_at' => :'createdAt',
|
66
66
|
:'forwarder_id' => :'forwarderId'
|
67
67
|
}
|
@@ -73,9 +73,9 @@ module MailSlurpClient
|
|
73
73
|
:'message' => :'String',
|
74
74
|
:'id' => :'String',
|
75
75
|
:'status' => :'String',
|
76
|
-
:'user_id' => :'String',
|
77
76
|
:'email_id' => :'String',
|
78
77
|
:'inbox_id' => :'String',
|
78
|
+
:'user_id' => :'String',
|
79
79
|
:'created_at' => :'DateTime',
|
80
80
|
:'forwarder_id' => :'String'
|
81
81
|
}
|
@@ -87,9 +87,9 @@ module MailSlurpClient
|
|
87
87
|
:'message',
|
88
88
|
:'id',
|
89
89
|
:'status',
|
90
|
-
:'user_id',
|
91
90
|
:'email_id',
|
92
91
|
:'inbox_id',
|
92
|
+
:'user_id',
|
93
93
|
:'forwarder_id'
|
94
94
|
])
|
95
95
|
end
|
@@ -121,10 +121,6 @@ module MailSlurpClient
|
|
121
121
|
self.status = attributes[:'status']
|
122
122
|
end
|
123
123
|
|
124
|
-
if attributes.key?(:'user_id')
|
125
|
-
self.user_id = attributes[:'user_id']
|
126
|
-
end
|
127
|
-
|
128
124
|
if attributes.key?(:'email_id')
|
129
125
|
self.email_id = attributes[:'email_id']
|
130
126
|
end
|
@@ -133,6 +129,10 @@ module MailSlurpClient
|
|
133
129
|
self.inbox_id = attributes[:'inbox_id']
|
134
130
|
end
|
135
131
|
|
132
|
+
if attributes.key?(:'user_id')
|
133
|
+
self.user_id = attributes[:'user_id']
|
134
|
+
end
|
135
|
+
|
136
136
|
if attributes.key?(:'created_at')
|
137
137
|
self.created_at = attributes[:'created_at']
|
138
138
|
end
|
@@ -180,9 +180,9 @@ module MailSlurpClient
|
|
180
180
|
message == o.message &&
|
181
181
|
id == o.id &&
|
182
182
|
status == o.status &&
|
183
|
-
user_id == o.user_id &&
|
184
183
|
email_id == o.email_id &&
|
185
184
|
inbox_id == o.inbox_id &&
|
185
|
+
user_id == o.user_id &&
|
186
186
|
created_at == o.created_at &&
|
187
187
|
forwarder_id == o.forwarder_id
|
188
188
|
end
|
@@ -196,7 +196,7 @@ module MailSlurpClient
|
|
196
196
|
# Calculates hash code according to all attributes.
|
197
197
|
# @return [Integer] Hash code
|
198
198
|
def hash
|
199
|
-
[message, id, status,
|
199
|
+
[message, id, status, email_id, inbox_id, user_id, created_at, forwarder_id].hash
|
200
200
|
end
|
201
201
|
|
202
202
|
# Builds the object from hash
|
@@ -23,12 +23,12 @@ module MailSlurpClient
|
|
23
23
|
|
24
24
|
attr_accessor :subject
|
25
25
|
|
26
|
+
attr_accessor :created_at
|
27
|
+
|
26
28
|
attr_accessor :inbox_id
|
27
29
|
|
28
30
|
attr_accessor :attachments
|
29
31
|
|
30
|
-
attr_accessor :created_at
|
31
|
-
|
32
32
|
attr_accessor :to
|
33
33
|
|
34
34
|
attr_accessor :bcc
|
@@ -46,9 +46,9 @@ module MailSlurpClient
|
|
46
46
|
:'from' => :'from',
|
47
47
|
:'user_id' => :'userId',
|
48
48
|
:'subject' => :'subject',
|
49
|
+
:'created_at' => :'createdAt',
|
49
50
|
:'inbox_id' => :'inboxId',
|
50
51
|
:'attachments' => :'attachments',
|
51
|
-
:'created_at' => :'createdAt',
|
52
52
|
:'to' => :'to',
|
53
53
|
:'bcc' => :'bcc',
|
54
54
|
:'cc' => :'cc',
|
@@ -64,9 +64,9 @@ module MailSlurpClient
|
|
64
64
|
:'from' => :'String',
|
65
65
|
:'user_id' => :'String',
|
66
66
|
:'subject' => :'String',
|
67
|
+
:'created_at' => :'DateTime',
|
67
68
|
:'inbox_id' => :'String',
|
68
69
|
:'attachments' => :'Array<String>',
|
69
|
-
:'created_at' => :'DateTime',
|
70
70
|
:'to' => :'Array<String>',
|
71
71
|
:'bcc' => :'Array<String>',
|
72
72
|
:'cc' => :'Array<String>',
|
@@ -112,6 +112,10 @@ module MailSlurpClient
|
|
112
112
|
self.subject = attributes[:'subject']
|
113
113
|
end
|
114
114
|
|
115
|
+
if attributes.key?(:'created_at')
|
116
|
+
self.created_at = attributes[:'created_at']
|
117
|
+
end
|
118
|
+
|
115
119
|
if attributes.key?(:'inbox_id')
|
116
120
|
self.inbox_id = attributes[:'inbox_id']
|
117
121
|
end
|
@@ -122,10 +126,6 @@ module MailSlurpClient
|
|
122
126
|
end
|
123
127
|
end
|
124
128
|
|
125
|
-
if attributes.key?(:'created_at')
|
126
|
-
self.created_at = attributes[:'created_at']
|
127
|
-
end
|
128
|
-
|
129
129
|
if attributes.key?(:'to')
|
130
130
|
if (value = attributes[:'to']).is_a?(Array)
|
131
131
|
self.to = value
|
@@ -165,6 +165,10 @@ module MailSlurpClient
|
|
165
165
|
invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
|
166
166
|
end
|
167
167
|
|
168
|
+
if @created_at.nil?
|
169
|
+
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
170
|
+
end
|
171
|
+
|
168
172
|
if @inbox_id.nil?
|
169
173
|
invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
|
170
174
|
end
|
@@ -173,10 +177,6 @@ module MailSlurpClient
|
|
173
177
|
invalid_properties.push('invalid value for "attachments", attachments cannot be nil.')
|
174
178
|
end
|
175
179
|
|
176
|
-
if @created_at.nil?
|
177
|
-
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
178
|
-
end
|
179
|
-
|
180
180
|
if @to.nil?
|
181
181
|
invalid_properties.push('invalid value for "to", to cannot be nil.')
|
182
182
|
end
|
@@ -201,9 +201,9 @@ module MailSlurpClient
|
|
201
201
|
def valid?
|
202
202
|
return false if @id.nil?
|
203
203
|
return false if @user_id.nil?
|
204
|
+
return false if @created_at.nil?
|
204
205
|
return false if @inbox_id.nil?
|
205
206
|
return false if @attachments.nil?
|
206
|
-
return false if @created_at.nil?
|
207
207
|
return false if @to.nil?
|
208
208
|
return false if @bcc.nil?
|
209
209
|
return false if @cc.nil?
|
@@ -220,9 +220,9 @@ module MailSlurpClient
|
|
220
220
|
from == o.from &&
|
221
221
|
user_id == o.user_id &&
|
222
222
|
subject == o.subject &&
|
223
|
+
created_at == o.created_at &&
|
223
224
|
inbox_id == o.inbox_id &&
|
224
225
|
attachments == o.attachments &&
|
225
|
-
created_at == o.created_at &&
|
226
226
|
to == o.to &&
|
227
227
|
bcc == o.bcc &&
|
228
228
|
cc == o.cc &&
|
@@ -239,7 +239,7 @@ module MailSlurpClient
|
|
239
239
|
# Calculates hash code according to all attributes.
|
240
240
|
# @return [Integer] Hash code
|
241
241
|
def hash
|
242
|
-
[id, from, user_id, subject, inbox_id, attachments,
|
242
|
+
[id, from, user_id, subject, created_at, inbox_id, attachments, to, bcc, cc, body_md5_hash, virtual_send].hash
|
243
243
|
end
|
244
244
|
|
245
245
|
# Builds the object from hash
|
@@ -24,12 +24,12 @@ module MailSlurpClient
|
|
24
24
|
# Thread subject
|
25
25
|
attr_accessor :subject
|
26
26
|
|
27
|
-
# User ID
|
28
|
-
attr_accessor :user_id
|
29
|
-
|
30
27
|
# Inbox ID
|
31
28
|
attr_accessor :inbox_id
|
32
29
|
|
30
|
+
# User ID
|
31
|
+
attr_accessor :user_id
|
32
|
+
|
33
33
|
# Created at DateTime
|
34
34
|
attr_accessor :created_at
|
35
35
|
|
@@ -54,8 +54,8 @@ module MailSlurpClient
|
|
54
54
|
:'name' => :'name',
|
55
55
|
:'id' => :'id',
|
56
56
|
:'subject' => :'subject',
|
57
|
-
:'user_id' => :'userId',
|
58
57
|
:'inbox_id' => :'inboxId',
|
58
|
+
:'user_id' => :'userId',
|
59
59
|
:'created_at' => :'createdAt',
|
60
60
|
:'updated_at' => :'updatedAt',
|
61
61
|
:'to' => :'to',
|
@@ -71,8 +71,8 @@ module MailSlurpClient
|
|
71
71
|
:'name' => :'String',
|
72
72
|
:'id' => :'String',
|
73
73
|
:'subject' => :'String',
|
74
|
-
:'user_id' => :'String',
|
75
74
|
:'inbox_id' => :'String',
|
75
|
+
:'user_id' => :'String',
|
76
76
|
:'created_at' => :'DateTime',
|
77
77
|
:'updated_at' => :'DateTime',
|
78
78
|
:'to' => :'Array<String>',
|
@@ -115,14 +115,14 @@ module MailSlurpClient
|
|
115
115
|
self.subject = attributes[:'subject']
|
116
116
|
end
|
117
117
|
|
118
|
-
if attributes.key?(:'user_id')
|
119
|
-
self.user_id = attributes[:'user_id']
|
120
|
-
end
|
121
|
-
|
122
118
|
if attributes.key?(:'inbox_id')
|
123
119
|
self.inbox_id = attributes[:'inbox_id']
|
124
120
|
end
|
125
121
|
|
122
|
+
if attributes.key?(:'user_id')
|
123
|
+
self.user_id = attributes[:'user_id']
|
124
|
+
end
|
125
|
+
|
126
126
|
if attributes.key?(:'created_at')
|
127
127
|
self.created_at = attributes[:'created_at']
|
128
128
|
end
|
@@ -162,14 +162,14 @@ module MailSlurpClient
|
|
162
162
|
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
163
163
|
end
|
164
164
|
|
165
|
-
if @user_id.nil?
|
166
|
-
invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
|
167
|
-
end
|
168
|
-
|
169
165
|
if @inbox_id.nil?
|
170
166
|
invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
|
171
167
|
end
|
172
168
|
|
169
|
+
if @user_id.nil?
|
170
|
+
invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
|
171
|
+
end
|
172
|
+
|
173
173
|
if @created_at.nil?
|
174
174
|
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
175
175
|
end
|
@@ -193,8 +193,8 @@ module MailSlurpClient
|
|
193
193
|
# @return true if the model is valid
|
194
194
|
def valid?
|
195
195
|
return false if @id.nil?
|
196
|
-
return false if @user_id.nil?
|
197
196
|
return false if @inbox_id.nil?
|
197
|
+
return false if @user_id.nil?
|
198
198
|
return false if @created_at.nil?
|
199
199
|
return false if @updated_at.nil?
|
200
200
|
return false if @to.nil?
|
@@ -210,8 +210,8 @@ module MailSlurpClient
|
|
210
210
|
name == o.name &&
|
211
211
|
id == o.id &&
|
212
212
|
subject == o.subject &&
|
213
|
-
user_id == o.user_id &&
|
214
213
|
inbox_id == o.inbox_id &&
|
214
|
+
user_id == o.user_id &&
|
215
215
|
created_at == o.created_at &&
|
216
216
|
updated_at == o.updated_at &&
|
217
217
|
to == o.to &&
|
@@ -229,7 +229,7 @@ module MailSlurpClient
|
|
229
229
|
# Calculates hash code according to all attributes.
|
230
230
|
# @return [Integer] Hash code
|
231
231
|
def hash
|
232
|
-
[name, id, subject,
|
232
|
+
[name, id, subject, inbox_id, user_id, created_at, updated_at, to, bcc, cc, alias_id].hash
|
233
233
|
end
|
234
234
|
|
235
235
|
# Builds the object from hash
|
@@ -19,10 +19,10 @@ module MailSlurpClient
|
|
19
19
|
|
20
20
|
attr_accessor :id
|
21
21
|
|
22
|
-
attr_accessor :user_id
|
23
|
-
|
24
22
|
attr_accessor :inbox_id
|
25
23
|
|
24
|
+
attr_accessor :user_id
|
25
|
+
|
26
26
|
attr_accessor :sent_email_id
|
27
27
|
|
28
28
|
attr_accessor :created_at
|
@@ -38,8 +38,8 @@ module MailSlurpClient
|
|
38
38
|
{
|
39
39
|
:'name' => :'name',
|
40
40
|
:'id' => :'id',
|
41
|
-
:'user_id' => :'userId',
|
42
41
|
:'inbox_id' => :'inboxId',
|
42
|
+
:'user_id' => :'userId',
|
43
43
|
:'sent_email_id' => :'sentEmailId',
|
44
44
|
:'created_at' => :'createdAt',
|
45
45
|
:'recipient' => :'recipient',
|
@@ -53,8 +53,8 @@ module MailSlurpClient
|
|
53
53
|
{
|
54
54
|
:'name' => :'String',
|
55
55
|
:'id' => :'String',
|
56
|
-
:'user_id' => :'String',
|
57
56
|
:'inbox_id' => :'String',
|
57
|
+
:'user_id' => :'String',
|
58
58
|
:'sent_email_id' => :'String',
|
59
59
|
:'created_at' => :'DateTime',
|
60
60
|
:'recipient' => :'String',
|
@@ -92,14 +92,14 @@ module MailSlurpClient
|
|
92
92
|
self.id = attributes[:'id']
|
93
93
|
end
|
94
94
|
|
95
|
-
if attributes.key?(:'user_id')
|
96
|
-
self.user_id = attributes[:'user_id']
|
97
|
-
end
|
98
|
-
|
99
95
|
if attributes.key?(:'inbox_id')
|
100
96
|
self.inbox_id = attributes[:'inbox_id']
|
101
97
|
end
|
102
98
|
|
99
|
+
if attributes.key?(:'user_id')
|
100
|
+
self.user_id = attributes[:'user_id']
|
101
|
+
end
|
102
|
+
|
103
103
|
if attributes.key?(:'sent_email_id')
|
104
104
|
self.sent_email_id = attributes[:'sent_email_id']
|
105
105
|
end
|
@@ -161,8 +161,8 @@ module MailSlurpClient
|
|
161
161
|
self.class == o.class &&
|
162
162
|
name == o.name &&
|
163
163
|
id == o.id &&
|
164
|
-
user_id == o.user_id &&
|
165
164
|
inbox_id == o.inbox_id &&
|
165
|
+
user_id == o.user_id &&
|
166
166
|
sent_email_id == o.sent_email_id &&
|
167
167
|
created_at == o.created_at &&
|
168
168
|
recipient == o.recipient &&
|
@@ -179,7 +179,7 @@ module MailSlurpClient
|
|
179
179
|
# Calculates hash code according to all attributes.
|
180
180
|
# @return [Integer] Hash code
|
181
181
|
def hash
|
182
|
-
[name, id,
|
182
|
+
[name, id, inbox_id, user_id, sent_email_id, created_at, recipient, seen, seen_at].hash
|
183
183
|
end
|
184
184
|
|
185
185
|
# Builds the object from hash
|
data/lib/mailslurp_client.rb
CHANGED
@@ -215,7 +215,6 @@ require 'mailslurp_client/models/webhook_test_result'
|
|
215
215
|
|
216
216
|
# APIs
|
217
217
|
require 'mailslurp_client/api/alias_controller_api'
|
218
|
-
require 'mailslurp_client/api/api_user_controller_api'
|
219
218
|
require 'mailslurp_client/api/attachment_controller_api'
|
220
219
|
require 'mailslurp_client/api/bounce_controller_api'
|
221
220
|
require 'mailslurp_client/api/bulk_actions_controller_api'
|
@@ -238,6 +237,7 @@ require 'mailslurp_client/api/sent_emails_controller_api'
|
|
238
237
|
require 'mailslurp_client/api/sms_controller_api'
|
239
238
|
require 'mailslurp_client/api/template_controller_api'
|
240
239
|
require 'mailslurp_client/api/tracking_controller_api'
|
240
|
+
require 'mailslurp_client/api/user_controller_api'
|
241
241
|
require 'mailslurp_client/api/wait_for_controller_api'
|
242
242
|
require 'mailslurp_client/api/webhook_controller_api'
|
243
243
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mailslurp_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 15.16.
|
4
|
+
version: 15.16.19
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- mailslurp
|
@@ -24,7 +24,6 @@ files:
|
|
24
24
|
- SUPPORT.md
|
25
25
|
- lib/mailslurp_client.rb
|
26
26
|
- lib/mailslurp_client/api/alias_controller_api.rb
|
27
|
-
- lib/mailslurp_client/api/api_user_controller_api.rb
|
28
27
|
- lib/mailslurp_client/api/attachment_controller_api.rb
|
29
28
|
- lib/mailslurp_client/api/bounce_controller_api.rb
|
30
29
|
- lib/mailslurp_client/api/bulk_actions_controller_api.rb
|
@@ -47,6 +46,7 @@ files:
|
|
47
46
|
- lib/mailslurp_client/api/sms_controller_api.rb
|
48
47
|
- lib/mailslurp_client/api/template_controller_api.rb
|
49
48
|
- lib/mailslurp_client/api/tracking_controller_api.rb
|
49
|
+
- lib/mailslurp_client/api/user_controller_api.rb
|
50
50
|
- lib/mailslurp_client/api/wait_for_controller_api.rb
|
51
51
|
- lib/mailslurp_client/api/webhook_controller_api.rb
|
52
52
|
- lib/mailslurp_client/api_client.rb
|