mailslurp_client 15.13.7 → 15.13.10
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/api_user_controller_api.rb +23 -58
- data/lib/mailslurp_client/api/email_controller_api.rb +7 -10
- data/lib/mailslurp_client/api/inbox_controller_api.rb +2 -2
- data/lib/mailslurp_client/api/webhook_controller_api.rb +195 -2
- data/lib/mailslurp_client/models/abstract_webhook_payload.rb +2 -2
- data/lib/mailslurp_client/models/bounce_projection.rb +10 -10
- data/lib/mailslurp_client/models/create_webhook_options.rb +2 -2
- data/lib/mailslurp_client/models/email_projection.rb +10 -10
- data/lib/mailslurp_client/models/page_alias.rb +10 -10
- data/lib/mailslurp_client/models/page_attachment_entity.rb +10 -10
- data/lib/mailslurp_client/models/page_bounced_email.rb +10 -10
- data/lib/mailslurp_client/models/page_bounced_recipients.rb +10 -10
- data/lib/mailslurp_client/models/page_complaint.rb +10 -10
- data/lib/mailslurp_client/models/page_contact_projection.rb +10 -10
- data/lib/mailslurp_client/models/page_delivery_status.rb +10 -10
- data/lib/mailslurp_client/models/page_email_preview.rb +10 -10
- data/lib/mailslurp_client/models/page_email_projection.rb +10 -10
- data/lib/mailslurp_client/models/page_email_validation_request.rb +10 -10
- data/lib/mailslurp_client/models/page_expired_inbox_record_projection.rb +10 -10
- data/lib/mailslurp_client/models/page_group_projection.rb +10 -10
- data/lib/mailslurp_client/models/page_inbox_forwarder_dto.rb +10 -10
- data/lib/mailslurp_client/models/page_inbox_projection.rb +10 -10
- data/lib/mailslurp_client/models/page_inbox_ruleset_dto.rb +10 -10
- data/lib/mailslurp_client/models/page_missed_email_projection.rb +10 -10
- data/lib/mailslurp_client/models/page_organization_inbox_projection.rb +10 -10
- data/lib/mailslurp_client/models/page_phone_number_projection.rb +10 -10
- 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/page_sms_projection.rb +10 -10
- data/lib/mailslurp_client/models/page_template_projection.rb +10 -10
- data/lib/mailslurp_client/models/page_thread_projection.rb +10 -10
- data/lib/mailslurp_client/models/page_tracking_pixel_projection.rb +10 -10
- data/lib/mailslurp_client/models/page_unknown_missed_email_projection.rb +10 -10
- data/lib/mailslurp_client/models/page_webhook_projection.rb +10 -10
- data/lib/mailslurp_client/models/page_webhook_result.rb +10 -10
- data/lib/mailslurp_client/models/sent_email_projection.rb +15 -15
- data/lib/mailslurp_client/models/sort.rb +13 -13
- data/lib/mailslurp_client/models/tracking_pixel_projection.rb +10 -10
- data/lib/mailslurp_client/models/webhook_bounce_payload.rb +4 -2
- data/lib/mailslurp_client/models/webhook_bounce_recipient_payload.rb +2 -2
- data/lib/mailslurp_client/models/webhook_delivery_status_payload.rb +429 -0
- data/lib/mailslurp_client/models/webhook_dto.rb +2 -2
- data/lib/mailslurp_client/models/webhook_email_opened_payload.rb +3 -3
- data/lib/mailslurp_client/models/webhook_email_read_payload.rb +3 -3
- data/lib/mailslurp_client/models/webhook_new_attachment_payload.rb +2 -2
- data/lib/mailslurp_client/models/webhook_new_contact_payload.rb +17 -2
- data/lib/mailslurp_client/models/webhook_new_email_payload.rb +3 -3
- data/lib/mailslurp_client/models/webhook_new_sms_payload.rb +393 -0
- data/lib/mailslurp_client/models/webhook_projection.rb +12 -3
- data/lib/mailslurp_client/models/webhook_result_dto.rb +2 -2
- data/lib/mailslurp_client/version.rb +1 -1
- data/lib/mailslurp_client.rb +2 -0
- metadata +4 -2
@@ -23,10 +23,10 @@ module MailSlurpClient
|
|
23
23
|
|
24
24
|
attr_accessor :last
|
25
25
|
|
26
|
-
attr_accessor :total_pages
|
27
|
-
|
28
26
|
attr_accessor :total_elements
|
29
27
|
|
28
|
+
attr_accessor :total_pages
|
29
|
+
|
30
30
|
attr_accessor :size
|
31
31
|
|
32
32
|
attr_accessor :number
|
@@ -46,8 +46,8 @@ module MailSlurpClient
|
|
46
46
|
:'pageable' => :'pageable',
|
47
47
|
:'total' => :'total',
|
48
48
|
:'last' => :'last',
|
49
|
-
:'total_pages' => :'totalPages',
|
50
49
|
:'total_elements' => :'totalElements',
|
50
|
+
:'total_pages' => :'totalPages',
|
51
51
|
:'size' => :'size',
|
52
52
|
:'number' => :'number',
|
53
53
|
:'sort' => :'sort',
|
@@ -64,8 +64,8 @@ module MailSlurpClient
|
|
64
64
|
:'pageable' => :'PageableObject',
|
65
65
|
:'total' => :'Integer',
|
66
66
|
:'last' => :'Boolean',
|
67
|
-
:'total_pages' => :'Integer',
|
68
67
|
:'total_elements' => :'Integer',
|
68
|
+
:'total_pages' => :'Integer',
|
69
69
|
:'size' => :'Integer',
|
70
70
|
:'number' => :'Integer',
|
71
71
|
:'sort' => :'Sort',
|
@@ -114,14 +114,14 @@ module MailSlurpClient
|
|
114
114
|
self.last = attributes[:'last']
|
115
115
|
end
|
116
116
|
|
117
|
-
if attributes.key?(:'total_pages')
|
118
|
-
self.total_pages = attributes[:'total_pages']
|
119
|
-
end
|
120
|
-
|
121
117
|
if attributes.key?(:'total_elements')
|
122
118
|
self.total_elements = attributes[:'total_elements']
|
123
119
|
end
|
124
120
|
|
121
|
+
if attributes.key?(:'total_pages')
|
122
|
+
self.total_pages = attributes[:'total_pages']
|
123
|
+
end
|
124
|
+
|
125
125
|
if attributes.key?(:'size')
|
126
126
|
self.size = attributes[:'size']
|
127
127
|
end
|
@@ -169,8 +169,8 @@ module MailSlurpClient
|
|
169
169
|
pageable == o.pageable &&
|
170
170
|
total == o.total &&
|
171
171
|
last == o.last &&
|
172
|
-
total_pages == o.total_pages &&
|
173
172
|
total_elements == o.total_elements &&
|
173
|
+
total_pages == o.total_pages &&
|
174
174
|
size == o.size &&
|
175
175
|
number == o.number &&
|
176
176
|
sort == o.sort &&
|
@@ -188,7 +188,7 @@ module MailSlurpClient
|
|
188
188
|
# Calculates hash code according to all attributes.
|
189
189
|
# @return [Integer] Hash code
|
190
190
|
def hash
|
191
|
-
[content, pageable, total, last,
|
191
|
+
[content, pageable, total, last, total_elements, total_pages, size, number, sort, first, number_of_elements, empty].hash
|
192
192
|
end
|
193
193
|
|
194
194
|
# Builds the object from hash
|
@@ -23,10 +23,10 @@ module MailSlurpClient
|
|
23
23
|
|
24
24
|
attr_accessor :subject
|
25
25
|
|
26
|
-
attr_accessor :attachments
|
27
|
-
|
28
26
|
attr_accessor :created_at
|
29
27
|
|
28
|
+
attr_accessor :attachments
|
29
|
+
|
30
30
|
attr_accessor :inbox_id
|
31
31
|
|
32
32
|
attr_accessor :to
|
@@ -46,8 +46,8 @@ module MailSlurpClient
|
|
46
46
|
:'from' => :'from',
|
47
47
|
:'user_id' => :'userId',
|
48
48
|
:'subject' => :'subject',
|
49
|
-
:'attachments' => :'attachments',
|
50
49
|
:'created_at' => :'createdAt',
|
50
|
+
:'attachments' => :'attachments',
|
51
51
|
:'inbox_id' => :'inboxId',
|
52
52
|
:'to' => :'to',
|
53
53
|
:'bcc' => :'bcc',
|
@@ -64,8 +64,8 @@ module MailSlurpClient
|
|
64
64
|
:'from' => :'String',
|
65
65
|
:'user_id' => :'String',
|
66
66
|
:'subject' => :'String',
|
67
|
-
:'attachments' => :'Array<String>',
|
68
67
|
:'created_at' => :'DateTime',
|
68
|
+
:'attachments' => :'Array<String>',
|
69
69
|
:'inbox_id' => :'String',
|
70
70
|
:'to' => :'Array<String>',
|
71
71
|
:'bcc' => :'Array<String>',
|
@@ -112,16 +112,16 @@ module MailSlurpClient
|
|
112
112
|
self.subject = attributes[:'subject']
|
113
113
|
end
|
114
114
|
|
115
|
+
if attributes.key?(:'created_at')
|
116
|
+
self.created_at = attributes[:'created_at']
|
117
|
+
end
|
118
|
+
|
115
119
|
if attributes.key?(:'attachments')
|
116
120
|
if (value = attributes[:'attachments']).is_a?(Array)
|
117
121
|
self.attachments = value
|
118
122
|
end
|
119
123
|
end
|
120
124
|
|
121
|
-
if attributes.key?(:'created_at')
|
122
|
-
self.created_at = attributes[:'created_at']
|
123
|
-
end
|
124
|
-
|
125
125
|
if attributes.key?(:'inbox_id')
|
126
126
|
self.inbox_id = attributes[:'inbox_id']
|
127
127
|
end
|
@@ -165,14 +165,14 @@ module MailSlurpClient
|
|
165
165
|
invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
|
166
166
|
end
|
167
167
|
|
168
|
-
if @attachments.nil?
|
169
|
-
invalid_properties.push('invalid value for "attachments", attachments cannot be nil.')
|
170
|
-
end
|
171
|
-
|
172
168
|
if @created_at.nil?
|
173
169
|
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
174
170
|
end
|
175
171
|
|
172
|
+
if @attachments.nil?
|
173
|
+
invalid_properties.push('invalid value for "attachments", attachments cannot be nil.')
|
174
|
+
end
|
175
|
+
|
176
176
|
if @inbox_id.nil?
|
177
177
|
invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
|
178
178
|
end
|
@@ -201,8 +201,8 @@ module MailSlurpClient
|
|
201
201
|
def valid?
|
202
202
|
return false if @id.nil?
|
203
203
|
return false if @user_id.nil?
|
204
|
-
return false if @attachments.nil?
|
205
204
|
return false if @created_at.nil?
|
205
|
+
return false if @attachments.nil?
|
206
206
|
return false if @inbox_id.nil?
|
207
207
|
return false if @to.nil?
|
208
208
|
return false if @bcc.nil?
|
@@ -220,8 +220,8 @@ module MailSlurpClient
|
|
220
220
|
from == o.from &&
|
221
221
|
user_id == o.user_id &&
|
222
222
|
subject == o.subject &&
|
223
|
-
attachments == o.attachments &&
|
224
223
|
created_at == o.created_at &&
|
224
|
+
attachments == o.attachments &&
|
225
225
|
inbox_id == o.inbox_id &&
|
226
226
|
to == o.to &&
|
227
227
|
bcc == o.bcc &&
|
@@ -239,7 +239,7 @@ module MailSlurpClient
|
|
239
239
|
# Calculates hash code according to all attributes.
|
240
240
|
# @return [Integer] Hash code
|
241
241
|
def hash
|
242
|
-
[id, from, user_id, subject,
|
242
|
+
[id, from, user_id, subject, created_at, attachments, inbox_id, to, bcc, cc, body_md5_hash, virtual_send].hash
|
243
243
|
end
|
244
244
|
|
245
245
|
# Builds the object from hash
|
@@ -16,16 +16,16 @@ module MailSlurpClient
|
|
16
16
|
class Sort
|
17
17
|
attr_accessor :empty
|
18
18
|
|
19
|
-
attr_accessor :unsorted
|
20
|
-
|
21
19
|
attr_accessor :sorted
|
22
20
|
|
21
|
+
attr_accessor :unsorted
|
22
|
+
|
23
23
|
# Attribute mapping from ruby-style variable name to JSON key.
|
24
24
|
def self.attribute_map
|
25
25
|
{
|
26
26
|
:'empty' => :'empty',
|
27
|
-
:'
|
28
|
-
:'
|
27
|
+
:'sorted' => :'sorted',
|
28
|
+
:'unsorted' => :'unsorted'
|
29
29
|
}
|
30
30
|
end
|
31
31
|
|
@@ -33,8 +33,8 @@ module MailSlurpClient
|
|
33
33
|
def self.openapi_types
|
34
34
|
{
|
35
35
|
:'empty' => :'Boolean',
|
36
|
-
:'
|
37
|
-
:'
|
36
|
+
:'sorted' => :'Boolean',
|
37
|
+
:'unsorted' => :'Boolean'
|
38
38
|
}
|
39
39
|
end
|
40
40
|
|
@@ -63,13 +63,13 @@ module MailSlurpClient
|
|
63
63
|
self.empty = attributes[:'empty']
|
64
64
|
end
|
65
65
|
|
66
|
-
if attributes.key?(:'unsorted')
|
67
|
-
self.unsorted = attributes[:'unsorted']
|
68
|
-
end
|
69
|
-
|
70
66
|
if attributes.key?(:'sorted')
|
71
67
|
self.sorted = attributes[:'sorted']
|
72
68
|
end
|
69
|
+
|
70
|
+
if attributes.key?(:'unsorted')
|
71
|
+
self.unsorted = attributes[:'unsorted']
|
72
|
+
end
|
73
73
|
end
|
74
74
|
|
75
75
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -91,8 +91,8 @@ module MailSlurpClient
|
|
91
91
|
return true if self.equal?(o)
|
92
92
|
self.class == o.class &&
|
93
93
|
empty == o.empty &&
|
94
|
-
|
95
|
-
|
94
|
+
sorted == o.sorted &&
|
95
|
+
unsorted == o.unsorted
|
96
96
|
end
|
97
97
|
|
98
98
|
# @see the `==` method
|
@@ -104,7 +104,7 @@ module MailSlurpClient
|
|
104
104
|
# Calculates hash code according to all attributes.
|
105
105
|
# @return [Integer] Hash code
|
106
106
|
def hash
|
107
|
-
[empty,
|
107
|
+
[empty, sorted, unsorted].hash
|
108
108
|
end
|
109
109
|
|
110
110
|
# Builds the object from hash
|
@@ -27,10 +27,10 @@ module MailSlurpClient
|
|
27
27
|
|
28
28
|
attr_accessor :created_at
|
29
29
|
|
30
|
-
attr_accessor :seen
|
31
|
-
|
32
30
|
attr_accessor :recipient
|
33
31
|
|
32
|
+
attr_accessor :seen
|
33
|
+
|
34
34
|
attr_accessor :seen_at
|
35
35
|
|
36
36
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -42,8 +42,8 @@ module MailSlurpClient
|
|
42
42
|
:'user_id' => :'userId',
|
43
43
|
:'sent_email_id' => :'sentEmailId',
|
44
44
|
:'created_at' => :'createdAt',
|
45
|
-
:'seen' => :'seen',
|
46
45
|
:'recipient' => :'recipient',
|
46
|
+
:'seen' => :'seen',
|
47
47
|
:'seen_at' => :'seenAt'
|
48
48
|
}
|
49
49
|
end
|
@@ -57,8 +57,8 @@ module MailSlurpClient
|
|
57
57
|
:'user_id' => :'String',
|
58
58
|
:'sent_email_id' => :'String',
|
59
59
|
:'created_at' => :'DateTime',
|
60
|
-
:'seen' => :'Boolean',
|
61
60
|
:'recipient' => :'String',
|
61
|
+
:'seen' => :'Boolean',
|
62
62
|
:'seen_at' => :'DateTime'
|
63
63
|
}
|
64
64
|
end
|
@@ -108,14 +108,14 @@ module MailSlurpClient
|
|
108
108
|
self.created_at = attributes[:'created_at']
|
109
109
|
end
|
110
110
|
|
111
|
-
if attributes.key?(:'seen')
|
112
|
-
self.seen = attributes[:'seen']
|
113
|
-
end
|
114
|
-
|
115
111
|
if attributes.key?(:'recipient')
|
116
112
|
self.recipient = attributes[:'recipient']
|
117
113
|
end
|
118
114
|
|
115
|
+
if attributes.key?(:'seen')
|
116
|
+
self.seen = attributes[:'seen']
|
117
|
+
end
|
118
|
+
|
119
119
|
if attributes.key?(:'seen_at')
|
120
120
|
self.seen_at = attributes[:'seen_at']
|
121
121
|
end
|
@@ -165,8 +165,8 @@ module MailSlurpClient
|
|
165
165
|
user_id == o.user_id &&
|
166
166
|
sent_email_id == o.sent_email_id &&
|
167
167
|
created_at == o.created_at &&
|
168
|
-
seen == o.seen &&
|
169
168
|
recipient == o.recipient &&
|
169
|
+
seen == o.seen &&
|
170
170
|
seen_at == o.seen_at
|
171
171
|
end
|
172
172
|
|
@@ -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
|
-
[name, id, inbox_id, user_id, sent_email_id, created_at,
|
182
|
+
[name, id, inbox_id, user_id, sent_email_id, created_at, recipient, seen, seen_at].hash
|
183
183
|
end
|
184
184
|
|
185
185
|
# Builds the object from hash
|
@@ -30,8 +30,10 @@ module MailSlurpClient
|
|
30
30
|
# ID of the bounce email record. Use the ID with the bounce controller to view more information
|
31
31
|
attr_accessor :bounce_id
|
32
32
|
|
33
|
+
# Email sent to recipients
|
33
34
|
attr_accessor :sent_to_recipients
|
34
35
|
|
36
|
+
# Sender causing bounce
|
35
37
|
attr_accessor :sender
|
36
38
|
|
37
39
|
# Email addresses that resulted in a bounce or email being rejected. Please save these recipients and avoid emailing them in the future to maintain your reputation.
|
@@ -178,7 +180,7 @@ module MailSlurpClient
|
|
178
180
|
return false if @message_id.nil?
|
179
181
|
return false if @webhook_id.nil?
|
180
182
|
return false if @event_name.nil?
|
181
|
-
event_name_validator = EnumAttributeValidator.new('String', ["EMAIL_RECEIVED", "NEW_EMAIL", "NEW_CONTACT", "NEW_ATTACHMENT", "EMAIL_OPENED", "EMAIL_READ", "BOUNCE", "BOUNCE_RECIPIENT", "NEW_SMS"])
|
183
|
+
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"])
|
182
184
|
return false unless event_name_validator.valid?(@event_name)
|
183
185
|
return false if @bounce_id.nil?
|
184
186
|
return false if @sender.nil?
|
@@ -188,7 +190,7 @@ module MailSlurpClient
|
|
188
190
|
# Custom attribute writer method checking allowed values (enum).
|
189
191
|
# @param [Object] event_name Object to be assigned
|
190
192
|
def event_name=(event_name)
|
191
|
-
validator = EnumAttributeValidator.new('String', ["EMAIL_RECEIVED", "NEW_EMAIL", "NEW_CONTACT", "NEW_ATTACHMENT", "EMAIL_OPENED", "EMAIL_READ", "BOUNCE", "BOUNCE_RECIPIENT", "NEW_SMS"])
|
193
|
+
validator = EnumAttributeValidator.new('String', ["EMAIL_RECEIVED", "NEW_EMAIL", "NEW_CONTACT", "NEW_ATTACHMENT", "EMAIL_OPENED", "EMAIL_READ", "DELIVERY_STATUS", "BOUNCE", "BOUNCE_RECIPIENT", "NEW_SMS"])
|
192
194
|
unless validator.valid?(event_name)
|
193
195
|
fail ArgumentError, "invalid value for \"event_name\", must be one of #{validator.allowable_values}."
|
194
196
|
end
|
@@ -145,7 +145,7 @@ module MailSlurpClient
|
|
145
145
|
return false if @message_id.nil?
|
146
146
|
return false if @webhook_id.nil?
|
147
147
|
return false if @event_name.nil?
|
148
|
-
event_name_validator = EnumAttributeValidator.new('String', ["EMAIL_RECEIVED", "NEW_EMAIL", "NEW_CONTACT", "NEW_ATTACHMENT", "EMAIL_OPENED", "EMAIL_READ", "BOUNCE", "BOUNCE_RECIPIENT", "NEW_SMS"])
|
148
|
+
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"])
|
149
149
|
return false unless event_name_validator.valid?(@event_name)
|
150
150
|
return false if @recipient.nil?
|
151
151
|
true
|
@@ -154,7 +154,7 @@ module MailSlurpClient
|
|
154
154
|
# Custom attribute writer method checking allowed values (enum).
|
155
155
|
# @param [Object] event_name Object to be assigned
|
156
156
|
def event_name=(event_name)
|
157
|
-
validator = EnumAttributeValidator.new('String', ["EMAIL_RECEIVED", "NEW_EMAIL", "NEW_CONTACT", "NEW_ATTACHMENT", "EMAIL_OPENED", "EMAIL_READ", "BOUNCE", "BOUNCE_RECIPIENT", "NEW_SMS"])
|
157
|
+
validator = EnumAttributeValidator.new('String', ["EMAIL_RECEIVED", "NEW_EMAIL", "NEW_CONTACT", "NEW_ATTACHMENT", "EMAIL_OPENED", "EMAIL_READ", "DELIVERY_STATUS", "BOUNCE", "BOUNCE_RECIPIENT", "NEW_SMS"])
|
158
158
|
unless validator.valid?(event_name)
|
159
159
|
fail ArgumentError, "invalid value for \"event_name\", must be one of #{validator.allowable_values}."
|
160
160
|
end
|