mailslurp_client 15.0.6 → 15.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/mailslurp_client/api/attachment_controller_api.rb +3 -3
- data/lib/mailslurp_client/api/email_controller_api.rb +16 -13
- data/lib/mailslurp_client/api/expired_controller_api.rb +9 -9
- data/lib/mailslurp_client/api/inbox_controller_api.rb +104 -104
- data/lib/mailslurp_client/models/abstract_webhook_payload.rb +15 -0
- data/lib/mailslurp_client/models/alias_dto.rb +39 -13
- data/lib/mailslurp_client/models/alias_projection.rb +30 -0
- data/lib/mailslurp_client/models/attachment_entity.rb +20 -0
- data/lib/mailslurp_client/models/attachment_meta_data.rb +20 -0
- data/lib/mailslurp_client/models/attachment_projection.rb +20 -0
- data/lib/mailslurp_client/models/basic_auth_options.rb +10 -0
- data/lib/mailslurp_client/models/bounce_projection.rb +10 -0
- data/lib/mailslurp_client/models/bounce_recipient.rb +20 -0
- data/lib/mailslurp_client/models/bounced_email_dto.rb +20 -0
- data/lib/mailslurp_client/models/bounced_recipient_dto.rb +15 -0
- data/lib/mailslurp_client/models/bulk_send_email_options.rb +5 -0
- data/lib/mailslurp_client/models/condition_option.rb +10 -0
- data/lib/mailslurp_client/models/contact_dto.rb +20 -0
- data/lib/mailslurp_client/models/contact_projection.rb +10 -0
- data/lib/mailslurp_client/models/content_match_options.rb +5 -0
- data/lib/mailslurp_client/models/count_dto.rb +5 -0
- data/lib/mailslurp_client/models/create_alias_options.rb +10 -0
- data/lib/mailslurp_client/models/create_group_options.rb +5 -0
- data/lib/mailslurp_client/models/create_inbox_forwarder_options.rb +10 -0
- data/lib/mailslurp_client/models/create_inbox_ruleset_options.rb +15 -0
- data/lib/mailslurp_client/models/create_template_options.rb +10 -0
- data/lib/mailslurp_client/models/create_webhook_options.rb +5 -0
- data/lib/mailslurp_client/models/describe_mail_server_domain_result.rb +10 -0
- data/lib/mailslurp_client/models/dns_lookup_options.rb +5 -0
- data/lib/mailslurp_client/models/dns_lookup_result.rb +20 -0
- data/lib/mailslurp_client/models/dns_lookup_results.rb +5 -0
- data/lib/mailslurp_client/models/domain_dto.rb +64 -13
- data/lib/mailslurp_client/models/domain_name_record.rb +20 -0
- data/lib/mailslurp_client/models/domain_preview.rb +32 -7
- data/lib/mailslurp_client/models/download_attachment_dto.rb +15 -0
- data/lib/mailslurp_client/models/email.rb +54 -13
- data/lib/mailslurp_client/models/email_content_match_result.rb +10 -0
- data/lib/mailslurp_client/models/email_links_result.rb +10 -0
- data/lib/mailslurp_client/models/email_preview.rb +15 -0
- data/lib/mailslurp_client/models/email_projection.rb +20 -0
- data/lib/mailslurp_client/models/email_text_lines_result.rb +10 -0
- data/lib/mailslurp_client/models/email_verification_result.rb +33 -13
- data/lib/mailslurp_client/models/expiration_defaults.rb +10 -0
- data/lib/mailslurp_client/models/expired_inbox_dto.rb +15 -0
- data/lib/mailslurp_client/models/expired_inbox_record_projection.rb +20 -0
- data/lib/mailslurp_client/models/export_link.rb +5 -0
- data/lib/mailslurp_client/models/export_options.rb +5 -0
- data/lib/mailslurp_client/models/flush_expired_inboxes_result.rb +10 -0
- data/lib/mailslurp_client/models/gravatar_url.rb +10 -0
- data/lib/mailslurp_client/models/group_contacts_dto.rb +10 -0
- data/lib/mailslurp_client/models/group_dto.rb +15 -0
- data/lib/mailslurp_client/models/group_projection.rb +15 -0
- data/lib/mailslurp_client/models/html_validation_result.rb +29 -13
- data/lib/mailslurp_client/models/inbox_dto.rb +25 -0
- data/lib/mailslurp_client/models/inbox_exists_dto.rb +5 -0
- data/lib/mailslurp_client/models/inbox_forwarder_dto.rb +30 -0
- data/lib/mailslurp_client/models/inbox_forwarder_test_options.rb +5 -0
- data/lib/mailslurp_client/models/inbox_forwarder_test_result.rb +10 -0
- data/lib/mailslurp_client/models/inbox_preview.rb +20 -0
- data/lib/mailslurp_client/models/inbox_ruleset_dto.rb +35 -0
- data/lib/mailslurp_client/models/inbox_ruleset_test_options.rb +5 -0
- data/lib/mailslurp_client/models/inbox_ruleset_test_result.rb +10 -0
- data/lib/mailslurp_client/models/ip_address_result.rb +10 -0
- data/lib/mailslurp_client/models/json_schema_dto.rb +5 -0
- data/lib/mailslurp_client/models/match_option.rb +10 -0
- data/lib/mailslurp_client/models/missed_email.rb +35 -0
- data/lib/mailslurp_client/models/missed_email_projection.rb +20 -10
- data/lib/mailslurp_client/models/name_server_record.rb +20 -0
- data/lib/mailslurp_client/models/organization_inbox_projection.rb +25 -0
- data/lib/mailslurp_client/models/page_alias.rb +20 -11
- data/lib/mailslurp_client/models/page_attachment_entity.rb +20 -11
- data/lib/mailslurp_client/models/page_bounced_email.rb +20 -11
- data/lib/mailslurp_client/models/page_bounced_recipients.rb +20 -11
- data/lib/mailslurp_client/models/page_contact_projection.rb +20 -11
- data/lib/mailslurp_client/models/page_email_preview.rb +20 -11
- data/lib/mailslurp_client/models/page_email_projection.rb +20 -11
- data/lib/mailslurp_client/models/page_expired_inbox_record_projection.rb +20 -11
- data/lib/mailslurp_client/models/page_group_projection.rb +20 -11
- data/lib/mailslurp_client/models/page_inbox_forwarder_dto.rb +20 -11
- data/lib/mailslurp_client/models/page_inbox_projection.rb +20 -11
- data/lib/mailslurp_client/models/page_inbox_ruleset_dto.rb +20 -11
- data/lib/mailslurp_client/models/page_missed_email_projection.rb +20 -11
- data/lib/mailslurp_client/models/page_organization_inbox_projection.rb +20 -11
- data/lib/mailslurp_client/models/page_sent_email_projection.rb +51 -12
- data/lib/mailslurp_client/models/page_template_projection.rb +20 -11
- data/lib/mailslurp_client/models/page_thread_projection.rb +20 -11
- data/lib/mailslurp_client/models/page_tracking_pixel_projection.rb +20 -11
- data/lib/mailslurp_client/models/page_unknown_missed_email_projection.rb +20 -11
- data/lib/mailslurp_client/models/page_webhook_projection.rb +20 -11
- data/lib/mailslurp_client/models/page_webhook_result.rb +20 -11
- data/lib/mailslurp_client/models/{pageable.rb → pageable_object.rb} +25 -25
- data/lib/mailslurp_client/models/raw_email_json.rb +5 -0
- data/lib/mailslurp_client/models/recipient.rb +10 -0
- data/lib/mailslurp_client/models/reply_to_alias_email_options.rb +24 -13
- data/lib/mailslurp_client/models/reply_to_email_options.rb +24 -13
- data/lib/mailslurp_client/models/send_email_options.rb +12 -2
- data/lib/mailslurp_client/models/sender.rb +10 -0
- data/lib/mailslurp_client/models/sent_email_dto.rb +33 -13
- data/lib/mailslurp_client/models/sent_email_projection.rb +50 -10
- data/lib/mailslurp_client/models/set_inbox_favourited_options.rb +5 -0
- data/lib/mailslurp_client/models/simple_send_email_options.rb +5 -0
- data/lib/mailslurp_client/models/sort.rb +13 -13
- data/lib/mailslurp_client/models/template_dto.rb +25 -0
- data/lib/mailslurp_client/models/template_projection.rb +25 -0
- data/lib/mailslurp_client/models/template_variable.rb +10 -0
- data/lib/mailslurp_client/models/test_new_inbox_forwarder_options.rb +10 -0
- data/lib/mailslurp_client/models/test_new_inbox_ruleset_options.rb +10 -0
- data/lib/mailslurp_client/models/thread_projection.rb +45 -10
- data/lib/mailslurp_client/models/tracking_pixel_dto.rb +25 -0
- data/lib/mailslurp_client/models/tracking_pixel_projection.rb +20 -0
- data/lib/mailslurp_client/models/unknown_missed_email_projection.rb +10 -0
- data/lib/mailslurp_client/models/unread_count.rb +5 -0
- data/lib/mailslurp_client/models/unseen_error_count_dto.rb +5 -0
- data/lib/mailslurp_client/models/update_group_contacts.rb +5 -0
- data/lib/mailslurp_client/models/validation_dto.rb +10 -0
- data/lib/mailslurp_client/models/validation_message.rb +5 -0
- data/lib/mailslurp_client/models/verify_email_address_options.rb +5 -0
- data/lib/mailslurp_client/models/wait_for_conditions.rb +10 -0
- data/lib/mailslurp_client/models/webhook_dto.rb +45 -0
- data/lib/mailslurp_client/models/webhook_email_opened_payload.rb +40 -0
- data/lib/mailslurp_client/models/webhook_email_read_payload.rb +35 -0
- data/lib/mailslurp_client/models/webhook_new_attachment_payload.rb +35 -0
- data/lib/mailslurp_client/models/webhook_new_contact_payload.rb +35 -0
- data/lib/mailslurp_client/models/webhook_new_email_payload.rb +55 -0
- data/lib/mailslurp_client/models/webhook_projection.rb +25 -0
- data/lib/mailslurp_client/models/webhook_redrive_result.rb +10 -0
- data/lib/mailslurp_client/models/webhook_result_dto.rb +50 -0
- data/lib/mailslurp_client/models/webhook_test_request.rb +15 -0
- data/lib/mailslurp_client/models/webhook_test_result.rb +10 -0
- data/lib/mailslurp_client/version.rb +1 -1
- data/lib/mailslurp_client.rb +1 -1
- metadata +2 -2
@@ -165,12 +165,32 @@ 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 @id.nil?
|
169
|
+
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
170
|
+
end
|
171
|
+
|
172
|
+
if @inbox_id.nil?
|
173
|
+
invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
|
174
|
+
end
|
175
|
+
|
176
|
+
if @to.nil?
|
177
|
+
invalid_properties.push('invalid value for "to", to cannot be nil.')
|
178
|
+
end
|
179
|
+
|
180
|
+
if @created_at.nil?
|
181
|
+
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
182
|
+
end
|
183
|
+
|
168
184
|
invalid_properties
|
169
185
|
end
|
170
186
|
|
171
187
|
# Check to see if the all the properties in the model are valid
|
172
188
|
# @return true if the model is valid
|
173
189
|
def valid?
|
190
|
+
return false if @id.nil?
|
191
|
+
return false if @inbox_id.nil?
|
192
|
+
return false if @to.nil?
|
193
|
+
return false if @created_at.nil?
|
174
194
|
true
|
175
195
|
end
|
176
196
|
|
@@ -71,12 +71,22 @@ module MailSlurpClient
|
|
71
71
|
# @return Array for valid properties with the reasons
|
72
72
|
def list_invalid_properties
|
73
73
|
invalid_properties = Array.new
|
74
|
+
if @lines.nil?
|
75
|
+
invalid_properties.push('invalid value for "lines", lines cannot be nil.')
|
76
|
+
end
|
77
|
+
|
78
|
+
if @body.nil?
|
79
|
+
invalid_properties.push('invalid value for "body", body cannot be nil.')
|
80
|
+
end
|
81
|
+
|
74
82
|
invalid_properties
|
75
83
|
end
|
76
84
|
|
77
85
|
# Check to see if the all the properties in the model are valid
|
78
86
|
# @return true if the model is valid
|
79
87
|
def valid?
|
88
|
+
return false if @lines.nil?
|
89
|
+
return false if @body.nil?
|
80
90
|
true
|
81
91
|
end
|
82
92
|
|
@@ -21,9 +21,9 @@ module MailSlurpClient
|
|
21
21
|
|
22
22
|
attr_accessor :email_address
|
23
23
|
|
24
|
-
attr_accessor :
|
24
|
+
attr_accessor :is_valid
|
25
25
|
|
26
|
-
attr_accessor :
|
26
|
+
attr_accessor :error
|
27
27
|
|
28
28
|
# Attribute mapping from ruby-style variable name to JSON key.
|
29
29
|
def self.attribute_map
|
@@ -31,8 +31,8 @@ module MailSlurpClient
|
|
31
31
|
:'domain_name' => :'domainName',
|
32
32
|
:'port' => :'port',
|
33
33
|
:'email_address' => :'emailAddress',
|
34
|
-
:'
|
35
|
-
:'
|
34
|
+
:'is_valid' => :'isValid',
|
35
|
+
:'error' => :'error'
|
36
36
|
}
|
37
37
|
end
|
38
38
|
|
@@ -42,8 +42,8 @@ module MailSlurpClient
|
|
42
42
|
:'domain_name' => :'String',
|
43
43
|
:'port' => :'Integer',
|
44
44
|
:'email_address' => :'String',
|
45
|
-
:'
|
46
|
-
:'
|
45
|
+
:'is_valid' => :'Boolean',
|
46
|
+
:'error' => :'String'
|
47
47
|
}
|
48
48
|
end
|
49
49
|
|
@@ -80,12 +80,12 @@ module MailSlurpClient
|
|
80
80
|
self.email_address = attributes[:'email_address']
|
81
81
|
end
|
82
82
|
|
83
|
-
if attributes.key?(:'
|
84
|
-
self.
|
83
|
+
if attributes.key?(:'is_valid')
|
84
|
+
self.is_valid = attributes[:'is_valid']
|
85
85
|
end
|
86
86
|
|
87
|
-
if attributes.key?(:'
|
88
|
-
self.
|
87
|
+
if attributes.key?(:'error')
|
88
|
+
self.error = attributes[:'error']
|
89
89
|
end
|
90
90
|
end
|
91
91
|
|
@@ -93,12 +93,32 @@ module MailSlurpClient
|
|
93
93
|
# @return Array for valid properties with the reasons
|
94
94
|
def list_invalid_properties
|
95
95
|
invalid_properties = Array.new
|
96
|
+
if @domain_name.nil?
|
97
|
+
invalid_properties.push('invalid value for "domain_name", domain_name cannot be nil.')
|
98
|
+
end
|
99
|
+
|
100
|
+
if @port.nil?
|
101
|
+
invalid_properties.push('invalid value for "port", port cannot be nil.')
|
102
|
+
end
|
103
|
+
|
104
|
+
if @email_address.nil?
|
105
|
+
invalid_properties.push('invalid value for "email_address", email_address cannot be nil.')
|
106
|
+
end
|
107
|
+
|
108
|
+
if @is_valid.nil?
|
109
|
+
invalid_properties.push('invalid value for "is_valid", is_valid cannot be nil.')
|
110
|
+
end
|
111
|
+
|
96
112
|
invalid_properties
|
97
113
|
end
|
98
114
|
|
99
115
|
# Check to see if the all the properties in the model are valid
|
100
116
|
# @return true if the model is valid
|
101
117
|
def valid?
|
118
|
+
return false if @domain_name.nil?
|
119
|
+
return false if @port.nil?
|
120
|
+
return false if @email_address.nil?
|
121
|
+
return false if @is_valid.nil?
|
102
122
|
true
|
103
123
|
end
|
104
124
|
|
@@ -110,8 +130,8 @@ module MailSlurpClient
|
|
110
130
|
domain_name == o.domain_name &&
|
111
131
|
port == o.port &&
|
112
132
|
email_address == o.email_address &&
|
113
|
-
|
114
|
-
|
133
|
+
is_valid == o.is_valid &&
|
134
|
+
error == o.error
|
115
135
|
end
|
116
136
|
|
117
137
|
# @see the `==` method
|
@@ -123,7 +143,7 @@ module MailSlurpClient
|
|
123
143
|
# Calculates hash code according to all attributes.
|
124
144
|
# @return [Integer] Hash code
|
125
145
|
def hash
|
126
|
-
[domain_name, port, email_address,
|
146
|
+
[domain_name, port, email_address, is_valid, error].hash
|
127
147
|
end
|
128
148
|
|
129
149
|
# Builds the object from hash
|
@@ -93,12 +93,22 @@ module MailSlurpClient
|
|
93
93
|
# @return Array for valid properties with the reasons
|
94
94
|
def list_invalid_properties
|
95
95
|
invalid_properties = Array.new
|
96
|
+
if @can_permanent_inbox.nil?
|
97
|
+
invalid_properties.push('invalid value for "can_permanent_inbox", can_permanent_inbox cannot be nil.')
|
98
|
+
end
|
99
|
+
|
100
|
+
if @next_inbox_allows_permanent.nil?
|
101
|
+
invalid_properties.push('invalid value for "next_inbox_allows_permanent", next_inbox_allows_permanent cannot be nil.')
|
102
|
+
end
|
103
|
+
|
96
104
|
invalid_properties
|
97
105
|
end
|
98
106
|
|
99
107
|
# Check to see if the all the properties in the model are valid
|
100
108
|
# @return true if the model is valid
|
101
109
|
def valid?
|
110
|
+
return false if @can_permanent_inbox.nil?
|
111
|
+
return false if @next_inbox_allows_permanent.nil?
|
102
112
|
true
|
103
113
|
end
|
104
114
|
|
@@ -77,12 +77,27 @@ module MailSlurpClient
|
|
77
77
|
# @return Array for valid properties with the reasons
|
78
78
|
def list_invalid_properties
|
79
79
|
invalid_properties = Array.new
|
80
|
+
if @id.nil?
|
81
|
+
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
82
|
+
end
|
83
|
+
|
84
|
+
if @inbox_id.nil?
|
85
|
+
invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
|
86
|
+
end
|
87
|
+
|
88
|
+
if @email_address.nil?
|
89
|
+
invalid_properties.push('invalid value for "email_address", email_address cannot be nil.')
|
90
|
+
end
|
91
|
+
|
80
92
|
invalid_properties
|
81
93
|
end
|
82
94
|
|
83
95
|
# Check to see if the all the properties in the model are valid
|
84
96
|
# @return true if the model is valid
|
85
97
|
def valid?
|
98
|
+
return false if @id.nil?
|
99
|
+
return false if @inbox_id.nil?
|
100
|
+
return false if @email_address.nil?
|
86
101
|
true
|
87
102
|
end
|
88
103
|
|
@@ -84,12 +84,32 @@ module MailSlurpClient
|
|
84
84
|
# @return Array for valid properties with the reasons
|
85
85
|
def list_invalid_properties
|
86
86
|
invalid_properties = Array.new
|
87
|
+
if @id.nil?
|
88
|
+
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
89
|
+
end
|
90
|
+
|
91
|
+
if @user_id.nil?
|
92
|
+
invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
|
93
|
+
end
|
94
|
+
|
95
|
+
if @email_address.nil?
|
96
|
+
invalid_properties.push('invalid value for "email_address", email_address cannot be nil.')
|
97
|
+
end
|
98
|
+
|
99
|
+
if @created_at.nil?
|
100
|
+
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
101
|
+
end
|
102
|
+
|
87
103
|
invalid_properties
|
88
104
|
end
|
89
105
|
|
90
106
|
# Check to see if the all the properties in the model are valid
|
91
107
|
# @return true if the model is valid
|
92
108
|
def valid?
|
109
|
+
return false if @id.nil?
|
110
|
+
return false if @user_id.nil?
|
111
|
+
return false if @email_address.nil?
|
112
|
+
return false if @created_at.nil?
|
93
113
|
true
|
94
114
|
end
|
95
115
|
|
@@ -61,12 +61,17 @@ module MailSlurpClient
|
|
61
61
|
# @return Array for valid properties with the reasons
|
62
62
|
def list_invalid_properties
|
63
63
|
invalid_properties = Array.new
|
64
|
+
if @download_link.nil?
|
65
|
+
invalid_properties.push('invalid value for "download_link", download_link cannot be nil.')
|
66
|
+
end
|
67
|
+
|
64
68
|
invalid_properties
|
65
69
|
end
|
66
70
|
|
67
71
|
# Check to see if the all the properties in the model are valid
|
68
72
|
# @return true if the model is valid
|
69
73
|
def valid?
|
74
|
+
return false if @download_link.nil?
|
70
75
|
true
|
71
76
|
end
|
72
77
|
|
@@ -123,12 +123,17 @@ module MailSlurpClient
|
|
123
123
|
# @return Array for valid properties with the reasons
|
124
124
|
def list_invalid_properties
|
125
125
|
invalid_properties = Array.new
|
126
|
+
if @output_format.nil?
|
127
|
+
invalid_properties.push('invalid value for "output_format", output_format cannot be nil.')
|
128
|
+
end
|
129
|
+
|
126
130
|
invalid_properties
|
127
131
|
end
|
128
132
|
|
129
133
|
# Check to see if the all the properties in the model are valid
|
130
134
|
# @return true if the model is valid
|
131
135
|
def valid?
|
136
|
+
return false if @output_format.nil?
|
132
137
|
output_format_validator = EnumAttributeValidator.new('String', ["CSV_DEFAULT", "CSV_EXCEL"])
|
133
138
|
return false unless output_format_validator.valid?(@output_format)
|
134
139
|
true
|
@@ -70,12 +70,22 @@ module MailSlurpClient
|
|
70
70
|
# @return Array for valid properties with the reasons
|
71
71
|
def list_invalid_properties
|
72
72
|
invalid_properties = Array.new
|
73
|
+
if @inbox_ids.nil?
|
74
|
+
invalid_properties.push('invalid value for "inbox_ids", inbox_ids cannot be nil.')
|
75
|
+
end
|
76
|
+
|
77
|
+
if @expire_before.nil?
|
78
|
+
invalid_properties.push('invalid value for "expire_before", expire_before cannot be nil.')
|
79
|
+
end
|
80
|
+
|
73
81
|
invalid_properties
|
74
82
|
end
|
75
83
|
|
76
84
|
# Check to see if the all the properties in the model are valid
|
77
85
|
# @return true if the model is valid
|
78
86
|
def valid?
|
87
|
+
return false if @inbox_ids.nil?
|
88
|
+
return false if @expire_before.nil?
|
79
89
|
true
|
80
90
|
end
|
81
91
|
|
@@ -68,12 +68,22 @@ 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 @url.nil?
|
72
|
+
invalid_properties.push('invalid value for "url", url cannot be nil.')
|
73
|
+
end
|
74
|
+
|
75
|
+
if @hash.nil?
|
76
|
+
invalid_properties.push('invalid value for "hash", hash cannot be nil.')
|
77
|
+
end
|
78
|
+
|
71
79
|
invalid_properties
|
72
80
|
end
|
73
81
|
|
74
82
|
# Check to see if the all the properties in the model are valid
|
75
83
|
# @return true if the model is valid
|
76
84
|
def valid?
|
85
|
+
return false if @url.nil?
|
86
|
+
return false if @hash.nil?
|
77
87
|
true
|
78
88
|
end
|
79
89
|
|
@@ -70,12 +70,22 @@ module MailSlurpClient
|
|
70
70
|
# @return Array for valid properties with the reasons
|
71
71
|
def list_invalid_properties
|
72
72
|
invalid_properties = Array.new
|
73
|
+
if @group.nil?
|
74
|
+
invalid_properties.push('invalid value for "group", group cannot be nil.')
|
75
|
+
end
|
76
|
+
|
77
|
+
if @contacts.nil?
|
78
|
+
invalid_properties.push('invalid value for "contacts", contacts cannot be nil.')
|
79
|
+
end
|
80
|
+
|
73
81
|
invalid_properties
|
74
82
|
end
|
75
83
|
|
76
84
|
# Check to see if the all the properties in the model are valid
|
77
85
|
# @return true if the model is valid
|
78
86
|
def valid?
|
87
|
+
return false if @group.nil?
|
88
|
+
return false if @contacts.nil?
|
79
89
|
true
|
80
90
|
end
|
81
91
|
|
@@ -84,12 +84,27 @@ module MailSlurpClient
|
|
84
84
|
# @return Array for valid properties with the reasons
|
85
85
|
def list_invalid_properties
|
86
86
|
invalid_properties = Array.new
|
87
|
+
if @id.nil?
|
88
|
+
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
89
|
+
end
|
90
|
+
|
91
|
+
if @name.nil?
|
92
|
+
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
93
|
+
end
|
94
|
+
|
95
|
+
if @created_at.nil?
|
96
|
+
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
97
|
+
end
|
98
|
+
|
87
99
|
invalid_properties
|
88
100
|
end
|
89
101
|
|
90
102
|
# Check to see if the all the properties in the model are valid
|
91
103
|
# @return true if the model is valid
|
92
104
|
def valid?
|
105
|
+
return false if @id.nil?
|
106
|
+
return false if @name.nil?
|
107
|
+
return false if @created_at.nil?
|
93
108
|
true
|
94
109
|
end
|
95
110
|
|
@@ -84,12 +84,27 @@ module MailSlurpClient
|
|
84
84
|
# @return Array for valid properties with the reasons
|
85
85
|
def list_invalid_properties
|
86
86
|
invalid_properties = Array.new
|
87
|
+
if @name.nil?
|
88
|
+
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
89
|
+
end
|
90
|
+
|
91
|
+
if @id.nil?
|
92
|
+
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
93
|
+
end
|
94
|
+
|
95
|
+
if @created_at.nil?
|
96
|
+
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
97
|
+
end
|
98
|
+
|
87
99
|
invalid_properties
|
88
100
|
end
|
89
101
|
|
90
102
|
# Check to see if the all the properties in the model are valid
|
91
103
|
# @return true if the model is valid
|
92
104
|
def valid?
|
105
|
+
return false if @name.nil?
|
106
|
+
return false if @id.nil?
|
107
|
+
return false if @created_at.nil?
|
93
108
|
true
|
94
109
|
end
|
95
110
|
|
@@ -15,29 +15,30 @@ require 'date'
|
|
15
15
|
module MailSlurpClient
|
16
16
|
# HTML Validation Results
|
17
17
|
class HTMLValidationResult
|
18
|
+
# Is HTML validation result valid
|
19
|
+
attr_accessor :is_valid
|
20
|
+
|
18
21
|
# Optional errors resulting from HTML validation
|
19
22
|
attr_accessor :errors
|
20
23
|
|
21
24
|
# Optional warnings resulting from HTML validation
|
22
25
|
attr_accessor :warnings
|
23
26
|
|
24
|
-
attr_accessor :valid
|
25
|
-
|
26
27
|
# Attribute mapping from ruby-style variable name to JSON key.
|
27
28
|
def self.attribute_map
|
28
29
|
{
|
30
|
+
:'is_valid' => :'isValid',
|
29
31
|
:'errors' => :'errors',
|
30
|
-
:'warnings' => :'warnings'
|
31
|
-
:'valid' => :'valid'
|
32
|
+
:'warnings' => :'warnings'
|
32
33
|
}
|
33
34
|
end
|
34
35
|
|
35
36
|
# Attribute type mapping.
|
36
37
|
def self.openapi_types
|
37
38
|
{
|
39
|
+
:'is_valid' => :'Boolean',
|
38
40
|
:'errors' => :'Array<ValidationMessage>',
|
39
|
-
:'warnings' => :'Array<ValidationMessage>'
|
40
|
-
:'valid' => :'Boolean'
|
41
|
+
:'warnings' => :'Array<ValidationMessage>'
|
41
42
|
}
|
42
43
|
end
|
43
44
|
|
@@ -62,6 +63,10 @@ module MailSlurpClient
|
|
62
63
|
h[k.to_sym] = v
|
63
64
|
}
|
64
65
|
|
66
|
+
if attributes.key?(:'is_valid')
|
67
|
+
self.is_valid = attributes[:'is_valid']
|
68
|
+
end
|
69
|
+
|
65
70
|
if attributes.key?(:'errors')
|
66
71
|
if (value = attributes[:'errors']).is_a?(Array)
|
67
72
|
self.errors = value
|
@@ -73,22 +78,33 @@ module MailSlurpClient
|
|
73
78
|
self.warnings = value
|
74
79
|
end
|
75
80
|
end
|
76
|
-
|
77
|
-
if attributes.key?(:'valid')
|
78
|
-
self.valid = attributes[:'valid']
|
79
|
-
end
|
80
81
|
end
|
81
82
|
|
82
83
|
# Show invalid properties with the reasons. Usually used together with valid?
|
83
84
|
# @return Array for valid properties with the reasons
|
84
85
|
def list_invalid_properties
|
85
86
|
invalid_properties = Array.new
|
87
|
+
if @is_valid.nil?
|
88
|
+
invalid_properties.push('invalid value for "is_valid", is_valid cannot be nil.')
|
89
|
+
end
|
90
|
+
|
91
|
+
if @errors.nil?
|
92
|
+
invalid_properties.push('invalid value for "errors", errors cannot be nil.')
|
93
|
+
end
|
94
|
+
|
95
|
+
if @warnings.nil?
|
96
|
+
invalid_properties.push('invalid value for "warnings", warnings cannot be nil.')
|
97
|
+
end
|
98
|
+
|
86
99
|
invalid_properties
|
87
100
|
end
|
88
101
|
|
89
102
|
# Check to see if the all the properties in the model are valid
|
90
103
|
# @return true if the model is valid
|
91
104
|
def valid?
|
105
|
+
return false if @is_valid.nil?
|
106
|
+
return false if @errors.nil?
|
107
|
+
return false if @warnings.nil?
|
92
108
|
true
|
93
109
|
end
|
94
110
|
|
@@ -97,9 +113,9 @@ module MailSlurpClient
|
|
97
113
|
def ==(o)
|
98
114
|
return true if self.equal?(o)
|
99
115
|
self.class == o.class &&
|
116
|
+
is_valid == o.is_valid &&
|
100
117
|
errors == o.errors &&
|
101
|
-
warnings == o.warnings
|
102
|
-
valid == o.valid
|
118
|
+
warnings == o.warnings
|
103
119
|
end
|
104
120
|
|
105
121
|
# @see the `==` method
|
@@ -111,7 +127,7 @@ module MailSlurpClient
|
|
111
127
|
# Calculates hash code according to all attributes.
|
112
128
|
# @return [Integer] Hash code
|
113
129
|
def hash
|
114
|
-
[errors, warnings
|
130
|
+
[is_valid, errors, warnings].hash
|
115
131
|
end
|
116
132
|
|
117
133
|
# Builds the object from hash
|
@@ -176,14 +176,39 @@ module MailSlurpClient
|
|
176
176
|
# @return Array for valid properties with the reasons
|
177
177
|
def list_invalid_properties
|
178
178
|
invalid_properties = Array.new
|
179
|
+
if @id.nil?
|
180
|
+
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
181
|
+
end
|
182
|
+
|
183
|
+
if @created_at.nil?
|
184
|
+
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
185
|
+
end
|
186
|
+
|
187
|
+
if @email_address.nil?
|
188
|
+
invalid_properties.push('invalid value for "email_address", email_address cannot be nil.')
|
189
|
+
end
|
190
|
+
|
191
|
+
if @favourite.nil?
|
192
|
+
invalid_properties.push('invalid value for "favourite", favourite cannot be nil.')
|
193
|
+
end
|
194
|
+
|
195
|
+
if @read_only.nil?
|
196
|
+
invalid_properties.push('invalid value for "read_only", read_only cannot be nil.')
|
197
|
+
end
|
198
|
+
|
179
199
|
invalid_properties
|
180
200
|
end
|
181
201
|
|
182
202
|
# Check to see if the all the properties in the model are valid
|
183
203
|
# @return true if the model is valid
|
184
204
|
def valid?
|
205
|
+
return false if @id.nil?
|
206
|
+
return false if @created_at.nil?
|
207
|
+
return false if @email_address.nil?
|
208
|
+
return false if @favourite.nil?
|
185
209
|
inbox_type_validator = EnumAttributeValidator.new('String', ["HTTP_INBOX", "SMTP_INBOX"])
|
186
210
|
return false unless inbox_type_validator.valid?(@inbox_type)
|
211
|
+
return false if @read_only.nil?
|
187
212
|
true
|
188
213
|
end
|
189
214
|
|
@@ -60,12 +60,17 @@ module MailSlurpClient
|
|
60
60
|
# @return Array for valid properties with the reasons
|
61
61
|
def list_invalid_properties
|
62
62
|
invalid_properties = Array.new
|
63
|
+
if @exists.nil?
|
64
|
+
invalid_properties.push('invalid value for "exists", exists cannot be nil.')
|
65
|
+
end
|
66
|
+
|
63
67
|
invalid_properties
|
64
68
|
end
|
65
69
|
|
66
70
|
# Check to see if the all the properties in the model are valid
|
67
71
|
# @return true if the model is valid
|
68
72
|
def valid?
|
73
|
+
return false if @exists.nil?
|
69
74
|
true
|
70
75
|
end
|
71
76
|
|
@@ -124,14 +124,44 @@ module MailSlurpClient
|
|
124
124
|
# @return Array for valid properties with the reasons
|
125
125
|
def list_invalid_properties
|
126
126
|
invalid_properties = Array.new
|
127
|
+
if @id.nil?
|
128
|
+
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
129
|
+
end
|
130
|
+
|
131
|
+
if @inbox_id.nil?
|
132
|
+
invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
|
133
|
+
end
|
134
|
+
|
135
|
+
if @field.nil?
|
136
|
+
invalid_properties.push('invalid value for "field", field cannot be nil.')
|
137
|
+
end
|
138
|
+
|
139
|
+
if @match.nil?
|
140
|
+
invalid_properties.push('invalid value for "match", match cannot be nil.')
|
141
|
+
end
|
142
|
+
|
143
|
+
if @forward_to_recipients.nil?
|
144
|
+
invalid_properties.push('invalid value for "forward_to_recipients", forward_to_recipients cannot be nil.')
|
145
|
+
end
|
146
|
+
|
147
|
+
if @created_at.nil?
|
148
|
+
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
149
|
+
end
|
150
|
+
|
127
151
|
invalid_properties
|
128
152
|
end
|
129
153
|
|
130
154
|
# Check to see if the all the properties in the model are valid
|
131
155
|
# @return true if the model is valid
|
132
156
|
def valid?
|
157
|
+
return false if @id.nil?
|
158
|
+
return false if @inbox_id.nil?
|
159
|
+
return false if @field.nil?
|
133
160
|
field_validator = EnumAttributeValidator.new('String', ["RECIPIENTS", "SENDER", "SUBJECT", "ATTACHMENTS"])
|
134
161
|
return false unless field_validator.valid?(@field)
|
162
|
+
return false if @match.nil?
|
163
|
+
return false if @forward_to_recipients.nil?
|
164
|
+
return false if @created_at.nil?
|
135
165
|
true
|
136
166
|
end
|
137
167
|
|
@@ -60,12 +60,17 @@ module MailSlurpClient
|
|
60
60
|
# @return Array for valid properties with the reasons
|
61
61
|
def list_invalid_properties
|
62
62
|
invalid_properties = Array.new
|
63
|
+
if @test_value.nil?
|
64
|
+
invalid_properties.push('invalid value for "test_value", test_value cannot be nil.')
|
65
|
+
end
|
66
|
+
|
63
67
|
invalid_properties
|
64
68
|
end
|
65
69
|
|
66
70
|
# Check to see if the all the properties in the model are valid
|
67
71
|
# @return true if the model is valid
|
68
72
|
def valid?
|
73
|
+
return false if @test_value.nil?
|
69
74
|
true
|
70
75
|
end
|
71
76
|
|
@@ -70,12 +70,22 @@ module MailSlurpClient
|
|
70
70
|
# @return Array for valid properties with the reasons
|
71
71
|
def list_invalid_properties
|
72
72
|
invalid_properties = Array.new
|
73
|
+
if @matches.nil?
|
74
|
+
invalid_properties.push('invalid value for "matches", matches cannot be nil.')
|
75
|
+
end
|
76
|
+
|
77
|
+
if @does_match.nil?
|
78
|
+
invalid_properties.push('invalid value for "does_match", does_match cannot be nil.')
|
79
|
+
end
|
80
|
+
|
73
81
|
invalid_properties
|
74
82
|
end
|
75
83
|
|
76
84
|
# Check to see if the all the properties in the model are valid
|
77
85
|
# @return true if the model is valid
|
78
86
|
def valid?
|
87
|
+
return false if @matches.nil?
|
88
|
+
return false if @does_match.nil?
|
79
89
|
true
|
80
90
|
end
|
81
91
|
|