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
|
|
@@ -14,20 +14,20 @@ require 'date'
|
|
14
14
|
|
15
15
|
module MailSlurpClient
|
16
16
|
class InboxRulesetDto
|
17
|
-
attr_accessor :action
|
18
|
-
|
19
|
-
attr_accessor :created_at
|
20
|
-
|
21
|
-
attr_accessor :handler
|
22
|
-
|
23
17
|
attr_accessor :id
|
24
18
|
|
25
19
|
attr_accessor :inbox_id
|
26
20
|
|
27
21
|
attr_accessor :scope
|
28
22
|
|
23
|
+
attr_accessor :action
|
24
|
+
|
29
25
|
attr_accessor :target
|
30
26
|
|
27
|
+
attr_accessor :handler
|
28
|
+
|
29
|
+
attr_accessor :created_at
|
30
|
+
|
31
31
|
class EnumAttributeValidator
|
32
32
|
attr_reader :datatype
|
33
33
|
attr_reader :allowable_values
|
@@ -53,26 +53,26 @@ module MailSlurpClient
|
|
53
53
|
# Attribute mapping from ruby-style variable name to JSON key.
|
54
54
|
def self.attribute_map
|
55
55
|
{
|
56
|
-
:'action' => :'action',
|
57
|
-
:'created_at' => :'createdAt',
|
58
|
-
:'handler' => :'handler',
|
59
56
|
:'id' => :'id',
|
60
57
|
:'inbox_id' => :'inboxId',
|
61
58
|
:'scope' => :'scope',
|
62
|
-
:'
|
59
|
+
:'action' => :'action',
|
60
|
+
:'target' => :'target',
|
61
|
+
:'handler' => :'handler',
|
62
|
+
:'created_at' => :'createdAt'
|
63
63
|
}
|
64
64
|
end
|
65
65
|
|
66
66
|
# Attribute type mapping.
|
67
67
|
def self.openapi_types
|
68
68
|
{
|
69
|
-
:'action' => :'String',
|
70
|
-
:'created_at' => :'DateTime',
|
71
|
-
:'handler' => :'String',
|
72
69
|
:'id' => :'String',
|
73
70
|
:'inbox_id' => :'String',
|
74
71
|
:'scope' => :'String',
|
75
|
-
:'
|
72
|
+
:'action' => :'String',
|
73
|
+
:'target' => :'String',
|
74
|
+
:'handler' => :'String',
|
75
|
+
:'created_at' => :'DateTime'
|
76
76
|
}
|
77
77
|
end
|
78
78
|
|
@@ -97,18 +97,6 @@ module MailSlurpClient
|
|
97
97
|
h[k.to_sym] = v
|
98
98
|
}
|
99
99
|
|
100
|
-
if attributes.key?(:'action')
|
101
|
-
self.action = attributes[:'action']
|
102
|
-
end
|
103
|
-
|
104
|
-
if attributes.key?(:'created_at')
|
105
|
-
self.created_at = attributes[:'created_at']
|
106
|
-
end
|
107
|
-
|
108
|
-
if attributes.key?(:'handler')
|
109
|
-
self.handler = attributes[:'handler']
|
110
|
-
end
|
111
|
-
|
112
100
|
if attributes.key?(:'id')
|
113
101
|
self.id = attributes[:'id']
|
114
102
|
end
|
@@ -121,27 +109,27 @@ module MailSlurpClient
|
|
121
109
|
self.scope = attributes[:'scope']
|
122
110
|
end
|
123
111
|
|
112
|
+
if attributes.key?(:'action')
|
113
|
+
self.action = attributes[:'action']
|
114
|
+
end
|
115
|
+
|
124
116
|
if attributes.key?(:'target')
|
125
117
|
self.target = attributes[:'target']
|
126
118
|
end
|
119
|
+
|
120
|
+
if attributes.key?(:'handler')
|
121
|
+
self.handler = attributes[:'handler']
|
122
|
+
end
|
123
|
+
|
124
|
+
if attributes.key?(:'created_at')
|
125
|
+
self.created_at = attributes[:'created_at']
|
126
|
+
end
|
127
127
|
end
|
128
128
|
|
129
129
|
# Show invalid properties with the reasons. Usually used together with valid?
|
130
130
|
# @return Array for valid properties with the reasons
|
131
131
|
def list_invalid_properties
|
132
132
|
invalid_properties = Array.new
|
133
|
-
if @action.nil?
|
134
|
-
invalid_properties.push('invalid value for "action", action cannot be nil.')
|
135
|
-
end
|
136
|
-
|
137
|
-
if @created_at.nil?
|
138
|
-
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
139
|
-
end
|
140
|
-
|
141
|
-
if @handler.nil?
|
142
|
-
invalid_properties.push('invalid value for "handler", handler cannot be nil.')
|
143
|
-
end
|
144
|
-
|
145
133
|
if @id.nil?
|
146
134
|
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
147
135
|
end
|
@@ -154,32 +142,54 @@ module MailSlurpClient
|
|
154
142
|
invalid_properties.push('invalid value for "scope", scope cannot be nil.')
|
155
143
|
end
|
156
144
|
|
145
|
+
if @action.nil?
|
146
|
+
invalid_properties.push('invalid value for "action", action cannot be nil.')
|
147
|
+
end
|
148
|
+
|
157
149
|
if @target.nil?
|
158
150
|
invalid_properties.push('invalid value for "target", target cannot be nil.')
|
159
151
|
end
|
160
152
|
|
153
|
+
if @handler.nil?
|
154
|
+
invalid_properties.push('invalid value for "handler", handler cannot be nil.')
|
155
|
+
end
|
156
|
+
|
157
|
+
if @created_at.nil?
|
158
|
+
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
159
|
+
end
|
160
|
+
|
161
161
|
invalid_properties
|
162
162
|
end
|
163
163
|
|
164
164
|
# Check to see if the all the properties in the model are valid
|
165
165
|
# @return true if the model is valid
|
166
166
|
def valid?
|
167
|
-
return false if @action.nil?
|
168
|
-
action_validator = EnumAttributeValidator.new('String', ["BLOCK", "ALLOW", "FILTER_REMOVE"])
|
169
|
-
return false unless action_validator.valid?(@action)
|
170
|
-
return false if @created_at.nil?
|
171
|
-
return false if @handler.nil?
|
172
|
-
handler_validator = EnumAttributeValidator.new('String', ["EXCEPTION"])
|
173
|
-
return false unless handler_validator.valid?(@handler)
|
174
167
|
return false if @id.nil?
|
175
168
|
return false if @inbox_id.nil?
|
176
169
|
return false if @scope.nil?
|
177
170
|
scope_validator = EnumAttributeValidator.new('String', ["RECEIVING_EMAILS", "SENDING_EMAILS"])
|
178
171
|
return false unless scope_validator.valid?(@scope)
|
172
|
+
return false if @action.nil?
|
173
|
+
action_validator = EnumAttributeValidator.new('String', ["BLOCK", "ALLOW", "FILTER_REMOVE"])
|
174
|
+
return false unless action_validator.valid?(@action)
|
179
175
|
return false if @target.nil?
|
176
|
+
return false if @handler.nil?
|
177
|
+
handler_validator = EnumAttributeValidator.new('String', ["EXCEPTION"])
|
178
|
+
return false unless handler_validator.valid?(@handler)
|
179
|
+
return false if @created_at.nil?
|
180
180
|
true
|
181
181
|
end
|
182
182
|
|
183
|
+
# Custom attribute writer method checking allowed values (enum).
|
184
|
+
# @param [Object] scope Object to be assigned
|
185
|
+
def scope=(scope)
|
186
|
+
validator = EnumAttributeValidator.new('String', ["RECEIVING_EMAILS", "SENDING_EMAILS"])
|
187
|
+
unless validator.valid?(scope)
|
188
|
+
fail ArgumentError, "invalid value for \"scope\", must be one of #{validator.allowable_values}."
|
189
|
+
end
|
190
|
+
@scope = scope
|
191
|
+
end
|
192
|
+
|
183
193
|
# Custom attribute writer method checking allowed values (enum).
|
184
194
|
# @param [Object] action Object to be assigned
|
185
195
|
def action=(action)
|
@@ -200,28 +210,18 @@ module MailSlurpClient
|
|
200
210
|
@handler = handler
|
201
211
|
end
|
202
212
|
|
203
|
-
# Custom attribute writer method checking allowed values (enum).
|
204
|
-
# @param [Object] scope Object to be assigned
|
205
|
-
def scope=(scope)
|
206
|
-
validator = EnumAttributeValidator.new('String', ["RECEIVING_EMAILS", "SENDING_EMAILS"])
|
207
|
-
unless validator.valid?(scope)
|
208
|
-
fail ArgumentError, "invalid value for \"scope\", must be one of #{validator.allowable_values}."
|
209
|
-
end
|
210
|
-
@scope = scope
|
211
|
-
end
|
212
|
-
|
213
213
|
# Checks equality by comparing each attribute.
|
214
214
|
# @param [Object] Object to be compared
|
215
215
|
def ==(o)
|
216
216
|
return true if self.equal?(o)
|
217
217
|
self.class == o.class &&
|
218
|
-
action == o.action &&
|
219
|
-
created_at == o.created_at &&
|
220
|
-
handler == o.handler &&
|
221
218
|
id == o.id &&
|
222
219
|
inbox_id == o.inbox_id &&
|
223
220
|
scope == o.scope &&
|
224
|
-
|
221
|
+
action == o.action &&
|
222
|
+
target == o.target &&
|
223
|
+
handler == o.handler &&
|
224
|
+
created_at == o.created_at
|
225
225
|
end
|
226
226
|
|
227
227
|
# @see the `==` method
|
@@ -233,7 +233,7 @@ module MailSlurpClient
|
|
233
233
|
# Calculates hash code according to all attributes.
|
234
234
|
# @return [Integer] Hash code
|
235
235
|
def hash
|
236
|
-
[
|
236
|
+
[id, inbox_id, scope, action, target, handler, created_at].hash
|
237
237
|
end
|
238
238
|
|
239
239
|
# 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
|
|
@@ -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,24 +14,24 @@ require 'date'
|
|
14
14
|
|
15
15
|
module MailSlurpClient
|
16
16
|
class InboxRulesetTestResult
|
17
|
-
attr_accessor :matches
|
18
|
-
|
19
17
|
# Map of inbox ruleset ID to boolean of if target matches
|
20
18
|
attr_accessor :ruleset_matches
|
21
19
|
|
20
|
+
attr_accessor :matches
|
21
|
+
|
22
22
|
# Attribute mapping from ruby-style variable name to JSON key.
|
23
23
|
def self.attribute_map
|
24
24
|
{
|
25
|
-
:'
|
26
|
-
:'
|
25
|
+
:'ruleset_matches' => :'rulesetMatches',
|
26
|
+
:'matches' => :'matches'
|
27
27
|
}
|
28
28
|
end
|
29
29
|
|
30
30
|
# Attribute type mapping.
|
31
31
|
def self.openapi_types
|
32
32
|
{
|
33
|
-
:'
|
34
|
-
:'
|
33
|
+
:'ruleset_matches' => :'Hash<String, Boolean>',
|
34
|
+
:'matches' => :'Boolean'
|
35
35
|
}
|
36
36
|
end
|
37
37
|
|
@@ -56,21 +56,25 @@ module MailSlurpClient
|
|
56
56
|
h[k.to_sym] = v
|
57
57
|
}
|
58
58
|
|
59
|
-
if attributes.key?(:'matches')
|
60
|
-
self.matches = attributes[:'matches']
|
61
|
-
end
|
62
|
-
|
63
59
|
if attributes.key?(:'ruleset_matches')
|
64
60
|
if (value = attributes[:'ruleset_matches']).is_a?(Hash)
|
65
61
|
self.ruleset_matches = value
|
66
62
|
end
|
67
63
|
end
|
64
|
+
|
65
|
+
if attributes.key?(:'matches')
|
66
|
+
self.matches = attributes[:'matches']
|
67
|
+
end
|
68
68
|
end
|
69
69
|
|
70
70
|
# Show invalid properties with the reasons. Usually used together with valid?
|
71
71
|
# @return Array for valid properties with the reasons
|
72
72
|
def list_invalid_properties
|
73
73
|
invalid_properties = Array.new
|
74
|
+
if @ruleset_matches.nil?
|
75
|
+
invalid_properties.push('invalid value for "ruleset_matches", ruleset_matches cannot be nil.')
|
76
|
+
end
|
77
|
+
|
74
78
|
if @matches.nil?
|
75
79
|
invalid_properties.push('invalid value for "matches", matches cannot be nil.')
|
76
80
|
end
|
@@ -81,6 +85,7 @@ module MailSlurpClient
|
|
81
85
|
# Check to see if the all the properties in the model are valid
|
82
86
|
# @return true if the model is valid
|
83
87
|
def valid?
|
88
|
+
return false if @ruleset_matches.nil?
|
84
89
|
return false if @matches.nil?
|
85
90
|
true
|
86
91
|
end
|
@@ -90,8 +95,8 @@ module MailSlurpClient
|
|
90
95
|
def ==(o)
|
91
96
|
return true if self.equal?(o)
|
92
97
|
self.class == o.class &&
|
93
|
-
|
94
|
-
|
98
|
+
ruleset_matches == o.ruleset_matches &&
|
99
|
+
matches == o.matches
|
95
100
|
end
|
96
101
|
|
97
102
|
# @see the `==` method
|
@@ -103,7 +108,7 @@ module MailSlurpClient
|
|
103
108
|
# Calculates hash code according to all attributes.
|
104
109
|
# @return [Integer] Hash code
|
105
110
|
def hash
|
106
|
-
[
|
111
|
+
[ruleset_matches, matches].hash
|
107
112
|
end
|
108
113
|
|
109
114
|
# Builds the object from hash
|
@@ -0,0 +1,221 @@
|
|
1
|
+
=begin
|
2
|
+
#MailSlurp API
|
3
|
+
|
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
|
+
|
6
|
+
The version of the OpenAPI document: 6.5.2
|
7
|
+
Contact: contact@mailslurp.dev
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 4.3.1
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
|
15
|
+
module MailSlurpClient
|
16
|
+
class InlineObject
|
17
|
+
# Optional content type header of attachment
|
18
|
+
attr_accessor :content_type_header
|
19
|
+
|
20
|
+
attr_accessor :file
|
21
|
+
|
22
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
23
|
+
def self.attribute_map
|
24
|
+
{
|
25
|
+
:'content_type_header' => :'contentTypeHeader',
|
26
|
+
:'file' => :'file'
|
27
|
+
}
|
28
|
+
end
|
29
|
+
|
30
|
+
# Attribute type mapping.
|
31
|
+
def self.openapi_types
|
32
|
+
{
|
33
|
+
:'content_type_header' => :'String',
|
34
|
+
:'file' => :'File'
|
35
|
+
}
|
36
|
+
end
|
37
|
+
|
38
|
+
# List of attributes with nullable: true
|
39
|
+
def self.openapi_nullable
|
40
|
+
Set.new([
|
41
|
+
])
|
42
|
+
end
|
43
|
+
|
44
|
+
# Initializes the object
|
45
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
46
|
+
def initialize(attributes = {})
|
47
|
+
if (!attributes.is_a?(Hash))
|
48
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `MailSlurpClient::InlineObject` initialize method"
|
49
|
+
end
|
50
|
+
|
51
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
52
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
53
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
54
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `MailSlurpClient::InlineObject`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
55
|
+
end
|
56
|
+
h[k.to_sym] = v
|
57
|
+
}
|
58
|
+
|
59
|
+
if attributes.key?(:'content_type_header')
|
60
|
+
self.content_type_header = attributes[:'content_type_header']
|
61
|
+
end
|
62
|
+
|
63
|
+
if attributes.key?(:'file')
|
64
|
+
self.file = attributes[:'file']
|
65
|
+
end
|
66
|
+
end
|
67
|
+
|
68
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
69
|
+
# @return Array for valid properties with the reasons
|
70
|
+
def list_invalid_properties
|
71
|
+
invalid_properties = Array.new
|
72
|
+
if @file.nil?
|
73
|
+
invalid_properties.push('invalid value for "file", file cannot be nil.')
|
74
|
+
end
|
75
|
+
|
76
|
+
invalid_properties
|
77
|
+
end
|
78
|
+
|
79
|
+
# Check to see if the all the properties in the model are valid
|
80
|
+
# @return true if the model is valid
|
81
|
+
def valid?
|
82
|
+
return false if @file.nil?
|
83
|
+
true
|
84
|
+
end
|
85
|
+
|
86
|
+
# Checks equality by comparing each attribute.
|
87
|
+
# @param [Object] Object to be compared
|
88
|
+
def ==(o)
|
89
|
+
return true if self.equal?(o)
|
90
|
+
self.class == o.class &&
|
91
|
+
content_type_header == o.content_type_header &&
|
92
|
+
file == o.file
|
93
|
+
end
|
94
|
+
|
95
|
+
# @see the `==` method
|
96
|
+
# @param [Object] Object to be compared
|
97
|
+
def eql?(o)
|
98
|
+
self == o
|
99
|
+
end
|
100
|
+
|
101
|
+
# Calculates hash code according to all attributes.
|
102
|
+
# @return [Integer] Hash code
|
103
|
+
def hash
|
104
|
+
[content_type_header, file].hash
|
105
|
+
end
|
106
|
+
|
107
|
+
# Builds the object from hash
|
108
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
109
|
+
# @return [Object] Returns the model itself
|
110
|
+
def self.build_from_hash(attributes)
|
111
|
+
new.build_from_hash(attributes)
|
112
|
+
end
|
113
|
+
|
114
|
+
# Builds the object from hash
|
115
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
116
|
+
# @return [Object] Returns the model itself
|
117
|
+
def build_from_hash(attributes)
|
118
|
+
return nil unless attributes.is_a?(Hash)
|
119
|
+
self.class.openapi_types.each_pair do |key, type|
|
120
|
+
if type =~ /\AArray<(.*)>/i
|
121
|
+
# check to ensure the input is an array given that the attribute
|
122
|
+
# is documented as an array but the input is not
|
123
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
124
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
125
|
+
end
|
126
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
127
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
128
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
129
|
+
end
|
130
|
+
|
131
|
+
self
|
132
|
+
end
|
133
|
+
|
134
|
+
# Deserializes the data based on type
|
135
|
+
# @param string type Data type
|
136
|
+
# @param string value Value to be deserialized
|
137
|
+
# @return [Object] Deserialized data
|
138
|
+
def _deserialize(type, value)
|
139
|
+
case type.to_sym
|
140
|
+
when :DateTime
|
141
|
+
DateTime.parse(value)
|
142
|
+
when :Date
|
143
|
+
Date.parse(value)
|
144
|
+
when :String
|
145
|
+
value.to_s
|
146
|
+
when :Integer
|
147
|
+
value.to_i
|
148
|
+
when :Float
|
149
|
+
value.to_f
|
150
|
+
when :Boolean
|
151
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
152
|
+
true
|
153
|
+
else
|
154
|
+
false
|
155
|
+
end
|
156
|
+
when :Object
|
157
|
+
# generic object (usually a Hash), return directly
|
158
|
+
value
|
159
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
160
|
+
inner_type = Regexp.last_match[:inner_type]
|
161
|
+
value.map { |v| _deserialize(inner_type, v) }
|
162
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
163
|
+
k_type = Regexp.last_match[:k_type]
|
164
|
+
v_type = Regexp.last_match[:v_type]
|
165
|
+
{}.tap do |hash|
|
166
|
+
value.each do |k, v|
|
167
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
168
|
+
end
|
169
|
+
end
|
170
|
+
else # model
|
171
|
+
MailSlurpClient.const_get(type).build_from_hash(value)
|
172
|
+
end
|
173
|
+
end
|
174
|
+
|
175
|
+
# Returns the string representation of the object
|
176
|
+
# @return [String] String presentation of the object
|
177
|
+
def to_s
|
178
|
+
to_hash.to_s
|
179
|
+
end
|
180
|
+
|
181
|
+
# to_body is an alias to to_hash (backward compatibility)
|
182
|
+
# @return [Hash] Returns the object in the form of hash
|
183
|
+
def to_body
|
184
|
+
to_hash
|
185
|
+
end
|
186
|
+
|
187
|
+
# Returns the object in the form of hash
|
188
|
+
# @return [Hash] Returns the object in the form of hash
|
189
|
+
def to_hash
|
190
|
+
hash = {}
|
191
|
+
self.class.attribute_map.each_pair do |attr, param|
|
192
|
+
value = self.send(attr)
|
193
|
+
if value.nil?
|
194
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
195
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
196
|
+
end
|
197
|
+
|
198
|
+
hash[param] = _to_hash(value)
|
199
|
+
end
|
200
|
+
hash
|
201
|
+
end
|
202
|
+
|
203
|
+
# Outputs non-array value in the form of hash
|
204
|
+
# For object, use to_hash. Otherwise, just return the value
|
205
|
+
# @param [Object] value Any valid value
|
206
|
+
# @return [Hash] Returns the value in the form of hash
|
207
|
+
def _to_hash(value)
|
208
|
+
if value.is_a?(Array)
|
209
|
+
value.compact.map { |v| _to_hash(v) }
|
210
|
+
elsif value.is_a?(Hash)
|
211
|
+
{}.tap do |hash|
|
212
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
213
|
+
end
|
214
|
+
elsif value.respond_to? :to_hash
|
215
|
+
value.to_hash
|
216
|
+
else
|
217
|
+
value
|
218
|
+
end
|
219
|
+
end
|
220
|
+
end
|
221
|
+
end
|
@@ -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
|
|
@@ -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
|
|
@@ -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,10 +15,10 @@ require 'date'
|
|
15
15
|
module MailSlurpClient
|
16
16
|
# Options for matching emails in an inbox. Each match option object contains a `field`, `should` and `value` property. Together they form logical conditions such as `SUBJECT` should `CONTAIN` value.
|
17
17
|
class MatchOption
|
18
|
-
#
|
18
|
+
# Fields of an email object that can be used to filter results
|
19
19
|
attr_accessor :field
|
20
20
|
|
21
|
-
#
|
21
|
+
# How the value of the email field specified should be compared to the value given in the match options.
|
22
22
|
attr_accessor :should
|
23
23
|
|
24
24
|
# The value you wish to compare with the value of the field specified using the `should` value passed. For example `BODY` should `CONTAIN` a value passed.
|
@@ -102,16 +102,31 @@ module MailSlurpClient
|
|
102
102
|
# @return Array for valid properties with the reasons
|
103
103
|
def list_invalid_properties
|
104
104
|
invalid_properties = Array.new
|
105
|
+
if @field.nil?
|
106
|
+
invalid_properties.push('invalid value for "field", field cannot be nil.')
|
107
|
+
end
|
108
|
+
|
109
|
+
if @should.nil?
|
110
|
+
invalid_properties.push('invalid value for "should", should cannot be nil.')
|
111
|
+
end
|
112
|
+
|
113
|
+
if @value.nil?
|
114
|
+
invalid_properties.push('invalid value for "value", value cannot be nil.')
|
115
|
+
end
|
116
|
+
|
105
117
|
invalid_properties
|
106
118
|
end
|
107
119
|
|
108
120
|
# Check to see if the all the properties in the model are valid
|
109
121
|
# @return true if the model is valid
|
110
122
|
def valid?
|
123
|
+
return false if @field.nil?
|
111
124
|
field_validator = EnumAttributeValidator.new('String', ["SUBJECT", "TO", "BCC", "CC", "FROM"])
|
112
125
|
return false unless field_validator.valid?(@field)
|
126
|
+
return false if @should.nil?
|
113
127
|
should_validator = EnumAttributeValidator.new('String', ["CONTAIN", "EQUAL"])
|
114
128
|
return false unless should_validator.valid?(@should)
|
129
|
+
return false if @value.nil?
|
115
130
|
true
|
116
131
|
end
|
117
132
|
|