mailslurp_client 15.18.5 → 15.19.1
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/connector_controller_api.rb +260 -0
- data/lib/mailslurp_client/api/domain_controller_api.rb +126 -0
- data/lib/mailslurp_client/api/email_controller_api.rb +138 -0
- data/lib/mailslurp_client/api/imap_controller_api.rb +279 -0
- data/lib/mailslurp_client/api/inbox_controller_api.rb +114 -0
- data/lib/mailslurp_client/api/inbox_forwarder_controller_api.rb +3 -0
- data/lib/mailslurp_client/api/mail_server_controller_api.rb +62 -0
- data/lib/mailslurp_client/models/alias_projection.rb +29 -29
- data/lib/mailslurp_client/models/attachment_projection.rb +29 -29
- data/lib/mailslurp_client/models/bounce_projection.rb +29 -29
- data/lib/mailslurp_client/models/bounce_recipient_projection.rb +22 -22
- data/lib/mailslurp_client/models/connector_dto.rb +42 -108
- data/lib/mailslurp_client/models/connector_imap_connection_dto.rb +311 -0
- data/lib/mailslurp_client/models/connector_projection.rb +39 -43
- data/lib/mailslurp_client/models/connector_smtp_connection_dto.rb +293 -0
- data/lib/mailslurp_client/models/connector_sync_event_projection.rb +15 -15
- data/lib/mailslurp_client/models/contact_projection.rb +10 -10
- data/lib/mailslurp_client/models/create_connector_imap_connection_options.rb +286 -0
- data/lib/mailslurp_client/models/create_connector_options.rb +38 -87
- data/lib/mailslurp_client/models/create_connector_smtp_connection_options.rb +256 -0
- data/lib/mailslurp_client/models/dns_lookup_options.rb +1 -1
- data/lib/mailslurp_client/models/dns_lookups_options.rb +214 -0
- data/lib/mailslurp_client/models/domain_group.rb +261 -0
- data/lib/mailslurp_client/models/domain_groups_dto.rb +213 -0
- data/lib/mailslurp_client/models/domain_information.rb +274 -0
- data/lib/mailslurp_client/models/email_preview_urls.rb +18 -4
- data/lib/mailslurp_client/models/email_projection.rb +19 -19
- data/lib/mailslurp_client/models/email_screenshot_result.rb +211 -0
- data/lib/mailslurp_client/models/expired_inbox_record_projection.rb +15 -15
- data/lib/mailslurp_client/models/get_email_screenshot_options.rb +220 -0
- data/lib/mailslurp_client/models/imap_access_details.rb +273 -0
- data/lib/mailslurp_client/models/imap_email_projection.rb +239 -0
- data/lib/mailslurp_client/models/{create_connector_imap_options.rb → imap_server_fetch_item.rb} +55 -49
- data/lib/mailslurp_client/models/imap_server_fetch_result.rb +208 -0
- data/lib/mailslurp_client/models/{create_connector_imap_fetch_options.rb → imap_server_list_options.rb} +18 -16
- data/lib/mailslurp_client/models/imap_server_list_result.rb +213 -0
- data/lib/mailslurp_client/models/imap_server_search_options.rb +318 -0
- data/lib/mailslurp_client/models/imap_server_search_result.rb +213 -0
- data/lib/mailslurp_client/models/imap_smtp_access_details.rb +16 -1
- data/lib/mailslurp_client/models/imap_update_flags_options.rb +277 -0
- data/lib/mailslurp_client/models/inbox_forwarder_event_projection.rb +10 -10
- data/lib/mailslurp_client/models/inbox_replier_event_projection.rb +10 -10
- data/lib/mailslurp_client/models/list_unsubscribe_recipient_projection.rb +15 -15
- data/lib/mailslurp_client/models/match_option.rb +4 -4
- data/lib/mailslurp_client/models/missed_email_projection.rb +14 -14
- data/lib/mailslurp_client/models/page_alias.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_sync_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_validation_request.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_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_list_unsubscribe_recipients.rb +15 -15
- data/lib/mailslurp_client/models/page_missed_email_projection.rb +15 -15
- data/lib/mailslurp_client/models/page_organization_inbox_projection.rb +15 -15
- data/lib/mailslurp_client/models/page_phone_number_projection.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_sms_projection.rb +15 -15
- data/lib/mailslurp_client/models/page_template_projection.rb +15 -15
- data/lib/mailslurp_client/models/page_thread_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_projection.rb +15 -15
- data/lib/mailslurp_client/models/page_webhook_result.rb +15 -15
- data/lib/mailslurp_client/models/phone_number_projection.rb +15 -15
- data/lib/mailslurp_client/models/sent_email_projection.rb +35 -35
- data/lib/mailslurp_client/models/sms_match_option.rb +2 -2
- data/lib/mailslurp_client/models/sms_projection.rb +29 -29
- data/lib/mailslurp_client/models/smtp_access_details.rb +329 -0
- data/lib/mailslurp_client/models/template_projection.rb +17 -17
- data/lib/mailslurp_client/models/thread_projection.rb +35 -35
- data/lib/mailslurp_client/models/tracking_pixel_projection.rb +15 -15
- data/lib/mailslurp_client/models/unknown_missed_email_projection.rb +13 -13
- data/lib/mailslurp_client/models/webhook_projection.rb +25 -25
- data/lib/mailslurp_client/version.rb +1 -1
- data/lib/mailslurp_client.rb +21 -2
- metadata +23 -4
@@ -0,0 +1,293 @@
|
|
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
|
+
class ConnectorSmtpConnectionDto
|
17
|
+
attr_accessor :connector_id
|
18
|
+
|
19
|
+
attr_accessor :smtp_host
|
20
|
+
|
21
|
+
attr_accessor :smtp_port
|
22
|
+
|
23
|
+
attr_accessor :smtp_username
|
24
|
+
|
25
|
+
attr_accessor :smtp_password
|
26
|
+
|
27
|
+
attr_accessor :smtp_ssl
|
28
|
+
|
29
|
+
attr_accessor :enabled
|
30
|
+
|
31
|
+
attr_accessor :created_at
|
32
|
+
|
33
|
+
attr_accessor :id
|
34
|
+
|
35
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
36
|
+
def self.attribute_map
|
37
|
+
{
|
38
|
+
:'connector_id' => :'connectorId',
|
39
|
+
:'smtp_host' => :'smtpHost',
|
40
|
+
:'smtp_port' => :'smtpPort',
|
41
|
+
:'smtp_username' => :'smtpUsername',
|
42
|
+
:'smtp_password' => :'smtpPassword',
|
43
|
+
:'smtp_ssl' => :'smtpSsl',
|
44
|
+
:'enabled' => :'enabled',
|
45
|
+
:'created_at' => :'createdAt',
|
46
|
+
:'id' => :'id'
|
47
|
+
}
|
48
|
+
end
|
49
|
+
|
50
|
+
# Attribute type mapping.
|
51
|
+
def self.openapi_types
|
52
|
+
{
|
53
|
+
:'connector_id' => :'String',
|
54
|
+
:'smtp_host' => :'String',
|
55
|
+
:'smtp_port' => :'Integer',
|
56
|
+
:'smtp_username' => :'String',
|
57
|
+
:'smtp_password' => :'String',
|
58
|
+
:'smtp_ssl' => :'Boolean',
|
59
|
+
:'enabled' => :'Boolean',
|
60
|
+
:'created_at' => :'DateTime',
|
61
|
+
:'id' => :'String'
|
62
|
+
}
|
63
|
+
end
|
64
|
+
|
65
|
+
# List of attributes with nullable: true
|
66
|
+
def self.openapi_nullable
|
67
|
+
Set.new([
|
68
|
+
])
|
69
|
+
end
|
70
|
+
|
71
|
+
# Initializes the object
|
72
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
73
|
+
def initialize(attributes = {})
|
74
|
+
if (!attributes.is_a?(Hash))
|
75
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `MailSlurpClient::ConnectorSmtpConnectionDto` initialize method"
|
76
|
+
end
|
77
|
+
|
78
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
79
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
80
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
81
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `MailSlurpClient::ConnectorSmtpConnectionDto`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
82
|
+
end
|
83
|
+
h[k.to_sym] = v
|
84
|
+
}
|
85
|
+
|
86
|
+
if attributes.key?(:'connector_id')
|
87
|
+
self.connector_id = attributes[:'connector_id']
|
88
|
+
end
|
89
|
+
|
90
|
+
if attributes.key?(:'smtp_host')
|
91
|
+
self.smtp_host = attributes[:'smtp_host']
|
92
|
+
end
|
93
|
+
|
94
|
+
if attributes.key?(:'smtp_port')
|
95
|
+
self.smtp_port = attributes[:'smtp_port']
|
96
|
+
end
|
97
|
+
|
98
|
+
if attributes.key?(:'smtp_username')
|
99
|
+
self.smtp_username = attributes[:'smtp_username']
|
100
|
+
end
|
101
|
+
|
102
|
+
if attributes.key?(:'smtp_password')
|
103
|
+
self.smtp_password = attributes[:'smtp_password']
|
104
|
+
end
|
105
|
+
|
106
|
+
if attributes.key?(:'smtp_ssl')
|
107
|
+
self.smtp_ssl = attributes[:'smtp_ssl']
|
108
|
+
end
|
109
|
+
|
110
|
+
if attributes.key?(:'enabled')
|
111
|
+
self.enabled = attributes[:'enabled']
|
112
|
+
end
|
113
|
+
|
114
|
+
if attributes.key?(:'created_at')
|
115
|
+
self.created_at = attributes[:'created_at']
|
116
|
+
end
|
117
|
+
|
118
|
+
if attributes.key?(:'id')
|
119
|
+
self.id = attributes[:'id']
|
120
|
+
end
|
121
|
+
end
|
122
|
+
|
123
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
124
|
+
# @return Array for valid properties with the reasons
|
125
|
+
def list_invalid_properties
|
126
|
+
invalid_properties = Array.new
|
127
|
+
if @connector_id.nil?
|
128
|
+
invalid_properties.push('invalid value for "connector_id", connector_id cannot be nil.')
|
129
|
+
end
|
130
|
+
|
131
|
+
if @created_at.nil?
|
132
|
+
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
133
|
+
end
|
134
|
+
|
135
|
+
if @id.nil?
|
136
|
+
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
137
|
+
end
|
138
|
+
|
139
|
+
invalid_properties
|
140
|
+
end
|
141
|
+
|
142
|
+
# Check to see if the all the properties in the model are valid
|
143
|
+
# @return true if the model is valid
|
144
|
+
def valid?
|
145
|
+
return false if @connector_id.nil?
|
146
|
+
return false if @created_at.nil?
|
147
|
+
return false if @id.nil?
|
148
|
+
true
|
149
|
+
end
|
150
|
+
|
151
|
+
# Checks equality by comparing each attribute.
|
152
|
+
# @param [Object] Object to be compared
|
153
|
+
def ==(o)
|
154
|
+
return true if self.equal?(o)
|
155
|
+
self.class == o.class &&
|
156
|
+
connector_id == o.connector_id &&
|
157
|
+
smtp_host == o.smtp_host &&
|
158
|
+
smtp_port == o.smtp_port &&
|
159
|
+
smtp_username == o.smtp_username &&
|
160
|
+
smtp_password == o.smtp_password &&
|
161
|
+
smtp_ssl == o.smtp_ssl &&
|
162
|
+
enabled == o.enabled &&
|
163
|
+
created_at == o.created_at &&
|
164
|
+
id == o.id
|
165
|
+
end
|
166
|
+
|
167
|
+
# @see the `==` method
|
168
|
+
# @param [Object] Object to be compared
|
169
|
+
def eql?(o)
|
170
|
+
self == o
|
171
|
+
end
|
172
|
+
|
173
|
+
# Calculates hash code according to all attributes.
|
174
|
+
# @return [Integer] Hash code
|
175
|
+
def hash
|
176
|
+
[connector_id, smtp_host, smtp_port, smtp_username, smtp_password, smtp_ssl, enabled, created_at, id].hash
|
177
|
+
end
|
178
|
+
|
179
|
+
# Builds the object from hash
|
180
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
181
|
+
# @return [Object] Returns the model itself
|
182
|
+
def self.build_from_hash(attributes)
|
183
|
+
new.build_from_hash(attributes)
|
184
|
+
end
|
185
|
+
|
186
|
+
# Builds the object from hash
|
187
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
188
|
+
# @return [Object] Returns the model itself
|
189
|
+
def build_from_hash(attributes)
|
190
|
+
return nil unless attributes.is_a?(Hash)
|
191
|
+
self.class.openapi_types.each_pair do |key, type|
|
192
|
+
if type =~ /\AArray<(.*)>/i
|
193
|
+
# check to ensure the input is an array given that the attribute
|
194
|
+
# is documented as an array but the input is not
|
195
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
196
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
197
|
+
end
|
198
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
199
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
200
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
201
|
+
end
|
202
|
+
|
203
|
+
self
|
204
|
+
end
|
205
|
+
|
206
|
+
# Deserializes the data based on type
|
207
|
+
# @param string type Data type
|
208
|
+
# @param string value Value to be deserialized
|
209
|
+
# @return [Object] Deserialized data
|
210
|
+
def _deserialize(type, value)
|
211
|
+
case type.to_sym
|
212
|
+
when :DateTime
|
213
|
+
DateTime.parse(value)
|
214
|
+
when :Date
|
215
|
+
Date.parse(value)
|
216
|
+
when :String
|
217
|
+
value.to_s
|
218
|
+
when :Integer
|
219
|
+
value.to_i
|
220
|
+
when :Float
|
221
|
+
value.to_f
|
222
|
+
when :Boolean
|
223
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
224
|
+
true
|
225
|
+
else
|
226
|
+
false
|
227
|
+
end
|
228
|
+
when :Object
|
229
|
+
# generic object (usually a Hash), return directly
|
230
|
+
value
|
231
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
232
|
+
inner_type = Regexp.last_match[:inner_type]
|
233
|
+
value.map { |v| _deserialize(inner_type, v) }
|
234
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
235
|
+
k_type = Regexp.last_match[:k_type]
|
236
|
+
v_type = Regexp.last_match[:v_type]
|
237
|
+
{}.tap do |hash|
|
238
|
+
value.each do |k, v|
|
239
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
240
|
+
end
|
241
|
+
end
|
242
|
+
else # model
|
243
|
+
MailSlurpClient.const_get(type).build_from_hash(value)
|
244
|
+
end
|
245
|
+
end
|
246
|
+
|
247
|
+
# Returns the string representation of the object
|
248
|
+
# @return [String] String presentation of the object
|
249
|
+
def to_s
|
250
|
+
to_hash.to_s
|
251
|
+
end
|
252
|
+
|
253
|
+
# to_body is an alias to to_hash (backward compatibility)
|
254
|
+
# @return [Hash] Returns the object in the form of hash
|
255
|
+
def to_body
|
256
|
+
to_hash
|
257
|
+
end
|
258
|
+
|
259
|
+
# Returns the object in the form of hash
|
260
|
+
# @return [Hash] Returns the object in the form of hash
|
261
|
+
def to_hash
|
262
|
+
hash = {}
|
263
|
+
self.class.attribute_map.each_pair do |attr, param|
|
264
|
+
value = self.send(attr)
|
265
|
+
if value.nil?
|
266
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
267
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
268
|
+
end
|
269
|
+
|
270
|
+
hash[param] = _to_hash(value)
|
271
|
+
end
|
272
|
+
hash
|
273
|
+
end
|
274
|
+
|
275
|
+
# Outputs non-array value in the form of hash
|
276
|
+
# For object, use to_hash. Otherwise, just return the value
|
277
|
+
# @param [Object] value Any valid value
|
278
|
+
# @return [Hash] Returns the value in the form of hash
|
279
|
+
def _to_hash(value)
|
280
|
+
if value.is_a?(Array)
|
281
|
+
value.compact.map { |v| _to_hash(v) }
|
282
|
+
elsif value.is_a?(Hash)
|
283
|
+
{}.tap do |hash|
|
284
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
285
|
+
end
|
286
|
+
elsif value.respond_to? :to_hash
|
287
|
+
value.to_hash
|
288
|
+
else
|
289
|
+
value
|
290
|
+
end
|
291
|
+
end
|
292
|
+
end
|
293
|
+
end
|
@@ -15,14 +15,14 @@ require 'date'
|
|
15
15
|
module MailSlurpClient
|
16
16
|
# ConnectorSyncEventProjection
|
17
17
|
class ConnectorSyncEventProjection
|
18
|
-
attr_accessor :created_at
|
19
|
-
|
20
18
|
attr_accessor :connector_id
|
21
19
|
|
22
20
|
attr_accessor :sync_count
|
23
21
|
|
24
22
|
attr_accessor :sync_status
|
25
23
|
|
24
|
+
attr_accessor :created_at
|
25
|
+
|
26
26
|
attr_accessor :message
|
27
27
|
|
28
28
|
attr_accessor :id
|
@@ -52,10 +52,10 @@ module MailSlurpClient
|
|
52
52
|
# Attribute mapping from ruby-style variable name to JSON key.
|
53
53
|
def self.attribute_map
|
54
54
|
{
|
55
|
-
:'created_at' => :'createdAt',
|
56
55
|
:'connector_id' => :'connectorId',
|
57
56
|
:'sync_count' => :'syncCount',
|
58
57
|
:'sync_status' => :'syncStatus',
|
58
|
+
:'created_at' => :'createdAt',
|
59
59
|
:'message' => :'message',
|
60
60
|
:'id' => :'id'
|
61
61
|
}
|
@@ -64,10 +64,10 @@ module MailSlurpClient
|
|
64
64
|
# Attribute type mapping.
|
65
65
|
def self.openapi_types
|
66
66
|
{
|
67
|
-
:'created_at' => :'DateTime',
|
68
67
|
:'connector_id' => :'String',
|
69
68
|
:'sync_count' => :'Integer',
|
70
69
|
:'sync_status' => :'String',
|
70
|
+
:'created_at' => :'DateTime',
|
71
71
|
:'message' => :'String',
|
72
72
|
:'id' => :'String'
|
73
73
|
}
|
@@ -94,10 +94,6 @@ module MailSlurpClient
|
|
94
94
|
h[k.to_sym] = v
|
95
95
|
}
|
96
96
|
|
97
|
-
if attributes.key?(:'created_at')
|
98
|
-
self.created_at = attributes[:'created_at']
|
99
|
-
end
|
100
|
-
|
101
97
|
if attributes.key?(:'connector_id')
|
102
98
|
self.connector_id = attributes[:'connector_id']
|
103
99
|
end
|
@@ -110,6 +106,10 @@ module MailSlurpClient
|
|
110
106
|
self.sync_status = attributes[:'sync_status']
|
111
107
|
end
|
112
108
|
|
109
|
+
if attributes.key?(:'created_at')
|
110
|
+
self.created_at = attributes[:'created_at']
|
111
|
+
end
|
112
|
+
|
113
113
|
if attributes.key?(:'message')
|
114
114
|
self.message = attributes[:'message']
|
115
115
|
end
|
@@ -123,10 +123,6 @@ module MailSlurpClient
|
|
123
123
|
# @return Array for valid properties with the reasons
|
124
124
|
def list_invalid_properties
|
125
125
|
invalid_properties = Array.new
|
126
|
-
if @created_at.nil?
|
127
|
-
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
128
|
-
end
|
129
|
-
|
130
126
|
if @connector_id.nil?
|
131
127
|
invalid_properties.push('invalid value for "connector_id", connector_id cannot be nil.')
|
132
128
|
end
|
@@ -139,18 +135,22 @@ module MailSlurpClient
|
|
139
135
|
invalid_properties.push('invalid value for "sync_status", sync_status cannot be nil.')
|
140
136
|
end
|
141
137
|
|
138
|
+
if @created_at.nil?
|
139
|
+
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
140
|
+
end
|
141
|
+
|
142
142
|
invalid_properties
|
143
143
|
end
|
144
144
|
|
145
145
|
# Check to see if the all the properties in the model are valid
|
146
146
|
# @return true if the model is valid
|
147
147
|
def valid?
|
148
|
-
return false if @created_at.nil?
|
149
148
|
return false if @connector_id.nil?
|
150
149
|
return false if @sync_count.nil?
|
151
150
|
return false if @sync_status.nil?
|
152
151
|
sync_status_validator = EnumAttributeValidator.new('String', ["SUCCESS", "INTERNAL_ERROR", "SUBSCRIPTION_ERROR", "CONNECTION_ERROR", "NOT_FOUND"])
|
153
152
|
return false unless sync_status_validator.valid?(@sync_status)
|
153
|
+
return false if @created_at.nil?
|
154
154
|
true
|
155
155
|
end
|
156
156
|
|
@@ -169,10 +169,10 @@ module MailSlurpClient
|
|
169
169
|
def ==(o)
|
170
170
|
return true if self.equal?(o)
|
171
171
|
self.class == o.class &&
|
172
|
-
created_at == o.created_at &&
|
173
172
|
connector_id == o.connector_id &&
|
174
173
|
sync_count == o.sync_count &&
|
175
174
|
sync_status == o.sync_status &&
|
175
|
+
created_at == o.created_at &&
|
176
176
|
message == o.message &&
|
177
177
|
id == o.id
|
178
178
|
end
|
@@ -186,7 +186,7 @@ module MailSlurpClient
|
|
186
186
|
# Calculates hash code according to all attributes.
|
187
187
|
# @return [Integer] Hash code
|
188
188
|
def hash
|
189
|
-
[
|
189
|
+
[connector_id, sync_count, sync_status, created_at, message, id].hash
|
190
190
|
end
|
191
191
|
|
192
192
|
# Builds the object from hash
|
@@ -15,8 +15,6 @@ require 'date'
|
|
15
15
|
module MailSlurpClient
|
16
16
|
# Email contact for address book
|
17
17
|
class ContactProjection
|
18
|
-
attr_accessor :created_at
|
19
|
-
|
20
18
|
attr_accessor :email_address
|
21
19
|
|
22
20
|
attr_accessor :email_addresses
|
@@ -29,6 +27,8 @@ module MailSlurpClient
|
|
29
27
|
|
30
28
|
attr_accessor :opt_out
|
31
29
|
|
30
|
+
attr_accessor :created_at
|
31
|
+
|
32
32
|
attr_accessor :id
|
33
33
|
|
34
34
|
attr_accessor :group_id
|
@@ -36,13 +36,13 @@ module MailSlurpClient
|
|
36
36
|
# Attribute mapping from ruby-style variable name to JSON key.
|
37
37
|
def self.attribute_map
|
38
38
|
{
|
39
|
-
:'created_at' => :'createdAt',
|
40
39
|
:'email_address' => :'emailAddress',
|
41
40
|
:'email_addresses' => :'emailAddresses',
|
42
41
|
:'first_name' => :'firstName',
|
43
42
|
:'last_name' => :'lastName',
|
44
43
|
:'company' => :'company',
|
45
44
|
:'opt_out' => :'optOut',
|
45
|
+
:'created_at' => :'createdAt',
|
46
46
|
:'id' => :'id',
|
47
47
|
:'group_id' => :'groupId'
|
48
48
|
}
|
@@ -51,13 +51,13 @@ module MailSlurpClient
|
|
51
51
|
# Attribute type mapping.
|
52
52
|
def self.openapi_types
|
53
53
|
{
|
54
|
-
:'created_at' => :'DateTime',
|
55
54
|
:'email_address' => :'String',
|
56
55
|
:'email_addresses' => :'Array<String>',
|
57
56
|
:'first_name' => :'String',
|
58
57
|
:'last_name' => :'String',
|
59
58
|
:'company' => :'String',
|
60
59
|
:'opt_out' => :'Boolean',
|
60
|
+
:'created_at' => :'DateTime',
|
61
61
|
:'id' => :'String',
|
62
62
|
:'group_id' => :'String'
|
63
63
|
}
|
@@ -91,10 +91,6 @@ module MailSlurpClient
|
|
91
91
|
h[k.to_sym] = v
|
92
92
|
}
|
93
93
|
|
94
|
-
if attributes.key?(:'created_at')
|
95
|
-
self.created_at = attributes[:'created_at']
|
96
|
-
end
|
97
|
-
|
98
94
|
if attributes.key?(:'email_address')
|
99
95
|
self.email_address = attributes[:'email_address']
|
100
96
|
end
|
@@ -121,6 +117,10 @@ module MailSlurpClient
|
|
121
117
|
self.opt_out = attributes[:'opt_out']
|
122
118
|
end
|
123
119
|
|
120
|
+
if attributes.key?(:'created_at')
|
121
|
+
self.created_at = attributes[:'created_at']
|
122
|
+
end
|
123
|
+
|
124
124
|
if attributes.key?(:'id')
|
125
125
|
self.id = attributes[:'id']
|
126
126
|
end
|
@@ -158,13 +158,13 @@ module MailSlurpClient
|
|
158
158
|
def ==(o)
|
159
159
|
return true if self.equal?(o)
|
160
160
|
self.class == o.class &&
|
161
|
-
created_at == o.created_at &&
|
162
161
|
email_address == o.email_address &&
|
163
162
|
email_addresses == o.email_addresses &&
|
164
163
|
first_name == o.first_name &&
|
165
164
|
last_name == o.last_name &&
|
166
165
|
company == o.company &&
|
167
166
|
opt_out == o.opt_out &&
|
167
|
+
created_at == o.created_at &&
|
168
168
|
id == o.id &&
|
169
169
|
group_id == o.group_id
|
170
170
|
end
|
@@ -178,7 +178,7 @@ module MailSlurpClient
|
|
178
178
|
# Calculates hash code according to all attributes.
|
179
179
|
# @return [Integer] Hash code
|
180
180
|
def hash
|
181
|
-
[
|
181
|
+
[email_address, email_addresses, first_name, last_name, company, opt_out, created_at, id, group_id].hash
|
182
182
|
end
|
183
183
|
|
184
184
|
# Builds the object from hash
|