mailslurp_client 16.1.3 → 16.1.5
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/ai_controller_api.rb +813 -6
- data/lib/mailslurp_client/models/ai_tranform_create_options.rb +237 -0
- data/lib/mailslurp_client/models/ai_transform_dto.rb +251 -0
- data/lib/mailslurp_client/models/ai_transform_mapping_dto.rb +310 -0
- data/lib/mailslurp_client/models/ai_transform_mapping_projection.rb +352 -0
- data/lib/mailslurp_client/models/ai_transform_projection.rb +251 -0
- data/lib/mailslurp_client/models/ai_transform_result_dto.rb +353 -0
- data/lib/mailslurp_client/models/ai_transform_result_projection.rb +324 -0
- data/lib/mailslurp_client/models/alias_projection.rb +15 -15
- data/lib/mailslurp_client/models/alias_thread_projection.rb +16 -16
- data/lib/mailslurp_client/models/attachment_projection.rb +10 -10
- data/lib/mailslurp_client/models/connector_projection.rb +15 -15
- data/lib/mailslurp_client/models/create_ai_transformer_mapping_options.rb +338 -0
- data/lib/mailslurp_client/models/create_webhook_options.rb +12 -1
- data/lib/mailslurp_client/models/email_projection.rb +10 -10
- data/lib/mailslurp_client/models/email_thread_projection.rb +36 -36
- data/lib/mailslurp_client/models/generate_structured_content_attachment_options.rb +27 -9
- data/lib/mailslurp_client/models/generate_structured_content_email_options.rb +19 -11
- data/lib/mailslurp_client/models/generate_structured_content_sms_options.rb +244 -0
- data/lib/mailslurp_client/models/guest_portal_user_projection.rb +10 -10
- data/lib/mailslurp_client/models/inbox_forwarder_event_projection.rb +11 -11
- data/lib/mailslurp_client/models/inbox_replier_event_projection.rb +11 -11
- data/lib/mailslurp_client/models/page_ai_transform_mapping_projection.rb +309 -0
- data/lib/mailslurp_client/models/page_ai_transform_projection.rb +309 -0
- data/lib/mailslurp_client/models/page_ai_transform_result_projection.rb +309 -0
- data/lib/mailslurp_client/models/page_alias.rb +15 -15
- data/lib/mailslurp_client/models/page_alias_thread_projection.rb +15 -15
- data/lib/mailslurp_client/models/page_attachment_entity.rb +15 -15
- data/lib/mailslurp_client/models/page_bounced_email.rb +15 -15
- data/lib/mailslurp_client/models/page_bounced_recipients.rb +15 -15
- data/lib/mailslurp_client/models/page_complaint.rb +15 -15
- data/lib/mailslurp_client/models/page_connector.rb +15 -15
- data/lib/mailslurp_client/models/page_connector_events.rb +15 -15
- data/lib/mailslurp_client/models/page_contact_projection.rb +15 -15
- data/lib/mailslurp_client/models/page_delivery_status.rb +15 -15
- data/lib/mailslurp_client/models/page_email_preview.rb +15 -15
- data/lib/mailslurp_client/models/page_email_projection.rb +15 -15
- data/lib/mailslurp_client/models/page_email_thread_projection.rb +15 -15
- data/lib/mailslurp_client/models/page_email_validation_request.rb +15 -15
- data/lib/mailslurp_client/models/page_entity_automation_items.rb +15 -15
- data/lib/mailslurp_client/models/page_entity_event_items.rb +15 -15
- data/lib/mailslurp_client/models/page_entity_favourite_items.rb +15 -15
- data/lib/mailslurp_client/models/page_expired_inbox_record_projection.rb +15 -15
- data/lib/mailslurp_client/models/page_group_projection.rb +15 -15
- data/lib/mailslurp_client/models/page_guest_portal_users.rb +15 -15
- data/lib/mailslurp_client/models/page_inbox_forwarder_dto.rb +15 -15
- data/lib/mailslurp_client/models/page_inbox_forwarder_events.rb +15 -15
- data/lib/mailslurp_client/models/page_inbox_projection.rb +15 -15
- data/lib/mailslurp_client/models/page_inbox_replier_dto.rb +15 -15
- data/lib/mailslurp_client/models/page_inbox_replier_events.rb +15 -15
- data/lib/mailslurp_client/models/page_inbox_ruleset_dto.rb +15 -15
- data/lib/mailslurp_client/models/page_inbox_tags.rb +15 -15
- data/lib/mailslurp_client/models/page_list_unsubscribe_recipients.rb +15 -15
- data/lib/mailslurp_client/models/page_missed_email_projection.rb +15 -15
- data/lib/mailslurp_client/models/page_opt_in_identity_projection.rb +15 -15
- data/lib/mailslurp_client/models/page_organization_inbox_projection.rb +15 -15
- data/lib/mailslurp_client/models/page_phone_message_thread_item_projection.rb +15 -15
- data/lib/mailslurp_client/models/page_phone_message_thread_projection.rb +15 -15
- data/lib/mailslurp_client/models/page_phone_number_projection.rb +15 -15
- data/lib/mailslurp_client/models/page_plus_address_projection.rb +15 -15
- data/lib/mailslurp_client/models/page_reputation_items.rb +15 -15
- data/lib/mailslurp_client/models/page_scheduled_jobs.rb +15 -15
- data/lib/mailslurp_client/models/page_sent_email_projection.rb +15 -15
- data/lib/mailslurp_client/models/page_sent_email_with_queue_projection.rb +15 -15
- data/lib/mailslurp_client/models/page_sent_sms_projection.rb +15 -15
- data/lib/mailslurp_client/models/page_sms_projection.rb +15 -15
- data/lib/mailslurp_client/models/page_template_projection.rb +15 -15
- data/lib/mailslurp_client/models/page_tracking_pixel_projection.rb +15 -15
- data/lib/mailslurp_client/models/page_unknown_missed_email_projection.rb +15 -15
- data/lib/mailslurp_client/models/page_webhook_endpoint_projection.rb +15 -15
- data/lib/mailslurp_client/models/page_webhook_projection.rb +15 -15
- data/lib/mailslurp_client/models/page_webhook_result.rb +15 -15
- data/lib/mailslurp_client/models/plus_address_projection.rb +15 -15
- data/lib/mailslurp_client/models/sent_email_projection.rb +15 -15
- data/lib/mailslurp_client/models/sort_object.rb +10 -10
- data/lib/mailslurp_client/models/{structured_content_result.rb → structured_content_result_dto.rb} +3 -3
- data/lib/mailslurp_client/models/tracking_pixel_projection.rb +10 -10
- data/lib/mailslurp_client/models/webhook_dto.rb +12 -1
- data/lib/mailslurp_client/models/webhook_projection.rb +19 -10
- data/lib/mailslurp_client/version.rb +1 -1
- data/lib/mailslurp_client.rb +13 -1
- metadata +15 -3
@@ -0,0 +1,324 @@
|
|
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 AITransformResultProjection
|
17
|
+
attr_accessor :user_id
|
18
|
+
|
19
|
+
attr_accessor :ai_transform_id
|
20
|
+
|
21
|
+
attr_accessor :entity_id
|
22
|
+
|
23
|
+
attr_accessor :entity_type
|
24
|
+
|
25
|
+
attr_accessor :ai_transform_mapping_id
|
26
|
+
|
27
|
+
attr_accessor :value
|
28
|
+
|
29
|
+
attr_accessor :id
|
30
|
+
|
31
|
+
class EnumAttributeValidator
|
32
|
+
attr_reader :datatype
|
33
|
+
attr_reader :allowable_values
|
34
|
+
|
35
|
+
def initialize(datatype, allowable_values)
|
36
|
+
@allowable_values = allowable_values.map do |value|
|
37
|
+
case datatype.to_s
|
38
|
+
when /Integer/i
|
39
|
+
value.to_i
|
40
|
+
when /Float/i
|
41
|
+
value.to_f
|
42
|
+
else
|
43
|
+
value
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
47
|
+
|
48
|
+
def valid?(value)
|
49
|
+
!value || allowable_values.include?(value)
|
50
|
+
end
|
51
|
+
end
|
52
|
+
|
53
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
54
|
+
def self.attribute_map
|
55
|
+
{
|
56
|
+
:'user_id' => :'userId',
|
57
|
+
:'ai_transform_id' => :'aiTransformId',
|
58
|
+
:'entity_id' => :'entityId',
|
59
|
+
:'entity_type' => :'entityType',
|
60
|
+
:'ai_transform_mapping_id' => :'aiTransformMappingId',
|
61
|
+
:'value' => :'value',
|
62
|
+
:'id' => :'id'
|
63
|
+
}
|
64
|
+
end
|
65
|
+
|
66
|
+
# Attribute type mapping.
|
67
|
+
def self.openapi_types
|
68
|
+
{
|
69
|
+
:'user_id' => :'String',
|
70
|
+
:'ai_transform_id' => :'String',
|
71
|
+
:'entity_id' => :'String',
|
72
|
+
:'entity_type' => :'String',
|
73
|
+
:'ai_transform_mapping_id' => :'String',
|
74
|
+
:'value' => :'String',
|
75
|
+
:'id' => :'String'
|
76
|
+
}
|
77
|
+
end
|
78
|
+
|
79
|
+
# List of attributes with nullable: true
|
80
|
+
def self.openapi_nullable
|
81
|
+
Set.new([
|
82
|
+
])
|
83
|
+
end
|
84
|
+
|
85
|
+
# Initializes the object
|
86
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
87
|
+
def initialize(attributes = {})
|
88
|
+
if (!attributes.is_a?(Hash))
|
89
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `MailSlurpClient::AITransformResultProjection` initialize method"
|
90
|
+
end
|
91
|
+
|
92
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
93
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
94
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
95
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `MailSlurpClient::AITransformResultProjection`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
96
|
+
end
|
97
|
+
h[k.to_sym] = v
|
98
|
+
}
|
99
|
+
|
100
|
+
if attributes.key?(:'user_id')
|
101
|
+
self.user_id = attributes[:'user_id']
|
102
|
+
end
|
103
|
+
|
104
|
+
if attributes.key?(:'ai_transform_id')
|
105
|
+
self.ai_transform_id = attributes[:'ai_transform_id']
|
106
|
+
end
|
107
|
+
|
108
|
+
if attributes.key?(:'entity_id')
|
109
|
+
self.entity_id = attributes[:'entity_id']
|
110
|
+
end
|
111
|
+
|
112
|
+
if attributes.key?(:'entity_type')
|
113
|
+
self.entity_type = attributes[:'entity_type']
|
114
|
+
end
|
115
|
+
|
116
|
+
if attributes.key?(:'ai_transform_mapping_id')
|
117
|
+
self.ai_transform_mapping_id = attributes[:'ai_transform_mapping_id']
|
118
|
+
end
|
119
|
+
|
120
|
+
if attributes.key?(:'value')
|
121
|
+
self.value = attributes[:'value']
|
122
|
+
end
|
123
|
+
|
124
|
+
if attributes.key?(:'id')
|
125
|
+
self.id = attributes[:'id']
|
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 @user_id.nil?
|
134
|
+
invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
|
135
|
+
end
|
136
|
+
|
137
|
+
if @ai_transform_id.nil?
|
138
|
+
invalid_properties.push('invalid value for "ai_transform_id", ai_transform_id cannot be nil.')
|
139
|
+
end
|
140
|
+
|
141
|
+
if @entity_id.nil?
|
142
|
+
invalid_properties.push('invalid value for "entity_id", entity_id cannot be nil.')
|
143
|
+
end
|
144
|
+
|
145
|
+
if @entity_type.nil?
|
146
|
+
invalid_properties.push('invalid value for "entity_type", entity_type cannot be nil.')
|
147
|
+
end
|
148
|
+
|
149
|
+
if @ai_transform_mapping_id.nil?
|
150
|
+
invalid_properties.push('invalid value for "ai_transform_mapping_id", ai_transform_mapping_id cannot be nil.')
|
151
|
+
end
|
152
|
+
|
153
|
+
if @id.nil?
|
154
|
+
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
155
|
+
end
|
156
|
+
|
157
|
+
invalid_properties
|
158
|
+
end
|
159
|
+
|
160
|
+
# Check to see if the all the properties in the model are valid
|
161
|
+
# @return true if the model is valid
|
162
|
+
def valid?
|
163
|
+
return false if @user_id.nil?
|
164
|
+
return false if @ai_transform_id.nil?
|
165
|
+
return false if @entity_id.nil?
|
166
|
+
return false if @entity_type.nil?
|
167
|
+
entity_type_validator = EnumAttributeValidator.new('String', ["INBOX", "PHONE"])
|
168
|
+
return false unless entity_type_validator.valid?(@entity_type)
|
169
|
+
return false if @ai_transform_mapping_id.nil?
|
170
|
+
return false if @id.nil?
|
171
|
+
true
|
172
|
+
end
|
173
|
+
|
174
|
+
# Custom attribute writer method checking allowed values (enum).
|
175
|
+
# @param [Object] entity_type Object to be assigned
|
176
|
+
def entity_type=(entity_type)
|
177
|
+
validator = EnumAttributeValidator.new('String', ["INBOX", "PHONE"])
|
178
|
+
unless validator.valid?(entity_type)
|
179
|
+
fail ArgumentError, "invalid value for \"entity_type\", must be one of #{validator.allowable_values}."
|
180
|
+
end
|
181
|
+
@entity_type = entity_type
|
182
|
+
end
|
183
|
+
|
184
|
+
# Checks equality by comparing each attribute.
|
185
|
+
# @param [Object] Object to be compared
|
186
|
+
def ==(o)
|
187
|
+
return true if self.equal?(o)
|
188
|
+
self.class == o.class &&
|
189
|
+
user_id == o.user_id &&
|
190
|
+
ai_transform_id == o.ai_transform_id &&
|
191
|
+
entity_id == o.entity_id &&
|
192
|
+
entity_type == o.entity_type &&
|
193
|
+
ai_transform_mapping_id == o.ai_transform_mapping_id &&
|
194
|
+
value == o.value &&
|
195
|
+
id == o.id
|
196
|
+
end
|
197
|
+
|
198
|
+
# @see the `==` method
|
199
|
+
# @param [Object] Object to be compared
|
200
|
+
def eql?(o)
|
201
|
+
self == o
|
202
|
+
end
|
203
|
+
|
204
|
+
# Calculates hash code according to all attributes.
|
205
|
+
# @return [Integer] Hash code
|
206
|
+
def hash
|
207
|
+
[user_id, ai_transform_id, entity_id, entity_type, ai_transform_mapping_id, value, id].hash
|
208
|
+
end
|
209
|
+
|
210
|
+
# Builds the object from hash
|
211
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
212
|
+
# @return [Object] Returns the model itself
|
213
|
+
def self.build_from_hash(attributes)
|
214
|
+
new.build_from_hash(attributes)
|
215
|
+
end
|
216
|
+
|
217
|
+
# Builds the object from hash
|
218
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
219
|
+
# @return [Object] Returns the model itself
|
220
|
+
def build_from_hash(attributes)
|
221
|
+
return nil unless attributes.is_a?(Hash)
|
222
|
+
self.class.openapi_types.each_pair do |key, type|
|
223
|
+
if type =~ /\AArray<(.*)>/i
|
224
|
+
# check to ensure the input is an array given that the attribute
|
225
|
+
# is documented as an array but the input is not
|
226
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
227
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
228
|
+
end
|
229
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
230
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
231
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
232
|
+
end
|
233
|
+
|
234
|
+
self
|
235
|
+
end
|
236
|
+
|
237
|
+
# Deserializes the data based on type
|
238
|
+
# @param string type Data type
|
239
|
+
# @param string value Value to be deserialized
|
240
|
+
# @return [Object] Deserialized data
|
241
|
+
def _deserialize(type, value)
|
242
|
+
case type.to_sym
|
243
|
+
when :DateTime
|
244
|
+
DateTime.parse(value)
|
245
|
+
when :Date
|
246
|
+
Date.parse(value)
|
247
|
+
when :String
|
248
|
+
value.to_s
|
249
|
+
when :Integer
|
250
|
+
value.to_i
|
251
|
+
when :Float
|
252
|
+
value.to_f
|
253
|
+
when :Boolean
|
254
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
255
|
+
true
|
256
|
+
else
|
257
|
+
false
|
258
|
+
end
|
259
|
+
when :Object
|
260
|
+
# generic object (usually a Hash), return directly
|
261
|
+
value
|
262
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
263
|
+
inner_type = Regexp.last_match[:inner_type]
|
264
|
+
value.map { |v| _deserialize(inner_type, v) }
|
265
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
266
|
+
k_type = Regexp.last_match[:k_type]
|
267
|
+
v_type = Regexp.last_match[:v_type]
|
268
|
+
{}.tap do |hash|
|
269
|
+
value.each do |k, v|
|
270
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
271
|
+
end
|
272
|
+
end
|
273
|
+
else # model
|
274
|
+
MailSlurpClient.const_get(type).build_from_hash(value)
|
275
|
+
end
|
276
|
+
end
|
277
|
+
|
278
|
+
# Returns the string representation of the object
|
279
|
+
# @return [String] String presentation of the object
|
280
|
+
def to_s
|
281
|
+
to_hash.to_s
|
282
|
+
end
|
283
|
+
|
284
|
+
# to_body is an alias to to_hash (backward compatibility)
|
285
|
+
# @return [Hash] Returns the object in the form of hash
|
286
|
+
def to_body
|
287
|
+
to_hash
|
288
|
+
end
|
289
|
+
|
290
|
+
# Returns the object in the form of hash
|
291
|
+
# @return [Hash] Returns the object in the form of hash
|
292
|
+
def to_hash
|
293
|
+
hash = {}
|
294
|
+
self.class.attribute_map.each_pair do |attr, param|
|
295
|
+
value = self.send(attr)
|
296
|
+
if value.nil?
|
297
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
298
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
299
|
+
end
|
300
|
+
|
301
|
+
hash[param] = _to_hash(value)
|
302
|
+
end
|
303
|
+
hash
|
304
|
+
end
|
305
|
+
|
306
|
+
# Outputs non-array value in the form of hash
|
307
|
+
# For object, use to_hash. Otherwise, just return the value
|
308
|
+
# @param [Object] value Any valid value
|
309
|
+
# @return [Hash] Returns the value in the form of hash
|
310
|
+
def _to_hash(value)
|
311
|
+
if value.is_a?(Array)
|
312
|
+
value.compact.map { |v| _to_hash(v) }
|
313
|
+
elsif value.is_a?(Hash)
|
314
|
+
{}.tap do |hash|
|
315
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
316
|
+
end
|
317
|
+
elsif value.respond_to? :to_hash
|
318
|
+
value.to_hash
|
319
|
+
else
|
320
|
+
value
|
321
|
+
end
|
322
|
+
end
|
323
|
+
end
|
324
|
+
end
|
@@ -15,12 +15,12 @@ require 'date'
|
|
15
15
|
module MailSlurpClient
|
16
16
|
# Representation of a alias
|
17
17
|
class AliasProjection
|
18
|
+
attr_accessor :inbox_id
|
19
|
+
|
18
20
|
attr_accessor :user_id
|
19
21
|
|
20
22
|
attr_accessor :email_address
|
21
23
|
|
22
|
-
attr_accessor :inbox_id
|
23
|
-
|
24
24
|
attr_accessor :updated_at
|
25
25
|
|
26
26
|
attr_accessor :created_at
|
@@ -34,9 +34,9 @@ module MailSlurpClient
|
|
34
34
|
# Attribute mapping from ruby-style variable name to JSON key.
|
35
35
|
def self.attribute_map
|
36
36
|
{
|
37
|
+
:'inbox_id' => :'inboxId',
|
37
38
|
:'user_id' => :'userId',
|
38
39
|
:'email_address' => :'emailAddress',
|
39
|
-
:'inbox_id' => :'inboxId',
|
40
40
|
:'updated_at' => :'updatedAt',
|
41
41
|
:'created_at' => :'createdAt',
|
42
42
|
:'use_threads' => :'useThreads',
|
@@ -48,9 +48,9 @@ module MailSlurpClient
|
|
48
48
|
# Attribute type mapping.
|
49
49
|
def self.openapi_types
|
50
50
|
{
|
51
|
+
:'inbox_id' => :'String',
|
51
52
|
:'user_id' => :'String',
|
52
53
|
:'email_address' => :'String',
|
53
|
-
:'inbox_id' => :'String',
|
54
54
|
:'updated_at' => :'DateTime',
|
55
55
|
:'created_at' => :'DateTime',
|
56
56
|
:'use_threads' => :'Boolean',
|
@@ -80,6 +80,10 @@ module MailSlurpClient
|
|
80
80
|
h[k.to_sym] = v
|
81
81
|
}
|
82
82
|
|
83
|
+
if attributes.key?(:'inbox_id')
|
84
|
+
self.inbox_id = attributes[:'inbox_id']
|
85
|
+
end
|
86
|
+
|
83
87
|
if attributes.key?(:'user_id')
|
84
88
|
self.user_id = attributes[:'user_id']
|
85
89
|
end
|
@@ -88,10 +92,6 @@ module MailSlurpClient
|
|
88
92
|
self.email_address = attributes[:'email_address']
|
89
93
|
end
|
90
94
|
|
91
|
-
if attributes.key?(:'inbox_id')
|
92
|
-
self.inbox_id = attributes[:'inbox_id']
|
93
|
-
end
|
94
|
-
|
95
95
|
if attributes.key?(:'updated_at')
|
96
96
|
self.updated_at = attributes[:'updated_at']
|
97
97
|
end
|
@@ -117,6 +117,10 @@ module MailSlurpClient
|
|
117
117
|
# @return Array for valid properties with the reasons
|
118
118
|
def list_invalid_properties
|
119
119
|
invalid_properties = Array.new
|
120
|
+
if @inbox_id.nil?
|
121
|
+
invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
|
122
|
+
end
|
123
|
+
|
120
124
|
if @user_id.nil?
|
121
125
|
invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
|
122
126
|
end
|
@@ -125,10 +129,6 @@ module MailSlurpClient
|
|
125
129
|
invalid_properties.push('invalid value for "email_address", email_address cannot be nil.')
|
126
130
|
end
|
127
131
|
|
128
|
-
if @inbox_id.nil?
|
129
|
-
invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
|
130
|
-
end
|
131
|
-
|
132
132
|
if @updated_at.nil?
|
133
133
|
invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
|
134
134
|
end
|
@@ -147,9 +147,9 @@ module MailSlurpClient
|
|
147
147
|
# Check to see if the all the properties in the model are valid
|
148
148
|
# @return true if the model is valid
|
149
149
|
def valid?
|
150
|
+
return false if @inbox_id.nil?
|
150
151
|
return false if @user_id.nil?
|
151
152
|
return false if @email_address.nil?
|
152
|
-
return false if @inbox_id.nil?
|
153
153
|
return false if @updated_at.nil?
|
154
154
|
return false if @created_at.nil?
|
155
155
|
return false if @id.nil?
|
@@ -161,9 +161,9 @@ module MailSlurpClient
|
|
161
161
|
def ==(o)
|
162
162
|
return true if self.equal?(o)
|
163
163
|
self.class == o.class &&
|
164
|
+
inbox_id == o.inbox_id &&
|
164
165
|
user_id == o.user_id &&
|
165
166
|
email_address == o.email_address &&
|
166
|
-
inbox_id == o.inbox_id &&
|
167
167
|
updated_at == o.updated_at &&
|
168
168
|
created_at == o.created_at &&
|
169
169
|
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
|
-
[user_id, email_address,
|
183
|
+
[inbox_id, user_id, email_address, updated_at, created_at, use_threads, name, id].hash
|
184
184
|
end
|
185
185
|
|
186
186
|
# Builds the object from hash
|
@@ -15,12 +15,12 @@ require 'date'
|
|
15
15
|
module MailSlurpClient
|
16
16
|
# A thread is a message thread created for a message received by an alias
|
17
17
|
class AliasThreadProjection
|
18
|
-
# User ID
|
19
|
-
attr_accessor :user_id
|
20
|
-
|
21
18
|
# Inbox ID
|
22
19
|
attr_accessor :inbox_id
|
23
20
|
|
21
|
+
# User ID
|
22
|
+
attr_accessor :user_id
|
23
|
+
|
24
24
|
# Updated at DateTime
|
25
25
|
attr_accessor :updated_at
|
26
26
|
|
@@ -51,8 +51,8 @@ module MailSlurpClient
|
|
51
51
|
# Attribute mapping from ruby-style variable name to JSON key.
|
52
52
|
def self.attribute_map
|
53
53
|
{
|
54
|
-
:'user_id' => :'userId',
|
55
54
|
:'inbox_id' => :'inboxId',
|
55
|
+
:'user_id' => :'userId',
|
56
56
|
:'updated_at' => :'updatedAt',
|
57
57
|
:'created_at' => :'createdAt',
|
58
58
|
:'to' => :'to',
|
@@ -68,8 +68,8 @@ module MailSlurpClient
|
|
68
68
|
# Attribute type mapping.
|
69
69
|
def self.openapi_types
|
70
70
|
{
|
71
|
-
:'user_id' => :'String',
|
72
71
|
:'inbox_id' => :'String',
|
72
|
+
:'user_id' => :'String',
|
73
73
|
:'updated_at' => :'DateTime',
|
74
74
|
:'created_at' => :'DateTime',
|
75
75
|
:'to' => :'Array<String>',
|
@@ -103,14 +103,14 @@ module MailSlurpClient
|
|
103
103
|
h[k.to_sym] = v
|
104
104
|
}
|
105
105
|
|
106
|
-
if attributes.key?(:'user_id')
|
107
|
-
self.user_id = attributes[:'user_id']
|
108
|
-
end
|
109
|
-
|
110
106
|
if attributes.key?(:'inbox_id')
|
111
107
|
self.inbox_id = attributes[:'inbox_id']
|
112
108
|
end
|
113
109
|
|
110
|
+
if attributes.key?(:'user_id')
|
111
|
+
self.user_id = attributes[:'user_id']
|
112
|
+
end
|
113
|
+
|
114
114
|
if attributes.key?(:'updated_at')
|
115
115
|
self.updated_at = attributes[:'updated_at']
|
116
116
|
end
|
@@ -158,14 +158,14 @@ module MailSlurpClient
|
|
158
158
|
# @return Array for valid properties with the reasons
|
159
159
|
def list_invalid_properties
|
160
160
|
invalid_properties = Array.new
|
161
|
-
if @user_id.nil?
|
162
|
-
invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
|
163
|
-
end
|
164
|
-
|
165
161
|
if @inbox_id.nil?
|
166
162
|
invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
|
167
163
|
end
|
168
164
|
|
165
|
+
if @user_id.nil?
|
166
|
+
invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
|
167
|
+
end
|
168
|
+
|
169
169
|
if @updated_at.nil?
|
170
170
|
invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
|
171
171
|
end
|
@@ -192,8 +192,8 @@ module MailSlurpClient
|
|
192
192
|
# Check to see if the all the properties in the model are valid
|
193
193
|
# @return true if the model is valid
|
194
194
|
def valid?
|
195
|
-
return false if @user_id.nil?
|
196
195
|
return false if @inbox_id.nil?
|
196
|
+
return false if @user_id.nil?
|
197
197
|
return false if @updated_at.nil?
|
198
198
|
return false if @created_at.nil?
|
199
199
|
return false if @to.nil?
|
@@ -207,8 +207,8 @@ module MailSlurpClient
|
|
207
207
|
def ==(o)
|
208
208
|
return true if self.equal?(o)
|
209
209
|
self.class == o.class &&
|
210
|
-
user_id == o.user_id &&
|
211
210
|
inbox_id == o.inbox_id &&
|
211
|
+
user_id == o.user_id &&
|
212
212
|
updated_at == o.updated_at &&
|
213
213
|
created_at == o.created_at &&
|
214
214
|
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
|
-
[
|
232
|
+
[inbox_id, user_id, updated_at, created_at, to, cc, bcc, alias_id, subject, name, id].hash
|
233
233
|
end
|
234
234
|
|
235
235
|
# Builds the object from hash
|
@@ -15,11 +15,11 @@ require 'date'
|
|
15
15
|
module MailSlurpClient
|
16
16
|
# Email attachment data
|
17
17
|
class AttachmentProjection
|
18
|
-
attr_accessor :user_id
|
19
|
-
|
20
18
|
# Inbox ID
|
21
19
|
attr_accessor :inbox_id
|
22
20
|
|
21
|
+
attr_accessor :user_id
|
22
|
+
|
23
23
|
attr_accessor :updated_at
|
24
24
|
|
25
25
|
attr_accessor :created_at
|
@@ -44,8 +44,8 @@ module MailSlurpClient
|
|
44
44
|
# Attribute mapping from ruby-style variable name to JSON key.
|
45
45
|
def self.attribute_map
|
46
46
|
{
|
47
|
-
:'user_id' => :'userId',
|
48
47
|
:'inbox_id' => :'inboxId',
|
48
|
+
:'user_id' => :'userId',
|
49
49
|
:'updated_at' => :'updatedAt',
|
50
50
|
:'created_at' => :'createdAt',
|
51
51
|
:'content_id' => :'contentId',
|
@@ -60,8 +60,8 @@ module MailSlurpClient
|
|
60
60
|
# Attribute type mapping.
|
61
61
|
def self.openapi_types
|
62
62
|
{
|
63
|
-
:'user_id' => :'String',
|
64
63
|
:'inbox_id' => :'String',
|
64
|
+
:'user_id' => :'String',
|
65
65
|
:'updated_at' => :'DateTime',
|
66
66
|
:'created_at' => :'DateTime',
|
67
67
|
:'content_id' => :'String',
|
@@ -98,14 +98,14 @@ module MailSlurpClient
|
|
98
98
|
h[k.to_sym] = v
|
99
99
|
}
|
100
100
|
|
101
|
-
if attributes.key?(:'user_id')
|
102
|
-
self.user_id = attributes[:'user_id']
|
103
|
-
end
|
104
|
-
|
105
101
|
if attributes.key?(:'inbox_id')
|
106
102
|
self.inbox_id = attributes[:'inbox_id']
|
107
103
|
end
|
108
104
|
|
105
|
+
if attributes.key?(:'user_id')
|
106
|
+
self.user_id = attributes[:'user_id']
|
107
|
+
end
|
108
|
+
|
109
109
|
if attributes.key?(:'updated_at')
|
110
110
|
self.updated_at = attributes[:'updated_at']
|
111
111
|
end
|
@@ -182,8 +182,8 @@ module MailSlurpClient
|
|
182
182
|
def ==(o)
|
183
183
|
return true if self.equal?(o)
|
184
184
|
self.class == o.class &&
|
185
|
-
user_id == o.user_id &&
|
186
185
|
inbox_id == o.inbox_id &&
|
186
|
+
user_id == o.user_id &&
|
187
187
|
updated_at == o.updated_at &&
|
188
188
|
created_at == o.created_at &&
|
189
189
|
content_id == o.content_id &&
|
@@ -203,7 +203,7 @@ module MailSlurpClient
|
|
203
203
|
# Calculates hash code according to all attributes.
|
204
204
|
# @return [Integer] Hash code
|
205
205
|
def hash
|
206
|
-
[
|
206
|
+
[inbox_id, user_id, updated_at, created_at, content_id, attachment_id, name, id, content_length, content_type].hash
|
207
207
|
end
|
208
208
|
|
209
209
|
# Builds the object from hash
|