mailslurp_client 17.3.0 → 17.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/mailslurp_client/api/attachment_controller_api.rb +5 -5
- data/lib/mailslurp_client/api/email_controller_api.rb +2 -2
- data/lib/mailslurp_client/api/email_verification_controller_api.rb +64 -0
- data/lib/mailslurp_client/api/inbox_controller_api.rb +229 -0
- data/lib/mailslurp_client/api/phone_controller_api.rb +334 -0
- data/lib/mailslurp_client/models/abstract_webhook_payload.rb +13 -13
- data/lib/mailslurp_client/models/alias_projection.rb +29 -29
- data/lib/mailslurp_client/models/alias_thread_projection.rb +16 -16
- data/lib/mailslurp_client/models/attachment_projection.rb +29 -29
- data/lib/mailslurp_client/models/bounce_recipient_projection.rb +15 -15
- data/lib/mailslurp_client/models/connector_event_projection.rb +30 -30
- data/lib/mailslurp_client/models/connector_projection.rb +10 -10
- data/lib/mailslurp_client/models/contact_projection.rb +15 -15
- data/lib/mailslurp_client/models/create_inbox_forwarder_options.rb +58 -29
- data/lib/mailslurp_client/models/create_inbox_replier_options.rb +39 -33
- data/lib/mailslurp_client/models/create_phone_number_options.rb +37 -4
- data/lib/mailslurp_client/models/email_intelligence_list_result.rb +285 -0
- data/lib/mailslurp_client/models/email_intelligence_options.rb +308 -0
- data/lib/mailslurp_client/models/email_intelligence_result_dto.rb +256 -0
- data/lib/mailslurp_client/models/email_intelligence_score_breakdown_dto.rb +296 -0
- data/lib/mailslurp_client/models/email_intelligence_signals_dto.rb +352 -0
- data/lib/mailslurp_client/models/email_intelligence_tests_options.rb +253 -0
- data/lib/mailslurp_client/models/email_thread_projection.rb +16 -16
- data/lib/mailslurp_client/models/entity_favourite_item_projection.rb +13 -13
- data/lib/mailslurp_client/models/expired_inbox_record_projection.rb +15 -15
- data/lib/mailslurp_client/models/extract_attachment_text_options.rb +1 -1
- data/lib/mailslurp_client/models/extract_attachment_text_result.rb +1 -1
- data/lib/mailslurp_client/models/group_projection.rb +14 -14
- data/lib/mailslurp_client/models/guest_portal_user_projection.rb +24 -24
- data/lib/mailslurp_client/models/import_email_options.rb +269 -0
- data/lib/mailslurp_client/models/inbox_automation_match_option.rb +308 -0
- data/lib/mailslurp_client/models/inbox_automation_match_options.rb +273 -0
- data/lib/mailslurp_client/models/inbox_forwarder_dto.rb +65 -17
- data/lib/mailslurp_client/models/inbox_forwarder_event_projection.rb +16 -16
- data/lib/mailslurp_client/models/inbox_forwarder_test_options.rb +17 -9
- data/lib/mailslurp_client/models/inbox_replier_dto.rb +41 -16
- data/lib/mailslurp_client/models/inbox_replier_event_projection.rb +16 -16
- data/lib/mailslurp_client/models/inline_object.rb +12 -58
- data/lib/mailslurp_client/models/inline_object1.rb +58 -12
- data/lib/mailslurp_client/models/inline_object2.rb +211 -0
- data/lib/mailslurp_client/models/opt_in_identity_projection.rb +18 -18
- data/lib/mailslurp_client/models/page_ai_transform_mapping_projection.rb +24 -24
- data/lib/mailslurp_client/models/page_ai_transform_projection.rb +24 -24
- data/lib/mailslurp_client/models/page_ai_transform_result_projection.rb +24 -24
- data/lib/mailslurp_client/models/page_alias.rb +24 -24
- data/lib/mailslurp_client/models/page_alias_thread_projection.rb +24 -24
- data/lib/mailslurp_client/models/page_attachment_entity.rb +24 -24
- data/lib/mailslurp_client/models/page_bounced_email.rb +24 -24
- data/lib/mailslurp_client/models/page_bounced_recipients.rb +24 -24
- data/lib/mailslurp_client/models/page_complaint.rb +24 -24
- data/lib/mailslurp_client/models/page_connector.rb +24 -24
- data/lib/mailslurp_client/models/page_connector_events.rb +24 -24
- data/lib/mailslurp_client/models/page_contact_projection.rb +24 -24
- data/lib/mailslurp_client/models/page_delivery_status.rb +24 -24
- data/lib/mailslurp_client/models/page_device_preview_run_projection.rb +24 -24
- data/lib/mailslurp_client/models/page_email_preview.rb +24 -24
- data/lib/mailslurp_client/models/page_email_projection.rb +24 -24
- data/lib/mailslurp_client/models/page_email_thread_projection.rb +24 -24
- data/lib/mailslurp_client/models/page_email_validation_request.rb +24 -24
- data/lib/mailslurp_client/models/page_entity_automation_items.rb +24 -24
- data/lib/mailslurp_client/models/page_entity_event_items.rb +24 -24
- data/lib/mailslurp_client/models/page_entity_favourite_items.rb +24 -24
- data/lib/mailslurp_client/models/page_expired_inbox_record_projection.rb +24 -24
- data/lib/mailslurp_client/models/page_group_projection.rb +24 -24
- data/lib/mailslurp_client/models/page_guest_portal_users.rb +24 -24
- data/lib/mailslurp_client/models/page_inbox_forwarder_dto.rb +24 -24
- data/lib/mailslurp_client/models/page_inbox_forwarder_events.rb +24 -24
- data/lib/mailslurp_client/models/page_inbox_projection.rb +24 -24
- data/lib/mailslurp_client/models/page_inbox_replier_dto.rb +24 -24
- data/lib/mailslurp_client/models/page_inbox_replier_events.rb +24 -24
- data/lib/mailslurp_client/models/page_inbox_tags.rb +24 -24
- data/lib/mailslurp_client/models/page_list_unsubscribe_recipients.rb +24 -24
- data/lib/mailslurp_client/models/page_missed_email_projection.rb +24 -24
- data/lib/mailslurp_client/models/page_missed_sms_projection.rb +24 -24
- data/lib/mailslurp_client/models/page_opt_in_identity_projection.rb +24 -24
- data/lib/mailslurp_client/models/page_organization_inbox_projection.rb +24 -24
- data/lib/mailslurp_client/models/page_phone_message_thread_item_projection.rb +24 -24
- data/lib/mailslurp_client/models/page_phone_message_thread_projection.rb +24 -24
- data/lib/mailslurp_client/models/page_phone_number_projection.rb +24 -24
- data/lib/mailslurp_client/models/page_phone_number_release_projection.rb +24 -24
- data/lib/mailslurp_client/models/page_plus_address_projection.rb +24 -24
- data/lib/mailslurp_client/models/page_reputation_items.rb +24 -24
- data/lib/mailslurp_client/models/page_ruleset_dto.rb +24 -24
- data/lib/mailslurp_client/models/page_scheduled_jobs.rb +24 -24
- data/lib/mailslurp_client/models/page_sent_email_projection.rb +24 -24
- data/lib/mailslurp_client/models/page_sent_email_with_queue_projection.rb +24 -24
- data/lib/mailslurp_client/models/page_sent_sms_projection.rb +24 -24
- data/lib/mailslurp_client/models/page_sms_projection.rb +24 -24
- data/lib/mailslurp_client/models/page_template_projection.rb +24 -24
- data/lib/mailslurp_client/models/page_tracking_pixel_projection.rb +24 -24
- data/lib/mailslurp_client/models/page_unknown_missed_email_projection.rb +24 -24
- data/lib/mailslurp_client/models/page_webhook_endpoint_projection.rb +24 -24
- data/lib/mailslurp_client/models/page_webhook_projection.rb +24 -24
- data/lib/mailslurp_client/models/page_webhook_result.rb +24 -24
- data/lib/mailslurp_client/models/pageable_object.rb +13 -13
- data/lib/mailslurp_client/models/phone_message_thread_item_projection.rb +15 -15
- data/lib/mailslurp_client/models/phone_number_dto.rb +17 -1
- data/lib/mailslurp_client/models/phone_number_tags_options.rb +213 -0
- data/lib/mailslurp_client/models/plus_address_projection.rb +15 -15
- data/lib/mailslurp_client/models/reputation_item_projection.rb +13 -13
- data/lib/mailslurp_client/models/template_projection.rb +15 -15
- data/lib/mailslurp_client/models/update_inbox_replier_options.rb +39 -33
- data/lib/mailslurp_client/models/webhook_projection.rb +15 -15
- data/lib/mailslurp_client/version.rb +1 -1
- data/lib/mailslurp_client.rb +11 -0
- metadata +13 -2
|
@@ -43,6 +43,11 @@ module MailSlurpClient
|
|
|
43
43
|
|
|
44
44
|
attr_accessor :created_at
|
|
45
45
|
|
|
46
|
+
# Comparison mode for inbox automation matching.
|
|
47
|
+
attr_accessor :should
|
|
48
|
+
|
|
49
|
+
attr_accessor :match_options
|
|
50
|
+
|
|
46
51
|
class EnumAttributeValidator
|
|
47
52
|
attr_reader :datatype
|
|
48
53
|
attr_reader :allowable_values
|
|
@@ -81,7 +86,9 @@ module MailSlurpClient
|
|
|
81
86
|
:'template_id' => :'templateId',
|
|
82
87
|
:'template_variables' => :'templateVariables',
|
|
83
88
|
:'ignore_reply_to' => :'ignoreReplyTo',
|
|
84
|
-
:'created_at' => :'createdAt'
|
|
89
|
+
:'created_at' => :'createdAt',
|
|
90
|
+
:'should' => :'should',
|
|
91
|
+
:'match_options' => :'matchOptions'
|
|
85
92
|
}
|
|
86
93
|
end
|
|
87
94
|
|
|
@@ -101,7 +108,9 @@ module MailSlurpClient
|
|
|
101
108
|
:'template_id' => :'String',
|
|
102
109
|
:'template_variables' => :'Hash<String, Object>',
|
|
103
110
|
:'ignore_reply_to' => :'Boolean',
|
|
104
|
-
:'created_at' => :'DateTime'
|
|
111
|
+
:'created_at' => :'DateTime',
|
|
112
|
+
:'should' => :'String',
|
|
113
|
+
:'match_options' => :'InboxAutomationMatchOptions'
|
|
105
114
|
}
|
|
106
115
|
end
|
|
107
116
|
|
|
@@ -110,12 +119,16 @@ module MailSlurpClient
|
|
|
110
119
|
Set.new([
|
|
111
120
|
:'inbox_id',
|
|
112
121
|
:'name',
|
|
122
|
+
:'field',
|
|
123
|
+
:'match',
|
|
113
124
|
:'reply_to',
|
|
114
125
|
:'subject',
|
|
115
126
|
:'from',
|
|
116
127
|
:'charset',
|
|
117
128
|
:'template_id',
|
|
118
129
|
:'template_variables',
|
|
130
|
+
:'should',
|
|
131
|
+
:'match_options'
|
|
119
132
|
])
|
|
120
133
|
end
|
|
121
134
|
|
|
@@ -191,6 +204,14 @@ module MailSlurpClient
|
|
|
191
204
|
if attributes.key?(:'created_at')
|
|
192
205
|
self.created_at = attributes[:'created_at']
|
|
193
206
|
end
|
|
207
|
+
|
|
208
|
+
if attributes.key?(:'should')
|
|
209
|
+
self.should = attributes[:'should']
|
|
210
|
+
end
|
|
211
|
+
|
|
212
|
+
if attributes.key?(:'match_options')
|
|
213
|
+
self.match_options = attributes[:'match_options']
|
|
214
|
+
end
|
|
194
215
|
end
|
|
195
216
|
|
|
196
217
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -201,14 +222,6 @@ module MailSlurpClient
|
|
|
201
222
|
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
|
202
223
|
end
|
|
203
224
|
|
|
204
|
-
if @field.nil?
|
|
205
|
-
invalid_properties.push('invalid value for "field", field cannot be nil.')
|
|
206
|
-
end
|
|
207
|
-
|
|
208
|
-
if @match.nil?
|
|
209
|
-
invalid_properties.push('invalid value for "match", match cannot be nil.')
|
|
210
|
-
end
|
|
211
|
-
|
|
212
225
|
if @is_html.nil?
|
|
213
226
|
invalid_properties.push('invalid value for "is_html", is_html cannot be nil.')
|
|
214
227
|
end
|
|
@@ -228,26 +241,36 @@ module MailSlurpClient
|
|
|
228
241
|
# @return true if the model is valid
|
|
229
242
|
def valid?
|
|
230
243
|
return false if @id.nil?
|
|
231
|
-
|
|
232
|
-
field_validator = EnumAttributeValidator.new('String', ["RECIPIENTS", "SENDER", "SUBJECT", "ATTACHMENTS"])
|
|
244
|
+
field_validator = EnumAttributeValidator.new('String', ["RECIPIENTS", "SENDER", "SUBJECT", "ATTACHMENTS", "ATTACHMENT_FILENAME", "ATTACHMENT_TEXT"])
|
|
233
245
|
return false unless field_validator.valid?(@field)
|
|
234
|
-
return false if @match.nil?
|
|
235
246
|
return false if @is_html.nil?
|
|
236
247
|
return false if @ignore_reply_to.nil?
|
|
237
248
|
return false if @created_at.nil?
|
|
249
|
+
should_validator = EnumAttributeValidator.new('String', ["WILDCARD", "MATCH", "CONTAIN", "EQUAL"])
|
|
250
|
+
return false unless should_validator.valid?(@should)
|
|
238
251
|
true
|
|
239
252
|
end
|
|
240
253
|
|
|
241
254
|
# Custom attribute writer method checking allowed values (enum).
|
|
242
255
|
# @param [Object] field Object to be assigned
|
|
243
256
|
def field=(field)
|
|
244
|
-
validator = EnumAttributeValidator.new('String', ["RECIPIENTS", "SENDER", "SUBJECT", "ATTACHMENTS"])
|
|
257
|
+
validator = EnumAttributeValidator.new('String', ["RECIPIENTS", "SENDER", "SUBJECT", "ATTACHMENTS", "ATTACHMENT_FILENAME", "ATTACHMENT_TEXT"])
|
|
245
258
|
unless validator.valid?(field)
|
|
246
259
|
fail ArgumentError, "invalid value for \"field\", must be one of #{validator.allowable_values}."
|
|
247
260
|
end
|
|
248
261
|
@field = field
|
|
249
262
|
end
|
|
250
263
|
|
|
264
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
265
|
+
# @param [Object] should Object to be assigned
|
|
266
|
+
def should=(should)
|
|
267
|
+
validator = EnumAttributeValidator.new('String', ["WILDCARD", "MATCH", "CONTAIN", "EQUAL"])
|
|
268
|
+
unless validator.valid?(should)
|
|
269
|
+
fail ArgumentError, "invalid value for \"should\", must be one of #{validator.allowable_values}."
|
|
270
|
+
end
|
|
271
|
+
@should = should
|
|
272
|
+
end
|
|
273
|
+
|
|
251
274
|
# Checks equality by comparing each attribute.
|
|
252
275
|
# @param [Object] Object to be compared
|
|
253
276
|
def ==(o)
|
|
@@ -266,7 +289,9 @@ module MailSlurpClient
|
|
|
266
289
|
template_id == o.template_id &&
|
|
267
290
|
template_variables == o.template_variables &&
|
|
268
291
|
ignore_reply_to == o.ignore_reply_to &&
|
|
269
|
-
created_at == o.created_at
|
|
292
|
+
created_at == o.created_at &&
|
|
293
|
+
should == o.should &&
|
|
294
|
+
match_options == o.match_options
|
|
270
295
|
end
|
|
271
296
|
|
|
272
297
|
# @see the `==` method
|
|
@@ -278,7 +303,7 @@ module MailSlurpClient
|
|
|
278
303
|
# Calculates hash code according to all attributes.
|
|
279
304
|
# @return [Integer] Hash code
|
|
280
305
|
def hash
|
|
281
|
-
[id, inbox_id, name, field, match, reply_to, subject, from, charset, is_html, template_id, template_variables, ignore_reply_to, created_at].hash
|
|
306
|
+
[id, inbox_id, name, field, match, reply_to, subject, from, charset, is_html, template_id, template_variables, ignore_reply_to, created_at, should, match_options].hash
|
|
282
307
|
end
|
|
283
308
|
|
|
284
309
|
# Builds the object from hash
|
|
@@ -19,6 +19,8 @@ module MailSlurpClient
|
|
|
19
19
|
|
|
20
20
|
attr_accessor :id
|
|
21
21
|
|
|
22
|
+
attr_accessor :status
|
|
23
|
+
|
|
22
24
|
attr_accessor :recipients
|
|
23
25
|
|
|
24
26
|
attr_accessor :user_id
|
|
@@ -33,8 +35,6 @@ module MailSlurpClient
|
|
|
33
35
|
|
|
34
36
|
attr_accessor :replier_id
|
|
35
37
|
|
|
36
|
-
attr_accessor :status
|
|
37
|
-
|
|
38
38
|
class EnumAttributeValidator
|
|
39
39
|
attr_reader :datatype
|
|
40
40
|
attr_reader :allowable_values
|
|
@@ -62,14 +62,14 @@ module MailSlurpClient
|
|
|
62
62
|
{
|
|
63
63
|
:'message' => :'message',
|
|
64
64
|
:'id' => :'id',
|
|
65
|
+
:'status' => :'status',
|
|
65
66
|
:'recipients' => :'recipients',
|
|
66
67
|
:'user_id' => :'userId',
|
|
67
68
|
:'email_id' => :'emailId',
|
|
68
69
|
:'inbox_id' => :'inboxId',
|
|
69
70
|
:'created_at' => :'createdAt',
|
|
70
71
|
:'sent_id' => :'sentId',
|
|
71
|
-
:'replier_id' => :'replierId'
|
|
72
|
-
:'status' => :'status'
|
|
72
|
+
:'replier_id' => :'replierId'
|
|
73
73
|
}
|
|
74
74
|
end
|
|
75
75
|
|
|
@@ -78,14 +78,14 @@ module MailSlurpClient
|
|
|
78
78
|
{
|
|
79
79
|
:'message' => :'String',
|
|
80
80
|
:'id' => :'String',
|
|
81
|
+
:'status' => :'String',
|
|
81
82
|
:'recipients' => :'Array<String>',
|
|
82
83
|
:'user_id' => :'String',
|
|
83
84
|
:'email_id' => :'String',
|
|
84
85
|
:'inbox_id' => :'String',
|
|
85
86
|
:'created_at' => :'DateTime',
|
|
86
87
|
:'sent_id' => :'String',
|
|
87
|
-
:'replier_id' => :'String'
|
|
88
|
-
:'status' => :'String'
|
|
88
|
+
:'replier_id' => :'String'
|
|
89
89
|
}
|
|
90
90
|
end
|
|
91
91
|
|
|
@@ -94,13 +94,13 @@ module MailSlurpClient
|
|
|
94
94
|
Set.new([
|
|
95
95
|
:'message',
|
|
96
96
|
:'id',
|
|
97
|
+
:'status',
|
|
97
98
|
:'recipients',
|
|
98
99
|
:'user_id',
|
|
99
100
|
:'email_id',
|
|
100
101
|
:'inbox_id',
|
|
101
102
|
:'sent_id',
|
|
102
|
-
:'replier_id'
|
|
103
|
-
:'status'
|
|
103
|
+
:'replier_id'
|
|
104
104
|
])
|
|
105
105
|
end
|
|
106
106
|
|
|
@@ -127,6 +127,10 @@ module MailSlurpClient
|
|
|
127
127
|
self.id = attributes[:'id']
|
|
128
128
|
end
|
|
129
129
|
|
|
130
|
+
if attributes.key?(:'status')
|
|
131
|
+
self.status = attributes[:'status']
|
|
132
|
+
end
|
|
133
|
+
|
|
130
134
|
if attributes.key?(:'recipients')
|
|
131
135
|
if (value = attributes[:'recipients']).is_a?(Array)
|
|
132
136
|
self.recipients = value
|
|
@@ -156,10 +160,6 @@ module MailSlurpClient
|
|
|
156
160
|
if attributes.key?(:'replier_id')
|
|
157
161
|
self.replier_id = attributes[:'replier_id']
|
|
158
162
|
end
|
|
159
|
-
|
|
160
|
-
if attributes.key?(:'status')
|
|
161
|
-
self.status = attributes[:'status']
|
|
162
|
-
end
|
|
163
163
|
end
|
|
164
164
|
|
|
165
165
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -176,9 +176,9 @@ module MailSlurpClient
|
|
|
176
176
|
# Check to see if the all the properties in the model are valid
|
|
177
177
|
# @return true if the model is valid
|
|
178
178
|
def valid?
|
|
179
|
-
return false if @created_at.nil?
|
|
180
179
|
status_validator = EnumAttributeValidator.new('String', ["SUCCESS", "FAILURE"])
|
|
181
180
|
return false unless status_validator.valid?(@status)
|
|
181
|
+
return false if @created_at.nil?
|
|
182
182
|
true
|
|
183
183
|
end
|
|
184
184
|
|
|
@@ -199,14 +199,14 @@ module MailSlurpClient
|
|
|
199
199
|
self.class == o.class &&
|
|
200
200
|
message == o.message &&
|
|
201
201
|
id == o.id &&
|
|
202
|
+
status == o.status &&
|
|
202
203
|
recipients == o.recipients &&
|
|
203
204
|
user_id == o.user_id &&
|
|
204
205
|
email_id == o.email_id &&
|
|
205
206
|
inbox_id == o.inbox_id &&
|
|
206
207
|
created_at == o.created_at &&
|
|
207
208
|
sent_id == o.sent_id &&
|
|
208
|
-
replier_id == o.replier_id
|
|
209
|
-
status == o.status
|
|
209
|
+
replier_id == o.replier_id
|
|
210
210
|
end
|
|
211
211
|
|
|
212
212
|
# @see the `==` method
|
|
@@ -218,7 +218,7 @@ module MailSlurpClient
|
|
|
218
218
|
# Calculates hash code according to all attributes.
|
|
219
219
|
# @return [Integer] Hash code
|
|
220
220
|
def hash
|
|
221
|
-
[message, id, recipients, user_id, email_id, inbox_id, created_at, sent_id, replier_id
|
|
221
|
+
[message, id, status, recipients, user_id, email_id, inbox_id, created_at, sent_id, replier_id].hash
|
|
222
222
|
end
|
|
223
223
|
|
|
224
224
|
# Builds the object from hash
|
|
@@ -14,45 +14,19 @@ require 'date'
|
|
|
14
14
|
|
|
15
15
|
module MailSlurpClient
|
|
16
16
|
class InlineObject
|
|
17
|
-
|
|
18
|
-
attr_accessor :_to
|
|
19
|
-
|
|
20
|
-
# Optional subject of the email that will be sent.
|
|
21
|
-
attr_accessor :_subject
|
|
22
|
-
|
|
23
|
-
# Email address of the submitting user. Include this if you wish to record the submitters email address and reply to it later.
|
|
24
|
-
attr_accessor :_email_address
|
|
25
|
-
|
|
26
|
-
# Optional success message to display if no _redirectTo present.
|
|
27
|
-
attr_accessor :_success_message
|
|
28
|
-
|
|
29
|
-
# Optional but recommended field that catches spammers out. Include as a hidden form field but LEAVE EMPTY. Spam-bots will usually fill every field. If the _spamCheck field is filled the form submission will be ignored.
|
|
30
|
-
attr_accessor :_spam_check
|
|
31
|
-
|
|
32
|
-
# All other parameters or fields will be accepted and attached to the sent email. This includes files and any HTML form field with a name. These fields will become the body of the email that is sent.
|
|
33
|
-
attr_accessor :other_parameters
|
|
17
|
+
attr_accessor :file
|
|
34
18
|
|
|
35
19
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
36
20
|
def self.attribute_map
|
|
37
21
|
{
|
|
38
|
-
:'
|
|
39
|
-
:'_subject' => :'_subject',
|
|
40
|
-
:'_email_address' => :'_emailAddress',
|
|
41
|
-
:'_success_message' => :'_successMessage',
|
|
42
|
-
:'_spam_check' => :'_spamCheck',
|
|
43
|
-
:'other_parameters' => :'otherParameters'
|
|
22
|
+
:'file' => :'file'
|
|
44
23
|
}
|
|
45
24
|
end
|
|
46
25
|
|
|
47
26
|
# Attribute type mapping.
|
|
48
27
|
def self.openapi_types
|
|
49
28
|
{
|
|
50
|
-
:'
|
|
51
|
-
:'_subject' => :'String',
|
|
52
|
-
:'_email_address' => :'String',
|
|
53
|
-
:'_success_message' => :'String',
|
|
54
|
-
:'_spam_check' => :'String',
|
|
55
|
-
:'other_parameters' => :'String'
|
|
29
|
+
:'file' => :'File'
|
|
56
30
|
}
|
|
57
31
|
end
|
|
58
32
|
|
|
@@ -77,28 +51,8 @@ module MailSlurpClient
|
|
|
77
51
|
h[k.to_sym] = v
|
|
78
52
|
}
|
|
79
53
|
|
|
80
|
-
if attributes.key?(:'
|
|
81
|
-
self.
|
|
82
|
-
end
|
|
83
|
-
|
|
84
|
-
if attributes.key?(:'_subject')
|
|
85
|
-
self._subject = attributes[:'_subject']
|
|
86
|
-
end
|
|
87
|
-
|
|
88
|
-
if attributes.key?(:'_email_address')
|
|
89
|
-
self._email_address = attributes[:'_email_address']
|
|
90
|
-
end
|
|
91
|
-
|
|
92
|
-
if attributes.key?(:'_success_message')
|
|
93
|
-
self._success_message = attributes[:'_success_message']
|
|
94
|
-
end
|
|
95
|
-
|
|
96
|
-
if attributes.key?(:'_spam_check')
|
|
97
|
-
self._spam_check = attributes[:'_spam_check']
|
|
98
|
-
end
|
|
99
|
-
|
|
100
|
-
if attributes.key?(:'other_parameters')
|
|
101
|
-
self.other_parameters = attributes[:'other_parameters']
|
|
54
|
+
if attributes.key?(:'file')
|
|
55
|
+
self.file = attributes[:'file']
|
|
102
56
|
end
|
|
103
57
|
end
|
|
104
58
|
|
|
@@ -106,12 +60,17 @@ module MailSlurpClient
|
|
|
106
60
|
# @return Array for valid properties with the reasons
|
|
107
61
|
def list_invalid_properties
|
|
108
62
|
invalid_properties = Array.new
|
|
63
|
+
if @file.nil?
|
|
64
|
+
invalid_properties.push('invalid value for "file", file cannot be nil.')
|
|
65
|
+
end
|
|
66
|
+
|
|
109
67
|
invalid_properties
|
|
110
68
|
end
|
|
111
69
|
|
|
112
70
|
# Check to see if the all the properties in the model are valid
|
|
113
71
|
# @return true if the model is valid
|
|
114
72
|
def valid?
|
|
73
|
+
return false if @file.nil?
|
|
115
74
|
true
|
|
116
75
|
end
|
|
117
76
|
|
|
@@ -120,12 +79,7 @@ module MailSlurpClient
|
|
|
120
79
|
def ==(o)
|
|
121
80
|
return true if self.equal?(o)
|
|
122
81
|
self.class == o.class &&
|
|
123
|
-
|
|
124
|
-
_subject == o._subject &&
|
|
125
|
-
_email_address == o._email_address &&
|
|
126
|
-
_success_message == o._success_message &&
|
|
127
|
-
_spam_check == o._spam_check &&
|
|
128
|
-
other_parameters == o.other_parameters
|
|
82
|
+
file == o.file
|
|
129
83
|
end
|
|
130
84
|
|
|
131
85
|
# @see the `==` method
|
|
@@ -137,7 +91,7 @@ module MailSlurpClient
|
|
|
137
91
|
# Calculates hash code according to all attributes.
|
|
138
92
|
# @return [Integer] Hash code
|
|
139
93
|
def hash
|
|
140
|
-
[
|
|
94
|
+
[file].hash
|
|
141
95
|
end
|
|
142
96
|
|
|
143
97
|
# Builds the object from hash
|
|
@@ -14,19 +14,45 @@ require 'date'
|
|
|
14
14
|
|
|
15
15
|
module MailSlurpClient
|
|
16
16
|
class InlineObject1
|
|
17
|
-
|
|
17
|
+
# The email address that submitted form should be sent to.
|
|
18
|
+
attr_accessor :_to
|
|
19
|
+
|
|
20
|
+
# Optional subject of the email that will be sent.
|
|
21
|
+
attr_accessor :_subject
|
|
22
|
+
|
|
23
|
+
# Email address of the submitting user. Include this if you wish to record the submitters email address and reply to it later.
|
|
24
|
+
attr_accessor :_email_address
|
|
25
|
+
|
|
26
|
+
# Optional success message to display if no _redirectTo present.
|
|
27
|
+
attr_accessor :_success_message
|
|
28
|
+
|
|
29
|
+
# Optional but recommended field that catches spammers out. Include as a hidden form field but LEAVE EMPTY. Spam-bots will usually fill every field. If the _spamCheck field is filled the form submission will be ignored.
|
|
30
|
+
attr_accessor :_spam_check
|
|
31
|
+
|
|
32
|
+
# All other parameters or fields will be accepted and attached to the sent email. This includes files and any HTML form field with a name. These fields will become the body of the email that is sent.
|
|
33
|
+
attr_accessor :other_parameters
|
|
18
34
|
|
|
19
35
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
20
36
|
def self.attribute_map
|
|
21
37
|
{
|
|
22
|
-
:'
|
|
38
|
+
:'_to' => :'_to',
|
|
39
|
+
:'_subject' => :'_subject',
|
|
40
|
+
:'_email_address' => :'_emailAddress',
|
|
41
|
+
:'_success_message' => :'_successMessage',
|
|
42
|
+
:'_spam_check' => :'_spamCheck',
|
|
43
|
+
:'other_parameters' => :'otherParameters'
|
|
23
44
|
}
|
|
24
45
|
end
|
|
25
46
|
|
|
26
47
|
# Attribute type mapping.
|
|
27
48
|
def self.openapi_types
|
|
28
49
|
{
|
|
29
|
-
:'
|
|
50
|
+
:'_to' => :'String',
|
|
51
|
+
:'_subject' => :'String',
|
|
52
|
+
:'_email_address' => :'String',
|
|
53
|
+
:'_success_message' => :'String',
|
|
54
|
+
:'_spam_check' => :'String',
|
|
55
|
+
:'other_parameters' => :'String'
|
|
30
56
|
}
|
|
31
57
|
end
|
|
32
58
|
|
|
@@ -51,8 +77,28 @@ module MailSlurpClient
|
|
|
51
77
|
h[k.to_sym] = v
|
|
52
78
|
}
|
|
53
79
|
|
|
54
|
-
if attributes.key?(:'
|
|
55
|
-
self.
|
|
80
|
+
if attributes.key?(:'_to')
|
|
81
|
+
self._to = attributes[:'_to']
|
|
82
|
+
end
|
|
83
|
+
|
|
84
|
+
if attributes.key?(:'_subject')
|
|
85
|
+
self._subject = attributes[:'_subject']
|
|
86
|
+
end
|
|
87
|
+
|
|
88
|
+
if attributes.key?(:'_email_address')
|
|
89
|
+
self._email_address = attributes[:'_email_address']
|
|
90
|
+
end
|
|
91
|
+
|
|
92
|
+
if attributes.key?(:'_success_message')
|
|
93
|
+
self._success_message = attributes[:'_success_message']
|
|
94
|
+
end
|
|
95
|
+
|
|
96
|
+
if attributes.key?(:'_spam_check')
|
|
97
|
+
self._spam_check = attributes[:'_spam_check']
|
|
98
|
+
end
|
|
99
|
+
|
|
100
|
+
if attributes.key?(:'other_parameters')
|
|
101
|
+
self.other_parameters = attributes[:'other_parameters']
|
|
56
102
|
end
|
|
57
103
|
end
|
|
58
104
|
|
|
@@ -60,17 +106,12 @@ module MailSlurpClient
|
|
|
60
106
|
# @return Array for valid properties with the reasons
|
|
61
107
|
def list_invalid_properties
|
|
62
108
|
invalid_properties = Array.new
|
|
63
|
-
if @file.nil?
|
|
64
|
-
invalid_properties.push('invalid value for "file", file cannot be nil.')
|
|
65
|
-
end
|
|
66
|
-
|
|
67
109
|
invalid_properties
|
|
68
110
|
end
|
|
69
111
|
|
|
70
112
|
# Check to see if the all the properties in the model are valid
|
|
71
113
|
# @return true if the model is valid
|
|
72
114
|
def valid?
|
|
73
|
-
return false if @file.nil?
|
|
74
115
|
true
|
|
75
116
|
end
|
|
76
117
|
|
|
@@ -79,7 +120,12 @@ module MailSlurpClient
|
|
|
79
120
|
def ==(o)
|
|
80
121
|
return true if self.equal?(o)
|
|
81
122
|
self.class == o.class &&
|
|
82
|
-
|
|
123
|
+
_to == o._to &&
|
|
124
|
+
_subject == o._subject &&
|
|
125
|
+
_email_address == o._email_address &&
|
|
126
|
+
_success_message == o._success_message &&
|
|
127
|
+
_spam_check == o._spam_check &&
|
|
128
|
+
other_parameters == o.other_parameters
|
|
83
129
|
end
|
|
84
130
|
|
|
85
131
|
# @see the `==` method
|
|
@@ -91,7 +137,7 @@ module MailSlurpClient
|
|
|
91
137
|
# Calculates hash code according to all attributes.
|
|
92
138
|
# @return [Integer] Hash code
|
|
93
139
|
def hash
|
|
94
|
-
[
|
|
140
|
+
[_to, _subject, _email_address, _success_message, _spam_check, other_parameters].hash
|
|
95
141
|
end
|
|
96
142
|
|
|
97
143
|
# Builds the object from hash
|