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
|
|
@@ -13,28 +13,29 @@ OpenAPI Generator version: 4.3.1
|
|
13
13
|
require 'date'
|
14
14
|
|
15
15
|
module MailSlurpClient
|
16
|
+
# Sender object containing from email address and from personal name if provided in address
|
16
17
|
class Sender
|
18
|
+
attr_accessor :raw_value
|
19
|
+
|
17
20
|
attr_accessor :email_address
|
18
21
|
|
19
22
|
attr_accessor :name
|
20
23
|
|
21
|
-
attr_accessor :raw_value
|
22
|
-
|
23
24
|
# Attribute mapping from ruby-style variable name to JSON key.
|
24
25
|
def self.attribute_map
|
25
26
|
{
|
27
|
+
:'raw_value' => :'rawValue',
|
26
28
|
:'email_address' => :'emailAddress',
|
27
|
-
:'name' => :'name'
|
28
|
-
:'raw_value' => :'rawValue'
|
29
|
+
:'name' => :'name'
|
29
30
|
}
|
30
31
|
end
|
31
32
|
|
32
33
|
# Attribute type mapping.
|
33
34
|
def self.openapi_types
|
34
35
|
{
|
36
|
+
:'raw_value' => :'String',
|
35
37
|
:'email_address' => :'String',
|
36
|
-
:'name' => :'String'
|
37
|
-
:'raw_value' => :'String'
|
38
|
+
:'name' => :'String'
|
38
39
|
}
|
39
40
|
end
|
40
41
|
|
@@ -59,6 +60,10 @@ module MailSlurpClient
|
|
59
60
|
h[k.to_sym] = v
|
60
61
|
}
|
61
62
|
|
63
|
+
if attributes.key?(:'raw_value')
|
64
|
+
self.raw_value = attributes[:'raw_value']
|
65
|
+
end
|
66
|
+
|
62
67
|
if attributes.key?(:'email_address')
|
63
68
|
self.email_address = attributes[:'email_address']
|
64
69
|
end
|
@@ -66,32 +71,28 @@ module MailSlurpClient
|
|
66
71
|
if attributes.key?(:'name')
|
67
72
|
self.name = attributes[:'name']
|
68
73
|
end
|
69
|
-
|
70
|
-
if attributes.key?(:'raw_value')
|
71
|
-
self.raw_value = attributes[:'raw_value']
|
72
|
-
end
|
73
74
|
end
|
74
75
|
|
75
76
|
# Show invalid properties with the reasons. Usually used together with valid?
|
76
77
|
# @return Array for valid properties with the reasons
|
77
78
|
def list_invalid_properties
|
78
79
|
invalid_properties = Array.new
|
79
|
-
if @email_address.nil?
|
80
|
-
invalid_properties.push('invalid value for "email_address", email_address cannot be nil.')
|
81
|
-
end
|
82
|
-
|
83
80
|
if @raw_value.nil?
|
84
81
|
invalid_properties.push('invalid value for "raw_value", raw_value cannot be nil.')
|
85
82
|
end
|
86
83
|
|
84
|
+
if @email_address.nil?
|
85
|
+
invalid_properties.push('invalid value for "email_address", email_address cannot be nil.')
|
86
|
+
end
|
87
|
+
|
87
88
|
invalid_properties
|
88
89
|
end
|
89
90
|
|
90
91
|
# Check to see if the all the properties in the model are valid
|
91
92
|
# @return true if the model is valid
|
92
93
|
def valid?
|
93
|
-
return false if @email_address.nil?
|
94
94
|
return false if @raw_value.nil?
|
95
|
+
return false if @email_address.nil?
|
95
96
|
true
|
96
97
|
end
|
97
98
|
|
@@ -100,9 +101,9 @@ module MailSlurpClient
|
|
100
101
|
def ==(o)
|
101
102
|
return true if self.equal?(o)
|
102
103
|
self.class == o.class &&
|
104
|
+
raw_value == o.raw_value &&
|
103
105
|
email_address == o.email_address &&
|
104
|
-
name == o.name
|
105
|
-
raw_value == o.raw_value
|
106
|
+
name == o.name
|
106
107
|
end
|
107
108
|
|
108
109
|
# @see the `==` method
|
@@ -114,7 +115,7 @@ module MailSlurpClient
|
|
114
115
|
# Calculates hash code according to all attributes.
|
115
116
|
# @return [Integer] Hash code
|
116
117
|
def hash
|
117
|
-
[email_address, name
|
118
|
+
[raw_value, email_address, name].hash
|
118
119
|
end
|
119
120
|
|
120
121
|
# 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,85 +15,85 @@ require 'date'
|
|
15
15
|
module MailSlurpClient
|
16
16
|
# Sent email details
|
17
17
|
class SentEmailDto
|
18
|
-
#
|
19
|
-
attr_accessor :
|
18
|
+
# ID of sent email
|
19
|
+
attr_accessor :id
|
20
20
|
|
21
|
-
|
21
|
+
# User ID
|
22
|
+
attr_accessor :user_id
|
22
23
|
|
23
|
-
|
24
|
+
# Inbox ID email was sent from
|
25
|
+
attr_accessor :inbox_id
|
24
26
|
|
25
|
-
#
|
26
|
-
attr_accessor :
|
27
|
+
# Recipients email was sent to
|
28
|
+
attr_accessor :to
|
27
29
|
|
28
|
-
attr_accessor :
|
30
|
+
attr_accessor :from
|
29
31
|
|
30
|
-
attr_accessor :
|
32
|
+
attr_accessor :reply_to
|
31
33
|
|
32
|
-
attr_accessor :
|
34
|
+
attr_accessor :cc
|
33
35
|
|
34
|
-
|
35
|
-
attr_accessor :id
|
36
|
+
attr_accessor :bcc
|
36
37
|
|
37
|
-
#
|
38
|
-
attr_accessor :
|
38
|
+
# Array of IDs of attachments that were sent with this email
|
39
|
+
attr_accessor :attachments
|
39
40
|
|
40
|
-
attr_accessor :
|
41
|
+
attr_accessor :subject
|
41
42
|
|
42
|
-
|
43
|
+
# MD5 Hash
|
44
|
+
attr_accessor :body_md5_hash
|
43
45
|
|
44
|
-
attr_accessor :
|
46
|
+
attr_accessor :body
|
45
47
|
|
46
|
-
attr_accessor :
|
48
|
+
attr_accessor :charset
|
47
49
|
|
48
|
-
attr_accessor :
|
50
|
+
attr_accessor :is_html
|
49
51
|
|
50
|
-
|
51
|
-
attr_accessor :to
|
52
|
+
attr_accessor :sent_at
|
52
53
|
|
53
|
-
|
54
|
-
attr_accessor :user_id
|
54
|
+
attr_accessor :pixel_ids
|
55
55
|
|
56
56
|
# Attribute mapping from ruby-style variable name to JSON key.
|
57
57
|
def self.attribute_map
|
58
58
|
{
|
59
|
-
:'
|
59
|
+
:'id' => :'id',
|
60
|
+
:'user_id' => :'userId',
|
61
|
+
:'inbox_id' => :'inboxId',
|
62
|
+
:'to' => :'to',
|
63
|
+
:'from' => :'from',
|
64
|
+
:'reply_to' => :'replyTo',
|
65
|
+
:'cc' => :'cc',
|
60
66
|
:'bcc' => :'bcc',
|
61
|
-
:'
|
67
|
+
:'attachments' => :'attachments',
|
68
|
+
:'subject' => :'subject',
|
62
69
|
:'body_md5_hash' => :'bodyMD5Hash',
|
63
|
-
:'
|
70
|
+
:'body' => :'body',
|
64
71
|
:'charset' => :'charset',
|
65
|
-
:'from' => :'from',
|
66
|
-
:'id' => :'id',
|
67
|
-
:'inbox_id' => :'inboxId',
|
68
72
|
:'is_html' => :'isHTML',
|
69
|
-
:'pixel_ids' => :'pixelIds',
|
70
|
-
:'reply_to' => :'replyTo',
|
71
73
|
:'sent_at' => :'sentAt',
|
72
|
-
:'
|
73
|
-
:'to' => :'to',
|
74
|
-
:'user_id' => :'userId'
|
74
|
+
:'pixel_ids' => :'pixelIds'
|
75
75
|
}
|
76
76
|
end
|
77
77
|
|
78
78
|
# Attribute type mapping.
|
79
79
|
def self.openapi_types
|
80
80
|
{
|
81
|
-
:'
|
81
|
+
:'id' => :'String',
|
82
|
+
:'user_id' => :'String',
|
83
|
+
:'inbox_id' => :'String',
|
84
|
+
:'to' => :'Array<String>',
|
85
|
+
:'from' => :'String',
|
86
|
+
:'reply_to' => :'String',
|
87
|
+
:'cc' => :'Array<String>',
|
82
88
|
:'bcc' => :'Array<String>',
|
83
|
-
:'
|
89
|
+
:'attachments' => :'Array<String>',
|
90
|
+
:'subject' => :'String',
|
84
91
|
:'body_md5_hash' => :'String',
|
85
|
-
:'
|
92
|
+
:'body' => :'String',
|
86
93
|
:'charset' => :'String',
|
87
|
-
:'from' => :'String',
|
88
|
-
:'id' => :'String',
|
89
|
-
:'inbox_id' => :'String',
|
90
94
|
:'is_html' => :'Boolean',
|
91
|
-
:'pixel_ids' => :'Array<String>',
|
92
|
-
:'reply_to' => :'String',
|
93
95
|
:'sent_at' => :'DateTime',
|
94
|
-
:'
|
95
|
-
:'to' => :'Array<String>',
|
96
|
-
:'user_id' => :'String'
|
96
|
+
:'pixel_ids' => :'Array<String>'
|
97
97
|
}
|
98
98
|
end
|
99
99
|
|
@@ -118,24 +118,30 @@ module MailSlurpClient
|
|
118
118
|
h[k.to_sym] = v
|
119
119
|
}
|
120
120
|
|
121
|
-
if attributes.key?(:'
|
122
|
-
|
123
|
-
self.attachments = value
|
124
|
-
end
|
121
|
+
if attributes.key?(:'id')
|
122
|
+
self.id = attributes[:'id']
|
125
123
|
end
|
126
124
|
|
127
|
-
if attributes.key?(:'
|
128
|
-
|
129
|
-
|
125
|
+
if attributes.key?(:'user_id')
|
126
|
+
self.user_id = attributes[:'user_id']
|
127
|
+
end
|
128
|
+
|
129
|
+
if attributes.key?(:'inbox_id')
|
130
|
+
self.inbox_id = attributes[:'inbox_id']
|
131
|
+
end
|
132
|
+
|
133
|
+
if attributes.key?(:'to')
|
134
|
+
if (value = attributes[:'to']).is_a?(Array)
|
135
|
+
self.to = value
|
130
136
|
end
|
131
137
|
end
|
132
138
|
|
133
|
-
if attributes.key?(:'
|
134
|
-
self.
|
139
|
+
if attributes.key?(:'from')
|
140
|
+
self.from = attributes[:'from']
|
135
141
|
end
|
136
142
|
|
137
|
-
if attributes.key?(:'
|
138
|
-
self.
|
143
|
+
if attributes.key?(:'reply_to')
|
144
|
+
self.reply_to = attributes[:'reply_to']
|
139
145
|
end
|
140
146
|
|
141
147
|
if attributes.key?(:'cc')
|
@@ -144,59 +150,65 @@ module MailSlurpClient
|
|
144
150
|
end
|
145
151
|
end
|
146
152
|
|
147
|
-
if attributes.key?(:'
|
148
|
-
|
153
|
+
if attributes.key?(:'bcc')
|
154
|
+
if (value = attributes[:'bcc']).is_a?(Array)
|
155
|
+
self.bcc = value
|
156
|
+
end
|
149
157
|
end
|
150
158
|
|
151
|
-
if attributes.key?(:'
|
152
|
-
|
159
|
+
if attributes.key?(:'attachments')
|
160
|
+
if (value = attributes[:'attachments']).is_a?(Array)
|
161
|
+
self.attachments = value
|
162
|
+
end
|
153
163
|
end
|
154
164
|
|
155
|
-
if attributes.key?(:'
|
156
|
-
self.
|
165
|
+
if attributes.key?(:'subject')
|
166
|
+
self.subject = attributes[:'subject']
|
157
167
|
end
|
158
168
|
|
159
|
-
if attributes.key?(:'
|
160
|
-
self.
|
169
|
+
if attributes.key?(:'body_md5_hash')
|
170
|
+
self.body_md5_hash = attributes[:'body_md5_hash']
|
161
171
|
end
|
162
172
|
|
163
|
-
if attributes.key?(:'
|
164
|
-
self.
|
173
|
+
if attributes.key?(:'body')
|
174
|
+
self.body = attributes[:'body']
|
165
175
|
end
|
166
176
|
|
167
|
-
if attributes.key?(:'
|
168
|
-
|
169
|
-
self.pixel_ids = value
|
170
|
-
end
|
177
|
+
if attributes.key?(:'charset')
|
178
|
+
self.charset = attributes[:'charset']
|
171
179
|
end
|
172
180
|
|
173
|
-
if attributes.key?(:'
|
174
|
-
self.
|
181
|
+
if attributes.key?(:'is_html')
|
182
|
+
self.is_html = attributes[:'is_html']
|
175
183
|
end
|
176
184
|
|
177
185
|
if attributes.key?(:'sent_at')
|
178
186
|
self.sent_at = attributes[:'sent_at']
|
179
187
|
end
|
180
188
|
|
181
|
-
if attributes.key?(:'
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
if attributes.key?(:'to')
|
186
|
-
if (value = attributes[:'to']).is_a?(Array)
|
187
|
-
self.to = value
|
189
|
+
if attributes.key?(:'pixel_ids')
|
190
|
+
if (value = attributes[:'pixel_ids']).is_a?(Array)
|
191
|
+
self.pixel_ids = value
|
188
192
|
end
|
189
193
|
end
|
190
|
-
|
191
|
-
if attributes.key?(:'user_id')
|
192
|
-
self.user_id = attributes[:'user_id']
|
193
|
-
end
|
194
194
|
end
|
195
195
|
|
196
196
|
# Show invalid properties with the reasons. Usually used together with valid?
|
197
197
|
# @return Array for valid properties with the reasons
|
198
198
|
def list_invalid_properties
|
199
199
|
invalid_properties = Array.new
|
200
|
+
if @id.nil?
|
201
|
+
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
202
|
+
end
|
203
|
+
|
204
|
+
if @user_id.nil?
|
205
|
+
invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
|
206
|
+
end
|
207
|
+
|
208
|
+
if @inbox_id.nil?
|
209
|
+
invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
|
210
|
+
end
|
211
|
+
|
200
212
|
if @sent_at.nil?
|
201
213
|
invalid_properties.push('invalid value for "sent_at", sent_at cannot be nil.')
|
202
214
|
end
|
@@ -207,6 +219,9 @@ module MailSlurpClient
|
|
207
219
|
# Check to see if the all the properties in the model are valid
|
208
220
|
# @return true if the model is valid
|
209
221
|
def valid?
|
222
|
+
return false if @id.nil?
|
223
|
+
return false if @user_id.nil?
|
224
|
+
return false if @inbox_id.nil?
|
210
225
|
return false if @sent_at.nil?
|
211
226
|
true
|
212
227
|
end
|
@@ -216,22 +231,22 @@ module MailSlurpClient
|
|
216
231
|
def ==(o)
|
217
232
|
return true if self.equal?(o)
|
218
233
|
self.class == o.class &&
|
219
|
-
|
234
|
+
id == o.id &&
|
235
|
+
user_id == o.user_id &&
|
236
|
+
inbox_id == o.inbox_id &&
|
237
|
+
to == o.to &&
|
238
|
+
from == o.from &&
|
239
|
+
reply_to == o.reply_to &&
|
240
|
+
cc == o.cc &&
|
220
241
|
bcc == o.bcc &&
|
221
|
-
|
242
|
+
attachments == o.attachments &&
|
243
|
+
subject == o.subject &&
|
222
244
|
body_md5_hash == o.body_md5_hash &&
|
223
|
-
|
245
|
+
body == o.body &&
|
224
246
|
charset == o.charset &&
|
225
|
-
from == o.from &&
|
226
|
-
id == o.id &&
|
227
|
-
inbox_id == o.inbox_id &&
|
228
247
|
is_html == o.is_html &&
|
229
|
-
pixel_ids == o.pixel_ids &&
|
230
|
-
reply_to == o.reply_to &&
|
231
248
|
sent_at == o.sent_at &&
|
232
|
-
|
233
|
-
to == o.to &&
|
234
|
-
user_id == o.user_id
|
249
|
+
pixel_ids == o.pixel_ids
|
235
250
|
end
|
236
251
|
|
237
252
|
# @see the `==` method
|
@@ -243,7 +258,7 @@ module MailSlurpClient
|
|
243
258
|
# Calculates hash code according to all attributes.
|
244
259
|
# @return [Integer] Hash code
|
245
260
|
def hash
|
246
|
-
[
|
261
|
+
[id, user_id, inbox_id, to, from, reply_to, cc, bcc, attachments, subject, body_md5_hash, body, charset, is_html, sent_at, pixel_ids].hash
|
247
262
|
end
|
248
263
|
|
249
264
|
# Builds the object from hash
|