mailslurp_client 15.15.5 → 15.16.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE +1 -1
- data/lib/mailslurp_client/api/common_actions_controller_api.rb +6 -0
- data/lib/mailslurp_client/api/inbox_controller_api.rb +3 -0
- data/lib/mailslurp_client/models/attachment_projection.rb +16 -16
- data/lib/mailslurp_client/models/bounce_projection.rb +15 -15
- data/lib/mailslurp_client/models/create_inbox_dto.rb +16 -5
- data/lib/mailslurp_client/models/email_projection.rb +29 -29
- data/lib/mailslurp_client/models/sent_email_projection.rb +56 -56
- data/lib/mailslurp_client/models/user_info_dto.rb +2 -2
- 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: 2b285ad0eb685dfe94fe1214101746e503178aed860a8338210c75250de591c3
|
4
|
+
data.tar.gz: 7d305eef2e28d23128e1c3ad84f7de6cabf8f0af646ccc4689ae5c591ff684b8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 72a4c398a3e62448fdf86c7960690ca56717c5f6aba6a99024c630235b7906a8c22fb0613b222bc8b4ab1eed43d7cb59111a42f3fc39c3448b4ee00c2bc47ad7
|
7
|
+
data.tar.gz: 89224e88166483a4001b9934b1ede82c789650768659fc3319dbe6bab8c42fc128b5a25fccb0bca9beb5d8598d140df3734460b7209af798f72248a1b688a10f
|
data/LICENSE
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
Copyright
|
1
|
+
Copyright 2023 MailSlurp Email API (Provided by Pettman OÜ, Estonia)
|
2
2
|
|
3
3
|
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
4
4
|
|
@@ -33,6 +33,7 @@ module MailSlurpClient
|
|
33
33
|
# @option opts [Array<String>] :tags
|
34
34
|
# @option opts [Boolean] :favourite
|
35
35
|
# @option opts [Boolean] :virtual_inbox
|
36
|
+
# @option opts [Boolean] :use_short_address
|
36
37
|
# @return [InboxDto]
|
37
38
|
def create_new_email_address(opts = {})
|
38
39
|
data, _status_code, _headers = create_new_email_address_with_http_info(opts)
|
@@ -53,6 +54,7 @@ module MailSlurpClient
|
|
53
54
|
# @option opts [Array<String>] :tags
|
54
55
|
# @option opts [Boolean] :favourite
|
55
56
|
# @option opts [Boolean] :virtual_inbox
|
57
|
+
# @option opts [Boolean] :use_short_address
|
56
58
|
# @return [Array<(InboxDto, Integer, Hash)>] InboxDto data, response status code and response headers
|
57
59
|
def create_new_email_address_with_http_info(opts = {})
|
58
60
|
if @api_client.config.debugging
|
@@ -78,6 +80,7 @@ module MailSlurpClient
|
|
78
80
|
query_params[:'tags'] = @api_client.build_collection_param(opts[:'tags'], :multi) if !opts[:'tags'].nil?
|
79
81
|
query_params[:'favourite'] = opts[:'favourite'] if !opts[:'favourite'].nil?
|
80
82
|
query_params[:'virtualInbox'] = opts[:'virtual_inbox'] if !opts[:'virtual_inbox'].nil?
|
83
|
+
query_params[:'useShortAddress'] = opts[:'use_short_address'] if !opts[:'use_short_address'].nil?
|
81
84
|
|
82
85
|
# header parameters
|
83
86
|
header_params = opts[:header_params] || {}
|
@@ -126,6 +129,7 @@ module MailSlurpClient
|
|
126
129
|
# @option opts [Array<String>] :tags
|
127
130
|
# @option opts [Boolean] :favourite
|
128
131
|
# @option opts [Boolean] :virtual_inbox
|
132
|
+
# @option opts [Boolean] :use_short_address
|
129
133
|
# @return [InboxDto]
|
130
134
|
def create_random_inbox(opts = {})
|
131
135
|
data, _status_code, _headers = create_random_inbox_with_http_info(opts)
|
@@ -146,6 +150,7 @@ module MailSlurpClient
|
|
146
150
|
# @option opts [Array<String>] :tags
|
147
151
|
# @option opts [Boolean] :favourite
|
148
152
|
# @option opts [Boolean] :virtual_inbox
|
153
|
+
# @option opts [Boolean] :use_short_address
|
149
154
|
# @return [Array<(InboxDto, Integer, Hash)>] InboxDto data, response status code and response headers
|
150
155
|
def create_random_inbox_with_http_info(opts = {})
|
151
156
|
if @api_client.config.debugging
|
@@ -171,6 +176,7 @@ module MailSlurpClient
|
|
171
176
|
query_params[:'tags'] = @api_client.build_collection_param(opts[:'tags'], :multi) if !opts[:'tags'].nil?
|
172
177
|
query_params[:'favourite'] = opts[:'favourite'] if !opts[:'favourite'].nil?
|
173
178
|
query_params[:'virtualInbox'] = opts[:'virtual_inbox'] if !opts[:'virtual_inbox'].nil?
|
179
|
+
query_params[:'useShortAddress'] = opts[:'use_short_address'] if !opts[:'use_short_address'].nil?
|
174
180
|
|
175
181
|
# header parameters
|
176
182
|
header_params = opts[:header_params] || {}
|
@@ -95,6 +95,7 @@ module MailSlurpClient
|
|
95
95
|
# @option opts [Boolean] :allow_team_access DEPRECATED (team access is always true). Grant team access to this inbox and the emails that belong to it for team members of your organization.
|
96
96
|
# @option opts [String] :inbox_type HTTP (default) or SMTP inbox type. HTTP inboxes are default and best solution for most cases. SMTP inboxes are more reliable for public inbound email consumption (but do not support sending emails). When using custom domains the domain type must match the inbox type. HTTP inboxes are processed by AWS SES while SMTP inboxes use a custom mail server running at `mx.mailslurp.com`.
|
97
97
|
# @option opts [Boolean] :virtual_inbox Virtual inbox prevents any outbound emails from being sent. It creates sent email records but will never send real emails to recipients. Great for testing and faking email sending.
|
98
|
+
# @option opts [Boolean] :use_short_address Use a shorter email address under 31 characters
|
98
99
|
# @return [InboxDto]
|
99
100
|
def create_inbox(opts = {})
|
100
101
|
data, _status_code, _headers = create_inbox_with_http_info(opts)
|
@@ -115,6 +116,7 @@ module MailSlurpClient
|
|
115
116
|
# @option opts [Boolean] :allow_team_access DEPRECATED (team access is always true). Grant team access to this inbox and the emails that belong to it for team members of your organization.
|
116
117
|
# @option opts [String] :inbox_type HTTP (default) or SMTP inbox type. HTTP inboxes are default and best solution for most cases. SMTP inboxes are more reliable for public inbound email consumption (but do not support sending emails). When using custom domains the domain type must match the inbox type. HTTP inboxes are processed by AWS SES while SMTP inboxes use a custom mail server running at `mx.mailslurp.com`.
|
117
118
|
# @option opts [Boolean] :virtual_inbox Virtual inbox prevents any outbound emails from being sent. It creates sent email records but will never send real emails to recipients. Great for testing and faking email sending.
|
119
|
+
# @option opts [Boolean] :use_short_address Use a shorter email address under 31 characters
|
118
120
|
# @return [Array<(InboxDto, Integer, Hash)>] InboxDto data, response status code and response headers
|
119
121
|
def create_inbox_with_http_info(opts = {})
|
120
122
|
if @api_client.config.debugging
|
@@ -140,6 +142,7 @@ module MailSlurpClient
|
|
140
142
|
query_params[:'allowTeamAccess'] = opts[:'allow_team_access'] if !opts[:'allow_team_access'].nil?
|
141
143
|
query_params[:'inboxType'] = opts[:'inbox_type'] if !opts[:'inbox_type'].nil?
|
142
144
|
query_params[:'virtualInbox'] = opts[:'virtual_inbox'] if !opts[:'virtual_inbox'].nil?
|
145
|
+
query_params[:'useShortAddress'] = opts[:'use_short_address'] if !opts[:'use_short_address'].nil?
|
143
146
|
|
144
147
|
# header parameters
|
145
148
|
header_params = opts[:header_params] || {}
|
@@ -22,13 +22,13 @@ module MailSlurpClient
|
|
22
22
|
|
23
23
|
attr_accessor :user_id
|
24
24
|
|
25
|
-
# Attachment ID
|
26
|
-
attr_accessor :attachment_id
|
27
|
-
|
28
25
|
attr_accessor :created_at
|
29
26
|
|
30
27
|
attr_accessor :updated_at
|
31
28
|
|
29
|
+
# Attachment ID
|
30
|
+
attr_accessor :attachment_id
|
31
|
+
|
32
32
|
# Content type of attachment.
|
33
33
|
attr_accessor :content_type
|
34
34
|
|
@@ -38,9 +38,9 @@ module MailSlurpClient
|
|
38
38
|
:'name' => :'name',
|
39
39
|
:'content_length' => :'contentLength',
|
40
40
|
:'user_id' => :'userId',
|
41
|
-
:'attachment_id' => :'attachmentId',
|
42
41
|
:'created_at' => :'createdAt',
|
43
42
|
:'updated_at' => :'updatedAt',
|
43
|
+
:'attachment_id' => :'attachmentId',
|
44
44
|
:'content_type' => :'contentType'
|
45
45
|
}
|
46
46
|
end
|
@@ -51,9 +51,9 @@ module MailSlurpClient
|
|
51
51
|
:'name' => :'String',
|
52
52
|
:'content_length' => :'Integer',
|
53
53
|
:'user_id' => :'String',
|
54
|
-
:'attachment_id' => :'String',
|
55
54
|
:'created_at' => :'DateTime',
|
56
55
|
:'updated_at' => :'DateTime',
|
56
|
+
:'attachment_id' => :'String',
|
57
57
|
:'content_type' => :'String'
|
58
58
|
}
|
59
59
|
end
|
@@ -94,10 +94,6 @@ module MailSlurpClient
|
|
94
94
|
self.user_id = attributes[:'user_id']
|
95
95
|
end
|
96
96
|
|
97
|
-
if attributes.key?(:'attachment_id')
|
98
|
-
self.attachment_id = attributes[:'attachment_id']
|
99
|
-
end
|
100
|
-
|
101
97
|
if attributes.key?(:'created_at')
|
102
98
|
self.created_at = attributes[:'created_at']
|
103
99
|
end
|
@@ -106,6 +102,10 @@ module MailSlurpClient
|
|
106
102
|
self.updated_at = attributes[:'updated_at']
|
107
103
|
end
|
108
104
|
|
105
|
+
if attributes.key?(:'attachment_id')
|
106
|
+
self.attachment_id = attributes[:'attachment_id']
|
107
|
+
end
|
108
|
+
|
109
109
|
if attributes.key?(:'content_type')
|
110
110
|
self.content_type = attributes[:'content_type']
|
111
111
|
end
|
@@ -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
|
|
@@ -152,9 +152,9 @@ module MailSlurpClient
|
|
152
152
|
name == o.name &&
|
153
153
|
content_length == o.content_length &&
|
154
154
|
user_id == o.user_id &&
|
155
|
-
attachment_id == o.attachment_id &&
|
156
155
|
created_at == o.created_at &&
|
157
156
|
updated_at == o.updated_at &&
|
157
|
+
attachment_id == o.attachment_id &&
|
158
158
|
content_type == o.content_type
|
159
159
|
end
|
160
160
|
|
@@ -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, user_id,
|
170
|
+
[name, content_length, user_id, created_at, updated_at, attachment_id, content_type].hash
|
171
171
|
end
|
172
172
|
|
173
173
|
# Builds the object from hash
|
@@ -23,10 +23,10 @@ module MailSlurpClient
|
|
23
23
|
|
24
24
|
attr_accessor :created_at
|
25
25
|
|
26
|
-
attr_accessor :bounce_mta
|
27
|
-
|
28
26
|
attr_accessor :bounce_type
|
29
27
|
|
28
|
+
attr_accessor :bounce_mta
|
29
|
+
|
30
30
|
# Attribute mapping from ruby-style variable name to JSON key.
|
31
31
|
def self.attribute_map
|
32
32
|
{
|
@@ -34,8 +34,8 @@ module MailSlurpClient
|
|
34
34
|
:'sender' => :'sender',
|
35
35
|
:'subject' => :'subject',
|
36
36
|
:'created_at' => :'createdAt',
|
37
|
-
:'
|
38
|
-
:'
|
37
|
+
:'bounce_type' => :'bounceType',
|
38
|
+
:'bounce_mta' => :'bounceMta'
|
39
39
|
}
|
40
40
|
end
|
41
41
|
|
@@ -46,8 +46,8 @@ module MailSlurpClient
|
|
46
46
|
:'sender' => :'String',
|
47
47
|
:'subject' => :'String',
|
48
48
|
:'created_at' => :'DateTime',
|
49
|
-
:'
|
50
|
-
:'
|
49
|
+
:'bounce_type' => :'String',
|
50
|
+
:'bounce_mta' => :'String'
|
51
51
|
}
|
52
52
|
end
|
53
53
|
|
@@ -55,8 +55,8 @@ module MailSlurpClient
|
|
55
55
|
def self.openapi_nullable
|
56
56
|
Set.new([
|
57
57
|
:'subject',
|
58
|
-
:'
|
59
|
-
:'
|
58
|
+
:'bounce_type',
|
59
|
+
:'bounce_mta'
|
60
60
|
])
|
61
61
|
end
|
62
62
|
|
@@ -91,13 +91,13 @@ module MailSlurpClient
|
|
91
91
|
self.created_at = attributes[:'created_at']
|
92
92
|
end
|
93
93
|
|
94
|
-
if attributes.key?(:'bounce_mta')
|
95
|
-
self.bounce_mta = attributes[:'bounce_mta']
|
96
|
-
end
|
97
|
-
|
98
94
|
if attributes.key?(:'bounce_type')
|
99
95
|
self.bounce_type = attributes[:'bounce_type']
|
100
96
|
end
|
97
|
+
|
98
|
+
if attributes.key?(:'bounce_mta')
|
99
|
+
self.bounce_mta = attributes[:'bounce_mta']
|
100
|
+
end
|
101
101
|
end
|
102
102
|
|
103
103
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -132,8 +132,8 @@ module MailSlurpClient
|
|
132
132
|
sender == o.sender &&
|
133
133
|
subject == o.subject &&
|
134
134
|
created_at == o.created_at &&
|
135
|
-
|
136
|
-
|
135
|
+
bounce_type == o.bounce_type &&
|
136
|
+
bounce_mta == o.bounce_mta
|
137
137
|
end
|
138
138
|
|
139
139
|
# @see the `==` method
|
@@ -145,7 +145,7 @@ module MailSlurpClient
|
|
145
145
|
# Calculates hash code according to all attributes.
|
146
146
|
# @return [Integer] Hash code
|
147
147
|
def hash
|
148
|
-
[id, sender, subject, created_at,
|
148
|
+
[id, sender, subject, created_at, bounce_type, bounce_mta].hash
|
149
149
|
end
|
150
150
|
|
151
151
|
# Builds the object from hash
|
@@ -48,6 +48,9 @@ module MailSlurpClient
|
|
48
48
|
# Virtual inbox prevents any outbound emails from being sent. It creates sent email records but will never send real emails to recipients. Great for testing and faking email sending.
|
49
49
|
attr_accessor :virtual_inbox
|
50
50
|
|
51
|
+
# Use a shorter email address under 31 characters
|
52
|
+
attr_accessor :use_short_address
|
53
|
+
|
51
54
|
class EnumAttributeValidator
|
52
55
|
attr_reader :datatype
|
53
56
|
attr_reader :allowable_values
|
@@ -83,7 +86,8 @@ module MailSlurpClient
|
|
83
86
|
:'expires_in' => :'expiresIn',
|
84
87
|
:'allow_team_access' => :'allowTeamAccess',
|
85
88
|
:'inbox_type' => :'inboxType',
|
86
|
-
:'virtual_inbox' => :'virtualInbox'
|
89
|
+
:'virtual_inbox' => :'virtualInbox',
|
90
|
+
:'use_short_address' => :'useShortAddress'
|
87
91
|
}
|
88
92
|
end
|
89
93
|
|
@@ -100,7 +104,8 @@ module MailSlurpClient
|
|
100
104
|
:'expires_in' => :'Integer',
|
101
105
|
:'allow_team_access' => :'Boolean',
|
102
106
|
:'inbox_type' => :'String',
|
103
|
-
:'virtual_inbox' => :'Boolean'
|
107
|
+
:'virtual_inbox' => :'Boolean',
|
108
|
+
:'use_short_address' => :'Boolean'
|
104
109
|
}
|
105
110
|
end
|
106
111
|
|
@@ -117,7 +122,8 @@ module MailSlurpClient
|
|
117
122
|
:'expires_in',
|
118
123
|
:'allow_team_access',
|
119
124
|
:'inbox_type',
|
120
|
-
:'virtual_inbox'
|
125
|
+
:'virtual_inbox',
|
126
|
+
:'use_short_address'
|
121
127
|
])
|
122
128
|
end
|
123
129
|
|
@@ -181,6 +187,10 @@ module MailSlurpClient
|
|
181
187
|
if attributes.key?(:'virtual_inbox')
|
182
188
|
self.virtual_inbox = attributes[:'virtual_inbox']
|
183
189
|
end
|
190
|
+
|
191
|
+
if attributes.key?(:'use_short_address')
|
192
|
+
self.use_short_address = attributes[:'use_short_address']
|
193
|
+
end
|
184
194
|
end
|
185
195
|
|
186
196
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -223,7 +233,8 @@ module MailSlurpClient
|
|
223
233
|
expires_in == o.expires_in &&
|
224
234
|
allow_team_access == o.allow_team_access &&
|
225
235
|
inbox_type == o.inbox_type &&
|
226
|
-
virtual_inbox == o.virtual_inbox
|
236
|
+
virtual_inbox == o.virtual_inbox &&
|
237
|
+
use_short_address == o.use_short_address
|
227
238
|
end
|
228
239
|
|
229
240
|
# @see the `==` method
|
@@ -235,7 +246,7 @@ module MailSlurpClient
|
|
235
246
|
# Calculates hash code according to all attributes.
|
236
247
|
# @return [Integer] Hash code
|
237
248
|
def hash
|
238
|
-
[email_address, name, description, use_domain_pool, tags, expires_at, favourite, expires_in, allow_team_access, inbox_type, virtual_inbox].hash
|
249
|
+
[email_address, name, description, use_domain_pool, tags, expires_at, favourite, expires_in, allow_team_access, inbox_type, virtual_inbox, use_short_address].hash
|
239
250
|
end
|
240
251
|
|
241
252
|
# Builds the object from hash
|
@@ -35,14 +35,14 @@ module MailSlurpClient
|
|
35
35
|
|
36
36
|
attr_accessor :domain_id
|
37
37
|
|
38
|
-
attr_accessor :read
|
39
|
-
|
40
|
-
attr_accessor :body_excerpt
|
41
|
-
|
42
38
|
attr_accessor :team_access
|
43
39
|
|
44
40
|
attr_accessor :body_md5_hash
|
45
41
|
|
42
|
+
attr_accessor :read
|
43
|
+
|
44
|
+
attr_accessor :body_excerpt
|
45
|
+
|
46
46
|
# Attribute mapping from ruby-style variable name to JSON key.
|
47
47
|
def self.attribute_map
|
48
48
|
{
|
@@ -56,10 +56,10 @@ module MailSlurpClient
|
|
56
56
|
:'bcc' => :'bcc',
|
57
57
|
:'cc' => :'cc',
|
58
58
|
:'domain_id' => :'domainId',
|
59
|
-
:'read' => :'read',
|
60
|
-
:'body_excerpt' => :'bodyExcerpt',
|
61
59
|
:'team_access' => :'teamAccess',
|
62
|
-
:'body_md5_hash' => :'bodyMD5Hash'
|
60
|
+
:'body_md5_hash' => :'bodyMD5Hash',
|
61
|
+
:'read' => :'read',
|
62
|
+
:'body_excerpt' => :'bodyExcerpt'
|
63
63
|
}
|
64
64
|
end
|
65
65
|
|
@@ -76,10 +76,10 @@ module MailSlurpClient
|
|
76
76
|
:'bcc' => :'Array<String>',
|
77
77
|
:'cc' => :'Array<String>',
|
78
78
|
:'domain_id' => :'String',
|
79
|
-
:'read' => :'Boolean',
|
80
|
-
:'body_excerpt' => :'String',
|
81
79
|
:'team_access' => :'Boolean',
|
82
|
-
:'body_md5_hash' => :'String'
|
80
|
+
:'body_md5_hash' => :'String',
|
81
|
+
:'read' => :'Boolean',
|
82
|
+
:'body_excerpt' => :'String'
|
83
83
|
}
|
84
84
|
end
|
85
85
|
|
@@ -92,8 +92,8 @@ module MailSlurpClient
|
|
92
92
|
:'bcc',
|
93
93
|
:'cc',
|
94
94
|
:'domain_id',
|
95
|
-
:'
|
96
|
-
:'
|
95
|
+
:'body_md5_hash',
|
96
|
+
:'body_excerpt'
|
97
97
|
])
|
98
98
|
end
|
99
99
|
|
@@ -160,14 +160,6 @@ module MailSlurpClient
|
|
160
160
|
self.domain_id = attributes[:'domain_id']
|
161
161
|
end
|
162
162
|
|
163
|
-
if attributes.key?(:'read')
|
164
|
-
self.read = attributes[:'read']
|
165
|
-
end
|
166
|
-
|
167
|
-
if attributes.key?(:'body_excerpt')
|
168
|
-
self.body_excerpt = attributes[:'body_excerpt']
|
169
|
-
end
|
170
|
-
|
171
163
|
if attributes.key?(:'team_access')
|
172
164
|
self.team_access = attributes[:'team_access']
|
173
165
|
end
|
@@ -175,6 +167,14 @@ module MailSlurpClient
|
|
175
167
|
if attributes.key?(:'body_md5_hash')
|
176
168
|
self.body_md5_hash = attributes[:'body_md5_hash']
|
177
169
|
end
|
170
|
+
|
171
|
+
if attributes.key?(:'read')
|
172
|
+
self.read = attributes[:'read']
|
173
|
+
end
|
174
|
+
|
175
|
+
if attributes.key?(:'body_excerpt')
|
176
|
+
self.body_excerpt = attributes[:'body_excerpt']
|
177
|
+
end
|
178
178
|
end
|
179
179
|
|
180
180
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -197,14 +197,14 @@ module MailSlurpClient
|
|
197
197
|
invalid_properties.push('invalid value for "to", to cannot be nil.')
|
198
198
|
end
|
199
199
|
|
200
|
-
if @read.nil?
|
201
|
-
invalid_properties.push('invalid value for "read", read cannot be nil.')
|
202
|
-
end
|
203
|
-
|
204
200
|
if @team_access.nil?
|
205
201
|
invalid_properties.push('invalid value for "team_access", team_access cannot be nil.')
|
206
202
|
end
|
207
203
|
|
204
|
+
if @read.nil?
|
205
|
+
invalid_properties.push('invalid value for "read", read cannot be nil.')
|
206
|
+
end
|
207
|
+
|
208
208
|
invalid_properties
|
209
209
|
end
|
210
210
|
|
@@ -215,8 +215,8 @@ module MailSlurpClient
|
|
215
215
|
return false if @inbox_id.nil?
|
216
216
|
return false if @created_at.nil?
|
217
217
|
return false if @to.nil?
|
218
|
-
return false if @read.nil?
|
219
218
|
return false if @team_access.nil?
|
219
|
+
return false if @read.nil?
|
220
220
|
true
|
221
221
|
end
|
222
222
|
|
@@ -235,10 +235,10 @@ module MailSlurpClient
|
|
235
235
|
bcc == o.bcc &&
|
236
236
|
cc == o.cc &&
|
237
237
|
domain_id == o.domain_id &&
|
238
|
-
read == o.read &&
|
239
|
-
body_excerpt == o.body_excerpt &&
|
240
238
|
team_access == o.team_access &&
|
241
|
-
body_md5_hash == o.body_md5_hash
|
239
|
+
body_md5_hash == o.body_md5_hash &&
|
240
|
+
read == o.read &&
|
241
|
+
body_excerpt == o.body_excerpt
|
242
242
|
end
|
243
243
|
|
244
244
|
# @see the `==` method
|
@@ -250,7 +250,7 @@ module MailSlurpClient
|
|
250
250
|
# Calculates hash code according to all attributes.
|
251
251
|
# @return [Integer] Hash code
|
252
252
|
def hash
|
253
|
-
[id, from, subject, inbox_id, attachments, created_at, to, bcc, cc, domain_id,
|
253
|
+
[id, from, subject, inbox_id, attachments, created_at, to, bcc, cc, domain_id, team_access, body_md5_hash, read, body_excerpt].hash
|
254
254
|
end
|
255
255
|
|
256
256
|
# Builds the object from hash
|
@@ -25,19 +25,19 @@ module MailSlurpClient
|
|
25
25
|
|
26
26
|
attr_accessor :inbox_id
|
27
27
|
|
28
|
-
attr_accessor :
|
28
|
+
attr_accessor :attachments
|
29
29
|
|
30
|
-
attr_accessor :
|
30
|
+
attr_accessor :created_at
|
31
31
|
|
32
|
-
attr_accessor :
|
32
|
+
attr_accessor :to
|
33
33
|
|
34
|
-
attr_accessor :
|
34
|
+
attr_accessor :bcc
|
35
35
|
|
36
|
-
attr_accessor :
|
36
|
+
attr_accessor :cc
|
37
37
|
|
38
|
-
attr_accessor :
|
38
|
+
attr_accessor :body_md5_hash
|
39
39
|
|
40
|
-
attr_accessor :
|
40
|
+
attr_accessor :virtual_send
|
41
41
|
|
42
42
|
# Attribute mapping from ruby-style variable name to JSON key.
|
43
43
|
def self.attribute_map
|
@@ -47,13 +47,13 @@ module MailSlurpClient
|
|
47
47
|
:'user_id' => :'userId',
|
48
48
|
:'subject' => :'subject',
|
49
49
|
:'inbox_id' => :'inboxId',
|
50
|
-
:'body_md5_hash' => :'bodyMD5Hash',
|
51
|
-
:'bcc' => :'bcc',
|
52
|
-
:'cc' => :'cc',
|
53
|
-
:'virtual_send' => :'virtualSend',
|
54
50
|
:'attachments' => :'attachments',
|
55
51
|
:'created_at' => :'createdAt',
|
56
|
-
:'to' => :'to'
|
52
|
+
:'to' => :'to',
|
53
|
+
:'bcc' => :'bcc',
|
54
|
+
:'cc' => :'cc',
|
55
|
+
:'body_md5_hash' => :'bodyMD5Hash',
|
56
|
+
:'virtual_send' => :'virtualSend'
|
57
57
|
}
|
58
58
|
end
|
59
59
|
|
@@ -65,13 +65,13 @@ module MailSlurpClient
|
|
65
65
|
:'user_id' => :'String',
|
66
66
|
:'subject' => :'String',
|
67
67
|
:'inbox_id' => :'String',
|
68
|
-
:'body_md5_hash' => :'String',
|
69
|
-
:'bcc' => :'Array<String>',
|
70
|
-
:'cc' => :'Array<String>',
|
71
|
-
:'virtual_send' => :'Boolean',
|
72
68
|
:'attachments' => :'Array<String>',
|
73
69
|
:'created_at' => :'DateTime',
|
74
|
-
:'to' => :'Array<String>'
|
70
|
+
:'to' => :'Array<String>',
|
71
|
+
:'bcc' => :'Array<String>',
|
72
|
+
:'cc' => :'Array<String>',
|
73
|
+
:'body_md5_hash' => :'String',
|
74
|
+
:'virtual_send' => :'Boolean'
|
75
75
|
}
|
76
76
|
end
|
77
77
|
|
@@ -116,8 +116,20 @@ module MailSlurpClient
|
|
116
116
|
self.inbox_id = attributes[:'inbox_id']
|
117
117
|
end
|
118
118
|
|
119
|
-
if attributes.key?(:'
|
120
|
-
|
119
|
+
if attributes.key?(:'attachments')
|
120
|
+
if (value = attributes[:'attachments']).is_a?(Array)
|
121
|
+
self.attachments = value
|
122
|
+
end
|
123
|
+
end
|
124
|
+
|
125
|
+
if attributes.key?(:'created_at')
|
126
|
+
self.created_at = attributes[:'created_at']
|
127
|
+
end
|
128
|
+
|
129
|
+
if attributes.key?(:'to')
|
130
|
+
if (value = attributes[:'to']).is_a?(Array)
|
131
|
+
self.to = value
|
132
|
+
end
|
121
133
|
end
|
122
134
|
|
123
135
|
if attributes.key?(:'bcc')
|
@@ -132,24 +144,12 @@ module MailSlurpClient
|
|
132
144
|
end
|
133
145
|
end
|
134
146
|
|
135
|
-
if attributes.key?(:'
|
136
|
-
self.
|
137
|
-
end
|
138
|
-
|
139
|
-
if attributes.key?(:'attachments')
|
140
|
-
if (value = attributes[:'attachments']).is_a?(Array)
|
141
|
-
self.attachments = value
|
142
|
-
end
|
143
|
-
end
|
144
|
-
|
145
|
-
if attributes.key?(:'created_at')
|
146
|
-
self.created_at = attributes[:'created_at']
|
147
|
+
if attributes.key?(:'body_md5_hash')
|
148
|
+
self.body_md5_hash = attributes[:'body_md5_hash']
|
147
149
|
end
|
148
150
|
|
149
|
-
if attributes.key?(:'
|
150
|
-
|
151
|
-
self.to = value
|
152
|
-
end
|
151
|
+
if attributes.key?(:'virtual_send')
|
152
|
+
self.virtual_send = attributes[:'virtual_send']
|
153
153
|
end
|
154
154
|
end
|
155
155
|
|
@@ -169,18 +169,6 @@ module MailSlurpClient
|
|
169
169
|
invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
|
170
170
|
end
|
171
171
|
|
172
|
-
if @bcc.nil?
|
173
|
-
invalid_properties.push('invalid value for "bcc", bcc cannot be nil.')
|
174
|
-
end
|
175
|
-
|
176
|
-
if @cc.nil?
|
177
|
-
invalid_properties.push('invalid value for "cc", cc cannot be nil.')
|
178
|
-
end
|
179
|
-
|
180
|
-
if @virtual_send.nil?
|
181
|
-
invalid_properties.push('invalid value for "virtual_send", virtual_send cannot be nil.')
|
182
|
-
end
|
183
|
-
|
184
172
|
if @attachments.nil?
|
185
173
|
invalid_properties.push('invalid value for "attachments", attachments cannot be nil.')
|
186
174
|
end
|
@@ -193,6 +181,18 @@ module MailSlurpClient
|
|
193
181
|
invalid_properties.push('invalid value for "to", to cannot be nil.')
|
194
182
|
end
|
195
183
|
|
184
|
+
if @bcc.nil?
|
185
|
+
invalid_properties.push('invalid value for "bcc", bcc cannot be nil.')
|
186
|
+
end
|
187
|
+
|
188
|
+
if @cc.nil?
|
189
|
+
invalid_properties.push('invalid value for "cc", cc cannot be nil.')
|
190
|
+
end
|
191
|
+
|
192
|
+
if @virtual_send.nil?
|
193
|
+
invalid_properties.push('invalid value for "virtual_send", virtual_send cannot be nil.')
|
194
|
+
end
|
195
|
+
|
196
196
|
invalid_properties
|
197
197
|
end
|
198
198
|
|
@@ -202,12 +202,12 @@ module MailSlurpClient
|
|
202
202
|
return false if @id.nil?
|
203
203
|
return false if @user_id.nil?
|
204
204
|
return false if @inbox_id.nil?
|
205
|
-
return false if @bcc.nil?
|
206
|
-
return false if @cc.nil?
|
207
|
-
return false if @virtual_send.nil?
|
208
205
|
return false if @attachments.nil?
|
209
206
|
return false if @created_at.nil?
|
210
207
|
return false if @to.nil?
|
208
|
+
return false if @bcc.nil?
|
209
|
+
return false if @cc.nil?
|
210
|
+
return false if @virtual_send.nil?
|
211
211
|
true
|
212
212
|
end
|
213
213
|
|
@@ -221,13 +221,13 @@ module MailSlurpClient
|
|
221
221
|
user_id == o.user_id &&
|
222
222
|
subject == o.subject &&
|
223
223
|
inbox_id == o.inbox_id &&
|
224
|
-
body_md5_hash == o.body_md5_hash &&
|
225
|
-
bcc == o.bcc &&
|
226
|
-
cc == o.cc &&
|
227
|
-
virtual_send == o.virtual_send &&
|
228
224
|
attachments == o.attachments &&
|
229
225
|
created_at == o.created_at &&
|
230
|
-
to == o.to
|
226
|
+
to == o.to &&
|
227
|
+
bcc == o.bcc &&
|
228
|
+
cc == o.cc &&
|
229
|
+
body_md5_hash == o.body_md5_hash &&
|
230
|
+
virtual_send == o.virtual_send
|
231
231
|
end
|
232
232
|
|
233
233
|
# @see the `==` method
|
@@ -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,
|
242
|
+
[id, from, user_id, subject, inbox_id, attachments, created_at, to, bcc, cc, body_md5_hash, virtual_send].hash
|
243
243
|
end
|
244
244
|
|
245
245
|
# Builds the object from hash
|
@@ -156,7 +156,7 @@ module MailSlurpClient
|
|
156
156
|
subscription_type_validator = EnumAttributeValidator.new('String', ["PRO_MONTHLY", "STARTER", "TEAM", "ENTERPRISE"])
|
157
157
|
return false unless subscription_type_validator.valid?(@subscription_type)
|
158
158
|
return false if @account_type.nil?
|
159
|
-
account_type_validator = EnumAttributeValidator.new('String', ["SOLO", "CHILD_SOLO", "CHILD_TEAM"])
|
159
|
+
account_type_validator = EnumAttributeValidator.new('String', ["SOLO", "CHILD_SOLO", "CHILD_TEAM", "CHILD_ADMIN"])
|
160
160
|
return false unless account_type_validator.valid?(@account_type)
|
161
161
|
return false if @created_at.nil?
|
162
162
|
true
|
@@ -185,7 +185,7 @@ module MailSlurpClient
|
|
185
185
|
# Custom attribute writer method checking allowed values (enum).
|
186
186
|
# @param [Object] account_type Object to be assigned
|
187
187
|
def account_type=(account_type)
|
188
|
-
validator = EnumAttributeValidator.new('String', ["SOLO", "CHILD_SOLO", "CHILD_TEAM"])
|
188
|
+
validator = EnumAttributeValidator.new('String', ["SOLO", "CHILD_SOLO", "CHILD_TEAM", "CHILD_ADMIN"])
|
189
189
|
unless validator.valid?(account_type)
|
190
190
|
fail ArgumentError, "invalid value for \"account_type\", must be one of #{validator.allowable_values}."
|
191
191
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mailslurp_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 15.
|
4
|
+
version: 15.16.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- mailslurp
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-01-17 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/ruby/ for full Ruby documentation. Get
|