mailslurp_client 15.17.23 → 15.17.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/mailslurp_client/api/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,11 +15,11 @@ require 'date'
|
|
15
15
|
module MailSlurpClient
|
16
16
|
# A compact representation of a full email. Used in list endpoints to keep response sizes low. Body and attachments are not included. To get all fields of the email use the `getEmail` method with the email projection's ID. See `EmailDto` for documentation on projection properties.
|
17
17
|
class EmailProjection
|
18
|
-
attr_accessor :
|
18
|
+
attr_accessor :subject
|
19
19
|
|
20
20
|
attr_accessor :attachments
|
21
21
|
|
22
|
-
attr_accessor :
|
22
|
+
attr_accessor :inbox_id
|
23
23
|
|
24
24
|
attr_accessor :to
|
25
25
|
|
@@ -39,7 +39,7 @@ module MailSlurpClient
|
|
39
39
|
|
40
40
|
attr_accessor :text_excerpt
|
41
41
|
|
42
|
-
attr_accessor :
|
42
|
+
attr_accessor :created_at
|
43
43
|
|
44
44
|
attr_accessor :id
|
45
45
|
|
@@ -48,9 +48,9 @@ module MailSlurpClient
|
|
48
48
|
# Attribute mapping from ruby-style variable name to JSON key.
|
49
49
|
def self.attribute_map
|
50
50
|
{
|
51
|
-
:'
|
51
|
+
:'subject' => :'subject',
|
52
52
|
:'attachments' => :'attachments',
|
53
|
-
:'
|
53
|
+
:'inbox_id' => :'inboxId',
|
54
54
|
:'to' => :'to',
|
55
55
|
:'bcc' => :'bcc',
|
56
56
|
:'cc' => :'cc',
|
@@ -60,7 +60,7 @@ module MailSlurpClient
|
|
60
60
|
:'team_access' => :'teamAccess',
|
61
61
|
:'body_md5_hash' => :'bodyMD5Hash',
|
62
62
|
:'text_excerpt' => :'textExcerpt',
|
63
|
-
:'
|
63
|
+
:'created_at' => :'createdAt',
|
64
64
|
:'id' => :'id',
|
65
65
|
:'from' => :'from'
|
66
66
|
}
|
@@ -69,9 +69,9 @@ module MailSlurpClient
|
|
69
69
|
# Attribute type mapping.
|
70
70
|
def self.openapi_types
|
71
71
|
{
|
72
|
-
:'
|
72
|
+
:'subject' => :'String',
|
73
73
|
:'attachments' => :'Array<String>',
|
74
|
-
:'
|
74
|
+
:'inbox_id' => :'String',
|
75
75
|
:'to' => :'Array<String>',
|
76
76
|
:'bcc' => :'Array<String>',
|
77
77
|
:'cc' => :'Array<String>',
|
@@ -81,7 +81,7 @@ module MailSlurpClient
|
|
81
81
|
:'team_access' => :'Boolean',
|
82
82
|
:'body_md5_hash' => :'String',
|
83
83
|
:'text_excerpt' => :'String',
|
84
|
-
:'
|
84
|
+
:'created_at' => :'DateTime',
|
85
85
|
:'id' => :'String',
|
86
86
|
:'from' => :'String'
|
87
87
|
}
|
@@ -90,6 +90,7 @@ module MailSlurpClient
|
|
90
90
|
# List of attributes with nullable: true
|
91
91
|
def self.openapi_nullable
|
92
92
|
Set.new([
|
93
|
+
:'subject',
|
93
94
|
:'attachments',
|
94
95
|
:'bcc',
|
95
96
|
:'cc',
|
@@ -97,7 +98,6 @@ module MailSlurpClient
|
|
97
98
|
:'body_excerpt',
|
98
99
|
:'body_md5_hash',
|
99
100
|
:'text_excerpt',
|
100
|
-
:'subject',
|
101
101
|
:'from'
|
102
102
|
])
|
103
103
|
end
|
@@ -117,8 +117,8 @@ module MailSlurpClient
|
|
117
117
|
h[k.to_sym] = v
|
118
118
|
}
|
119
119
|
|
120
|
-
if attributes.key?(:'
|
121
|
-
self.
|
120
|
+
if attributes.key?(:'subject')
|
121
|
+
self.subject = attributes[:'subject']
|
122
122
|
end
|
123
123
|
|
124
124
|
if attributes.key?(:'attachments')
|
@@ -127,8 +127,8 @@ module MailSlurpClient
|
|
127
127
|
end
|
128
128
|
end
|
129
129
|
|
130
|
-
if attributes.key?(:'
|
131
|
-
self.
|
130
|
+
if attributes.key?(:'inbox_id')
|
131
|
+
self.inbox_id = attributes[:'inbox_id']
|
132
132
|
end
|
133
133
|
|
134
134
|
if attributes.key?(:'to')
|
@@ -173,8 +173,8 @@ module MailSlurpClient
|
|
173
173
|
self.text_excerpt = attributes[:'text_excerpt']
|
174
174
|
end
|
175
175
|
|
176
|
-
if attributes.key?(:'
|
177
|
-
self.
|
176
|
+
if attributes.key?(:'created_at')
|
177
|
+
self.created_at = attributes[:'created_at']
|
178
178
|
end
|
179
179
|
|
180
180
|
if attributes.key?(:'id')
|
@@ -194,10 +194,6 @@ module MailSlurpClient
|
|
194
194
|
invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
|
195
195
|
end
|
196
196
|
|
197
|
-
if @created_at.nil?
|
198
|
-
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
199
|
-
end
|
200
|
-
|
201
197
|
if @to.nil?
|
202
198
|
invalid_properties.push('invalid value for "to", to cannot be nil.')
|
203
199
|
end
|
@@ -210,6 +206,10 @@ module MailSlurpClient
|
|
210
206
|
invalid_properties.push('invalid value for "team_access", team_access cannot be nil.')
|
211
207
|
end
|
212
208
|
|
209
|
+
if @created_at.nil?
|
210
|
+
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
211
|
+
end
|
212
|
+
|
213
213
|
if @id.nil?
|
214
214
|
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
215
215
|
end
|
@@ -221,10 +221,10 @@ module MailSlurpClient
|
|
221
221
|
# @return true if the model is valid
|
222
222
|
def valid?
|
223
223
|
return false if @inbox_id.nil?
|
224
|
-
return false if @created_at.nil?
|
225
224
|
return false if @to.nil?
|
226
225
|
return false if @read.nil?
|
227
226
|
return false if @team_access.nil?
|
227
|
+
return false if @created_at.nil?
|
228
228
|
return false if @id.nil?
|
229
229
|
true
|
230
230
|
end
|
@@ -234,9 +234,9 @@ module MailSlurpClient
|
|
234
234
|
def ==(o)
|
235
235
|
return true if self.equal?(o)
|
236
236
|
self.class == o.class &&
|
237
|
-
|
237
|
+
subject == o.subject &&
|
238
238
|
attachments == o.attachments &&
|
239
|
-
|
239
|
+
inbox_id == o.inbox_id &&
|
240
240
|
to == o.to &&
|
241
241
|
bcc == o.bcc &&
|
242
242
|
cc == o.cc &&
|
@@ -246,7 +246,7 @@ module MailSlurpClient
|
|
246
246
|
team_access == o.team_access &&
|
247
247
|
body_md5_hash == o.body_md5_hash &&
|
248
248
|
text_excerpt == o.text_excerpt &&
|
249
|
-
|
249
|
+
created_at == o.created_at &&
|
250
250
|
id == o.id &&
|
251
251
|
from == o.from
|
252
252
|
end
|
@@ -260,7 +260,7 @@ module MailSlurpClient
|
|
260
260
|
# Calculates hash code according to all attributes.
|
261
261
|
# @return [Integer] Hash code
|
262
262
|
def hash
|
263
|
-
[
|
263
|
+
[subject, attachments, inbox_id, to, bcc, cc, domain_id, read, body_excerpt, team_access, body_md5_hash, text_excerpt, created_at, id, from].hash
|
264
264
|
end
|
265
265
|
|
266
266
|
# Builds the object from hash
|
@@ -15,10 +15,10 @@ require 'date'
|
|
15
15
|
module MailSlurpClient
|
16
16
|
# Record of inbox expiration
|
17
17
|
class ExpiredInboxRecordProjection
|
18
|
-
attr_accessor :user_id
|
19
|
-
|
20
18
|
attr_accessor :email_address
|
21
19
|
|
20
|
+
attr_accessor :user_id
|
21
|
+
|
22
22
|
attr_accessor :created_at
|
23
23
|
|
24
24
|
attr_accessor :id
|
@@ -26,8 +26,8 @@ module MailSlurpClient
|
|
26
26
|
# Attribute mapping from ruby-style variable name to JSON key.
|
27
27
|
def self.attribute_map
|
28
28
|
{
|
29
|
-
:'user_id' => :'userId',
|
30
29
|
:'email_address' => :'emailAddress',
|
30
|
+
:'user_id' => :'userId',
|
31
31
|
:'created_at' => :'createdAt',
|
32
32
|
:'id' => :'id'
|
33
33
|
}
|
@@ -36,8 +36,8 @@ module MailSlurpClient
|
|
36
36
|
# Attribute type mapping.
|
37
37
|
def self.openapi_types
|
38
38
|
{
|
39
|
-
:'user_id' => :'String',
|
40
39
|
:'email_address' => :'String',
|
40
|
+
:'user_id' => :'String',
|
41
41
|
:'created_at' => :'DateTime',
|
42
42
|
:'id' => :'String'
|
43
43
|
}
|
@@ -64,14 +64,14 @@ module MailSlurpClient
|
|
64
64
|
h[k.to_sym] = v
|
65
65
|
}
|
66
66
|
|
67
|
-
if attributes.key?(:'user_id')
|
68
|
-
self.user_id = attributes[:'user_id']
|
69
|
-
end
|
70
|
-
|
71
67
|
if attributes.key?(:'email_address')
|
72
68
|
self.email_address = attributes[:'email_address']
|
73
69
|
end
|
74
70
|
|
71
|
+
if attributes.key?(:'user_id')
|
72
|
+
self.user_id = attributes[:'user_id']
|
73
|
+
end
|
74
|
+
|
75
75
|
if attributes.key?(:'created_at')
|
76
76
|
self.created_at = attributes[:'created_at']
|
77
77
|
end
|
@@ -85,14 +85,14 @@ module MailSlurpClient
|
|
85
85
|
# @return Array for valid properties with the reasons
|
86
86
|
def list_invalid_properties
|
87
87
|
invalid_properties = Array.new
|
88
|
-
if @user_id.nil?
|
89
|
-
invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
|
90
|
-
end
|
91
|
-
|
92
88
|
if @email_address.nil?
|
93
89
|
invalid_properties.push('invalid value for "email_address", email_address cannot be nil.')
|
94
90
|
end
|
95
91
|
|
92
|
+
if @user_id.nil?
|
93
|
+
invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
|
94
|
+
end
|
95
|
+
|
96
96
|
if @created_at.nil?
|
97
97
|
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
98
98
|
end
|
@@ -107,8 +107,8 @@ module MailSlurpClient
|
|
107
107
|
# Check to see if the all the properties in the model are valid
|
108
108
|
# @return true if the model is valid
|
109
109
|
def valid?
|
110
|
-
return false if @user_id.nil?
|
111
110
|
return false if @email_address.nil?
|
111
|
+
return false if @user_id.nil?
|
112
112
|
return false if @created_at.nil?
|
113
113
|
return false if @id.nil?
|
114
114
|
true
|
@@ -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
|
-
user_id == o.user_id &&
|
123
122
|
email_address == o.email_address &&
|
123
|
+
user_id == o.user_id &&
|
124
124
|
created_at == o.created_at &&
|
125
125
|
id == o.id
|
126
126
|
end
|
@@ -134,7 +134,7 @@ module MailSlurpClient
|
|
134
134
|
# Calculates hash code according to all attributes.
|
135
135
|
# @return [Integer] Hash code
|
136
136
|
def hash
|
137
|
-
[
|
137
|
+
[email_address, user_id, created_at, id].hash
|
138
138
|
end
|
139
139
|
|
140
140
|
# Builds the object from hash
|
@@ -15,16 +15,16 @@ require 'date'
|
|
15
15
|
module MailSlurpClient
|
16
16
|
# Inbox forwarder event
|
17
17
|
class InboxForwarderEventProjection
|
18
|
+
attr_accessor :user_id
|
19
|
+
|
18
20
|
attr_accessor :email_id
|
19
21
|
|
20
22
|
attr_accessor :inbox_id
|
21
23
|
|
22
|
-
attr_accessor :
|
24
|
+
attr_accessor :forwarder_id
|
23
25
|
|
24
26
|
attr_accessor :created_at
|
25
27
|
|
26
|
-
attr_accessor :forwarder_id
|
27
|
-
|
28
28
|
attr_accessor :message
|
29
29
|
|
30
30
|
attr_accessor :id
|
@@ -56,11 +56,11 @@ module MailSlurpClient
|
|
56
56
|
# Attribute mapping from ruby-style variable name to JSON key.
|
57
57
|
def self.attribute_map
|
58
58
|
{
|
59
|
+
:'user_id' => :'userId',
|
59
60
|
:'email_id' => :'emailId',
|
60
61
|
:'inbox_id' => :'inboxId',
|
61
|
-
:'user_id' => :'userId',
|
62
|
-
:'created_at' => :'createdAt',
|
63
62
|
:'forwarder_id' => :'forwarderId',
|
63
|
+
:'created_at' => :'createdAt',
|
64
64
|
:'message' => :'message',
|
65
65
|
:'id' => :'id',
|
66
66
|
:'status' => :'status'
|
@@ -70,11 +70,11 @@ module MailSlurpClient
|
|
70
70
|
# Attribute type mapping.
|
71
71
|
def self.openapi_types
|
72
72
|
{
|
73
|
+
:'user_id' => :'String',
|
73
74
|
:'email_id' => :'String',
|
74
75
|
:'inbox_id' => :'String',
|
75
|
-
:'user_id' => :'String',
|
76
|
-
:'created_at' => :'DateTime',
|
77
76
|
:'forwarder_id' => :'String',
|
77
|
+
:'created_at' => :'DateTime',
|
78
78
|
:'message' => :'String',
|
79
79
|
:'id' => :'String',
|
80
80
|
:'status' => :'String'
|
@@ -84,9 +84,9 @@ module MailSlurpClient
|
|
84
84
|
# List of attributes with nullable: true
|
85
85
|
def self.openapi_nullable
|
86
86
|
Set.new([
|
87
|
+
:'user_id',
|
87
88
|
:'email_id',
|
88
89
|
:'inbox_id',
|
89
|
-
:'user_id',
|
90
90
|
:'forwarder_id',
|
91
91
|
:'message',
|
92
92
|
:'id',
|
@@ -109,6 +109,10 @@ module MailSlurpClient
|
|
109
109
|
h[k.to_sym] = v
|
110
110
|
}
|
111
111
|
|
112
|
+
if attributes.key?(:'user_id')
|
113
|
+
self.user_id = attributes[:'user_id']
|
114
|
+
end
|
115
|
+
|
112
116
|
if attributes.key?(:'email_id')
|
113
117
|
self.email_id = attributes[:'email_id']
|
114
118
|
end
|
@@ -117,18 +121,14 @@ module MailSlurpClient
|
|
117
121
|
self.inbox_id = attributes[:'inbox_id']
|
118
122
|
end
|
119
123
|
|
120
|
-
if attributes.key?(:'
|
121
|
-
self.
|
124
|
+
if attributes.key?(:'forwarder_id')
|
125
|
+
self.forwarder_id = attributes[:'forwarder_id']
|
122
126
|
end
|
123
127
|
|
124
128
|
if attributes.key?(:'created_at')
|
125
129
|
self.created_at = attributes[:'created_at']
|
126
130
|
end
|
127
131
|
|
128
|
-
if attributes.key?(:'forwarder_id')
|
129
|
-
self.forwarder_id = attributes[:'forwarder_id']
|
130
|
-
end
|
131
|
-
|
132
132
|
if attributes.key?(:'message')
|
133
133
|
self.message = attributes[:'message']
|
134
134
|
end
|
@@ -177,11 +177,11 @@ module MailSlurpClient
|
|
177
177
|
def ==(o)
|
178
178
|
return true if self.equal?(o)
|
179
179
|
self.class == o.class &&
|
180
|
+
user_id == o.user_id &&
|
180
181
|
email_id == o.email_id &&
|
181
182
|
inbox_id == o.inbox_id &&
|
182
|
-
user_id == o.user_id &&
|
183
|
-
created_at == o.created_at &&
|
184
183
|
forwarder_id == o.forwarder_id &&
|
184
|
+
created_at == o.created_at &&
|
185
185
|
message == o.message &&
|
186
186
|
id == o.id &&
|
187
187
|
status == o.status
|
@@ -196,7 +196,7 @@ module MailSlurpClient
|
|
196
196
|
# Calculates hash code according to all attributes.
|
197
197
|
# @return [Integer] Hash code
|
198
198
|
def hash
|
199
|
-
[email_id, inbox_id,
|
199
|
+
[user_id, email_id, inbox_id, forwarder_id, created_at, message, id, status].hash
|
200
200
|
end
|
201
201
|
|
202
202
|
# Builds the object from hash
|
@@ -15,20 +15,20 @@ require 'date'
|
|
15
15
|
module MailSlurpClient
|
16
16
|
# Inbox replier event
|
17
17
|
class InboxReplierEventProjection
|
18
|
-
attr_accessor :email_id
|
19
|
-
|
20
|
-
attr_accessor :inbox_id
|
21
|
-
|
22
18
|
attr_accessor :recipients
|
23
19
|
|
24
20
|
attr_accessor :user_id
|
25
21
|
|
26
|
-
attr_accessor :
|
22
|
+
attr_accessor :email_id
|
23
|
+
|
24
|
+
attr_accessor :inbox_id
|
27
25
|
|
28
26
|
attr_accessor :sent_id
|
29
27
|
|
30
28
|
attr_accessor :replier_id
|
31
29
|
|
30
|
+
attr_accessor :created_at
|
31
|
+
|
32
32
|
attr_accessor :message
|
33
33
|
|
34
34
|
attr_accessor :id
|
@@ -60,13 +60,13 @@ module MailSlurpClient
|
|
60
60
|
# Attribute mapping from ruby-style variable name to JSON key.
|
61
61
|
def self.attribute_map
|
62
62
|
{
|
63
|
-
:'email_id' => :'emailId',
|
64
|
-
:'inbox_id' => :'inboxId',
|
65
63
|
:'recipients' => :'recipients',
|
66
64
|
:'user_id' => :'userId',
|
67
|
-
:'
|
65
|
+
:'email_id' => :'emailId',
|
66
|
+
:'inbox_id' => :'inboxId',
|
68
67
|
:'sent_id' => :'sentId',
|
69
68
|
:'replier_id' => :'replierId',
|
69
|
+
:'created_at' => :'createdAt',
|
70
70
|
:'message' => :'message',
|
71
71
|
:'id' => :'id',
|
72
72
|
:'status' => :'status'
|
@@ -76,13 +76,13 @@ module MailSlurpClient
|
|
76
76
|
# Attribute type mapping.
|
77
77
|
def self.openapi_types
|
78
78
|
{
|
79
|
-
:'email_id' => :'String',
|
80
|
-
:'inbox_id' => :'String',
|
81
79
|
:'recipients' => :'Array<String>',
|
82
80
|
:'user_id' => :'String',
|
83
|
-
:'
|
81
|
+
:'email_id' => :'String',
|
82
|
+
:'inbox_id' => :'String',
|
84
83
|
:'sent_id' => :'String',
|
85
84
|
:'replier_id' => :'String',
|
85
|
+
:'created_at' => :'DateTime',
|
86
86
|
:'message' => :'String',
|
87
87
|
:'id' => :'String',
|
88
88
|
:'status' => :'String'
|
@@ -92,10 +92,10 @@ module MailSlurpClient
|
|
92
92
|
# List of attributes with nullable: true
|
93
93
|
def self.openapi_nullable
|
94
94
|
Set.new([
|
95
|
-
:'email_id',
|
96
|
-
:'inbox_id',
|
97
95
|
:'recipients',
|
98
96
|
:'user_id',
|
97
|
+
:'email_id',
|
98
|
+
:'inbox_id',
|
99
99
|
:'sent_id',
|
100
100
|
:'replier_id',
|
101
101
|
:'message',
|
@@ -119,14 +119,6 @@ module MailSlurpClient
|
|
119
119
|
h[k.to_sym] = v
|
120
120
|
}
|
121
121
|
|
122
|
-
if attributes.key?(:'email_id')
|
123
|
-
self.email_id = attributes[:'email_id']
|
124
|
-
end
|
125
|
-
|
126
|
-
if attributes.key?(:'inbox_id')
|
127
|
-
self.inbox_id = attributes[:'inbox_id']
|
128
|
-
end
|
129
|
-
|
130
122
|
if attributes.key?(:'recipients')
|
131
123
|
if (value = attributes[:'recipients']).is_a?(Array)
|
132
124
|
self.recipients = value
|
@@ -137,8 +129,12 @@ module MailSlurpClient
|
|
137
129
|
self.user_id = attributes[:'user_id']
|
138
130
|
end
|
139
131
|
|
140
|
-
if attributes.key?(:'
|
141
|
-
self.
|
132
|
+
if attributes.key?(:'email_id')
|
133
|
+
self.email_id = attributes[:'email_id']
|
134
|
+
end
|
135
|
+
|
136
|
+
if attributes.key?(:'inbox_id')
|
137
|
+
self.inbox_id = attributes[:'inbox_id']
|
142
138
|
end
|
143
139
|
|
144
140
|
if attributes.key?(:'sent_id')
|
@@ -149,6 +145,10 @@ module MailSlurpClient
|
|
149
145
|
self.replier_id = attributes[:'replier_id']
|
150
146
|
end
|
151
147
|
|
148
|
+
if attributes.key?(:'created_at')
|
149
|
+
self.created_at = attributes[:'created_at']
|
150
|
+
end
|
151
|
+
|
152
152
|
if attributes.key?(:'message')
|
153
153
|
self.message = attributes[:'message']
|
154
154
|
end
|
@@ -197,13 +197,13 @@ module MailSlurpClient
|
|
197
197
|
def ==(o)
|
198
198
|
return true if self.equal?(o)
|
199
199
|
self.class == o.class &&
|
200
|
-
email_id == o.email_id &&
|
201
|
-
inbox_id == o.inbox_id &&
|
202
200
|
recipients == o.recipients &&
|
203
201
|
user_id == o.user_id &&
|
204
|
-
|
202
|
+
email_id == o.email_id &&
|
203
|
+
inbox_id == o.inbox_id &&
|
205
204
|
sent_id == o.sent_id &&
|
206
205
|
replier_id == o.replier_id &&
|
206
|
+
created_at == o.created_at &&
|
207
207
|
message == o.message &&
|
208
208
|
id == o.id &&
|
209
209
|
status == o.status
|
@@ -218,7 +218,7 @@ module MailSlurpClient
|
|
218
218
|
# Calculates hash code according to all attributes.
|
219
219
|
# @return [Integer] Hash code
|
220
220
|
def hash
|
221
|
-
[
|
221
|
+
[recipients, user_id, email_id, inbox_id, sent_id, replier_id, created_at, message, id, status].hash
|
222
222
|
end
|
223
223
|
|
224
224
|
# Builds the object from hash
|
@@ -17,18 +17,18 @@ module MailSlurpClient
|
|
17
17
|
class ListUnsubscribeRecipientProjection
|
18
18
|
attr_accessor :email_address
|
19
19
|
|
20
|
-
attr_accessor :created_at
|
21
|
-
|
22
20
|
attr_accessor :domain_id
|
23
21
|
|
22
|
+
attr_accessor :created_at
|
23
|
+
|
24
24
|
attr_accessor :id
|
25
25
|
|
26
26
|
# Attribute mapping from ruby-style variable name to JSON key.
|
27
27
|
def self.attribute_map
|
28
28
|
{
|
29
29
|
:'email_address' => :'emailAddress',
|
30
|
-
:'created_at' => :'createdAt',
|
31
30
|
:'domain_id' => :'domainId',
|
31
|
+
:'created_at' => :'createdAt',
|
32
32
|
:'id' => :'id'
|
33
33
|
}
|
34
34
|
end
|
@@ -37,8 +37,8 @@ module MailSlurpClient
|
|
37
37
|
def self.openapi_types
|
38
38
|
{
|
39
39
|
:'email_address' => :'String',
|
40
|
-
:'created_at' => :'DateTime',
|
41
40
|
:'domain_id' => :'String',
|
41
|
+
:'created_at' => :'DateTime',
|
42
42
|
:'id' => :'String'
|
43
43
|
}
|
44
44
|
end
|
@@ -69,14 +69,14 @@ module MailSlurpClient
|
|
69
69
|
self.email_address = attributes[:'email_address']
|
70
70
|
end
|
71
71
|
|
72
|
-
if attributes.key?(:'created_at')
|
73
|
-
self.created_at = attributes[:'created_at']
|
74
|
-
end
|
75
|
-
|
76
72
|
if attributes.key?(:'domain_id')
|
77
73
|
self.domain_id = attributes[:'domain_id']
|
78
74
|
end
|
79
75
|
|
76
|
+
if attributes.key?(:'created_at')
|
77
|
+
self.created_at = attributes[:'created_at']
|
78
|
+
end
|
79
|
+
|
80
80
|
if attributes.key?(:'id')
|
81
81
|
self.id = attributes[:'id']
|
82
82
|
end
|
@@ -116,8 +116,8 @@ module MailSlurpClient
|
|
116
116
|
return true if self.equal?(o)
|
117
117
|
self.class == o.class &&
|
118
118
|
email_address == o.email_address &&
|
119
|
-
created_at == o.created_at &&
|
120
119
|
domain_id == o.domain_id &&
|
120
|
+
created_at == o.created_at &&
|
121
121
|
id == o.id
|
122
122
|
end
|
123
123
|
|
@@ -130,7 +130,7 @@ module MailSlurpClient
|
|
130
130
|
# Calculates hash code according to all attributes.
|
131
131
|
# @return [Integer] Hash code
|
132
132
|
def hash
|
133
|
-
[email_address,
|
133
|
+
[email_address, domain_id, created_at, id].hash
|
134
134
|
end
|
135
135
|
|
136
136
|
# Builds the object from hash
|
@@ -15,12 +15,12 @@ require 'date'
|
|
15
15
|
module MailSlurpClient
|
16
16
|
# Missed email data
|
17
17
|
class MissedEmailProjection
|
18
|
+
attr_accessor :subject
|
19
|
+
|
18
20
|
attr_accessor :user_id
|
19
21
|
|
20
22
|
attr_accessor :created_at
|
21
23
|
|
22
|
-
attr_accessor :subject
|
23
|
-
|
24
24
|
attr_accessor :id
|
25
25
|
|
26
26
|
attr_accessor :from
|
@@ -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
|
+
:'subject' => :'subject',
|
31
32
|
:'user_id' => :'userId',
|
32
33
|
:'created_at' => :'createdAt',
|
33
|
-
:'subject' => :'subject',
|
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
|
+
:'subject' => :'String',
|
42
43
|
:'user_id' => :'String',
|
43
44
|
:'created_at' => :'DateTime',
|
44
|
-
:'subject' => :'String',
|
45
45
|
:'id' => :'String',
|
46
46
|
:'from' => :'String'
|
47
47
|
}
|
@@ -50,8 +50,8 @@ module MailSlurpClient
|
|
50
50
|
# List of attributes with nullable: true
|
51
51
|
def self.openapi_nullable
|
52
52
|
Set.new([
|
53
|
-
:'user_id',
|
54
53
|
:'subject',
|
54
|
+
:'user_id',
|
55
55
|
:'from'
|
56
56
|
])
|
57
57
|
end
|
@@ -71,6 +71,10 @@ module MailSlurpClient
|
|
71
71
|
h[k.to_sym] = v
|
72
72
|
}
|
73
73
|
|
74
|
+
if attributes.key?(:'subject')
|
75
|
+
self.subject = attributes[:'subject']
|
76
|
+
end
|
77
|
+
|
74
78
|
if attributes.key?(:'user_id')
|
75
79
|
self.user_id = attributes[:'user_id']
|
76
80
|
end
|
@@ -79,10 +83,6 @@ module MailSlurpClient
|
|
79
83
|
self.created_at = attributes[:'created_at']
|
80
84
|
end
|
81
85
|
|
82
|
-
if attributes.key?(:'subject')
|
83
|
-
self.subject = attributes[:'subject']
|
84
|
-
end
|
85
|
-
|
86
86
|
if attributes.key?(:'id')
|
87
87
|
self.id = attributes[:'id']
|
88
88
|
end
|
@@ -120,9 +120,9 @@ module MailSlurpClient
|
|
120
120
|
def ==(o)
|
121
121
|
return true if self.equal?(o)
|
122
122
|
self.class == o.class &&
|
123
|
+
subject == o.subject &&
|
123
124
|
user_id == o.user_id &&
|
124
125
|
created_at == o.created_at &&
|
125
|
-
subject == o.subject &&
|
126
126
|
id == o.id &&
|
127
127
|
from == o.from
|
128
128
|
end
|
@@ -136,7 +136,7 @@ module MailSlurpClient
|
|
136
136
|
# Calculates hash code according to all attributes.
|
137
137
|
# @return [Integer] Hash code
|
138
138
|
def hash
|
139
|
-
[user_id, created_at,
|
139
|
+
[subject, user_id, created_at, id, from].hash
|
140
140
|
end
|
141
141
|
|
142
142
|
# Builds the object from hash
|