mailslurp_client 15.0.2 → 15.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE +1 -1
- data/lib/mailslurp_client/api/alias_controller_api.rb +60 -56
- data/lib/mailslurp_client/api/attachment_controller_api.rb +50 -61
- data/lib/mailslurp_client/api/bounce_controller_api.rb +27 -19
- data/lib/mailslurp_client/api/bulk_actions_controller_api.rb +16 -16
- data/lib/mailslurp_client/api/common_actions_controller_api.rb +129 -68
- data/lib/mailslurp_client/api/contact_controller_api.rb +23 -23
- data/lib/mailslurp_client/api/domain_controller_api.rb +33 -33
- data/lib/mailslurp_client/api/email_controller_api.rb +191 -117
- data/lib/mailslurp_client/api/expired_controller_api.rb +20 -20
- data/lib/mailslurp_client/api/export_controller_api.rb +39 -39
- data/lib/mailslurp_client/api/form_controller_api.rb +17 -19
- data/lib/mailslurp_client/api/group_controller_api.rb +53 -53
- data/lib/mailslurp_client/api/inbox_controller_api.rb +360 -226
- data/lib/mailslurp_client/api/inbox_forwarder_controller_api.rb +34 -30
- data/lib/mailslurp_client/api/inbox_ruleset_controller_api.rb +34 -30
- data/lib/mailslurp_client/api/mail_server_controller_api.rb +27 -27
- data/lib/mailslurp_client/api/missed_email_controller_api.rb +55 -43
- data/lib/mailslurp_client/api/sent_emails_controller_api.rb +158 -48
- data/lib/mailslurp_client/api/template_controller_api.rb +22 -22
- data/lib/mailslurp_client/api/tracking_controller_api.rb +17 -17
- data/lib/mailslurp_client/api/wait_for_controller_api.rb +129 -89
- data/lib/mailslurp_client/api/webhook_controller_api.rb +103 -87
- data/lib/mailslurp_client/api_client.rb +1 -1
- data/lib/mailslurp_client/api_error.rb +1 -1
- data/lib/mailslurp_client/configuration.rb +3 -3
- data/lib/mailslurp_client/models/abstract_webhook_payload.rb +11 -26
- data/lib/mailslurp_client/models/alias_dto.rb +46 -57
- data/lib/mailslurp_client/models/alias_projection.rb +38 -68
- data/lib/mailslurp_client/models/attachment_entity.rb +35 -55
- data/lib/mailslurp_client/models/attachment_meta_data.rb +22 -22
- data/lib/mailslurp_client/models/attachment_projection.rb +30 -45
- data/lib/mailslurp_client/models/basic_auth_options.rb +1 -11
- data/lib/mailslurp_client/models/bounce_projection.rb +14 -24
- data/lib/mailslurp_client/models/bounce_recipient.rb +23 -43
- data/lib/mailslurp_client/models/bounced_email_dto.rb +57 -77
- data/lib/mailslurp_client/models/bounced_recipient_dto.rb +17 -32
- data/lib/mailslurp_client/models/bulk_send_email_options.rb +6 -1
- data/lib/mailslurp_client/models/condition_option.rb +3 -3
- data/lib/mailslurp_client/models/contact_dto.rb +54 -74
- data/lib/mailslurp_client/models/contact_projection.rb +43 -53
- data/lib/mailslurp_client/models/content_match_options.rb +1 -1
- data/lib/mailslurp_client/models/count_dto.rb +206 -0
- data/lib/mailslurp_client/models/create_alias_options.rb +1 -1
- data/lib/mailslurp_client/models/create_contact_options.rb +43 -43
- data/lib/mailslurp_client/models/create_domain_options.rb +22 -17
- data/lib/mailslurp_client/models/create_group_options.rb +1 -6
- data/lib/mailslurp_client/models/create_inbox_dto.rb +59 -59
- data/lib/mailslurp_client/models/create_inbox_forwarder_options.rb +20 -15
- data/lib/mailslurp_client/models/create_inbox_ruleset_options.rb +24 -24
- data/lib/mailslurp_client/models/create_template_options.rb +1 -11
- data/lib/mailslurp_client/models/create_tracking_pixel_options.rb +1 -1
- data/lib/mailslurp_client/models/create_webhook_options.rb +19 -19
- data/lib/mailslurp_client/models/describe_domain_options.rb +1 -1
- data/lib/mailslurp_client/models/describe_mail_server_domain_result.rb +16 -26
- data/lib/mailslurp_client/models/dns_lookup_options.rb +25 -15
- data/lib/mailslurp_client/models/dns_lookup_result.rb +24 -43
- data/lib/mailslurp_client/models/dns_lookup_results.rb +1 -6
- data/lib/mailslurp_client/models/domain_dto.rb +60 -81
- data/lib/mailslurp_client/models/domain_name_record.rb +12 -31
- data/lib/mailslurp_client/models/domain_preview.rb +27 -51
- data/lib/mailslurp_client/models/download_attachment_dto.rb +1 -1
- data/lib/mailslurp_client/models/email.rb +135 -136
- data/lib/mailslurp_client/models/email_analysis.rb +29 -29
- data/lib/mailslurp_client/models/email_content_match_result.rb +14 -24
- data/lib/mailslurp_client/models/email_links_result.rb +14 -24
- data/lib/mailslurp_client/models/email_preview.rb +48 -48
- data/lib/mailslurp_client/models/email_projection.rb +67 -87
- data/lib/mailslurp_client/models/email_recipients.rb +17 -16
- data/lib/mailslurp_client/models/email_text_lines_result.rb +14 -24
- data/lib/mailslurp_client/models/email_verification_result.rb +17 -37
- data/lib/mailslurp_client/models/expiration_defaults.rb +17 -27
- data/lib/mailslurp_client/models/expired_inbox_dto.rb +14 -29
- data/lib/mailslurp_client/models/expired_inbox_record_projection.rb +23 -43
- data/lib/mailslurp_client/models/export_link.rb +1 -6
- data/lib/mailslurp_client/models/export_options.rb +2 -7
- data/lib/mailslurp_client/models/flush_expired_inboxes_result.rb +14 -24
- data/lib/mailslurp_client/models/forward_email_options.rb +37 -32
- data/lib/mailslurp_client/models/gravatar_url.rb +14 -24
- data/lib/mailslurp_client/models/group_contacts_dto.rb +14 -24
- data/lib/mailslurp_client/models/group_dto.rb +23 -38
- data/lib/mailslurp_client/models/group_projection.rb +23 -38
- data/lib/mailslurp_client/models/html_validation_result.rb +14 -15
- data/lib/mailslurp_client/models/{inbox.rb → inbox_dto.rb} +48 -58
- data/lib/mailslurp_client/models/inbox_exists_dto.rb +1 -6
- data/lib/mailslurp_client/models/inbox_forwarder_dto.rb +32 -62
- data/lib/mailslurp_client/models/inbox_forwarder_test_options.rb +1 -6
- data/lib/mailslurp_client/models/inbox_forwarder_test_result.rb +14 -24
- data/lib/mailslurp_client/models/inbox_preview.rb +39 -39
- data/lib/mailslurp_client/models/inbox_ruleset_dto.rb +44 -79
- data/lib/mailslurp_client/models/inbox_ruleset_test_options.rb +1 -6
- data/lib/mailslurp_client/models/inbox_ruleset_test_result.rb +14 -19
- data/lib/mailslurp_client/models/inline_object.rb +221 -0
- data/lib/mailslurp_client/models/ip_address_result.rb +1 -11
- data/lib/mailslurp_client/models/json_schema_dto.rb +1 -6
- data/lib/mailslurp_client/models/match_option.rb +8 -3
- data/lib/mailslurp_client/models/match_options.rb +17 -17
- data/lib/mailslurp_client/models/missed_email.rb +68 -103
- data/lib/mailslurp_client/models/missed_email_projection.rb +20 -30
- data/lib/mailslurp_client/models/name_server_record.rb +11 -31
- data/lib/mailslurp_client/models/organization_inbox_projection.rb +45 -45
- data/lib/mailslurp_client/models/page_alias.rb +50 -50
- data/lib/mailslurp_client/models/page_attachment_entity.rb +50 -50
- data/lib/mailslurp_client/models/page_bounced_email.rb +50 -50
- data/lib/mailslurp_client/models/page_bounced_recipients.rb +50 -50
- data/lib/mailslurp_client/models/page_contact_projection.rb +50 -50
- data/lib/mailslurp_client/models/page_email_preview.rb +50 -50
- data/lib/mailslurp_client/models/page_email_projection.rb +50 -50
- data/lib/mailslurp_client/models/page_expired_inbox_record_projection.rb +50 -50
- data/lib/mailslurp_client/models/page_group_projection.rb +50 -50
- data/lib/mailslurp_client/models/page_inbox_forwarder_dto.rb +50 -50
- data/lib/mailslurp_client/models/page_inbox_projection.rb +50 -50
- data/lib/mailslurp_client/models/page_inbox_ruleset_dto.rb +50 -50
- data/lib/mailslurp_client/models/page_missed_email_projection.rb +50 -50
- data/lib/mailslurp_client/models/page_organization_inbox_projection.rb +50 -50
- data/lib/mailslurp_client/models/page_sent_email_projection.rb +50 -50
- data/lib/mailslurp_client/models/page_template_projection.rb +50 -50
- data/lib/mailslurp_client/models/page_thread_projection.rb +50 -50
- data/lib/mailslurp_client/models/page_tracking_pixel_projection.rb +50 -50
- data/lib/mailslurp_client/models/page_unknown_missed_email_projection.rb +50 -50
- data/lib/mailslurp_client/models/page_webhook_projection.rb +50 -50
- data/lib/mailslurp_client/models/page_webhook_result.rb +50 -50
- data/lib/mailslurp_client/models/pageable.rb +29 -29
- data/lib/mailslurp_client/models/raw_email_json.rb +1 -6
- data/lib/mailslurp_client/models/recipient.rb +14 -24
- data/lib/mailslurp_client/models/reply_to_alias_email_options.rb +39 -38
- data/lib/mailslurp_client/models/reply_to_email_options.rb +52 -51
- data/lib/mailslurp_client/models/send_email_options.rb +108 -116
- data/lib/mailslurp_client/models/sender.rb +15 -24
- data/lib/mailslurp_client/models/sent_email_dto.rb +98 -103
- data/lib/mailslurp_client/models/sent_email_projection.rb +64 -103
- data/lib/mailslurp_client/models/set_inbox_favourited_options.rb +1 -1
- data/lib/mailslurp_client/models/simple_send_email_options.rb +25 -25
- data/lib/mailslurp_client/models/sort.rb +14 -14
- data/lib/mailslurp_client/models/template_dto.rb +23 -48
- data/lib/mailslurp_client/models/template_projection.rb +26 -51
- data/lib/mailslurp_client/models/template_variable.rb +1 -11
- data/lib/mailslurp_client/models/test_new_inbox_forwarder_options.rb +1 -11
- data/lib/mailslurp_client/models/test_new_inbox_ruleset_options.rb +1 -11
- data/lib/mailslurp_client/models/thread_projection.rb +58 -93
- data/lib/mailslurp_client/models/tracking_pixel_dto.rb +44 -69
- data/lib/mailslurp_client/models/tracking_pixel_projection.rb +35 -55
- data/lib/mailslurp_client/models/unknown_missed_email_projection.rb +20 -30
- data/lib/mailslurp_client/models/unread_count.rb +1 -6
- data/lib/mailslurp_client/models/unseen_error_count_dto.rb +1 -6
- data/lib/mailslurp_client/models/update_alias_options.rb +1 -1
- data/lib/mailslurp_client/models/update_domain_options.rb +1 -1
- data/lib/mailslurp_client/models/update_group_contacts.rb +1 -6
- data/lib/mailslurp_client/models/update_inbox_options.rb +27 -27
- data/lib/mailslurp_client/models/upload_attachment_options.rb +15 -15
- data/lib/mailslurp_client/models/validation_dto.rb +1 -1
- data/lib/mailslurp_client/models/validation_message.rb +2 -6
- data/lib/mailslurp_client/models/verify_email_address_options.rb +1 -6
- data/lib/mailslurp_client/models/wait_for_conditions.rb +49 -59
- data/lib/mailslurp_client/models/webhook_dto.rb +65 -70
- data/lib/mailslurp_client/models/webhook_email_opened_payload.rb +43 -43
- data/lib/mailslurp_client/models/webhook_email_read_payload.rb +50 -50
- data/lib/mailslurp_client/models/webhook_new_attachment_payload.rb +44 -44
- data/lib/mailslurp_client/models/webhook_new_contact_payload.rb +76 -96
- data/lib/mailslurp_client/models/webhook_new_email_payload.rb +85 -85
- data/lib/mailslurp_client/models/webhook_projection.rb +35 -60
- data/lib/mailslurp_client/models/webhook_redrive_result.rb +14 -24
- data/lib/mailslurp_client/models/webhook_result_dto.rb +77 -127
- data/lib/mailslurp_client/models/webhook_test_request.rb +22 -37
- data/lib/mailslurp_client/models/webhook_test_response.rb +14 -14
- data/lib/mailslurp_client/models/webhook_test_result.rb +14 -24
- data/lib/mailslurp_client/version.rb +2 -2
- data/lib/mailslurp_client.rb +4 -2
- metadata +5 -3
@@ -4,7 +4,7 @@
|
|
4
4
|
#MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://www.mailslurp.com/docs/) - [Examples](https://github.com/mailslurp/examples) repository
|
5
5
|
|
6
6
|
The version of the OpenAPI document: 6.5.2
|
7
|
-
|
7
|
+
Contact: contact@mailslurp.dev
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 4.3.1
|
10
10
|
|
@@ -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
|
@@ -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
|
|
@@ -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
26
|
attr_accessor :created_at
|
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 :body_md5_hash
|
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
|
+
:'created_at' => :'createdAt',
|
48
|
+
:'inbox_id' => :'inboxId',
|
51
49
|
:'to' => :'to',
|
52
|
-
:'
|
50
|
+
:'attachments' => :'attachments',
|
51
|
+
:'bcc' => :'bcc',
|
52
|
+
:'cc' => :'cc',
|
53
|
+
:'body_md5_hash' => :'bodyMD5Hash'
|
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
|
+
:'created_at' => :'DateTime',
|
65
|
+
:'inbox_id' => :'String',
|
68
66
|
:'to' => :'Array<String>',
|
69
|
-
:'
|
67
|
+
:'attachments' => :'Array<String>',
|
68
|
+
:'bcc' => :'Array<String>',
|
69
|
+
:'cc' => :'Array<String>',
|
70
|
+
:'body_md5_hash' => :'String'
|
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
|
95
|
+
if attributes.key?(:'id')
|
96
|
+
self.id = attributes[:'id']
|
98
97
|
end
|
99
98
|
|
100
|
-
if attributes.key?(:'
|
101
|
-
|
102
|
-
self.bcc = value
|
103
|
-
end
|
99
|
+
if attributes.key?(:'from')
|
100
|
+
self.from = attributes[:'from']
|
104
101
|
end
|
105
102
|
|
106
|
-
if attributes.key?(:'
|
107
|
-
self.
|
103
|
+
if attributes.key?(:'user_id')
|
104
|
+
self.user_id = attributes[:'user_id']
|
108
105
|
end
|
109
106
|
|
110
|
-
if attributes.key?(:'
|
111
|
-
|
112
|
-
self.cc = value
|
113
|
-
end
|
107
|
+
if attributes.key?(:'subject')
|
108
|
+
self.subject = attributes[:'subject']
|
114
109
|
end
|
115
110
|
|
116
111
|
if attributes.key?(:'created_at')
|
117
112
|
self.created_at = attributes[:'created_at']
|
118
113
|
end
|
119
114
|
|
120
|
-
if attributes.key?(:'from')
|
121
|
-
self.from = attributes[:'from']
|
122
|
-
end
|
123
|
-
|
124
|
-
if attributes.key?(:'id')
|
125
|
-
self.id = attributes[:'id']
|
126
|
-
end
|
127
|
-
|
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?(:'body_md5_hash')
|
144
|
+
self.body_md5_hash = attributes[:'body_md5_hash']
|
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
|
+
created_at == o.created_at &&
|
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
|
+
body_md5_hash == o.body_md5_hash
|
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, created_at, inbox_id, to, attachments, bcc, cc, body_md5_hash].hash
|
228
189
|
end
|
229
190
|
|
230
191
|
# 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
|
|