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
@@ -157,12 +157,32 @@ module MailSlurpClient
|
|
157
157
|
# @return Array for valid properties with the reasons
|
158
158
|
def list_invalid_properties
|
159
159
|
invalid_properties = Array.new
|
160
|
+
if @id.nil?
|
161
|
+
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
162
|
+
end
|
163
|
+
|
164
|
+
if @created_at.nil?
|
165
|
+
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
166
|
+
end
|
167
|
+
|
168
|
+
if @favourite.nil?
|
169
|
+
invalid_properties.push('invalid value for "favourite", favourite cannot be nil.')
|
170
|
+
end
|
171
|
+
|
172
|
+
if @team_access.nil?
|
173
|
+
invalid_properties.push('invalid value for "team_access", team_access cannot be nil.')
|
174
|
+
end
|
175
|
+
|
160
176
|
invalid_properties
|
161
177
|
end
|
162
178
|
|
163
179
|
# Check to see if the all the properties in the model are valid
|
164
180
|
# @return true if the model is valid
|
165
181
|
def valid?
|
182
|
+
return false if @id.nil?
|
183
|
+
return false if @created_at.nil?
|
184
|
+
return false if @favourite.nil?
|
185
|
+
return false if @team_access.nil?
|
166
186
|
inbox_type_validator = EnumAttributeValidator.new('String', ["HTTP_INBOX", "SMTP_INBOX"])
|
167
187
|
return false unless inbox_type_validator.valid?(@inbox_type)
|
168
188
|
true
|
@@ -130,18 +130,53 @@ module MailSlurpClient
|
|
130
130
|
# @return Array for valid properties with the reasons
|
131
131
|
def list_invalid_properties
|
132
132
|
invalid_properties = Array.new
|
133
|
+
if @id.nil?
|
134
|
+
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
135
|
+
end
|
136
|
+
|
137
|
+
if @inbox_id.nil?
|
138
|
+
invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
|
139
|
+
end
|
140
|
+
|
141
|
+
if @scope.nil?
|
142
|
+
invalid_properties.push('invalid value for "scope", scope cannot be nil.')
|
143
|
+
end
|
144
|
+
|
145
|
+
if @action.nil?
|
146
|
+
invalid_properties.push('invalid value for "action", action cannot be nil.')
|
147
|
+
end
|
148
|
+
|
149
|
+
if @target.nil?
|
150
|
+
invalid_properties.push('invalid value for "target", target cannot be nil.')
|
151
|
+
end
|
152
|
+
|
153
|
+
if @handler.nil?
|
154
|
+
invalid_properties.push('invalid value for "handler", handler cannot be nil.')
|
155
|
+
end
|
156
|
+
|
157
|
+
if @created_at.nil?
|
158
|
+
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
159
|
+
end
|
160
|
+
|
133
161
|
invalid_properties
|
134
162
|
end
|
135
163
|
|
136
164
|
# Check to see if the all the properties in the model are valid
|
137
165
|
# @return true if the model is valid
|
138
166
|
def valid?
|
167
|
+
return false if @id.nil?
|
168
|
+
return false if @inbox_id.nil?
|
169
|
+
return false if @scope.nil?
|
139
170
|
scope_validator = EnumAttributeValidator.new('String', ["RECEIVING_EMAILS", "SENDING_EMAILS"])
|
140
171
|
return false unless scope_validator.valid?(@scope)
|
172
|
+
return false if @action.nil?
|
141
173
|
action_validator = EnumAttributeValidator.new('String', ["BLOCK", "ALLOW", "FILTER_REMOVE"])
|
142
174
|
return false unless action_validator.valid?(@action)
|
175
|
+
return false if @target.nil?
|
176
|
+
return false if @handler.nil?
|
143
177
|
handler_validator = EnumAttributeValidator.new('String', ["EXCEPTION"])
|
144
178
|
return false unless handler_validator.valid?(@handler)
|
179
|
+
return false if @created_at.nil?
|
145
180
|
true
|
146
181
|
end
|
147
182
|
|
@@ -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_target.nil?
|
64
|
+
invalid_properties.push('invalid value for "test_target", test_target 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_target.nil?
|
69
74
|
true
|
70
75
|
end
|
71
76
|
|
@@ -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 @ruleset_matches.nil?
|
75
|
+
invalid_properties.push('invalid value for "ruleset_matches", ruleset_matches cannot be nil.')
|
76
|
+
end
|
77
|
+
|
78
|
+
if @matches.nil?
|
79
|
+
invalid_properties.push('invalid value for "matches", matches 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 @ruleset_matches.nil?
|
89
|
+
return false if @matches.nil?
|
80
90
|
true
|
81
91
|
end
|
82
92
|
|
@@ -69,12 +69,22 @@ module MailSlurpClient
|
|
69
69
|
# @return Array for valid properties with the reasons
|
70
70
|
def list_invalid_properties
|
71
71
|
invalid_properties = Array.new
|
72
|
+
if @address.nil?
|
73
|
+
invalid_properties.push('invalid value for "address", address cannot be nil.')
|
74
|
+
end
|
75
|
+
|
76
|
+
if @hostname.nil?
|
77
|
+
invalid_properties.push('invalid value for "hostname", hostname cannot be nil.')
|
78
|
+
end
|
79
|
+
|
72
80
|
invalid_properties
|
73
81
|
end
|
74
82
|
|
75
83
|
# Check to see if the all the properties in the model are valid
|
76
84
|
# @return true if the model is valid
|
77
85
|
def valid?
|
86
|
+
return false if @address.nil?
|
87
|
+
return false if @hostname.nil?
|
78
88
|
true
|
79
89
|
end
|
80
90
|
|
@@ -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 @value.nil?
|
64
|
+
invalid_properties.push('invalid value for "value", 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 @value.nil?
|
69
74
|
true
|
70
75
|
end
|
71
76
|
|
@@ -102,6 +102,14 @@ module MailSlurpClient
|
|
102
102
|
# @return Array for valid properties with the reasons
|
103
103
|
def list_invalid_properties
|
104
104
|
invalid_properties = Array.new
|
105
|
+
if @field.nil?
|
106
|
+
invalid_properties.push('invalid value for "field", field cannot be nil.')
|
107
|
+
end
|
108
|
+
|
109
|
+
if @should.nil?
|
110
|
+
invalid_properties.push('invalid value for "should", should cannot be nil.')
|
111
|
+
end
|
112
|
+
|
105
113
|
if @value.nil?
|
106
114
|
invalid_properties.push('invalid value for "value", value cannot be nil.')
|
107
115
|
end
|
@@ -112,8 +120,10 @@ module MailSlurpClient
|
|
112
120
|
# Check to see if the all the properties in the model are valid
|
113
121
|
# @return true if the model is valid
|
114
122
|
def valid?
|
123
|
+
return false if @field.nil?
|
115
124
|
field_validator = EnumAttributeValidator.new('String', ["SUBJECT", "TO", "BCC", "CC", "FROM"])
|
116
125
|
return false unless field_validator.valid?(@field)
|
126
|
+
return false if @should.nil?
|
117
127
|
should_validator = EnumAttributeValidator.new('String', ["CONTAIN", "EQUAL"])
|
118
128
|
return false unless should_validator.valid?(@should)
|
119
129
|
return false if @value.nil?
|
@@ -156,12 +156,47 @@ module MailSlurpClient
|
|
156
156
|
# @return Array for valid properties with the reasons
|
157
157
|
def list_invalid_properties
|
158
158
|
invalid_properties = Array.new
|
159
|
+
if @attachment_count.nil?
|
160
|
+
invalid_properties.push('invalid value for "attachment_count", attachment_count cannot be nil.')
|
161
|
+
end
|
162
|
+
|
163
|
+
if @to.nil?
|
164
|
+
invalid_properties.push('invalid value for "to", to cannot be nil.')
|
165
|
+
end
|
166
|
+
|
167
|
+
if @cc.nil?
|
168
|
+
invalid_properties.push('invalid value for "cc", cc cannot be nil.')
|
169
|
+
end
|
170
|
+
|
171
|
+
if @bcc.nil?
|
172
|
+
invalid_properties.push('invalid value for "bcc", bcc cannot be nil.')
|
173
|
+
end
|
174
|
+
|
175
|
+
if @inbox_ids.nil?
|
176
|
+
invalid_properties.push('invalid value for "inbox_ids", inbox_ids cannot be nil.')
|
177
|
+
end
|
178
|
+
|
179
|
+
if @created_at.nil?
|
180
|
+
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
181
|
+
end
|
182
|
+
|
183
|
+
if @updated_at.nil?
|
184
|
+
invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
|
185
|
+
end
|
186
|
+
|
159
187
|
invalid_properties
|
160
188
|
end
|
161
189
|
|
162
190
|
# Check to see if the all the properties in the model are valid
|
163
191
|
# @return true if the model is valid
|
164
192
|
def valid?
|
193
|
+
return false if @attachment_count.nil?
|
194
|
+
return false if @to.nil?
|
195
|
+
return false if @cc.nil?
|
196
|
+
return false if @bcc.nil?
|
197
|
+
return false if @inbox_ids.nil?
|
198
|
+
return false if @created_at.nil?
|
199
|
+
return false if @updated_at.nil?
|
165
200
|
true
|
166
201
|
end
|
167
202
|
|
@@ -18,10 +18,10 @@ module MailSlurpClient
|
|
18
18
|
|
19
19
|
attr_accessor :from
|
20
20
|
|
21
|
-
attr_accessor :subject
|
22
|
-
|
23
21
|
attr_accessor :user_id
|
24
22
|
|
23
|
+
attr_accessor :subject
|
24
|
+
|
25
25
|
attr_accessor :created_at
|
26
26
|
|
27
27
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -29,8 +29,8 @@ module MailSlurpClient
|
|
29
29
|
{
|
30
30
|
:'id' => :'id',
|
31
31
|
:'from' => :'from',
|
32
|
-
:'subject' => :'subject',
|
33
32
|
:'user_id' => :'userId',
|
33
|
+
:'subject' => :'subject',
|
34
34
|
:'created_at' => :'createdAt'
|
35
35
|
}
|
36
36
|
end
|
@@ -40,8 +40,8 @@ module MailSlurpClient
|
|
40
40
|
{
|
41
41
|
:'id' => :'String',
|
42
42
|
:'from' => :'String',
|
43
|
-
:'subject' => :'String',
|
44
43
|
:'user_id' => :'String',
|
44
|
+
:'subject' => :'String',
|
45
45
|
:'created_at' => :'DateTime'
|
46
46
|
}
|
47
47
|
end
|
@@ -75,14 +75,14 @@ module MailSlurpClient
|
|
75
75
|
self.from = attributes[:'from']
|
76
76
|
end
|
77
77
|
|
78
|
-
if attributes.key?(:'subject')
|
79
|
-
self.subject = attributes[:'subject']
|
80
|
-
end
|
81
|
-
|
82
78
|
if attributes.key?(:'user_id')
|
83
79
|
self.user_id = attributes[:'user_id']
|
84
80
|
end
|
85
81
|
|
82
|
+
if attributes.key?(:'subject')
|
83
|
+
self.subject = attributes[:'subject']
|
84
|
+
end
|
85
|
+
|
86
86
|
if attributes.key?(:'created_at')
|
87
87
|
self.created_at = attributes[:'created_at']
|
88
88
|
end
|
@@ -92,12 +92,22 @@ module MailSlurpClient
|
|
92
92
|
# @return Array for valid properties with the reasons
|
93
93
|
def list_invalid_properties
|
94
94
|
invalid_properties = Array.new
|
95
|
+
if @id.nil?
|
96
|
+
invalid_properties.push('invalid value for "id", id 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
|
+
|
95
103
|
invalid_properties
|
96
104
|
end
|
97
105
|
|
98
106
|
# Check to see if the all the properties in the model are valid
|
99
107
|
# @return true if the model is valid
|
100
108
|
def valid?
|
109
|
+
return false if @id.nil?
|
110
|
+
return false if @created_at.nil?
|
101
111
|
true
|
102
112
|
end
|
103
113
|
|
@@ -108,8 +118,8 @@ module MailSlurpClient
|
|
108
118
|
self.class == o.class &&
|
109
119
|
id == o.id &&
|
110
120
|
from == o.from &&
|
111
|
-
subject == o.subject &&
|
112
121
|
user_id == o.user_id &&
|
122
|
+
subject == o.subject &&
|
113
123
|
created_at == o.created_at
|
114
124
|
end
|
115
125
|
|
@@ -122,7 +132,7 @@ module MailSlurpClient
|
|
122
132
|
# Calculates hash code according to all attributes.
|
123
133
|
# @return [Integer] Hash code
|
124
134
|
def hash
|
125
|
-
[id, from,
|
135
|
+
[id, from, user_id, subject, created_at].hash
|
126
136
|
end
|
127
137
|
|
128
138
|
# Builds the object from hash
|
@@ -85,12 +85,32 @@ module MailSlurpClient
|
|
85
85
|
# @return Array for valid properties with the reasons
|
86
86
|
def list_invalid_properties
|
87
87
|
invalid_properties = Array.new
|
88
|
+
if @raw.nil?
|
89
|
+
invalid_properties.push('invalid value for "raw", raw cannot be nil.')
|
90
|
+
end
|
91
|
+
|
92
|
+
if @record_type.nil?
|
93
|
+
invalid_properties.push('invalid value for "record_type", record_type cannot be nil.')
|
94
|
+
end
|
95
|
+
|
96
|
+
if @priority.nil?
|
97
|
+
invalid_properties.push('invalid value for "priority", priority cannot be nil.')
|
98
|
+
end
|
99
|
+
|
100
|
+
if @value.nil?
|
101
|
+
invalid_properties.push('invalid value for "value", value cannot be nil.')
|
102
|
+
end
|
103
|
+
|
88
104
|
invalid_properties
|
89
105
|
end
|
90
106
|
|
91
107
|
# Check to see if the all the properties in the model are valid
|
92
108
|
# @return true if the model is valid
|
93
109
|
def valid?
|
110
|
+
return false if @raw.nil?
|
111
|
+
return false if @record_type.nil?
|
112
|
+
return false if @priority.nil?
|
113
|
+
return false if @value.nil?
|
94
114
|
true
|
95
115
|
end
|
96
116
|
|
@@ -157,14 +157,39 @@ module MailSlurpClient
|
|
157
157
|
# @return Array for valid properties with the reasons
|
158
158
|
def list_invalid_properties
|
159
159
|
invalid_properties = Array.new
|
160
|
+
if @id.nil?
|
161
|
+
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
162
|
+
end
|
163
|
+
|
164
|
+
if @created_at.nil?
|
165
|
+
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
166
|
+
end
|
167
|
+
|
168
|
+
if @favourite.nil?
|
169
|
+
invalid_properties.push('invalid value for "favourite", favourite cannot be nil.')
|
170
|
+
end
|
171
|
+
|
172
|
+
if @team_access.nil?
|
173
|
+
invalid_properties.push('invalid value for "team_access", team_access cannot be nil.')
|
174
|
+
end
|
175
|
+
|
176
|
+
if @read_only.nil?
|
177
|
+
invalid_properties.push('invalid value for "read_only", read_only cannot be nil.')
|
178
|
+
end
|
179
|
+
|
160
180
|
invalid_properties
|
161
181
|
end
|
162
182
|
|
163
183
|
# Check to see if the all the properties in the model are valid
|
164
184
|
# @return true if the model is valid
|
165
185
|
def valid?
|
186
|
+
return false if @id.nil?
|
187
|
+
return false if @created_at.nil?
|
188
|
+
return false if @favourite.nil?
|
189
|
+
return false if @team_access.nil?
|
166
190
|
inbox_type_validator = EnumAttributeValidator.new('String', ["HTTP_INBOX", "SMTP_INBOX"])
|
167
191
|
return false unless inbox_type_validator.valid?(@inbox_type)
|
192
|
+
return false if @read_only.nil?
|
168
193
|
true
|
169
194
|
end
|
170
195
|
|
@@ -19,12 +19,14 @@ module MailSlurpClient
|
|
19
19
|
|
20
20
|
attr_accessor :pageable
|
21
21
|
|
22
|
-
attr_accessor :
|
22
|
+
attr_accessor :total
|
23
23
|
|
24
|
-
attr_accessor :
|
24
|
+
attr_accessor :last
|
25
25
|
|
26
26
|
attr_accessor :total_elements
|
27
27
|
|
28
|
+
attr_accessor :total_pages
|
29
|
+
|
28
30
|
attr_accessor :size
|
29
31
|
|
30
32
|
attr_accessor :number
|
@@ -42,9 +44,10 @@ module MailSlurpClient
|
|
42
44
|
{
|
43
45
|
:'content' => :'content',
|
44
46
|
:'pageable' => :'pageable',
|
47
|
+
:'total' => :'total',
|
45
48
|
:'last' => :'last',
|
46
|
-
:'total_pages' => :'totalPages',
|
47
49
|
:'total_elements' => :'totalElements',
|
50
|
+
:'total_pages' => :'totalPages',
|
48
51
|
:'size' => :'size',
|
49
52
|
:'number' => :'number',
|
50
53
|
:'sort' => :'sort',
|
@@ -58,10 +61,11 @@ module MailSlurpClient
|
|
58
61
|
def self.openapi_types
|
59
62
|
{
|
60
63
|
:'content' => :'Array<AliasProjection>',
|
61
|
-
:'pageable' => :'
|
64
|
+
:'pageable' => :'PageableObject',
|
65
|
+
:'total' => :'Integer',
|
62
66
|
:'last' => :'Boolean',
|
63
|
-
:'total_pages' => :'Integer',
|
64
67
|
:'total_elements' => :'Integer',
|
68
|
+
:'total_pages' => :'Integer',
|
65
69
|
:'size' => :'Integer',
|
66
70
|
:'number' => :'Integer',
|
67
71
|
:'sort' => :'Sort',
|
@@ -102,18 +106,22 @@ module MailSlurpClient
|
|
102
106
|
self.pageable = attributes[:'pageable']
|
103
107
|
end
|
104
108
|
|
105
|
-
if attributes.key?(:'
|
106
|
-
self.
|
109
|
+
if attributes.key?(:'total')
|
110
|
+
self.total = attributes[:'total']
|
107
111
|
end
|
108
112
|
|
109
|
-
if attributes.key?(:'
|
110
|
-
self.
|
113
|
+
if attributes.key?(:'last')
|
114
|
+
self.last = attributes[:'last']
|
111
115
|
end
|
112
116
|
|
113
117
|
if attributes.key?(:'total_elements')
|
114
118
|
self.total_elements = attributes[:'total_elements']
|
115
119
|
end
|
116
120
|
|
121
|
+
if attributes.key?(:'total_pages')
|
122
|
+
self.total_pages = attributes[:'total_pages']
|
123
|
+
end
|
124
|
+
|
117
125
|
if attributes.key?(:'size')
|
118
126
|
self.size = attributes[:'size']
|
119
127
|
end
|
@@ -159,9 +167,10 @@ module MailSlurpClient
|
|
159
167
|
self.class == o.class &&
|
160
168
|
content == o.content &&
|
161
169
|
pageable == o.pageable &&
|
170
|
+
total == o.total &&
|
162
171
|
last == o.last &&
|
163
|
-
total_pages == o.total_pages &&
|
164
172
|
total_elements == o.total_elements &&
|
173
|
+
total_pages == o.total_pages &&
|
165
174
|
size == o.size &&
|
166
175
|
number == o.number &&
|
167
176
|
sort == o.sort &&
|
@@ -179,7 +188,7 @@ module MailSlurpClient
|
|
179
188
|
# Calculates hash code according to all attributes.
|
180
189
|
# @return [Integer] Hash code
|
181
190
|
def hash
|
182
|
-
[content, pageable,
|
191
|
+
[content, pageable, total, last, total_elements, total_pages, size, number, sort, first, number_of_elements, empty].hash
|
183
192
|
end
|
184
193
|
|
185
194
|
# Builds the object from hash
|
@@ -19,12 +19,14 @@ module MailSlurpClient
|
|
19
19
|
|
20
20
|
attr_accessor :pageable
|
21
21
|
|
22
|
-
attr_accessor :
|
22
|
+
attr_accessor :total
|
23
23
|
|
24
|
-
attr_accessor :
|
24
|
+
attr_accessor :last
|
25
25
|
|
26
26
|
attr_accessor :total_elements
|
27
27
|
|
28
|
+
attr_accessor :total_pages
|
29
|
+
|
28
30
|
attr_accessor :size
|
29
31
|
|
30
32
|
attr_accessor :number
|
@@ -42,9 +44,10 @@ module MailSlurpClient
|
|
42
44
|
{
|
43
45
|
:'content' => :'content',
|
44
46
|
:'pageable' => :'pageable',
|
47
|
+
:'total' => :'total',
|
45
48
|
:'last' => :'last',
|
46
|
-
:'total_pages' => :'totalPages',
|
47
49
|
:'total_elements' => :'totalElements',
|
50
|
+
:'total_pages' => :'totalPages',
|
48
51
|
:'size' => :'size',
|
49
52
|
:'number' => :'number',
|
50
53
|
:'sort' => :'sort',
|
@@ -58,10 +61,11 @@ module MailSlurpClient
|
|
58
61
|
def self.openapi_types
|
59
62
|
{
|
60
63
|
:'content' => :'Array<AttachmentProjection>',
|
61
|
-
:'pageable' => :'
|
64
|
+
:'pageable' => :'PageableObject',
|
65
|
+
:'total' => :'Integer',
|
62
66
|
:'last' => :'Boolean',
|
63
|
-
:'total_pages' => :'Integer',
|
64
67
|
:'total_elements' => :'Integer',
|
68
|
+
:'total_pages' => :'Integer',
|
65
69
|
:'size' => :'Integer',
|
66
70
|
:'number' => :'Integer',
|
67
71
|
:'sort' => :'Sort',
|
@@ -102,18 +106,22 @@ module MailSlurpClient
|
|
102
106
|
self.pageable = attributes[:'pageable']
|
103
107
|
end
|
104
108
|
|
105
|
-
if attributes.key?(:'
|
106
|
-
self.
|
109
|
+
if attributes.key?(:'total')
|
110
|
+
self.total = attributes[:'total']
|
107
111
|
end
|
108
112
|
|
109
|
-
if attributes.key?(:'
|
110
|
-
self.
|
113
|
+
if attributes.key?(:'last')
|
114
|
+
self.last = attributes[:'last']
|
111
115
|
end
|
112
116
|
|
113
117
|
if attributes.key?(:'total_elements')
|
114
118
|
self.total_elements = attributes[:'total_elements']
|
115
119
|
end
|
116
120
|
|
121
|
+
if attributes.key?(:'total_pages')
|
122
|
+
self.total_pages = attributes[:'total_pages']
|
123
|
+
end
|
124
|
+
|
117
125
|
if attributes.key?(:'size')
|
118
126
|
self.size = attributes[:'size']
|
119
127
|
end
|
@@ -159,9 +167,10 @@ module MailSlurpClient
|
|
159
167
|
self.class == o.class &&
|
160
168
|
content == o.content &&
|
161
169
|
pageable == o.pageable &&
|
170
|
+
total == o.total &&
|
162
171
|
last == o.last &&
|
163
|
-
total_pages == o.total_pages &&
|
164
172
|
total_elements == o.total_elements &&
|
173
|
+
total_pages == o.total_pages &&
|
165
174
|
size == o.size &&
|
166
175
|
number == o.number &&
|
167
176
|
sort == o.sort &&
|
@@ -179,7 +188,7 @@ module MailSlurpClient
|
|
179
188
|
# Calculates hash code according to all attributes.
|
180
189
|
# @return [Integer] Hash code
|
181
190
|
def hash
|
182
|
-
[content, pageable,
|
191
|
+
[content, pageable, total, last, total_elements, total_pages, size, number, sort, first, number_of_elements, empty].hash
|
183
192
|
end
|
184
193
|
|
185
194
|
# Builds the object from hash
|
@@ -19,12 +19,14 @@ module MailSlurpClient
|
|
19
19
|
|
20
20
|
attr_accessor :pageable
|
21
21
|
|
22
|
-
attr_accessor :
|
22
|
+
attr_accessor :total
|
23
23
|
|
24
|
-
attr_accessor :
|
24
|
+
attr_accessor :last
|
25
25
|
|
26
26
|
attr_accessor :total_elements
|
27
27
|
|
28
|
+
attr_accessor :total_pages
|
29
|
+
|
28
30
|
attr_accessor :size
|
29
31
|
|
30
32
|
attr_accessor :number
|
@@ -42,9 +44,10 @@ module MailSlurpClient
|
|
42
44
|
{
|
43
45
|
:'content' => :'content',
|
44
46
|
:'pageable' => :'pageable',
|
47
|
+
:'total' => :'total',
|
45
48
|
:'last' => :'last',
|
46
|
-
:'total_pages' => :'totalPages',
|
47
49
|
:'total_elements' => :'totalElements',
|
50
|
+
:'total_pages' => :'totalPages',
|
48
51
|
:'size' => :'size',
|
49
52
|
:'number' => :'number',
|
50
53
|
:'sort' => :'sort',
|
@@ -58,10 +61,11 @@ module MailSlurpClient
|
|
58
61
|
def self.openapi_types
|
59
62
|
{
|
60
63
|
:'content' => :'Array<BounceProjection>',
|
61
|
-
:'pageable' => :'
|
64
|
+
:'pageable' => :'PageableObject',
|
65
|
+
:'total' => :'Integer',
|
62
66
|
:'last' => :'Boolean',
|
63
|
-
:'total_pages' => :'Integer',
|
64
67
|
:'total_elements' => :'Integer',
|
68
|
+
:'total_pages' => :'Integer',
|
65
69
|
:'size' => :'Integer',
|
66
70
|
:'number' => :'Integer',
|
67
71
|
:'sort' => :'Sort',
|
@@ -102,18 +106,22 @@ module MailSlurpClient
|
|
102
106
|
self.pageable = attributes[:'pageable']
|
103
107
|
end
|
104
108
|
|
105
|
-
if attributes.key?(:'
|
106
|
-
self.
|
109
|
+
if attributes.key?(:'total')
|
110
|
+
self.total = attributes[:'total']
|
107
111
|
end
|
108
112
|
|
109
|
-
if attributes.key?(:'
|
110
|
-
self.
|
113
|
+
if attributes.key?(:'last')
|
114
|
+
self.last = attributes[:'last']
|
111
115
|
end
|
112
116
|
|
113
117
|
if attributes.key?(:'total_elements')
|
114
118
|
self.total_elements = attributes[:'total_elements']
|
115
119
|
end
|
116
120
|
|
121
|
+
if attributes.key?(:'total_pages')
|
122
|
+
self.total_pages = attributes[:'total_pages']
|
123
|
+
end
|
124
|
+
|
117
125
|
if attributes.key?(:'size')
|
118
126
|
self.size = attributes[:'size']
|
119
127
|
end
|
@@ -159,9 +167,10 @@ module MailSlurpClient
|
|
159
167
|
self.class == o.class &&
|
160
168
|
content == o.content &&
|
161
169
|
pageable == o.pageable &&
|
170
|
+
total == o.total &&
|
162
171
|
last == o.last &&
|
163
|
-
total_pages == o.total_pages &&
|
164
172
|
total_elements == o.total_elements &&
|
173
|
+
total_pages == o.total_pages &&
|
165
174
|
size == o.size &&
|
166
175
|
number == o.number &&
|
167
176
|
sort == o.sort &&
|
@@ -179,7 +188,7 @@ module MailSlurpClient
|
|
179
188
|
# Calculates hash code according to all attributes.
|
180
189
|
# @return [Integer] Hash code
|
181
190
|
def hash
|
182
|
-
[content, pageable,
|
191
|
+
[content, pageable, total, last, total_elements, total_pages, size, number, sort, first, number_of_elements, empty].hash
|
183
192
|
end
|
184
193
|
|
185
194
|
# Builds the object from hash
|