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
|
|
@@ -15,14 +15,43 @@ require 'date'
|
|
15
15
|
module MailSlurpClient
|
16
16
|
# Email entity (also known as EmailDto). When an SMTP email message is received by MailSlurp it is parsed. The body and attachments are written to disk and the fields such as to, from, subject etc are stored in a database. The `body` contains the email content. If you want the original SMTP message see the `getRawEmail` endpoints. The attachments can be fetched using the AttachmentController
|
17
17
|
class Email
|
18
|
-
|
18
|
+
# ID of the email entity
|
19
|
+
attr_accessor :id
|
19
20
|
|
20
|
-
#
|
21
|
-
attr_accessor :
|
21
|
+
# ID of user that email belongs to
|
22
|
+
attr_accessor :user_id
|
23
|
+
|
24
|
+
# ID of the inbox that received the email
|
25
|
+
attr_accessor :inbox_id
|
26
|
+
|
27
|
+
# List of `To` recipient email addresses that the email was addressed to. See recipients object for names.
|
28
|
+
attr_accessor :to
|
29
|
+
|
30
|
+
# Who the email was sent from. An email address - see fromName for the sender name.
|
31
|
+
attr_accessor :from
|
32
|
+
|
33
|
+
attr_accessor :sender
|
34
|
+
|
35
|
+
attr_accessor :recipients
|
36
|
+
|
37
|
+
# The `replyTo` field on the received email message
|
38
|
+
attr_accessor :reply_to
|
39
|
+
|
40
|
+
# List of `CC` recipients email addresses that the email was addressed to. See recipients object for names.
|
41
|
+
attr_accessor :cc
|
22
42
|
|
23
43
|
# List of `BCC` recipients email addresses that the email was addressed to. See recipients object for names.
|
24
44
|
attr_accessor :bcc
|
25
45
|
|
46
|
+
# Collection of SMTP headers attached to email
|
47
|
+
attr_accessor :headers
|
48
|
+
|
49
|
+
# List of IDs of attachments found in the email. Use these IDs with the Inbox and Email Controllers to download attachments and attachment meta data such as filesize, name, extension.
|
50
|
+
attr_accessor :attachments
|
51
|
+
|
52
|
+
# The subject line of the email message as specified by SMTP subject header
|
53
|
+
attr_accessor :subject
|
54
|
+
|
26
55
|
# The body of the email message as text parsed from the SMTP message body (does not include attachments). Fetch the raw content to access the SMTP message and use the attachments property to access attachments. The body is stored separately to the email entity so the body is not returned in paginated results only in full single email or wait requests.
|
27
56
|
attr_accessor :body
|
28
57
|
|
@@ -32,110 +61,81 @@ module MailSlurpClient
|
|
32
61
|
# A hash signature of the email message using MD5. Useful for comparing emails without fetching full body.
|
33
62
|
attr_accessor :body_md5_hash
|
34
63
|
|
35
|
-
#
|
36
|
-
attr_accessor :
|
64
|
+
# Is the email body content type HTML?
|
65
|
+
attr_accessor :is_html
|
37
66
|
|
38
67
|
# Detected character set of the email body such as UTF-8
|
39
68
|
attr_accessor :charset
|
40
69
|
|
70
|
+
attr_accessor :analysis
|
71
|
+
|
41
72
|
# When was the email received by MailSlurp
|
42
73
|
attr_accessor :created_at
|
43
74
|
|
44
|
-
#
|
45
|
-
attr_accessor :
|
46
|
-
|
47
|
-
# Collection of SMTP headers attached to email
|
48
|
-
attr_accessor :headers
|
49
|
-
|
50
|
-
# ID of the email entity
|
51
|
-
attr_accessor :id
|
52
|
-
|
53
|
-
# ID of the inbox that received the email
|
54
|
-
attr_accessor :inbox_id
|
55
|
-
|
56
|
-
# Is the email body HTML
|
57
|
-
attr_accessor :is_html
|
75
|
+
# When was the email last updated
|
76
|
+
attr_accessor :updated_at
|
58
77
|
|
59
78
|
# Read flag. Has the email ever been viewed in the dashboard or fetched via the API with a hydrated body? If so the email is marked as read. Paginated results do not affect read status. Read status is different to email opened event as it depends on your own account accessing the email. Email opened is determined by tracking pixels sent to other uses if enable during sending. You can listened for both email read and email opened events using webhooks.
|
60
79
|
attr_accessor :read
|
61
80
|
|
62
|
-
attr_accessor :recipients
|
63
|
-
|
64
|
-
# The `replyTo` field on the received email message
|
65
|
-
attr_accessor :reply_to
|
66
|
-
|
67
|
-
attr_accessor :sender
|
68
|
-
|
69
|
-
# The subject line of the email message as specified by SMTP subject header
|
70
|
-
attr_accessor :subject
|
71
|
-
|
72
81
|
# Can the email be accessed by organization team members
|
73
82
|
attr_accessor :team_access
|
74
83
|
|
75
|
-
# List of `To` recipient email addresses that the email was addressed to. See recipients object for names.
|
76
|
-
attr_accessor :to
|
77
|
-
|
78
|
-
# When was the email last updated
|
79
|
-
attr_accessor :updated_at
|
80
|
-
|
81
|
-
# ID of user that email belongs to
|
82
|
-
attr_accessor :user_id
|
83
|
-
|
84
84
|
# Attribute mapping from ruby-style variable name to JSON key.
|
85
85
|
def self.attribute_map
|
86
86
|
{
|
87
|
-
:'
|
88
|
-
:'
|
87
|
+
:'id' => :'id',
|
88
|
+
:'user_id' => :'userId',
|
89
|
+
:'inbox_id' => :'inboxId',
|
90
|
+
:'to' => :'to',
|
91
|
+
:'from' => :'from',
|
92
|
+
:'sender' => :'sender',
|
93
|
+
:'recipients' => :'recipients',
|
94
|
+
:'reply_to' => :'replyTo',
|
95
|
+
:'cc' => :'cc',
|
89
96
|
:'bcc' => :'bcc',
|
97
|
+
:'headers' => :'headers',
|
98
|
+
:'attachments' => :'attachments',
|
99
|
+
:'subject' => :'subject',
|
90
100
|
:'body' => :'body',
|
91
101
|
:'body_excerpt' => :'bodyExcerpt',
|
92
102
|
:'body_md5_hash' => :'bodyMD5Hash',
|
93
|
-
:'
|
103
|
+
:'is_html' => :'isHTML',
|
94
104
|
:'charset' => :'charset',
|
105
|
+
:'analysis' => :'analysis',
|
95
106
|
:'created_at' => :'createdAt',
|
96
|
-
:'from' => :'from',
|
97
|
-
:'headers' => :'headers',
|
98
|
-
:'id' => :'id',
|
99
|
-
:'inbox_id' => :'inboxId',
|
100
|
-
:'is_html' => :'isHTML',
|
101
|
-
:'read' => :'read',
|
102
|
-
:'recipients' => :'recipients',
|
103
|
-
:'reply_to' => :'replyTo',
|
104
|
-
:'sender' => :'sender',
|
105
|
-
:'subject' => :'subject',
|
106
|
-
:'team_access' => :'teamAccess',
|
107
|
-
:'to' => :'to',
|
108
107
|
:'updated_at' => :'updatedAt',
|
109
|
-
:'
|
108
|
+
:'read' => :'read',
|
109
|
+
:'team_access' => :'teamAccess'
|
110
110
|
}
|
111
111
|
end
|
112
112
|
|
113
113
|
# Attribute type mapping.
|
114
114
|
def self.openapi_types
|
115
115
|
{
|
116
|
-
:'
|
117
|
-
:'
|
116
|
+
:'id' => :'String',
|
117
|
+
:'user_id' => :'String',
|
118
|
+
:'inbox_id' => :'String',
|
119
|
+
:'to' => :'Array<String>',
|
120
|
+
:'from' => :'String',
|
121
|
+
:'sender' => :'Sender',
|
122
|
+
:'recipients' => :'EmailRecipients',
|
123
|
+
:'reply_to' => :'String',
|
124
|
+
:'cc' => :'Array<String>',
|
118
125
|
:'bcc' => :'Array<String>',
|
126
|
+
:'headers' => :'Hash<String, String>',
|
127
|
+
:'attachments' => :'Array<String>',
|
128
|
+
:'subject' => :'String',
|
119
129
|
:'body' => :'String',
|
120
130
|
:'body_excerpt' => :'String',
|
121
131
|
:'body_md5_hash' => :'String',
|
122
|
-
:'
|
132
|
+
:'is_html' => :'Boolean',
|
123
133
|
:'charset' => :'String',
|
134
|
+
:'analysis' => :'EmailAnalysis',
|
124
135
|
:'created_at' => :'DateTime',
|
125
|
-
:'from' => :'String',
|
126
|
-
:'headers' => :'Hash<String, String>',
|
127
|
-
:'id' => :'String',
|
128
|
-
:'inbox_id' => :'String',
|
129
|
-
:'is_html' => :'Boolean',
|
130
|
-
:'read' => :'Boolean',
|
131
|
-
:'recipients' => :'EmailRecipients',
|
132
|
-
:'reply_to' => :'String',
|
133
|
-
:'sender' => :'Sender',
|
134
|
-
:'subject' => :'String',
|
135
|
-
:'team_access' => :'Boolean',
|
136
|
-
:'to' => :'Array<String>',
|
137
136
|
:'updated_at' => :'DateTime',
|
138
|
-
:'
|
137
|
+
:'read' => :'Boolean',
|
138
|
+
:'team_access' => :'Boolean'
|
139
139
|
}
|
140
140
|
end
|
141
141
|
|
@@ -160,32 +160,38 @@ module MailSlurpClient
|
|
160
160
|
h[k.to_sym] = v
|
161
161
|
}
|
162
162
|
|
163
|
-
if attributes.key?(:'
|
164
|
-
self.
|
163
|
+
if attributes.key?(:'id')
|
164
|
+
self.id = attributes[:'id']
|
165
165
|
end
|
166
166
|
|
167
|
-
if attributes.key?(:'
|
168
|
-
|
169
|
-
self.attachments = value
|
170
|
-
end
|
167
|
+
if attributes.key?(:'user_id')
|
168
|
+
self.user_id = attributes[:'user_id']
|
171
169
|
end
|
172
170
|
|
173
|
-
if attributes.key?(:'
|
174
|
-
|
175
|
-
|
171
|
+
if attributes.key?(:'inbox_id')
|
172
|
+
self.inbox_id = attributes[:'inbox_id']
|
173
|
+
end
|
174
|
+
|
175
|
+
if attributes.key?(:'to')
|
176
|
+
if (value = attributes[:'to']).is_a?(Array)
|
177
|
+
self.to = value
|
176
178
|
end
|
177
179
|
end
|
178
180
|
|
179
|
-
if attributes.key?(:'
|
180
|
-
self.
|
181
|
+
if attributes.key?(:'from')
|
182
|
+
self.from = attributes[:'from']
|
181
183
|
end
|
182
184
|
|
183
|
-
if attributes.key?(:'
|
184
|
-
self.
|
185
|
+
if attributes.key?(:'sender')
|
186
|
+
self.sender = attributes[:'sender']
|
185
187
|
end
|
186
188
|
|
187
|
-
if attributes.key?(:'
|
188
|
-
self.
|
189
|
+
if attributes.key?(:'recipients')
|
190
|
+
self.recipients = attributes[:'recipients']
|
191
|
+
end
|
192
|
+
|
193
|
+
if attributes.key?(:'reply_to')
|
194
|
+
self.reply_to = attributes[:'reply_to']
|
189
195
|
end
|
190
196
|
|
191
197
|
if attributes.key?(:'cc')
|
@@ -194,16 +200,10 @@ module MailSlurpClient
|
|
194
200
|
end
|
195
201
|
end
|
196
202
|
|
197
|
-
if attributes.key?(:'
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
if attributes.key?(:'created_at')
|
202
|
-
self.created_at = attributes[:'created_at']
|
203
|
-
end
|
204
|
-
|
205
|
-
if attributes.key?(:'from')
|
206
|
-
self.from = attributes[:'from']
|
203
|
+
if attributes.key?(:'bcc')
|
204
|
+
if (value = attributes[:'bcc']).is_a?(Array)
|
205
|
+
self.bcc = value
|
206
|
+
end
|
207
207
|
end
|
208
208
|
|
209
209
|
if attributes.key?(:'headers')
|
@@ -212,54 +212,54 @@ module MailSlurpClient
|
|
212
212
|
end
|
213
213
|
end
|
214
214
|
|
215
|
-
if attributes.key?(:'
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
if attributes.key?(:'inbox_id')
|
220
|
-
self.inbox_id = attributes[:'inbox_id']
|
215
|
+
if attributes.key?(:'attachments')
|
216
|
+
if (value = attributes[:'attachments']).is_a?(Array)
|
217
|
+
self.attachments = value
|
218
|
+
end
|
221
219
|
end
|
222
220
|
|
223
|
-
if attributes.key?(:'
|
224
|
-
self.
|
221
|
+
if attributes.key?(:'subject')
|
222
|
+
self.subject = attributes[:'subject']
|
225
223
|
end
|
226
224
|
|
227
|
-
if attributes.key?(:'
|
228
|
-
self.
|
225
|
+
if attributes.key?(:'body')
|
226
|
+
self.body = attributes[:'body']
|
229
227
|
end
|
230
228
|
|
231
|
-
if attributes.key?(:'
|
232
|
-
self.
|
229
|
+
if attributes.key?(:'body_excerpt')
|
230
|
+
self.body_excerpt = attributes[:'body_excerpt']
|
233
231
|
end
|
234
232
|
|
235
|
-
if attributes.key?(:'
|
236
|
-
self.
|
233
|
+
if attributes.key?(:'body_md5_hash')
|
234
|
+
self.body_md5_hash = attributes[:'body_md5_hash']
|
237
235
|
end
|
238
236
|
|
239
|
-
if attributes.key?(:'
|
240
|
-
self.
|
237
|
+
if attributes.key?(:'is_html')
|
238
|
+
self.is_html = attributes[:'is_html']
|
241
239
|
end
|
242
240
|
|
243
|
-
if attributes.key?(:'
|
244
|
-
self.
|
241
|
+
if attributes.key?(:'charset')
|
242
|
+
self.charset = attributes[:'charset']
|
245
243
|
end
|
246
244
|
|
247
|
-
if attributes.key?(:'
|
248
|
-
self.
|
245
|
+
if attributes.key?(:'analysis')
|
246
|
+
self.analysis = attributes[:'analysis']
|
249
247
|
end
|
250
248
|
|
251
|
-
if attributes.key?(:'
|
252
|
-
|
253
|
-
self.to = value
|
254
|
-
end
|
249
|
+
if attributes.key?(:'created_at')
|
250
|
+
self.created_at = attributes[:'created_at']
|
255
251
|
end
|
256
252
|
|
257
253
|
if attributes.key?(:'updated_at')
|
258
254
|
self.updated_at = attributes[:'updated_at']
|
259
255
|
end
|
260
256
|
|
261
|
-
if attributes.key?(:'
|
262
|
-
self.
|
257
|
+
if attributes.key?(:'read')
|
258
|
+
self.read = attributes[:'read']
|
259
|
+
end
|
260
|
+
|
261
|
+
if attributes.key?(:'team_access')
|
262
|
+
self.team_access = attributes[:'team_access']
|
263
263
|
end
|
264
264
|
end
|
265
265
|
|
@@ -267,12 +267,52 @@ module MailSlurpClient
|
|
267
267
|
# @return Array for valid properties with the reasons
|
268
268
|
def list_invalid_properties
|
269
269
|
invalid_properties = Array.new
|
270
|
+
if @id.nil?
|
271
|
+
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
272
|
+
end
|
273
|
+
|
274
|
+
if @user_id.nil?
|
275
|
+
invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
|
276
|
+
end
|
277
|
+
|
278
|
+
if @inbox_id.nil?
|
279
|
+
invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
|
280
|
+
end
|
281
|
+
|
282
|
+
if @to.nil?
|
283
|
+
invalid_properties.push('invalid value for "to", to cannot be nil.')
|
284
|
+
end
|
285
|
+
|
286
|
+
if @created_at.nil?
|
287
|
+
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
288
|
+
end
|
289
|
+
|
290
|
+
if @updated_at.nil?
|
291
|
+
invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
|
292
|
+
end
|
293
|
+
|
294
|
+
if @read.nil?
|
295
|
+
invalid_properties.push('invalid value for "read", read cannot be nil.')
|
296
|
+
end
|
297
|
+
|
298
|
+
if @team_access.nil?
|
299
|
+
invalid_properties.push('invalid value for "team_access", team_access cannot be nil.')
|
300
|
+
end
|
301
|
+
|
270
302
|
invalid_properties
|
271
303
|
end
|
272
304
|
|
273
305
|
# Check to see if the all the properties in the model are valid
|
274
306
|
# @return true if the model is valid
|
275
307
|
def valid?
|
308
|
+
return false if @id.nil?
|
309
|
+
return false if @user_id.nil?
|
310
|
+
return false if @inbox_id.nil?
|
311
|
+
return false if @to.nil?
|
312
|
+
return false if @created_at.nil?
|
313
|
+
return false if @updated_at.nil?
|
314
|
+
return false if @read.nil?
|
315
|
+
return false if @team_access.nil?
|
276
316
|
true
|
277
317
|
end
|
278
318
|
|
@@ -281,29 +321,29 @@ module MailSlurpClient
|
|
281
321
|
def ==(o)
|
282
322
|
return true if self.equal?(o)
|
283
323
|
self.class == o.class &&
|
284
|
-
|
285
|
-
|
324
|
+
id == o.id &&
|
325
|
+
user_id == o.user_id &&
|
326
|
+
inbox_id == o.inbox_id &&
|
327
|
+
to == o.to &&
|
328
|
+
from == o.from &&
|
329
|
+
sender == o.sender &&
|
330
|
+
recipients == o.recipients &&
|
331
|
+
reply_to == o.reply_to &&
|
332
|
+
cc == o.cc &&
|
286
333
|
bcc == o.bcc &&
|
334
|
+
headers == o.headers &&
|
335
|
+
attachments == o.attachments &&
|
336
|
+
subject == o.subject &&
|
287
337
|
body == o.body &&
|
288
338
|
body_excerpt == o.body_excerpt &&
|
289
339
|
body_md5_hash == o.body_md5_hash &&
|
290
|
-
|
340
|
+
is_html == o.is_html &&
|
291
341
|
charset == o.charset &&
|
342
|
+
analysis == o.analysis &&
|
292
343
|
created_at == o.created_at &&
|
293
|
-
from == o.from &&
|
294
|
-
headers == o.headers &&
|
295
|
-
id == o.id &&
|
296
|
-
inbox_id == o.inbox_id &&
|
297
|
-
is_html == o.is_html &&
|
298
|
-
read == o.read &&
|
299
|
-
recipients == o.recipients &&
|
300
|
-
reply_to == o.reply_to &&
|
301
|
-
sender == o.sender &&
|
302
|
-
subject == o.subject &&
|
303
|
-
team_access == o.team_access &&
|
304
|
-
to == o.to &&
|
305
344
|
updated_at == o.updated_at &&
|
306
|
-
|
345
|
+
read == o.read &&
|
346
|
+
team_access == o.team_access
|
307
347
|
end
|
308
348
|
|
309
349
|
# @see the `==` method
|
@@ -315,7 +355,7 @@ module MailSlurpClient
|
|
315
355
|
# Calculates hash code according to all attributes.
|
316
356
|
# @return [Integer] Hash code
|
317
357
|
def hash
|
318
|
-
[
|
358
|
+
[id, user_id, inbox_id, to, from, sender, recipients, reply_to, cc, bcc, headers, attachments, subject, body, body_excerpt, body_md5_hash, is_html, charset, analysis, created_at, updated_at, read, team_access].hash
|
319
359
|
end
|
320
360
|
|
321
361
|
# 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
|
|
@@ -15,40 +15,40 @@ require 'date'
|
|
15
15
|
module MailSlurpClient
|
16
16
|
# Analysis result for email. Each verdict property is a string PASS|FAIL|GRAY or dynamic error message
|
17
17
|
class EmailAnalysis
|
18
|
-
# Verdict of DomainKeys Identified Mail analysis
|
19
|
-
attr_accessor :dkim_verdict
|
20
|
-
|
21
|
-
# Verdict of Domain-based Message Authentication Reporting and Conformance analysis
|
22
|
-
attr_accessor :dmarc_verdict
|
23
|
-
|
24
18
|
# Verdict of spam ranking analysis
|
25
19
|
attr_accessor :spam_verdict
|
26
20
|
|
21
|
+
# Verdict of virus scan analysis
|
22
|
+
attr_accessor :virus_verdict
|
23
|
+
|
27
24
|
# Verdict of Send Policy Framework record spoofing analysis
|
28
25
|
attr_accessor :spf_verdict
|
29
26
|
|
30
|
-
# Verdict of
|
31
|
-
attr_accessor :
|
27
|
+
# Verdict of DomainKeys Identified Mail analysis
|
28
|
+
attr_accessor :dkim_verdict
|
29
|
+
|
30
|
+
# Verdict of Domain-based Message Authentication Reporting and Conformance analysis
|
31
|
+
attr_accessor :dmarc_verdict
|
32
32
|
|
33
33
|
# Attribute mapping from ruby-style variable name to JSON key.
|
34
34
|
def self.attribute_map
|
35
35
|
{
|
36
|
-
:'dkim_verdict' => :'dkimVerdict',
|
37
|
-
:'dmarc_verdict' => :'dmarcVerdict',
|
38
36
|
:'spam_verdict' => :'spamVerdict',
|
37
|
+
:'virus_verdict' => :'virusVerdict',
|
39
38
|
:'spf_verdict' => :'spfVerdict',
|
40
|
-
:'
|
39
|
+
:'dkim_verdict' => :'dkimVerdict',
|
40
|
+
:'dmarc_verdict' => :'dmarcVerdict'
|
41
41
|
}
|
42
42
|
end
|
43
43
|
|
44
44
|
# Attribute type mapping.
|
45
45
|
def self.openapi_types
|
46
46
|
{
|
47
|
-
:'dkim_verdict' => :'String',
|
48
|
-
:'dmarc_verdict' => :'String',
|
49
47
|
:'spam_verdict' => :'String',
|
48
|
+
:'virus_verdict' => :'String',
|
50
49
|
:'spf_verdict' => :'String',
|
51
|
-
:'
|
50
|
+
:'dkim_verdict' => :'String',
|
51
|
+
:'dmarc_verdict' => :'String'
|
52
52
|
}
|
53
53
|
end
|
54
54
|
|
@@ -73,24 +73,24 @@ module MailSlurpClient
|
|
73
73
|
h[k.to_sym] = v
|
74
74
|
}
|
75
75
|
|
76
|
-
if attributes.key?(:'dkim_verdict')
|
77
|
-
self.dkim_verdict = attributes[:'dkim_verdict']
|
78
|
-
end
|
79
|
-
|
80
|
-
if attributes.key?(:'dmarc_verdict')
|
81
|
-
self.dmarc_verdict = attributes[:'dmarc_verdict']
|
82
|
-
end
|
83
|
-
|
84
76
|
if attributes.key?(:'spam_verdict')
|
85
77
|
self.spam_verdict = attributes[:'spam_verdict']
|
86
78
|
end
|
87
79
|
|
80
|
+
if attributes.key?(:'virus_verdict')
|
81
|
+
self.virus_verdict = attributes[:'virus_verdict']
|
82
|
+
end
|
83
|
+
|
88
84
|
if attributes.key?(:'spf_verdict')
|
89
85
|
self.spf_verdict = attributes[:'spf_verdict']
|
90
86
|
end
|
91
87
|
|
92
|
-
if attributes.key?(:'
|
93
|
-
self.
|
88
|
+
if attributes.key?(:'dkim_verdict')
|
89
|
+
self.dkim_verdict = attributes[:'dkim_verdict']
|
90
|
+
end
|
91
|
+
|
92
|
+
if attributes.key?(:'dmarc_verdict')
|
93
|
+
self.dmarc_verdict = attributes[:'dmarc_verdict']
|
94
94
|
end
|
95
95
|
end
|
96
96
|
|
@@ -112,11 +112,11 @@ module MailSlurpClient
|
|
112
112
|
def ==(o)
|
113
113
|
return true if self.equal?(o)
|
114
114
|
self.class == o.class &&
|
115
|
-
dkim_verdict == o.dkim_verdict &&
|
116
|
-
dmarc_verdict == o.dmarc_verdict &&
|
117
115
|
spam_verdict == o.spam_verdict &&
|
116
|
+
virus_verdict == o.virus_verdict &&
|
118
117
|
spf_verdict == o.spf_verdict &&
|
119
|
-
|
118
|
+
dkim_verdict == o.dkim_verdict &&
|
119
|
+
dmarc_verdict == o.dmarc_verdict
|
120
120
|
end
|
121
121
|
|
122
122
|
# @see the `==` method
|
@@ -128,7 +128,7 @@ module MailSlurpClient
|
|
128
128
|
# Calculates hash code according to all attributes.
|
129
129
|
# @return [Integer] Hash code
|
130
130
|
def hash
|
131
|
-
[
|
131
|
+
[spam_verdict, virus_verdict, spf_verdict, dkim_verdict, dmarc_verdict].hash
|
132
132
|
end
|
133
133
|
|
134
134
|
# Builds the object from hash
|