mailslurp_client 15.0.2 → 15.0.6
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 +191 -117
- 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 +360 -226
- 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 +11 -26
- data/lib/mailslurp_client/models/alias_dto.rb +46 -57
- data/lib/mailslurp_client/models/alias_projection.rb +38 -68
- data/lib/mailslurp_client/models/attachment_entity.rb +35 -55
- data/lib/mailslurp_client/models/attachment_meta_data.rb +22 -22
- data/lib/mailslurp_client/models/attachment_projection.rb +30 -45
- data/lib/mailslurp_client/models/basic_auth_options.rb +1 -11
- data/lib/mailslurp_client/models/bounce_projection.rb +14 -24
- data/lib/mailslurp_client/models/bounce_recipient.rb +23 -43
- data/lib/mailslurp_client/models/bounced_email_dto.rb +57 -77
- data/lib/mailslurp_client/models/bounced_recipient_dto.rb +17 -32
- data/lib/mailslurp_client/models/bulk_send_email_options.rb +6 -1
- data/lib/mailslurp_client/models/condition_option.rb +3 -3
- data/lib/mailslurp_client/models/contact_dto.rb +54 -74
- data/lib/mailslurp_client/models/contact_projection.rb +43 -53
- data/lib/mailslurp_client/models/content_match_options.rb +1 -1
- data/lib/mailslurp_client/models/count_dto.rb +206 -0
- data/lib/mailslurp_client/models/create_alias_options.rb +1 -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 -6
- data/lib/mailslurp_client/models/create_inbox_dto.rb +59 -59
- data/lib/mailslurp_client/models/create_inbox_forwarder_options.rb +20 -15
- data/lib/mailslurp_client/models/create_inbox_ruleset_options.rb +24 -24
- data/lib/mailslurp_client/models/create_template_options.rb +1 -11
- data/lib/mailslurp_client/models/create_tracking_pixel_options.rb +1 -1
- data/lib/mailslurp_client/models/create_webhook_options.rb +19 -19
- data/lib/mailslurp_client/models/describe_domain_options.rb +1 -1
- data/lib/mailslurp_client/models/describe_mail_server_domain_result.rb +16 -26
- data/lib/mailslurp_client/models/dns_lookup_options.rb +25 -15
- data/lib/mailslurp_client/models/dns_lookup_result.rb +24 -43
- data/lib/mailslurp_client/models/dns_lookup_results.rb +1 -6
- data/lib/mailslurp_client/models/domain_dto.rb +60 -81
- data/lib/mailslurp_client/models/domain_name_record.rb +12 -31
- data/lib/mailslurp_client/models/domain_preview.rb +27 -51
- data/lib/mailslurp_client/models/download_attachment_dto.rb +1 -1
- data/lib/mailslurp_client/models/email.rb +135 -136
- data/lib/mailslurp_client/models/email_analysis.rb +29 -29
- data/lib/mailslurp_client/models/email_content_match_result.rb +14 -24
- data/lib/mailslurp_client/models/email_links_result.rb +14 -24
- data/lib/mailslurp_client/models/email_preview.rb +48 -48
- data/lib/mailslurp_client/models/email_projection.rb +67 -87
- data/lib/mailslurp_client/models/email_recipients.rb +17 -16
- data/lib/mailslurp_client/models/email_text_lines_result.rb +14 -24
- data/lib/mailslurp_client/models/email_verification_result.rb +17 -37
- data/lib/mailslurp_client/models/expiration_defaults.rb +17 -27
- data/lib/mailslurp_client/models/expired_inbox_dto.rb +14 -29
- data/lib/mailslurp_client/models/expired_inbox_record_projection.rb +23 -43
- data/lib/mailslurp_client/models/export_link.rb +1 -6
- data/lib/mailslurp_client/models/export_options.rb +2 -7
- data/lib/mailslurp_client/models/flush_expired_inboxes_result.rb +14 -24
- data/lib/mailslurp_client/models/forward_email_options.rb +37 -32
- data/lib/mailslurp_client/models/gravatar_url.rb +14 -24
- data/lib/mailslurp_client/models/group_contacts_dto.rb +14 -24
- data/lib/mailslurp_client/models/group_dto.rb +23 -38
- data/lib/mailslurp_client/models/group_projection.rb +23 -38
- data/lib/mailslurp_client/models/html_validation_result.rb +14 -15
- data/lib/mailslurp_client/models/{inbox.rb → inbox_dto.rb} +48 -58
- data/lib/mailslurp_client/models/inbox_exists_dto.rb +1 -6
- data/lib/mailslurp_client/models/inbox_forwarder_dto.rb +32 -62
- data/lib/mailslurp_client/models/inbox_forwarder_test_options.rb +1 -6
- data/lib/mailslurp_client/models/inbox_forwarder_test_result.rb +14 -24
- data/lib/mailslurp_client/models/inbox_preview.rb +39 -39
- data/lib/mailslurp_client/models/inbox_ruleset_dto.rb +44 -79
- data/lib/mailslurp_client/models/inbox_ruleset_test_options.rb +1 -6
- data/lib/mailslurp_client/models/inbox_ruleset_test_result.rb +14 -19
- data/lib/mailslurp_client/models/inline_object.rb +221 -0
- data/lib/mailslurp_client/models/ip_address_result.rb +1 -11
- data/lib/mailslurp_client/models/json_schema_dto.rb +1 -6
- data/lib/mailslurp_client/models/match_option.rb +8 -3
- data/lib/mailslurp_client/models/match_options.rb +17 -17
- data/lib/mailslurp_client/models/missed_email.rb +68 -103
- data/lib/mailslurp_client/models/missed_email_projection.rb +20 -30
- data/lib/mailslurp_client/models/name_server_record.rb +11 -31
- data/lib/mailslurp_client/models/organization_inbox_projection.rb +45 -45
- data/lib/mailslurp_client/models/page_alias.rb +50 -50
- data/lib/mailslurp_client/models/page_attachment_entity.rb +50 -50
- data/lib/mailslurp_client/models/page_bounced_email.rb +50 -50
- data/lib/mailslurp_client/models/page_bounced_recipients.rb +50 -50
- data/lib/mailslurp_client/models/page_contact_projection.rb +50 -50
- data/lib/mailslurp_client/models/page_email_preview.rb +50 -50
- data/lib/mailslurp_client/models/page_email_projection.rb +50 -50
- data/lib/mailslurp_client/models/page_expired_inbox_record_projection.rb +50 -50
- data/lib/mailslurp_client/models/page_group_projection.rb +50 -50
- data/lib/mailslurp_client/models/page_inbox_forwarder_dto.rb +50 -50
- data/lib/mailslurp_client/models/page_inbox_projection.rb +50 -50
- data/lib/mailslurp_client/models/page_inbox_ruleset_dto.rb +50 -50
- data/lib/mailslurp_client/models/page_missed_email_projection.rb +50 -50
- data/lib/mailslurp_client/models/page_organization_inbox_projection.rb +50 -50
- data/lib/mailslurp_client/models/page_sent_email_projection.rb +50 -50
- data/lib/mailslurp_client/models/page_template_projection.rb +50 -50
- data/lib/mailslurp_client/models/page_thread_projection.rb +50 -50
- data/lib/mailslurp_client/models/page_tracking_pixel_projection.rb +50 -50
- data/lib/mailslurp_client/models/page_unknown_missed_email_projection.rb +50 -50
- data/lib/mailslurp_client/models/page_webhook_projection.rb +50 -50
- data/lib/mailslurp_client/models/page_webhook_result.rb +50 -50
- data/lib/mailslurp_client/models/pageable.rb +29 -29
- data/lib/mailslurp_client/models/raw_email_json.rb +1 -6
- data/lib/mailslurp_client/models/recipient.rb +14 -24
- data/lib/mailslurp_client/models/reply_to_alias_email_options.rb +39 -38
- data/lib/mailslurp_client/models/reply_to_email_options.rb +52 -51
- data/lib/mailslurp_client/models/send_email_options.rb +108 -116
- data/lib/mailslurp_client/models/sender.rb +15 -24
- data/lib/mailslurp_client/models/sent_email_dto.rb +98 -103
- data/lib/mailslurp_client/models/sent_email_projection.rb +64 -103
- data/lib/mailslurp_client/models/set_inbox_favourited_options.rb +1 -1
- data/lib/mailslurp_client/models/simple_send_email_options.rb +25 -25
- data/lib/mailslurp_client/models/sort.rb +14 -14
- data/lib/mailslurp_client/models/template_dto.rb +23 -48
- data/lib/mailslurp_client/models/template_projection.rb +26 -51
- data/lib/mailslurp_client/models/template_variable.rb +1 -11
- data/lib/mailslurp_client/models/test_new_inbox_forwarder_options.rb +1 -11
- data/lib/mailslurp_client/models/test_new_inbox_ruleset_options.rb +1 -11
- data/lib/mailslurp_client/models/thread_projection.rb +58 -93
- data/lib/mailslurp_client/models/tracking_pixel_dto.rb +44 -69
- data/lib/mailslurp_client/models/tracking_pixel_projection.rb +35 -55
- data/lib/mailslurp_client/models/unknown_missed_email_projection.rb +20 -30
- data/lib/mailslurp_client/models/unread_count.rb +1 -6
- data/lib/mailslurp_client/models/unseen_error_count_dto.rb +1 -6
- 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 -6
- 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 +1 -1
- data/lib/mailslurp_client/models/validation_message.rb +2 -6
- data/lib/mailslurp_client/models/verify_email_address_options.rb +1 -6
- data/lib/mailslurp_client/models/wait_for_conditions.rb +49 -59
- data/lib/mailslurp_client/models/webhook_dto.rb +65 -70
- data/lib/mailslurp_client/models/webhook_email_opened_payload.rb +43 -43
- data/lib/mailslurp_client/models/webhook_email_read_payload.rb +50 -50
- data/lib/mailslurp_client/models/webhook_new_attachment_payload.rb +44 -44
- data/lib/mailslurp_client/models/webhook_new_contact_payload.rb +76 -96
- data/lib/mailslurp_client/models/webhook_new_email_payload.rb +85 -85
- data/lib/mailslurp_client/models/webhook_projection.rb +35 -60
- data/lib/mailslurp_client/models/webhook_redrive_result.rb +14 -24
- data/lib/mailslurp_client/models/webhook_result_dto.rb +77 -127
- data/lib/mailslurp_client/models/webhook_test_request.rb +22 -37
- data/lib/mailslurp_client/models/webhook_test_response.rb +14 -14
- data/lib/mailslurp_client/models/webhook_test_result.rb +14 -24
- data/lib/mailslurp_client/version.rb +2 -2
- data/lib/mailslurp_client.rb +4 -2
- metadata +5 -3
@@ -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,68 +202,18 @@ 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 @created_at.nil?
|
206
|
-
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
207
|
-
end
|
208
|
-
|
209
|
-
if @http_method.nil?
|
210
|
-
invalid_properties.push('invalid value for "http_method", http_method cannot be nil.')
|
211
|
-
end
|
212
|
-
|
213
|
-
if @inbox_id.nil?
|
214
|
-
invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
|
215
|
-
end
|
216
|
-
|
217
|
-
if @message_id.nil?
|
218
|
-
invalid_properties.push('invalid value for "message_id", message_id cannot be nil.')
|
219
|
-
end
|
220
|
-
|
221
|
-
if @response_time_millis.nil?
|
222
|
-
invalid_properties.push('invalid value for "response_time_millis", response_time_millis cannot be nil.')
|
223
|
-
end
|
224
|
-
|
225
|
-
if @updated_at.nil?
|
226
|
-
invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
|
227
|
-
end
|
228
|
-
|
229
|
-
if @user_id.nil?
|
230
|
-
invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
|
231
|
-
end
|
232
|
-
|
233
|
-
if @webhook_event.nil?
|
234
|
-
invalid_properties.push('invalid value for "webhook_event", webhook_event cannot be nil.')
|
235
|
-
end
|
236
|
-
|
237
|
-
if @webhook_id.nil?
|
238
|
-
invalid_properties.push('invalid value for "webhook_id", webhook_id cannot be nil.')
|
239
|
-
end
|
240
|
-
|
241
|
-
if @webhook_url.nil?
|
242
|
-
invalid_properties.push('invalid value for "webhook_url", webhook_url cannot be nil.')
|
243
|
-
end
|
244
|
-
|
245
205
|
invalid_properties
|
246
206
|
end
|
247
207
|
|
248
208
|
# Check to see if the all the properties in the model are valid
|
249
209
|
# @return true if the model is valid
|
250
210
|
def valid?
|
251
|
-
return false if @created_at.nil?
|
252
|
-
return false if @http_method.nil?
|
253
211
|
http_method_validator = EnumAttributeValidator.new('String', ["GET", "HEAD", "POST", "PUT", "PATCH", "DELETE", "OPTIONS", "TRACE"])
|
254
212
|
return false unless http_method_validator.valid?(@http_method)
|
255
|
-
return false if @inbox_id.nil?
|
256
|
-
return false if @message_id.nil?
|
257
|
-
return false if @response_time_millis.nil?
|
258
|
-
result_type_validator = EnumAttributeValidator.new('String', ["BAD_RESPONSE", "EXCEPTION", "SUCCESS"])
|
259
|
-
return false unless result_type_validator.valid?(@result_type)
|
260
|
-
return false if @updated_at.nil?
|
261
|
-
return false if @user_id.nil?
|
262
|
-
return false if @webhook_event.nil?
|
263
213
|
webhook_event_validator = EnumAttributeValidator.new('String', ["EMAIL_RECEIVED", "NEW_EMAIL", "NEW_CONTACT", "NEW_ATTACHMENT", "EMAIL_OPENED", "EMAIL_READ"])
|
264
214
|
return false unless webhook_event_validator.valid?(@webhook_event)
|
265
|
-
|
266
|
-
return false
|
215
|
+
result_type_validator = EnumAttributeValidator.new('String', ["BAD_RESPONSE", "EXCEPTION", "SUCCESS"])
|
216
|
+
return false unless result_type_validator.valid?(@result_type)
|
267
217
|
true
|
268
218
|
end
|
269
219
|
|
@@ -277,16 +227,6 @@ module MailSlurpClient
|
|
277
227
|
@http_method = http_method
|
278
228
|
end
|
279
229
|
|
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
230
|
# Custom attribute writer method checking allowed values (enum).
|
291
231
|
# @param [Object] webhook_event Object to be assigned
|
292
232
|
def webhook_event=(webhook_event)
|
@@ -297,27 +237,37 @@ module MailSlurpClient
|
|
297
237
|
@webhook_event = webhook_event
|
298
238
|
end
|
299
239
|
|
240
|
+
# Custom attribute writer method checking allowed values (enum).
|
241
|
+
# @param [Object] result_type Object to be assigned
|
242
|
+
def result_type=(result_type)
|
243
|
+
validator = EnumAttributeValidator.new('String', ["BAD_RESPONSE", "EXCEPTION", "SUCCESS"])
|
244
|
+
unless validator.valid?(result_type)
|
245
|
+
fail ArgumentError, "invalid value for \"result_type\", must be one of #{validator.allowable_values}."
|
246
|
+
end
|
247
|
+
@result_type = result_type
|
248
|
+
end
|
249
|
+
|
300
250
|
# Checks equality by comparing each attribute.
|
301
251
|
# @param [Object] Object to be compared
|
302
252
|
def ==(o)
|
303
253
|
return true if self.equal?(o)
|
304
254
|
self.class == o.class &&
|
305
|
-
created_at == o.created_at &&
|
306
|
-
http_method == o.http_method &&
|
307
255
|
id == o.id &&
|
256
|
+
user_id == o.user_id &&
|
308
257
|
inbox_id == o.inbox_id &&
|
258
|
+
webhook_id == o.webhook_id &&
|
259
|
+
webhook_url == o.webhook_url &&
|
309
260
|
message_id == o.message_id &&
|
310
261
|
redrive_id == o.redrive_id &&
|
311
|
-
|
262
|
+
http_method == o.http_method &&
|
263
|
+
webhook_event == o.webhook_event &&
|
312
264
|
response_status == o.response_status &&
|
313
265
|
response_time_millis == o.response_time_millis &&
|
266
|
+
response_body_extract == o.response_body_extract &&
|
314
267
|
result_type == o.result_type &&
|
315
|
-
|
268
|
+
created_at == o.created_at &&
|
316
269
|
updated_at == o.updated_at &&
|
317
|
-
|
318
|
-
webhook_event == o.webhook_event &&
|
319
|
-
webhook_id == o.webhook_id &&
|
320
|
-
webhook_url == o.webhook_url
|
270
|
+
seen == o.seen
|
321
271
|
end
|
322
272
|
|
323
273
|
# @see the `==` method
|
@@ -329,7 +279,7 @@ module MailSlurpClient
|
|
329
279
|
# Calculates hash code according to all attributes.
|
330
280
|
# @return [Integer] Hash code
|
331
281
|
def hash
|
332
|
-
[
|
282
|
+
[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
283
|
end
|
334
284
|
|
335
285
|
# 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,13 +14,13 @@ require 'date'
|
|
14
14
|
|
15
15
|
module MailSlurpClient
|
16
16
|
class WebhookTestRequest
|
17
|
-
attr_accessor :
|
17
|
+
attr_accessor :url
|
18
18
|
|
19
19
|
attr_accessor :method
|
20
20
|
|
21
|
-
attr_accessor :
|
21
|
+
attr_accessor :headers
|
22
22
|
|
23
|
-
attr_accessor :
|
23
|
+
attr_accessor :payload
|
24
24
|
|
25
25
|
class EnumAttributeValidator
|
26
26
|
attr_reader :datatype
|
@@ -47,20 +47,20 @@ module MailSlurpClient
|
|
47
47
|
# Attribute mapping from ruby-style variable name to JSON key.
|
48
48
|
def self.attribute_map
|
49
49
|
{
|
50
|
-
:'
|
50
|
+
:'url' => :'url',
|
51
51
|
:'method' => :'method',
|
52
|
-
:'
|
53
|
-
:'
|
52
|
+
:'headers' => :'headers',
|
53
|
+
:'payload' => :'payload'
|
54
54
|
}
|
55
55
|
end
|
56
56
|
|
57
57
|
# Attribute type mapping.
|
58
58
|
def self.openapi_types
|
59
59
|
{
|
60
|
-
:'
|
60
|
+
:'url' => :'String',
|
61
61
|
:'method' => :'String',
|
62
|
-
:'
|
63
|
-
:'
|
62
|
+
:'headers' => :'Hash<String, String>',
|
63
|
+
:'payload' => :'String'
|
64
64
|
}
|
65
65
|
end
|
66
66
|
|
@@ -85,22 +85,22 @@ module MailSlurpClient
|
|
85
85
|
h[k.to_sym] = v
|
86
86
|
}
|
87
87
|
|
88
|
-
if attributes.key?(:'
|
89
|
-
|
90
|
-
self.headers = value
|
91
|
-
end
|
88
|
+
if attributes.key?(:'url')
|
89
|
+
self.url = attributes[:'url']
|
92
90
|
end
|
93
91
|
|
94
92
|
if attributes.key?(:'method')
|
95
93
|
self.method = attributes[:'method']
|
96
94
|
end
|
97
95
|
|
98
|
-
if attributes.key?(:'
|
99
|
-
|
96
|
+
if attributes.key?(:'headers')
|
97
|
+
if (value = attributes[:'headers']).is_a?(Hash)
|
98
|
+
self.headers = value
|
99
|
+
end
|
100
100
|
end
|
101
101
|
|
102
|
-
if attributes.key?(:'
|
103
|
-
self.
|
102
|
+
if attributes.key?(:'payload')
|
103
|
+
self.payload = attributes[:'payload']
|
104
104
|
end
|
105
105
|
end
|
106
106
|
|
@@ -108,29 +108,14 @@ module MailSlurpClient
|
|
108
108
|
# @return Array for valid properties with the reasons
|
109
109
|
def list_invalid_properties
|
110
110
|
invalid_properties = Array.new
|
111
|
-
if @headers.nil?
|
112
|
-
invalid_properties.push('invalid value for "headers", headers cannot be nil.')
|
113
|
-
end
|
114
|
-
|
115
|
-
if @method.nil?
|
116
|
-
invalid_properties.push('invalid value for "method", method cannot be nil.')
|
117
|
-
end
|
118
|
-
|
119
|
-
if @url.nil?
|
120
|
-
invalid_properties.push('invalid value for "url", url cannot be nil.')
|
121
|
-
end
|
122
|
-
|
123
111
|
invalid_properties
|
124
112
|
end
|
125
113
|
|
126
114
|
# Check to see if the all the properties in the model are valid
|
127
115
|
# @return true if the model is valid
|
128
116
|
def valid?
|
129
|
-
return false if @headers.nil?
|
130
|
-
return false if @method.nil?
|
131
117
|
method_validator = EnumAttributeValidator.new('String', ["GET", "HEAD", "POST", "PUT", "PATCH", "DELETE", "OPTIONS", "TRACE"])
|
132
118
|
return false unless method_validator.valid?(@method)
|
133
|
-
return false if @url.nil?
|
134
119
|
true
|
135
120
|
end
|
136
121
|
|
@@ -149,10 +134,10 @@ module MailSlurpClient
|
|
149
134
|
def ==(o)
|
150
135
|
return true if self.equal?(o)
|
151
136
|
self.class == o.class &&
|
152
|
-
|
137
|
+
url == o.url &&
|
153
138
|
method == o.method &&
|
154
|
-
|
155
|
-
|
139
|
+
headers == o.headers &&
|
140
|
+
payload == o.payload
|
156
141
|
end
|
157
142
|
|
158
143
|
# @see the `==` method
|
@@ -164,7 +149,7 @@ module MailSlurpClient
|
|
164
149
|
# Calculates hash code according to all attributes.
|
165
150
|
# @return [Integer] Hash code
|
166
151
|
def hash
|
167
|
-
[
|
152
|
+
[url, method, headers, payload].hash
|
168
153
|
end
|
169
154
|
|
170
155
|
# 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,23 +14,23 @@ require 'date'
|
|
14
14
|
|
15
15
|
module MailSlurpClient
|
16
16
|
class WebhookTestResponse
|
17
|
-
attr_accessor :message
|
18
|
-
|
19
17
|
attr_accessor :status_code
|
20
18
|
|
19
|
+
attr_accessor :message
|
20
|
+
|
21
21
|
# Attribute mapping from ruby-style variable name to JSON key.
|
22
22
|
def self.attribute_map
|
23
23
|
{
|
24
|
-
:'
|
25
|
-
:'
|
24
|
+
:'status_code' => :'statusCode',
|
25
|
+
:'message' => :'message'
|
26
26
|
}
|
27
27
|
end
|
28
28
|
|
29
29
|
# Attribute type mapping.
|
30
30
|
def self.openapi_types
|
31
31
|
{
|
32
|
-
:'
|
33
|
-
:'
|
32
|
+
:'status_code' => :'Integer',
|
33
|
+
:'message' => :'String'
|
34
34
|
}
|
35
35
|
end
|
36
36
|
|
@@ -55,13 +55,13 @@ module MailSlurpClient
|
|
55
55
|
h[k.to_sym] = v
|
56
56
|
}
|
57
57
|
|
58
|
-
if attributes.key?(:'message')
|
59
|
-
self.message = attributes[:'message']
|
60
|
-
end
|
61
|
-
|
62
58
|
if attributes.key?(:'status_code')
|
63
59
|
self.status_code = attributes[:'status_code']
|
64
60
|
end
|
61
|
+
|
62
|
+
if attributes.key?(:'message')
|
63
|
+
self.message = attributes[:'message']
|
64
|
+
end
|
65
65
|
end
|
66
66
|
|
67
67
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -82,8 +82,8 @@ module MailSlurpClient
|
|
82
82
|
def ==(o)
|
83
83
|
return true if self.equal?(o)
|
84
84
|
self.class == o.class &&
|
85
|
-
|
86
|
-
|
85
|
+
status_code == o.status_code &&
|
86
|
+
message == o.message
|
87
87
|
end
|
88
88
|
|
89
89
|
# @see the `==` method
|
@@ -95,7 +95,7 @@ module MailSlurpClient
|
|
95
95
|
# Calculates hash code according to all attributes.
|
96
96
|
# @return [Integer] Hash code
|
97
97
|
def hash
|
98
|
-
[
|
98
|
+
[status_code, message].hash
|
99
99
|
end
|
100
100
|
|
101
101
|
# 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
|
|
@@ -17,16 +17,16 @@ module MailSlurpClient
|
|
17
17
|
class WebhookTestResult
|
18
18
|
attr_accessor :message
|
19
19
|
|
20
|
-
attr_accessor :request
|
21
|
-
|
22
20
|
attr_accessor :response
|
23
21
|
|
22
|
+
attr_accessor :request
|
23
|
+
|
24
24
|
# Attribute mapping from ruby-style variable name to JSON key.
|
25
25
|
def self.attribute_map
|
26
26
|
{
|
27
27
|
:'message' => :'message',
|
28
|
-
:'
|
29
|
-
:'
|
28
|
+
:'response' => :'response',
|
29
|
+
:'request' => :'request'
|
30
30
|
}
|
31
31
|
end
|
32
32
|
|
@@ -34,8 +34,8 @@ module MailSlurpClient
|
|
34
34
|
def self.openapi_types
|
35
35
|
{
|
36
36
|
:'message' => :'String',
|
37
|
-
:'
|
38
|
-
:'
|
37
|
+
:'response' => :'WebhookTestResponse',
|
38
|
+
:'request' => :'WebhookTestRequest'
|
39
39
|
}
|
40
40
|
end
|
41
41
|
|
@@ -64,35 +64,25 @@ module MailSlurpClient
|
|
64
64
|
self.message = attributes[:'message']
|
65
65
|
end
|
66
66
|
|
67
|
-
if attributes.key?(:'request')
|
68
|
-
self.request = attributes[:'request']
|
69
|
-
end
|
70
|
-
|
71
67
|
if attributes.key?(:'response')
|
72
68
|
self.response = attributes[:'response']
|
73
69
|
end
|
70
|
+
|
71
|
+
if attributes.key?(:'request')
|
72
|
+
self.request = attributes[:'request']
|
73
|
+
end
|
74
74
|
end
|
75
75
|
|
76
76
|
# Show invalid properties with the reasons. Usually used together with valid?
|
77
77
|
# @return Array for valid properties with the reasons
|
78
78
|
def list_invalid_properties
|
79
79
|
invalid_properties = Array.new
|
80
|
-
if @request.nil?
|
81
|
-
invalid_properties.push('invalid value for "request", request cannot be nil.')
|
82
|
-
end
|
83
|
-
|
84
|
-
if @response.nil?
|
85
|
-
invalid_properties.push('invalid value for "response", response cannot be nil.')
|
86
|
-
end
|
87
|
-
|
88
80
|
invalid_properties
|
89
81
|
end
|
90
82
|
|
91
83
|
# Check to see if the all the properties in the model are valid
|
92
84
|
# @return true if the model is valid
|
93
85
|
def valid?
|
94
|
-
return false if @request.nil?
|
95
|
-
return false if @response.nil?
|
96
86
|
true
|
97
87
|
end
|
98
88
|
|
@@ -102,8 +92,8 @@ module MailSlurpClient
|
|
102
92
|
return true if self.equal?(o)
|
103
93
|
self.class == o.class &&
|
104
94
|
message == o.message &&
|
105
|
-
|
106
|
-
|
95
|
+
response == o.response &&
|
96
|
+
request == o.request
|
107
97
|
end
|
108
98
|
|
109
99
|
# @see the `==` method
|
@@ -115,7 +105,7 @@ module MailSlurpClient
|
|
115
105
|
# Calculates hash code according to all attributes.
|
116
106
|
# @return [Integer] Hash code
|
117
107
|
def hash
|
118
|
-
[message,
|
108
|
+
[message, response, request].hash
|
119
109
|
end
|
120
110
|
|
121
111
|
# Builds the object from hash
|
@@ -4,12 +4,12 @@
|
|
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
|
|
11
11
|
=end
|
12
12
|
|
13
13
|
module MailSlurpClient
|
14
|
-
VERSION = '15.0.
|
14
|
+
VERSION = '15.0.6'
|
15
15
|
end
|