mailslurp_client 15.0.0 → 15.0.4
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 +59 -55
- data/lib/mailslurp_client/api/attachment_controller_api.rb +49 -60
- data/lib/mailslurp_client/api/bounce_controller_api.rb +26 -18
- data/lib/mailslurp_client/api/bulk_actions_controller_api.rb +15 -15
- data/lib/mailslurp_client/api/common_actions_controller_api.rb +128 -67
- data/lib/mailslurp_client/api/contact_controller_api.rb +22 -22
- data/lib/mailslurp_client/api/domain_controller_api.rb +32 -32
- data/lib/mailslurp_client/api/email_controller_api.rb +190 -116
- data/lib/mailslurp_client/api/expired_controller_api.rb +19 -19
- data/lib/mailslurp_client/api/export_controller_api.rb +38 -38
- data/lib/mailslurp_client/api/form_controller_api.rb +16 -18
- data/lib/mailslurp_client/api/group_controller_api.rb +52 -52
- data/lib/mailslurp_client/api/inbox_controller_api.rb +359 -225
- data/lib/mailslurp_client/api/inbox_forwarder_controller_api.rb +33 -29
- data/lib/mailslurp_client/api/inbox_ruleset_controller_api.rb +33 -29
- data/lib/mailslurp_client/api/mail_server_controller_api.rb +26 -26
- data/lib/mailslurp_client/api/missed_email_controller_api.rb +54 -42
- data/lib/mailslurp_client/api/sent_emails_controller_api.rb +157 -47
- data/lib/mailslurp_client/api/template_controller_api.rb +21 -21
- data/lib/mailslurp_client/api/tracking_controller_api.rb +16 -16
- data/lib/mailslurp_client/api/wait_for_controller_api.rb +128 -88
- data/lib/mailslurp_client/api/webhook_controller_api.rb +102 -86
- data/lib/mailslurp_client/configuration.rb +4 -4
- data/lib/mailslurp_client/models/abstract_webhook_payload.rb +10 -25
- data/lib/mailslurp_client/models/alias_dto.rb +45 -56
- data/lib/mailslurp_client/models/alias_projection.rb +42 -72
- data/lib/mailslurp_client/models/attachment_entity.rb +34 -54
- data/lib/mailslurp_client/models/attachment_meta_data.rb +21 -21
- data/lib/mailslurp_client/models/attachment_projection.rb +36 -51
- data/lib/mailslurp_client/models/basic_auth_options.rb +0 -10
- data/lib/mailslurp_client/models/bounce_projection.rb +13 -23
- data/lib/mailslurp_client/models/bounce_recipient.rb +22 -42
- data/lib/mailslurp_client/models/bounced_email_dto.rb +56 -76
- data/lib/mailslurp_client/models/bounced_recipient_dto.rb +16 -31
- data/lib/mailslurp_client/models/bulk_send_email_options.rb +5 -0
- data/lib/mailslurp_client/models/condition_option.rb +2 -2
- data/lib/mailslurp_client/models/contact_dto.rb +53 -73
- data/lib/mailslurp_client/models/contact_projection.rb +42 -52
- data/lib/mailslurp_client/models/count_dto.rb +206 -0
- data/lib/mailslurp_client/models/create_contact_options.rb +42 -42
- data/lib/mailslurp_client/models/create_domain_options.rb +21 -16
- data/lib/mailslurp_client/models/create_group_options.rb +0 -5
- data/lib/mailslurp_client/models/create_inbox_dto.rb +58 -58
- data/lib/mailslurp_client/models/create_inbox_forwarder_options.rb +19 -14
- data/lib/mailslurp_client/models/create_inbox_ruleset_options.rb +23 -23
- data/lib/mailslurp_client/models/create_template_options.rb +0 -10
- data/lib/mailslurp_client/models/create_webhook_options.rb +18 -18
- data/lib/mailslurp_client/models/describe_mail_server_domain_result.rb +15 -25
- data/lib/mailslurp_client/models/dns_lookup_options.rb +24 -14
- data/lib/mailslurp_client/models/dns_lookup_result.rb +23 -42
- data/lib/mailslurp_client/models/dns_lookup_results.rb +0 -5
- data/lib/mailslurp_client/models/domain_dto.rb +59 -80
- data/lib/mailslurp_client/models/domain_name_record.rb +11 -30
- data/lib/mailslurp_client/models/domain_preview.rb +26 -50
- data/lib/mailslurp_client/models/email.rb +134 -135
- data/lib/mailslurp_client/models/email_analysis.rb +28 -28
- data/lib/mailslurp_client/models/email_content_match_result.rb +13 -23
- data/lib/mailslurp_client/models/email_links_result.rb +13 -23
- data/lib/mailslurp_client/models/email_preview.rb +47 -47
- data/lib/mailslurp_client/models/email_projection.rb +77 -97
- data/lib/mailslurp_client/models/email_recipients.rb +16 -15
- data/lib/mailslurp_client/models/email_text_lines_result.rb +13 -23
- data/lib/mailslurp_client/models/email_verification_result.rb +16 -36
- data/lib/mailslurp_client/models/expiration_defaults.rb +16 -26
- data/lib/mailslurp_client/models/expired_inbox_dto.rb +13 -28
- data/lib/mailslurp_client/models/expired_inbox_record_projection.rb +22 -42
- data/lib/mailslurp_client/models/export_link.rb +0 -5
- data/lib/mailslurp_client/models/export_options.rb +1 -6
- data/lib/mailslurp_client/models/flush_expired_inboxes_result.rb +13 -23
- data/lib/mailslurp_client/models/forward_email_options.rb +36 -31
- data/lib/mailslurp_client/models/gravatar_url.rb +13 -23
- data/lib/mailslurp_client/models/group_contacts_dto.rb +13 -23
- data/lib/mailslurp_client/models/group_dto.rb +22 -37
- data/lib/mailslurp_client/models/group_projection.rb +22 -37
- data/lib/mailslurp_client/models/html_validation_result.rb +13 -14
- data/lib/mailslurp_client/models/{inbox.rb → inbox_dto.rb} +47 -57
- data/lib/mailslurp_client/models/inbox_exists_dto.rb +0 -5
- data/lib/mailslurp_client/models/inbox_forwarder_dto.rb +31 -61
- data/lib/mailslurp_client/models/inbox_forwarder_test_options.rb +0 -5
- data/lib/mailslurp_client/models/inbox_forwarder_test_result.rb +13 -23
- data/lib/mailslurp_client/models/inbox_preview.rb +38 -38
- data/lib/mailslurp_client/models/inbox_ruleset_dto.rb +43 -78
- data/lib/mailslurp_client/models/inbox_ruleset_test_options.rb +0 -5
- data/lib/mailslurp_client/models/inbox_ruleset_test_result.rb +13 -18
- data/lib/mailslurp_client/models/inline_object.rb +221 -0
- data/lib/mailslurp_client/models/ip_address_result.rb +0 -10
- data/lib/mailslurp_client/models/json_schema_dto.rb +0 -5
- data/lib/mailslurp_client/models/match_option.rb +7 -2
- data/lib/mailslurp_client/models/match_options.rb +16 -16
- data/lib/mailslurp_client/models/missed_email.rb +67 -102
- data/lib/mailslurp_client/models/missed_email_projection.rb +19 -29
- data/lib/mailslurp_client/models/name_server_record.rb +10 -30
- data/lib/mailslurp_client/models/organization_inbox_projection.rb +44 -44
- data/lib/mailslurp_client/models/page_alias.rb +52 -52
- data/lib/mailslurp_client/models/page_attachment_entity.rb +52 -52
- data/lib/mailslurp_client/models/page_bounced_email.rb +52 -52
- data/lib/mailslurp_client/models/page_bounced_recipients.rb +52 -52
- data/lib/mailslurp_client/models/page_contact_projection.rb +52 -52
- data/lib/mailslurp_client/models/page_email_preview.rb +52 -52
- data/lib/mailslurp_client/models/page_email_projection.rb +52 -52
- data/lib/mailslurp_client/models/page_expired_inbox_record_projection.rb +52 -52
- data/lib/mailslurp_client/models/page_group_projection.rb +52 -52
- data/lib/mailslurp_client/models/page_inbox_forwarder_dto.rb +52 -52
- data/lib/mailslurp_client/models/page_inbox_projection.rb +52 -52
- data/lib/mailslurp_client/models/page_inbox_ruleset_dto.rb +52 -52
- data/lib/mailslurp_client/models/page_missed_email_projection.rb +52 -52
- data/lib/mailslurp_client/models/page_organization_inbox_projection.rb +52 -52
- data/lib/mailslurp_client/models/page_sent_email_projection.rb +49 -49
- data/lib/mailslurp_client/models/page_template_projection.rb +52 -52
- data/lib/mailslurp_client/models/page_thread_projection.rb +52 -52
- data/lib/mailslurp_client/models/page_tracking_pixel_projection.rb +52 -52
- data/lib/mailslurp_client/models/page_unknown_missed_email_projection.rb +52 -52
- data/lib/mailslurp_client/models/page_webhook_projection.rb +52 -52
- data/lib/mailslurp_client/models/page_webhook_result.rb +52 -52
- data/lib/mailslurp_client/models/pageable.rb +10 -10
- data/lib/mailslurp_client/models/raw_email_json.rb +0 -5
- data/lib/mailslurp_client/models/recipient.rb +13 -23
- data/lib/mailslurp_client/models/reply_to_alias_email_options.rb +38 -37
- data/lib/mailslurp_client/models/reply_to_email_options.rb +51 -50
- data/lib/mailslurp_client/models/send_email_options.rb +107 -115
- data/lib/mailslurp_client/models/sender.rb +14 -23
- data/lib/mailslurp_client/models/sent_email_dto.rb +97 -102
- data/lib/mailslurp_client/models/sent_email_projection.rb +66 -105
- data/lib/mailslurp_client/models/simple_send_email_options.rb +24 -24
- data/lib/mailslurp_client/models/template_dto.rb +22 -47
- data/lib/mailslurp_client/models/template_projection.rb +16 -41
- data/lib/mailslurp_client/models/template_variable.rb +0 -10
- data/lib/mailslurp_client/models/test_new_inbox_forwarder_options.rb +0 -10
- data/lib/mailslurp_client/models/test_new_inbox_ruleset_options.rb +0 -10
- data/lib/mailslurp_client/models/thread_projection.rb +60 -95
- data/lib/mailslurp_client/models/tracking_pixel_dto.rb +43 -68
- data/lib/mailslurp_client/models/tracking_pixel_projection.rb +34 -54
- data/lib/mailslurp_client/models/unknown_missed_email_projection.rb +19 -29
- data/lib/mailslurp_client/models/unread_count.rb +0 -5
- data/lib/mailslurp_client/models/unseen_error_count_dto.rb +0 -5
- data/lib/mailslurp_client/models/update_group_contacts.rb +0 -5
- data/lib/mailslurp_client/models/update_inbox_options.rb +26 -26
- data/lib/mailslurp_client/models/upload_attachment_options.rb +14 -14
- data/lib/mailslurp_client/models/validation_message.rb +1 -5
- data/lib/mailslurp_client/models/verify_email_address_options.rb +0 -5
- data/lib/mailslurp_client/models/wait_for_conditions.rb +48 -58
- data/lib/mailslurp_client/models/webhook_dto.rb +64 -69
- data/lib/mailslurp_client/models/webhook_email_opened_payload.rb +42 -42
- data/lib/mailslurp_client/models/webhook_email_read_payload.rb +49 -49
- data/lib/mailslurp_client/models/webhook_new_attachment_payload.rb +43 -43
- data/lib/mailslurp_client/models/webhook_new_contact_payload.rb +75 -95
- data/lib/mailslurp_client/models/webhook_new_email_payload.rb +84 -84
- data/lib/mailslurp_client/models/webhook_projection.rb +36 -61
- data/lib/mailslurp_client/models/webhook_redrive_result.rb +13 -23
- data/lib/mailslurp_client/models/webhook_result_dto.rb +76 -126
- data/lib/mailslurp_client/models/webhook_test_request.rb +21 -36
- data/lib/mailslurp_client/models/webhook_test_response.rb +13 -13
- data/lib/mailslurp_client/models/webhook_test_result.rb +13 -23
- data/lib/mailslurp_client/version.rb +1 -1
- data/lib/mailslurp_client.rb +3 -1
- metadata +5 -3
@@ -15,85 +15,85 @@ require 'date'
|
|
15
15
|
module MailSlurpClient
|
16
16
|
# Sent email details
|
17
17
|
class SentEmailDto
|
18
|
-
#
|
19
|
-
attr_accessor :
|
18
|
+
# ID of sent email
|
19
|
+
attr_accessor :id
|
20
20
|
|
21
|
-
|
21
|
+
# User ID
|
22
|
+
attr_accessor :user_id
|
22
23
|
|
23
|
-
|
24
|
+
# Inbox ID email was sent from
|
25
|
+
attr_accessor :inbox_id
|
24
26
|
|
25
|
-
#
|
26
|
-
attr_accessor :
|
27
|
+
# Recipients email was sent to
|
28
|
+
attr_accessor :to
|
27
29
|
|
28
|
-
attr_accessor :
|
30
|
+
attr_accessor :from
|
29
31
|
|
30
|
-
attr_accessor :
|
32
|
+
attr_accessor :reply_to
|
31
33
|
|
32
|
-
attr_accessor :
|
34
|
+
attr_accessor :cc
|
33
35
|
|
34
|
-
|
35
|
-
attr_accessor :id
|
36
|
+
attr_accessor :bcc
|
36
37
|
|
37
|
-
#
|
38
|
-
attr_accessor :
|
38
|
+
# Array of IDs of attachments that were sent with this email
|
39
|
+
attr_accessor :attachments
|
39
40
|
|
40
|
-
attr_accessor :
|
41
|
+
attr_accessor :subject
|
41
42
|
|
42
|
-
|
43
|
+
# MD5 Hash
|
44
|
+
attr_accessor :body_md5_hash
|
43
45
|
|
44
|
-
attr_accessor :
|
46
|
+
attr_accessor :body
|
45
47
|
|
46
|
-
attr_accessor :
|
48
|
+
attr_accessor :charset
|
47
49
|
|
48
|
-
attr_accessor :
|
50
|
+
attr_accessor :sent_at
|
49
51
|
|
50
|
-
|
51
|
-
attr_accessor :to
|
52
|
+
attr_accessor :pixel_ids
|
52
53
|
|
53
|
-
|
54
|
-
attr_accessor :user_id
|
54
|
+
attr_accessor :html
|
55
55
|
|
56
56
|
# Attribute mapping from ruby-style variable name to JSON key.
|
57
57
|
def self.attribute_map
|
58
58
|
{
|
59
|
-
:'attachments' => :'attachments',
|
60
|
-
:'bcc' => :'bcc',
|
61
|
-
:'body' => :'body',
|
62
|
-
:'body_md5_hash' => :'bodyMD5Hash',
|
63
|
-
:'cc' => :'cc',
|
64
|
-
:'charset' => :'charset',
|
65
|
-
:'from' => :'from',
|
66
59
|
:'id' => :'id',
|
60
|
+
:'user_id' => :'userId',
|
67
61
|
:'inbox_id' => :'inboxId',
|
68
|
-
:'
|
69
|
-
:'
|
62
|
+
:'to' => :'to',
|
63
|
+
:'from' => :'from',
|
70
64
|
:'reply_to' => :'replyTo',
|
71
|
-
:'
|
65
|
+
:'cc' => :'cc',
|
66
|
+
:'bcc' => :'bcc',
|
67
|
+
:'attachments' => :'attachments',
|
72
68
|
:'subject' => :'subject',
|
73
|
-
:'
|
74
|
-
:'
|
69
|
+
:'body_md5_hash' => :'bodyMD5Hash',
|
70
|
+
:'body' => :'body',
|
71
|
+
:'charset' => :'charset',
|
72
|
+
:'sent_at' => :'sentAt',
|
73
|
+
:'pixel_ids' => :'pixelIds',
|
74
|
+
:'html' => :'html'
|
75
75
|
}
|
76
76
|
end
|
77
77
|
|
78
78
|
# Attribute type mapping.
|
79
79
|
def self.openapi_types
|
80
80
|
{
|
81
|
-
:'attachments' => :'Array<String>',
|
82
|
-
:'bcc' => :'Array<String>',
|
83
|
-
:'body' => :'String',
|
84
|
-
:'body_md5_hash' => :'String',
|
85
|
-
:'cc' => :'Array<String>',
|
86
|
-
:'charset' => :'String',
|
87
|
-
:'from' => :'String',
|
88
81
|
:'id' => :'String',
|
82
|
+
:'user_id' => :'String',
|
89
83
|
:'inbox_id' => :'String',
|
90
|
-
:'
|
91
|
-
:'
|
84
|
+
:'to' => :'Array<String>',
|
85
|
+
:'from' => :'String',
|
92
86
|
:'reply_to' => :'String',
|
93
|
-
:'
|
87
|
+
:'cc' => :'Array<String>',
|
88
|
+
:'bcc' => :'Array<String>',
|
89
|
+
:'attachments' => :'Array<String>',
|
94
90
|
:'subject' => :'String',
|
95
|
-
:'
|
96
|
-
:'
|
91
|
+
:'body_md5_hash' => :'String',
|
92
|
+
:'body' => :'String',
|
93
|
+
:'charset' => :'String',
|
94
|
+
:'sent_at' => :'DateTime',
|
95
|
+
:'pixel_ids' => :'Array<String>',
|
96
|
+
:'html' => :'Boolean'
|
97
97
|
}
|
98
98
|
end
|
99
99
|
|
@@ -118,24 +118,30 @@ module MailSlurpClient
|
|
118
118
|
h[k.to_sym] = v
|
119
119
|
}
|
120
120
|
|
121
|
-
if attributes.key?(:'
|
122
|
-
|
123
|
-
self.attachments = value
|
124
|
-
end
|
121
|
+
if attributes.key?(:'id')
|
122
|
+
self.id = attributes[:'id']
|
125
123
|
end
|
126
124
|
|
127
|
-
if attributes.key?(:'
|
128
|
-
|
129
|
-
|
125
|
+
if attributes.key?(:'user_id')
|
126
|
+
self.user_id = attributes[:'user_id']
|
127
|
+
end
|
128
|
+
|
129
|
+
if attributes.key?(:'inbox_id')
|
130
|
+
self.inbox_id = attributes[:'inbox_id']
|
131
|
+
end
|
132
|
+
|
133
|
+
if attributes.key?(:'to')
|
134
|
+
if (value = attributes[:'to']).is_a?(Array)
|
135
|
+
self.to = value
|
130
136
|
end
|
131
137
|
end
|
132
138
|
|
133
|
-
if attributes.key?(:'
|
134
|
-
self.
|
139
|
+
if attributes.key?(:'from')
|
140
|
+
self.from = attributes[:'from']
|
135
141
|
end
|
136
142
|
|
137
|
-
if attributes.key?(:'
|
138
|
-
self.
|
143
|
+
if attributes.key?(:'reply_to')
|
144
|
+
self.reply_to = attributes[:'reply_to']
|
139
145
|
end
|
140
146
|
|
141
147
|
if attributes.key?(:'cc')
|
@@ -144,52 +150,46 @@ module MailSlurpClient
|
|
144
150
|
end
|
145
151
|
end
|
146
152
|
|
147
|
-
if attributes.key?(:'
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
if attributes.key?(:'from')
|
152
|
-
self.from = attributes[:'from']
|
153
|
+
if attributes.key?(:'bcc')
|
154
|
+
if (value = attributes[:'bcc']).is_a?(Array)
|
155
|
+
self.bcc = value
|
156
|
+
end
|
153
157
|
end
|
154
158
|
|
155
|
-
if attributes.key?(:'
|
156
|
-
|
159
|
+
if attributes.key?(:'attachments')
|
160
|
+
if (value = attributes[:'attachments']).is_a?(Array)
|
161
|
+
self.attachments = value
|
162
|
+
end
|
157
163
|
end
|
158
164
|
|
159
|
-
if attributes.key?(:'
|
160
|
-
self.
|
165
|
+
if attributes.key?(:'subject')
|
166
|
+
self.subject = attributes[:'subject']
|
161
167
|
end
|
162
168
|
|
163
|
-
if attributes.key?(:'
|
164
|
-
self.
|
169
|
+
if attributes.key?(:'body_md5_hash')
|
170
|
+
self.body_md5_hash = attributes[:'body_md5_hash']
|
165
171
|
end
|
166
172
|
|
167
|
-
if attributes.key?(:'
|
168
|
-
|
169
|
-
self.pixel_ids = value
|
170
|
-
end
|
173
|
+
if attributes.key?(:'body')
|
174
|
+
self.body = attributes[:'body']
|
171
175
|
end
|
172
176
|
|
173
|
-
if attributes.key?(:'
|
174
|
-
self.
|
177
|
+
if attributes.key?(:'charset')
|
178
|
+
self.charset = attributes[:'charset']
|
175
179
|
end
|
176
180
|
|
177
181
|
if attributes.key?(:'sent_at')
|
178
182
|
self.sent_at = attributes[:'sent_at']
|
179
183
|
end
|
180
184
|
|
181
|
-
if attributes.key?(:'
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
if attributes.key?(:'to')
|
186
|
-
if (value = attributes[:'to']).is_a?(Array)
|
187
|
-
self.to = value
|
185
|
+
if attributes.key?(:'pixel_ids')
|
186
|
+
if (value = attributes[:'pixel_ids']).is_a?(Array)
|
187
|
+
self.pixel_ids = value
|
188
188
|
end
|
189
189
|
end
|
190
190
|
|
191
|
-
if attributes.key?(:'
|
192
|
-
self.
|
191
|
+
if attributes.key?(:'html')
|
192
|
+
self.html = attributes[:'html']
|
193
193
|
end
|
194
194
|
end
|
195
195
|
|
@@ -197,17 +197,12 @@ module MailSlurpClient
|
|
197
197
|
# @return Array for valid properties with the reasons
|
198
198
|
def list_invalid_properties
|
199
199
|
invalid_properties = Array.new
|
200
|
-
if @sent_at.nil?
|
201
|
-
invalid_properties.push('invalid value for "sent_at", sent_at cannot be nil.')
|
202
|
-
end
|
203
|
-
|
204
200
|
invalid_properties
|
205
201
|
end
|
206
202
|
|
207
203
|
# Check to see if the all the properties in the model are valid
|
208
204
|
# @return true if the model is valid
|
209
205
|
def valid?
|
210
|
-
return false if @sent_at.nil?
|
211
206
|
true
|
212
207
|
end
|
213
208
|
|
@@ -216,22 +211,22 @@ module MailSlurpClient
|
|
216
211
|
def ==(o)
|
217
212
|
return true if self.equal?(o)
|
218
213
|
self.class == o.class &&
|
219
|
-
attachments == o.attachments &&
|
220
|
-
bcc == o.bcc &&
|
221
|
-
body == o.body &&
|
222
|
-
body_md5_hash == o.body_md5_hash &&
|
223
|
-
cc == o.cc &&
|
224
|
-
charset == o.charset &&
|
225
|
-
from == o.from &&
|
226
214
|
id == o.id &&
|
215
|
+
user_id == o.user_id &&
|
227
216
|
inbox_id == o.inbox_id &&
|
228
|
-
|
229
|
-
|
217
|
+
to == o.to &&
|
218
|
+
from == o.from &&
|
230
219
|
reply_to == o.reply_to &&
|
231
|
-
|
220
|
+
cc == o.cc &&
|
221
|
+
bcc == o.bcc &&
|
222
|
+
attachments == o.attachments &&
|
232
223
|
subject == o.subject &&
|
233
|
-
|
234
|
-
|
224
|
+
body_md5_hash == o.body_md5_hash &&
|
225
|
+
body == o.body &&
|
226
|
+
charset == o.charset &&
|
227
|
+
sent_at == o.sent_at &&
|
228
|
+
pixel_ids == o.pixel_ids &&
|
229
|
+
html == o.html
|
235
230
|
end
|
236
231
|
|
237
232
|
# @see the `==` method
|
@@ -243,7 +238,7 @@ module MailSlurpClient
|
|
243
238
|
# Calculates hash code according to all attributes.
|
244
239
|
# @return [Integer] Hash code
|
245
240
|
def hash
|
246
|
-
[
|
241
|
+
[id, user_id, inbox_id, to, from, reply_to, cc, bcc, attachments, subject, body_md5_hash, body, charset, sent_at, pixel_ids, html].hash
|
247
242
|
end
|
248
243
|
|
249
244
|
# Builds the object from hash
|
@@ -13,60 +13,61 @@ OpenAPI Generator version: 4.3.1
|
|
13
13
|
require 'date'
|
14
14
|
|
15
15
|
module MailSlurpClient
|
16
|
+
# Collection of items
|
16
17
|
class SentEmailProjection
|
17
|
-
attr_accessor :
|
18
|
+
attr_accessor :id
|
18
19
|
|
19
|
-
attr_accessor :
|
20
|
+
attr_accessor :from
|
20
21
|
|
21
|
-
attr_accessor :
|
22
|
+
attr_accessor :user_id
|
22
23
|
|
23
|
-
attr_accessor :
|
24
|
+
attr_accessor :subject
|
24
25
|
|
25
|
-
attr_accessor :
|
26
|
+
attr_accessor :body_md5_hash
|
26
27
|
|
27
|
-
attr_accessor :
|
28
|
+
attr_accessor :inbox_id
|
28
29
|
|
29
|
-
attr_accessor :
|
30
|
+
attr_accessor :to
|
30
31
|
|
31
|
-
attr_accessor :
|
32
|
+
attr_accessor :attachments
|
32
33
|
|
33
|
-
attr_accessor :
|
34
|
+
attr_accessor :bcc
|
34
35
|
|
35
|
-
attr_accessor :
|
36
|
+
attr_accessor :cc
|
36
37
|
|
37
|
-
attr_accessor :
|
38
|
+
attr_accessor :created_at
|
38
39
|
|
39
40
|
# Attribute mapping from ruby-style variable name to JSON key.
|
40
41
|
def self.attribute_map
|
41
42
|
{
|
42
|
-
:'attachments' => :'attachments',
|
43
|
-
:'bcc' => :'bcc',
|
44
|
-
:'body_md5_hash' => :'bodyMD5Hash',
|
45
|
-
:'cc' => :'cc',
|
46
|
-
:'created_at' => :'createdAt',
|
47
|
-
:'from' => :'from',
|
48
43
|
:'id' => :'id',
|
49
|
-
:'
|
44
|
+
:'from' => :'from',
|
45
|
+
:'user_id' => :'userId',
|
50
46
|
:'subject' => :'subject',
|
47
|
+
:'body_md5_hash' => :'bodyMD5Hash',
|
48
|
+
:'inbox_id' => :'inboxId',
|
51
49
|
:'to' => :'to',
|
52
|
-
:'
|
50
|
+
:'attachments' => :'attachments',
|
51
|
+
:'bcc' => :'bcc',
|
52
|
+
:'cc' => :'cc',
|
53
|
+
:'created_at' => :'createdAt'
|
53
54
|
}
|
54
55
|
end
|
55
56
|
|
56
57
|
# Attribute type mapping.
|
57
58
|
def self.openapi_types
|
58
59
|
{
|
59
|
-
:'attachments' => :'Array<String>',
|
60
|
-
:'bcc' => :'Array<String>',
|
61
|
-
:'body_md5_hash' => :'String',
|
62
|
-
:'cc' => :'Array<String>',
|
63
|
-
:'created_at' => :'DateTime',
|
64
|
-
:'from' => :'String',
|
65
60
|
:'id' => :'String',
|
66
|
-
:'
|
61
|
+
:'from' => :'String',
|
62
|
+
:'user_id' => :'String',
|
67
63
|
:'subject' => :'String',
|
64
|
+
:'body_md5_hash' => :'String',
|
65
|
+
:'inbox_id' => :'String',
|
68
66
|
:'to' => :'Array<String>',
|
69
|
-
:'
|
67
|
+
:'attachments' => :'Array<String>',
|
68
|
+
:'bcc' => :'Array<String>',
|
69
|
+
:'cc' => :'Array<String>',
|
70
|
+
:'created_at' => :'DateTime'
|
70
71
|
}
|
71
72
|
end
|
72
73
|
|
@@ -91,109 +92,69 @@ module MailSlurpClient
|
|
91
92
|
h[k.to_sym] = v
|
92
93
|
}
|
93
94
|
|
94
|
-
if attributes.key?(:'
|
95
|
-
|
96
|
-
self.attachments = value
|
97
|
-
end
|
98
|
-
end
|
99
|
-
|
100
|
-
if attributes.key?(:'bcc')
|
101
|
-
if (value = attributes[:'bcc']).is_a?(Array)
|
102
|
-
self.bcc = value
|
103
|
-
end
|
104
|
-
end
|
105
|
-
|
106
|
-
if attributes.key?(:'body_md5_hash')
|
107
|
-
self.body_md5_hash = attributes[:'body_md5_hash']
|
95
|
+
if attributes.key?(:'id')
|
96
|
+
self.id = attributes[:'id']
|
108
97
|
end
|
109
98
|
|
110
|
-
if attributes.key?(:'
|
111
|
-
|
112
|
-
self.cc = value
|
113
|
-
end
|
99
|
+
if attributes.key?(:'from')
|
100
|
+
self.from = attributes[:'from']
|
114
101
|
end
|
115
102
|
|
116
|
-
if attributes.key?(:'
|
117
|
-
self.
|
103
|
+
if attributes.key?(:'user_id')
|
104
|
+
self.user_id = attributes[:'user_id']
|
118
105
|
end
|
119
106
|
|
120
|
-
if attributes.key?(:'
|
121
|
-
self.
|
107
|
+
if attributes.key?(:'subject')
|
108
|
+
self.subject = attributes[:'subject']
|
122
109
|
end
|
123
110
|
|
124
|
-
if attributes.key?(:'
|
125
|
-
self.
|
111
|
+
if attributes.key?(:'body_md5_hash')
|
112
|
+
self.body_md5_hash = attributes[:'body_md5_hash']
|
126
113
|
end
|
127
114
|
|
128
115
|
if attributes.key?(:'inbox_id')
|
129
116
|
self.inbox_id = attributes[:'inbox_id']
|
130
117
|
end
|
131
118
|
|
132
|
-
if attributes.key?(:'subject')
|
133
|
-
self.subject = attributes[:'subject']
|
134
|
-
end
|
135
|
-
|
136
119
|
if attributes.key?(:'to')
|
137
120
|
if (value = attributes[:'to']).is_a?(Array)
|
138
121
|
self.to = value
|
139
122
|
end
|
140
123
|
end
|
141
124
|
|
142
|
-
if attributes.key?(:'
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
# Show invalid properties with the reasons. Usually used together with valid?
|
148
|
-
# @return Array for valid properties with the reasons
|
149
|
-
def list_invalid_properties
|
150
|
-
invalid_properties = Array.new
|
151
|
-
if @attachments.nil?
|
152
|
-
invalid_properties.push('invalid value for "attachments", attachments cannot be nil.')
|
153
|
-
end
|
154
|
-
|
155
|
-
if @bcc.nil?
|
156
|
-
invalid_properties.push('invalid value for "bcc", bcc cannot be nil.')
|
157
|
-
end
|
158
|
-
|
159
|
-
if @cc.nil?
|
160
|
-
invalid_properties.push('invalid value for "cc", cc cannot be nil.')
|
161
|
-
end
|
162
|
-
|
163
|
-
if @created_at.nil?
|
164
|
-
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
165
|
-
end
|
166
|
-
|
167
|
-
if @id.nil?
|
168
|
-
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
125
|
+
if attributes.key?(:'attachments')
|
126
|
+
if (value = attributes[:'attachments']).is_a?(Array)
|
127
|
+
self.attachments = value
|
128
|
+
end
|
169
129
|
end
|
170
130
|
|
171
|
-
if
|
172
|
-
|
131
|
+
if attributes.key?(:'bcc')
|
132
|
+
if (value = attributes[:'bcc']).is_a?(Array)
|
133
|
+
self.bcc = value
|
134
|
+
end
|
173
135
|
end
|
174
136
|
|
175
|
-
if
|
176
|
-
|
137
|
+
if attributes.key?(:'cc')
|
138
|
+
if (value = attributes[:'cc']).is_a?(Array)
|
139
|
+
self.cc = value
|
140
|
+
end
|
177
141
|
end
|
178
142
|
|
179
|
-
if
|
180
|
-
|
143
|
+
if attributes.key?(:'created_at')
|
144
|
+
self.created_at = attributes[:'created_at']
|
181
145
|
end
|
146
|
+
end
|
182
147
|
|
148
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
149
|
+
# @return Array for valid properties with the reasons
|
150
|
+
def list_invalid_properties
|
151
|
+
invalid_properties = Array.new
|
183
152
|
invalid_properties
|
184
153
|
end
|
185
154
|
|
186
155
|
# Check to see if the all the properties in the model are valid
|
187
156
|
# @return true if the model is valid
|
188
157
|
def valid?
|
189
|
-
return false if @attachments.nil?
|
190
|
-
return false if @bcc.nil?
|
191
|
-
return false if @cc.nil?
|
192
|
-
return false if @created_at.nil?
|
193
|
-
return false if @id.nil?
|
194
|
-
return false if @inbox_id.nil?
|
195
|
-
return false if @to.nil?
|
196
|
-
return false if @user_id.nil?
|
197
158
|
true
|
198
159
|
end
|
199
160
|
|
@@ -202,17 +163,17 @@ module MailSlurpClient
|
|
202
163
|
def ==(o)
|
203
164
|
return true if self.equal?(o)
|
204
165
|
self.class == o.class &&
|
205
|
-
attachments == o.attachments &&
|
206
|
-
bcc == o.bcc &&
|
207
|
-
body_md5_hash == o.body_md5_hash &&
|
208
|
-
cc == o.cc &&
|
209
|
-
created_at == o.created_at &&
|
210
|
-
from == o.from &&
|
211
166
|
id == o.id &&
|
212
|
-
|
167
|
+
from == o.from &&
|
168
|
+
user_id == o.user_id &&
|
213
169
|
subject == o.subject &&
|
170
|
+
body_md5_hash == o.body_md5_hash &&
|
171
|
+
inbox_id == o.inbox_id &&
|
214
172
|
to == o.to &&
|
215
|
-
|
173
|
+
attachments == o.attachments &&
|
174
|
+
bcc == o.bcc &&
|
175
|
+
cc == o.cc &&
|
176
|
+
created_at == o.created_at
|
216
177
|
end
|
217
178
|
|
218
179
|
# @see the `==` method
|
@@ -224,7 +185,7 @@ module MailSlurpClient
|
|
224
185
|
# Calculates hash code according to all attributes.
|
225
186
|
# @return [Integer] Hash code
|
226
187
|
def hash
|
227
|
-
[
|
188
|
+
[id, from, user_id, subject, body_md5_hash, inbox_id, to, attachments, bcc, cc, created_at].hash
|
228
189
|
end
|
229
190
|
|
230
191
|
# Builds the object from hash
|
@@ -14,35 +14,35 @@ require 'date'
|
|
14
14
|
|
15
15
|
module MailSlurpClient
|
16
16
|
class SimpleSendEmailOptions
|
17
|
-
# Body of the email message. Supports HTML
|
18
|
-
attr_accessor :body
|
19
|
-
|
20
17
|
# ID of inbox to send from. If null an inbox will be created for sending
|
21
18
|
attr_accessor :sender_id
|
22
19
|
|
23
|
-
# Subject line of the email
|
24
|
-
attr_accessor :subject
|
25
|
-
|
26
20
|
# Email address to send to
|
27
21
|
attr_accessor :to
|
28
22
|
|
23
|
+
# Body of the email message. Supports HTML
|
24
|
+
attr_accessor :body
|
25
|
+
|
26
|
+
# Subject line of the email
|
27
|
+
attr_accessor :subject
|
28
|
+
|
29
29
|
# Attribute mapping from ruby-style variable name to JSON key.
|
30
30
|
def self.attribute_map
|
31
31
|
{
|
32
|
-
:'body' => :'body',
|
33
32
|
:'sender_id' => :'senderId',
|
34
|
-
:'
|
35
|
-
:'
|
33
|
+
:'to' => :'to',
|
34
|
+
:'body' => :'body',
|
35
|
+
:'subject' => :'subject'
|
36
36
|
}
|
37
37
|
end
|
38
38
|
|
39
39
|
# Attribute type mapping.
|
40
40
|
def self.openapi_types
|
41
41
|
{
|
42
|
-
:'body' => :'String',
|
43
42
|
:'sender_id' => :'String',
|
44
|
-
:'
|
45
|
-
:'
|
43
|
+
:'to' => :'String',
|
44
|
+
:'body' => :'String',
|
45
|
+
:'subject' => :'String'
|
46
46
|
}
|
47
47
|
end
|
48
48
|
|
@@ -67,21 +67,21 @@ module MailSlurpClient
|
|
67
67
|
h[k.to_sym] = v
|
68
68
|
}
|
69
69
|
|
70
|
-
if attributes.key?(:'body')
|
71
|
-
self.body = attributes[:'body']
|
72
|
-
end
|
73
|
-
|
74
70
|
if attributes.key?(:'sender_id')
|
75
71
|
self.sender_id = attributes[:'sender_id']
|
76
72
|
end
|
77
73
|
|
78
|
-
if attributes.key?(:'subject')
|
79
|
-
self.subject = attributes[:'subject']
|
80
|
-
end
|
81
|
-
|
82
74
|
if attributes.key?(:'to')
|
83
75
|
self.to = attributes[:'to']
|
84
76
|
end
|
77
|
+
|
78
|
+
if attributes.key?(:'body')
|
79
|
+
self.body = attributes[:'body']
|
80
|
+
end
|
81
|
+
|
82
|
+
if attributes.key?(:'subject')
|
83
|
+
self.subject = attributes[:'subject']
|
84
|
+
end
|
85
85
|
end
|
86
86
|
|
87
87
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -102,10 +102,10 @@ module MailSlurpClient
|
|
102
102
|
def ==(o)
|
103
103
|
return true if self.equal?(o)
|
104
104
|
self.class == o.class &&
|
105
|
-
body == o.body &&
|
106
105
|
sender_id == o.sender_id &&
|
107
|
-
|
108
|
-
|
106
|
+
to == o.to &&
|
107
|
+
body == o.body &&
|
108
|
+
subject == o.subject
|
109
109
|
end
|
110
110
|
|
111
111
|
# @see the `==` method
|
@@ -117,7 +117,7 @@ module MailSlurpClient
|
|
117
117
|
# Calculates hash code according to all attributes.
|
118
118
|
# @return [Integer] Hash code
|
119
119
|
def hash
|
120
|
-
[
|
120
|
+
[sender_id, to, body, subject].hash
|
121
121
|
end
|
122
122
|
|
123
123
|
# Builds the object from hash
|