mailslurp_client 8.3.0 → 8.4.3
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 +31 -2
- data/lib/mailslurp_client.rb +5 -2
- data/lib/mailslurp_client/api/alias_controller_api.rb +35 -97
- data/lib/mailslurp_client/api/email_controller_api.rb +70 -0
- data/lib/mailslurp_client/api/form_controller_api.rb +4 -7
- data/lib/mailslurp_client/models/alias_dto.rb +303 -0
- data/lib/mailslurp_client/models/alias_projection.rb +300 -0
- data/lib/mailslurp_client/models/{create_owned_alias_options.rb → create_alias_options.rb} +13 -13
- data/lib/mailslurp_client/models/email.rb +11 -1
- data/lib/mailslurp_client/models/model_alias.rb +20 -10
- data/lib/mailslurp_client/models/page_alias.rb +1 -1
- data/lib/mailslurp_client/models/reply_to_email_options.rb +314 -0
- data/lib/mailslurp_client/models/sent_email_dto.rb +10 -1
- data/lib/mailslurp_client/models/{create_anonymous_alias_options.rb → update_alias_options.rb} +12 -12
- data/lib/mailslurp_client/version.rb +1 -1
- metadata +7 -4
@@ -39,6 +39,8 @@ module MailSlurpClient
|
|
39
39
|
|
40
40
|
attr_accessor :is_html
|
41
41
|
|
42
|
+
attr_accessor :reply_to
|
43
|
+
|
42
44
|
attr_accessor :sent_at
|
43
45
|
|
44
46
|
attr_accessor :subject
|
@@ -62,6 +64,7 @@ module MailSlurpClient
|
|
62
64
|
:'id' => :'id',
|
63
65
|
:'inbox_id' => :'inboxId',
|
64
66
|
:'is_html' => :'isHTML',
|
67
|
+
:'reply_to' => :'replyTo',
|
65
68
|
:'sent_at' => :'sentAt',
|
66
69
|
:'subject' => :'subject',
|
67
70
|
:'to' => :'to',
|
@@ -82,6 +85,7 @@ module MailSlurpClient
|
|
82
85
|
:'id' => :'String',
|
83
86
|
:'inbox_id' => :'String',
|
84
87
|
:'is_html' => :'Boolean',
|
88
|
+
:'reply_to' => :'String',
|
85
89
|
:'sent_at' => :'DateTime',
|
86
90
|
:'subject' => :'String',
|
87
91
|
:'to' => :'Array<String>',
|
@@ -156,6 +160,10 @@ module MailSlurpClient
|
|
156
160
|
self.is_html = attributes[:'is_html']
|
157
161
|
end
|
158
162
|
|
163
|
+
if attributes.key?(:'reply_to')
|
164
|
+
self.reply_to = attributes[:'reply_to']
|
165
|
+
end
|
166
|
+
|
159
167
|
if attributes.key?(:'sent_at')
|
160
168
|
self.sent_at = attributes[:'sent_at']
|
161
169
|
end
|
@@ -208,6 +216,7 @@ module MailSlurpClient
|
|
208
216
|
id == o.id &&
|
209
217
|
inbox_id == o.inbox_id &&
|
210
218
|
is_html == o.is_html &&
|
219
|
+
reply_to == o.reply_to &&
|
211
220
|
sent_at == o.sent_at &&
|
212
221
|
subject == o.subject &&
|
213
222
|
to == o.to &&
|
@@ -223,7 +232,7 @@ module MailSlurpClient
|
|
223
232
|
# Calculates hash code according to all attributes.
|
224
233
|
# @return [Integer] Hash code
|
225
234
|
def hash
|
226
|
-
[attachments, bcc, body, body_md5_hash, cc, charset, from, id, inbox_id, is_html, sent_at, subject, to, user_id].hash
|
235
|
+
[attachments, bcc, body, body_md5_hash, cc, charset, from, id, inbox_id, is_html, reply_to, sent_at, subject, to, user_id].hash
|
227
236
|
end
|
228
237
|
|
229
238
|
# Builds the object from hash
|
data/lib/mailslurp_client/models/{create_anonymous_alias_options.rb → update_alias_options.rb}
RENAMED
@@ -13,22 +13,22 @@ OpenAPI Generator version: 4.3.1
|
|
13
13
|
require 'date'
|
14
14
|
|
15
15
|
module MailSlurpClient
|
16
|
-
#
|
17
|
-
class
|
18
|
-
#
|
19
|
-
attr_accessor :
|
16
|
+
# Update an email alias
|
17
|
+
class UpdateAliasOptions
|
18
|
+
# Optional name for alias
|
19
|
+
attr_accessor :name
|
20
20
|
|
21
21
|
# Attribute mapping from ruby-style variable name to JSON key.
|
22
22
|
def self.attribute_map
|
23
23
|
{
|
24
|
-
:'
|
24
|
+
:'name' => :'name'
|
25
25
|
}
|
26
26
|
end
|
27
27
|
|
28
28
|
# Attribute type mapping.
|
29
29
|
def self.openapi_types
|
30
30
|
{
|
31
|
-
:'
|
31
|
+
:'name' => :'String'
|
32
32
|
}
|
33
33
|
end
|
34
34
|
|
@@ -42,19 +42,19 @@ module MailSlurpClient
|
|
42
42
|
# @param [Hash] attributes Model attributes in the form of hash
|
43
43
|
def initialize(attributes = {})
|
44
44
|
if (!attributes.is_a?(Hash))
|
45
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `MailSlurpClient::
|
45
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `MailSlurpClient::UpdateAliasOptions` initialize method"
|
46
46
|
end
|
47
47
|
|
48
48
|
# check to see if the attribute exists and convert string to symbol for hash key
|
49
49
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
50
50
|
if (!self.class.attribute_map.key?(k.to_sym))
|
51
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `MailSlurpClient::
|
51
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `MailSlurpClient::UpdateAliasOptions`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
52
52
|
end
|
53
53
|
h[k.to_sym] = v
|
54
54
|
}
|
55
55
|
|
56
|
-
if attributes.key?(:'
|
57
|
-
self.
|
56
|
+
if attributes.key?(:'name')
|
57
|
+
self.name = attributes[:'name']
|
58
58
|
end
|
59
59
|
end
|
60
60
|
|
@@ -76,7 +76,7 @@ module MailSlurpClient
|
|
76
76
|
def ==(o)
|
77
77
|
return true if self.equal?(o)
|
78
78
|
self.class == o.class &&
|
79
|
-
|
79
|
+
name == o.name
|
80
80
|
end
|
81
81
|
|
82
82
|
# @see the `==` method
|
@@ -88,7 +88,7 @@ module MailSlurpClient
|
|
88
88
|
# Calculates hash code according to all attributes.
|
89
89
|
# @return [Integer] Hash code
|
90
90
|
def hash
|
91
|
-
[
|
91
|
+
[name].hash
|
92
92
|
end
|
93
93
|
|
94
94
|
# Builds the object from hash
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mailslurp_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 8.3
|
4
|
+
version: 8.4.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- mailslurp
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-12-
|
11
|
+
date: 2020-12-15 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Create emails addresses in Ruby then send and receive real emails and
|
14
14
|
attachments. See https://www.mailslurp.com/docs/ruby/ for full Ruby documentation.
|
@@ -41,18 +41,19 @@ files:
|
|
41
41
|
- lib/mailslurp_client/api_client.rb
|
42
42
|
- lib/mailslurp_client/api_error.rb
|
43
43
|
- lib/mailslurp_client/configuration.rb
|
44
|
+
- lib/mailslurp_client/models/alias_dto.rb
|
45
|
+
- lib/mailslurp_client/models/alias_projection.rb
|
44
46
|
- lib/mailslurp_client/models/attachment_meta_data.rb
|
45
47
|
- lib/mailslurp_client/models/basic_auth_options.rb
|
46
48
|
- lib/mailslurp_client/models/bulk_send_email_options.rb
|
47
49
|
- lib/mailslurp_client/models/contact_dto.rb
|
48
50
|
- lib/mailslurp_client/models/contact_projection.rb
|
49
51
|
- lib/mailslurp_client/models/content_match_options.rb
|
50
|
-
- lib/mailslurp_client/models/
|
52
|
+
- lib/mailslurp_client/models/create_alias_options.rb
|
51
53
|
- lib/mailslurp_client/models/create_contact_options.rb
|
52
54
|
- lib/mailslurp_client/models/create_domain_options.rb
|
53
55
|
- lib/mailslurp_client/models/create_group_options.rb
|
54
56
|
- lib/mailslurp_client/models/create_inbox_dto.rb
|
55
|
-
- lib/mailslurp_client/models/create_owned_alias_options.rb
|
56
57
|
- lib/mailslurp_client/models/create_template_options.rb
|
57
58
|
- lib/mailslurp_client/models/create_webhook_options.rb
|
58
59
|
- lib/mailslurp_client/models/describe_domain_options.rb
|
@@ -92,6 +93,7 @@ files:
|
|
92
93
|
- lib/mailslurp_client/models/page_webhook_projection.rb
|
93
94
|
- lib/mailslurp_client/models/pageable.rb
|
94
95
|
- lib/mailslurp_client/models/raw_email_json.rb
|
96
|
+
- lib/mailslurp_client/models/reply_to_email_options.rb
|
95
97
|
- lib/mailslurp_client/models/send_email_options.rb
|
96
98
|
- lib/mailslurp_client/models/sent_email_dto.rb
|
97
99
|
- lib/mailslurp_client/models/sent_email_projection.rb
|
@@ -102,6 +104,7 @@ files:
|
|
102
104
|
- lib/mailslurp_client/models/template_projection.rb
|
103
105
|
- lib/mailslurp_client/models/template_variable.rb
|
104
106
|
- lib/mailslurp_client/models/unread_count.rb
|
107
|
+
- lib/mailslurp_client/models/update_alias_options.rb
|
105
108
|
- lib/mailslurp_client/models/update_group_contacts.rb
|
106
109
|
- lib/mailslurp_client/models/update_inbox_options.rb
|
107
110
|
- lib/mailslurp_client/models/upload_attachment_options.rb
|