mailslurp_client 16.1.5 → 16.2.0
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/lib/mailslurp_client/api/mfa_controller_api.rb +342 -0
- data/lib/mailslurp_client/models/alias_thread_projection.rb +11 -11
- data/lib/mailslurp_client/models/bounce_projection.rb +11 -11
- data/lib/mailslurp_client/models/create_totp_device_otp_auth_url_options.rb +271 -0
- data/lib/mailslurp_client/models/email.rb +13 -13
- data/lib/mailslurp_client/models/email_projection.rb +20 -20
- data/lib/mailslurp_client/models/email_thread_projection.rb +11 -11
- data/lib/mailslurp_client/models/missed_email_projection.rb +11 -11
- data/lib/mailslurp_client/models/pageable_object.rb +10 -10
- data/lib/mailslurp_client/models/phone_message_thread_projection.rb +15 -15
- data/lib/mailslurp_client/models/sent_email_projection.rb +42 -42
- data/lib/mailslurp_client/models/totp_device_code_dto.rb +221 -0
- data/lib/mailslurp_client/models/totp_device_dto.rb +299 -0
- data/lib/mailslurp_client/models/totp_device_optional_dto.rb +206 -0
- data/lib/mailslurp_client/models/unknown_missed_email_projection.rb +10 -10
- data/lib/mailslurp_client/version.rb +1 -1
- data/lib/mailslurp_client.rb +5 -0
- metadata +7 -2
@@ -0,0 +1,299 @@
|
|
1
|
+
=begin
|
2
|
+
#MailSlurp API
|
3
|
+
|
4
|
+
#MailSlurp is an API for sending and receiving emails and SMS from dynamically allocated email addresses and phone numbers. 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
|
+
class TotpDeviceDto
|
17
|
+
attr_accessor :id
|
18
|
+
|
19
|
+
attr_accessor :name
|
20
|
+
|
21
|
+
attr_accessor :username
|
22
|
+
|
23
|
+
attr_accessor :issuer
|
24
|
+
|
25
|
+
attr_accessor :digits
|
26
|
+
|
27
|
+
attr_accessor :period
|
28
|
+
|
29
|
+
attr_accessor :algorithm
|
30
|
+
|
31
|
+
attr_accessor :created_at
|
32
|
+
|
33
|
+
attr_accessor :updated_at
|
34
|
+
|
35
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
36
|
+
def self.attribute_map
|
37
|
+
{
|
38
|
+
:'id' => :'id',
|
39
|
+
:'name' => :'name',
|
40
|
+
:'username' => :'username',
|
41
|
+
:'issuer' => :'issuer',
|
42
|
+
:'digits' => :'digits',
|
43
|
+
:'period' => :'period',
|
44
|
+
:'algorithm' => :'algorithm',
|
45
|
+
:'created_at' => :'createdAt',
|
46
|
+
:'updated_at' => :'updatedAt'
|
47
|
+
}
|
48
|
+
end
|
49
|
+
|
50
|
+
# Attribute type mapping.
|
51
|
+
def self.openapi_types
|
52
|
+
{
|
53
|
+
:'id' => :'String',
|
54
|
+
:'name' => :'String',
|
55
|
+
:'username' => :'String',
|
56
|
+
:'issuer' => :'String',
|
57
|
+
:'digits' => :'Integer',
|
58
|
+
:'period' => :'Integer',
|
59
|
+
:'algorithm' => :'String',
|
60
|
+
:'created_at' => :'DateTime',
|
61
|
+
:'updated_at' => :'DateTime'
|
62
|
+
}
|
63
|
+
end
|
64
|
+
|
65
|
+
# List of attributes with nullable: true
|
66
|
+
def self.openapi_nullable
|
67
|
+
Set.new([
|
68
|
+
:'name',
|
69
|
+
:'username',
|
70
|
+
:'issuer',
|
71
|
+
:'digits',
|
72
|
+
:'period',
|
73
|
+
:'algorithm',
|
74
|
+
])
|
75
|
+
end
|
76
|
+
|
77
|
+
# Initializes the object
|
78
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
79
|
+
def initialize(attributes = {})
|
80
|
+
if (!attributes.is_a?(Hash))
|
81
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `MailSlurpClient::TotpDeviceDto` initialize method"
|
82
|
+
end
|
83
|
+
|
84
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
85
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
86
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
87
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `MailSlurpClient::TotpDeviceDto`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
88
|
+
end
|
89
|
+
h[k.to_sym] = v
|
90
|
+
}
|
91
|
+
|
92
|
+
if attributes.key?(:'id')
|
93
|
+
self.id = attributes[:'id']
|
94
|
+
end
|
95
|
+
|
96
|
+
if attributes.key?(:'name')
|
97
|
+
self.name = attributes[:'name']
|
98
|
+
end
|
99
|
+
|
100
|
+
if attributes.key?(:'username')
|
101
|
+
self.username = attributes[:'username']
|
102
|
+
end
|
103
|
+
|
104
|
+
if attributes.key?(:'issuer')
|
105
|
+
self.issuer = attributes[:'issuer']
|
106
|
+
end
|
107
|
+
|
108
|
+
if attributes.key?(:'digits')
|
109
|
+
self.digits = attributes[:'digits']
|
110
|
+
end
|
111
|
+
|
112
|
+
if attributes.key?(:'period')
|
113
|
+
self.period = attributes[:'period']
|
114
|
+
end
|
115
|
+
|
116
|
+
if attributes.key?(:'algorithm')
|
117
|
+
self.algorithm = attributes[:'algorithm']
|
118
|
+
end
|
119
|
+
|
120
|
+
if attributes.key?(:'created_at')
|
121
|
+
self.created_at = attributes[:'created_at']
|
122
|
+
end
|
123
|
+
|
124
|
+
if attributes.key?(:'updated_at')
|
125
|
+
self.updated_at = attributes[:'updated_at']
|
126
|
+
end
|
127
|
+
end
|
128
|
+
|
129
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
130
|
+
# @return Array for valid properties with the reasons
|
131
|
+
def list_invalid_properties
|
132
|
+
invalid_properties = Array.new
|
133
|
+
if @id.nil?
|
134
|
+
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
135
|
+
end
|
136
|
+
|
137
|
+
if @created_at.nil?
|
138
|
+
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
139
|
+
end
|
140
|
+
|
141
|
+
if @updated_at.nil?
|
142
|
+
invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
|
143
|
+
end
|
144
|
+
|
145
|
+
invalid_properties
|
146
|
+
end
|
147
|
+
|
148
|
+
# Check to see if the all the properties in the model are valid
|
149
|
+
# @return true if the model is valid
|
150
|
+
def valid?
|
151
|
+
return false if @id.nil?
|
152
|
+
return false if @created_at.nil?
|
153
|
+
return false if @updated_at.nil?
|
154
|
+
true
|
155
|
+
end
|
156
|
+
|
157
|
+
# Checks equality by comparing each attribute.
|
158
|
+
# @param [Object] Object to be compared
|
159
|
+
def ==(o)
|
160
|
+
return true if self.equal?(o)
|
161
|
+
self.class == o.class &&
|
162
|
+
id == o.id &&
|
163
|
+
name == o.name &&
|
164
|
+
username == o.username &&
|
165
|
+
issuer == o.issuer &&
|
166
|
+
digits == o.digits &&
|
167
|
+
period == o.period &&
|
168
|
+
algorithm == o.algorithm &&
|
169
|
+
created_at == o.created_at &&
|
170
|
+
updated_at == o.updated_at
|
171
|
+
end
|
172
|
+
|
173
|
+
# @see the `==` method
|
174
|
+
# @param [Object] Object to be compared
|
175
|
+
def eql?(o)
|
176
|
+
self == o
|
177
|
+
end
|
178
|
+
|
179
|
+
# Calculates hash code according to all attributes.
|
180
|
+
# @return [Integer] Hash code
|
181
|
+
def hash
|
182
|
+
[id, name, username, issuer, digits, period, algorithm, created_at, updated_at].hash
|
183
|
+
end
|
184
|
+
|
185
|
+
# Builds the object from hash
|
186
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
187
|
+
# @return [Object] Returns the model itself
|
188
|
+
def self.build_from_hash(attributes)
|
189
|
+
new.build_from_hash(attributes)
|
190
|
+
end
|
191
|
+
|
192
|
+
# Builds the object from hash
|
193
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
194
|
+
# @return [Object] Returns the model itself
|
195
|
+
def build_from_hash(attributes)
|
196
|
+
return nil unless attributes.is_a?(Hash)
|
197
|
+
self.class.openapi_types.each_pair do |key, type|
|
198
|
+
if type =~ /\AArray<(.*)>/i
|
199
|
+
# check to ensure the input is an array given that the attribute
|
200
|
+
# is documented as an array but the input is not
|
201
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
202
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
203
|
+
end
|
204
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
205
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
206
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
207
|
+
end
|
208
|
+
|
209
|
+
self
|
210
|
+
end
|
211
|
+
|
212
|
+
# Deserializes the data based on type
|
213
|
+
# @param string type Data type
|
214
|
+
# @param string value Value to be deserialized
|
215
|
+
# @return [Object] Deserialized data
|
216
|
+
def _deserialize(type, value)
|
217
|
+
case type.to_sym
|
218
|
+
when :DateTime
|
219
|
+
DateTime.parse(value)
|
220
|
+
when :Date
|
221
|
+
Date.parse(value)
|
222
|
+
when :String
|
223
|
+
value.to_s
|
224
|
+
when :Integer
|
225
|
+
value.to_i
|
226
|
+
when :Float
|
227
|
+
value.to_f
|
228
|
+
when :Boolean
|
229
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
230
|
+
true
|
231
|
+
else
|
232
|
+
false
|
233
|
+
end
|
234
|
+
when :Object
|
235
|
+
# generic object (usually a Hash), return directly
|
236
|
+
value
|
237
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
238
|
+
inner_type = Regexp.last_match[:inner_type]
|
239
|
+
value.map { |v| _deserialize(inner_type, v) }
|
240
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
241
|
+
k_type = Regexp.last_match[:k_type]
|
242
|
+
v_type = Regexp.last_match[:v_type]
|
243
|
+
{}.tap do |hash|
|
244
|
+
value.each do |k, v|
|
245
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
246
|
+
end
|
247
|
+
end
|
248
|
+
else # model
|
249
|
+
MailSlurpClient.const_get(type).build_from_hash(value)
|
250
|
+
end
|
251
|
+
end
|
252
|
+
|
253
|
+
# Returns the string representation of the object
|
254
|
+
# @return [String] String presentation of the object
|
255
|
+
def to_s
|
256
|
+
to_hash.to_s
|
257
|
+
end
|
258
|
+
|
259
|
+
# to_body is an alias to to_hash (backward compatibility)
|
260
|
+
# @return [Hash] Returns the object in the form of hash
|
261
|
+
def to_body
|
262
|
+
to_hash
|
263
|
+
end
|
264
|
+
|
265
|
+
# Returns the object in the form of hash
|
266
|
+
# @return [Hash] Returns the object in the form of hash
|
267
|
+
def to_hash
|
268
|
+
hash = {}
|
269
|
+
self.class.attribute_map.each_pair do |attr, param|
|
270
|
+
value = self.send(attr)
|
271
|
+
if value.nil?
|
272
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
273
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
274
|
+
end
|
275
|
+
|
276
|
+
hash[param] = _to_hash(value)
|
277
|
+
end
|
278
|
+
hash
|
279
|
+
end
|
280
|
+
|
281
|
+
# Outputs non-array value in the form of hash
|
282
|
+
# For object, use to_hash. Otherwise, just return the value
|
283
|
+
# @param [Object] value Any valid value
|
284
|
+
# @return [Hash] Returns the value in the form of hash
|
285
|
+
def _to_hash(value)
|
286
|
+
if value.is_a?(Array)
|
287
|
+
value.compact.map { |v| _to_hash(v) }
|
288
|
+
elsif value.is_a?(Hash)
|
289
|
+
{}.tap do |hash|
|
290
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
291
|
+
end
|
292
|
+
elsif value.respond_to? :to_hash
|
293
|
+
value.to_hash
|
294
|
+
else
|
295
|
+
value
|
296
|
+
end
|
297
|
+
end
|
298
|
+
end
|
299
|
+
end
|
@@ -0,0 +1,206 @@
|
|
1
|
+
=begin
|
2
|
+
#MailSlurp API
|
3
|
+
|
4
|
+
#MailSlurp is an API for sending and receiving emails and SMS from dynamically allocated email addresses and phone numbers. 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
|
+
class TotpDeviceOptionalDto
|
17
|
+
attr_accessor :device
|
18
|
+
|
19
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
20
|
+
def self.attribute_map
|
21
|
+
{
|
22
|
+
:'device' => :'device'
|
23
|
+
}
|
24
|
+
end
|
25
|
+
|
26
|
+
# Attribute type mapping.
|
27
|
+
def self.openapi_types
|
28
|
+
{
|
29
|
+
:'device' => :'TotpDeviceDto'
|
30
|
+
}
|
31
|
+
end
|
32
|
+
|
33
|
+
# List of attributes with nullable: true
|
34
|
+
def self.openapi_nullable
|
35
|
+
Set.new([
|
36
|
+
])
|
37
|
+
end
|
38
|
+
|
39
|
+
# Initializes the object
|
40
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
41
|
+
def initialize(attributes = {})
|
42
|
+
if (!attributes.is_a?(Hash))
|
43
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `MailSlurpClient::TotpDeviceOptionalDto` initialize method"
|
44
|
+
end
|
45
|
+
|
46
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
47
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
48
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
49
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `MailSlurpClient::TotpDeviceOptionalDto`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
50
|
+
end
|
51
|
+
h[k.to_sym] = v
|
52
|
+
}
|
53
|
+
|
54
|
+
if attributes.key?(:'device')
|
55
|
+
self.device = attributes[:'device']
|
56
|
+
end
|
57
|
+
end
|
58
|
+
|
59
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
60
|
+
# @return Array for valid properties with the reasons
|
61
|
+
def list_invalid_properties
|
62
|
+
invalid_properties = Array.new
|
63
|
+
invalid_properties
|
64
|
+
end
|
65
|
+
|
66
|
+
# Check to see if the all the properties in the model are valid
|
67
|
+
# @return true if the model is valid
|
68
|
+
def valid?
|
69
|
+
true
|
70
|
+
end
|
71
|
+
|
72
|
+
# Checks equality by comparing each attribute.
|
73
|
+
# @param [Object] Object to be compared
|
74
|
+
def ==(o)
|
75
|
+
return true if self.equal?(o)
|
76
|
+
self.class == o.class &&
|
77
|
+
device == o.device
|
78
|
+
end
|
79
|
+
|
80
|
+
# @see the `==` method
|
81
|
+
# @param [Object] Object to be compared
|
82
|
+
def eql?(o)
|
83
|
+
self == o
|
84
|
+
end
|
85
|
+
|
86
|
+
# Calculates hash code according to all attributes.
|
87
|
+
# @return [Integer] Hash code
|
88
|
+
def hash
|
89
|
+
[device].hash
|
90
|
+
end
|
91
|
+
|
92
|
+
# Builds the object from hash
|
93
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
94
|
+
# @return [Object] Returns the model itself
|
95
|
+
def self.build_from_hash(attributes)
|
96
|
+
new.build_from_hash(attributes)
|
97
|
+
end
|
98
|
+
|
99
|
+
# Builds the object from hash
|
100
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
101
|
+
# @return [Object] Returns the model itself
|
102
|
+
def build_from_hash(attributes)
|
103
|
+
return nil unless attributes.is_a?(Hash)
|
104
|
+
self.class.openapi_types.each_pair do |key, type|
|
105
|
+
if type =~ /\AArray<(.*)>/i
|
106
|
+
# check to ensure the input is an array given that the attribute
|
107
|
+
# is documented as an array but the input is not
|
108
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
109
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
110
|
+
end
|
111
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
112
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
113
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
114
|
+
end
|
115
|
+
|
116
|
+
self
|
117
|
+
end
|
118
|
+
|
119
|
+
# Deserializes the data based on type
|
120
|
+
# @param string type Data type
|
121
|
+
# @param string value Value to be deserialized
|
122
|
+
# @return [Object] Deserialized data
|
123
|
+
def _deserialize(type, value)
|
124
|
+
case type.to_sym
|
125
|
+
when :DateTime
|
126
|
+
DateTime.parse(value)
|
127
|
+
when :Date
|
128
|
+
Date.parse(value)
|
129
|
+
when :String
|
130
|
+
value.to_s
|
131
|
+
when :Integer
|
132
|
+
value.to_i
|
133
|
+
when :Float
|
134
|
+
value.to_f
|
135
|
+
when :Boolean
|
136
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
137
|
+
true
|
138
|
+
else
|
139
|
+
false
|
140
|
+
end
|
141
|
+
when :Object
|
142
|
+
# generic object (usually a Hash), return directly
|
143
|
+
value
|
144
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
145
|
+
inner_type = Regexp.last_match[:inner_type]
|
146
|
+
value.map { |v| _deserialize(inner_type, v) }
|
147
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
148
|
+
k_type = Regexp.last_match[:k_type]
|
149
|
+
v_type = Regexp.last_match[:v_type]
|
150
|
+
{}.tap do |hash|
|
151
|
+
value.each do |k, v|
|
152
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
153
|
+
end
|
154
|
+
end
|
155
|
+
else # model
|
156
|
+
MailSlurpClient.const_get(type).build_from_hash(value)
|
157
|
+
end
|
158
|
+
end
|
159
|
+
|
160
|
+
# Returns the string representation of the object
|
161
|
+
# @return [String] String presentation of the object
|
162
|
+
def to_s
|
163
|
+
to_hash.to_s
|
164
|
+
end
|
165
|
+
|
166
|
+
# to_body is an alias to to_hash (backward compatibility)
|
167
|
+
# @return [Hash] Returns the object in the form of hash
|
168
|
+
def to_body
|
169
|
+
to_hash
|
170
|
+
end
|
171
|
+
|
172
|
+
# Returns the object in the form of hash
|
173
|
+
# @return [Hash] Returns the object in the form of hash
|
174
|
+
def to_hash
|
175
|
+
hash = {}
|
176
|
+
self.class.attribute_map.each_pair do |attr, param|
|
177
|
+
value = self.send(attr)
|
178
|
+
if value.nil?
|
179
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
180
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
181
|
+
end
|
182
|
+
|
183
|
+
hash[param] = _to_hash(value)
|
184
|
+
end
|
185
|
+
hash
|
186
|
+
end
|
187
|
+
|
188
|
+
# Outputs non-array value in the form of hash
|
189
|
+
# For object, use to_hash. Otherwise, just return the value
|
190
|
+
# @param [Object] value Any valid value
|
191
|
+
# @return [Hash] Returns the value in the form of hash
|
192
|
+
def _to_hash(value)
|
193
|
+
if value.is_a?(Array)
|
194
|
+
value.compact.map { |v| _to_hash(v) }
|
195
|
+
elsif value.is_a?(Hash)
|
196
|
+
{}.tap do |hash|
|
197
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
198
|
+
end
|
199
|
+
elsif value.respond_to? :to_hash
|
200
|
+
value.to_hash
|
201
|
+
else
|
202
|
+
value
|
203
|
+
end
|
204
|
+
end
|
205
|
+
end
|
206
|
+
end
|
@@ -15,12 +15,12 @@ require 'date'
|
|
15
15
|
module MailSlurpClient
|
16
16
|
# Unknown missed email projection
|
17
17
|
class UnknownMissedEmailProjection
|
18
|
+
attr_accessor :subject
|
19
|
+
|
18
20
|
attr_accessor :created_at
|
19
21
|
|
20
22
|
attr_accessor :to
|
21
23
|
|
22
|
-
attr_accessor :subject
|
23
|
-
|
24
24
|
attr_accessor :id
|
25
25
|
|
26
26
|
attr_accessor :from
|
@@ -28,9 +28,9 @@ module MailSlurpClient
|
|
28
28
|
# Attribute mapping from ruby-style variable name to JSON key.
|
29
29
|
def self.attribute_map
|
30
30
|
{
|
31
|
+
:'subject' => :'subject',
|
31
32
|
:'created_at' => :'createdAt',
|
32
33
|
:'to' => :'to',
|
33
|
-
:'subject' => :'subject',
|
34
34
|
:'id' => :'id',
|
35
35
|
:'from' => :'from'
|
36
36
|
}
|
@@ -39,9 +39,9 @@ module MailSlurpClient
|
|
39
39
|
# Attribute type mapping.
|
40
40
|
def self.openapi_types
|
41
41
|
{
|
42
|
+
:'subject' => :'String',
|
42
43
|
:'created_at' => :'DateTime',
|
43
44
|
:'to' => :'Array<String>',
|
44
|
-
:'subject' => :'String',
|
45
45
|
:'id' => :'String',
|
46
46
|
:'from' => :'String'
|
47
47
|
}
|
@@ -68,6 +68,10 @@ module MailSlurpClient
|
|
68
68
|
h[k.to_sym] = v
|
69
69
|
}
|
70
70
|
|
71
|
+
if attributes.key?(:'subject')
|
72
|
+
self.subject = attributes[:'subject']
|
73
|
+
end
|
74
|
+
|
71
75
|
if attributes.key?(:'created_at')
|
72
76
|
self.created_at = attributes[:'created_at']
|
73
77
|
end
|
@@ -78,10 +82,6 @@ module MailSlurpClient
|
|
78
82
|
end
|
79
83
|
end
|
80
84
|
|
81
|
-
if attributes.key?(:'subject')
|
82
|
-
self.subject = attributes[:'subject']
|
83
|
-
end
|
84
|
-
|
85
85
|
if attributes.key?(:'id')
|
86
86
|
self.id = attributes[:'id']
|
87
87
|
end
|
@@ -119,9 +119,9 @@ module MailSlurpClient
|
|
119
119
|
def ==(o)
|
120
120
|
return true if self.equal?(o)
|
121
121
|
self.class == o.class &&
|
122
|
+
subject == o.subject &&
|
122
123
|
created_at == o.created_at &&
|
123
124
|
to == o.to &&
|
124
|
-
subject == o.subject &&
|
125
125
|
id == o.id &&
|
126
126
|
from == o.from
|
127
127
|
end
|
@@ -135,7 +135,7 @@ module MailSlurpClient
|
|
135
135
|
# Calculates hash code according to all attributes.
|
136
136
|
# @return [Integer] Hash code
|
137
137
|
def hash
|
138
|
-
[created_at, to,
|
138
|
+
[subject, created_at, to, id, from].hash
|
139
139
|
end
|
140
140
|
|
141
141
|
# Builds the object from hash
|
data/lib/mailslurp_client.rb
CHANGED
@@ -85,6 +85,7 @@ require 'mailslurp_client/models/create_phone_number_options'
|
|
85
85
|
require 'mailslurp_client/models/create_portal_options'
|
86
86
|
require 'mailslurp_client/models/create_portal_user_options'
|
87
87
|
require 'mailslurp_client/models/create_template_options'
|
88
|
+
require 'mailslurp_client/models/create_totp_device_otp_auth_url_options'
|
88
89
|
require 'mailslurp_client/models/create_tracking_pixel_options'
|
89
90
|
require 'mailslurp_client/models/create_webhook_options'
|
90
91
|
require 'mailslurp_client/models/dns_lookup_options'
|
@@ -346,6 +347,9 @@ require 'mailslurp_client/models/test_inbox_ruleset_sending_result'
|
|
346
347
|
require 'mailslurp_client/models/test_new_inbox_forwarder_options'
|
347
348
|
require 'mailslurp_client/models/test_new_inbox_ruleset_options'
|
348
349
|
require 'mailslurp_client/models/test_phone_number_options'
|
350
|
+
require 'mailslurp_client/models/totp_device_code_dto'
|
351
|
+
require 'mailslurp_client/models/totp_device_dto'
|
352
|
+
require 'mailslurp_client/models/totp_device_optional_dto'
|
349
353
|
require 'mailslurp_client/models/tracking_pixel_dto'
|
350
354
|
require 'mailslurp_client/models/tracking_pixel_projection'
|
351
355
|
require 'mailslurp_client/models/unknown_missed_email_projection'
|
@@ -416,6 +420,7 @@ require 'mailslurp_client/api/inbox_controller_api'
|
|
416
420
|
require 'mailslurp_client/api/inbox_forwarder_controller_api'
|
417
421
|
require 'mailslurp_client/api/inbox_replier_controller_api'
|
418
422
|
require 'mailslurp_client/api/inbox_ruleset_controller_api'
|
423
|
+
require 'mailslurp_client/api/mfa_controller_api'
|
419
424
|
require 'mailslurp_client/api/mail_server_controller_api'
|
420
425
|
require 'mailslurp_client/api/missed_email_controller_api'
|
421
426
|
require 'mailslurp_client/api/o_auth_connection_api'
|
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: 16.
|
4
|
+
version: 16.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- mailslurp
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-06-
|
11
|
+
date: 2025-06-09 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
|
@@ -46,6 +46,7 @@ files:
|
|
46
46
|
- lib/mailslurp_client/api/inbox_replier_controller_api.rb
|
47
47
|
- lib/mailslurp_client/api/inbox_ruleset_controller_api.rb
|
48
48
|
- lib/mailslurp_client/api/mail_server_controller_api.rb
|
49
|
+
- lib/mailslurp_client/api/mfa_controller_api.rb
|
49
50
|
- lib/mailslurp_client/api/missed_email_controller_api.rb
|
50
51
|
- lib/mailslurp_client/api/o_auth_connection_api.rb
|
51
52
|
- lib/mailslurp_client/api/phone_controller_api.rb
|
@@ -128,6 +129,7 @@ files:
|
|
128
129
|
- lib/mailslurp_client/models/create_portal_options.rb
|
129
130
|
- lib/mailslurp_client/models/create_portal_user_options.rb
|
130
131
|
- lib/mailslurp_client/models/create_template_options.rb
|
132
|
+
- lib/mailslurp_client/models/create_totp_device_otp_auth_url_options.rb
|
131
133
|
- lib/mailslurp_client/models/create_tracking_pixel_options.rb
|
132
134
|
- lib/mailslurp_client/models/create_webhook_options.rb
|
133
135
|
- lib/mailslurp_client/models/delivery_status_dto.rb
|
@@ -389,6 +391,9 @@ files:
|
|
389
391
|
- lib/mailslurp_client/models/test_new_inbox_forwarder_options.rb
|
390
392
|
- lib/mailslurp_client/models/test_new_inbox_ruleset_options.rb
|
391
393
|
- lib/mailslurp_client/models/test_phone_number_options.rb
|
394
|
+
- lib/mailslurp_client/models/totp_device_code_dto.rb
|
395
|
+
- lib/mailslurp_client/models/totp_device_dto.rb
|
396
|
+
- lib/mailslurp_client/models/totp_device_optional_dto.rb
|
392
397
|
- lib/mailslurp_client/models/tracking_pixel_dto.rb
|
393
398
|
- lib/mailslurp_client/models/tracking_pixel_projection.rb
|
394
399
|
- lib/mailslurp_client/models/unknown_missed_email_projection.rb
|