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