mailslurp_client 15.7.13 → 15.7.16
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/mailslurp_client/api/attachment_controller_api.rb +9 -9
- data/lib/mailslurp_client/api/common_actions_controller_api.rb +6 -0
- data/lib/mailslurp_client/api/email_controller_api.rb +3 -0
- data/lib/mailslurp_client/api/inbox_controller_api.rb +3 -0
- data/lib/mailslurp_client/models/alias_projection.rb +15 -15
- data/lib/mailslurp_client/models/attachment_entity.rb +1 -0
- data/lib/mailslurp_client/models/attachment_projection.rb +16 -15
- data/lib/mailslurp_client/models/bounce_projection.rb +1 -0
- data/lib/mailslurp_client/models/bounce_recipient.rb +1 -0
- data/lib/mailslurp_client/models/contact_dto.rb +1 -0
- data/lib/mailslurp_client/models/contact_projection.rb +14 -13
- data/lib/mailslurp_client/models/count_dto.rb +1 -0
- data/lib/mailslurp_client/models/create_contact_options.rb +1 -0
- data/lib/mailslurp_client/models/create_group_options.rb +1 -0
- data/lib/mailslurp_client/models/create_inbox_dto.rb +14 -4
- data/lib/mailslurp_client/models/create_template_options.rb +1 -0
- data/lib/mailslurp_client/models/create_tracking_pixel_options.rb +1 -0
- data/lib/mailslurp_client/models/describe_domain_options.rb +1 -0
- data/lib/mailslurp_client/models/email.rb +13 -4
- data/lib/mailslurp_client/models/email_preview_urls.rb +1 -0
- data/lib/mailslurp_client/models/email_projection.rb +32 -32
- data/lib/mailslurp_client/models/email_validation_request.rb +1 -0
- data/lib/mailslurp_client/models/expired_inbox_record_projection.rb +19 -18
- data/lib/mailslurp_client/models/filter_bounced_recipients_options.rb +1 -0
- data/lib/mailslurp_client/models/filter_bounced_recipients_result.rb +1 -0
- data/lib/mailslurp_client/models/flush_expired_inboxes_result.rb +1 -0
- data/lib/mailslurp_client/models/gravatar_url.rb +1 -0
- data/lib/mailslurp_client/models/group_contacts_dto.rb +1 -0
- data/lib/mailslurp_client/models/group_dto.rb +1 -0
- data/lib/mailslurp_client/models/group_projection.rb +1 -0
- data/lib/mailslurp_client/models/imap_flag_operation_options.rb +1 -0
- data/lib/mailslurp_client/models/imap_smtp_access_details.rb +9 -0
- data/lib/mailslurp_client/models/inbox_by_email_address_result.rb +1 -0
- data/lib/mailslurp_client/models/inbox_dto.rb +19 -4
- data/lib/mailslurp_client/models/inbox_exists_dto.rb +1 -0
- data/lib/mailslurp_client/models/inbox_forwarder_dto.rb +1 -0
- data/lib/mailslurp_client/models/inbox_forwarder_test_options.rb +1 -0
- data/lib/mailslurp_client/models/inbox_forwarder_test_result.rb +1 -0
- data/lib/mailslurp_client/models/inbox_id_item.rb +1 -0
- data/lib/mailslurp_client/models/inbox_ids_result.rb +1 -0
- data/lib/mailslurp_client/models/inbox_preview.rb +12 -1
- data/lib/mailslurp_client/models/inbox_ruleset_dto.rb +1 -0
- data/lib/mailslurp_client/models/inbox_ruleset_test_options.rb +1 -0
- data/lib/mailslurp_client/models/inbox_ruleset_test_result.rb +1 -0
- data/lib/mailslurp_client/models/inline_object1.rb +270 -0
- data/lib/mailslurp_client/models/json_schema_dto.rb +1 -0
- data/lib/mailslurp_client/models/missed_email.rb +1 -0
- data/lib/mailslurp_client/models/missed_email_projection.rb +14 -13
- data/lib/mailslurp_client/models/organization_inbox_projection.rb +15 -4
- data/lib/mailslurp_client/models/recipient.rb +1 -0
- data/lib/mailslurp_client/models/reply_to_alias_email_options.rb +13 -4
- data/lib/mailslurp_client/models/reply_to_email_options.rb +13 -4
- data/lib/mailslurp_client/models/sent_email_dto.rb +22 -4
- data/lib/mailslurp_client/models/sent_email_projection.rb +38 -29
- data/lib/mailslurp_client/models/simple_send_email_options.rb +1 -0
- data/lib/mailslurp_client/models/template_dto.rb +1 -0
- data/lib/mailslurp_client/models/template_projection.rb +1 -0
- data/lib/mailslurp_client/models/template_variable.rb +1 -0
- data/lib/mailslurp_client/models/test_new_inbox_forwarder_options.rb +1 -0
- data/lib/mailslurp_client/models/test_new_inbox_ruleset_options.rb +1 -0
- data/lib/mailslurp_client/models/thread_projection.rb +15 -15
- data/lib/mailslurp_client/models/tracking_pixel_dto.rb +1 -0
- data/lib/mailslurp_client/models/tracking_pixel_projection.rb +16 -15
- data/lib/mailslurp_client/models/unknown_missed_email_projection.rb +14 -13
- data/lib/mailslurp_client/models/unread_count.rb +1 -0
- data/lib/mailslurp_client/models/unseen_error_count_dto.rb +1 -0
- data/lib/mailslurp_client/models/update_group_contacts.rb +1 -0
- data/lib/mailslurp_client/models/validate_email_address_list_options.rb +1 -0
- data/lib/mailslurp_client/models/validate_email_address_list_result.rb +1 -0
- data/lib/mailslurp_client/models/webhook_projection.rb +11 -11
- data/lib/mailslurp_client/models/webhook_redrive_result.rb +1 -0
- data/lib/mailslurp_client/models/webhook_result_dto.rb +1 -0
- data/lib/mailslurp_client/models/webhook_test_request.rb +1 -0
- data/lib/mailslurp_client/models/webhook_test_response.rb +1 -0
- data/lib/mailslurp_client/version.rb +1 -1
- data/lib/mailslurp_client.rb +1 -0
- metadata +3 -2
@@ -0,0 +1,270 @@
|
|
1
|
+
=begin
|
2
|
+
#MailSlurp API
|
3
|
+
|
4
|
+
#MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 6.5.2
|
7
|
+
Contact: contact@mailslurp.dev
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 4.3.1
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
|
15
|
+
module MailSlurpClient
|
16
|
+
# Byte array request body
|
17
|
+
class InlineObject1
|
18
|
+
attr_accessor :short
|
19
|
+
|
20
|
+
attr_accessor :char
|
21
|
+
|
22
|
+
attr_accessor :int
|
23
|
+
|
24
|
+
attr_accessor :long
|
25
|
+
|
26
|
+
attr_accessor :float
|
27
|
+
|
28
|
+
attr_accessor :double
|
29
|
+
|
30
|
+
attr_accessor :direct
|
31
|
+
|
32
|
+
attr_accessor :read_only
|
33
|
+
|
34
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
35
|
+
def self.attribute_map
|
36
|
+
{
|
37
|
+
:'short' => :'short',
|
38
|
+
:'char' => :'char',
|
39
|
+
:'int' => :'int',
|
40
|
+
:'long' => :'long',
|
41
|
+
:'float' => :'float',
|
42
|
+
:'double' => :'double',
|
43
|
+
:'direct' => :'direct',
|
44
|
+
:'read_only' => :'readOnly'
|
45
|
+
}
|
46
|
+
end
|
47
|
+
|
48
|
+
# Attribute type mapping.
|
49
|
+
def self.openapi_types
|
50
|
+
{
|
51
|
+
:'short' => :'Integer',
|
52
|
+
:'char' => :'String',
|
53
|
+
:'int' => :'Integer',
|
54
|
+
:'long' => :'Integer',
|
55
|
+
:'float' => :'Float',
|
56
|
+
:'double' => :'Float',
|
57
|
+
:'direct' => :'Boolean',
|
58
|
+
:'read_only' => :'Boolean'
|
59
|
+
}
|
60
|
+
end
|
61
|
+
|
62
|
+
# List of attributes with nullable: true
|
63
|
+
def self.openapi_nullable
|
64
|
+
Set.new([
|
65
|
+
])
|
66
|
+
end
|
67
|
+
|
68
|
+
# Initializes the object
|
69
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
70
|
+
def initialize(attributes = {})
|
71
|
+
if (!attributes.is_a?(Hash))
|
72
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `MailSlurpClient::InlineObject1` initialize method"
|
73
|
+
end
|
74
|
+
|
75
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
76
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
77
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
78
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `MailSlurpClient::InlineObject1`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
79
|
+
end
|
80
|
+
h[k.to_sym] = v
|
81
|
+
}
|
82
|
+
|
83
|
+
if attributes.key?(:'short')
|
84
|
+
self.short = attributes[:'short']
|
85
|
+
end
|
86
|
+
|
87
|
+
if attributes.key?(:'char')
|
88
|
+
self.char = attributes[:'char']
|
89
|
+
end
|
90
|
+
|
91
|
+
if attributes.key?(:'int')
|
92
|
+
self.int = attributes[:'int']
|
93
|
+
end
|
94
|
+
|
95
|
+
if attributes.key?(:'long')
|
96
|
+
self.long = attributes[:'long']
|
97
|
+
end
|
98
|
+
|
99
|
+
if attributes.key?(:'float')
|
100
|
+
self.float = attributes[:'float']
|
101
|
+
end
|
102
|
+
|
103
|
+
if attributes.key?(:'double')
|
104
|
+
self.double = attributes[:'double']
|
105
|
+
end
|
106
|
+
|
107
|
+
if attributes.key?(:'direct')
|
108
|
+
self.direct = attributes[:'direct']
|
109
|
+
end
|
110
|
+
|
111
|
+
if attributes.key?(:'read_only')
|
112
|
+
self.read_only = attributes[:'read_only']
|
113
|
+
end
|
114
|
+
end
|
115
|
+
|
116
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
117
|
+
# @return Array for valid properties with the reasons
|
118
|
+
def list_invalid_properties
|
119
|
+
invalid_properties = Array.new
|
120
|
+
invalid_properties
|
121
|
+
end
|
122
|
+
|
123
|
+
# Check to see if the all the properties in the model are valid
|
124
|
+
# @return true if the model is valid
|
125
|
+
def valid?
|
126
|
+
true
|
127
|
+
end
|
128
|
+
|
129
|
+
# Checks equality by comparing each attribute.
|
130
|
+
# @param [Object] Object to be compared
|
131
|
+
def ==(o)
|
132
|
+
return true if self.equal?(o)
|
133
|
+
self.class == o.class &&
|
134
|
+
short == o.short &&
|
135
|
+
char == o.char &&
|
136
|
+
int == o.int &&
|
137
|
+
long == o.long &&
|
138
|
+
float == o.float &&
|
139
|
+
double == o.double &&
|
140
|
+
direct == o.direct &&
|
141
|
+
read_only == o.read_only
|
142
|
+
end
|
143
|
+
|
144
|
+
# @see the `==` method
|
145
|
+
# @param [Object] Object to be compared
|
146
|
+
def eql?(o)
|
147
|
+
self == o
|
148
|
+
end
|
149
|
+
|
150
|
+
# Calculates hash code according to all attributes.
|
151
|
+
# @return [Integer] Hash code
|
152
|
+
def hash
|
153
|
+
[short, char, int, long, float, double, direct, read_only].hash
|
154
|
+
end
|
155
|
+
|
156
|
+
# Builds the object from hash
|
157
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
158
|
+
# @return [Object] Returns the model itself
|
159
|
+
def self.build_from_hash(attributes)
|
160
|
+
new.build_from_hash(attributes)
|
161
|
+
end
|
162
|
+
|
163
|
+
# Builds the object from hash
|
164
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
165
|
+
# @return [Object] Returns the model itself
|
166
|
+
def build_from_hash(attributes)
|
167
|
+
return nil unless attributes.is_a?(Hash)
|
168
|
+
self.class.openapi_types.each_pair do |key, type|
|
169
|
+
if type =~ /\AArray<(.*)>/i
|
170
|
+
# check to ensure the input is an array given that the attribute
|
171
|
+
# is documented as an array but the input is not
|
172
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
173
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
174
|
+
end
|
175
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
176
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
177
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
178
|
+
end
|
179
|
+
|
180
|
+
self
|
181
|
+
end
|
182
|
+
|
183
|
+
# Deserializes the data based on type
|
184
|
+
# @param string type Data type
|
185
|
+
# @param string value Value to be deserialized
|
186
|
+
# @return [Object] Deserialized data
|
187
|
+
def _deserialize(type, value)
|
188
|
+
case type.to_sym
|
189
|
+
when :DateTime
|
190
|
+
DateTime.parse(value)
|
191
|
+
when :Date
|
192
|
+
Date.parse(value)
|
193
|
+
when :String
|
194
|
+
value.to_s
|
195
|
+
when :Integer
|
196
|
+
value.to_i
|
197
|
+
when :Float
|
198
|
+
value.to_f
|
199
|
+
when :Boolean
|
200
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
201
|
+
true
|
202
|
+
else
|
203
|
+
false
|
204
|
+
end
|
205
|
+
when :Object
|
206
|
+
# generic object (usually a Hash), return directly
|
207
|
+
value
|
208
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
209
|
+
inner_type = Regexp.last_match[:inner_type]
|
210
|
+
value.map { |v| _deserialize(inner_type, v) }
|
211
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
212
|
+
k_type = Regexp.last_match[:k_type]
|
213
|
+
v_type = Regexp.last_match[:v_type]
|
214
|
+
{}.tap do |hash|
|
215
|
+
value.each do |k, v|
|
216
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
217
|
+
end
|
218
|
+
end
|
219
|
+
else # model
|
220
|
+
MailSlurpClient.const_get(type).build_from_hash(value)
|
221
|
+
end
|
222
|
+
end
|
223
|
+
|
224
|
+
# Returns the string representation of the object
|
225
|
+
# @return [String] String presentation of the object
|
226
|
+
def to_s
|
227
|
+
to_hash.to_s
|
228
|
+
end
|
229
|
+
|
230
|
+
# to_body is an alias to to_hash (backward compatibility)
|
231
|
+
# @return [Hash] Returns the object in the form of hash
|
232
|
+
def to_body
|
233
|
+
to_hash
|
234
|
+
end
|
235
|
+
|
236
|
+
# Returns the object in the form of hash
|
237
|
+
# @return [Hash] Returns the object in the form of hash
|
238
|
+
def to_hash
|
239
|
+
hash = {}
|
240
|
+
self.class.attribute_map.each_pair do |attr, param|
|
241
|
+
value = self.send(attr)
|
242
|
+
if value.nil?
|
243
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
244
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
245
|
+
end
|
246
|
+
|
247
|
+
hash[param] = _to_hash(value)
|
248
|
+
end
|
249
|
+
hash
|
250
|
+
end
|
251
|
+
|
252
|
+
# Outputs non-array value in the form of hash
|
253
|
+
# For object, use to_hash. Otherwise, just return the value
|
254
|
+
# @param [Object] value Any valid value
|
255
|
+
# @return [Hash] Returns the value in the form of hash
|
256
|
+
def _to_hash(value)
|
257
|
+
if value.is_a?(Array)
|
258
|
+
value.compact.map { |v| _to_hash(v) }
|
259
|
+
elsif value.is_a?(Hash)
|
260
|
+
{}.tap do |hash|
|
261
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
262
|
+
end
|
263
|
+
elsif value.respond_to? :to_hash
|
264
|
+
value.to_hash
|
265
|
+
else
|
266
|
+
value
|
267
|
+
end
|
268
|
+
end
|
269
|
+
end
|
270
|
+
end
|
@@ -13,6 +13,7 @@ OpenAPI Generator version: 4.3.1
|
|
13
13
|
require 'date'
|
14
14
|
|
15
15
|
module MailSlurpClient
|
16
|
+
# Missed email data
|
16
17
|
class MissedEmailProjection
|
17
18
|
attr_accessor :id
|
18
19
|
|
@@ -20,18 +21,18 @@ module MailSlurpClient
|
|
20
21
|
|
21
22
|
attr_accessor :subject
|
22
23
|
|
23
|
-
attr_accessor :user_id
|
24
|
-
|
25
24
|
attr_accessor :created_at
|
26
25
|
|
26
|
+
attr_accessor :user_id
|
27
|
+
|
27
28
|
# Attribute mapping from ruby-style variable name to JSON key.
|
28
29
|
def self.attribute_map
|
29
30
|
{
|
30
31
|
:'id' => :'id',
|
31
32
|
:'from' => :'from',
|
32
33
|
:'subject' => :'subject',
|
33
|
-
:'
|
34
|
-
:'
|
34
|
+
:'created_at' => :'createdAt',
|
35
|
+
:'user_id' => :'userId'
|
35
36
|
}
|
36
37
|
end
|
37
38
|
|
@@ -41,8 +42,8 @@ module MailSlurpClient
|
|
41
42
|
:'id' => :'String',
|
42
43
|
:'from' => :'String',
|
43
44
|
:'subject' => :'String',
|
44
|
-
:'
|
45
|
-
:'
|
45
|
+
:'created_at' => :'DateTime',
|
46
|
+
:'user_id' => :'String'
|
46
47
|
}
|
47
48
|
end
|
48
49
|
|
@@ -79,13 +80,13 @@ module MailSlurpClient
|
|
79
80
|
self.subject = attributes[:'subject']
|
80
81
|
end
|
81
82
|
|
82
|
-
if attributes.key?(:'user_id')
|
83
|
-
self.user_id = attributes[:'user_id']
|
84
|
-
end
|
85
|
-
|
86
83
|
if attributes.key?(:'created_at')
|
87
84
|
self.created_at = attributes[:'created_at']
|
88
85
|
end
|
86
|
+
|
87
|
+
if attributes.key?(:'user_id')
|
88
|
+
self.user_id = attributes[:'user_id']
|
89
|
+
end
|
89
90
|
end
|
90
91
|
|
91
92
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -119,8 +120,8 @@ module MailSlurpClient
|
|
119
120
|
id == o.id &&
|
120
121
|
from == o.from &&
|
121
122
|
subject == o.subject &&
|
122
|
-
|
123
|
-
|
123
|
+
created_at == o.created_at &&
|
124
|
+
user_id == o.user_id
|
124
125
|
end
|
125
126
|
|
126
127
|
# @see the `==` method
|
@@ -132,7 +133,7 @@ module MailSlurpClient
|
|
132
133
|
# Calculates hash code according to all attributes.
|
133
134
|
# @return [Integer] Hash code
|
134
135
|
def hash
|
135
|
-
[id, from, subject,
|
136
|
+
[id, from, subject, created_at, user_id].hash
|
136
137
|
end
|
137
138
|
|
138
139
|
# Builds the object from hash
|
@@ -13,6 +13,7 @@ OpenAPI Generator version: 4.3.1
|
|
13
13
|
require 'date'
|
14
14
|
|
15
15
|
module MailSlurpClient
|
16
|
+
# Organization team inbox
|
16
17
|
class OrganizationInboxProjection
|
17
18
|
# ID of the inbox. The ID is a UUID-V4 format string. Use the inboxId for calls to Inbox and Email Controller endpoints. See the emailAddress property for the email address or the inbox. To get emails in an inbox use the WaitFor and Inbox Controller methods `waitForLatestEmail` and `getEmails` methods respectively. Inboxes can be used with aliases to forward emails automatically.
|
18
19
|
attr_accessor :id
|
@@ -41,6 +42,9 @@ module MailSlurpClient
|
|
41
42
|
# Is the inbox readOnly for the caller. Read only means can not be deleted or modified. This flag is present when using team accounts and shared inboxes.
|
42
43
|
attr_accessor :read_only
|
43
44
|
|
45
|
+
# Virtual inbox can receive email but will not send emails to real recipients. Will save sent email record but never send an actual email. Perfect for testing mail server actions.
|
46
|
+
attr_accessor :virtual_inbox
|
47
|
+
|
44
48
|
class EnumAttributeValidator
|
45
49
|
attr_reader :datatype
|
46
50
|
attr_reader :allowable_values
|
@@ -74,7 +78,8 @@ module MailSlurpClient
|
|
74
78
|
:'tags' => :'tags',
|
75
79
|
:'team_access' => :'teamAccess',
|
76
80
|
:'inbox_type' => :'inboxType',
|
77
|
-
:'read_only' => :'readOnly'
|
81
|
+
:'read_only' => :'readOnly',
|
82
|
+
:'virtual_inbox' => :'virtualInbox'
|
78
83
|
}
|
79
84
|
end
|
80
85
|
|
@@ -89,7 +94,8 @@ module MailSlurpClient
|
|
89
94
|
:'tags' => :'Array<String>',
|
90
95
|
:'team_access' => :'Boolean',
|
91
96
|
:'inbox_type' => :'String',
|
92
|
-
:'read_only' => :'Boolean'
|
97
|
+
:'read_only' => :'Boolean',
|
98
|
+
:'virtual_inbox' => :'Boolean'
|
93
99
|
}
|
94
100
|
end
|
95
101
|
|
@@ -151,6 +157,10 @@ module MailSlurpClient
|
|
151
157
|
if attributes.key?(:'read_only')
|
152
158
|
self.read_only = attributes[:'read_only']
|
153
159
|
end
|
160
|
+
|
161
|
+
if attributes.key?(:'virtual_inbox')
|
162
|
+
self.virtual_inbox = attributes[:'virtual_inbox']
|
163
|
+
end
|
154
164
|
end
|
155
165
|
|
156
166
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -216,7 +226,8 @@ module MailSlurpClient
|
|
216
226
|
tags == o.tags &&
|
217
227
|
team_access == o.team_access &&
|
218
228
|
inbox_type == o.inbox_type &&
|
219
|
-
read_only == o.read_only
|
229
|
+
read_only == o.read_only &&
|
230
|
+
virtual_inbox == o.virtual_inbox
|
220
231
|
end
|
221
232
|
|
222
233
|
# @see the `==` method
|
@@ -228,7 +239,7 @@ module MailSlurpClient
|
|
228
239
|
# Calculates hash code according to all attributes.
|
229
240
|
# @return [Integer] Hash code
|
230
241
|
def hash
|
231
|
-
[id, created_at, name, email_address, favourite, tags, team_access, inbox_type, read_only].hash
|
242
|
+
[id, created_at, name, email_address, favourite, tags, team_access, inbox_type, read_only, virtual_inbox].hash
|
232
243
|
end
|
233
244
|
|
234
245
|
# Builds the object from hash
|
@@ -39,6 +39,8 @@ module MailSlurpClient
|
|
39
39
|
# Optionally use inbox name as display name for sender email address
|
40
40
|
attr_accessor :use_inbox_name
|
41
41
|
|
42
|
+
attr_accessor :html
|
43
|
+
|
42
44
|
class EnumAttributeValidator
|
43
45
|
attr_reader :datatype
|
44
46
|
attr_reader :allowable_values
|
@@ -71,7 +73,8 @@ module MailSlurpClient
|
|
71
73
|
:'template_variables' => :'templateVariables',
|
72
74
|
:'template' => :'template',
|
73
75
|
:'send_strategy' => :'sendStrategy',
|
74
|
-
:'use_inbox_name' => :'useInboxName'
|
76
|
+
:'use_inbox_name' => :'useInboxName',
|
77
|
+
:'html' => :'html'
|
75
78
|
}
|
76
79
|
end
|
77
80
|
|
@@ -85,7 +88,8 @@ module MailSlurpClient
|
|
85
88
|
:'template_variables' => :'Hash<String, Object>',
|
86
89
|
:'template' => :'String',
|
87
90
|
:'send_strategy' => :'String',
|
88
|
-
:'use_inbox_name' => :'Boolean'
|
91
|
+
:'use_inbox_name' => :'Boolean',
|
92
|
+
:'html' => :'Boolean'
|
89
93
|
}
|
90
94
|
end
|
91
95
|
|
@@ -145,6 +149,10 @@ module MailSlurpClient
|
|
145
149
|
if attributes.key?(:'use_inbox_name')
|
146
150
|
self.use_inbox_name = attributes[:'use_inbox_name']
|
147
151
|
end
|
152
|
+
|
153
|
+
if attributes.key?(:'html')
|
154
|
+
self.html = attributes[:'html']
|
155
|
+
end
|
148
156
|
end
|
149
157
|
|
150
158
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -194,7 +202,8 @@ module MailSlurpClient
|
|
194
202
|
template_variables == o.template_variables &&
|
195
203
|
template == o.template &&
|
196
204
|
send_strategy == o.send_strategy &&
|
197
|
-
use_inbox_name == o.use_inbox_name
|
205
|
+
use_inbox_name == o.use_inbox_name &&
|
206
|
+
html == o.html
|
198
207
|
end
|
199
208
|
|
200
209
|
# @see the `==` method
|
@@ -206,7 +215,7 @@ module MailSlurpClient
|
|
206
215
|
# Calculates hash code according to all attributes.
|
207
216
|
# @return [Integer] Hash code
|
208
217
|
def hash
|
209
|
-
[body, is_html, charset, attachments, template_variables, template, send_strategy, use_inbox_name].hash
|
218
|
+
[body, is_html, charset, attachments, template_variables, template, send_strategy, use_inbox_name, html].hash
|
210
219
|
end
|
211
220
|
|
212
221
|
# Builds the object from hash
|
@@ -45,6 +45,8 @@ module MailSlurpClient
|
|
45
45
|
# Optionally use inbox name as display name for sender email address
|
46
46
|
attr_accessor :use_inbox_name
|
47
47
|
|
48
|
+
attr_accessor :html
|
49
|
+
|
48
50
|
class EnumAttributeValidator
|
49
51
|
attr_reader :datatype
|
50
52
|
attr_reader :allowable_values
|
@@ -79,7 +81,8 @@ module MailSlurpClient
|
|
79
81
|
:'template_variables' => :'templateVariables',
|
80
82
|
:'template' => :'template',
|
81
83
|
:'send_strategy' => :'sendStrategy',
|
82
|
-
:'use_inbox_name' => :'useInboxName'
|
84
|
+
:'use_inbox_name' => :'useInboxName',
|
85
|
+
:'html' => :'html'
|
83
86
|
}
|
84
87
|
end
|
85
88
|
|
@@ -95,7 +98,8 @@ module MailSlurpClient
|
|
95
98
|
:'template_variables' => :'Hash<String, Object>',
|
96
99
|
:'template' => :'String',
|
97
100
|
:'send_strategy' => :'String',
|
98
|
-
:'use_inbox_name' => :'Boolean'
|
101
|
+
:'use_inbox_name' => :'Boolean',
|
102
|
+
:'html' => :'Boolean'
|
99
103
|
}
|
100
104
|
end
|
101
105
|
|
@@ -163,6 +167,10 @@ module MailSlurpClient
|
|
163
167
|
if attributes.key?(:'use_inbox_name')
|
164
168
|
self.use_inbox_name = attributes[:'use_inbox_name']
|
165
169
|
end
|
170
|
+
|
171
|
+
if attributes.key?(:'html')
|
172
|
+
self.html = attributes[:'html']
|
173
|
+
end
|
166
174
|
end
|
167
175
|
|
168
176
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -214,7 +222,8 @@ module MailSlurpClient
|
|
214
222
|
template_variables == o.template_variables &&
|
215
223
|
template == o.template &&
|
216
224
|
send_strategy == o.send_strategy &&
|
217
|
-
use_inbox_name == o.use_inbox_name
|
225
|
+
use_inbox_name == o.use_inbox_name &&
|
226
|
+
html == o.html
|
218
227
|
end
|
219
228
|
|
220
229
|
# @see the `==` method
|
@@ -226,7 +235,7 @@ module MailSlurpClient
|
|
226
235
|
# Calculates hash code according to all attributes.
|
227
236
|
# @return [Integer] Hash code
|
228
237
|
def hash
|
229
|
-
[body, is_html, from, reply_to, charset, attachments, template_variables, template, send_strategy, use_inbox_name].hash
|
238
|
+
[body, is_html, from, reply_to, charset, attachments, template_variables, template, send_strategy, use_inbox_name, html].hash
|
230
239
|
end
|
231
240
|
|
232
241
|
# Builds the object from hash
|
@@ -55,6 +55,10 @@ module MailSlurpClient
|
|
55
55
|
|
56
56
|
attr_accessor :message_id
|
57
57
|
|
58
|
+
attr_accessor :virtual_send
|
59
|
+
|
60
|
+
attr_accessor :html
|
61
|
+
|
58
62
|
# Attribute mapping from ruby-style variable name to JSON key.
|
59
63
|
def self.attribute_map
|
60
64
|
{
|
@@ -74,7 +78,9 @@ module MailSlurpClient
|
|
74
78
|
:'is_html' => :'isHTML',
|
75
79
|
:'sent_at' => :'sentAt',
|
76
80
|
:'pixel_ids' => :'pixelIds',
|
77
|
-
:'message_id' => :'messageId'
|
81
|
+
:'message_id' => :'messageId',
|
82
|
+
:'virtual_send' => :'virtualSend',
|
83
|
+
:'html' => :'html'
|
78
84
|
}
|
79
85
|
end
|
80
86
|
|
@@ -97,7 +103,9 @@ module MailSlurpClient
|
|
97
103
|
:'is_html' => :'Boolean',
|
98
104
|
:'sent_at' => :'DateTime',
|
99
105
|
:'pixel_ids' => :'Array<String>',
|
100
|
-
:'message_id' => :'String'
|
106
|
+
:'message_id' => :'String',
|
107
|
+
:'virtual_send' => :'Boolean',
|
108
|
+
:'html' => :'Boolean'
|
101
109
|
}
|
102
110
|
end
|
103
111
|
|
@@ -199,6 +207,14 @@ module MailSlurpClient
|
|
199
207
|
if attributes.key?(:'message_id')
|
200
208
|
self.message_id = attributes[:'message_id']
|
201
209
|
end
|
210
|
+
|
211
|
+
if attributes.key?(:'virtual_send')
|
212
|
+
self.virtual_send = attributes[:'virtual_send']
|
213
|
+
end
|
214
|
+
|
215
|
+
if attributes.key?(:'html')
|
216
|
+
self.html = attributes[:'html']
|
217
|
+
end
|
202
218
|
end
|
203
219
|
|
204
220
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -255,7 +271,9 @@ module MailSlurpClient
|
|
255
271
|
is_html == o.is_html &&
|
256
272
|
sent_at == o.sent_at &&
|
257
273
|
pixel_ids == o.pixel_ids &&
|
258
|
-
message_id == o.message_id
|
274
|
+
message_id == o.message_id &&
|
275
|
+
virtual_send == o.virtual_send &&
|
276
|
+
html == o.html
|
259
277
|
end
|
260
278
|
|
261
279
|
# @see the `==` method
|
@@ -267,7 +285,7 @@ module MailSlurpClient
|
|
267
285
|
# Calculates hash code according to all attributes.
|
268
286
|
# @return [Integer] Hash code
|
269
287
|
def hash
|
270
|
-
[id, user_id, inbox_id, to, from, reply_to, cc, bcc, attachments, subject, body_md5_hash, body, charset, is_html, sent_at, pixel_ids, message_id].hash
|
288
|
+
[id, user_id, inbox_id, to, from, reply_to, cc, bcc, attachments, subject, body_md5_hash, body, charset, is_html, sent_at, pixel_ids, message_id, virtual_send, html].hash
|
271
289
|
end
|
272
290
|
|
273
291
|
# Builds the object from hash
|