mailslurp_client 15.20.0 → 15.21.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/attachment_controller_api.rb +6 -0
- data/lib/mailslurp_client/api/bounce_controller_api.rb +79 -0
- data/lib/mailslurp_client/api/inbox_controller_api.rb +56 -2
- data/lib/mailslurp_client/api/o_auth_connection_api.rb +170 -0
- data/lib/mailslurp_client/api/phone_controller_api.rb +381 -1
- data/lib/mailslurp_client/api/user_controller_api.rb +267 -0
- data/lib/mailslurp_client/models/alias_projection.rb +29 -29
- data/lib/mailslurp_client/models/alias_thread_projection.rb +39 -39
- data/lib/mailslurp_client/models/attachment_projection.rb +25 -25
- data/lib/mailslurp_client/models/bounce_projection.rb +22 -22
- data/lib/mailslurp_client/models/bounce_recipient_projection.rb +10 -10
- data/lib/mailslurp_client/models/connector_event_projection.rb +15 -15
- data/lib/mailslurp_client/models/connector_projection.rb +15 -15
- data/lib/mailslurp_client/models/contact_projection.rb +10 -10
- data/lib/mailslurp_client/models/create_emergency_address_options.rb +2 -2
- data/lib/mailslurp_client/models/create_o_auth_connection_result.rb +211 -0
- data/lib/mailslurp_client/models/create_o_auth_exchange_result.rb +229 -0
- data/lib/mailslurp_client/models/create_phone_number_options.rb +284 -0
- data/lib/mailslurp_client/models/domain_dto.rb +27 -1
- data/lib/mailslurp_client/models/email.rb +12 -1
- data/lib/mailslurp_client/models/email_preview.rb +15 -5
- data/lib/mailslurp_client/models/email_projection.rb +35 -25
- data/lib/mailslurp_client/models/email_thread_projection.rb +52 -52
- data/lib/mailslurp_client/models/emergency_address.rb +2 -2
- data/lib/mailslurp_client/models/emergency_address_dto.rb +2 -2
- data/lib/mailslurp_client/models/entity_automation_item_projection.rb +295 -0
- data/lib/mailslurp_client/models/entity_event_item_projection.rb +303 -0
- data/lib/mailslurp_client/models/entity_favourite_item_projection.rb +296 -0
- data/lib/mailslurp_client/models/expired_inbox_record_projection.rb +15 -15
- data/lib/mailslurp_client/models/guest_portal_user_projection.rb +39 -39
- data/lib/mailslurp_client/models/inbox_dto.rb +2 -2
- data/lib/mailslurp_client/models/inbox_forwarder_event_projection.rb +10 -10
- data/lib/mailslurp_client/models/inbox_preview.rb +2 -2
- data/lib/mailslurp_client/models/inbox_replier_event_projection.rb +10 -10
- data/lib/mailslurp_client/models/list_unsubscribe_recipient_projection.rb +15 -15
- data/lib/mailslurp_client/models/missed_email_projection.rb +14 -14
- data/lib/mailslurp_client/models/opt_in_identity_projection.rb +29 -29
- data/lib/mailslurp_client/models/organization_inbox_projection.rb +2 -2
- data/lib/mailslurp_client/models/page_entity_automation_items.rb +309 -0
- data/lib/mailslurp_client/models/page_entity_event_items.rb +309 -0
- data/lib/mailslurp_client/models/page_entity_favourite_items.rb +309 -0
- data/lib/mailslurp_client/models/page_phone_message_thread_item_projection.rb +309 -0
- data/lib/mailslurp_client/models/page_phone_message_thread_projection.rb +309 -0
- data/lib/mailslurp_client/models/page_reputation_items.rb +309 -0
- data/lib/mailslurp_client/models/phone_message_thread_item_projection.rb +315 -0
- data/lib/mailslurp_client/models/phone_message_thread_projection.rb +315 -0
- data/lib/mailslurp_client/models/phone_number_dto.rb +2 -2
- data/lib/mailslurp_client/models/phone_number_projection.rb +17 -17
- data/lib/mailslurp_client/models/phone_plan_availability_item.rb +2 -2
- data/lib/mailslurp_client/models/phone_plan_dto.rb +2 -2
- data/lib/mailslurp_client/models/plus_address_projection.rb +29 -29
- data/lib/mailslurp_client/models/reputation_item_projection.rb +317 -0
- data/lib/mailslurp_client/models/search_inboxes_options.rb +2 -2
- data/lib/mailslurp_client/models/sent_email_dto.rb +12 -1
- data/lib/mailslurp_client/models/sent_email_projection.rb +25 -25
- data/lib/mailslurp_client/models/sent_sms_projection.rb +15 -15
- data/lib/mailslurp_client/models/sms_preview.rb +15 -1
- data/lib/mailslurp_client/models/sms_projection.rb +15 -15
- data/lib/mailslurp_client/models/template_projection.rb +15 -15
- data/lib/mailslurp_client/models/tracking_pixel_projection.rb +15 -15
- data/lib/mailslurp_client/models/unknown_missed_email_projection.rb +10 -10
- data/lib/mailslurp_client/models/wait_for_sms_conditions.rb +1 -1
- data/lib/mailslurp_client/models/webhook_projection.rb +47 -47
- data/lib/mailslurp_client/version.rb +1 -1
- data/lib/mailslurp_client.rb +16 -0
- metadata +18 -2
@@ -15,16 +15,16 @@ require 'date'
|
|
15
15
|
module MailSlurpClient
|
16
16
|
# Representation of a alias
|
17
17
|
class AliasProjection
|
18
|
-
attr_accessor :created_at
|
19
|
-
|
20
|
-
attr_accessor :updated_at
|
21
|
-
|
22
18
|
attr_accessor :user_id
|
23
19
|
|
24
20
|
attr_accessor :email_address
|
25
21
|
|
26
22
|
attr_accessor :inbox_id
|
27
23
|
|
24
|
+
attr_accessor :updated_at
|
25
|
+
|
26
|
+
attr_accessor :created_at
|
27
|
+
|
28
28
|
attr_accessor :use_threads
|
29
29
|
|
30
30
|
attr_accessor :name
|
@@ -34,11 +34,11 @@ module MailSlurpClient
|
|
34
34
|
# Attribute mapping from ruby-style variable name to JSON key.
|
35
35
|
def self.attribute_map
|
36
36
|
{
|
37
|
-
:'created_at' => :'createdAt',
|
38
|
-
:'updated_at' => :'updatedAt',
|
39
37
|
:'user_id' => :'userId',
|
40
38
|
:'email_address' => :'emailAddress',
|
41
39
|
:'inbox_id' => :'inboxId',
|
40
|
+
:'updated_at' => :'updatedAt',
|
41
|
+
:'created_at' => :'createdAt',
|
42
42
|
:'use_threads' => :'useThreads',
|
43
43
|
:'name' => :'name',
|
44
44
|
:'id' => :'id'
|
@@ -48,11 +48,11 @@ module MailSlurpClient
|
|
48
48
|
# Attribute type mapping.
|
49
49
|
def self.openapi_types
|
50
50
|
{
|
51
|
-
:'created_at' => :'DateTime',
|
52
|
-
:'updated_at' => :'DateTime',
|
53
51
|
:'user_id' => :'String',
|
54
52
|
:'email_address' => :'String',
|
55
53
|
:'inbox_id' => :'String',
|
54
|
+
:'updated_at' => :'DateTime',
|
55
|
+
:'created_at' => :'DateTime',
|
56
56
|
:'use_threads' => :'Boolean',
|
57
57
|
:'name' => :'String',
|
58
58
|
:'id' => :'String'
|
@@ -80,14 +80,6 @@ module MailSlurpClient
|
|
80
80
|
h[k.to_sym] = v
|
81
81
|
}
|
82
82
|
|
83
|
-
if attributes.key?(:'created_at')
|
84
|
-
self.created_at = attributes[:'created_at']
|
85
|
-
end
|
86
|
-
|
87
|
-
if attributes.key?(:'updated_at')
|
88
|
-
self.updated_at = attributes[:'updated_at']
|
89
|
-
end
|
90
|
-
|
91
83
|
if attributes.key?(:'user_id')
|
92
84
|
self.user_id = attributes[:'user_id']
|
93
85
|
end
|
@@ -100,6 +92,14 @@ module MailSlurpClient
|
|
100
92
|
self.inbox_id = attributes[:'inbox_id']
|
101
93
|
end
|
102
94
|
|
95
|
+
if attributes.key?(:'updated_at')
|
96
|
+
self.updated_at = attributes[:'updated_at']
|
97
|
+
end
|
98
|
+
|
99
|
+
if attributes.key?(:'created_at')
|
100
|
+
self.created_at = attributes[:'created_at']
|
101
|
+
end
|
102
|
+
|
103
103
|
if attributes.key?(:'use_threads')
|
104
104
|
self.use_threads = attributes[:'use_threads']
|
105
105
|
end
|
@@ -117,14 +117,6 @@ module MailSlurpClient
|
|
117
117
|
# @return Array for valid properties with the reasons
|
118
118
|
def list_invalid_properties
|
119
119
|
invalid_properties = Array.new
|
120
|
-
if @created_at.nil?
|
121
|
-
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
122
|
-
end
|
123
|
-
|
124
|
-
if @updated_at.nil?
|
125
|
-
invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
|
126
|
-
end
|
127
|
-
|
128
120
|
if @user_id.nil?
|
129
121
|
invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
|
130
122
|
end
|
@@ -137,6 +129,14 @@ module MailSlurpClient
|
|
137
129
|
invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
|
138
130
|
end
|
139
131
|
|
132
|
+
if @updated_at.nil?
|
133
|
+
invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
|
134
|
+
end
|
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,11 +147,11 @@ module MailSlurpClient
|
|
147
147
|
# Check to see if the all the properties in the model are valid
|
148
148
|
# @return true if the model is valid
|
149
149
|
def valid?
|
150
|
-
return false if @created_at.nil?
|
151
|
-
return false if @updated_at.nil?
|
152
150
|
return false if @user_id.nil?
|
153
151
|
return false if @email_address.nil?
|
154
152
|
return false if @inbox_id.nil?
|
153
|
+
return false if @updated_at.nil?
|
154
|
+
return false if @created_at.nil?
|
155
155
|
return false if @id.nil?
|
156
156
|
true
|
157
157
|
end
|
@@ -161,11 +161,11 @@ module MailSlurpClient
|
|
161
161
|
def ==(o)
|
162
162
|
return true if self.equal?(o)
|
163
163
|
self.class == o.class &&
|
164
|
-
created_at == o.created_at &&
|
165
|
-
updated_at == o.updated_at &&
|
166
164
|
user_id == o.user_id &&
|
167
165
|
email_address == o.email_address &&
|
168
166
|
inbox_id == o.inbox_id &&
|
167
|
+
updated_at == o.updated_at &&
|
168
|
+
created_at == o.created_at &&
|
169
169
|
use_threads == o.use_threads &&
|
170
170
|
name == o.name &&
|
171
171
|
id == o.id
|
@@ -180,7 +180,7 @@ module MailSlurpClient
|
|
180
180
|
# Calculates hash code according to all attributes.
|
181
181
|
# @return [Integer] Hash code
|
182
182
|
def hash
|
183
|
-
[
|
183
|
+
[user_id, email_address, inbox_id, updated_at, created_at, use_threads, name, id].hash
|
184
184
|
end
|
185
185
|
|
186
186
|
# Builds the object from hash
|
@@ -15,21 +15,18 @@ 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 AliasThreadProjection
|
18
|
-
# Thread subject
|
19
|
-
attr_accessor :subject
|
20
|
-
|
21
|
-
# Created at DateTime
|
22
|
-
attr_accessor :created_at
|
23
|
-
|
24
|
-
# Updated at DateTime
|
25
|
-
attr_accessor :updated_at
|
26
|
-
|
27
18
|
# User ID
|
28
19
|
attr_accessor :user_id
|
29
20
|
|
30
21
|
# Inbox ID
|
31
22
|
attr_accessor :inbox_id
|
32
23
|
|
24
|
+
# Updated at DateTime
|
25
|
+
attr_accessor :updated_at
|
26
|
+
|
27
|
+
# Created at DateTime
|
28
|
+
attr_accessor :created_at
|
29
|
+
|
33
30
|
# To recipients
|
34
31
|
attr_accessor :to
|
35
32
|
|
@@ -42,6 +39,9 @@ module MailSlurpClient
|
|
42
39
|
# Alias ID
|
43
40
|
attr_accessor :alias_id
|
44
41
|
|
42
|
+
# Thread subject
|
43
|
+
attr_accessor :subject
|
44
|
+
|
45
45
|
# Name of thread
|
46
46
|
attr_accessor :name
|
47
47
|
|
@@ -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
|
-
:'subject' => :'subject',
|
55
|
-
:'created_at' => :'createdAt',
|
56
|
-
:'updated_at' => :'updatedAt',
|
57
54
|
:'user_id' => :'userId',
|
58
55
|
:'inbox_id' => :'inboxId',
|
56
|
+
:'updated_at' => :'updatedAt',
|
57
|
+
:'created_at' => :'createdAt',
|
59
58
|
:'to' => :'to',
|
60
59
|
:'cc' => :'cc',
|
61
60
|
:'bcc' => :'bcc',
|
62
61
|
:'alias_id' => :'aliasId',
|
62
|
+
:'subject' => :'subject',
|
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
|
-
:'subject' => :'String',
|
72
|
-
:'created_at' => :'DateTime',
|
73
|
-
:'updated_at' => :'DateTime',
|
74
71
|
:'user_id' => :'String',
|
75
72
|
:'inbox_id' => :'String',
|
73
|
+
:'updated_at' => :'DateTime',
|
74
|
+
:'created_at' => :'DateTime',
|
76
75
|
:'to' => :'Array<String>',
|
77
76
|
:'cc' => :'Array<String>',
|
78
77
|
:'bcc' => :'Array<String>',
|
79
78
|
:'alias_id' => :'String',
|
79
|
+
:'subject' => :'String',
|
80
80
|
:'name' => :'String',
|
81
81
|
:'id' => :'String'
|
82
82
|
}
|
@@ -103,24 +103,20 @@ module MailSlurpClient
|
|
103
103
|
h[k.to_sym] = v
|
104
104
|
}
|
105
105
|
|
106
|
-
if attributes.key?(:'
|
107
|
-
self.
|
106
|
+
if attributes.key?(:'user_id')
|
107
|
+
self.user_id = attributes[:'user_id']
|
108
108
|
end
|
109
109
|
|
110
|
-
if attributes.key?(:'
|
111
|
-
self.
|
110
|
+
if attributes.key?(:'inbox_id')
|
111
|
+
self.inbox_id = attributes[:'inbox_id']
|
112
112
|
end
|
113
113
|
|
114
114
|
if attributes.key?(:'updated_at')
|
115
115
|
self.updated_at = attributes[:'updated_at']
|
116
116
|
end
|
117
117
|
|
118
|
-
if attributes.key?(:'
|
119
|
-
self.
|
120
|
-
end
|
121
|
-
|
122
|
-
if attributes.key?(:'inbox_id')
|
123
|
-
self.inbox_id = attributes[:'inbox_id']
|
118
|
+
if attributes.key?(:'created_at')
|
119
|
+
self.created_at = attributes[:'created_at']
|
124
120
|
end
|
125
121
|
|
126
122
|
if attributes.key?(:'to')
|
@@ -145,6 +141,10 @@ module MailSlurpClient
|
|
145
141
|
self.alias_id = attributes[:'alias_id']
|
146
142
|
end
|
147
143
|
|
144
|
+
if attributes.key?(:'subject')
|
145
|
+
self.subject = attributes[:'subject']
|
146
|
+
end
|
147
|
+
|
148
148
|
if attributes.key?(:'name')
|
149
149
|
self.name = attributes[:'name']
|
150
150
|
end
|
@@ -158,14 +158,6 @@ 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 @created_at.nil?
|
162
|
-
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
163
|
-
end
|
164
|
-
|
165
|
-
if @updated_at.nil?
|
166
|
-
invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
|
167
|
-
end
|
168
|
-
|
169
161
|
if @user_id.nil?
|
170
162
|
invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
|
171
163
|
end
|
@@ -174,6 +166,14 @@ module MailSlurpClient
|
|
174
166
|
invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
|
175
167
|
end
|
176
168
|
|
169
|
+
if @updated_at.nil?
|
170
|
+
invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
|
171
|
+
end
|
172
|
+
|
173
|
+
if @created_at.nil?
|
174
|
+
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
175
|
+
end
|
176
|
+
|
177
177
|
if @to.nil?
|
178
178
|
invalid_properties.push('invalid value for "to", to cannot be nil.')
|
179
179
|
end
|
@@ -192,10 +192,10 @@ 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 @created_at.nil?
|
196
|
-
return false if @updated_at.nil?
|
197
195
|
return false if @user_id.nil?
|
198
196
|
return false if @inbox_id.nil?
|
197
|
+
return false if @updated_at.nil?
|
198
|
+
return false if @created_at.nil?
|
199
199
|
return false if @to.nil?
|
200
200
|
return false if @alias_id.nil?
|
201
201
|
return false if @id.nil?
|
@@ -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
|
-
subject == o.subject &&
|
211
|
-
created_at == o.created_at &&
|
212
|
-
updated_at == o.updated_at &&
|
213
210
|
user_id == o.user_id &&
|
214
211
|
inbox_id == o.inbox_id &&
|
212
|
+
updated_at == o.updated_at &&
|
213
|
+
created_at == o.created_at &&
|
215
214
|
to == o.to &&
|
216
215
|
cc == o.cc &&
|
217
216
|
bcc == o.bcc &&
|
218
217
|
alias_id == o.alias_id &&
|
218
|
+
subject == o.subject &&
|
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
|
+
[user_id, inbox_id, updated_at, created_at, to, cc, bcc, alias_id, subject, name, id].hash
|
233
233
|
end
|
234
234
|
|
235
235
|
# Builds the object from hash
|
@@ -15,15 +15,15 @@ require 'date'
|
|
15
15
|
module MailSlurpClient
|
16
16
|
# Email attachment data
|
17
17
|
class AttachmentProjection
|
18
|
-
attr_accessor :created_at
|
19
|
-
|
20
|
-
attr_accessor :updated_at
|
21
|
-
|
22
18
|
attr_accessor :user_id
|
23
19
|
|
24
20
|
# Inbox ID
|
25
21
|
attr_accessor :inbox_id
|
26
22
|
|
23
|
+
attr_accessor :updated_at
|
24
|
+
|
25
|
+
attr_accessor :created_at
|
26
|
+
|
27
27
|
# Content ID of attachment.
|
28
28
|
attr_accessor :content_id
|
29
29
|
|
@@ -44,10 +44,10 @@ module MailSlurpClient
|
|
44
44
|
# Attribute mapping from ruby-style variable name to JSON key.
|
45
45
|
def self.attribute_map
|
46
46
|
{
|
47
|
-
:'created_at' => :'createdAt',
|
48
|
-
:'updated_at' => :'updatedAt',
|
49
47
|
:'user_id' => :'userId',
|
50
48
|
:'inbox_id' => :'inboxId',
|
49
|
+
:'updated_at' => :'updatedAt',
|
50
|
+
:'created_at' => :'createdAt',
|
51
51
|
:'content_id' => :'contentId',
|
52
52
|
:'attachment_id' => :'attachmentId',
|
53
53
|
:'name' => :'name',
|
@@ -60,10 +60,10 @@ module MailSlurpClient
|
|
60
60
|
# Attribute type mapping.
|
61
61
|
def self.openapi_types
|
62
62
|
{
|
63
|
-
:'created_at' => :'DateTime',
|
64
|
-
:'updated_at' => :'DateTime',
|
65
63
|
:'user_id' => :'String',
|
66
64
|
:'inbox_id' => :'String',
|
65
|
+
:'updated_at' => :'DateTime',
|
66
|
+
:'created_at' => :'DateTime',
|
67
67
|
:'content_id' => :'String',
|
68
68
|
:'attachment_id' => :'String',
|
69
69
|
:'name' => :'String',
|
@@ -98,14 +98,6 @@ module MailSlurpClient
|
|
98
98
|
h[k.to_sym] = v
|
99
99
|
}
|
100
100
|
|
101
|
-
if attributes.key?(:'created_at')
|
102
|
-
self.created_at = attributes[:'created_at']
|
103
|
-
end
|
104
|
-
|
105
|
-
if attributes.key?(:'updated_at')
|
106
|
-
self.updated_at = attributes[:'updated_at']
|
107
|
-
end
|
108
|
-
|
109
101
|
if attributes.key?(:'user_id')
|
110
102
|
self.user_id = attributes[:'user_id']
|
111
103
|
end
|
@@ -114,6 +106,14 @@ module MailSlurpClient
|
|
114
106
|
self.inbox_id = attributes[:'inbox_id']
|
115
107
|
end
|
116
108
|
|
109
|
+
if attributes.key?(:'updated_at')
|
110
|
+
self.updated_at = attributes[:'updated_at']
|
111
|
+
end
|
112
|
+
|
113
|
+
if attributes.key?(:'created_at')
|
114
|
+
self.created_at = attributes[:'created_at']
|
115
|
+
end
|
116
|
+
|
117
117
|
if attributes.key?(:'content_id')
|
118
118
|
self.content_id = attributes[:'content_id']
|
119
119
|
end
|
@@ -143,16 +143,16 @@ module MailSlurpClient
|
|
143
143
|
# @return Array for valid properties with the reasons
|
144
144
|
def list_invalid_properties
|
145
145
|
invalid_properties = Array.new
|
146
|
-
if @
|
147
|
-
invalid_properties.push('invalid value for "
|
146
|
+
if @user_id.nil?
|
147
|
+
invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
|
148
148
|
end
|
149
149
|
|
150
150
|
if @updated_at.nil?
|
151
151
|
invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
|
152
152
|
end
|
153
153
|
|
154
|
-
if @
|
155
|
-
invalid_properties.push('invalid value for "
|
154
|
+
if @created_at.nil?
|
155
|
+
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
156
156
|
end
|
157
157
|
|
158
158
|
if @attachment_id.nil?
|
@@ -169,9 +169,9 @@ module MailSlurpClient
|
|
169
169
|
# Check to see if the all the properties in the model are valid
|
170
170
|
# @return true if the model is valid
|
171
171
|
def valid?
|
172
|
-
return false if @created_at.nil?
|
173
|
-
return false if @updated_at.nil?
|
174
172
|
return false if @user_id.nil?
|
173
|
+
return false if @updated_at.nil?
|
174
|
+
return false if @created_at.nil?
|
175
175
|
return false if @attachment_id.nil?
|
176
176
|
return false if @id.nil?
|
177
177
|
true
|
@@ -182,10 +182,10 @@ module MailSlurpClient
|
|
182
182
|
def ==(o)
|
183
183
|
return true if self.equal?(o)
|
184
184
|
self.class == o.class &&
|
185
|
-
created_at == o.created_at &&
|
186
|
-
updated_at == o.updated_at &&
|
187
185
|
user_id == o.user_id &&
|
188
186
|
inbox_id == o.inbox_id &&
|
187
|
+
updated_at == o.updated_at &&
|
188
|
+
created_at == o.created_at &&
|
189
189
|
content_id == o.content_id &&
|
190
190
|
attachment_id == o.attachment_id &&
|
191
191
|
name == o.name &&
|
@@ -203,7 +203,7 @@ module MailSlurpClient
|
|
203
203
|
# Calculates hash code according to all attributes.
|
204
204
|
# @return [Integer] Hash code
|
205
205
|
def hash
|
206
|
-
[
|
206
|
+
[user_id, inbox_id, updated_at, created_at, content_id, attachment_id, name, id, content_length, content_type].hash
|
207
207
|
end
|
208
208
|
|
209
209
|
# Builds the object from hash
|
@@ -15,26 +15,26 @@ require 'date'
|
|
15
15
|
module MailSlurpClient
|
16
16
|
# Bounced email event
|
17
17
|
class BounceProjection
|
18
|
-
attr_accessor :
|
18
|
+
attr_accessor :sender
|
19
19
|
|
20
20
|
attr_accessor :created_at
|
21
21
|
|
22
|
-
attr_accessor :sender
|
23
|
-
|
24
22
|
attr_accessor :bounce_type
|
25
23
|
|
26
24
|
attr_accessor :bounce_mta
|
27
25
|
|
26
|
+
attr_accessor :subject
|
27
|
+
|
28
28
|
attr_accessor :id
|
29
29
|
|
30
30
|
# Attribute mapping from ruby-style variable name to JSON key.
|
31
31
|
def self.attribute_map
|
32
32
|
{
|
33
|
-
:'subject' => :'subject',
|
34
|
-
:'created_at' => :'createdAt',
|
35
33
|
:'sender' => :'sender',
|
34
|
+
:'created_at' => :'createdAt',
|
36
35
|
:'bounce_type' => :'bounceType',
|
37
36
|
:'bounce_mta' => :'bounceMta',
|
37
|
+
:'subject' => :'subject',
|
38
38
|
:'id' => :'id'
|
39
39
|
}
|
40
40
|
end
|
@@ -42,11 +42,11 @@ module MailSlurpClient
|
|
42
42
|
# Attribute type mapping.
|
43
43
|
def self.openapi_types
|
44
44
|
{
|
45
|
-
:'subject' => :'String',
|
46
|
-
:'created_at' => :'DateTime',
|
47
45
|
:'sender' => :'String',
|
46
|
+
:'created_at' => :'DateTime',
|
48
47
|
:'bounce_type' => :'String',
|
49
48
|
:'bounce_mta' => :'String',
|
49
|
+
:'subject' => :'String',
|
50
50
|
:'id' => :'String'
|
51
51
|
}
|
52
52
|
end
|
@@ -54,9 +54,9 @@ module MailSlurpClient
|
|
54
54
|
# List of attributes with nullable: true
|
55
55
|
def self.openapi_nullable
|
56
56
|
Set.new([
|
57
|
-
:'subject',
|
58
57
|
:'bounce_type',
|
59
58
|
:'bounce_mta',
|
59
|
+
:'subject',
|
60
60
|
])
|
61
61
|
end
|
62
62
|
|
@@ -75,18 +75,14 @@ module MailSlurpClient
|
|
75
75
|
h[k.to_sym] = v
|
76
76
|
}
|
77
77
|
|
78
|
-
if attributes.key?(:'
|
79
|
-
self.
|
78
|
+
if attributes.key?(:'sender')
|
79
|
+
self.sender = attributes[:'sender']
|
80
80
|
end
|
81
81
|
|
82
82
|
if attributes.key?(:'created_at')
|
83
83
|
self.created_at = attributes[:'created_at']
|
84
84
|
end
|
85
85
|
|
86
|
-
if attributes.key?(:'sender')
|
87
|
-
self.sender = attributes[:'sender']
|
88
|
-
end
|
89
|
-
|
90
86
|
if attributes.key?(:'bounce_type')
|
91
87
|
self.bounce_type = attributes[:'bounce_type']
|
92
88
|
end
|
@@ -95,6 +91,10 @@ module MailSlurpClient
|
|
95
91
|
self.bounce_mta = attributes[:'bounce_mta']
|
96
92
|
end
|
97
93
|
|
94
|
+
if attributes.key?(:'subject')
|
95
|
+
self.subject = attributes[:'subject']
|
96
|
+
end
|
97
|
+
|
98
98
|
if attributes.key?(:'id')
|
99
99
|
self.id = attributes[:'id']
|
100
100
|
end
|
@@ -104,22 +104,22 @@ module MailSlurpClient
|
|
104
104
|
# @return Array for valid properties with the reasons
|
105
105
|
def list_invalid_properties
|
106
106
|
invalid_properties = Array.new
|
107
|
-
if @created_at.nil?
|
108
|
-
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
109
|
-
end
|
110
|
-
|
111
107
|
if @sender.nil?
|
112
108
|
invalid_properties.push('invalid value for "sender", sender cannot be nil.')
|
113
109
|
end
|
114
110
|
|
111
|
+
if @created_at.nil?
|
112
|
+
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
113
|
+
end
|
114
|
+
|
115
115
|
invalid_properties
|
116
116
|
end
|
117
117
|
|
118
118
|
# Check to see if the all the properties in the model are valid
|
119
119
|
# @return true if the model is valid
|
120
120
|
def valid?
|
121
|
-
return false if @created_at.nil?
|
122
121
|
return false if @sender.nil?
|
122
|
+
return false if @created_at.nil?
|
123
123
|
true
|
124
124
|
end
|
125
125
|
|
@@ -128,11 +128,11 @@ module MailSlurpClient
|
|
128
128
|
def ==(o)
|
129
129
|
return true if self.equal?(o)
|
130
130
|
self.class == o.class &&
|
131
|
-
subject == o.subject &&
|
132
|
-
created_at == o.created_at &&
|
133
131
|
sender == o.sender &&
|
132
|
+
created_at == o.created_at &&
|
134
133
|
bounce_type == o.bounce_type &&
|
135
134
|
bounce_mta == o.bounce_mta &&
|
135
|
+
subject == o.subject &&
|
136
136
|
id == o.id
|
137
137
|
end
|
138
138
|
|
@@ -145,7 +145,7 @@ module MailSlurpClient
|
|
145
145
|
# Calculates hash code according to all attributes.
|
146
146
|
# @return [Integer] Hash code
|
147
147
|
def hash
|
148
|
-
[
|
148
|
+
[sender, created_at, bounce_type, bounce_mta, subject, id].hash
|
149
149
|
end
|
150
150
|
|
151
151
|
# Builds the object from hash
|
@@ -15,10 +15,10 @@ require 'date'
|
|
15
15
|
module MailSlurpClient
|
16
16
|
# Bounced recipient
|
17
17
|
class BounceRecipientProjection
|
18
|
-
attr_accessor :created_at
|
19
|
-
|
20
18
|
attr_accessor :sent_email_id
|
21
19
|
|
20
|
+
attr_accessor :created_at
|
21
|
+
|
22
22
|
attr_accessor :recipient
|
23
23
|
|
24
24
|
attr_accessor :bounce_type
|
@@ -32,8 +32,8 @@ module MailSlurpClient
|
|
32
32
|
# Attribute mapping from ruby-style variable name to JSON key.
|
33
33
|
def self.attribute_map
|
34
34
|
{
|
35
|
-
:'created_at' => :'createdAt',
|
36
35
|
:'sent_email_id' => :'sentEmailId',
|
36
|
+
:'created_at' => :'createdAt',
|
37
37
|
:'recipient' => :'recipient',
|
38
38
|
:'bounce_type' => :'bounceType',
|
39
39
|
:'action' => :'action',
|
@@ -45,8 +45,8 @@ module MailSlurpClient
|
|
45
45
|
# Attribute type mapping.
|
46
46
|
def self.openapi_types
|
47
47
|
{
|
48
|
-
:'created_at' => :'DateTime',
|
49
48
|
:'sent_email_id' => :'String',
|
49
|
+
:'created_at' => :'DateTime',
|
50
50
|
:'recipient' => :'String',
|
51
51
|
:'bounce_type' => :'String',
|
52
52
|
:'action' => :'String',
|
@@ -80,14 +80,14 @@ module MailSlurpClient
|
|
80
80
|
h[k.to_sym] = v
|
81
81
|
}
|
82
82
|
|
83
|
-
if attributes.key?(:'created_at')
|
84
|
-
self.created_at = attributes[:'created_at']
|
85
|
-
end
|
86
|
-
|
87
83
|
if attributes.key?(:'sent_email_id')
|
88
84
|
self.sent_email_id = attributes[:'sent_email_id']
|
89
85
|
end
|
90
86
|
|
87
|
+
if attributes.key?(:'created_at')
|
88
|
+
self.created_at = attributes[:'created_at']
|
89
|
+
end
|
90
|
+
|
91
91
|
if attributes.key?(:'recipient')
|
92
92
|
self.recipient = attributes[:'recipient']
|
93
93
|
end
|
@@ -137,8 +137,8 @@ module MailSlurpClient
|
|
137
137
|
def ==(o)
|
138
138
|
return true if self.equal?(o)
|
139
139
|
self.class == o.class &&
|
140
|
-
created_at == o.created_at &&
|
141
140
|
sent_email_id == o.sent_email_id &&
|
141
|
+
created_at == o.created_at &&
|
142
142
|
recipient == o.recipient &&
|
143
143
|
bounce_type == o.bounce_type &&
|
144
144
|
action == o.action &&
|
@@ -155,7 +155,7 @@ module MailSlurpClient
|
|
155
155
|
# Calculates hash code according to all attributes.
|
156
156
|
# @return [Integer] Hash code
|
157
157
|
def hash
|
158
|
-
[
|
158
|
+
[sent_email_id, created_at, recipient, bounce_type, action, id, status].hash
|
159
159
|
end
|
160
160
|
|
161
161
|
# Builds the object from hash
|