mailslurp_client 15.12.16 → 15.13.1
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/inbox_controller_api.rb +89 -0
- data/lib/mailslurp_client/api/phone_controller_api.rb +64 -0
- data/lib/mailslurp_client/api/sent_emails_controller_api.rb +83 -3
- data/lib/mailslurp_client/api/sms_controller_api.rb +3 -3
- data/lib/mailslurp_client/api/wait_for_controller_api.rb +64 -0
- data/lib/mailslurp_client/api/webhook_controller_api.rb +70 -0
- data/lib/mailslurp_client/models/alias_projection.rb +19 -19
- data/lib/mailslurp_client/models/attachment_meta_data.rb +1 -1
- data/lib/mailslurp_client/models/bounce_projection.rb +22 -22
- data/lib/mailslurp_client/models/contact_projection.rb +13 -13
- data/lib/mailslurp_client/models/{delivery_status.rb → delivery_status_dto.rb} +18 -4
- data/lib/mailslurp_client/models/email.rb +11 -1
- data/lib/mailslurp_client/models/email_preview.rb +11 -1
- data/lib/mailslurp_client/models/email_projection.rb +42 -33
- data/lib/mailslurp_client/models/expired_inbox_record_projection.rb +15 -15
- data/lib/mailslurp_client/models/inbox_preview.rb +11 -1
- data/lib/mailslurp_client/models/missed_email_projection.rb +10 -10
- data/lib/mailslurp_client/models/organization_inbox_projection.rb +11 -1
- data/lib/mailslurp_client/models/page_delivery_status.rb +1 -1
- data/lib/mailslurp_client/models/page_sent_email_projection.rb +16 -16
- data/lib/mailslurp_client/models/page_sent_email_with_queue_projection.rb +16 -16
- data/lib/mailslurp_client/models/sent_email_dto.rb +11 -1
- data/lib/mailslurp_client/models/sent_email_projection.rb +56 -56
- data/lib/mailslurp_client/models/{sms_message.rb → sms_dto.rb} +9 -18
- data/lib/mailslurp_client/models/sms_preview.rb +15 -1
- data/lib/mailslurp_client/models/sms_projection.rb +32 -18
- data/lib/mailslurp_client/models/sort.rb +13 -13
- data/lib/mailslurp_client/models/test_phone_number_options.rb +211 -0
- data/lib/mailslurp_client/models/thread_projection.rb +20 -20
- data/lib/mailslurp_client/models/tracking_pixel_projection.rb +10 -10
- data/lib/mailslurp_client/models/wait_for_single_sms_options.rb +304 -0
- data/lib/mailslurp_client/models/webhook_new_email_payload.rb +11 -1
- data/lib/mailslurp_client/version.rb +1 -1
- data/lib/mailslurp_client.rb +4 -2
- metadata +6 -4
@@ -17,25 +17,25 @@ module MailSlurpClient
|
|
17
17
|
class BounceProjection
|
18
18
|
attr_accessor :id
|
19
19
|
|
20
|
-
attr_accessor :sender
|
21
|
-
|
22
20
|
attr_accessor :subject
|
23
21
|
|
24
|
-
attr_accessor :
|
22
|
+
attr_accessor :sender
|
25
23
|
|
26
|
-
attr_accessor :
|
24
|
+
attr_accessor :created_at
|
27
25
|
|
28
26
|
attr_accessor :bounce_type
|
29
27
|
|
28
|
+
attr_accessor :bounce_mta
|
29
|
+
|
30
30
|
# Attribute mapping from ruby-style variable name to JSON key.
|
31
31
|
def self.attribute_map
|
32
32
|
{
|
33
33
|
:'id' => :'id',
|
34
|
-
:'sender' => :'sender',
|
35
34
|
:'subject' => :'subject',
|
35
|
+
:'sender' => :'sender',
|
36
36
|
:'created_at' => :'createdAt',
|
37
|
-
:'
|
38
|
-
:'
|
37
|
+
:'bounce_type' => :'bounceType',
|
38
|
+
:'bounce_mta' => :'bounceMta'
|
39
39
|
}
|
40
40
|
end
|
41
41
|
|
@@ -43,11 +43,11 @@ module MailSlurpClient
|
|
43
43
|
def self.openapi_types
|
44
44
|
{
|
45
45
|
:'id' => :'String',
|
46
|
-
:'sender' => :'String',
|
47
46
|
:'subject' => :'String',
|
47
|
+
:'sender' => :'String',
|
48
48
|
:'created_at' => :'DateTime',
|
49
|
-
:'
|
50
|
-
:'
|
49
|
+
:'bounce_type' => :'String',
|
50
|
+
:'bounce_mta' => :'String'
|
51
51
|
}
|
52
52
|
end
|
53
53
|
|
@@ -76,25 +76,25 @@ module MailSlurpClient
|
|
76
76
|
self.id = attributes[:'id']
|
77
77
|
end
|
78
78
|
|
79
|
-
if attributes.key?(:'sender')
|
80
|
-
self.sender = attributes[:'sender']
|
81
|
-
end
|
82
|
-
|
83
79
|
if attributes.key?(:'subject')
|
84
80
|
self.subject = attributes[:'subject']
|
85
81
|
end
|
86
82
|
|
87
|
-
if attributes.key?(:'
|
88
|
-
self.
|
83
|
+
if attributes.key?(:'sender')
|
84
|
+
self.sender = attributes[:'sender']
|
89
85
|
end
|
90
86
|
|
91
|
-
if attributes.key?(:'
|
92
|
-
self.
|
87
|
+
if attributes.key?(:'created_at')
|
88
|
+
self.created_at = attributes[:'created_at']
|
93
89
|
end
|
94
90
|
|
95
91
|
if attributes.key?(:'bounce_type')
|
96
92
|
self.bounce_type = attributes[:'bounce_type']
|
97
93
|
end
|
94
|
+
|
95
|
+
if attributes.key?(:'bounce_mta')
|
96
|
+
self.bounce_mta = attributes[:'bounce_mta']
|
97
|
+
end
|
98
98
|
end
|
99
99
|
|
100
100
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -126,11 +126,11 @@ module MailSlurpClient
|
|
126
126
|
return true if self.equal?(o)
|
127
127
|
self.class == o.class &&
|
128
128
|
id == o.id &&
|
129
|
-
sender == o.sender &&
|
130
129
|
subject == o.subject &&
|
130
|
+
sender == o.sender &&
|
131
131
|
created_at == o.created_at &&
|
132
|
-
|
133
|
-
|
132
|
+
bounce_type == o.bounce_type &&
|
133
|
+
bounce_mta == o.bounce_mta
|
134
134
|
end
|
135
135
|
|
136
136
|
# @see the `==` method
|
@@ -142,7 +142,7 @@ module MailSlurpClient
|
|
142
142
|
# Calculates hash code according to all attributes.
|
143
143
|
# @return [Integer] Hash code
|
144
144
|
def hash
|
145
|
-
[id,
|
145
|
+
[id, subject, sender, created_at, bounce_type, bounce_mta].hash
|
146
146
|
end
|
147
147
|
|
148
148
|
# Builds the object from hash
|
@@ -21,8 +21,6 @@ module MailSlurpClient
|
|
21
21
|
|
22
22
|
attr_accessor :created_at
|
23
23
|
|
24
|
-
attr_accessor :first_name
|
25
|
-
|
26
24
|
attr_accessor :last_name
|
27
25
|
|
28
26
|
attr_accessor :company
|
@@ -31,17 +29,19 @@ module MailSlurpClient
|
|
31
29
|
|
32
30
|
attr_accessor :opt_out
|
33
31
|
|
32
|
+
attr_accessor :first_name
|
33
|
+
|
34
34
|
# Attribute mapping from ruby-style variable name to JSON key.
|
35
35
|
def self.attribute_map
|
36
36
|
{
|
37
37
|
:'id' => :'id',
|
38
38
|
:'group_id' => :'groupId',
|
39
39
|
:'created_at' => :'createdAt',
|
40
|
-
:'first_name' => :'firstName',
|
41
40
|
:'last_name' => :'lastName',
|
42
41
|
:'company' => :'company',
|
43
42
|
:'email_addresses' => :'emailAddresses',
|
44
|
-
:'opt_out' => :'optOut'
|
43
|
+
:'opt_out' => :'optOut',
|
44
|
+
:'first_name' => :'firstName'
|
45
45
|
}
|
46
46
|
end
|
47
47
|
|
@@ -51,11 +51,11 @@ module MailSlurpClient
|
|
51
51
|
:'id' => :'String',
|
52
52
|
:'group_id' => :'String',
|
53
53
|
:'created_at' => :'DateTime',
|
54
|
-
:'first_name' => :'String',
|
55
54
|
:'last_name' => :'String',
|
56
55
|
:'company' => :'String',
|
57
56
|
:'email_addresses' => :'Array<String>',
|
58
|
-
:'opt_out' => :'Boolean'
|
57
|
+
:'opt_out' => :'Boolean',
|
58
|
+
:'first_name' => :'String'
|
59
59
|
}
|
60
60
|
end
|
61
61
|
|
@@ -92,10 +92,6 @@ module MailSlurpClient
|
|
92
92
|
self.created_at = attributes[:'created_at']
|
93
93
|
end
|
94
94
|
|
95
|
-
if attributes.key?(:'first_name')
|
96
|
-
self.first_name = attributes[:'first_name']
|
97
|
-
end
|
98
|
-
|
99
95
|
if attributes.key?(:'last_name')
|
100
96
|
self.last_name = attributes[:'last_name']
|
101
97
|
end
|
@@ -113,6 +109,10 @@ module MailSlurpClient
|
|
113
109
|
if attributes.key?(:'opt_out')
|
114
110
|
self.opt_out = attributes[:'opt_out']
|
115
111
|
end
|
112
|
+
|
113
|
+
if attributes.key?(:'first_name')
|
114
|
+
self.first_name = attributes[:'first_name']
|
115
|
+
end
|
116
116
|
end
|
117
117
|
|
118
118
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -151,11 +151,11 @@ module MailSlurpClient
|
|
151
151
|
id == o.id &&
|
152
152
|
group_id == o.group_id &&
|
153
153
|
created_at == o.created_at &&
|
154
|
-
first_name == o.first_name &&
|
155
154
|
last_name == o.last_name &&
|
156
155
|
company == o.company &&
|
157
156
|
email_addresses == o.email_addresses &&
|
158
|
-
opt_out == o.opt_out
|
157
|
+
opt_out == o.opt_out &&
|
158
|
+
first_name == o.first_name
|
159
159
|
end
|
160
160
|
|
161
161
|
# @see the `==` method
|
@@ -167,7 +167,7 @@ module MailSlurpClient
|
|
167
167
|
# Calculates hash code according to all attributes.
|
168
168
|
# @return [Integer] Hash code
|
169
169
|
def hash
|
170
|
-
[id, group_id, created_at,
|
170
|
+
[id, group_id, created_at, last_name, company, email_addresses, opt_out, first_name].hash
|
171
171
|
end
|
172
172
|
|
173
173
|
# Builds the object from hash
|
@@ -13,7 +13,7 @@ OpenAPI Generator version: 4.3.1
|
|
13
13
|
require 'date'
|
14
14
|
|
15
15
|
module MailSlurpClient
|
16
|
-
class
|
16
|
+
class DeliveryStatusDto
|
17
17
|
attr_accessor :id
|
18
18
|
|
19
19
|
attr_accessor :user_id
|
@@ -30,6 +30,8 @@ module MailSlurpClient
|
|
30
30
|
|
31
31
|
attr_accessor :smtp_response
|
32
32
|
|
33
|
+
attr_accessor :smtp_status_code
|
34
|
+
|
33
35
|
attr_accessor :processing_time_millis
|
34
36
|
|
35
37
|
attr_accessor :received
|
@@ -51,6 +53,7 @@ module MailSlurpClient
|
|
51
53
|
:'reporting_mta' => :'reportingMta',
|
52
54
|
:'recipients' => :'recipients',
|
53
55
|
:'smtp_response' => :'smtpResponse',
|
56
|
+
:'smtp_status_code' => :'smtpStatusCode',
|
54
57
|
:'processing_time_millis' => :'processingTimeMillis',
|
55
58
|
:'received' => :'received',
|
56
59
|
:'subject' => :'subject',
|
@@ -70,6 +73,7 @@ module MailSlurpClient
|
|
70
73
|
:'reporting_mta' => :'String',
|
71
74
|
:'recipients' => :'Array<String>',
|
72
75
|
:'smtp_response' => :'String',
|
76
|
+
:'smtp_status_code' => :'Integer',
|
73
77
|
:'processing_time_millis' => :'Integer',
|
74
78
|
:'received' => :'DateTime',
|
75
79
|
:'subject' => :'String',
|
@@ -88,13 +92,13 @@ module MailSlurpClient
|
|
88
92
|
# @param [Hash] attributes Model attributes in the form of hash
|
89
93
|
def initialize(attributes = {})
|
90
94
|
if (!attributes.is_a?(Hash))
|
91
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `MailSlurpClient::
|
95
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `MailSlurpClient::DeliveryStatusDto` initialize method"
|
92
96
|
end
|
93
97
|
|
94
98
|
# check to see if the attribute exists and convert string to symbol for hash key
|
95
99
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
96
100
|
if (!self.class.attribute_map.key?(k.to_sym))
|
97
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `MailSlurpClient::
|
101
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `MailSlurpClient::DeliveryStatusDto`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
98
102
|
end
|
99
103
|
h[k.to_sym] = v
|
100
104
|
}
|
@@ -133,6 +137,10 @@ module MailSlurpClient
|
|
133
137
|
self.smtp_response = attributes[:'smtp_response']
|
134
138
|
end
|
135
139
|
|
140
|
+
if attributes.key?(:'smtp_status_code')
|
141
|
+
self.smtp_status_code = attributes[:'smtp_status_code']
|
142
|
+
end
|
143
|
+
|
136
144
|
if attributes.key?(:'processing_time_millis')
|
137
145
|
self.processing_time_millis = attributes[:'processing_time_millis']
|
138
146
|
end
|
@@ -158,6 +166,10 @@ module MailSlurpClient
|
|
158
166
|
# @return Array for valid properties with the reasons
|
159
167
|
def list_invalid_properties
|
160
168
|
invalid_properties = Array.new
|
169
|
+
if @id.nil?
|
170
|
+
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
171
|
+
end
|
172
|
+
|
161
173
|
if @user_id.nil?
|
162
174
|
invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
|
163
175
|
end
|
@@ -176,6 +188,7 @@ module MailSlurpClient
|
|
176
188
|
# Check to see if the all the properties in the model are valid
|
177
189
|
# @return true if the model is valid
|
178
190
|
def valid?
|
191
|
+
return false if @id.nil?
|
179
192
|
return false if @user_id.nil?
|
180
193
|
return false if @created_at.nil?
|
181
194
|
return false if @updated_at.nil?
|
@@ -195,6 +208,7 @@ module MailSlurpClient
|
|
195
208
|
reporting_mta == o.reporting_mta &&
|
196
209
|
recipients == o.recipients &&
|
197
210
|
smtp_response == o.smtp_response &&
|
211
|
+
smtp_status_code == o.smtp_status_code &&
|
198
212
|
processing_time_millis == o.processing_time_millis &&
|
199
213
|
received == o.received &&
|
200
214
|
subject == o.subject &&
|
@@ -211,7 +225,7 @@ module MailSlurpClient
|
|
211
225
|
# Calculates hash code according to all attributes.
|
212
226
|
# @return [Integer] Hash code
|
213
227
|
def hash
|
214
|
-
[id, user_id, sent_id, remote_mta_ip, inbox_id, reporting_mta, recipients, smtp_response, processing_time_millis, received, subject, created_at, updated_at].hash
|
228
|
+
[id, user_id, sent_id, remote_mta_ip, inbox_id, reporting_mta, recipients, smtp_response, smtp_status_code, processing_time_millis, received, subject, created_at, updated_at].hash
|
215
229
|
end
|
216
230
|
|
217
231
|
# Builds the object from hash
|
@@ -24,6 +24,9 @@ module MailSlurpClient
|
|
24
24
|
# ID of the inbox that received the email
|
25
25
|
attr_accessor :inbox_id
|
26
26
|
|
27
|
+
# ID of the domain that received the email
|
28
|
+
attr_accessor :domain_id
|
29
|
+
|
27
30
|
# List of `To` recipient email addresses that the email was addressed to. See recipients object for names.
|
28
31
|
attr_accessor :to
|
29
32
|
|
@@ -89,6 +92,7 @@ module MailSlurpClient
|
|
89
92
|
:'id' => :'id',
|
90
93
|
:'user_id' => :'userId',
|
91
94
|
:'inbox_id' => :'inboxId',
|
95
|
+
:'domain_id' => :'domainId',
|
92
96
|
:'to' => :'to',
|
93
97
|
:'from' => :'from',
|
94
98
|
:'sender' => :'sender',
|
@@ -119,6 +123,7 @@ module MailSlurpClient
|
|
119
123
|
:'id' => :'String',
|
120
124
|
:'user_id' => :'String',
|
121
125
|
:'inbox_id' => :'String',
|
126
|
+
:'domain_id' => :'String',
|
122
127
|
:'to' => :'Array<String>',
|
123
128
|
:'from' => :'String',
|
124
129
|
:'sender' => :'Sender',
|
@@ -191,6 +196,10 @@ module MailSlurpClient
|
|
191
196
|
self.inbox_id = attributes[:'inbox_id']
|
192
197
|
end
|
193
198
|
|
199
|
+
if attributes.key?(:'domain_id')
|
200
|
+
self.domain_id = attributes[:'domain_id']
|
201
|
+
end
|
202
|
+
|
194
203
|
if attributes.key?(:'to')
|
195
204
|
if (value = attributes[:'to']).is_a?(Array)
|
196
205
|
self.to = value
|
@@ -347,6 +356,7 @@ module MailSlurpClient
|
|
347
356
|
id == o.id &&
|
348
357
|
user_id == o.user_id &&
|
349
358
|
inbox_id == o.inbox_id &&
|
359
|
+
domain_id == o.domain_id &&
|
350
360
|
to == o.to &&
|
351
361
|
from == o.from &&
|
352
362
|
sender == o.sender &&
|
@@ -379,7 +389,7 @@ module MailSlurpClient
|
|
379
389
|
# Calculates hash code according to all attributes.
|
380
390
|
# @return [Integer] Hash code
|
381
391
|
def hash
|
382
|
-
[id, user_id, inbox_id, to, from, sender, recipients, reply_to, cc, bcc, headers, attachments, subject, body, body_excerpt, body_md5_hash, is_html, charset, analysis, created_at, updated_at, read, team_access, html].hash
|
392
|
+
[id, user_id, inbox_id, domain_id, to, from, sender, recipients, reply_to, cc, bcc, headers, attachments, subject, body, body_excerpt, body_md5_hash, is_html, charset, analysis, created_at, updated_at, read, team_access, html].hash
|
383
393
|
end
|
384
394
|
|
385
395
|
# Builds the object from hash
|
@@ -18,6 +18,9 @@ module MailSlurpClient
|
|
18
18
|
# ID of the email entity
|
19
19
|
attr_accessor :id
|
20
20
|
|
21
|
+
# ID of the domain that received the email
|
22
|
+
attr_accessor :domain_id
|
23
|
+
|
21
24
|
# The subject line of the email message as specified by SMTP subject header
|
22
25
|
attr_accessor :subject
|
23
26
|
|
@@ -46,6 +49,7 @@ module MailSlurpClient
|
|
46
49
|
def self.attribute_map
|
47
50
|
{
|
48
51
|
:'id' => :'id',
|
52
|
+
:'domain_id' => :'domainId',
|
49
53
|
:'subject' => :'subject',
|
50
54
|
:'to' => :'to',
|
51
55
|
:'from' => :'from',
|
@@ -61,6 +65,7 @@ module MailSlurpClient
|
|
61
65
|
def self.openapi_types
|
62
66
|
{
|
63
67
|
:'id' => :'String',
|
68
|
+
:'domain_id' => :'String',
|
64
69
|
:'subject' => :'String',
|
65
70
|
:'to' => :'Array<String>',
|
66
71
|
:'from' => :'String',
|
@@ -103,6 +108,10 @@ module MailSlurpClient
|
|
103
108
|
self.id = attributes[:'id']
|
104
109
|
end
|
105
110
|
|
111
|
+
if attributes.key?(:'domain_id')
|
112
|
+
self.domain_id = attributes[:'domain_id']
|
113
|
+
end
|
114
|
+
|
106
115
|
if attributes.key?(:'subject')
|
107
116
|
self.subject = attributes[:'subject']
|
108
117
|
end
|
@@ -178,6 +187,7 @@ module MailSlurpClient
|
|
178
187
|
return true if self.equal?(o)
|
179
188
|
self.class == o.class &&
|
180
189
|
id == o.id &&
|
190
|
+
domain_id == o.domain_id &&
|
181
191
|
subject == o.subject &&
|
182
192
|
to == o.to &&
|
183
193
|
from == o.from &&
|
@@ -197,7 +207,7 @@ module MailSlurpClient
|
|
197
207
|
# Calculates hash code according to all attributes.
|
198
208
|
# @return [Integer] Hash code
|
199
209
|
def hash
|
200
|
-
[id, subject, to, from, bcc, cc, created_at, read, attachments].hash
|
210
|
+
[id, domain_id, subject, to, from, bcc, cc, created_at, read, attachments].hash
|
201
211
|
end
|
202
212
|
|
203
213
|
# Builds the object from hash
|
@@ -19,10 +19,10 @@ module MailSlurpClient
|
|
19
19
|
|
20
20
|
attr_accessor :from
|
21
21
|
|
22
|
-
attr_accessor :inbox_id
|
23
|
-
|
24
22
|
attr_accessor :subject
|
25
23
|
|
24
|
+
attr_accessor :inbox_id
|
25
|
+
|
26
26
|
attr_accessor :attachments
|
27
27
|
|
28
28
|
attr_accessor :to
|
@@ -33,30 +33,33 @@ module MailSlurpClient
|
|
33
33
|
|
34
34
|
attr_accessor :cc
|
35
35
|
|
36
|
-
attr_accessor :
|
37
|
-
|
38
|
-
attr_accessor :read
|
36
|
+
attr_accessor :domain_id
|
39
37
|
|
40
38
|
attr_accessor :body_md5_hash
|
41
39
|
|
42
40
|
attr_accessor :body_excerpt
|
43
41
|
|
42
|
+
attr_accessor :read
|
43
|
+
|
44
|
+
attr_accessor :team_access
|
45
|
+
|
44
46
|
# Attribute mapping from ruby-style variable name to JSON key.
|
45
47
|
def self.attribute_map
|
46
48
|
{
|
47
49
|
:'id' => :'id',
|
48
50
|
:'from' => :'from',
|
49
|
-
:'inbox_id' => :'inboxId',
|
50
51
|
:'subject' => :'subject',
|
52
|
+
:'inbox_id' => :'inboxId',
|
51
53
|
:'attachments' => :'attachments',
|
52
54
|
:'to' => :'to',
|
53
55
|
:'created_at' => :'createdAt',
|
54
56
|
:'bcc' => :'bcc',
|
55
57
|
:'cc' => :'cc',
|
56
|
-
:'
|
57
|
-
:'read' => :'read',
|
58
|
+
:'domain_id' => :'domainId',
|
58
59
|
:'body_md5_hash' => :'bodyMD5Hash',
|
59
|
-
:'body_excerpt' => :'bodyExcerpt'
|
60
|
+
:'body_excerpt' => :'bodyExcerpt',
|
61
|
+
:'read' => :'read',
|
62
|
+
:'team_access' => :'teamAccess'
|
60
63
|
}
|
61
64
|
end
|
62
65
|
|
@@ -65,17 +68,18 @@ module MailSlurpClient
|
|
65
68
|
{
|
66
69
|
:'id' => :'String',
|
67
70
|
:'from' => :'String',
|
68
|
-
:'inbox_id' => :'String',
|
69
71
|
:'subject' => :'String',
|
72
|
+
:'inbox_id' => :'String',
|
70
73
|
:'attachments' => :'Array<String>',
|
71
74
|
:'to' => :'Array<String>',
|
72
75
|
:'created_at' => :'DateTime',
|
73
76
|
:'bcc' => :'Array<String>',
|
74
77
|
:'cc' => :'Array<String>',
|
75
|
-
:'
|
76
|
-
:'read' => :'Boolean',
|
78
|
+
:'domain_id' => :'String',
|
77
79
|
:'body_md5_hash' => :'String',
|
78
|
-
:'body_excerpt' => :'String'
|
80
|
+
:'body_excerpt' => :'String',
|
81
|
+
:'read' => :'Boolean',
|
82
|
+
:'team_access' => :'Boolean'
|
79
83
|
}
|
80
84
|
end
|
81
85
|
|
@@ -108,14 +112,14 @@ module MailSlurpClient
|
|
108
112
|
self.from = attributes[:'from']
|
109
113
|
end
|
110
114
|
|
111
|
-
if attributes.key?(:'inbox_id')
|
112
|
-
self.inbox_id = attributes[:'inbox_id']
|
113
|
-
end
|
114
|
-
|
115
115
|
if attributes.key?(:'subject')
|
116
116
|
self.subject = attributes[:'subject']
|
117
117
|
end
|
118
118
|
|
119
|
+
if attributes.key?(:'inbox_id')
|
120
|
+
self.inbox_id = attributes[:'inbox_id']
|
121
|
+
end
|
122
|
+
|
119
123
|
if attributes.key?(:'attachments')
|
120
124
|
if (value = attributes[:'attachments']).is_a?(Array)
|
121
125
|
self.attachments = value
|
@@ -144,12 +148,8 @@ module MailSlurpClient
|
|
144
148
|
end
|
145
149
|
end
|
146
150
|
|
147
|
-
if attributes.key?(:'
|
148
|
-
self.
|
149
|
-
end
|
150
|
-
|
151
|
-
if attributes.key?(:'read')
|
152
|
-
self.read = attributes[:'read']
|
151
|
+
if attributes.key?(:'domain_id')
|
152
|
+
self.domain_id = attributes[:'domain_id']
|
153
153
|
end
|
154
154
|
|
155
155
|
if attributes.key?(:'body_md5_hash')
|
@@ -159,6 +159,14 @@ module MailSlurpClient
|
|
159
159
|
if attributes.key?(:'body_excerpt')
|
160
160
|
self.body_excerpt = attributes[:'body_excerpt']
|
161
161
|
end
|
162
|
+
|
163
|
+
if attributes.key?(:'read')
|
164
|
+
self.read = attributes[:'read']
|
165
|
+
end
|
166
|
+
|
167
|
+
if attributes.key?(:'team_access')
|
168
|
+
self.team_access = attributes[:'team_access']
|
169
|
+
end
|
162
170
|
end
|
163
171
|
|
164
172
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -181,14 +189,14 @@ module MailSlurpClient
|
|
181
189
|
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
182
190
|
end
|
183
191
|
|
184
|
-
if @team_access.nil?
|
185
|
-
invalid_properties.push('invalid value for "team_access", team_access cannot be nil.')
|
186
|
-
end
|
187
|
-
|
188
192
|
if @read.nil?
|
189
193
|
invalid_properties.push('invalid value for "read", read cannot be nil.')
|
190
194
|
end
|
191
195
|
|
196
|
+
if @team_access.nil?
|
197
|
+
invalid_properties.push('invalid value for "team_access", team_access cannot be nil.')
|
198
|
+
end
|
199
|
+
|
192
200
|
invalid_properties
|
193
201
|
end
|
194
202
|
|
@@ -199,8 +207,8 @@ module MailSlurpClient
|
|
199
207
|
return false if @inbox_id.nil?
|
200
208
|
return false if @to.nil?
|
201
209
|
return false if @created_at.nil?
|
202
|
-
return false if @team_access.nil?
|
203
210
|
return false if @read.nil?
|
211
|
+
return false if @team_access.nil?
|
204
212
|
true
|
205
213
|
end
|
206
214
|
|
@@ -211,17 +219,18 @@ module MailSlurpClient
|
|
211
219
|
self.class == o.class &&
|
212
220
|
id == o.id &&
|
213
221
|
from == o.from &&
|
214
|
-
inbox_id == o.inbox_id &&
|
215
222
|
subject == o.subject &&
|
223
|
+
inbox_id == o.inbox_id &&
|
216
224
|
attachments == o.attachments &&
|
217
225
|
to == o.to &&
|
218
226
|
created_at == o.created_at &&
|
219
227
|
bcc == o.bcc &&
|
220
228
|
cc == o.cc &&
|
221
|
-
|
222
|
-
read == o.read &&
|
229
|
+
domain_id == o.domain_id &&
|
223
230
|
body_md5_hash == o.body_md5_hash &&
|
224
|
-
body_excerpt == o.body_excerpt
|
231
|
+
body_excerpt == o.body_excerpt &&
|
232
|
+
read == o.read &&
|
233
|
+
team_access == o.team_access
|
225
234
|
end
|
226
235
|
|
227
236
|
# @see the `==` method
|
@@ -233,7 +242,7 @@ module MailSlurpClient
|
|
233
242
|
# Calculates hash code according to all attributes.
|
234
243
|
# @return [Integer] Hash code
|
235
244
|
def hash
|
236
|
-
[id, from,
|
245
|
+
[id, from, subject, inbox_id, attachments, to, created_at, bcc, cc, domain_id, body_md5_hash, body_excerpt, read, team_access].hash
|
237
246
|
end
|
238
247
|
|
239
248
|
# Builds the object from hash
|
@@ -17,18 +17,18 @@ module MailSlurpClient
|
|
17
17
|
class ExpiredInboxRecordProjection
|
18
18
|
attr_accessor :id
|
19
19
|
|
20
|
-
attr_accessor :user_id
|
21
|
-
|
22
20
|
attr_accessor :email_address
|
23
21
|
|
22
|
+
attr_accessor :user_id
|
23
|
+
|
24
24
|
attr_accessor :created_at
|
25
25
|
|
26
26
|
# Attribute mapping from ruby-style variable name to JSON key.
|
27
27
|
def self.attribute_map
|
28
28
|
{
|
29
29
|
:'id' => :'id',
|
30
|
-
:'user_id' => :'userId',
|
31
30
|
:'email_address' => :'emailAddress',
|
31
|
+
:'user_id' => :'userId',
|
32
32
|
:'created_at' => :'createdAt'
|
33
33
|
}
|
34
34
|
end
|
@@ -37,8 +37,8 @@ module MailSlurpClient
|
|
37
37
|
def self.openapi_types
|
38
38
|
{
|
39
39
|
:'id' => :'String',
|
40
|
-
:'user_id' => :'String',
|
41
40
|
:'email_address' => :'String',
|
41
|
+
:'user_id' => :'String',
|
42
42
|
:'created_at' => :'DateTime'
|
43
43
|
}
|
44
44
|
end
|
@@ -68,14 +68,14 @@ module MailSlurpClient
|
|
68
68
|
self.id = attributes[:'id']
|
69
69
|
end
|
70
70
|
|
71
|
-
if attributes.key?(:'user_id')
|
72
|
-
self.user_id = attributes[:'user_id']
|
73
|
-
end
|
74
|
-
|
75
71
|
if attributes.key?(:'email_address')
|
76
72
|
self.email_address = attributes[:'email_address']
|
77
73
|
end
|
78
74
|
|
75
|
+
if attributes.key?(:'user_id')
|
76
|
+
self.user_id = attributes[:'user_id']
|
77
|
+
end
|
78
|
+
|
79
79
|
if attributes.key?(:'created_at')
|
80
80
|
self.created_at = attributes[:'created_at']
|
81
81
|
end
|
@@ -89,14 +89,14 @@ module MailSlurpClient
|
|
89
89
|
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
90
90
|
end
|
91
91
|
|
92
|
-
if @user_id.nil?
|
93
|
-
invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
|
94
|
-
end
|
95
|
-
|
96
92
|
if @email_address.nil?
|
97
93
|
invalid_properties.push('invalid value for "email_address", email_address cannot be nil.')
|
98
94
|
end
|
99
95
|
|
96
|
+
if @user_id.nil?
|
97
|
+
invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
|
98
|
+
end
|
99
|
+
|
100
100
|
if @created_at.nil?
|
101
101
|
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
102
102
|
end
|
@@ -108,8 +108,8 @@ module MailSlurpClient
|
|
108
108
|
# @return true if the model is valid
|
109
109
|
def valid?
|
110
110
|
return false if @id.nil?
|
111
|
-
return false if @user_id.nil?
|
112
111
|
return false if @email_address.nil?
|
112
|
+
return false if @user_id.nil?
|
113
113
|
return false if @created_at.nil?
|
114
114
|
true
|
115
115
|
end
|
@@ -120,8 +120,8 @@ module MailSlurpClient
|
|
120
120
|
return true if self.equal?(o)
|
121
121
|
self.class == o.class &&
|
122
122
|
id == o.id &&
|
123
|
-
user_id == o.user_id &&
|
124
123
|
email_address == o.email_address &&
|
124
|
+
user_id == o.user_id &&
|
125
125
|
created_at == o.created_at
|
126
126
|
end
|
127
127
|
|
@@ -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
|
-
[id,
|
137
|
+
[id, email_address, user_id, created_at].hash
|
138
138
|
end
|
139
139
|
|
140
140
|
# Builds the object from hash
|