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,23 +15,23 @@ require 'date'
|
|
15
15
|
module MailSlurpClient
|
16
16
|
# Matches for the given pattern
|
17
17
|
class EmailContentMatchResult
|
18
|
-
attr_accessor :matches
|
19
|
-
|
20
18
|
attr_accessor :pattern
|
21
19
|
|
20
|
+
attr_accessor :matches
|
21
|
+
|
22
22
|
# Attribute mapping from ruby-style variable name to JSON key.
|
23
23
|
def self.attribute_map
|
24
24
|
{
|
25
|
-
:'
|
26
|
-
:'
|
25
|
+
:'pattern' => :'pattern',
|
26
|
+
:'matches' => :'matches'
|
27
27
|
}
|
28
28
|
end
|
29
29
|
|
30
30
|
# Attribute type mapping.
|
31
31
|
def self.openapi_types
|
32
32
|
{
|
33
|
-
:'
|
34
|
-
:'
|
33
|
+
:'pattern' => :'String',
|
34
|
+
:'matches' => :'Array<String>'
|
35
35
|
}
|
36
36
|
end
|
37
37
|
|
@@ -56,37 +56,37 @@ module MailSlurpClient
|
|
56
56
|
h[k.to_sym] = v
|
57
57
|
}
|
58
58
|
|
59
|
+
if attributes.key?(:'pattern')
|
60
|
+
self.pattern = attributes[:'pattern']
|
61
|
+
end
|
62
|
+
|
59
63
|
if attributes.key?(:'matches')
|
60
64
|
if (value = attributes[:'matches']).is_a?(Array)
|
61
65
|
self.matches = value
|
62
66
|
end
|
63
67
|
end
|
64
|
-
|
65
|
-
if attributes.key?(:'pattern')
|
66
|
-
self.pattern = attributes[:'pattern']
|
67
|
-
end
|
68
68
|
end
|
69
69
|
|
70
70
|
# Show invalid properties with the reasons. Usually used together with valid?
|
71
71
|
# @return Array for valid properties with the reasons
|
72
72
|
def list_invalid_properties
|
73
73
|
invalid_properties = Array.new
|
74
|
-
if @matches.nil?
|
75
|
-
invalid_properties.push('invalid value for "matches", matches cannot be nil.')
|
76
|
-
end
|
77
|
-
|
78
74
|
if @pattern.nil?
|
79
75
|
invalid_properties.push('invalid value for "pattern", pattern cannot be nil.')
|
80
76
|
end
|
81
77
|
|
78
|
+
if @matches.nil?
|
79
|
+
invalid_properties.push('invalid value for "matches", matches cannot be nil.')
|
80
|
+
end
|
81
|
+
|
82
82
|
invalid_properties
|
83
83
|
end
|
84
84
|
|
85
85
|
# Check to see if the all the properties in the model are valid
|
86
86
|
# @return true if the model is valid
|
87
87
|
def valid?
|
88
|
-
return false if @matches.nil?
|
89
88
|
return false if @pattern.nil?
|
89
|
+
return false if @matches.nil?
|
90
90
|
true
|
91
91
|
end
|
92
92
|
|
@@ -95,8 +95,8 @@ module MailSlurpClient
|
|
95
95
|
def ==(o)
|
96
96
|
return true if self.equal?(o)
|
97
97
|
self.class == o.class &&
|
98
|
-
|
99
|
-
|
98
|
+
pattern == o.pattern &&
|
99
|
+
matches == o.matches
|
100
100
|
end
|
101
101
|
|
102
102
|
# @see the `==` method
|
@@ -108,7 +108,7 @@ module MailSlurpClient
|
|
108
108
|
# Calculates hash code according to all attributes.
|
109
109
|
# @return [Integer] Hash code
|
110
110
|
def hash
|
111
|
-
[
|
111
|
+
[pattern, matches].hash
|
112
112
|
end
|
113
113
|
|
114
114
|
# 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,23 +15,23 @@ require 'date'
|
|
15
15
|
module MailSlurpClient
|
16
16
|
# Links found in HTML
|
17
17
|
class EmailLinksResult
|
18
|
-
attr_accessor :body
|
19
|
-
|
20
18
|
attr_accessor :links
|
21
19
|
|
20
|
+
attr_accessor :body
|
21
|
+
|
22
22
|
# Attribute mapping from ruby-style variable name to JSON key.
|
23
23
|
def self.attribute_map
|
24
24
|
{
|
25
|
-
:'
|
26
|
-
:'
|
25
|
+
:'links' => :'links',
|
26
|
+
:'body' => :'body'
|
27
27
|
}
|
28
28
|
end
|
29
29
|
|
30
30
|
# Attribute type mapping.
|
31
31
|
def self.openapi_types
|
32
32
|
{
|
33
|
-
:'
|
34
|
-
:'
|
33
|
+
:'links' => :'Array<String>',
|
34
|
+
:'body' => :'String'
|
35
35
|
}
|
36
36
|
end
|
37
37
|
|
@@ -56,37 +56,37 @@ module MailSlurpClient
|
|
56
56
|
h[k.to_sym] = v
|
57
57
|
}
|
58
58
|
|
59
|
-
if attributes.key?(:'body')
|
60
|
-
self.body = attributes[:'body']
|
61
|
-
end
|
62
|
-
|
63
59
|
if attributes.key?(:'links')
|
64
60
|
if (value = attributes[:'links']).is_a?(Array)
|
65
61
|
self.links = value
|
66
62
|
end
|
67
63
|
end
|
64
|
+
|
65
|
+
if attributes.key?(:'body')
|
66
|
+
self.body = attributes[:'body']
|
67
|
+
end
|
68
68
|
end
|
69
69
|
|
70
70
|
# Show invalid properties with the reasons. Usually used together with valid?
|
71
71
|
# @return Array for valid properties with the reasons
|
72
72
|
def list_invalid_properties
|
73
73
|
invalid_properties = Array.new
|
74
|
-
if @body.nil?
|
75
|
-
invalid_properties.push('invalid value for "body", body cannot be nil.')
|
76
|
-
end
|
77
|
-
|
78
74
|
if @links.nil?
|
79
75
|
invalid_properties.push('invalid value for "links", links cannot be nil.')
|
80
76
|
end
|
81
77
|
|
78
|
+
if @body.nil?
|
79
|
+
invalid_properties.push('invalid value for "body", body cannot be nil.')
|
80
|
+
end
|
81
|
+
|
82
82
|
invalid_properties
|
83
83
|
end
|
84
84
|
|
85
85
|
# Check to see if the all the properties in the model are valid
|
86
86
|
# @return true if the model is valid
|
87
87
|
def valid?
|
88
|
-
return false if @body.nil?
|
89
88
|
return false if @links.nil?
|
89
|
+
return false if @body.nil?
|
90
90
|
true
|
91
91
|
end
|
92
92
|
|
@@ -95,8 +95,8 @@ module MailSlurpClient
|
|
95
95
|
def ==(o)
|
96
96
|
return true if self.equal?(o)
|
97
97
|
self.class == o.class &&
|
98
|
-
|
99
|
-
|
98
|
+
links == o.links &&
|
99
|
+
body == o.body
|
100
100
|
end
|
101
101
|
|
102
102
|
# @see the `==` method
|
@@ -108,7 +108,7 @@ module MailSlurpClient
|
|
108
108
|
# Calculates hash code according to all attributes.
|
109
109
|
# @return [Integer] Hash code
|
110
110
|
def hash
|
111
|
-
[
|
111
|
+
[links, body].hash
|
112
112
|
end
|
113
113
|
|
114
114
|
# 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,8 +15,17 @@ require 'date'
|
|
15
15
|
module MailSlurpClient
|
16
16
|
# Preview of an email message. For full message (including body and attachments) call the `getEmail` or other email endpoints with the provided email ID.
|
17
17
|
class EmailPreview
|
18
|
-
#
|
19
|
-
attr_accessor :
|
18
|
+
# ID of the email entity
|
19
|
+
attr_accessor :id
|
20
|
+
|
21
|
+
# The subject line of the email message as specified by SMTP subject header
|
22
|
+
attr_accessor :subject
|
23
|
+
|
24
|
+
# List of `To` recipient email addresses that the email was addressed to. See recipients object for names.
|
25
|
+
attr_accessor :to
|
26
|
+
|
27
|
+
# Who the email was sent from. An email address - see fromName for the sender name.
|
28
|
+
attr_accessor :from
|
20
29
|
|
21
30
|
# List of `BCC` recipients email addresses that the email was addressed to. See recipients object for names.
|
22
31
|
attr_accessor :bcc
|
@@ -27,48 +36,39 @@ module MailSlurpClient
|
|
27
36
|
# When was the email received by MailSlurp
|
28
37
|
attr_accessor :created_at
|
29
38
|
|
30
|
-
# Who the email was sent from. An email address - see fromName for the sender name.
|
31
|
-
attr_accessor :from
|
32
|
-
|
33
|
-
# ID of the email entity
|
34
|
-
attr_accessor :id
|
35
|
-
|
36
39
|
# 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.
|
37
40
|
attr_accessor :read
|
38
41
|
|
39
|
-
#
|
40
|
-
attr_accessor :
|
41
|
-
|
42
|
-
# List of `To` recipient email addresses that the email was addressed to. See recipients object for names.
|
43
|
-
attr_accessor :to
|
42
|
+
# 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.
|
43
|
+
attr_accessor :attachments
|
44
44
|
|
45
45
|
# Attribute mapping from ruby-style variable name to JSON key.
|
46
46
|
def self.attribute_map
|
47
47
|
{
|
48
|
-
:'
|
48
|
+
:'id' => :'id',
|
49
|
+
:'subject' => :'subject',
|
50
|
+
:'to' => :'to',
|
51
|
+
:'from' => :'from',
|
49
52
|
:'bcc' => :'bcc',
|
50
53
|
:'cc' => :'cc',
|
51
54
|
:'created_at' => :'createdAt',
|
52
|
-
:'from' => :'from',
|
53
|
-
:'id' => :'id',
|
54
55
|
:'read' => :'read',
|
55
|
-
:'
|
56
|
-
:'to' => :'to'
|
56
|
+
:'attachments' => :'attachments'
|
57
57
|
}
|
58
58
|
end
|
59
59
|
|
60
60
|
# Attribute type mapping.
|
61
61
|
def self.openapi_types
|
62
62
|
{
|
63
|
-
:'
|
63
|
+
:'id' => :'String',
|
64
|
+
:'subject' => :'String',
|
65
|
+
:'to' => :'Array<String>',
|
66
|
+
:'from' => :'String',
|
64
67
|
:'bcc' => :'Array<String>',
|
65
68
|
:'cc' => :'Array<String>',
|
66
69
|
:'created_at' => :'DateTime',
|
67
|
-
:'from' => :'String',
|
68
|
-
:'id' => :'String',
|
69
70
|
:'read' => :'Boolean',
|
70
|
-
:'
|
71
|
-
:'to' => :'Array<String>'
|
71
|
+
:'attachments' => :'Array<String>'
|
72
72
|
}
|
73
73
|
end
|
74
74
|
|
@@ -93,12 +93,24 @@ module MailSlurpClient
|
|
93
93
|
h[k.to_sym] = v
|
94
94
|
}
|
95
95
|
|
96
|
-
if attributes.key?(:'
|
97
|
-
|
98
|
-
|
96
|
+
if attributes.key?(:'id')
|
97
|
+
self.id = attributes[:'id']
|
98
|
+
end
|
99
|
+
|
100
|
+
if attributes.key?(:'subject')
|
101
|
+
self.subject = attributes[:'subject']
|
102
|
+
end
|
103
|
+
|
104
|
+
if attributes.key?(:'to')
|
105
|
+
if (value = attributes[:'to']).is_a?(Array)
|
106
|
+
self.to = value
|
99
107
|
end
|
100
108
|
end
|
101
109
|
|
110
|
+
if attributes.key?(:'from')
|
111
|
+
self.from = attributes[:'from']
|
112
|
+
end
|
113
|
+
|
102
114
|
if attributes.key?(:'bcc')
|
103
115
|
if (value = attributes[:'bcc']).is_a?(Array)
|
104
116
|
self.bcc = value
|
@@ -115,25 +127,13 @@ module MailSlurpClient
|
|
115
127
|
self.created_at = attributes[:'created_at']
|
116
128
|
end
|
117
129
|
|
118
|
-
if attributes.key?(:'from')
|
119
|
-
self.from = attributes[:'from']
|
120
|
-
end
|
121
|
-
|
122
|
-
if attributes.key?(:'id')
|
123
|
-
self.id = attributes[:'id']
|
124
|
-
end
|
125
|
-
|
126
130
|
if attributes.key?(:'read')
|
127
131
|
self.read = attributes[:'read']
|
128
132
|
end
|
129
133
|
|
130
|
-
if attributes.key?(:'
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
if attributes.key?(:'to')
|
135
|
-
if (value = attributes[:'to']).is_a?(Array)
|
136
|
-
self.to = value
|
134
|
+
if attributes.key?(:'attachments')
|
135
|
+
if (value = attributes[:'attachments']).is_a?(Array)
|
136
|
+
self.attachments = value
|
137
137
|
end
|
138
138
|
end
|
139
139
|
end
|
@@ -142,12 +142,27 @@ module MailSlurpClient
|
|
142
142
|
# @return Array for valid properties with the reasons
|
143
143
|
def list_invalid_properties
|
144
144
|
invalid_properties = Array.new
|
145
|
+
if @id.nil?
|
146
|
+
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
147
|
+
end
|
148
|
+
|
149
|
+
if @to.nil?
|
150
|
+
invalid_properties.push('invalid value for "to", to cannot be nil.')
|
151
|
+
end
|
152
|
+
|
153
|
+
if @created_at.nil?
|
154
|
+
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
155
|
+
end
|
156
|
+
|
145
157
|
invalid_properties
|
146
158
|
end
|
147
159
|
|
148
160
|
# Check to see if the all the properties in the model are valid
|
149
161
|
# @return true if the model is valid
|
150
162
|
def valid?
|
163
|
+
return false if @id.nil?
|
164
|
+
return false if @to.nil?
|
165
|
+
return false if @created_at.nil?
|
151
166
|
true
|
152
167
|
end
|
153
168
|
|
@@ -156,15 +171,15 @@ module MailSlurpClient
|
|
156
171
|
def ==(o)
|
157
172
|
return true if self.equal?(o)
|
158
173
|
self.class == o.class &&
|
159
|
-
|
174
|
+
id == o.id &&
|
175
|
+
subject == o.subject &&
|
176
|
+
to == o.to &&
|
177
|
+
from == o.from &&
|
160
178
|
bcc == o.bcc &&
|
161
179
|
cc == o.cc &&
|
162
180
|
created_at == o.created_at &&
|
163
|
-
from == o.from &&
|
164
|
-
id == o.id &&
|
165
181
|
read == o.read &&
|
166
|
-
|
167
|
-
to == o.to
|
182
|
+
attachments == o.attachments
|
168
183
|
end
|
169
184
|
|
170
185
|
# @see the `==` method
|
@@ -176,7 +191,7 @@ module MailSlurpClient
|
|
176
191
|
# Calculates hash code according to all attributes.
|
177
192
|
# @return [Integer] Hash code
|
178
193
|
def hash
|
179
|
-
[
|
194
|
+
[id, subject, to, from, bcc, cc, created_at, read, attachments].hash
|
180
195
|
end
|
181
196
|
|
182
197
|
# 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,67 +15,67 @@ require 'date'
|
|
15
15
|
module MailSlurpClient
|
16
16
|
# A compact representation of a full email. Used in list endpoints to keep response sizes low. Body and attachments are not included. To get all fields of the email use the `getEmail` method with the email projection's ID. See `EmailDto` for documentation on projection properties.
|
17
17
|
class EmailProjection
|
18
|
-
attr_accessor :
|
18
|
+
attr_accessor :id
|
19
19
|
|
20
|
-
attr_accessor :
|
20
|
+
attr_accessor :from
|
21
21
|
|
22
|
-
attr_accessor :
|
22
|
+
attr_accessor :subject
|
23
23
|
|
24
|
-
attr_accessor :
|
24
|
+
attr_accessor :inbox_id
|
25
25
|
|
26
|
-
attr_accessor :
|
26
|
+
attr_accessor :to
|
27
|
+
|
28
|
+
attr_accessor :attachments
|
27
29
|
|
28
30
|
attr_accessor :created_at
|
29
31
|
|
30
|
-
attr_accessor :
|
32
|
+
attr_accessor :bcc
|
31
33
|
|
32
|
-
attr_accessor :
|
34
|
+
attr_accessor :cc
|
33
35
|
|
34
|
-
attr_accessor :
|
36
|
+
attr_accessor :team_access
|
35
37
|
|
36
38
|
attr_accessor :read
|
37
39
|
|
38
|
-
attr_accessor :
|
39
|
-
|
40
|
-
attr_accessor :team_access
|
40
|
+
attr_accessor :body_md5_hash
|
41
41
|
|
42
|
-
attr_accessor :
|
42
|
+
attr_accessor :body_excerpt
|
43
43
|
|
44
44
|
# Attribute mapping from ruby-style variable name to JSON key.
|
45
45
|
def self.attribute_map
|
46
46
|
{
|
47
|
+
:'id' => :'id',
|
48
|
+
:'from' => :'from',
|
49
|
+
:'subject' => :'subject',
|
50
|
+
:'inbox_id' => :'inboxId',
|
51
|
+
:'to' => :'to',
|
47
52
|
:'attachments' => :'attachments',
|
53
|
+
:'created_at' => :'createdAt',
|
48
54
|
:'bcc' => :'bcc',
|
49
|
-
:'body_excerpt' => :'bodyExcerpt',
|
50
|
-
:'body_md5_hash' => :'bodyMD5Hash',
|
51
55
|
:'cc' => :'cc',
|
52
|
-
:'created_at' => :'createdAt',
|
53
|
-
:'from' => :'from',
|
54
|
-
:'id' => :'id',
|
55
|
-
:'inbox_id' => :'inboxId',
|
56
|
-
:'read' => :'read',
|
57
|
-
:'subject' => :'subject',
|
58
56
|
:'team_access' => :'teamAccess',
|
59
|
-
:'
|
57
|
+
:'read' => :'read',
|
58
|
+
:'body_md5_hash' => :'bodyMD5Hash',
|
59
|
+
:'body_excerpt' => :'bodyExcerpt'
|
60
60
|
}
|
61
61
|
end
|
62
62
|
|
63
63
|
# Attribute type mapping.
|
64
64
|
def self.openapi_types
|
65
65
|
{
|
66
|
+
:'id' => :'String',
|
67
|
+
:'from' => :'String',
|
68
|
+
:'subject' => :'String',
|
69
|
+
:'inbox_id' => :'String',
|
70
|
+
:'to' => :'Array<String>',
|
66
71
|
:'attachments' => :'Array<String>',
|
72
|
+
:'created_at' => :'DateTime',
|
67
73
|
:'bcc' => :'Array<String>',
|
68
|
-
:'body_excerpt' => :'String',
|
69
|
-
:'body_md5_hash' => :'String',
|
70
74
|
:'cc' => :'Array<String>',
|
71
|
-
:'created_at' => :'DateTime',
|
72
|
-
:'from' => :'String',
|
73
|
-
:'id' => :'String',
|
74
|
-
:'inbox_id' => :'String',
|
75
|
-
:'read' => :'Boolean',
|
76
|
-
:'subject' => :'String',
|
77
75
|
:'team_access' => :'Boolean',
|
78
|
-
:'
|
76
|
+
:'read' => :'Boolean',
|
77
|
+
:'body_md5_hash' => :'String',
|
78
|
+
:'body_excerpt' => :'String'
|
79
79
|
}
|
80
80
|
end
|
81
81
|
|
@@ -100,29 +100,31 @@ module MailSlurpClient
|
|
100
100
|
h[k.to_sym] = v
|
101
101
|
}
|
102
102
|
|
103
|
-
if attributes.key?(:'
|
104
|
-
|
105
|
-
self.attachments = value
|
106
|
-
end
|
103
|
+
if attributes.key?(:'id')
|
104
|
+
self.id = attributes[:'id']
|
107
105
|
end
|
108
106
|
|
109
|
-
if attributes.key?(:'
|
110
|
-
|
111
|
-
self.bcc = value
|
112
|
-
end
|
107
|
+
if attributes.key?(:'from')
|
108
|
+
self.from = attributes[:'from']
|
113
109
|
end
|
114
110
|
|
115
|
-
if attributes.key?(:'
|
116
|
-
self.
|
111
|
+
if attributes.key?(:'subject')
|
112
|
+
self.subject = attributes[:'subject']
|
117
113
|
end
|
118
114
|
|
119
|
-
if attributes.key?(:'
|
120
|
-
self.
|
115
|
+
if attributes.key?(:'inbox_id')
|
116
|
+
self.inbox_id = attributes[:'inbox_id']
|
121
117
|
end
|
122
118
|
|
123
|
-
if attributes.key?(:'
|
124
|
-
if (value = attributes[:'
|
125
|
-
self.
|
119
|
+
if attributes.key?(:'to')
|
120
|
+
if (value = attributes[:'to']).is_a?(Array)
|
121
|
+
self.to = value
|
122
|
+
end
|
123
|
+
end
|
124
|
+
|
125
|
+
if attributes.key?(:'attachments')
|
126
|
+
if (value = attributes[:'attachments']).is_a?(Array)
|
127
|
+
self.attachments = value
|
126
128
|
end
|
127
129
|
end
|
128
130
|
|
@@ -130,34 +132,32 @@ module MailSlurpClient
|
|
130
132
|
self.created_at = attributes[:'created_at']
|
131
133
|
end
|
132
134
|
|
133
|
-
if attributes.key?(:'
|
134
|
-
|
135
|
+
if attributes.key?(:'bcc')
|
136
|
+
if (value = attributes[:'bcc']).is_a?(Array)
|
137
|
+
self.bcc = value
|
138
|
+
end
|
135
139
|
end
|
136
140
|
|
137
|
-
if attributes.key?(:'
|
138
|
-
|
141
|
+
if attributes.key?(:'cc')
|
142
|
+
if (value = attributes[:'cc']).is_a?(Array)
|
143
|
+
self.cc = value
|
144
|
+
end
|
139
145
|
end
|
140
146
|
|
141
|
-
if attributes.key?(:'
|
142
|
-
self.
|
147
|
+
if attributes.key?(:'team_access')
|
148
|
+
self.team_access = attributes[:'team_access']
|
143
149
|
end
|
144
150
|
|
145
151
|
if attributes.key?(:'read')
|
146
152
|
self.read = attributes[:'read']
|
147
153
|
end
|
148
154
|
|
149
|
-
if attributes.key?(:'
|
150
|
-
self.
|
151
|
-
end
|
152
|
-
|
153
|
-
if attributes.key?(:'team_access')
|
154
|
-
self.team_access = attributes[:'team_access']
|
155
|
+
if attributes.key?(:'body_md5_hash')
|
156
|
+
self.body_md5_hash = attributes[:'body_md5_hash']
|
155
157
|
end
|
156
158
|
|
157
|
-
if attributes.key?(:'
|
158
|
-
|
159
|
-
self.to = value
|
160
|
-
end
|
159
|
+
if attributes.key?(:'body_excerpt')
|
160
|
+
self.body_excerpt = attributes[:'body_excerpt']
|
161
161
|
end
|
162
162
|
end
|
163
163
|
|
@@ -165,10 +165,6 @@ module MailSlurpClient
|
|
165
165
|
# @return Array for valid properties with the reasons
|
166
166
|
def list_invalid_properties
|
167
167
|
invalid_properties = Array.new
|
168
|
-
if @created_at.nil?
|
169
|
-
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
170
|
-
end
|
171
|
-
|
172
168
|
if @id.nil?
|
173
169
|
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
174
170
|
end
|
@@ -181,16 +177,20 @@ module MailSlurpClient
|
|
181
177
|
invalid_properties.push('invalid value for "to", to cannot be nil.')
|
182
178
|
end
|
183
179
|
|
180
|
+
if @created_at.nil?
|
181
|
+
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
182
|
+
end
|
183
|
+
|
184
184
|
invalid_properties
|
185
185
|
end
|
186
186
|
|
187
187
|
# Check to see if the all the properties in the model are valid
|
188
188
|
# @return true if the model is valid
|
189
189
|
def valid?
|
190
|
-
return false if @created_at.nil?
|
191
190
|
return false if @id.nil?
|
192
191
|
return false if @inbox_id.nil?
|
193
192
|
return false if @to.nil?
|
193
|
+
return false if @created_at.nil?
|
194
194
|
true
|
195
195
|
end
|
196
196
|
|
@@ -199,19 +199,19 @@ module MailSlurpClient
|
|
199
199
|
def ==(o)
|
200
200
|
return true if self.equal?(o)
|
201
201
|
self.class == o.class &&
|
202
|
+
id == o.id &&
|
203
|
+
from == o.from &&
|
204
|
+
subject == o.subject &&
|
205
|
+
inbox_id == o.inbox_id &&
|
206
|
+
to == o.to &&
|
202
207
|
attachments == o.attachments &&
|
208
|
+
created_at == o.created_at &&
|
203
209
|
bcc == o.bcc &&
|
204
|
-
body_excerpt == o.body_excerpt &&
|
205
|
-
body_md5_hash == o.body_md5_hash &&
|
206
210
|
cc == o.cc &&
|
207
|
-
created_at == o.created_at &&
|
208
|
-
from == o.from &&
|
209
|
-
id == o.id &&
|
210
|
-
inbox_id == o.inbox_id &&
|
211
|
-
read == o.read &&
|
212
|
-
subject == o.subject &&
|
213
211
|
team_access == o.team_access &&
|
214
|
-
|
212
|
+
read == o.read &&
|
213
|
+
body_md5_hash == o.body_md5_hash &&
|
214
|
+
body_excerpt == o.body_excerpt
|
215
215
|
end
|
216
216
|
|
217
217
|
# @see the `==` method
|
@@ -223,7 +223,7 @@ module MailSlurpClient
|
|
223
223
|
# Calculates hash code according to all attributes.
|
224
224
|
# @return [Integer] Hash code
|
225
225
|
def hash
|
226
|
-
[
|
226
|
+
[id, from, subject, inbox_id, to, attachments, created_at, bcc, cc, team_access, read, body_md5_hash, body_excerpt].hash
|
227
227
|
end
|
228
228
|
|
229
229
|
# Builds the object from hash
|