mailslurp_client 15.18.0 → 15.18.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/email_controller_api.rb +2 -2
- 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 +15 -15
- data/lib/mailslurp_client/models/bounce_recipient_projection.rb +22 -22
- data/lib/mailslurp_client/models/connector_projection.rb +15 -15
- 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/email_projection.rb +15 -15
- data/lib/mailslurp_client/models/expired_inbox_record_projection.rb +15 -15
- data/lib/mailslurp_client/models/inbox_forwarder_event_projection.rb +10 -10
- data/lib/mailslurp_client/models/inbox_replier_event_projection.rb +20 -20
- data/lib/mailslurp_client/models/list_unsubscribe_recipient_projection.rb +15 -15
- data/lib/mailslurp_client/models/missed_email_projection.rb +10 -10
- data/lib/mailslurp_client/models/phone_number_projection.rb +15 -15
- data/lib/mailslurp_client/models/sent_email_projection.rb +38 -38
- data/lib/mailslurp_client/models/sms_projection.rb +29 -29
- data/lib/mailslurp_client/models/template_projection.rb +17 -17
- data/lib/mailslurp_client/models/thread_projection.rb +31 -31
- data/lib/mailslurp_client/models/tracking_pixel_projection.rb +15 -15
- data/lib/mailslurp_client/models/unknown_missed_email_projection.rb +10 -10
- data/lib/mailslurp_client/models/webhook_projection.rb +25 -25
- data/lib/mailslurp_client/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 71d1ee9e56f6e239d589320339c23b3260bc367765ad28bc00d2bf83b630ba20
|
4
|
+
data.tar.gz: b1076e91a536946a3a443d8066c997d521df9f4c9b5655955bd36156ba7ea0cf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 28335df6c83826b7769cdac23f17ac397cc912b80f3a57b051c539c6b4219bd21d12a4f202c58e6e31933486e1a014e1f209e0f1a289c7d4fef0b67fff5ccf62
|
7
|
+
data.tar.gz: be6a89f55f26508935f4d098716e56b0230db783906e8e994dd391189839893e416b195087a692cd861f976dc7a5b8c8218671eb1bcf2d30d163b6c8aaaec108
|
@@ -161,7 +161,7 @@ module MailSlurpClient
|
|
161
161
|
end
|
162
162
|
|
163
163
|
# Detect broken links, spelling, and images in email content
|
164
|
-
# Find dead links, broken images, and spelling mistakes in email body. Will call included links via HTTP so do not invoke if your links are sensitive or stateful.
|
164
|
+
# Find dead links, broken images, and spelling mistakes in email body. Will call included links via HTTP so do not invoke if your links are sensitive or stateful. Any resource that returns a 4xx or 5xx response or is not reachable via HEAD or GET HTTP operations will be considered unhealthy.
|
165
165
|
# @param email_id [String]
|
166
166
|
# @param [Hash] opts the optional parameters
|
167
167
|
# @return [CheckEmailBodyResults]
|
@@ -171,7 +171,7 @@ module MailSlurpClient
|
|
171
171
|
end
|
172
172
|
|
173
173
|
# Detect broken links, spelling, and images in email content
|
174
|
-
# Find dead links, broken images, and spelling mistakes in email body. Will call included links via HTTP so do not invoke if your links are sensitive or stateful.
|
174
|
+
# Find dead links, broken images, and spelling mistakes in email body. Will call included links via HTTP so do not invoke if your links are sensitive or stateful. Any resource that returns a 4xx or 5xx response or is not reachable via HEAD or GET HTTP operations will be considered unhealthy.
|
175
175
|
# @param email_id [String]
|
176
176
|
# @param [Hash] opts the optional parameters
|
177
177
|
# @return [Array<(CheckEmailBodyResults, Integer, Hash)>] CheckEmailBodyResults data, response status code and response headers
|
@@ -15,6 +15,10 @@ require 'date'
|
|
15
15
|
module MailSlurpClient
|
16
16
|
# Representation of a alias
|
17
17
|
class AliasProjection
|
18
|
+
attr_accessor :created_at
|
19
|
+
|
20
|
+
attr_accessor :updated_at
|
21
|
+
|
18
22
|
attr_accessor :inbox_id
|
19
23
|
|
20
24
|
attr_accessor :user_id
|
@@ -23,10 +27,6 @@ module MailSlurpClient
|
|
23
27
|
|
24
28
|
attr_accessor :use_threads
|
25
29
|
|
26
|
-
attr_accessor :created_at
|
27
|
-
|
28
|
-
attr_accessor :updated_at
|
29
|
-
|
30
30
|
attr_accessor :name
|
31
31
|
|
32
32
|
attr_accessor :id
|
@@ -34,12 +34,12 @@ module MailSlurpClient
|
|
34
34
|
# Attribute mapping from ruby-style variable name to JSON key.
|
35
35
|
def self.attribute_map
|
36
36
|
{
|
37
|
+
:'created_at' => :'createdAt',
|
38
|
+
:'updated_at' => :'updatedAt',
|
37
39
|
:'inbox_id' => :'inboxId',
|
38
40
|
:'user_id' => :'userId',
|
39
41
|
:'email_address' => :'emailAddress',
|
40
42
|
:'use_threads' => :'useThreads',
|
41
|
-
:'created_at' => :'createdAt',
|
42
|
-
:'updated_at' => :'updatedAt',
|
43
43
|
:'name' => :'name',
|
44
44
|
:'id' => :'id'
|
45
45
|
}
|
@@ -48,12 +48,12 @@ module MailSlurpClient
|
|
48
48
|
# Attribute type mapping.
|
49
49
|
def self.openapi_types
|
50
50
|
{
|
51
|
+
:'created_at' => :'DateTime',
|
52
|
+
:'updated_at' => :'DateTime',
|
51
53
|
:'inbox_id' => :'String',
|
52
54
|
:'user_id' => :'String',
|
53
55
|
:'email_address' => :'String',
|
54
56
|
:'use_threads' => :'Boolean',
|
55
|
-
:'created_at' => :'DateTime',
|
56
|
-
:'updated_at' => :'DateTime',
|
57
57
|
:'name' => :'String',
|
58
58
|
:'id' => :'String'
|
59
59
|
}
|
@@ -80,6 +80,14 @@ module MailSlurpClient
|
|
80
80
|
h[k.to_sym] = v
|
81
81
|
}
|
82
82
|
|
83
|
+
if attributes.key?(:'created_at')
|
84
|
+
self.created_at = attributes[:'created_at']
|
85
|
+
end
|
86
|
+
|
87
|
+
if attributes.key?(:'updated_at')
|
88
|
+
self.updated_at = attributes[:'updated_at']
|
89
|
+
end
|
90
|
+
|
83
91
|
if attributes.key?(:'inbox_id')
|
84
92
|
self.inbox_id = attributes[:'inbox_id']
|
85
93
|
end
|
@@ -96,14 +104,6 @@ module MailSlurpClient
|
|
96
104
|
self.use_threads = attributes[:'use_threads']
|
97
105
|
end
|
98
106
|
|
99
|
-
if attributes.key?(:'created_at')
|
100
|
-
self.created_at = attributes[:'created_at']
|
101
|
-
end
|
102
|
-
|
103
|
-
if attributes.key?(:'updated_at')
|
104
|
-
self.updated_at = attributes[:'updated_at']
|
105
|
-
end
|
106
|
-
|
107
107
|
if attributes.key?(:'name')
|
108
108
|
self.name = attributes[:'name']
|
109
109
|
end
|
@@ -117,6 +117,14 @@ 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 @created_at.nil?
|
121
|
+
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
122
|
+
end
|
123
|
+
|
124
|
+
if @updated_at.nil?
|
125
|
+
invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
|
126
|
+
end
|
127
|
+
|
120
128
|
if @inbox_id.nil?
|
121
129
|
invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
|
122
130
|
end
|
@@ -129,14 +137,6 @@ module MailSlurpClient
|
|
129
137
|
invalid_properties.push('invalid value for "email_address", email_address cannot be nil.')
|
130
138
|
end
|
131
139
|
|
132
|
-
if @created_at.nil?
|
133
|
-
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
134
|
-
end
|
135
|
-
|
136
|
-
if @updated_at.nil?
|
137
|
-
invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
|
138
|
-
end
|
139
|
-
|
140
140
|
if @id.nil?
|
141
141
|
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
142
142
|
end
|
@@ -147,11 +147,11 @@ 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 @created_at.nil?
|
151
|
+
return false if @updated_at.nil?
|
150
152
|
return false if @inbox_id.nil?
|
151
153
|
return false if @user_id.nil?
|
152
154
|
return false if @email_address.nil?
|
153
|
-
return false if @created_at.nil?
|
154
|
-
return false if @updated_at.nil?
|
155
155
|
return false if @id.nil?
|
156
156
|
true
|
157
157
|
end
|
@@ -161,12 +161,12 @@ module MailSlurpClient
|
|
161
161
|
def ==(o)
|
162
162
|
return true if self.equal?(o)
|
163
163
|
self.class == o.class &&
|
164
|
+
created_at == o.created_at &&
|
165
|
+
updated_at == o.updated_at &&
|
164
166
|
inbox_id == o.inbox_id &&
|
165
167
|
user_id == o.user_id &&
|
166
168
|
email_address == o.email_address &&
|
167
169
|
use_threads == o.use_threads &&
|
168
|
-
created_at == o.created_at &&
|
169
|
-
updated_at == o.updated_at &&
|
170
170
|
name == o.name &&
|
171
171
|
id == o.id
|
172
172
|
end
|
@@ -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
|
-
[inbox_id, user_id, email_address, use_threads,
|
183
|
+
[created_at, updated_at, inbox_id, user_id, email_address, use_threads, name, id].hash
|
184
184
|
end
|
185
185
|
|
186
186
|
# Builds the object from hash
|
@@ -15,6 +15,10 @@ require 'date'
|
|
15
15
|
module MailSlurpClient
|
16
16
|
# Email attachment data
|
17
17
|
class AttachmentProjection
|
18
|
+
attr_accessor :created_at
|
19
|
+
|
20
|
+
attr_accessor :updated_at
|
21
|
+
|
18
22
|
attr_accessor :user_id
|
19
23
|
|
20
24
|
# Content ID of attachment.
|
@@ -23,10 +27,6 @@ module MailSlurpClient
|
|
23
27
|
# Attachment ID
|
24
28
|
attr_accessor :attachment_id
|
25
29
|
|
26
|
-
attr_accessor :created_at
|
27
|
-
|
28
|
-
attr_accessor :updated_at
|
29
|
-
|
30
30
|
attr_accessor :name
|
31
31
|
|
32
32
|
# Content length of attachment in bytes
|
@@ -38,11 +38,11 @@ module MailSlurpClient
|
|
38
38
|
# Attribute mapping from ruby-style variable name to JSON key.
|
39
39
|
def self.attribute_map
|
40
40
|
{
|
41
|
+
:'created_at' => :'createdAt',
|
42
|
+
:'updated_at' => :'updatedAt',
|
41
43
|
:'user_id' => :'userId',
|
42
44
|
:'content_id' => :'contentId',
|
43
45
|
:'attachment_id' => :'attachmentId',
|
44
|
-
:'created_at' => :'createdAt',
|
45
|
-
:'updated_at' => :'updatedAt',
|
46
46
|
:'name' => :'name',
|
47
47
|
:'content_length' => :'contentLength',
|
48
48
|
:'content_type' => :'contentType'
|
@@ -52,11 +52,11 @@ module MailSlurpClient
|
|
52
52
|
# Attribute type mapping.
|
53
53
|
def self.openapi_types
|
54
54
|
{
|
55
|
+
:'created_at' => :'DateTime',
|
56
|
+
:'updated_at' => :'DateTime',
|
55
57
|
:'user_id' => :'String',
|
56
58
|
:'content_id' => :'String',
|
57
59
|
:'attachment_id' => :'String',
|
58
|
-
:'created_at' => :'DateTime',
|
59
|
-
:'updated_at' => :'DateTime',
|
60
60
|
:'name' => :'String',
|
61
61
|
:'content_length' => :'Integer',
|
62
62
|
:'content_type' => :'String'
|
@@ -88,6 +88,14 @@ module MailSlurpClient
|
|
88
88
|
h[k.to_sym] = v
|
89
89
|
}
|
90
90
|
|
91
|
+
if attributes.key?(:'created_at')
|
92
|
+
self.created_at = attributes[:'created_at']
|
93
|
+
end
|
94
|
+
|
95
|
+
if attributes.key?(:'updated_at')
|
96
|
+
self.updated_at = attributes[:'updated_at']
|
97
|
+
end
|
98
|
+
|
91
99
|
if attributes.key?(:'user_id')
|
92
100
|
self.user_id = attributes[:'user_id']
|
93
101
|
end
|
@@ -100,14 +108,6 @@ module MailSlurpClient
|
|
100
108
|
self.attachment_id = attributes[:'attachment_id']
|
101
109
|
end
|
102
110
|
|
103
|
-
if attributes.key?(:'created_at')
|
104
|
-
self.created_at = attributes[:'created_at']
|
105
|
-
end
|
106
|
-
|
107
|
-
if attributes.key?(:'updated_at')
|
108
|
-
self.updated_at = attributes[:'updated_at']
|
109
|
-
end
|
110
|
-
|
111
111
|
if attributes.key?(:'name')
|
112
112
|
self.name = attributes[:'name']
|
113
113
|
end
|
@@ -125,14 +125,6 @@ module MailSlurpClient
|
|
125
125
|
# @return Array for valid properties with the reasons
|
126
126
|
def list_invalid_properties
|
127
127
|
invalid_properties = Array.new
|
128
|
-
if @user_id.nil?
|
129
|
-
invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
|
130
|
-
end
|
131
|
-
|
132
|
-
if @attachment_id.nil?
|
133
|
-
invalid_properties.push('invalid value for "attachment_id", attachment_id cannot be nil.')
|
134
|
-
end
|
135
|
-
|
136
128
|
if @created_at.nil?
|
137
129
|
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
138
130
|
end
|
@@ -141,16 +133,24 @@ module MailSlurpClient
|
|
141
133
|
invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
|
142
134
|
end
|
143
135
|
|
136
|
+
if @user_id.nil?
|
137
|
+
invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
|
138
|
+
end
|
139
|
+
|
140
|
+
if @attachment_id.nil?
|
141
|
+
invalid_properties.push('invalid value for "attachment_id", attachment_id cannot be nil.')
|
142
|
+
end
|
143
|
+
|
144
144
|
invalid_properties
|
145
145
|
end
|
146
146
|
|
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 @user_id.nil?
|
151
|
-
return false if @attachment_id.nil?
|
152
150
|
return false if @created_at.nil?
|
153
151
|
return false if @updated_at.nil?
|
152
|
+
return false if @user_id.nil?
|
153
|
+
return false if @attachment_id.nil?
|
154
154
|
true
|
155
155
|
end
|
156
156
|
|
@@ -159,11 +159,11 @@ module MailSlurpClient
|
|
159
159
|
def ==(o)
|
160
160
|
return true if self.equal?(o)
|
161
161
|
self.class == o.class &&
|
162
|
+
created_at == o.created_at &&
|
163
|
+
updated_at == o.updated_at &&
|
162
164
|
user_id == o.user_id &&
|
163
165
|
content_id == o.content_id &&
|
164
166
|
attachment_id == o.attachment_id &&
|
165
|
-
created_at == o.created_at &&
|
166
|
-
updated_at == o.updated_at &&
|
167
167
|
name == o.name &&
|
168
168
|
content_length == o.content_length &&
|
169
169
|
content_type == o.content_type
|
@@ -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
|
+
[created_at, updated_at, user_id, content_id, attachment_id, name, content_length, content_type].hash
|
182
182
|
end
|
183
183
|
|
184
184
|
# Builds the object from hash
|
@@ -15,14 +15,14 @@ require 'date'
|
|
15
15
|
module MailSlurpClient
|
16
16
|
# Bounced email event
|
17
17
|
class BounceProjection
|
18
|
+
attr_accessor :created_at
|
19
|
+
|
18
20
|
attr_accessor :sender
|
19
21
|
|
20
22
|
attr_accessor :bounce_type
|
21
23
|
|
22
24
|
attr_accessor :bounce_mta
|
23
25
|
|
24
|
-
attr_accessor :created_at
|
25
|
-
|
26
26
|
attr_accessor :subject
|
27
27
|
|
28
28
|
attr_accessor :id
|
@@ -30,10 +30,10 @@ module MailSlurpClient
|
|
30
30
|
# Attribute mapping from ruby-style variable name to JSON key.
|
31
31
|
def self.attribute_map
|
32
32
|
{
|
33
|
+
:'created_at' => :'createdAt',
|
33
34
|
:'sender' => :'sender',
|
34
35
|
:'bounce_type' => :'bounceType',
|
35
36
|
:'bounce_mta' => :'bounceMta',
|
36
|
-
:'created_at' => :'createdAt',
|
37
37
|
:'subject' => :'subject',
|
38
38
|
:'id' => :'id'
|
39
39
|
}
|
@@ -42,10 +42,10 @@ module MailSlurpClient
|
|
42
42
|
# Attribute type mapping.
|
43
43
|
def self.openapi_types
|
44
44
|
{
|
45
|
+
:'created_at' => :'DateTime',
|
45
46
|
:'sender' => :'String',
|
46
47
|
:'bounce_type' => :'String',
|
47
48
|
:'bounce_mta' => :'String',
|
48
|
-
:'created_at' => :'DateTime',
|
49
49
|
:'subject' => :'String',
|
50
50
|
:'id' => :'String'
|
51
51
|
}
|
@@ -75,6 +75,10 @@ module MailSlurpClient
|
|
75
75
|
h[k.to_sym] = v
|
76
76
|
}
|
77
77
|
|
78
|
+
if attributes.key?(:'created_at')
|
79
|
+
self.created_at = attributes[:'created_at']
|
80
|
+
end
|
81
|
+
|
78
82
|
if attributes.key?(:'sender')
|
79
83
|
self.sender = attributes[:'sender']
|
80
84
|
end
|
@@ -87,10 +91,6 @@ module MailSlurpClient
|
|
87
91
|
self.bounce_mta = attributes[:'bounce_mta']
|
88
92
|
end
|
89
93
|
|
90
|
-
if attributes.key?(:'created_at')
|
91
|
-
self.created_at = attributes[:'created_at']
|
92
|
-
end
|
93
|
-
|
94
94
|
if attributes.key?(:'subject')
|
95
95
|
self.subject = attributes[:'subject']
|
96
96
|
end
|
@@ -104,22 +104,22 @@ module MailSlurpClient
|
|
104
104
|
# @return Array for valid properties with the reasons
|
105
105
|
def list_invalid_properties
|
106
106
|
invalid_properties = Array.new
|
107
|
-
if @sender.nil?
|
108
|
-
invalid_properties.push('invalid value for "sender", sender cannot be nil.')
|
109
|
-
end
|
110
|
-
|
111
107
|
if @created_at.nil?
|
112
108
|
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
113
109
|
end
|
114
110
|
|
111
|
+
if @sender.nil?
|
112
|
+
invalid_properties.push('invalid value for "sender", sender cannot be nil.')
|
113
|
+
end
|
114
|
+
|
115
115
|
invalid_properties
|
116
116
|
end
|
117
117
|
|
118
118
|
# Check to see if the all the properties in the model are valid
|
119
119
|
# @return true if the model is valid
|
120
120
|
def valid?
|
121
|
-
return false if @sender.nil?
|
122
121
|
return false if @created_at.nil?
|
122
|
+
return false if @sender.nil?
|
123
123
|
true
|
124
124
|
end
|
125
125
|
|
@@ -128,10 +128,10 @@ module MailSlurpClient
|
|
128
128
|
def ==(o)
|
129
129
|
return true if self.equal?(o)
|
130
130
|
self.class == o.class &&
|
131
|
+
created_at == o.created_at &&
|
131
132
|
sender == o.sender &&
|
132
133
|
bounce_type == o.bounce_type &&
|
133
134
|
bounce_mta == o.bounce_mta &&
|
134
|
-
created_at == o.created_at &&
|
135
135
|
subject == o.subject &&
|
136
136
|
id == o.id
|
137
137
|
end
|
@@ -145,7 +145,7 @@ module MailSlurpClient
|
|
145
145
|
# Calculates hash code according to all attributes.
|
146
146
|
# @return [Integer] Hash code
|
147
147
|
def hash
|
148
|
-
[sender, bounce_type, bounce_mta,
|
148
|
+
[created_at, sender, bounce_type, bounce_mta, subject, id].hash
|
149
149
|
end
|
150
150
|
|
151
151
|
# Builds the object from hash
|
@@ -15,15 +15,15 @@ require 'date'
|
|
15
15
|
module MailSlurpClient
|
16
16
|
# Bounced recipient
|
17
17
|
class BounceRecipientProjection
|
18
|
+
attr_accessor :created_at
|
19
|
+
|
18
20
|
attr_accessor :sent_email_id
|
19
21
|
|
20
22
|
attr_accessor :recipient
|
21
23
|
|
22
|
-
attr_accessor :action
|
23
|
-
|
24
24
|
attr_accessor :bounce_type
|
25
25
|
|
26
|
-
attr_accessor :
|
26
|
+
attr_accessor :action
|
27
27
|
|
28
28
|
attr_accessor :id
|
29
29
|
|
@@ -32,11 +32,11 @@ module MailSlurpClient
|
|
32
32
|
# Attribute mapping from ruby-style variable name to JSON key.
|
33
33
|
def self.attribute_map
|
34
34
|
{
|
35
|
+
:'created_at' => :'createdAt',
|
35
36
|
:'sent_email_id' => :'sentEmailId',
|
36
37
|
:'recipient' => :'recipient',
|
37
|
-
:'action' => :'action',
|
38
38
|
:'bounce_type' => :'bounceType',
|
39
|
-
:'
|
39
|
+
:'action' => :'action',
|
40
40
|
:'id' => :'id',
|
41
41
|
:'status' => :'status'
|
42
42
|
}
|
@@ -45,11 +45,11 @@ module MailSlurpClient
|
|
45
45
|
# Attribute type mapping.
|
46
46
|
def self.openapi_types
|
47
47
|
{
|
48
|
+
:'created_at' => :'DateTime',
|
48
49
|
:'sent_email_id' => :'String',
|
49
50
|
:'recipient' => :'String',
|
50
|
-
:'action' => :'String',
|
51
51
|
:'bounce_type' => :'String',
|
52
|
-
:'
|
52
|
+
:'action' => :'String',
|
53
53
|
:'id' => :'String',
|
54
54
|
:'status' => :'String'
|
55
55
|
}
|
@@ -59,8 +59,8 @@ module MailSlurpClient
|
|
59
59
|
def self.openapi_nullable
|
60
60
|
Set.new([
|
61
61
|
:'sent_email_id',
|
62
|
-
:'action',
|
63
62
|
:'bounce_type',
|
63
|
+
:'action',
|
64
64
|
:'status'
|
65
65
|
])
|
66
66
|
end
|
@@ -80,6 +80,10 @@ module MailSlurpClient
|
|
80
80
|
h[k.to_sym] = v
|
81
81
|
}
|
82
82
|
|
83
|
+
if attributes.key?(:'created_at')
|
84
|
+
self.created_at = attributes[:'created_at']
|
85
|
+
end
|
86
|
+
|
83
87
|
if attributes.key?(:'sent_email_id')
|
84
88
|
self.sent_email_id = attributes[:'sent_email_id']
|
85
89
|
end
|
@@ -88,16 +92,12 @@ module MailSlurpClient
|
|
88
92
|
self.recipient = attributes[:'recipient']
|
89
93
|
end
|
90
94
|
|
91
|
-
if attributes.key?(:'action')
|
92
|
-
self.action = attributes[:'action']
|
93
|
-
end
|
94
|
-
|
95
95
|
if attributes.key?(:'bounce_type')
|
96
96
|
self.bounce_type = attributes[:'bounce_type']
|
97
97
|
end
|
98
98
|
|
99
|
-
if attributes.key?(:'
|
100
|
-
self.
|
99
|
+
if attributes.key?(:'action')
|
100
|
+
self.action = attributes[:'action']
|
101
101
|
end
|
102
102
|
|
103
103
|
if attributes.key?(:'id')
|
@@ -113,22 +113,22 @@ module MailSlurpClient
|
|
113
113
|
# @return Array for valid properties with the reasons
|
114
114
|
def list_invalid_properties
|
115
115
|
invalid_properties = Array.new
|
116
|
-
if @recipient.nil?
|
117
|
-
invalid_properties.push('invalid value for "recipient", recipient cannot be nil.')
|
118
|
-
end
|
119
|
-
|
120
116
|
if @created_at.nil?
|
121
117
|
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
122
118
|
end
|
123
119
|
|
120
|
+
if @recipient.nil?
|
121
|
+
invalid_properties.push('invalid value for "recipient", recipient cannot be nil.')
|
122
|
+
end
|
123
|
+
|
124
124
|
invalid_properties
|
125
125
|
end
|
126
126
|
|
127
127
|
# Check to see if the all the properties in the model are valid
|
128
128
|
# @return true if the model is valid
|
129
129
|
def valid?
|
130
|
-
return false if @recipient.nil?
|
131
130
|
return false if @created_at.nil?
|
131
|
+
return false if @recipient.nil?
|
132
132
|
true
|
133
133
|
end
|
134
134
|
|
@@ -137,11 +137,11 @@ module MailSlurpClient
|
|
137
137
|
def ==(o)
|
138
138
|
return true if self.equal?(o)
|
139
139
|
self.class == o.class &&
|
140
|
+
created_at == o.created_at &&
|
140
141
|
sent_email_id == o.sent_email_id &&
|
141
142
|
recipient == o.recipient &&
|
142
|
-
action == o.action &&
|
143
143
|
bounce_type == o.bounce_type &&
|
144
|
-
|
144
|
+
action == o.action &&
|
145
145
|
id == o.id &&
|
146
146
|
status == o.status
|
147
147
|
end
|
@@ -155,7 +155,7 @@ module MailSlurpClient
|
|
155
155
|
# Calculates hash code according to all attributes.
|
156
156
|
# @return [Integer] Hash code
|
157
157
|
def hash
|
158
|
-
[sent_email_id, recipient,
|
158
|
+
[created_at, sent_email_id, recipient, bounce_type, action, id, status].hash
|
159
159
|
end
|
160
160
|
|
161
161
|
# Builds the object from hash
|
@@ -15,6 +15,8 @@ require 'date'
|
|
15
15
|
module MailSlurpClient
|
16
16
|
# Connector
|
17
17
|
class ConnectorProjection
|
18
|
+
attr_accessor :created_at
|
19
|
+
|
18
20
|
attr_accessor :inbox_id
|
19
21
|
|
20
22
|
attr_accessor :user_id
|
@@ -27,8 +29,6 @@ module MailSlurpClient
|
|
27
29
|
|
28
30
|
attr_accessor :sync_interval
|
29
31
|
|
30
|
-
attr_accessor :created_at
|
31
|
-
|
32
32
|
attr_accessor :id
|
33
33
|
|
34
34
|
class EnumAttributeValidator
|
@@ -56,13 +56,13 @@ module MailSlurpClient
|
|
56
56
|
# Attribute mapping from ruby-style variable name to JSON key.
|
57
57
|
def self.attribute_map
|
58
58
|
{
|
59
|
+
:'created_at' => :'createdAt',
|
59
60
|
:'inbox_id' => :'inboxId',
|
60
61
|
:'user_id' => :'userId',
|
61
62
|
:'sync_enabled' => :'syncEnabled',
|
62
63
|
:'connector_type' => :'connectorType',
|
63
64
|
:'sync_schedule_type' => :'syncScheduleType',
|
64
65
|
:'sync_interval' => :'syncInterval',
|
65
|
-
:'created_at' => :'createdAt',
|
66
66
|
:'id' => :'id'
|
67
67
|
}
|
68
68
|
end
|
@@ -70,13 +70,13 @@ module MailSlurpClient
|
|
70
70
|
# Attribute type mapping.
|
71
71
|
def self.openapi_types
|
72
72
|
{
|
73
|
+
:'created_at' => :'DateTime',
|
73
74
|
:'inbox_id' => :'String',
|
74
75
|
:'user_id' => :'String',
|
75
76
|
:'sync_enabled' => :'Boolean',
|
76
77
|
:'connector_type' => :'String',
|
77
78
|
:'sync_schedule_type' => :'String',
|
78
79
|
:'sync_interval' => :'Integer',
|
79
|
-
:'created_at' => :'DateTime',
|
80
80
|
:'id' => :'String'
|
81
81
|
}
|
82
82
|
end
|
@@ -102,6 +102,10 @@ module MailSlurpClient
|
|
102
102
|
h[k.to_sym] = v
|
103
103
|
}
|
104
104
|
|
105
|
+
if attributes.key?(:'created_at')
|
106
|
+
self.created_at = attributes[:'created_at']
|
107
|
+
end
|
108
|
+
|
105
109
|
if attributes.key?(:'inbox_id')
|
106
110
|
self.inbox_id = attributes[:'inbox_id']
|
107
111
|
end
|
@@ -126,10 +130,6 @@ module MailSlurpClient
|
|
126
130
|
self.sync_interval = attributes[:'sync_interval']
|
127
131
|
end
|
128
132
|
|
129
|
-
if attributes.key?(:'created_at')
|
130
|
-
self.created_at = attributes[:'created_at']
|
131
|
-
end
|
132
|
-
|
133
133
|
if attributes.key?(:'id')
|
134
134
|
self.id = attributes[:'id']
|
135
135
|
end
|
@@ -139,6 +139,10 @@ module MailSlurpClient
|
|
139
139
|
# @return Array for valid properties with the reasons
|
140
140
|
def list_invalid_properties
|
141
141
|
invalid_properties = Array.new
|
142
|
+
if @created_at.nil?
|
143
|
+
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
144
|
+
end
|
145
|
+
|
142
146
|
if @inbox_id.nil?
|
143
147
|
invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
|
144
148
|
end
|
@@ -159,16 +163,13 @@ module MailSlurpClient
|
|
159
163
|
invalid_properties.push('invalid value for "sync_schedule_type", sync_schedule_type cannot be nil.')
|
160
164
|
end
|
161
165
|
|
162
|
-
if @created_at.nil?
|
163
|
-
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
164
|
-
end
|
165
|
-
|
166
166
|
invalid_properties
|
167
167
|
end
|
168
168
|
|
169
169
|
# Check to see if the all the properties in the model are valid
|
170
170
|
# @return true if the model is valid
|
171
171
|
def valid?
|
172
|
+
return false if @created_at.nil?
|
172
173
|
return false if @inbox_id.nil?
|
173
174
|
return false if @user_id.nil?
|
174
175
|
return false if @sync_enabled.nil?
|
@@ -178,7 +179,6 @@ module MailSlurpClient
|
|
178
179
|
return false if @sync_schedule_type.nil?
|
179
180
|
sync_schedule_type_validator = EnumAttributeValidator.new('String', ["INTERVAL"])
|
180
181
|
return false unless sync_schedule_type_validator.valid?(@sync_schedule_type)
|
181
|
-
return false if @created_at.nil?
|
182
182
|
true
|
183
183
|
end
|
184
184
|
|
@@ -207,13 +207,13 @@ module MailSlurpClient
|
|
207
207
|
def ==(o)
|
208
208
|
return true if self.equal?(o)
|
209
209
|
self.class == o.class &&
|
210
|
+
created_at == o.created_at &&
|
210
211
|
inbox_id == o.inbox_id &&
|
211
212
|
user_id == o.user_id &&
|
212
213
|
sync_enabled == o.sync_enabled &&
|
213
214
|
connector_type == o.connector_type &&
|
214
215
|
sync_schedule_type == o.sync_schedule_type &&
|
215
216
|
sync_interval == o.sync_interval &&
|
216
|
-
created_at == o.created_at &&
|
217
217
|
id == o.id
|
218
218
|
end
|
219
219
|
|
@@ -226,7 +226,7 @@ module MailSlurpClient
|
|
226
226
|
# Calculates hash code according to all attributes.
|
227
227
|
# @return [Integer] Hash code
|
228
228
|
def hash
|
229
|
-
[inbox_id, user_id, sync_enabled, connector_type, sync_schedule_type, sync_interval,
|
229
|
+
[created_at, inbox_id, user_id, sync_enabled, connector_type, sync_schedule_type, sync_interval, id].hash
|
230
230
|
end
|
231
231
|
|
232
232
|
# Builds the object from hash
|