mailslurp_client 15.0.3 → 15.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE +1 -1
- data/lib/mailslurp_client/api/alias_controller_api.rb +60 -56
- data/lib/mailslurp_client/api/attachment_controller_api.rb +50 -61
- data/lib/mailslurp_client/api/bounce_controller_api.rb +27 -19
- data/lib/mailslurp_client/api/bulk_actions_controller_api.rb +16 -16
- data/lib/mailslurp_client/api/common_actions_controller_api.rb +129 -68
- data/lib/mailslurp_client/api/contact_controller_api.rb +23 -23
- data/lib/mailslurp_client/api/domain_controller_api.rb +33 -33
- data/lib/mailslurp_client/api/email_controller_api.rb +145 -122
- data/lib/mailslurp_client/api/expired_controller_api.rb +20 -20
- data/lib/mailslurp_client/api/export_controller_api.rb +39 -39
- data/lib/mailslurp_client/api/form_controller_api.rb +17 -19
- data/lib/mailslurp_client/api/group_controller_api.rb +53 -53
- data/lib/mailslurp_client/api/inbox_controller_api.rb +198 -178
- data/lib/mailslurp_client/api/inbox_forwarder_controller_api.rb +34 -30
- data/lib/mailslurp_client/api/inbox_ruleset_controller_api.rb +34 -30
- data/lib/mailslurp_client/api/mail_server_controller_api.rb +27 -27
- data/lib/mailslurp_client/api/missed_email_controller_api.rb +55 -43
- data/lib/mailslurp_client/api/sent_emails_controller_api.rb +158 -48
- data/lib/mailslurp_client/api/template_controller_api.rb +22 -22
- data/lib/mailslurp_client/api/tracking_controller_api.rb +17 -17
- data/lib/mailslurp_client/api/wait_for_controller_api.rb +129 -89
- data/lib/mailslurp_client/api/webhook_controller_api.rb +103 -87
- data/lib/mailslurp_client/api_client.rb +1 -1
- data/lib/mailslurp_client/api_error.rb +1 -1
- data/lib/mailslurp_client/configuration.rb +3 -3
- data/lib/mailslurp_client/models/abstract_webhook_payload.rb +22 -22
- data/lib/mailslurp_client/models/alias_dto.rb +64 -49
- data/lib/mailslurp_client/models/alias_projection.rb +50 -50
- data/lib/mailslurp_client/models/attachment_entity.rb +40 -40
- data/lib/mailslurp_client/models/attachment_meta_data.rb +42 -22
- data/lib/mailslurp_client/models/attachment_projection.rb +38 -33
- data/lib/mailslurp_client/models/basic_auth_options.rb +1 -1
- data/lib/mailslurp_client/models/bounce_projection.rb +19 -19
- data/lib/mailslurp_client/models/bounce_recipient.rb +31 -31
- data/lib/mailslurp_client/models/bounced_email_dto.rb +63 -63
- data/lib/mailslurp_client/models/bounced_recipient_dto.rb +23 -23
- data/lib/mailslurp_client/models/bulk_send_email_options.rb +11 -1
- data/lib/mailslurp_client/models/condition_option.rb +13 -3
- data/lib/mailslurp_client/models/contact_dto.rb +63 -63
- data/lib/mailslurp_client/models/contact_projection.rb +39 -39
- data/lib/mailslurp_client/models/content_match_options.rb +6 -1
- data/lib/mailslurp_client/models/count_dto.rb +1 -1
- data/lib/mailslurp_client/models/create_alias_options.rb +11 -1
- data/lib/mailslurp_client/models/create_contact_options.rb +43 -43
- data/lib/mailslurp_client/models/create_domain_options.rb +22 -17
- data/lib/mailslurp_client/models/create_group_options.rb +1 -1
- data/lib/mailslurp_client/models/create_inbox_dto.rb +59 -59
- data/lib/mailslurp_client/models/create_inbox_forwarder_options.rb +30 -15
- data/lib/mailslurp_client/models/create_inbox_ruleset_options.rb +39 -24
- data/lib/mailslurp_client/models/create_template_options.rb +1 -1
- data/lib/mailslurp_client/models/create_tracking_pixel_options.rb +1 -1
- data/lib/mailslurp_client/models/create_webhook_options.rb +24 -19
- data/lib/mailslurp_client/models/describe_domain_options.rb +1 -1
- data/lib/mailslurp_client/models/describe_mail_server_domain_result.rb +21 -21
- data/lib/mailslurp_client/models/dns_lookup_options.rb +30 -15
- data/lib/mailslurp_client/models/dns_lookup_result.rb +34 -33
- data/lib/mailslurp_client/models/dns_lookup_results.rb +1 -1
- data/lib/mailslurp_client/models/domain_dto.rb +100 -70
- data/lib/mailslurp_client/models/domain_name_record.rb +18 -17
- data/lib/mailslurp_client/models/domain_preview.rb +29 -28
- data/lib/mailslurp_client/models/download_attachment_dto.rb +16 -1
- data/lib/mailslurp_client/models/email.rb +179 -139
- data/lib/mailslurp_client/models/email_analysis.rb +29 -29
- data/lib/mailslurp_client/models/email_content_match_result.rb +19 -19
- data/lib/mailslurp_client/models/email_links_result.rb +19 -19
- data/lib/mailslurp_client/models/email_preview.rb +63 -48
- data/lib/mailslurp_client/models/email_projection.rb +77 -77
- data/lib/mailslurp_client/models/email_recipients.rb +17 -16
- data/lib/mailslurp_client/models/email_text_lines_result.rb +19 -19
- data/lib/mailslurp_client/models/email_verification_result.rb +22 -22
- data/lib/mailslurp_client/models/expiration_defaults.rb +17 -17
- data/lib/mailslurp_client/models/expired_inbox_dto.rb +19 -19
- data/lib/mailslurp_client/models/expired_inbox_record_projection.rb +33 -33
- data/lib/mailslurp_client/models/export_link.rb +1 -1
- data/lib/mailslurp_client/models/export_options.rb +2 -2
- data/lib/mailslurp_client/models/flush_expired_inboxes_result.rb +19 -19
- data/lib/mailslurp_client/models/forward_email_options.rb +37 -32
- data/lib/mailslurp_client/models/gravatar_url.rb +19 -19
- data/lib/mailslurp_client/models/group_contacts_dto.rb +19 -19
- data/lib/mailslurp_client/models/group_dto.rb +28 -28
- data/lib/mailslurp_client/models/group_projection.rb +29 -29
- data/lib/mailslurp_client/models/html_validation_result.rb +27 -12
- data/lib/mailslurp_client/models/{inbox.rb → inbox_dto.rb} +72 -57
- data/lib/mailslurp_client/models/inbox_exists_dto.rb +1 -1
- data/lib/mailslurp_client/models/inbox_forwarder_dto.rb +48 -48
- data/lib/mailslurp_client/models/inbox_forwarder_test_options.rb +1 -1
- data/lib/mailslurp_client/models/inbox_forwarder_test_result.rb +19 -19
- data/lib/mailslurp_client/models/inbox_preview.rb +59 -39
- data/lib/mailslurp_client/models/inbox_ruleset_dto.rb +61 -61
- data/lib/mailslurp_client/models/inbox_ruleset_test_options.rb +1 -1
- data/lib/mailslurp_client/models/inbox_ruleset_test_result.rb +19 -14
- data/lib/mailslurp_client/models/inline_object.rb +221 -0
- data/lib/mailslurp_client/models/ip_address_result.rb +1 -1
- data/lib/mailslurp_client/models/json_schema_dto.rb +1 -1
- data/lib/mailslurp_client/models/match_option.rb +18 -3
- data/lib/mailslurp_client/models/match_options.rb +17 -17
- data/lib/mailslurp_client/models/missed_email.rb +77 -77
- data/lib/mailslurp_client/models/missed_email_projection.rb +25 -25
- data/lib/mailslurp_client/models/name_server_record.rb +16 -16
- data/lib/mailslurp_client/models/organization_inbox_projection.rb +70 -45
- data/lib/mailslurp_client/models/page_alias.rb +59 -50
- data/lib/mailslurp_client/models/page_attachment_entity.rb +59 -50
- data/lib/mailslurp_client/models/page_bounced_email.rb +59 -50
- data/lib/mailslurp_client/models/page_bounced_recipients.rb +59 -50
- data/lib/mailslurp_client/models/page_contact_projection.rb +59 -50
- data/lib/mailslurp_client/models/page_email_preview.rb +59 -50
- data/lib/mailslurp_client/models/page_email_projection.rb +59 -50
- data/lib/mailslurp_client/models/page_expired_inbox_record_projection.rb +59 -50
- data/lib/mailslurp_client/models/page_group_projection.rb +59 -50
- data/lib/mailslurp_client/models/page_inbox_forwarder_dto.rb +59 -50
- data/lib/mailslurp_client/models/page_inbox_projection.rb +59 -50
- data/lib/mailslurp_client/models/page_inbox_ruleset_dto.rb +59 -50
- data/lib/mailslurp_client/models/page_missed_email_projection.rb +59 -50
- data/lib/mailslurp_client/models/page_organization_inbox_projection.rb +59 -50
- data/lib/mailslurp_client/models/page_sent_email_projection.rb +86 -47
- data/lib/mailslurp_client/models/page_template_projection.rb +59 -50
- data/lib/mailslurp_client/models/page_thread_projection.rb +59 -50
- data/lib/mailslurp_client/models/page_tracking_pixel_projection.rb +59 -50
- data/lib/mailslurp_client/models/page_unknown_missed_email_projection.rb +59 -50
- data/lib/mailslurp_client/models/page_webhook_projection.rb +59 -50
- data/lib/mailslurp_client/models/page_webhook_result.rb +59 -50
- data/lib/mailslurp_client/models/{pageable.rb → pageable_object.rb} +32 -32
- data/lib/mailslurp_client/models/raw_email_json.rb +1 -1
- data/lib/mailslurp_client/models/recipient.rb +19 -19
- data/lib/mailslurp_client/models/reply_to_alias_email_options.rb +47 -35
- data/lib/mailslurp_client/models/reply_to_email_options.rb +57 -45
- data/lib/mailslurp_client/models/send_email_options.rb +112 -110
- data/lib/mailslurp_client/models/sender.rb +20 -19
- data/lib/mailslurp_client/models/sent_email_dto.rb +110 -95
- data/lib/mailslurp_client/models/sent_email_projection.rb +88 -87
- data/lib/mailslurp_client/models/set_inbox_favourited_options.rb +6 -1
- data/lib/mailslurp_client/models/simple_send_email_options.rb +30 -25
- data/lib/mailslurp_client/models/sort.rb +1 -1
- data/lib/mailslurp_client/models/template_dto.rb +33 -33
- data/lib/mailslurp_client/models/template_projection.rb +37 -37
- data/lib/mailslurp_client/models/template_variable.rb +1 -1
- data/lib/mailslurp_client/models/test_new_inbox_forwarder_options.rb +1 -1
- data/lib/mailslurp_client/models/test_new_inbox_ruleset_options.rb +1 -1
- data/lib/mailslurp_client/models/thread_projection.rb +71 -71
- data/lib/mailslurp_client/models/tracking_pixel_dto.rb +54 -54
- data/lib/mailslurp_client/models/tracking_pixel_projection.rb +42 -42
- data/lib/mailslurp_client/models/unknown_missed_email_projection.rb +25 -25
- data/lib/mailslurp_client/models/unread_count.rb +1 -1
- data/lib/mailslurp_client/models/unseen_error_count_dto.rb +1 -1
- data/lib/mailslurp_client/models/update_alias_options.rb +1 -1
- data/lib/mailslurp_client/models/update_domain_options.rb +1 -1
- data/lib/mailslurp_client/models/update_group_contacts.rb +1 -1
- data/lib/mailslurp_client/models/update_inbox_options.rb +27 -27
- data/lib/mailslurp_client/models/upload_attachment_options.rb +15 -15
- data/lib/mailslurp_client/models/validation_dto.rb +11 -1
- data/lib/mailslurp_client/models/validation_message.rb +2 -1
- data/lib/mailslurp_client/models/verify_email_address_options.rb +1 -1
- data/lib/mailslurp_client/models/wait_for_conditions.rb +53 -53
- data/lib/mailslurp_client/models/webhook_dto.rb +105 -65
- data/lib/mailslurp_client/models/webhook_email_opened_payload.rb +83 -43
- data/lib/mailslurp_client/models/webhook_email_read_payload.rb +85 -50
- data/lib/mailslurp_client/models/webhook_new_attachment_payload.rb +79 -44
- data/lib/mailslurp_client/models/webhook_new_contact_payload.rb +98 -83
- data/lib/mailslurp_client/models/webhook_new_email_payload.rb +140 -85
- data/lib/mailslurp_client/models/webhook_projection.rb +47 -47
- data/lib/mailslurp_client/models/webhook_redrive_result.rb +19 -19
- data/lib/mailslurp_client/models/webhook_result_dto.rb +102 -102
- data/lib/mailslurp_client/models/webhook_test_request.rb +28 -28
- data/lib/mailslurp_client/models/webhook_test_response.rb +14 -14
- data/lib/mailslurp_client/models/webhook_test_result.rb +19 -19
- data/lib/mailslurp_client/version.rb +2 -2
- data/lib/mailslurp_client.rb +4 -3
- metadata +5 -4
@@ -4,7 +4,7 @@
|
|
4
4
|
#MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://www.mailslurp.com/docs/) - [Examples](https://github.com/mailslurp/examples) repository
|
5
5
|
|
6
6
|
The version of the OpenAPI document: 6.5.2
|
7
|
-
|
7
|
+
Contact: contact@mailslurp.dev
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 4.3.1
|
10
10
|
|
@@ -15,19 +15,19 @@ require 'date'
|
|
15
15
|
module MailSlurpClient
|
16
16
|
# Representation of a webhook
|
17
17
|
class WebhookProjection
|
18
|
-
attr_accessor :
|
19
|
-
|
20
|
-
attr_accessor :event_name
|
18
|
+
attr_accessor :name
|
21
19
|
|
22
20
|
attr_accessor :id
|
23
21
|
|
22
|
+
attr_accessor :url
|
23
|
+
|
24
24
|
attr_accessor :inbox_id
|
25
25
|
|
26
|
-
attr_accessor :
|
26
|
+
attr_accessor :event_name
|
27
27
|
|
28
|
-
attr_accessor :
|
28
|
+
attr_accessor :created_at
|
29
29
|
|
30
|
-
attr_accessor :
|
30
|
+
attr_accessor :updated_at
|
31
31
|
|
32
32
|
class EnumAttributeValidator
|
33
33
|
attr_reader :datatype
|
@@ -54,26 +54,26 @@ module MailSlurpClient
|
|
54
54
|
# Attribute mapping from ruby-style variable name to JSON key.
|
55
55
|
def self.attribute_map
|
56
56
|
{
|
57
|
-
:'
|
58
|
-
:'event_name' => :'eventName',
|
57
|
+
:'name' => :'name',
|
59
58
|
:'id' => :'id',
|
59
|
+
:'url' => :'url',
|
60
60
|
:'inbox_id' => :'inboxId',
|
61
|
-
:'
|
62
|
-
:'
|
63
|
-
:'
|
61
|
+
:'event_name' => :'eventName',
|
62
|
+
:'created_at' => :'createdAt',
|
63
|
+
:'updated_at' => :'updatedAt'
|
64
64
|
}
|
65
65
|
end
|
66
66
|
|
67
67
|
# Attribute type mapping.
|
68
68
|
def self.openapi_types
|
69
69
|
{
|
70
|
-
:'
|
71
|
-
:'event_name' => :'String',
|
70
|
+
:'name' => :'String',
|
72
71
|
:'id' => :'String',
|
72
|
+
:'url' => :'String',
|
73
73
|
:'inbox_id' => :'String',
|
74
|
-
:'
|
75
|
-
:'
|
76
|
-
:'
|
74
|
+
:'event_name' => :'String',
|
75
|
+
:'created_at' => :'DateTime',
|
76
|
+
:'updated_at' => :'DateTime'
|
77
77
|
}
|
78
78
|
end
|
79
79
|
|
@@ -98,32 +98,32 @@ module MailSlurpClient
|
|
98
98
|
h[k.to_sym] = v
|
99
99
|
}
|
100
100
|
|
101
|
-
if attributes.key?(:'
|
102
|
-
self.
|
103
|
-
end
|
104
|
-
|
105
|
-
if attributes.key?(:'event_name')
|
106
|
-
self.event_name = attributes[:'event_name']
|
101
|
+
if attributes.key?(:'name')
|
102
|
+
self.name = attributes[:'name']
|
107
103
|
end
|
108
104
|
|
109
105
|
if attributes.key?(:'id')
|
110
106
|
self.id = attributes[:'id']
|
111
107
|
end
|
112
108
|
|
109
|
+
if attributes.key?(:'url')
|
110
|
+
self.url = attributes[:'url']
|
111
|
+
end
|
112
|
+
|
113
113
|
if attributes.key?(:'inbox_id')
|
114
114
|
self.inbox_id = attributes[:'inbox_id']
|
115
115
|
end
|
116
116
|
|
117
|
-
if attributes.key?(:'
|
118
|
-
self.
|
117
|
+
if attributes.key?(:'event_name')
|
118
|
+
self.event_name = attributes[:'event_name']
|
119
119
|
end
|
120
120
|
|
121
|
-
if attributes.key?(:'
|
122
|
-
self.
|
121
|
+
if attributes.key?(:'created_at')
|
122
|
+
self.created_at = attributes[:'created_at']
|
123
123
|
end
|
124
124
|
|
125
|
-
if attributes.key?(:'
|
126
|
-
self.
|
125
|
+
if attributes.key?(:'updated_at')
|
126
|
+
self.updated_at = attributes[:'updated_at']
|
127
127
|
end
|
128
128
|
end
|
129
129
|
|
@@ -131,24 +131,24 @@ module MailSlurpClient
|
|
131
131
|
# @return Array for valid properties with the reasons
|
132
132
|
def list_invalid_properties
|
133
133
|
invalid_properties = Array.new
|
134
|
-
if @created_at.nil?
|
135
|
-
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
136
|
-
end
|
137
|
-
|
138
134
|
if @id.nil?
|
139
135
|
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
140
136
|
end
|
141
137
|
|
138
|
+
if @url.nil?
|
139
|
+
invalid_properties.push('invalid value for "url", url cannot be nil.')
|
140
|
+
end
|
141
|
+
|
142
142
|
if @inbox_id.nil?
|
143
143
|
invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
|
144
144
|
end
|
145
145
|
|
146
|
-
if @
|
147
|
-
invalid_properties.push('invalid value for "
|
146
|
+
if @created_at.nil?
|
147
|
+
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
148
148
|
end
|
149
149
|
|
150
|
-
if @
|
151
|
-
invalid_properties.push('invalid value for "
|
150
|
+
if @updated_at.nil?
|
151
|
+
invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
|
152
152
|
end
|
153
153
|
|
154
154
|
invalid_properties
|
@@ -157,13 +157,13 @@ module MailSlurpClient
|
|
157
157
|
# Check to see if the all the properties in the model are valid
|
158
158
|
# @return true if the model is valid
|
159
159
|
def valid?
|
160
|
-
return false if @created_at.nil?
|
161
|
-
event_name_validator = EnumAttributeValidator.new('String', ["EMAIL_RECEIVED", "NEW_EMAIL", "NEW_CONTACT", "NEW_ATTACHMENT", "EMAIL_OPENED", "EMAIL_READ"])
|
162
|
-
return false unless event_name_validator.valid?(@event_name)
|
163
160
|
return false if @id.nil?
|
161
|
+
return false if @url.nil?
|
164
162
|
return false if @inbox_id.nil?
|
163
|
+
event_name_validator = EnumAttributeValidator.new('String', ["EMAIL_RECEIVED", "NEW_EMAIL", "NEW_CONTACT", "NEW_ATTACHMENT", "EMAIL_OPENED", "EMAIL_READ"])
|
164
|
+
return false unless event_name_validator.valid?(@event_name)
|
165
|
+
return false if @created_at.nil?
|
165
166
|
return false if @updated_at.nil?
|
166
|
-
return false if @url.nil?
|
167
167
|
true
|
168
168
|
end
|
169
169
|
|
@@ -182,13 +182,13 @@ module MailSlurpClient
|
|
182
182
|
def ==(o)
|
183
183
|
return true if self.equal?(o)
|
184
184
|
self.class == o.class &&
|
185
|
-
|
186
|
-
event_name == o.event_name &&
|
185
|
+
name == o.name &&
|
187
186
|
id == o.id &&
|
187
|
+
url == o.url &&
|
188
188
|
inbox_id == o.inbox_id &&
|
189
|
-
|
190
|
-
|
191
|
-
|
189
|
+
event_name == o.event_name &&
|
190
|
+
created_at == o.created_at &&
|
191
|
+
updated_at == o.updated_at
|
192
192
|
end
|
193
193
|
|
194
194
|
# @see the `==` method
|
@@ -200,7 +200,7 @@ module MailSlurpClient
|
|
200
200
|
# Calculates hash code according to all attributes.
|
201
201
|
# @return [Integer] Hash code
|
202
202
|
def hash
|
203
|
-
[
|
203
|
+
[name, id, url, inbox_id, event_name, created_at, updated_at].hash
|
204
204
|
end
|
205
205
|
|
206
206
|
# Builds the object from hash
|
@@ -4,7 +4,7 @@
|
|
4
4
|
#MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://www.mailslurp.com/docs/) - [Examples](https://github.com/mailslurp/examples) repository
|
5
5
|
|
6
6
|
The version of the OpenAPI document: 6.5.2
|
7
|
-
|
7
|
+
Contact: contact@mailslurp.dev
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 4.3.1
|
10
10
|
|
@@ -14,27 +14,27 @@ require 'date'
|
|
14
14
|
|
15
15
|
module MailSlurpClient
|
16
16
|
class WebhookRedriveResult
|
17
|
-
attr_accessor :
|
17
|
+
attr_accessor :webhook_result_id
|
18
18
|
|
19
19
|
attr_accessor :success
|
20
20
|
|
21
|
-
attr_accessor :
|
21
|
+
attr_accessor :message
|
22
22
|
|
23
23
|
# Attribute mapping from ruby-style variable name to JSON key.
|
24
24
|
def self.attribute_map
|
25
25
|
{
|
26
|
-
:'
|
26
|
+
:'webhook_result_id' => :'webhookResultId',
|
27
27
|
:'success' => :'success',
|
28
|
-
:'
|
28
|
+
:'message' => :'message'
|
29
29
|
}
|
30
30
|
end
|
31
31
|
|
32
32
|
# Attribute type mapping.
|
33
33
|
def self.openapi_types
|
34
34
|
{
|
35
|
-
:'
|
35
|
+
:'webhook_result_id' => :'String',
|
36
36
|
:'success' => :'Boolean',
|
37
|
-
:'
|
37
|
+
:'message' => :'String'
|
38
38
|
}
|
39
39
|
end
|
40
40
|
|
@@ -59,16 +59,16 @@ module MailSlurpClient
|
|
59
59
|
h[k.to_sym] = v
|
60
60
|
}
|
61
61
|
|
62
|
-
if attributes.key?(:'
|
63
|
-
self.
|
62
|
+
if attributes.key?(:'webhook_result_id')
|
63
|
+
self.webhook_result_id = attributes[:'webhook_result_id']
|
64
64
|
end
|
65
65
|
|
66
66
|
if attributes.key?(:'success')
|
67
67
|
self.success = attributes[:'success']
|
68
68
|
end
|
69
69
|
|
70
|
-
if attributes.key?(:'
|
71
|
-
self.
|
70
|
+
if attributes.key?(:'message')
|
71
|
+
self.message = attributes[:'message']
|
72
72
|
end
|
73
73
|
end
|
74
74
|
|
@@ -76,22 +76,22 @@ module MailSlurpClient
|
|
76
76
|
# @return Array for valid properties with the reasons
|
77
77
|
def list_invalid_properties
|
78
78
|
invalid_properties = Array.new
|
79
|
-
if @success.nil?
|
80
|
-
invalid_properties.push('invalid value for "success", success cannot be nil.')
|
81
|
-
end
|
82
|
-
|
83
79
|
if @webhook_result_id.nil?
|
84
80
|
invalid_properties.push('invalid value for "webhook_result_id", webhook_result_id cannot be nil.')
|
85
81
|
end
|
86
82
|
|
83
|
+
if @success.nil?
|
84
|
+
invalid_properties.push('invalid value for "success", success cannot be nil.')
|
85
|
+
end
|
86
|
+
|
87
87
|
invalid_properties
|
88
88
|
end
|
89
89
|
|
90
90
|
# Check to see if the all the properties in the model are valid
|
91
91
|
# @return true if the model is valid
|
92
92
|
def valid?
|
93
|
-
return false if @success.nil?
|
94
93
|
return false if @webhook_result_id.nil?
|
94
|
+
return false if @success.nil?
|
95
95
|
true
|
96
96
|
end
|
97
97
|
|
@@ -100,9 +100,9 @@ module MailSlurpClient
|
|
100
100
|
def ==(o)
|
101
101
|
return true if self.equal?(o)
|
102
102
|
self.class == o.class &&
|
103
|
-
|
103
|
+
webhook_result_id == o.webhook_result_id &&
|
104
104
|
success == o.success &&
|
105
|
-
|
105
|
+
message == o.message
|
106
106
|
end
|
107
107
|
|
108
108
|
# @see the `==` method
|
@@ -114,7 +114,7 @@ module MailSlurpClient
|
|
114
114
|
# Calculates hash code according to all attributes.
|
115
115
|
# @return [Integer] Hash code
|
116
116
|
def hash
|
117
|
-
[
|
117
|
+
[webhook_result_id, success, message].hash
|
118
118
|
end
|
119
119
|
|
120
120
|
# Builds the object from hash
|
@@ -4,7 +4,7 @@
|
|
4
4
|
#MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://www.mailslurp.com/docs/) - [Examples](https://github.com/mailslurp/examples) repository
|
5
5
|
|
6
6
|
The version of the OpenAPI document: 6.5.2
|
7
|
-
|
7
|
+
Contact: contact@mailslurp.dev
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 4.3.1
|
10
10
|
|
@@ -14,37 +14,37 @@ require 'date'
|
|
14
14
|
|
15
15
|
module MailSlurpClient
|
16
16
|
class WebhookResultDto
|
17
|
-
attr_accessor :created_at
|
18
|
-
|
19
|
-
attr_accessor :http_method
|
20
|
-
|
21
17
|
attr_accessor :id
|
22
18
|
|
19
|
+
attr_accessor :user_id
|
20
|
+
|
23
21
|
attr_accessor :inbox_id
|
24
22
|
|
23
|
+
attr_accessor :webhook_id
|
24
|
+
|
25
|
+
attr_accessor :webhook_url
|
26
|
+
|
25
27
|
attr_accessor :message_id
|
26
28
|
|
27
29
|
attr_accessor :redrive_id
|
28
30
|
|
29
|
-
attr_accessor :
|
31
|
+
attr_accessor :http_method
|
32
|
+
|
33
|
+
attr_accessor :webhook_event
|
30
34
|
|
31
35
|
attr_accessor :response_status
|
32
36
|
|
33
37
|
attr_accessor :response_time_millis
|
34
38
|
|
39
|
+
attr_accessor :response_body_extract
|
40
|
+
|
35
41
|
attr_accessor :result_type
|
36
42
|
|
37
|
-
attr_accessor :
|
43
|
+
attr_accessor :created_at
|
38
44
|
|
39
45
|
attr_accessor :updated_at
|
40
46
|
|
41
|
-
attr_accessor :
|
42
|
-
|
43
|
-
attr_accessor :webhook_event
|
44
|
-
|
45
|
-
attr_accessor :webhook_id
|
46
|
-
|
47
|
-
attr_accessor :webhook_url
|
47
|
+
attr_accessor :seen
|
48
48
|
|
49
49
|
class EnumAttributeValidator
|
50
50
|
attr_reader :datatype
|
@@ -71,44 +71,44 @@ module MailSlurpClient
|
|
71
71
|
# Attribute mapping from ruby-style variable name to JSON key.
|
72
72
|
def self.attribute_map
|
73
73
|
{
|
74
|
-
:'created_at' => :'createdAt',
|
75
|
-
:'http_method' => :'httpMethod',
|
76
74
|
:'id' => :'id',
|
75
|
+
:'user_id' => :'userId',
|
77
76
|
:'inbox_id' => :'inboxId',
|
77
|
+
:'webhook_id' => :'webhookId',
|
78
|
+
:'webhook_url' => :'webhookUrl',
|
78
79
|
:'message_id' => :'messageId',
|
79
80
|
:'redrive_id' => :'redriveId',
|
80
|
-
:'
|
81
|
+
:'http_method' => :'httpMethod',
|
82
|
+
:'webhook_event' => :'webhookEvent',
|
81
83
|
:'response_status' => :'responseStatus',
|
82
84
|
:'response_time_millis' => :'responseTimeMillis',
|
85
|
+
:'response_body_extract' => :'responseBodyExtract',
|
83
86
|
:'result_type' => :'resultType',
|
84
|
-
:'
|
87
|
+
:'created_at' => :'createdAt',
|
85
88
|
:'updated_at' => :'updatedAt',
|
86
|
-
:'
|
87
|
-
:'webhook_event' => :'webhookEvent',
|
88
|
-
:'webhook_id' => :'webhookId',
|
89
|
-
:'webhook_url' => :'webhookUrl'
|
89
|
+
:'seen' => :'seen'
|
90
90
|
}
|
91
91
|
end
|
92
92
|
|
93
93
|
# Attribute type mapping.
|
94
94
|
def self.openapi_types
|
95
95
|
{
|
96
|
-
:'created_at' => :'DateTime',
|
97
|
-
:'http_method' => :'String',
|
98
96
|
:'id' => :'String',
|
97
|
+
:'user_id' => :'String',
|
99
98
|
:'inbox_id' => :'String',
|
99
|
+
:'webhook_id' => :'String',
|
100
|
+
:'webhook_url' => :'String',
|
100
101
|
:'message_id' => :'String',
|
101
102
|
:'redrive_id' => :'String',
|
102
|
-
:'
|
103
|
+
:'http_method' => :'String',
|
104
|
+
:'webhook_event' => :'String',
|
103
105
|
:'response_status' => :'Integer',
|
104
106
|
:'response_time_millis' => :'Integer',
|
107
|
+
:'response_body_extract' => :'String',
|
105
108
|
:'result_type' => :'String',
|
106
|
-
:'
|
109
|
+
:'created_at' => :'DateTime',
|
107
110
|
:'updated_at' => :'DateTime',
|
108
|
-
:'
|
109
|
-
:'webhook_event' => :'String',
|
110
|
-
:'webhook_id' => :'String',
|
111
|
-
:'webhook_url' => :'String'
|
111
|
+
:'seen' => :'Boolean'
|
112
112
|
}
|
113
113
|
end
|
114
114
|
|
@@ -133,22 +133,26 @@ module MailSlurpClient
|
|
133
133
|
h[k.to_sym] = v
|
134
134
|
}
|
135
135
|
|
136
|
-
if attributes.key?(:'created_at')
|
137
|
-
self.created_at = attributes[:'created_at']
|
138
|
-
end
|
139
|
-
|
140
|
-
if attributes.key?(:'http_method')
|
141
|
-
self.http_method = attributes[:'http_method']
|
142
|
-
end
|
143
|
-
|
144
136
|
if attributes.key?(:'id')
|
145
137
|
self.id = attributes[:'id']
|
146
138
|
end
|
147
139
|
|
140
|
+
if attributes.key?(:'user_id')
|
141
|
+
self.user_id = attributes[:'user_id']
|
142
|
+
end
|
143
|
+
|
148
144
|
if attributes.key?(:'inbox_id')
|
149
145
|
self.inbox_id = attributes[:'inbox_id']
|
150
146
|
end
|
151
147
|
|
148
|
+
if attributes.key?(:'webhook_id')
|
149
|
+
self.webhook_id = attributes[:'webhook_id']
|
150
|
+
end
|
151
|
+
|
152
|
+
if attributes.key?(:'webhook_url')
|
153
|
+
self.webhook_url = attributes[:'webhook_url']
|
154
|
+
end
|
155
|
+
|
152
156
|
if attributes.key?(:'message_id')
|
153
157
|
self.message_id = attributes[:'message_id']
|
154
158
|
end
|
@@ -157,8 +161,12 @@ module MailSlurpClient
|
|
157
161
|
self.redrive_id = attributes[:'redrive_id']
|
158
162
|
end
|
159
163
|
|
160
|
-
if attributes.key?(:'
|
161
|
-
self.
|
164
|
+
if attributes.key?(:'http_method')
|
165
|
+
self.http_method = attributes[:'http_method']
|
166
|
+
end
|
167
|
+
|
168
|
+
if attributes.key?(:'webhook_event')
|
169
|
+
self.webhook_event = attributes[:'webhook_event']
|
162
170
|
end
|
163
171
|
|
164
172
|
if attributes.key?(:'response_status')
|
@@ -169,32 +177,24 @@ module MailSlurpClient
|
|
169
177
|
self.response_time_millis = attributes[:'response_time_millis']
|
170
178
|
end
|
171
179
|
|
180
|
+
if attributes.key?(:'response_body_extract')
|
181
|
+
self.response_body_extract = attributes[:'response_body_extract']
|
182
|
+
end
|
183
|
+
|
172
184
|
if attributes.key?(:'result_type')
|
173
185
|
self.result_type = attributes[:'result_type']
|
174
186
|
end
|
175
187
|
|
176
|
-
if attributes.key?(:'
|
177
|
-
self.
|
188
|
+
if attributes.key?(:'created_at')
|
189
|
+
self.created_at = attributes[:'created_at']
|
178
190
|
end
|
179
191
|
|
180
192
|
if attributes.key?(:'updated_at')
|
181
193
|
self.updated_at = attributes[:'updated_at']
|
182
194
|
end
|
183
195
|
|
184
|
-
if attributes.key?(:'
|
185
|
-
self.
|
186
|
-
end
|
187
|
-
|
188
|
-
if attributes.key?(:'webhook_event')
|
189
|
-
self.webhook_event = attributes[:'webhook_event']
|
190
|
-
end
|
191
|
-
|
192
|
-
if attributes.key?(:'webhook_id')
|
193
|
-
self.webhook_id = attributes[:'webhook_id']
|
194
|
-
end
|
195
|
-
|
196
|
-
if attributes.key?(:'webhook_url')
|
197
|
-
self.webhook_url = attributes[:'webhook_url']
|
196
|
+
if attributes.key?(:'seen')
|
197
|
+
self.seen = attributes[:'seen']
|
198
198
|
end
|
199
199
|
end
|
200
200
|
|
@@ -202,44 +202,44 @@ module MailSlurpClient
|
|
202
202
|
# @return Array for valid properties with the reasons
|
203
203
|
def list_invalid_properties
|
204
204
|
invalid_properties = Array.new
|
205
|
-
if @
|
206
|
-
invalid_properties.push('invalid value for "
|
207
|
-
end
|
208
|
-
|
209
|
-
if @http_method.nil?
|
210
|
-
invalid_properties.push('invalid value for "http_method", http_method cannot be nil.')
|
205
|
+
if @user_id.nil?
|
206
|
+
invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
|
211
207
|
end
|
212
208
|
|
213
209
|
if @inbox_id.nil?
|
214
210
|
invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
|
215
211
|
end
|
216
212
|
|
217
|
-
if @
|
218
|
-
invalid_properties.push('invalid value for "
|
213
|
+
if @webhook_id.nil?
|
214
|
+
invalid_properties.push('invalid value for "webhook_id", webhook_id cannot be nil.')
|
219
215
|
end
|
220
216
|
|
221
|
-
if @
|
222
|
-
invalid_properties.push('invalid value for "
|
217
|
+
if @webhook_url.nil?
|
218
|
+
invalid_properties.push('invalid value for "webhook_url", webhook_url cannot be nil.')
|
223
219
|
end
|
224
220
|
|
225
|
-
if @
|
226
|
-
invalid_properties.push('invalid value for "
|
221
|
+
if @message_id.nil?
|
222
|
+
invalid_properties.push('invalid value for "message_id", message_id cannot be nil.')
|
227
223
|
end
|
228
224
|
|
229
|
-
if @
|
230
|
-
invalid_properties.push('invalid value for "
|
225
|
+
if @http_method.nil?
|
226
|
+
invalid_properties.push('invalid value for "http_method", http_method cannot be nil.')
|
231
227
|
end
|
232
228
|
|
233
229
|
if @webhook_event.nil?
|
234
230
|
invalid_properties.push('invalid value for "webhook_event", webhook_event cannot be nil.')
|
235
231
|
end
|
236
232
|
|
237
|
-
if @
|
238
|
-
invalid_properties.push('invalid value for "
|
233
|
+
if @response_time_millis.nil?
|
234
|
+
invalid_properties.push('invalid value for "response_time_millis", response_time_millis cannot be nil.')
|
239
235
|
end
|
240
236
|
|
241
|
-
if @
|
242
|
-
invalid_properties.push('invalid value for "
|
237
|
+
if @created_at.nil?
|
238
|
+
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
239
|
+
end
|
240
|
+
|
241
|
+
if @updated_at.nil?
|
242
|
+
invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
|
243
243
|
end
|
244
244
|
|
245
245
|
invalid_properties
|
@@ -248,22 +248,22 @@ module MailSlurpClient
|
|
248
248
|
# Check to see if the all the properties in the model are valid
|
249
249
|
# @return true if the model is valid
|
250
250
|
def valid?
|
251
|
-
return false if @
|
251
|
+
return false if @user_id.nil?
|
252
|
+
return false if @inbox_id.nil?
|
253
|
+
return false if @webhook_id.nil?
|
254
|
+
return false if @webhook_url.nil?
|
255
|
+
return false if @message_id.nil?
|
252
256
|
return false if @http_method.nil?
|
253
257
|
http_method_validator = EnumAttributeValidator.new('String', ["GET", "HEAD", "POST", "PUT", "PATCH", "DELETE", "OPTIONS", "TRACE"])
|
254
258
|
return false unless http_method_validator.valid?(@http_method)
|
255
|
-
return false if @
|
256
|
-
|
259
|
+
return false if @webhook_event.nil?
|
260
|
+
webhook_event_validator = EnumAttributeValidator.new('String', ["EMAIL_RECEIVED", "NEW_EMAIL", "NEW_CONTACT", "NEW_ATTACHMENT", "EMAIL_OPENED", "EMAIL_READ"])
|
261
|
+
return false unless webhook_event_validator.valid?(@webhook_event)
|
257
262
|
return false if @response_time_millis.nil?
|
258
263
|
result_type_validator = EnumAttributeValidator.new('String', ["BAD_RESPONSE", "EXCEPTION", "SUCCESS"])
|
259
264
|
return false unless result_type_validator.valid?(@result_type)
|
265
|
+
return false if @created_at.nil?
|
260
266
|
return false if @updated_at.nil?
|
261
|
-
return false if @user_id.nil?
|
262
|
-
return false if @webhook_event.nil?
|
263
|
-
webhook_event_validator = EnumAttributeValidator.new('String', ["EMAIL_RECEIVED", "NEW_EMAIL", "NEW_CONTACT", "NEW_ATTACHMENT", "EMAIL_OPENED", "EMAIL_READ"])
|
264
|
-
return false unless webhook_event_validator.valid?(@webhook_event)
|
265
|
-
return false if @webhook_id.nil?
|
266
|
-
return false if @webhook_url.nil?
|
267
267
|
true
|
268
268
|
end
|
269
269
|
|
@@ -277,16 +277,6 @@ module MailSlurpClient
|
|
277
277
|
@http_method = http_method
|
278
278
|
end
|
279
279
|
|
280
|
-
# Custom attribute writer method checking allowed values (enum).
|
281
|
-
# @param [Object] result_type Object to be assigned
|
282
|
-
def result_type=(result_type)
|
283
|
-
validator = EnumAttributeValidator.new('String', ["BAD_RESPONSE", "EXCEPTION", "SUCCESS"])
|
284
|
-
unless validator.valid?(result_type)
|
285
|
-
fail ArgumentError, "invalid value for \"result_type\", must be one of #{validator.allowable_values}."
|
286
|
-
end
|
287
|
-
@result_type = result_type
|
288
|
-
end
|
289
|
-
|
290
280
|
# Custom attribute writer method checking allowed values (enum).
|
291
281
|
# @param [Object] webhook_event Object to be assigned
|
292
282
|
def webhook_event=(webhook_event)
|
@@ -297,27 +287,37 @@ module MailSlurpClient
|
|
297
287
|
@webhook_event = webhook_event
|
298
288
|
end
|
299
289
|
|
290
|
+
# Custom attribute writer method checking allowed values (enum).
|
291
|
+
# @param [Object] result_type Object to be assigned
|
292
|
+
def result_type=(result_type)
|
293
|
+
validator = EnumAttributeValidator.new('String', ["BAD_RESPONSE", "EXCEPTION", "SUCCESS"])
|
294
|
+
unless validator.valid?(result_type)
|
295
|
+
fail ArgumentError, "invalid value for \"result_type\", must be one of #{validator.allowable_values}."
|
296
|
+
end
|
297
|
+
@result_type = result_type
|
298
|
+
end
|
299
|
+
|
300
300
|
# Checks equality by comparing each attribute.
|
301
301
|
# @param [Object] Object to be compared
|
302
302
|
def ==(o)
|
303
303
|
return true if self.equal?(o)
|
304
304
|
self.class == o.class &&
|
305
|
-
created_at == o.created_at &&
|
306
|
-
http_method == o.http_method &&
|
307
305
|
id == o.id &&
|
306
|
+
user_id == o.user_id &&
|
308
307
|
inbox_id == o.inbox_id &&
|
308
|
+
webhook_id == o.webhook_id &&
|
309
|
+
webhook_url == o.webhook_url &&
|
309
310
|
message_id == o.message_id &&
|
310
311
|
redrive_id == o.redrive_id &&
|
311
|
-
|
312
|
+
http_method == o.http_method &&
|
313
|
+
webhook_event == o.webhook_event &&
|
312
314
|
response_status == o.response_status &&
|
313
315
|
response_time_millis == o.response_time_millis &&
|
316
|
+
response_body_extract == o.response_body_extract &&
|
314
317
|
result_type == o.result_type &&
|
315
|
-
|
318
|
+
created_at == o.created_at &&
|
316
319
|
updated_at == o.updated_at &&
|
317
|
-
|
318
|
-
webhook_event == o.webhook_event &&
|
319
|
-
webhook_id == o.webhook_id &&
|
320
|
-
webhook_url == o.webhook_url
|
320
|
+
seen == o.seen
|
321
321
|
end
|
322
322
|
|
323
323
|
# @see the `==` method
|
@@ -329,7 +329,7 @@ module MailSlurpClient
|
|
329
329
|
# Calculates hash code according to all attributes.
|
330
330
|
# @return [Integer] Hash code
|
331
331
|
def hash
|
332
|
-
[
|
332
|
+
[id, user_id, inbox_id, webhook_id, webhook_url, message_id, redrive_id, http_method, webhook_event, response_status, response_time_millis, response_body_extract, result_type, created_at, updated_at, seen].hash
|
333
333
|
end
|
334
334
|
|
335
335
|
# Builds the object from hash
|