mailslurp_client 17.3.0 → 17.4.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/attachment_controller_api.rb +5 -5
- data/lib/mailslurp_client/api/email_controller_api.rb +2 -2
- data/lib/mailslurp_client/api/email_verification_controller_api.rb +64 -0
- data/lib/mailslurp_client/api/inbox_controller_api.rb +229 -0
- data/lib/mailslurp_client/api/phone_controller_api.rb +334 -0
- data/lib/mailslurp_client/models/abstract_webhook_payload.rb +13 -13
- data/lib/mailslurp_client/models/alias_projection.rb +29 -29
- data/lib/mailslurp_client/models/alias_thread_projection.rb +16 -16
- data/lib/mailslurp_client/models/attachment_projection.rb +29 -29
- data/lib/mailslurp_client/models/bounce_recipient_projection.rb +15 -15
- data/lib/mailslurp_client/models/connector_event_projection.rb +30 -30
- data/lib/mailslurp_client/models/connector_projection.rb +10 -10
- data/lib/mailslurp_client/models/contact_projection.rb +15 -15
- data/lib/mailslurp_client/models/create_inbox_forwarder_options.rb +58 -29
- data/lib/mailslurp_client/models/create_inbox_replier_options.rb +39 -33
- data/lib/mailslurp_client/models/create_phone_number_options.rb +37 -4
- data/lib/mailslurp_client/models/email_intelligence_list_result.rb +285 -0
- data/lib/mailslurp_client/models/email_intelligence_options.rb +308 -0
- data/lib/mailslurp_client/models/email_intelligence_result_dto.rb +256 -0
- data/lib/mailslurp_client/models/email_intelligence_score_breakdown_dto.rb +296 -0
- data/lib/mailslurp_client/models/email_intelligence_signals_dto.rb +352 -0
- data/lib/mailslurp_client/models/email_intelligence_tests_options.rb +253 -0
- data/lib/mailslurp_client/models/email_thread_projection.rb +16 -16
- data/lib/mailslurp_client/models/entity_favourite_item_projection.rb +13 -13
- data/lib/mailslurp_client/models/expired_inbox_record_projection.rb +15 -15
- data/lib/mailslurp_client/models/extract_attachment_text_options.rb +1 -1
- data/lib/mailslurp_client/models/extract_attachment_text_result.rb +1 -1
- data/lib/mailslurp_client/models/group_projection.rb +14 -14
- data/lib/mailslurp_client/models/guest_portal_user_projection.rb +24 -24
- data/lib/mailslurp_client/models/import_email_options.rb +269 -0
- data/lib/mailslurp_client/models/inbox_automation_match_option.rb +308 -0
- data/lib/mailslurp_client/models/inbox_automation_match_options.rb +273 -0
- data/lib/mailslurp_client/models/inbox_forwarder_dto.rb +65 -17
- data/lib/mailslurp_client/models/inbox_forwarder_event_projection.rb +16 -16
- data/lib/mailslurp_client/models/inbox_forwarder_test_options.rb +17 -9
- data/lib/mailslurp_client/models/inbox_replier_dto.rb +41 -16
- data/lib/mailslurp_client/models/inbox_replier_event_projection.rb +16 -16
- data/lib/mailslurp_client/models/inline_object.rb +12 -58
- data/lib/mailslurp_client/models/inline_object1.rb +58 -12
- data/lib/mailslurp_client/models/inline_object2.rb +211 -0
- data/lib/mailslurp_client/models/opt_in_identity_projection.rb +18 -18
- data/lib/mailslurp_client/models/page_ai_transform_mapping_projection.rb +24 -24
- data/lib/mailslurp_client/models/page_ai_transform_projection.rb +24 -24
- data/lib/mailslurp_client/models/page_ai_transform_result_projection.rb +24 -24
- data/lib/mailslurp_client/models/page_alias.rb +24 -24
- data/lib/mailslurp_client/models/page_alias_thread_projection.rb +24 -24
- data/lib/mailslurp_client/models/page_attachment_entity.rb +24 -24
- data/lib/mailslurp_client/models/page_bounced_email.rb +24 -24
- data/lib/mailslurp_client/models/page_bounced_recipients.rb +24 -24
- data/lib/mailslurp_client/models/page_complaint.rb +24 -24
- data/lib/mailslurp_client/models/page_connector.rb +24 -24
- data/lib/mailslurp_client/models/page_connector_events.rb +24 -24
- data/lib/mailslurp_client/models/page_contact_projection.rb +24 -24
- data/lib/mailslurp_client/models/page_delivery_status.rb +24 -24
- data/lib/mailslurp_client/models/page_device_preview_run_projection.rb +24 -24
- data/lib/mailslurp_client/models/page_email_preview.rb +24 -24
- data/lib/mailslurp_client/models/page_email_projection.rb +24 -24
- data/lib/mailslurp_client/models/page_email_thread_projection.rb +24 -24
- data/lib/mailslurp_client/models/page_email_validation_request.rb +24 -24
- data/lib/mailslurp_client/models/page_entity_automation_items.rb +24 -24
- data/lib/mailslurp_client/models/page_entity_event_items.rb +24 -24
- data/lib/mailslurp_client/models/page_entity_favourite_items.rb +24 -24
- data/lib/mailslurp_client/models/page_expired_inbox_record_projection.rb +24 -24
- data/lib/mailslurp_client/models/page_group_projection.rb +24 -24
- data/lib/mailslurp_client/models/page_guest_portal_users.rb +24 -24
- data/lib/mailslurp_client/models/page_inbox_forwarder_dto.rb +24 -24
- data/lib/mailslurp_client/models/page_inbox_forwarder_events.rb +24 -24
- data/lib/mailslurp_client/models/page_inbox_projection.rb +24 -24
- data/lib/mailslurp_client/models/page_inbox_replier_dto.rb +24 -24
- data/lib/mailslurp_client/models/page_inbox_replier_events.rb +24 -24
- data/lib/mailslurp_client/models/page_inbox_tags.rb +24 -24
- data/lib/mailslurp_client/models/page_list_unsubscribe_recipients.rb +24 -24
- data/lib/mailslurp_client/models/page_missed_email_projection.rb +24 -24
- data/lib/mailslurp_client/models/page_missed_sms_projection.rb +24 -24
- data/lib/mailslurp_client/models/page_opt_in_identity_projection.rb +24 -24
- data/lib/mailslurp_client/models/page_organization_inbox_projection.rb +24 -24
- data/lib/mailslurp_client/models/page_phone_message_thread_item_projection.rb +24 -24
- data/lib/mailslurp_client/models/page_phone_message_thread_projection.rb +24 -24
- data/lib/mailslurp_client/models/page_phone_number_projection.rb +24 -24
- data/lib/mailslurp_client/models/page_phone_number_release_projection.rb +24 -24
- data/lib/mailslurp_client/models/page_plus_address_projection.rb +24 -24
- data/lib/mailslurp_client/models/page_reputation_items.rb +24 -24
- data/lib/mailslurp_client/models/page_ruleset_dto.rb +24 -24
- data/lib/mailslurp_client/models/page_scheduled_jobs.rb +24 -24
- data/lib/mailslurp_client/models/page_sent_email_projection.rb +24 -24
- data/lib/mailslurp_client/models/page_sent_email_with_queue_projection.rb +24 -24
- data/lib/mailslurp_client/models/page_sent_sms_projection.rb +24 -24
- data/lib/mailslurp_client/models/page_sms_projection.rb +24 -24
- data/lib/mailslurp_client/models/page_template_projection.rb +24 -24
- data/lib/mailslurp_client/models/page_tracking_pixel_projection.rb +24 -24
- data/lib/mailslurp_client/models/page_unknown_missed_email_projection.rb +24 -24
- data/lib/mailslurp_client/models/page_webhook_endpoint_projection.rb +24 -24
- data/lib/mailslurp_client/models/page_webhook_projection.rb +24 -24
- data/lib/mailslurp_client/models/page_webhook_result.rb +24 -24
- data/lib/mailslurp_client/models/pageable_object.rb +13 -13
- data/lib/mailslurp_client/models/phone_message_thread_item_projection.rb +15 -15
- data/lib/mailslurp_client/models/phone_number_dto.rb +17 -1
- data/lib/mailslurp_client/models/phone_number_tags_options.rb +213 -0
- data/lib/mailslurp_client/models/plus_address_projection.rb +15 -15
- data/lib/mailslurp_client/models/reputation_item_projection.rb +13 -13
- data/lib/mailslurp_client/models/template_projection.rb +15 -15
- data/lib/mailslurp_client/models/update_inbox_replier_options.rb +39 -33
- data/lib/mailslurp_client/models/webhook_projection.rb +15 -15
- data/lib/mailslurp_client/version.rb +1 -1
- data/lib/mailslurp_client.rb +11 -0
- metadata +13 -2
|
@@ -20,6 +20,8 @@ module MailSlurpClient
|
|
|
20
20
|
|
|
21
21
|
attr_accessor :description
|
|
22
22
|
|
|
23
|
+
attr_accessor :tags
|
|
24
|
+
|
|
23
25
|
attr_accessor :user_id
|
|
24
26
|
|
|
25
27
|
attr_accessor :compliance_address
|
|
@@ -78,6 +80,7 @@ module MailSlurpClient
|
|
|
78
80
|
:'id' => :'id',
|
|
79
81
|
:'name' => :'name',
|
|
80
82
|
:'description' => :'description',
|
|
83
|
+
:'tags' => :'tags',
|
|
81
84
|
:'user_id' => :'userId',
|
|
82
85
|
:'compliance_address' => :'complianceAddress',
|
|
83
86
|
:'emergency_address' => :'emergencyAddress',
|
|
@@ -102,6 +105,7 @@ module MailSlurpClient
|
|
|
102
105
|
:'id' => :'String',
|
|
103
106
|
:'name' => :'String',
|
|
104
107
|
:'description' => :'String',
|
|
108
|
+
:'tags' => :'Array<String>',
|
|
105
109
|
:'user_id' => :'String',
|
|
106
110
|
:'compliance_address' => :'String',
|
|
107
111
|
:'emergency_address' => :'String',
|
|
@@ -153,6 +157,12 @@ module MailSlurpClient
|
|
|
153
157
|
self.description = attributes[:'description']
|
|
154
158
|
end
|
|
155
159
|
|
|
160
|
+
if attributes.key?(:'tags')
|
|
161
|
+
if (value = attributes[:'tags']).is_a?(Array)
|
|
162
|
+
self.tags = value
|
|
163
|
+
end
|
|
164
|
+
end
|
|
165
|
+
|
|
156
166
|
if attributes.key?(:'user_id')
|
|
157
167
|
self.user_id = attributes[:'user_id']
|
|
158
168
|
end
|
|
@@ -222,6 +232,10 @@ module MailSlurpClient
|
|
|
222
232
|
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
|
223
233
|
end
|
|
224
234
|
|
|
235
|
+
if @tags.nil?
|
|
236
|
+
invalid_properties.push('invalid value for "tags", tags cannot be nil.')
|
|
237
|
+
end
|
|
238
|
+
|
|
225
239
|
if @user_id.nil?
|
|
226
240
|
invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
|
|
227
241
|
end
|
|
@@ -257,6 +271,7 @@ module MailSlurpClient
|
|
|
257
271
|
# @return true if the model is valid
|
|
258
272
|
def valid?
|
|
259
273
|
return false if @id.nil?
|
|
274
|
+
return false if @tags.nil?
|
|
260
275
|
return false if @user_id.nil?
|
|
261
276
|
return false if @phone_number.nil?
|
|
262
277
|
return false if @phone_country.nil?
|
|
@@ -299,6 +314,7 @@ module MailSlurpClient
|
|
|
299
314
|
id == o.id &&
|
|
300
315
|
name == o.name &&
|
|
301
316
|
description == o.description &&
|
|
317
|
+
tags == o.tags &&
|
|
302
318
|
user_id == o.user_id &&
|
|
303
319
|
compliance_address == o.compliance_address &&
|
|
304
320
|
emergency_address == o.emergency_address &&
|
|
@@ -325,7 +341,7 @@ module MailSlurpClient
|
|
|
325
341
|
# Calculates hash code according to all attributes.
|
|
326
342
|
# @return [Integer] Hash code
|
|
327
343
|
def hash
|
|
328
|
-
[id, name, description, user_id, compliance_address, emergency_address, phone_number, phone_country, phone_plan, created_at, updated_at, favourite, phone_variant, line_type, carrier_name, mobile_country_code, mobile_network_code, provider_label].hash
|
|
344
|
+
[id, name, description, tags, user_id, compliance_address, emergency_address, phone_number, phone_country, phone_plan, created_at, updated_at, favourite, phone_variant, line_type, carrier_name, mobile_country_code, mobile_network_code, provider_label].hash
|
|
329
345
|
end
|
|
330
346
|
|
|
331
347
|
# Builds the object from hash
|
|
@@ -0,0 +1,213 @@
|
|
|
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 PhoneNumberTagsOptions
|
|
17
|
+
attr_accessor :tags
|
|
18
|
+
|
|
19
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
20
|
+
def self.attribute_map
|
|
21
|
+
{
|
|
22
|
+
:'tags' => :'tags'
|
|
23
|
+
}
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
# Attribute type mapping.
|
|
27
|
+
def self.openapi_types
|
|
28
|
+
{
|
|
29
|
+
:'tags' => :'Array<String>'
|
|
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::PhoneNumberTagsOptions` 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::PhoneNumberTagsOptions`. 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?(:'tags')
|
|
55
|
+
if (value = attributes[:'tags']).is_a?(Array)
|
|
56
|
+
self.tags = value
|
|
57
|
+
end
|
|
58
|
+
end
|
|
59
|
+
end
|
|
60
|
+
|
|
61
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
62
|
+
# @return Array for valid properties with the reasons
|
|
63
|
+
def list_invalid_properties
|
|
64
|
+
invalid_properties = Array.new
|
|
65
|
+
if @tags.nil?
|
|
66
|
+
invalid_properties.push('invalid value for "tags", tags cannot be nil.')
|
|
67
|
+
end
|
|
68
|
+
|
|
69
|
+
invalid_properties
|
|
70
|
+
end
|
|
71
|
+
|
|
72
|
+
# Check to see if the all the properties in the model are valid
|
|
73
|
+
# @return true if the model is valid
|
|
74
|
+
def valid?
|
|
75
|
+
return false if @tags.nil?
|
|
76
|
+
true
|
|
77
|
+
end
|
|
78
|
+
|
|
79
|
+
# Checks equality by comparing each attribute.
|
|
80
|
+
# @param [Object] Object to be compared
|
|
81
|
+
def ==(o)
|
|
82
|
+
return true if self.equal?(o)
|
|
83
|
+
self.class == o.class &&
|
|
84
|
+
tags == o.tags
|
|
85
|
+
end
|
|
86
|
+
|
|
87
|
+
# @see the `==` method
|
|
88
|
+
# @param [Object] Object to be compared
|
|
89
|
+
def eql?(o)
|
|
90
|
+
self == o
|
|
91
|
+
end
|
|
92
|
+
|
|
93
|
+
# Calculates hash code according to all attributes.
|
|
94
|
+
# @return [Integer] Hash code
|
|
95
|
+
def hash
|
|
96
|
+
[tags].hash
|
|
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 self.build_from_hash(attributes)
|
|
103
|
+
new.build_from_hash(attributes)
|
|
104
|
+
end
|
|
105
|
+
|
|
106
|
+
# Builds the object from hash
|
|
107
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
108
|
+
# @return [Object] Returns the model itself
|
|
109
|
+
def build_from_hash(attributes)
|
|
110
|
+
return nil unless attributes.is_a?(Hash)
|
|
111
|
+
self.class.openapi_types.each_pair do |key, type|
|
|
112
|
+
if type =~ /\AArray<(.*)>/i
|
|
113
|
+
# check to ensure the input is an array given that the attribute
|
|
114
|
+
# is documented as an array but the input is not
|
|
115
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
116
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
117
|
+
end
|
|
118
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
119
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
120
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
|
121
|
+
end
|
|
122
|
+
|
|
123
|
+
self
|
|
124
|
+
end
|
|
125
|
+
|
|
126
|
+
# Deserializes the data based on type
|
|
127
|
+
# @param string type Data type
|
|
128
|
+
# @param string value Value to be deserialized
|
|
129
|
+
# @return [Object] Deserialized data
|
|
130
|
+
def _deserialize(type, value)
|
|
131
|
+
case type.to_sym
|
|
132
|
+
when :DateTime
|
|
133
|
+
DateTime.parse(value)
|
|
134
|
+
when :Date
|
|
135
|
+
Date.parse(value)
|
|
136
|
+
when :String
|
|
137
|
+
value.to_s
|
|
138
|
+
when :Integer
|
|
139
|
+
value.to_i
|
|
140
|
+
when :Float
|
|
141
|
+
value.to_f
|
|
142
|
+
when :Boolean
|
|
143
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
144
|
+
true
|
|
145
|
+
else
|
|
146
|
+
false
|
|
147
|
+
end
|
|
148
|
+
when :Object
|
|
149
|
+
# generic object (usually a Hash), return directly
|
|
150
|
+
value
|
|
151
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
152
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
153
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
154
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
155
|
+
k_type = Regexp.last_match[:k_type]
|
|
156
|
+
v_type = Regexp.last_match[:v_type]
|
|
157
|
+
{}.tap do |hash|
|
|
158
|
+
value.each do |k, v|
|
|
159
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
160
|
+
end
|
|
161
|
+
end
|
|
162
|
+
else # model
|
|
163
|
+
MailSlurpClient.const_get(type).build_from_hash(value)
|
|
164
|
+
end
|
|
165
|
+
end
|
|
166
|
+
|
|
167
|
+
# Returns the string representation of the object
|
|
168
|
+
# @return [String] String presentation of the object
|
|
169
|
+
def to_s
|
|
170
|
+
to_hash.to_s
|
|
171
|
+
end
|
|
172
|
+
|
|
173
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
174
|
+
# @return [Hash] Returns the object in the form of hash
|
|
175
|
+
def to_body
|
|
176
|
+
to_hash
|
|
177
|
+
end
|
|
178
|
+
|
|
179
|
+
# Returns the object in the form of hash
|
|
180
|
+
# @return [Hash] Returns the object in the form of hash
|
|
181
|
+
def to_hash
|
|
182
|
+
hash = {}
|
|
183
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
184
|
+
value = self.send(attr)
|
|
185
|
+
if value.nil?
|
|
186
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
187
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
188
|
+
end
|
|
189
|
+
|
|
190
|
+
hash[param] = _to_hash(value)
|
|
191
|
+
end
|
|
192
|
+
hash
|
|
193
|
+
end
|
|
194
|
+
|
|
195
|
+
# Outputs non-array value in the form of hash
|
|
196
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
197
|
+
# @param [Object] value Any valid value
|
|
198
|
+
# @return [Hash] Returns the value in the form of hash
|
|
199
|
+
def _to_hash(value)
|
|
200
|
+
if value.is_a?(Array)
|
|
201
|
+
value.compact.map { |v| _to_hash(v) }
|
|
202
|
+
elsif value.is_a?(Hash)
|
|
203
|
+
{}.tap do |hash|
|
|
204
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
205
|
+
end
|
|
206
|
+
elsif value.respond_to? :to_hash
|
|
207
|
+
value.to_hash
|
|
208
|
+
else
|
|
209
|
+
value
|
|
210
|
+
end
|
|
211
|
+
end
|
|
212
|
+
end
|
|
213
|
+
end
|
|
@@ -20,10 +20,10 @@ module MailSlurpClient
|
|
|
20
20
|
|
|
21
21
|
attr_accessor :inbox_id
|
|
22
22
|
|
|
23
|
-
attr_accessor :created_at
|
|
24
|
-
|
|
25
23
|
attr_accessor :updated_at
|
|
26
24
|
|
|
25
|
+
attr_accessor :created_at
|
|
26
|
+
|
|
27
27
|
attr_accessor :plus_address
|
|
28
28
|
|
|
29
29
|
attr_accessor :full_address
|
|
@@ -34,8 +34,8 @@ module MailSlurpClient
|
|
|
34
34
|
:'id' => :'id',
|
|
35
35
|
:'user_id' => :'userId',
|
|
36
36
|
:'inbox_id' => :'inboxId',
|
|
37
|
-
:'created_at' => :'createdAt',
|
|
38
37
|
:'updated_at' => :'updatedAt',
|
|
38
|
+
:'created_at' => :'createdAt',
|
|
39
39
|
:'plus_address' => :'plusAddress',
|
|
40
40
|
:'full_address' => :'fullAddress'
|
|
41
41
|
}
|
|
@@ -47,8 +47,8 @@ module MailSlurpClient
|
|
|
47
47
|
:'id' => :'String',
|
|
48
48
|
:'user_id' => :'String',
|
|
49
49
|
:'inbox_id' => :'String',
|
|
50
|
-
:'created_at' => :'DateTime',
|
|
51
50
|
:'updated_at' => :'DateTime',
|
|
51
|
+
:'created_at' => :'DateTime',
|
|
52
52
|
:'plus_address' => :'String',
|
|
53
53
|
:'full_address' => :'String'
|
|
54
54
|
}
|
|
@@ -87,14 +87,14 @@ module MailSlurpClient
|
|
|
87
87
|
self.inbox_id = attributes[:'inbox_id']
|
|
88
88
|
end
|
|
89
89
|
|
|
90
|
-
if attributes.key?(:'created_at')
|
|
91
|
-
self.created_at = attributes[:'created_at']
|
|
92
|
-
end
|
|
93
|
-
|
|
94
90
|
if attributes.key?(:'updated_at')
|
|
95
91
|
self.updated_at = attributes[:'updated_at']
|
|
96
92
|
end
|
|
97
93
|
|
|
94
|
+
if attributes.key?(:'created_at')
|
|
95
|
+
self.created_at = attributes[:'created_at']
|
|
96
|
+
end
|
|
97
|
+
|
|
98
98
|
if attributes.key?(:'plus_address')
|
|
99
99
|
self.plus_address = attributes[:'plus_address']
|
|
100
100
|
end
|
|
@@ -120,14 +120,14 @@ module MailSlurpClient
|
|
|
120
120
|
invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
|
|
121
121
|
end
|
|
122
122
|
|
|
123
|
-
if @created_at.nil?
|
|
124
|
-
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
|
125
|
-
end
|
|
126
|
-
|
|
127
123
|
if @updated_at.nil?
|
|
128
124
|
invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
|
|
129
125
|
end
|
|
130
126
|
|
|
127
|
+
if @created_at.nil?
|
|
128
|
+
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
|
129
|
+
end
|
|
130
|
+
|
|
131
131
|
if @plus_address.nil?
|
|
132
132
|
invalid_properties.push('invalid value for "plus_address", plus_address cannot be nil.')
|
|
133
133
|
end
|
|
@@ -145,8 +145,8 @@ module MailSlurpClient
|
|
|
145
145
|
return false if @id.nil?
|
|
146
146
|
return false if @user_id.nil?
|
|
147
147
|
return false if @inbox_id.nil?
|
|
148
|
-
return false if @created_at.nil?
|
|
149
148
|
return false if @updated_at.nil?
|
|
149
|
+
return false if @created_at.nil?
|
|
150
150
|
return false if @plus_address.nil?
|
|
151
151
|
return false if @full_address.nil?
|
|
152
152
|
true
|
|
@@ -160,8 +160,8 @@ module MailSlurpClient
|
|
|
160
160
|
id == o.id &&
|
|
161
161
|
user_id == o.user_id &&
|
|
162
162
|
inbox_id == o.inbox_id &&
|
|
163
|
-
created_at == o.created_at &&
|
|
164
163
|
updated_at == o.updated_at &&
|
|
164
|
+
created_at == o.created_at &&
|
|
165
165
|
plus_address == o.plus_address &&
|
|
166
166
|
full_address == o.full_address
|
|
167
167
|
end
|
|
@@ -175,7 +175,7 @@ module MailSlurpClient
|
|
|
175
175
|
# Calculates hash code according to all attributes.
|
|
176
176
|
# @return [Integer] Hash code
|
|
177
177
|
def hash
|
|
178
|
-
[id, user_id, inbox_id,
|
|
178
|
+
[id, user_id, inbox_id, updated_at, created_at, plus_address, full_address].hash
|
|
179
179
|
end
|
|
180
180
|
|
|
181
181
|
# Builds the object from hash
|
|
@@ -18,14 +18,14 @@ module MailSlurpClient
|
|
|
18
18
|
|
|
19
19
|
attr_accessor :severity
|
|
20
20
|
|
|
21
|
+
attr_accessor :source
|
|
22
|
+
|
|
21
23
|
attr_accessor :created_at
|
|
22
24
|
|
|
23
25
|
attr_accessor :recipient
|
|
24
26
|
|
|
25
27
|
attr_accessor :reputation_type
|
|
26
28
|
|
|
27
|
-
attr_accessor :source
|
|
28
|
-
|
|
29
29
|
class EnumAttributeValidator
|
|
30
30
|
attr_reader :datatype
|
|
31
31
|
attr_reader :allowable_values
|
|
@@ -53,10 +53,10 @@ module MailSlurpClient
|
|
|
53
53
|
{
|
|
54
54
|
:'id' => :'id',
|
|
55
55
|
:'severity' => :'severity',
|
|
56
|
+
:'source' => :'source',
|
|
56
57
|
:'created_at' => :'createdAt',
|
|
57
58
|
:'recipient' => :'recipient',
|
|
58
|
-
:'reputation_type' => :'reputationType'
|
|
59
|
-
:'source' => :'source'
|
|
59
|
+
:'reputation_type' => :'reputationType'
|
|
60
60
|
}
|
|
61
61
|
end
|
|
62
62
|
|
|
@@ -65,10 +65,10 @@ module MailSlurpClient
|
|
|
65
65
|
{
|
|
66
66
|
:'id' => :'String',
|
|
67
67
|
:'severity' => :'String',
|
|
68
|
+
:'source' => :'String',
|
|
68
69
|
:'created_at' => :'DateTime',
|
|
69
70
|
:'recipient' => :'String',
|
|
70
|
-
:'reputation_type' => :'String'
|
|
71
|
-
:'source' => :'String'
|
|
71
|
+
:'reputation_type' => :'String'
|
|
72
72
|
}
|
|
73
73
|
end
|
|
74
74
|
|
|
@@ -101,6 +101,10 @@ module MailSlurpClient
|
|
|
101
101
|
self.severity = attributes[:'severity']
|
|
102
102
|
end
|
|
103
103
|
|
|
104
|
+
if attributes.key?(:'source')
|
|
105
|
+
self.source = attributes[:'source']
|
|
106
|
+
end
|
|
107
|
+
|
|
104
108
|
if attributes.key?(:'created_at')
|
|
105
109
|
self.created_at = attributes[:'created_at']
|
|
106
110
|
end
|
|
@@ -112,10 +116,6 @@ module MailSlurpClient
|
|
|
112
116
|
if attributes.key?(:'reputation_type')
|
|
113
117
|
self.reputation_type = attributes[:'reputation_type']
|
|
114
118
|
end
|
|
115
|
-
|
|
116
|
-
if attributes.key?(:'source')
|
|
117
|
-
self.source = attributes[:'source']
|
|
118
|
-
end
|
|
119
119
|
end
|
|
120
120
|
|
|
121
121
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -182,10 +182,10 @@ module MailSlurpClient
|
|
|
182
182
|
self.class == o.class &&
|
|
183
183
|
id == o.id &&
|
|
184
184
|
severity == o.severity &&
|
|
185
|
+
source == o.source &&
|
|
185
186
|
created_at == o.created_at &&
|
|
186
187
|
recipient == o.recipient &&
|
|
187
|
-
reputation_type == o.reputation_type
|
|
188
|
-
source == o.source
|
|
188
|
+
reputation_type == o.reputation_type
|
|
189
189
|
end
|
|
190
190
|
|
|
191
191
|
# @see the `==` method
|
|
@@ -197,7 +197,7 @@ module MailSlurpClient
|
|
|
197
197
|
# Calculates hash code according to all attributes.
|
|
198
198
|
# @return [Integer] Hash code
|
|
199
199
|
def hash
|
|
200
|
-
[id, severity, created_at, recipient, reputation_type
|
|
200
|
+
[id, severity, source, created_at, recipient, reputation_type].hash
|
|
201
201
|
end
|
|
202
202
|
|
|
203
203
|
# Builds the object from hash
|
|
@@ -19,10 +19,10 @@ module MailSlurpClient
|
|
|
19
19
|
|
|
20
20
|
attr_accessor :id
|
|
21
21
|
|
|
22
|
-
attr_accessor :created_at
|
|
23
|
-
|
|
24
22
|
attr_accessor :updated_at
|
|
25
23
|
|
|
24
|
+
attr_accessor :created_at
|
|
25
|
+
|
|
26
26
|
attr_accessor :variables
|
|
27
27
|
|
|
28
28
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
@@ -30,8 +30,8 @@ module MailSlurpClient
|
|
|
30
30
|
{
|
|
31
31
|
:'name' => :'name',
|
|
32
32
|
:'id' => :'id',
|
|
33
|
-
:'created_at' => :'createdAt',
|
|
34
33
|
:'updated_at' => :'updatedAt',
|
|
34
|
+
:'created_at' => :'createdAt',
|
|
35
35
|
:'variables' => :'variables'
|
|
36
36
|
}
|
|
37
37
|
end
|
|
@@ -41,8 +41,8 @@ module MailSlurpClient
|
|
|
41
41
|
{
|
|
42
42
|
:'name' => :'String',
|
|
43
43
|
:'id' => :'String',
|
|
44
|
-
:'created_at' => :'DateTime',
|
|
45
44
|
:'updated_at' => :'DateTime',
|
|
45
|
+
:'created_at' => :'DateTime',
|
|
46
46
|
:'variables' => :'Array<String>'
|
|
47
47
|
}
|
|
48
48
|
end
|
|
@@ -76,14 +76,14 @@ module MailSlurpClient
|
|
|
76
76
|
self.id = attributes[:'id']
|
|
77
77
|
end
|
|
78
78
|
|
|
79
|
-
if attributes.key?(:'created_at')
|
|
80
|
-
self.created_at = attributes[:'created_at']
|
|
81
|
-
end
|
|
82
|
-
|
|
83
79
|
if attributes.key?(:'updated_at')
|
|
84
80
|
self.updated_at = attributes[:'updated_at']
|
|
85
81
|
end
|
|
86
82
|
|
|
83
|
+
if attributes.key?(:'created_at')
|
|
84
|
+
self.created_at = attributes[:'created_at']
|
|
85
|
+
end
|
|
86
|
+
|
|
87
87
|
if attributes.key?(:'variables')
|
|
88
88
|
if (value = attributes[:'variables']).is_a?(Array)
|
|
89
89
|
self.variables = value
|
|
@@ -103,14 +103,14 @@ module MailSlurpClient
|
|
|
103
103
|
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
|
104
104
|
end
|
|
105
105
|
|
|
106
|
-
if @created_at.nil?
|
|
107
|
-
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
|
108
|
-
end
|
|
109
|
-
|
|
110
106
|
if @updated_at.nil?
|
|
111
107
|
invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
|
|
112
108
|
end
|
|
113
109
|
|
|
110
|
+
if @created_at.nil?
|
|
111
|
+
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
|
112
|
+
end
|
|
113
|
+
|
|
114
114
|
if @variables.nil?
|
|
115
115
|
invalid_properties.push('invalid value for "variables", variables cannot be nil.')
|
|
116
116
|
end
|
|
@@ -123,8 +123,8 @@ module MailSlurpClient
|
|
|
123
123
|
def valid?
|
|
124
124
|
return false if @name.nil?
|
|
125
125
|
return false if @id.nil?
|
|
126
|
-
return false if @created_at.nil?
|
|
127
126
|
return false if @updated_at.nil?
|
|
127
|
+
return false if @created_at.nil?
|
|
128
128
|
return false if @variables.nil?
|
|
129
129
|
true
|
|
130
130
|
end
|
|
@@ -136,8 +136,8 @@ module MailSlurpClient
|
|
|
136
136
|
self.class == o.class &&
|
|
137
137
|
name == o.name &&
|
|
138
138
|
id == o.id &&
|
|
139
|
-
created_at == o.created_at &&
|
|
140
139
|
updated_at == o.updated_at &&
|
|
140
|
+
created_at == o.created_at &&
|
|
141
141
|
variables == o.variables
|
|
142
142
|
end
|
|
143
143
|
|
|
@@ -150,7 +150,7 @@ module MailSlurpClient
|
|
|
150
150
|
# Calculates hash code according to all attributes.
|
|
151
151
|
# @return [Integer] Hash code
|
|
152
152
|
def hash
|
|
153
|
-
[name, id,
|
|
153
|
+
[name, id, updated_at, created_at, variables].hash
|
|
154
154
|
end
|
|
155
155
|
|
|
156
156
|
# Builds the object from hash
|