mailslurp_client 15.0.0 → 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 +190 -116
- 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 +359 -225
- 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 +206 -0
- 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 +3 -1
- metadata +5 -3
@@ -14,35 +14,35 @@ require 'date'
|
|
14
14
|
|
15
15
|
module MailSlurpClient
|
16
16
|
class TemplateDto
|
17
|
-
attr_accessor :content
|
18
|
-
|
19
|
-
attr_accessor :created_at
|
20
|
-
|
21
17
|
attr_accessor :id
|
22
18
|
|
23
19
|
attr_accessor :name
|
24
20
|
|
25
21
|
attr_accessor :variables
|
26
22
|
|
23
|
+
attr_accessor :content
|
24
|
+
|
25
|
+
attr_accessor :created_at
|
26
|
+
|
27
27
|
# Attribute mapping from ruby-style variable name to JSON key.
|
28
28
|
def self.attribute_map
|
29
29
|
{
|
30
|
-
:'content' => :'content',
|
31
|
-
:'created_at' => :'createdAt',
|
32
30
|
:'id' => :'id',
|
33
31
|
:'name' => :'name',
|
34
|
-
:'variables' => :'variables'
|
32
|
+
:'variables' => :'variables',
|
33
|
+
:'content' => :'content',
|
34
|
+
:'created_at' => :'createdAt'
|
35
35
|
}
|
36
36
|
end
|
37
37
|
|
38
38
|
# Attribute type mapping.
|
39
39
|
def self.openapi_types
|
40
40
|
{
|
41
|
-
:'content' => :'String',
|
42
|
-
:'created_at' => :'DateTime',
|
43
41
|
:'id' => :'String',
|
44
42
|
:'name' => :'String',
|
45
|
-
:'variables' => :'Array<TemplateVariable>'
|
43
|
+
:'variables' => :'Array<TemplateVariable>',
|
44
|
+
:'content' => :'String',
|
45
|
+
:'created_at' => :'DateTime'
|
46
46
|
}
|
47
47
|
end
|
48
48
|
|
@@ -67,14 +67,6 @@ module MailSlurpClient
|
|
67
67
|
h[k.to_sym] = v
|
68
68
|
}
|
69
69
|
|
70
|
-
if attributes.key?(:'content')
|
71
|
-
self.content = attributes[:'content']
|
72
|
-
end
|
73
|
-
|
74
|
-
if attributes.key?(:'created_at')
|
75
|
-
self.created_at = attributes[:'created_at']
|
76
|
-
end
|
77
|
-
|
78
70
|
if attributes.key?(:'id')
|
79
71
|
self.id = attributes[:'id']
|
80
72
|
end
|
@@ -88,43 +80,26 @@ module MailSlurpClient
|
|
88
80
|
self.variables = value
|
89
81
|
end
|
90
82
|
end
|
83
|
+
|
84
|
+
if attributes.key?(:'content')
|
85
|
+
self.content = attributes[:'content']
|
86
|
+
end
|
87
|
+
|
88
|
+
if attributes.key?(:'created_at')
|
89
|
+
self.created_at = attributes[:'created_at']
|
90
|
+
end
|
91
91
|
end
|
92
92
|
|
93
93
|
# Show invalid properties with the reasons. Usually used together with valid?
|
94
94
|
# @return Array for valid properties with the reasons
|
95
95
|
def list_invalid_properties
|
96
96
|
invalid_properties = Array.new
|
97
|
-
if @content.nil?
|
98
|
-
invalid_properties.push('invalid value for "content", content cannot be nil.')
|
99
|
-
end
|
100
|
-
|
101
|
-
if @created_at.nil?
|
102
|
-
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
103
|
-
end
|
104
|
-
|
105
|
-
if @id.nil?
|
106
|
-
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
107
|
-
end
|
108
|
-
|
109
|
-
if @name.nil?
|
110
|
-
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
111
|
-
end
|
112
|
-
|
113
|
-
if @variables.nil?
|
114
|
-
invalid_properties.push('invalid value for "variables", variables cannot be nil.')
|
115
|
-
end
|
116
|
-
|
117
97
|
invalid_properties
|
118
98
|
end
|
119
99
|
|
120
100
|
# Check to see if the all the properties in the model are valid
|
121
101
|
# @return true if the model is valid
|
122
102
|
def valid?
|
123
|
-
return false if @content.nil?
|
124
|
-
return false if @created_at.nil?
|
125
|
-
return false if @id.nil?
|
126
|
-
return false if @name.nil?
|
127
|
-
return false if @variables.nil?
|
128
103
|
true
|
129
104
|
end
|
130
105
|
|
@@ -133,11 +108,11 @@ module MailSlurpClient
|
|
133
108
|
def ==(o)
|
134
109
|
return true if self.equal?(o)
|
135
110
|
self.class == o.class &&
|
136
|
-
content == o.content &&
|
137
|
-
created_at == o.created_at &&
|
138
111
|
id == o.id &&
|
139
112
|
name == o.name &&
|
140
|
-
variables == o.variables
|
113
|
+
variables == o.variables &&
|
114
|
+
content == o.content &&
|
115
|
+
created_at == o.created_at
|
141
116
|
end
|
142
117
|
|
143
118
|
# @see the `==` method
|
@@ -149,7 +124,7 @@ module MailSlurpClient
|
|
149
124
|
# Calculates hash code according to all attributes.
|
150
125
|
# @return [Integer] Hash code
|
151
126
|
def hash
|
152
|
-
[
|
127
|
+
[id, name, variables, content, created_at].hash
|
153
128
|
end
|
154
129
|
|
155
130
|
# Builds the object from hash
|
@@ -14,23 +14,23 @@ require 'date'
|
|
14
14
|
|
15
15
|
module MailSlurpClient
|
16
16
|
class TemplateProjection
|
17
|
-
attr_accessor :
|
17
|
+
attr_accessor :name
|
18
18
|
|
19
19
|
attr_accessor :id
|
20
20
|
|
21
|
-
attr_accessor :name
|
22
|
-
|
23
21
|
attr_accessor :updated_at
|
24
22
|
|
23
|
+
attr_accessor :created_at
|
24
|
+
|
25
25
|
attr_accessor :variables
|
26
26
|
|
27
27
|
# Attribute mapping from ruby-style variable name to JSON key.
|
28
28
|
def self.attribute_map
|
29
29
|
{
|
30
|
-
:'created_at' => :'createdAt',
|
31
|
-
:'id' => :'id',
|
32
30
|
:'name' => :'name',
|
31
|
+
:'id' => :'id',
|
33
32
|
:'updated_at' => :'updatedAt',
|
33
|
+
:'created_at' => :'createdAt',
|
34
34
|
:'variables' => :'variables'
|
35
35
|
}
|
36
36
|
end
|
@@ -38,10 +38,10 @@ module MailSlurpClient
|
|
38
38
|
# Attribute type mapping.
|
39
39
|
def self.openapi_types
|
40
40
|
{
|
41
|
-
:'created_at' => :'DateTime',
|
42
|
-
:'id' => :'String',
|
43
41
|
:'name' => :'String',
|
42
|
+
:'id' => :'String',
|
44
43
|
:'updated_at' => :'DateTime',
|
44
|
+
:'created_at' => :'DateTime',
|
45
45
|
:'variables' => :'Array<String>'
|
46
46
|
}
|
47
47
|
end
|
@@ -67,22 +67,22 @@ module MailSlurpClient
|
|
67
67
|
h[k.to_sym] = v
|
68
68
|
}
|
69
69
|
|
70
|
-
if attributes.key?(:'
|
71
|
-
self.
|
70
|
+
if attributes.key?(:'name')
|
71
|
+
self.name = attributes[:'name']
|
72
72
|
end
|
73
73
|
|
74
74
|
if attributes.key?(:'id')
|
75
75
|
self.id = attributes[:'id']
|
76
76
|
end
|
77
77
|
|
78
|
-
if attributes.key?(:'name')
|
79
|
-
self.name = attributes[:'name']
|
80
|
-
end
|
81
|
-
|
82
78
|
if attributes.key?(:'updated_at')
|
83
79
|
self.updated_at = attributes[:'updated_at']
|
84
80
|
end
|
85
81
|
|
82
|
+
if attributes.key?(:'created_at')
|
83
|
+
self.created_at = attributes[:'created_at']
|
84
|
+
end
|
85
|
+
|
86
86
|
if attributes.key?(:'variables')
|
87
87
|
if (value = attributes[:'variables']).is_a?(Array)
|
88
88
|
self.variables = value
|
@@ -94,37 +94,12 @@ module MailSlurpClient
|
|
94
94
|
# @return Array for valid properties with the reasons
|
95
95
|
def list_invalid_properties
|
96
96
|
invalid_properties = Array.new
|
97
|
-
if @created_at.nil?
|
98
|
-
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
99
|
-
end
|
100
|
-
|
101
|
-
if @id.nil?
|
102
|
-
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
103
|
-
end
|
104
|
-
|
105
|
-
if @name.nil?
|
106
|
-
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
107
|
-
end
|
108
|
-
|
109
|
-
if @updated_at.nil?
|
110
|
-
invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
|
111
|
-
end
|
112
|
-
|
113
|
-
if @variables.nil?
|
114
|
-
invalid_properties.push('invalid value for "variables", variables cannot be nil.')
|
115
|
-
end
|
116
|
-
|
117
97
|
invalid_properties
|
118
98
|
end
|
119
99
|
|
120
100
|
# Check to see if the all the properties in the model are valid
|
121
101
|
# @return true if the model is valid
|
122
102
|
def valid?
|
123
|
-
return false if @created_at.nil?
|
124
|
-
return false if @id.nil?
|
125
|
-
return false if @name.nil?
|
126
|
-
return false if @updated_at.nil?
|
127
|
-
return false if @variables.nil?
|
128
103
|
true
|
129
104
|
end
|
130
105
|
|
@@ -133,10 +108,10 @@ module MailSlurpClient
|
|
133
108
|
def ==(o)
|
134
109
|
return true if self.equal?(o)
|
135
110
|
self.class == o.class &&
|
136
|
-
created_at == o.created_at &&
|
137
|
-
id == o.id &&
|
138
111
|
name == o.name &&
|
112
|
+
id == o.id &&
|
139
113
|
updated_at == o.updated_at &&
|
114
|
+
created_at == o.created_at &&
|
140
115
|
variables == o.variables
|
141
116
|
end
|
142
117
|
|
@@ -149,7 +124,7 @@ module MailSlurpClient
|
|
149
124
|
# Calculates hash code according to all attributes.
|
150
125
|
# @return [Integer] Hash code
|
151
126
|
def hash
|
152
|
-
[
|
127
|
+
[name, id, updated_at, created_at, variables].hash
|
153
128
|
end
|
154
129
|
|
155
130
|
# Builds the object from hash
|
@@ -90,22 +90,12 @@ module MailSlurpClient
|
|
90
90
|
# @return Array for valid properties with the reasons
|
91
91
|
def list_invalid_properties
|
92
92
|
invalid_properties = Array.new
|
93
|
-
if @name.nil?
|
94
|
-
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
95
|
-
end
|
96
|
-
|
97
|
-
if @variable_type.nil?
|
98
|
-
invalid_properties.push('invalid value for "variable_type", variable_type cannot be nil.')
|
99
|
-
end
|
100
|
-
|
101
93
|
invalid_properties
|
102
94
|
end
|
103
95
|
|
104
96
|
# Check to see if the all the properties in the model are valid
|
105
97
|
# @return true if the model is valid
|
106
98
|
def valid?
|
107
|
-
return false if @name.nil?
|
108
|
-
return false if @variable_type.nil?
|
109
99
|
variable_type_validator = EnumAttributeValidator.new('String', ["STRING"])
|
110
100
|
return false unless variable_type_validator.valid?(@variable_type)
|
111
101
|
true
|
@@ -68,22 +68,12 @@ module MailSlurpClient
|
|
68
68
|
# @return Array for valid properties with the reasons
|
69
69
|
def list_invalid_properties
|
70
70
|
invalid_properties = Array.new
|
71
|
-
if @inbox_forwarder_test_options.nil?
|
72
|
-
invalid_properties.push('invalid value for "inbox_forwarder_test_options", inbox_forwarder_test_options cannot be nil.')
|
73
|
-
end
|
74
|
-
|
75
|
-
if @create_inbox_forwarder_options.nil?
|
76
|
-
invalid_properties.push('invalid value for "create_inbox_forwarder_options", create_inbox_forwarder_options cannot be nil.')
|
77
|
-
end
|
78
|
-
|
79
71
|
invalid_properties
|
80
72
|
end
|
81
73
|
|
82
74
|
# Check to see if the all the properties in the model are valid
|
83
75
|
# @return true if the model is valid
|
84
76
|
def valid?
|
85
|
-
return false if @inbox_forwarder_test_options.nil?
|
86
|
-
return false if @create_inbox_forwarder_options.nil?
|
87
77
|
true
|
88
78
|
end
|
89
79
|
|
@@ -68,22 +68,12 @@ module MailSlurpClient
|
|
68
68
|
# @return Array for valid properties with the reasons
|
69
69
|
def list_invalid_properties
|
70
70
|
invalid_properties = Array.new
|
71
|
-
if @inbox_ruleset_test_options.nil?
|
72
|
-
invalid_properties.push('invalid value for "inbox_ruleset_test_options", inbox_ruleset_test_options cannot be nil.')
|
73
|
-
end
|
74
|
-
|
75
|
-
if @create_inbox_ruleset_options.nil?
|
76
|
-
invalid_properties.push('invalid value for "create_inbox_ruleset_options", create_inbox_ruleset_options cannot be nil.')
|
77
|
-
end
|
78
|
-
|
79
71
|
invalid_properties
|
80
72
|
end
|
81
73
|
|
82
74
|
# Check to see if the all the properties in the model are valid
|
83
75
|
# @return true if the model is valid
|
84
76
|
def valid?
|
85
|
-
return false if @inbox_ruleset_test_options.nil?
|
86
|
-
return false if @create_inbox_ruleset_options.nil?
|
87
77
|
true
|
88
78
|
end
|
89
79
|
|
@@ -15,59 +15,59 @@ require 'date'
|
|
15
15
|
module MailSlurpClient
|
16
16
|
# A thread is a message thread created for a message received by an alias
|
17
17
|
class ThreadProjection
|
18
|
-
attr_accessor :
|
18
|
+
attr_accessor :name
|
19
19
|
|
20
|
-
attr_accessor :
|
20
|
+
attr_accessor :id
|
21
21
|
|
22
|
-
attr_accessor :
|
22
|
+
attr_accessor :updated_at
|
23
23
|
|
24
|
-
attr_accessor :
|
24
|
+
attr_accessor :subject
|
25
25
|
|
26
|
-
attr_accessor :
|
26
|
+
attr_accessor :user_id
|
27
27
|
|
28
28
|
attr_accessor :inbox_id
|
29
29
|
|
30
|
-
attr_accessor :
|
30
|
+
attr_accessor :to
|
31
31
|
|
32
|
-
attr_accessor :
|
32
|
+
attr_accessor :bcc
|
33
33
|
|
34
|
-
attr_accessor :
|
34
|
+
attr_accessor :cc
|
35
35
|
|
36
|
-
attr_accessor :
|
36
|
+
attr_accessor :created_at
|
37
37
|
|
38
|
-
attr_accessor :
|
38
|
+
attr_accessor :alias_id
|
39
39
|
|
40
40
|
# Attribute mapping from ruby-style variable name to JSON key.
|
41
41
|
def self.attribute_map
|
42
42
|
{
|
43
|
-
:'alias_id' => :'aliasId',
|
44
|
-
:'bcc' => :'bcc',
|
45
|
-
:'cc' => :'cc',
|
46
|
-
:'created_at' => :'createdAt',
|
47
|
-
:'id' => :'id',
|
48
|
-
:'inbox_id' => :'inboxId',
|
49
43
|
:'name' => :'name',
|
44
|
+
:'id' => :'id',
|
45
|
+
:'updated_at' => :'updatedAt',
|
50
46
|
:'subject' => :'subject',
|
47
|
+
:'user_id' => :'userId',
|
48
|
+
:'inbox_id' => :'inboxId',
|
51
49
|
:'to' => :'to',
|
52
|
-
:'
|
53
|
-
:'
|
50
|
+
:'bcc' => :'bcc',
|
51
|
+
:'cc' => :'cc',
|
52
|
+
:'created_at' => :'createdAt',
|
53
|
+
:'alias_id' => :'aliasId'
|
54
54
|
}
|
55
55
|
end
|
56
56
|
|
57
57
|
# Attribute type mapping.
|
58
58
|
def self.openapi_types
|
59
59
|
{
|
60
|
-
:'alias_id' => :'String',
|
61
|
-
:'bcc' => :'Array<String>',
|
62
|
-
:'cc' => :'Array<String>',
|
63
|
-
:'created_at' => :'DateTime',
|
64
|
-
:'id' => :'String',
|
65
|
-
:'inbox_id' => :'String',
|
66
60
|
:'name' => :'String',
|
61
|
+
:'id' => :'String',
|
62
|
+
:'updated_at' => :'DateTime',
|
67
63
|
:'subject' => :'String',
|
64
|
+
:'user_id' => :'String',
|
65
|
+
:'inbox_id' => :'String',
|
68
66
|
:'to' => :'Array<String>',
|
69
|
-
:'
|
70
|
-
:'
|
67
|
+
:'bcc' => :'Array<String>',
|
68
|
+
:'cc' => :'Array<String>',
|
69
|
+
:'created_at' => :'DateTime',
|
70
|
+
:'alias_id' => :'String'
|
71
71
|
}
|
72
72
|
end
|
73
73
|
|
@@ -92,54 +92,54 @@ module MailSlurpClient
|
|
92
92
|
h[k.to_sym] = v
|
93
93
|
}
|
94
94
|
|
95
|
-
if attributes.key?(:'
|
96
|
-
self.
|
95
|
+
if attributes.key?(:'name')
|
96
|
+
self.name = attributes[:'name']
|
97
97
|
end
|
98
98
|
|
99
|
-
if attributes.key?(:'
|
100
|
-
|
101
|
-
self.bcc = value
|
102
|
-
end
|
99
|
+
if attributes.key?(:'id')
|
100
|
+
self.id = attributes[:'id']
|
103
101
|
end
|
104
102
|
|
105
|
-
if attributes.key?(:'
|
106
|
-
|
107
|
-
self.cc = value
|
108
|
-
end
|
103
|
+
if attributes.key?(:'updated_at')
|
104
|
+
self.updated_at = attributes[:'updated_at']
|
109
105
|
end
|
110
106
|
|
111
|
-
if attributes.key?(:'
|
112
|
-
self.
|
107
|
+
if attributes.key?(:'subject')
|
108
|
+
self.subject = attributes[:'subject']
|
113
109
|
end
|
114
110
|
|
115
|
-
if attributes.key?(:'
|
116
|
-
self.
|
111
|
+
if attributes.key?(:'user_id')
|
112
|
+
self.user_id = attributes[:'user_id']
|
117
113
|
end
|
118
114
|
|
119
115
|
if attributes.key?(:'inbox_id')
|
120
116
|
self.inbox_id = attributes[:'inbox_id']
|
121
117
|
end
|
122
118
|
|
123
|
-
if attributes.key?(:'
|
124
|
-
|
119
|
+
if attributes.key?(:'to')
|
120
|
+
if (value = attributes[:'to']).is_a?(Array)
|
121
|
+
self.to = value
|
122
|
+
end
|
125
123
|
end
|
126
124
|
|
127
|
-
if attributes.key?(:'
|
128
|
-
|
125
|
+
if attributes.key?(:'bcc')
|
126
|
+
if (value = attributes[:'bcc']).is_a?(Array)
|
127
|
+
self.bcc = value
|
128
|
+
end
|
129
129
|
end
|
130
130
|
|
131
|
-
if attributes.key?(:'
|
132
|
-
if (value = attributes[:'
|
133
|
-
self.
|
131
|
+
if attributes.key?(:'cc')
|
132
|
+
if (value = attributes[:'cc']).is_a?(Array)
|
133
|
+
self.cc = value
|
134
134
|
end
|
135
135
|
end
|
136
136
|
|
137
|
-
if attributes.key?(:'
|
138
|
-
self.
|
137
|
+
if attributes.key?(:'created_at')
|
138
|
+
self.created_at = attributes[:'created_at']
|
139
139
|
end
|
140
140
|
|
141
|
-
if attributes.key?(:'
|
142
|
-
self.
|
141
|
+
if attributes.key?(:'alias_id')
|
142
|
+
self.alias_id = attributes[:'alias_id']
|
143
143
|
end
|
144
144
|
end
|
145
145
|
|
@@ -147,47 +147,12 @@ module MailSlurpClient
|
|
147
147
|
# @return Array for valid properties with the reasons
|
148
148
|
def list_invalid_properties
|
149
149
|
invalid_properties = Array.new
|
150
|
-
if @alias_id.nil?
|
151
|
-
invalid_properties.push('invalid value for "alias_id", alias_id cannot be nil.')
|
152
|
-
end
|
153
|
-
|
154
|
-
if @created_at.nil?
|
155
|
-
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
156
|
-
end
|
157
|
-
|
158
|
-
if @id.nil?
|
159
|
-
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
160
|
-
end
|
161
|
-
|
162
|
-
if @inbox_id.nil?
|
163
|
-
invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
|
164
|
-
end
|
165
|
-
|
166
|
-
if @to.nil?
|
167
|
-
invalid_properties.push('invalid value for "to", to cannot be nil.')
|
168
|
-
end
|
169
|
-
|
170
|
-
if @updated_at.nil?
|
171
|
-
invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
|
172
|
-
end
|
173
|
-
|
174
|
-
if @user_id.nil?
|
175
|
-
invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
|
176
|
-
end
|
177
|
-
|
178
150
|
invalid_properties
|
179
151
|
end
|
180
152
|
|
181
153
|
# Check to see if the all the properties in the model are valid
|
182
154
|
# @return true if the model is valid
|
183
155
|
def valid?
|
184
|
-
return false if @alias_id.nil?
|
185
|
-
return false if @created_at.nil?
|
186
|
-
return false if @id.nil?
|
187
|
-
return false if @inbox_id.nil?
|
188
|
-
return false if @to.nil?
|
189
|
-
return false if @updated_at.nil?
|
190
|
-
return false if @user_id.nil?
|
191
156
|
true
|
192
157
|
end
|
193
158
|
|
@@ -196,17 +161,17 @@ module MailSlurpClient
|
|
196
161
|
def ==(o)
|
197
162
|
return true if self.equal?(o)
|
198
163
|
self.class == o.class &&
|
199
|
-
alias_id == o.alias_id &&
|
200
|
-
bcc == o.bcc &&
|
201
|
-
cc == o.cc &&
|
202
|
-
created_at == o.created_at &&
|
203
|
-
id == o.id &&
|
204
|
-
inbox_id == o.inbox_id &&
|
205
164
|
name == o.name &&
|
165
|
+
id == o.id &&
|
166
|
+
updated_at == o.updated_at &&
|
206
167
|
subject == o.subject &&
|
168
|
+
user_id == o.user_id &&
|
169
|
+
inbox_id == o.inbox_id &&
|
207
170
|
to == o.to &&
|
208
|
-
|
209
|
-
|
171
|
+
bcc == o.bcc &&
|
172
|
+
cc == o.cc &&
|
173
|
+
created_at == o.created_at &&
|
174
|
+
alias_id == o.alias_id
|
210
175
|
end
|
211
176
|
|
212
177
|
# @see the `==` method
|
@@ -218,7 +183,7 @@ module MailSlurpClient
|
|
218
183
|
# Calculates hash code according to all attributes.
|
219
184
|
# @return [Integer] Hash code
|
220
185
|
def hash
|
221
|
-
[
|
186
|
+
[name, id, updated_at, subject, user_id, inbox_id, to, bcc, cc, created_at, alias_id].hash
|
222
187
|
end
|
223
188
|
|
224
189
|
# Builds the object from hash
|