mailslurp_client 15.17.23 → 15.17.24
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 +69 -0
- data/lib/mailslurp_client/models/alias_projection.rb +28 -28
- data/lib/mailslurp_client/models/attachment_projection.rb +11 -11
- data/lib/mailslurp_client/models/bounce_projection.rb +17 -17
- data/lib/mailslurp_client/models/bounce_recipient_projection.rb +22 -22
- data/lib/mailslurp_client/models/connector_projection.rb +24 -24
- 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_content_part_result.rb +207 -0
- data/lib/mailslurp_client/models/email_projection.rb +25 -25
- data/lib/mailslurp_client/models/expired_inbox_record_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 +27 -27
- data/lib/mailslurp_client/models/list_unsubscribe_recipient_projection.rb +10 -10
- data/lib/mailslurp_client/models/missed_email_projection.rb +11 -11
- data/lib/mailslurp_client/models/page_alias.rb +17 -16
- data/lib/mailslurp_client/models/page_attachment_entity.rb +17 -16
- data/lib/mailslurp_client/models/page_bounced_email.rb +17 -16
- data/lib/mailslurp_client/models/page_bounced_recipients.rb +17 -16
- data/lib/mailslurp_client/models/page_complaint.rb +17 -16
- data/lib/mailslurp_client/models/page_connector.rb +17 -16
- data/lib/mailslurp_client/models/page_connector_sync_events.rb +17 -16
- data/lib/mailslurp_client/models/page_contact_projection.rb +17 -16
- data/lib/mailslurp_client/models/page_delivery_status.rb +17 -16
- data/lib/mailslurp_client/models/page_email_preview.rb +17 -16
- data/lib/mailslurp_client/models/page_email_projection.rb +12 -21
- data/lib/mailslurp_client/models/page_email_validation_request.rb +17 -16
- data/lib/mailslurp_client/models/page_expired_inbox_record_projection.rb +17 -16
- data/lib/mailslurp_client/models/page_group_projection.rb +17 -16
- data/lib/mailslurp_client/models/page_inbox_forwarder_dto.rb +17 -16
- data/lib/mailslurp_client/models/page_inbox_forwarder_events.rb +17 -16
- data/lib/mailslurp_client/models/page_inbox_projection.rb +17 -16
- data/lib/mailslurp_client/models/page_inbox_replier_dto.rb +17 -16
- data/lib/mailslurp_client/models/page_inbox_replier_events.rb +17 -16
- data/lib/mailslurp_client/models/page_inbox_ruleset_dto.rb +17 -16
- data/lib/mailslurp_client/models/page_list_unsubscribe_recipients.rb +17 -16
- data/lib/mailslurp_client/models/page_missed_email_projection.rb +17 -16
- data/lib/mailslurp_client/models/page_organization_inbox_projection.rb +17 -16
- data/lib/mailslurp_client/models/page_phone_number_projection.rb +17 -16
- data/lib/mailslurp_client/models/page_scheduled_jobs.rb +17 -16
- data/lib/mailslurp_client/models/page_sent_email_projection.rb +34 -69
- data/lib/mailslurp_client/models/page_sent_email_with_queue_projection.rb +34 -69
- data/lib/mailslurp_client/models/page_sms_projection.rb +17 -16
- data/lib/mailslurp_client/models/page_template_projection.rb +17 -16
- data/lib/mailslurp_client/models/page_thread_projection.rb +17 -16
- data/lib/mailslurp_client/models/page_tracking_pixel_projection.rb +17 -16
- data/lib/mailslurp_client/models/page_unknown_missed_email_projection.rb +17 -16
- data/lib/mailslurp_client/models/page_webhook_projection.rb +17 -16
- data/lib/mailslurp_client/models/page_webhook_result.rb +17 -16
- data/lib/mailslurp_client/models/phone_number_projection.rb +15 -15
- data/lib/mailslurp_client/models/send_with_queue_result.rb +0 -1
- data/lib/mailslurp_client/models/sent_email_projection.rb +30 -31
- 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 +45 -45
- data/lib/mailslurp_client/models/tracking_pixel_projection.rb +24 -24
- data/lib/mailslurp_client/models/unknown_missed_email_projection.rb +13 -13
- data/lib/mailslurp_client/models/webhook_projection.rb +27 -27
- data/lib/mailslurp_client/version.rb +1 -1
- data/lib/mailslurp_client.rb +1 -0
- metadata +3 -2
@@ -15,12 +15,12 @@ require 'date'
|
|
15
15
|
module MailSlurpClient
|
16
16
|
# Email template data
|
17
17
|
class TemplateProjection
|
18
|
+
attr_accessor :variables
|
19
|
+
|
18
20
|
attr_accessor :created_at
|
19
21
|
|
20
22
|
attr_accessor :updated_at
|
21
23
|
|
22
|
-
attr_accessor :variables
|
23
|
-
|
24
24
|
attr_accessor :name
|
25
25
|
|
26
26
|
attr_accessor :id
|
@@ -28,9 +28,9 @@ module MailSlurpClient
|
|
28
28
|
# Attribute mapping from ruby-style variable name to JSON key.
|
29
29
|
def self.attribute_map
|
30
30
|
{
|
31
|
+
:'variables' => :'variables',
|
31
32
|
:'created_at' => :'createdAt',
|
32
33
|
:'updated_at' => :'updatedAt',
|
33
|
-
:'variables' => :'variables',
|
34
34
|
:'name' => :'name',
|
35
35
|
:'id' => :'id'
|
36
36
|
}
|
@@ -39,9 +39,9 @@ module MailSlurpClient
|
|
39
39
|
# Attribute type mapping.
|
40
40
|
def self.openapi_types
|
41
41
|
{
|
42
|
+
:'variables' => :'Array<String>',
|
42
43
|
:'created_at' => :'DateTime',
|
43
44
|
:'updated_at' => :'DateTime',
|
44
|
-
:'variables' => :'Array<String>',
|
45
45
|
:'name' => :'String',
|
46
46
|
:'id' => :'String'
|
47
47
|
}
|
@@ -68,6 +68,12 @@ module MailSlurpClient
|
|
68
68
|
h[k.to_sym] = v
|
69
69
|
}
|
70
70
|
|
71
|
+
if attributes.key?(:'variables')
|
72
|
+
if (value = attributes[:'variables']).is_a?(Array)
|
73
|
+
self.variables = value
|
74
|
+
end
|
75
|
+
end
|
76
|
+
|
71
77
|
if attributes.key?(:'created_at')
|
72
78
|
self.created_at = attributes[:'created_at']
|
73
79
|
end
|
@@ -76,12 +82,6 @@ module MailSlurpClient
|
|
76
82
|
self.updated_at = attributes[:'updated_at']
|
77
83
|
end
|
78
84
|
|
79
|
-
if attributes.key?(:'variables')
|
80
|
-
if (value = attributes[:'variables']).is_a?(Array)
|
81
|
-
self.variables = value
|
82
|
-
end
|
83
|
-
end
|
84
|
-
|
85
85
|
if attributes.key?(:'name')
|
86
86
|
self.name = attributes[:'name']
|
87
87
|
end
|
@@ -95,6 +95,10 @@ module MailSlurpClient
|
|
95
95
|
# @return Array for valid properties with the reasons
|
96
96
|
def list_invalid_properties
|
97
97
|
invalid_properties = Array.new
|
98
|
+
if @variables.nil?
|
99
|
+
invalid_properties.push('invalid value for "variables", variables cannot be nil.')
|
100
|
+
end
|
101
|
+
|
98
102
|
if @created_at.nil?
|
99
103
|
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
100
104
|
end
|
@@ -103,10 +107,6 @@ module MailSlurpClient
|
|
103
107
|
invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
|
104
108
|
end
|
105
109
|
|
106
|
-
if @variables.nil?
|
107
|
-
invalid_properties.push('invalid value for "variables", variables cannot be nil.')
|
108
|
-
end
|
109
|
-
|
110
110
|
if @name.nil?
|
111
111
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
112
112
|
end
|
@@ -121,9 +121,9 @@ module MailSlurpClient
|
|
121
121
|
# Check to see if the all the properties in the model are valid
|
122
122
|
# @return true if the model is valid
|
123
123
|
def valid?
|
124
|
+
return false if @variables.nil?
|
124
125
|
return false if @created_at.nil?
|
125
126
|
return false if @updated_at.nil?
|
126
|
-
return false if @variables.nil?
|
127
127
|
return false if @name.nil?
|
128
128
|
return false if @id.nil?
|
129
129
|
true
|
@@ -134,9 +134,9 @@ module MailSlurpClient
|
|
134
134
|
def ==(o)
|
135
135
|
return true if self.equal?(o)
|
136
136
|
self.class == o.class &&
|
137
|
+
variables == o.variables &&
|
137
138
|
created_at == o.created_at &&
|
138
139
|
updated_at == o.updated_at &&
|
139
|
-
variables == o.variables &&
|
140
140
|
name == o.name &&
|
141
141
|
id == o.id
|
142
142
|
end
|
@@ -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
|
-
[created_at, updated_at,
|
153
|
+
[variables, created_at, updated_at, name, id].hash
|
154
154
|
end
|
155
155
|
|
156
156
|
# Builds the object from hash
|
@@ -15,17 +15,14 @@ require 'date'
|
|
15
15
|
module MailSlurpClient
|
16
16
|
# A thread is a message thread created for a message received by an alias
|
17
17
|
class ThreadProjection
|
18
|
-
#
|
19
|
-
attr_accessor :
|
18
|
+
# Thread subject
|
19
|
+
attr_accessor :subject
|
20
20
|
|
21
21
|
# User ID
|
22
22
|
attr_accessor :user_id
|
23
23
|
|
24
|
-
#
|
25
|
-
attr_accessor :
|
26
|
-
|
27
|
-
# Updated at DateTime
|
28
|
-
attr_accessor :updated_at
|
24
|
+
# Inbox ID
|
25
|
+
attr_accessor :inbox_id
|
29
26
|
|
30
27
|
# To recipients
|
31
28
|
attr_accessor :to
|
@@ -39,8 +36,11 @@ module MailSlurpClient
|
|
39
36
|
# Alias ID
|
40
37
|
attr_accessor :alias_id
|
41
38
|
|
42
|
-
#
|
43
|
-
attr_accessor :
|
39
|
+
# Created at DateTime
|
40
|
+
attr_accessor :created_at
|
41
|
+
|
42
|
+
# Updated at DateTime
|
43
|
+
attr_accessor :updated_at
|
44
44
|
|
45
45
|
# Name of thread
|
46
46
|
attr_accessor :name
|
@@ -51,15 +51,15 @@ module MailSlurpClient
|
|
51
51
|
# Attribute mapping from ruby-style variable name to JSON key.
|
52
52
|
def self.attribute_map
|
53
53
|
{
|
54
|
-
:'
|
54
|
+
:'subject' => :'subject',
|
55
55
|
:'user_id' => :'userId',
|
56
|
-
:'
|
57
|
-
:'updated_at' => :'updatedAt',
|
56
|
+
:'inbox_id' => :'inboxId',
|
58
57
|
:'to' => :'to',
|
59
58
|
:'bcc' => :'bcc',
|
60
59
|
:'cc' => :'cc',
|
61
60
|
:'alias_id' => :'aliasId',
|
62
|
-
:'
|
61
|
+
:'created_at' => :'createdAt',
|
62
|
+
:'updated_at' => :'updatedAt',
|
63
63
|
:'name' => :'name',
|
64
64
|
:'id' => :'id'
|
65
65
|
}
|
@@ -68,15 +68,15 @@ module MailSlurpClient
|
|
68
68
|
# Attribute type mapping.
|
69
69
|
def self.openapi_types
|
70
70
|
{
|
71
|
-
:'
|
71
|
+
:'subject' => :'String',
|
72
72
|
:'user_id' => :'String',
|
73
|
-
:'
|
74
|
-
:'updated_at' => :'DateTime',
|
73
|
+
:'inbox_id' => :'String',
|
75
74
|
:'to' => :'Array<String>',
|
76
75
|
:'bcc' => :'Array<String>',
|
77
76
|
:'cc' => :'Array<String>',
|
78
77
|
:'alias_id' => :'String',
|
79
|
-
:'
|
78
|
+
:'created_at' => :'DateTime',
|
79
|
+
:'updated_at' => :'DateTime',
|
80
80
|
:'name' => :'String',
|
81
81
|
:'id' => :'String'
|
82
82
|
}
|
@@ -103,20 +103,16 @@ module MailSlurpClient
|
|
103
103
|
h[k.to_sym] = v
|
104
104
|
}
|
105
105
|
|
106
|
-
if attributes.key?(:'
|
107
|
-
self.
|
106
|
+
if attributes.key?(:'subject')
|
107
|
+
self.subject = attributes[:'subject']
|
108
108
|
end
|
109
109
|
|
110
110
|
if attributes.key?(:'user_id')
|
111
111
|
self.user_id = attributes[:'user_id']
|
112
112
|
end
|
113
113
|
|
114
|
-
if attributes.key?(:'
|
115
|
-
self.
|
116
|
-
end
|
117
|
-
|
118
|
-
if attributes.key?(:'updated_at')
|
119
|
-
self.updated_at = attributes[:'updated_at']
|
114
|
+
if attributes.key?(:'inbox_id')
|
115
|
+
self.inbox_id = attributes[:'inbox_id']
|
120
116
|
end
|
121
117
|
|
122
118
|
if attributes.key?(:'to')
|
@@ -141,8 +137,12 @@ module MailSlurpClient
|
|
141
137
|
self.alias_id = attributes[:'alias_id']
|
142
138
|
end
|
143
139
|
|
144
|
-
if attributes.key?(:'
|
145
|
-
self.
|
140
|
+
if attributes.key?(:'created_at')
|
141
|
+
self.created_at = attributes[:'created_at']
|
142
|
+
end
|
143
|
+
|
144
|
+
if attributes.key?(:'updated_at')
|
145
|
+
self.updated_at = attributes[:'updated_at']
|
146
146
|
end
|
147
147
|
|
148
148
|
if attributes.key?(:'name')
|
@@ -158,20 +158,12 @@ module MailSlurpClient
|
|
158
158
|
# @return Array for valid properties with the reasons
|
159
159
|
def list_invalid_properties
|
160
160
|
invalid_properties = Array.new
|
161
|
-
if @inbox_id.nil?
|
162
|
-
invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
|
163
|
-
end
|
164
|
-
|
165
161
|
if @user_id.nil?
|
166
162
|
invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
|
167
163
|
end
|
168
164
|
|
169
|
-
if @
|
170
|
-
invalid_properties.push('invalid value for "
|
171
|
-
end
|
172
|
-
|
173
|
-
if @updated_at.nil?
|
174
|
-
invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
|
165
|
+
if @inbox_id.nil?
|
166
|
+
invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
|
175
167
|
end
|
176
168
|
|
177
169
|
if @to.nil?
|
@@ -182,6 +174,14 @@ module MailSlurpClient
|
|
182
174
|
invalid_properties.push('invalid value for "alias_id", alias_id cannot be nil.')
|
183
175
|
end
|
184
176
|
|
177
|
+
if @created_at.nil?
|
178
|
+
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
179
|
+
end
|
180
|
+
|
181
|
+
if @updated_at.nil?
|
182
|
+
invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
|
183
|
+
end
|
184
|
+
|
185
185
|
if @id.nil?
|
186
186
|
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
187
187
|
end
|
@@ -192,12 +192,12 @@ module MailSlurpClient
|
|
192
192
|
# Check to see if the all the properties in the model are valid
|
193
193
|
# @return true if the model is valid
|
194
194
|
def valid?
|
195
|
-
return false if @inbox_id.nil?
|
196
195
|
return false if @user_id.nil?
|
197
|
-
return false if @
|
198
|
-
return false if @updated_at.nil?
|
196
|
+
return false if @inbox_id.nil?
|
199
197
|
return false if @to.nil?
|
200
198
|
return false if @alias_id.nil?
|
199
|
+
return false if @created_at.nil?
|
200
|
+
return false if @updated_at.nil?
|
201
201
|
return false if @id.nil?
|
202
202
|
true
|
203
203
|
end
|
@@ -207,15 +207,15 @@ module MailSlurpClient
|
|
207
207
|
def ==(o)
|
208
208
|
return true if self.equal?(o)
|
209
209
|
self.class == o.class &&
|
210
|
-
|
210
|
+
subject == o.subject &&
|
211
211
|
user_id == o.user_id &&
|
212
|
-
|
213
|
-
updated_at == o.updated_at &&
|
212
|
+
inbox_id == o.inbox_id &&
|
214
213
|
to == o.to &&
|
215
214
|
bcc == o.bcc &&
|
216
215
|
cc == o.cc &&
|
217
216
|
alias_id == o.alias_id &&
|
218
|
-
|
217
|
+
created_at == o.created_at &&
|
218
|
+
updated_at == o.updated_at &&
|
219
219
|
name == o.name &&
|
220
220
|
id == o.id
|
221
221
|
end
|
@@ -229,7 +229,7 @@ module MailSlurpClient
|
|
229
229
|
# Calculates hash code according to all attributes.
|
230
230
|
# @return [Integer] Hash code
|
231
231
|
def hash
|
232
|
-
[
|
232
|
+
[subject, user_id, inbox_id, to, bcc, cc, alias_id, created_at, updated_at, name, id].hash
|
233
233
|
end
|
234
234
|
|
235
235
|
# Builds the object from hash
|
@@ -15,13 +15,11 @@ require 'date'
|
|
15
15
|
module MailSlurpClient
|
16
16
|
# Tracking pixel data
|
17
17
|
class TrackingPixelProjection
|
18
|
-
attr_accessor :inbox_id
|
19
|
-
|
20
18
|
attr_accessor :user_id
|
21
19
|
|
22
|
-
attr_accessor :
|
20
|
+
attr_accessor :inbox_id
|
23
21
|
|
24
|
-
attr_accessor :
|
22
|
+
attr_accessor :sent_email_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
|
-
:'inbox_id' => :'inboxId',
|
40
39
|
:'user_id' => :'userId',
|
40
|
+
:'inbox_id' => :'inboxId',
|
41
41
|
:'sent_email_id' => :'sentEmailId',
|
42
|
-
:'created_at' => :'createdAt',
|
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
|
-
:'inbox_id' => :'String',
|
55
54
|
:'user_id' => :'String',
|
55
|
+
:'inbox_id' => :'String',
|
56
56
|
:'sent_email_id' => :'String',
|
57
|
-
:'created_at' => :'DateTime',
|
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?(:'inbox_id')
|
88
|
-
self.inbox_id = attributes[:'inbox_id']
|
89
|
-
end
|
90
|
-
|
91
87
|
if attributes.key?(:'user_id')
|
92
88
|
self.user_id = attributes[:'user_id']
|
93
89
|
end
|
94
90
|
|
95
|
-
if attributes.key?(:'
|
96
|
-
self.
|
91
|
+
if attributes.key?(:'inbox_id')
|
92
|
+
self.inbox_id = attributes[:'inbox_id']
|
97
93
|
end
|
98
94
|
|
99
|
-
if attributes.key?(:'
|
100
|
-
self.
|
95
|
+
if attributes.key?(:'sent_email_id')
|
96
|
+
self.sent_email_id = attributes[:'sent_email_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
|
@@ -129,14 +129,14 @@ module MailSlurpClient
|
|
129
129
|
invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
|
130
130
|
end
|
131
131
|
|
132
|
-
if @created_at.nil?
|
133
|
-
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
134
|
-
end
|
135
|
-
|
136
132
|
if @seen.nil?
|
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
|
@@ -148,8 +148,8 @@ module MailSlurpClient
|
|
148
148
|
# @return true if the model is valid
|
149
149
|
def valid?
|
150
150
|
return false if @user_id.nil?
|
151
|
-
return false if @created_at.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
|
-
inbox_id == o.inbox_id &&
|
163
162
|
user_id == o.user_id &&
|
163
|
+
inbox_id == o.inbox_id &&
|
164
164
|
sent_email_id == o.sent_email_id &&
|
165
|
-
created_at == o.created_at &&
|
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
|
+
[user_id, inbox_id, sent_email_id, recipient, seen, seen_at, created_at, name, id].hash
|
183
183
|
end
|
184
184
|
|
185
185
|
# Builds the object from hash
|
@@ -15,11 +15,11 @@ require 'date'
|
|
15
15
|
module MailSlurpClient
|
16
16
|
# Unknown missed email projection
|
17
17
|
class UnknownMissedEmailProjection
|
18
|
-
attr_accessor :
|
18
|
+
attr_accessor :subject
|
19
19
|
|
20
20
|
attr_accessor :to
|
21
21
|
|
22
|
-
attr_accessor :
|
22
|
+
attr_accessor :created_at
|
23
23
|
|
24
24
|
attr_accessor :id
|
25
25
|
|
@@ -28,9 +28,9 @@ 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
|
-
:'to' => :'to',
|
33
31
|
:'subject' => :'subject',
|
32
|
+
:'to' => :'to',
|
33
|
+
:'created_at' => :'createdAt',
|
34
34
|
:'id' => :'id',
|
35
35
|
:'from' => :'from'
|
36
36
|
}
|
@@ -39,9 +39,9 @@ module MailSlurpClient
|
|
39
39
|
# Attribute type mapping.
|
40
40
|
def self.openapi_types
|
41
41
|
{
|
42
|
-
:'created_at' => :'DateTime',
|
43
|
-
:'to' => :'Array<String>',
|
44
42
|
:'subject' => :'String',
|
43
|
+
:'to' => :'Array<String>',
|
44
|
+
:'created_at' => :'DateTime',
|
45
45
|
:'id' => :'String',
|
46
46
|
:'from' => :'String'
|
47
47
|
}
|
@@ -68,8 +68,8 @@ module MailSlurpClient
|
|
68
68
|
h[k.to_sym] = v
|
69
69
|
}
|
70
70
|
|
71
|
-
if attributes.key?(:'
|
72
|
-
self.
|
71
|
+
if attributes.key?(:'subject')
|
72
|
+
self.subject = attributes[:'subject']
|
73
73
|
end
|
74
74
|
|
75
75
|
if attributes.key?(:'to')
|
@@ -78,8 +78,8 @@ module MailSlurpClient
|
|
78
78
|
end
|
79
79
|
end
|
80
80
|
|
81
|
-
if attributes.key?(:'
|
82
|
-
self.
|
81
|
+
if attributes.key?(:'created_at')
|
82
|
+
self.created_at = attributes[:'created_at']
|
83
83
|
end
|
84
84
|
|
85
85
|
if attributes.key?(:'id')
|
@@ -119,9 +119,9 @@ 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
|
-
to == o.to &&
|
124
122
|
subject == o.subject &&
|
123
|
+
to == o.to &&
|
124
|
+
created_at == o.created_at &&
|
125
125
|
id == o.id &&
|
126
126
|
from == o.from
|
127
127
|
end
|
@@ -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
|
+
[subject, to, created_at, id, from].hash
|
139
139
|
end
|
140
140
|
|
141
141
|
# Builds the object from hash
|
@@ -15,22 +15,22 @@ require 'date'
|
|
15
15
|
module MailSlurpClient
|
16
16
|
# Representation of a webhook
|
17
17
|
class WebhookProjection
|
18
|
+
attr_accessor :url
|
19
|
+
|
18
20
|
attr_accessor :inbox_id
|
19
21
|
|
20
22
|
attr_accessor :event_name
|
21
23
|
|
24
|
+
attr_accessor :phone_number_id
|
25
|
+
|
22
26
|
attr_accessor :created_at
|
23
27
|
|
24
28
|
attr_accessor :updated_at
|
25
29
|
|
26
|
-
attr_accessor :phone_number_id
|
27
|
-
|
28
30
|
attr_accessor :name
|
29
31
|
|
30
32
|
attr_accessor :id
|
31
33
|
|
32
|
-
attr_accessor :url
|
33
|
-
|
34
34
|
class EnumAttributeValidator
|
35
35
|
attr_reader :datatype
|
36
36
|
attr_reader :allowable_values
|
@@ -56,28 +56,28 @@ module MailSlurpClient
|
|
56
56
|
# Attribute mapping from ruby-style variable name to JSON key.
|
57
57
|
def self.attribute_map
|
58
58
|
{
|
59
|
+
:'url' => :'url',
|
59
60
|
:'inbox_id' => :'inboxId',
|
60
61
|
:'event_name' => :'eventName',
|
62
|
+
:'phone_number_id' => :'phoneNumberId',
|
61
63
|
:'created_at' => :'createdAt',
|
62
64
|
:'updated_at' => :'updatedAt',
|
63
|
-
:'phone_number_id' => :'phoneNumberId',
|
64
65
|
:'name' => :'name',
|
65
|
-
:'id' => :'id'
|
66
|
-
:'url' => :'url'
|
66
|
+
:'id' => :'id'
|
67
67
|
}
|
68
68
|
end
|
69
69
|
|
70
70
|
# Attribute type mapping.
|
71
71
|
def self.openapi_types
|
72
72
|
{
|
73
|
+
:'url' => :'String',
|
73
74
|
:'inbox_id' => :'String',
|
74
75
|
:'event_name' => :'String',
|
76
|
+
:'phone_number_id' => :'String',
|
75
77
|
:'created_at' => :'DateTime',
|
76
78
|
:'updated_at' => :'DateTime',
|
77
|
-
:'phone_number_id' => :'String',
|
78
79
|
:'name' => :'String',
|
79
|
-
:'id' => :'String'
|
80
|
-
:'url' => :'String'
|
80
|
+
:'id' => :'String'
|
81
81
|
}
|
82
82
|
end
|
83
83
|
|
@@ -102,6 +102,10 @@ module MailSlurpClient
|
|
102
102
|
h[k.to_sym] = v
|
103
103
|
}
|
104
104
|
|
105
|
+
if attributes.key?(:'url')
|
106
|
+
self.url = attributes[:'url']
|
107
|
+
end
|
108
|
+
|
105
109
|
if attributes.key?(:'inbox_id')
|
106
110
|
self.inbox_id = attributes[:'inbox_id']
|
107
111
|
end
|
@@ -110,6 +114,10 @@ module MailSlurpClient
|
|
110
114
|
self.event_name = attributes[:'event_name']
|
111
115
|
end
|
112
116
|
|
117
|
+
if attributes.key?(:'phone_number_id')
|
118
|
+
self.phone_number_id = attributes[:'phone_number_id']
|
119
|
+
end
|
120
|
+
|
113
121
|
if attributes.key?(:'created_at')
|
114
122
|
self.created_at = attributes[:'created_at']
|
115
123
|
end
|
@@ -118,10 +126,6 @@ module MailSlurpClient
|
|
118
126
|
self.updated_at = attributes[:'updated_at']
|
119
127
|
end
|
120
128
|
|
121
|
-
if attributes.key?(:'phone_number_id')
|
122
|
-
self.phone_number_id = attributes[:'phone_number_id']
|
123
|
-
end
|
124
|
-
|
125
129
|
if attributes.key?(:'name')
|
126
130
|
self.name = attributes[:'name']
|
127
131
|
end
|
@@ -129,16 +133,16 @@ module MailSlurpClient
|
|
129
133
|
if attributes.key?(:'id')
|
130
134
|
self.id = attributes[:'id']
|
131
135
|
end
|
132
|
-
|
133
|
-
if attributes.key?(:'url')
|
134
|
-
self.url = attributes[:'url']
|
135
|
-
end
|
136
136
|
end
|
137
137
|
|
138
138
|
# Show invalid properties with the reasons. Usually used together with valid?
|
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
|
@@ -151,22 +155,18 @@ module MailSlurpClient
|
|
151
155
|
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
152
156
|
end
|
153
157
|
|
154
|
-
if @url.nil?
|
155
|
-
invalid_properties.push('invalid value for "url", url cannot be nil.')
|
156
|
-
end
|
157
|
-
|
158
158
|
invalid_properties
|
159
159
|
end
|
160
160
|
|
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 @url.nil?
|
164
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"])
|
165
166
|
return false unless event_name_validator.valid?(@event_name)
|
166
167
|
return false if @created_at.nil?
|
167
168
|
return false if @updated_at.nil?
|
168
169
|
return false if @id.nil?
|
169
|
-
return false if @url.nil?
|
170
170
|
true
|
171
171
|
end
|
172
172
|
|
@@ -185,14 +185,14 @@ module MailSlurpClient
|
|
185
185
|
def ==(o)
|
186
186
|
return true if self.equal?(o)
|
187
187
|
self.class == o.class &&
|
188
|
+
url == o.url &&
|
188
189
|
inbox_id == o.inbox_id &&
|
189
190
|
event_name == o.event_name &&
|
191
|
+
phone_number_id == o.phone_number_id &&
|
190
192
|
created_at == o.created_at &&
|
191
193
|
updated_at == o.updated_at &&
|
192
|
-
phone_number_id == o.phone_number_id &&
|
193
194
|
name == o.name &&
|
194
|
-
id == o.id
|
195
|
-
url == o.url
|
195
|
+
id == o.id
|
196
196
|
end
|
197
197
|
|
198
198
|
# @see the `==` method
|
@@ -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
|
-
[inbox_id, event_name, created_at, updated_at,
|
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
|