mailslurp_client 15.19.6 → 15.19.8
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/models/alias_projection.rb +39 -39
- 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 +15 -15
- data/lib/mailslurp_client/models/connector_projection.rb +30 -30
- 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 +23 -23
- data/lib/mailslurp_client/models/expired_inbox_record_projection.rb +19 -19
- data/lib/mailslurp_client/models/imap_email_projection.rb +15 -15
- data/lib/mailslurp_client/models/inbox_forwarder_event_projection.rb +17 -17
- 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 +35 -35
- 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 +41 -41
- data/lib/mailslurp_client/models/tracking_pixel_projection.rb +27 -27
- 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 +1 -1
@@ -15,13 +15,11 @@ require 'date'
|
|
15
15
|
module MailSlurpClient
|
16
16
|
# Tracking pixel data
|
17
17
|
class TrackingPixelProjection
|
18
|
-
attr_accessor :
|
19
|
-
|
20
|
-
attr_accessor :inbox_id
|
18
|
+
attr_accessor :sent_email_id
|
21
19
|
|
22
20
|
attr_accessor :user_id
|
23
21
|
|
24
|
-
attr_accessor :
|
22
|
+
attr_accessor :inbox_id
|
25
23
|
|
26
24
|
attr_accessor :recipient
|
27
25
|
|
@@ -29,6 +27,8 @@ module MailSlurpClient
|
|
29
27
|
|
30
28
|
attr_accessor :seen_at
|
31
29
|
|
30
|
+
attr_accessor :created_at
|
31
|
+
|
32
32
|
attr_accessor :name
|
33
33
|
|
34
34
|
attr_accessor :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
|
-
:'inbox_id' => :'inboxId',
|
41
|
-
:'user_id' => :'userId',
|
42
39
|
:'sent_email_id' => :'sentEmailId',
|
40
|
+
:'user_id' => :'userId',
|
41
|
+
:'inbox_id' => :'inboxId',
|
43
42
|
:'recipient' => :'recipient',
|
44
43
|
:'seen' => :'seen',
|
45
44
|
:'seen_at' => :'seenAt',
|
45
|
+
:'created_at' => :'createdAt',
|
46
46
|
:'name' => :'name',
|
47
47
|
:'id' => :'id'
|
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
|
-
:'inbox_id' => :'String',
|
56
|
-
:'user_id' => :'String',
|
57
54
|
:'sent_email_id' => :'String',
|
55
|
+
:'user_id' => :'String',
|
56
|
+
:'inbox_id' => :'String',
|
58
57
|
:'recipient' => :'String',
|
59
58
|
:'seen' => :'Boolean',
|
60
59
|
:'seen_at' => :'DateTime',
|
60
|
+
:'created_at' => :'DateTime',
|
61
61
|
:'name' => :'String',
|
62
62
|
:'id' => :'String'
|
63
63
|
}
|
@@ -84,20 +84,16 @@ module MailSlurpClient
|
|
84
84
|
h[k.to_sym] = v
|
85
85
|
}
|
86
86
|
|
87
|
-
if attributes.key?(:'
|
88
|
-
self.
|
89
|
-
end
|
90
|
-
|
91
|
-
if attributes.key?(:'inbox_id')
|
92
|
-
self.inbox_id = attributes[:'inbox_id']
|
87
|
+
if attributes.key?(:'sent_email_id')
|
88
|
+
self.sent_email_id = attributes[:'sent_email_id']
|
93
89
|
end
|
94
90
|
|
95
91
|
if attributes.key?(:'user_id')
|
96
92
|
self.user_id = attributes[:'user_id']
|
97
93
|
end
|
98
94
|
|
99
|
-
if attributes.key?(:'
|
100
|
-
self.
|
95
|
+
if attributes.key?(:'inbox_id')
|
96
|
+
self.inbox_id = attributes[:'inbox_id']
|
101
97
|
end
|
102
98
|
|
103
99
|
if attributes.key?(:'recipient')
|
@@ -112,6 +108,10 @@ module MailSlurpClient
|
|
112
108
|
self.seen_at = attributes[:'seen_at']
|
113
109
|
end
|
114
110
|
|
111
|
+
if attributes.key?(:'created_at')
|
112
|
+
self.created_at = attributes[:'created_at']
|
113
|
+
end
|
114
|
+
|
115
115
|
if attributes.key?(:'name')
|
116
116
|
self.name = attributes[:'name']
|
117
117
|
end
|
@@ -125,10 +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 @created_at.nil?
|
129
|
-
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
130
|
-
end
|
131
|
-
|
132
128
|
if @user_id.nil?
|
133
129
|
invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
|
134
130
|
end
|
@@ -137,6 +133,10 @@ module MailSlurpClient
|
|
137
133
|
invalid_properties.push('invalid value for "seen", seen cannot be nil.')
|
138
134
|
end
|
139
135
|
|
136
|
+
if @created_at.nil?
|
137
|
+
invalid_properties.push('invalid value for "created_at", created_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,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 @created_at.nil?
|
151
150
|
return false if @user_id.nil?
|
152
151
|
return false if @seen.nil?
|
152
|
+
return false if @created_at.nil?
|
153
153
|
return false if @id.nil?
|
154
154
|
true
|
155
155
|
end
|
@@ -159,13 +159,13 @@ 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
|
-
inbox_id == o.inbox_id &&
|
164
|
-
user_id == o.user_id &&
|
165
162
|
sent_email_id == o.sent_email_id &&
|
163
|
+
user_id == o.user_id &&
|
164
|
+
inbox_id == o.inbox_id &&
|
166
165
|
recipient == o.recipient &&
|
167
166
|
seen == o.seen &&
|
168
167
|
seen_at == o.seen_at &&
|
168
|
+
created_at == o.created_at &&
|
169
169
|
name == o.name &&
|
170
170
|
id == o.id
|
171
171
|
end
|
@@ -179,7 +179,7 @@ module MailSlurpClient
|
|
179
179
|
# Calculates hash code according to all attributes.
|
180
180
|
# @return [Integer] Hash code
|
181
181
|
def hash
|
182
|
-
[
|
182
|
+
[sent_email_id, user_id, inbox_id, recipient, seen, seen_at, created_at, name, id].hash
|
183
183
|
end
|
184
184
|
|
185
185
|
# Builds the object from hash
|
@@ -15,10 +15,10 @@ require 'date'
|
|
15
15
|
module MailSlurpClient
|
16
16
|
# Unknown missed email projection
|
17
17
|
class UnknownMissedEmailProjection
|
18
|
-
attr_accessor :created_at
|
19
|
-
|
20
18
|
attr_accessor :to
|
21
19
|
|
20
|
+
attr_accessor :created_at
|
21
|
+
|
22
22
|
attr_accessor :subject
|
23
23
|
|
24
24
|
attr_accessor :id
|
@@ -28,8 +28,8 @@ module MailSlurpClient
|
|
28
28
|
# Attribute mapping from ruby-style variable name to JSON key.
|
29
29
|
def self.attribute_map
|
30
30
|
{
|
31
|
-
:'created_at' => :'createdAt',
|
32
31
|
:'to' => :'to',
|
32
|
+
:'created_at' => :'createdAt',
|
33
33
|
:'subject' => :'subject',
|
34
34
|
:'id' => :'id',
|
35
35
|
:'from' => :'from'
|
@@ -39,8 +39,8 @@ module MailSlurpClient
|
|
39
39
|
# Attribute type mapping.
|
40
40
|
def self.openapi_types
|
41
41
|
{
|
42
|
-
:'created_at' => :'DateTime',
|
43
42
|
:'to' => :'Array<String>',
|
43
|
+
:'created_at' => :'DateTime',
|
44
44
|
:'subject' => :'String',
|
45
45
|
:'id' => :'String',
|
46
46
|
:'from' => :'String'
|
@@ -68,16 +68,16 @@ module MailSlurpClient
|
|
68
68
|
h[k.to_sym] = v
|
69
69
|
}
|
70
70
|
|
71
|
-
if attributes.key?(:'created_at')
|
72
|
-
self.created_at = attributes[:'created_at']
|
73
|
-
end
|
74
|
-
|
75
71
|
if attributes.key?(:'to')
|
76
72
|
if (value = attributes[:'to']).is_a?(Array)
|
77
73
|
self.to = value
|
78
74
|
end
|
79
75
|
end
|
80
76
|
|
77
|
+
if attributes.key?(:'created_at')
|
78
|
+
self.created_at = attributes[:'created_at']
|
79
|
+
end
|
80
|
+
|
81
81
|
if attributes.key?(:'subject')
|
82
82
|
self.subject = attributes[:'subject']
|
83
83
|
end
|
@@ -119,8 +119,8 @@ module MailSlurpClient
|
|
119
119
|
def ==(o)
|
120
120
|
return true if self.equal?(o)
|
121
121
|
self.class == o.class &&
|
122
|
-
created_at == o.created_at &&
|
123
122
|
to == o.to &&
|
123
|
+
created_at == o.created_at &&
|
124
124
|
subject == o.subject &&
|
125
125
|
id == o.id &&
|
126
126
|
from == o.from
|
@@ -135,7 +135,7 @@ module MailSlurpClient
|
|
135
135
|
# Calculates hash code according to all attributes.
|
136
136
|
# @return [Integer] Hash code
|
137
137
|
def hash
|
138
|
-
[
|
138
|
+
[to, created_at, subject, id, from].hash
|
139
139
|
end
|
140
140
|
|
141
141
|
# Builds the object from hash
|
@@ -15,10 +15,6 @@ require 'date'
|
|
15
15
|
module MailSlurpClient
|
16
16
|
# Representation of a webhook
|
17
17
|
class WebhookProjection
|
18
|
-
attr_accessor :created_at
|
19
|
-
|
20
|
-
attr_accessor :updated_at
|
21
|
-
|
22
18
|
attr_accessor :url
|
23
19
|
|
24
20
|
attr_accessor :inbox_id
|
@@ -27,6 +23,10 @@ module MailSlurpClient
|
|
27
23
|
|
28
24
|
attr_accessor :phone_number_id
|
29
25
|
|
26
|
+
attr_accessor :created_at
|
27
|
+
|
28
|
+
attr_accessor :updated_at
|
29
|
+
|
30
30
|
attr_accessor :name
|
31
31
|
|
32
32
|
attr_accessor :id
|
@@ -56,12 +56,12 @@ 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',
|
60
|
-
:'updated_at' => :'updatedAt',
|
61
59
|
:'url' => :'url',
|
62
60
|
:'inbox_id' => :'inboxId',
|
63
61
|
:'event_name' => :'eventName',
|
64
62
|
:'phone_number_id' => :'phoneNumberId',
|
63
|
+
:'created_at' => :'createdAt',
|
64
|
+
:'updated_at' => :'updatedAt',
|
65
65
|
:'name' => :'name',
|
66
66
|
:'id' => :'id'
|
67
67
|
}
|
@@ -70,12 +70,12 @@ module MailSlurpClient
|
|
70
70
|
# Attribute type mapping.
|
71
71
|
def self.openapi_types
|
72
72
|
{
|
73
|
-
:'created_at' => :'DateTime',
|
74
|
-
:'updated_at' => :'DateTime',
|
75
73
|
:'url' => :'String',
|
76
74
|
:'inbox_id' => :'String',
|
77
75
|
:'event_name' => :'String',
|
78
76
|
:'phone_number_id' => :'String',
|
77
|
+
:'created_at' => :'DateTime',
|
78
|
+
:'updated_at' => :'DateTime',
|
79
79
|
:'name' => :'String',
|
80
80
|
:'id' => :'String'
|
81
81
|
}
|
@@ -102,14 +102,6 @@ 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
|
-
|
109
|
-
if attributes.key?(:'updated_at')
|
110
|
-
self.updated_at = attributes[:'updated_at']
|
111
|
-
end
|
112
|
-
|
113
105
|
if attributes.key?(:'url')
|
114
106
|
self.url = attributes[:'url']
|
115
107
|
end
|
@@ -126,6 +118,14 @@ module MailSlurpClient
|
|
126
118
|
self.phone_number_id = attributes[:'phone_number_id']
|
127
119
|
end
|
128
120
|
|
121
|
+
if attributes.key?(:'created_at')
|
122
|
+
self.created_at = attributes[:'created_at']
|
123
|
+
end
|
124
|
+
|
125
|
+
if attributes.key?(:'updated_at')
|
126
|
+
self.updated_at = attributes[:'updated_at']
|
127
|
+
end
|
128
|
+
|
129
129
|
if attributes.key?(:'name')
|
130
130
|
self.name = attributes[:'name']
|
131
131
|
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 @url.nil?
|
143
|
+
invalid_properties.push('invalid value for "url", url cannot be nil.')
|
144
|
+
end
|
145
|
+
|
142
146
|
if @created_at.nil?
|
143
147
|
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
144
148
|
end
|
@@ -147,10 +151,6 @@ module MailSlurpClient
|
|
147
151
|
invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
|
148
152
|
end
|
149
153
|
|
150
|
-
if @url.nil?
|
151
|
-
invalid_properties.push('invalid value for "url", url cannot be nil.')
|
152
|
-
end
|
153
|
-
|
154
154
|
if @id.nil?
|
155
155
|
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
156
156
|
end
|
@@ -161,11 +161,11 @@ module MailSlurpClient
|
|
161
161
|
# Check to see if the all the properties in the model are valid
|
162
162
|
# @return true if the model is valid
|
163
163
|
def valid?
|
164
|
-
return false if @created_at.nil?
|
165
|
-
return false if @updated_at.nil?
|
166
164
|
return false if @url.nil?
|
167
165
|
event_name_validator = EnumAttributeValidator.new('String', ["EMAIL_RECEIVED", "NEW_EMAIL", "NEW_CONTACT", "NEW_ATTACHMENT", "EMAIL_OPENED", "EMAIL_READ", "DELIVERY_STATUS", "BOUNCE", "BOUNCE_RECIPIENT", "NEW_SMS"])
|
168
166
|
return false unless event_name_validator.valid?(@event_name)
|
167
|
+
return false if @created_at.nil?
|
168
|
+
return false if @updated_at.nil?
|
169
169
|
return false if @id.nil?
|
170
170
|
true
|
171
171
|
end
|
@@ -185,12 +185,12 @@ module MailSlurpClient
|
|
185
185
|
def ==(o)
|
186
186
|
return true if self.equal?(o)
|
187
187
|
self.class == o.class &&
|
188
|
-
created_at == o.created_at &&
|
189
|
-
updated_at == o.updated_at &&
|
190
188
|
url == o.url &&
|
191
189
|
inbox_id == o.inbox_id &&
|
192
190
|
event_name == o.event_name &&
|
193
191
|
phone_number_id == o.phone_number_id &&
|
192
|
+
created_at == o.created_at &&
|
193
|
+
updated_at == o.updated_at &&
|
194
194
|
name == o.name &&
|
195
195
|
id == o.id
|
196
196
|
end
|
@@ -204,7 +204,7 @@ module MailSlurpClient
|
|
204
204
|
# Calculates hash code according to all attributes.
|
205
205
|
# @return [Integer] Hash code
|
206
206
|
def hash
|
207
|
-
[
|
207
|
+
[url, inbox_id, event_name, phone_number_id, created_at, updated_at, name, id].hash
|
208
208
|
end
|
209
209
|
|
210
210
|
# Builds the object from hash
|