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
@@ -110,12 +110,17 @@ module MailSlurpClient
|
|
110
110
|
# @return Array for valid properties with the reasons
|
111
111
|
def list_invalid_properties
|
112
112
|
invalid_properties = Array.new
|
113
|
+
if @url.nil?
|
114
|
+
invalid_properties.push('invalid value for "url", url cannot be nil.')
|
115
|
+
end
|
116
|
+
|
113
117
|
invalid_properties
|
114
118
|
end
|
115
119
|
|
116
120
|
# Check to see if the all the properties in the model are valid
|
117
121
|
# @return true if the model is valid
|
118
122
|
def valid?
|
123
|
+
return false if @url.nil?
|
119
124
|
event_name_validator = EnumAttributeValidator.new('String', ["EMAIL_RECEIVED", "NEW_EMAIL", "NEW_CONTACT", "NEW_ATTACHMENT", "EMAIL_OPENED", "EMAIL_READ"])
|
120
125
|
return false unless event_name_validator.valid?(@event_name)
|
121
126
|
true
|
@@ -79,12 +79,22 @@ module MailSlurpClient
|
|
79
79
|
# @return Array for valid properties with the reasons
|
80
80
|
def list_invalid_properties
|
81
81
|
invalid_properties = Array.new
|
82
|
+
if @mx_records.nil?
|
83
|
+
invalid_properties.push('invalid value for "mx_records", mx_records cannot be nil.')
|
84
|
+
end
|
85
|
+
|
86
|
+
if @domain.nil?
|
87
|
+
invalid_properties.push('invalid value for "domain", domain cannot be nil.')
|
88
|
+
end
|
89
|
+
|
82
90
|
invalid_properties
|
83
91
|
end
|
84
92
|
|
85
93
|
# Check to see if the all the properties in the model are valid
|
86
94
|
# @return true if the model is valid
|
87
95
|
def valid?
|
96
|
+
return false if @mx_records.nil?
|
97
|
+
return false if @domain.nil?
|
88
98
|
true
|
89
99
|
end
|
90
100
|
|
@@ -112,6 +112,10 @@ module MailSlurpClient
|
|
112
112
|
invalid_properties.push('invalid value for "record_types", record_types cannot be nil.')
|
113
113
|
end
|
114
114
|
|
115
|
+
if @omit_final_dns_dot.nil?
|
116
|
+
invalid_properties.push('invalid value for "omit_final_dns_dot", omit_final_dns_dot cannot be nil.')
|
117
|
+
end
|
118
|
+
|
115
119
|
invalid_properties
|
116
120
|
end
|
117
121
|
|
@@ -120,6 +124,7 @@ module MailSlurpClient
|
|
120
124
|
def valid?
|
121
125
|
return false if @hostname.nil?
|
122
126
|
return false if @record_types.nil?
|
127
|
+
return false if @omit_final_dns_dot.nil?
|
123
128
|
true
|
124
129
|
end
|
125
130
|
|
@@ -110,14 +110,34 @@ module MailSlurpClient
|
|
110
110
|
# @return Array for valid properties with the reasons
|
111
111
|
def list_invalid_properties
|
112
112
|
invalid_properties = Array.new
|
113
|
+
if @record_type.nil?
|
114
|
+
invalid_properties.push('invalid value for "record_type", record_type cannot be nil.')
|
115
|
+
end
|
116
|
+
|
117
|
+
if @ttl.nil?
|
118
|
+
invalid_properties.push('invalid value for "ttl", ttl cannot be nil.')
|
119
|
+
end
|
120
|
+
|
121
|
+
if @record_entries.nil?
|
122
|
+
invalid_properties.push('invalid value for "record_entries", record_entries cannot be nil.')
|
123
|
+
end
|
124
|
+
|
125
|
+
if @name.nil?
|
126
|
+
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
127
|
+
end
|
128
|
+
|
113
129
|
invalid_properties
|
114
130
|
end
|
115
131
|
|
116
132
|
# Check to see if the all the properties in the model are valid
|
117
133
|
# @return true if the model is valid
|
118
134
|
def valid?
|
135
|
+
return false if @record_type.nil?
|
119
136
|
record_type_validator = EnumAttributeValidator.new('String', ["A", "NS", "MD", "MF", "CNAME", "SOA", "MB", "MG", "MR", "NULL", "WKS", "PTR", "HINFO", "MINFO", "MX", "TXT", "RP", "AFSDB", "X25", "ISDN", "RT", "NSAP", "NSAP_PTR", "SIG", "KEY", "PX", "GPOS", "AAAA", "LOC", "NXT", "EID", "NIMLOC", "SRV", "ATMA", "NAPTR", "KX", "CERT", "A6", "DNAME", "SINK", "OPT", "APL", "DS", "SSHFP", "IPSECKEY", "RRSIG", "NSEC", "DNSKEY", "DHCID", "NSEC3", "NSEC3PARAM", "TLSA", "SMIMEA", "HIP", "NINFO", "RKEY", "TALINK", "CDS", "CDNSKEY", "OPENPGPKEY", "CSYNC", "ZONEMD", "SVCB", "HTTPS", "SPF", "UINFO", "UID", "GID", "UNSPEC", "NID", "L32", "L64", "LP", "EUI48", "EUI64", "TKEY", "TSIG", "IXFR", "AXFR", "MAILB", "MAILA", "ANY", "URI", "CAA", "AVC", "DOA", "AMTRELAY", "TA", "DLV"])
|
120
137
|
return false unless record_type_validator.valid?(@record_type)
|
138
|
+
return false if @ttl.nil?
|
139
|
+
return false if @record_entries.nil?
|
140
|
+
return false if @name.nil?
|
121
141
|
true
|
122
142
|
end
|
123
143
|
|
@@ -63,12 +63,17 @@ module MailSlurpClient
|
|
63
63
|
# @return Array for valid properties with the reasons
|
64
64
|
def list_invalid_properties
|
65
65
|
invalid_properties = Array.new
|
66
|
+
if @results.nil?
|
67
|
+
invalid_properties.push('invalid value for "results", results cannot be nil.')
|
68
|
+
end
|
69
|
+
|
66
70
|
invalid_properties
|
67
71
|
end
|
68
72
|
|
69
73
|
# Check to see if the all the properties in the model are valid
|
70
74
|
# @return true if the model is valid
|
71
75
|
def valid?
|
76
|
+
return false if @results.nil?
|
72
77
|
true
|
73
78
|
end
|
74
79
|
|
@@ -28,6 +28,9 @@ module MailSlurpClient
|
|
28
28
|
# Unique token DKIM tokens
|
29
29
|
attr_accessor :dkim_tokens
|
30
30
|
|
31
|
+
# Whether domain has been verified or not. If the domain is not verified after 72 hours there is most likely an issue with the domains DNS records.
|
32
|
+
attr_accessor :is_verified
|
33
|
+
|
31
34
|
# List of DNS domain name records (C, MX, TXT) etc that you must add to the DNS server associated with your domain provider.
|
32
35
|
attr_accessor :domain_name_records
|
33
36
|
|
@@ -41,8 +44,6 @@ module MailSlurpClient
|
|
41
44
|
# Type of domain. Dictates type of inbox that can be created with domain. HTTP means inboxes are processed using SES while SMTP inboxes use a custom SMTP mail server. SMTP does not support sending so use HTTP for sending emails.
|
42
45
|
attr_accessor :domain_type
|
43
46
|
|
44
|
-
attr_accessor :verified
|
45
|
-
|
46
47
|
class EnumAttributeValidator
|
47
48
|
attr_reader :datatype
|
48
49
|
attr_reader :allowable_values
|
@@ -73,12 +74,12 @@ module MailSlurpClient
|
|
73
74
|
:'domain' => :'domain',
|
74
75
|
:'verification_token' => :'verificationToken',
|
75
76
|
:'dkim_tokens' => :'dkimTokens',
|
77
|
+
:'is_verified' => :'isVerified',
|
76
78
|
:'domain_name_records' => :'domainNameRecords',
|
77
79
|
:'catch_all_inbox_id' => :'catchAllInboxId',
|
78
80
|
:'created_at' => :'createdAt',
|
79
81
|
:'updated_at' => :'updatedAt',
|
80
|
-
:'domain_type' => :'domainType'
|
81
|
-
:'verified' => :'verified'
|
82
|
+
:'domain_type' => :'domainType'
|
82
83
|
}
|
83
84
|
end
|
84
85
|
|
@@ -90,12 +91,12 @@ module MailSlurpClient
|
|
90
91
|
:'domain' => :'String',
|
91
92
|
:'verification_token' => :'String',
|
92
93
|
:'dkim_tokens' => :'Array<String>',
|
94
|
+
:'is_verified' => :'Boolean',
|
93
95
|
:'domain_name_records' => :'Array<DomainNameRecord>',
|
94
96
|
:'catch_all_inbox_id' => :'String',
|
95
97
|
:'created_at' => :'DateTime',
|
96
98
|
:'updated_at' => :'DateTime',
|
97
|
-
:'domain_type' => :'String'
|
98
|
-
:'verified' => :'Boolean'
|
99
|
+
:'domain_type' => :'String'
|
99
100
|
}
|
100
101
|
end
|
101
102
|
|
@@ -142,6 +143,10 @@ module MailSlurpClient
|
|
142
143
|
end
|
143
144
|
end
|
144
145
|
|
146
|
+
if attributes.key?(:'is_verified')
|
147
|
+
self.is_verified = attributes[:'is_verified']
|
148
|
+
end
|
149
|
+
|
145
150
|
if attributes.key?(:'domain_name_records')
|
146
151
|
if (value = attributes[:'domain_name_records']).is_a?(Array)
|
147
152
|
self.domain_name_records = value
|
@@ -163,22 +168,68 @@ module MailSlurpClient
|
|
163
168
|
if attributes.key?(:'domain_type')
|
164
169
|
self.domain_type = attributes[:'domain_type']
|
165
170
|
end
|
166
|
-
|
167
|
-
if attributes.key?(:'verified')
|
168
|
-
self.verified = attributes[:'verified']
|
169
|
-
end
|
170
171
|
end
|
171
172
|
|
172
173
|
# Show invalid properties with the reasons. Usually used together with valid?
|
173
174
|
# @return Array for valid properties with the reasons
|
174
175
|
def list_invalid_properties
|
175
176
|
invalid_properties = Array.new
|
177
|
+
if @id.nil?
|
178
|
+
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
179
|
+
end
|
180
|
+
|
181
|
+
if @user_id.nil?
|
182
|
+
invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
|
183
|
+
end
|
184
|
+
|
185
|
+
if @domain.nil?
|
186
|
+
invalid_properties.push('invalid value for "domain", domain cannot be nil.')
|
187
|
+
end
|
188
|
+
|
189
|
+
if @verification_token.nil?
|
190
|
+
invalid_properties.push('invalid value for "verification_token", verification_token cannot be nil.')
|
191
|
+
end
|
192
|
+
|
193
|
+
if @dkim_tokens.nil?
|
194
|
+
invalid_properties.push('invalid value for "dkim_tokens", dkim_tokens cannot be nil.')
|
195
|
+
end
|
196
|
+
|
197
|
+
if @is_verified.nil?
|
198
|
+
invalid_properties.push('invalid value for "is_verified", is_verified cannot be nil.')
|
199
|
+
end
|
200
|
+
|
201
|
+
if @domain_name_records.nil?
|
202
|
+
invalid_properties.push('invalid value for "domain_name_records", domain_name_records cannot be nil.')
|
203
|
+
end
|
204
|
+
|
205
|
+
if @created_at.nil?
|
206
|
+
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
207
|
+
end
|
208
|
+
|
209
|
+
if @updated_at.nil?
|
210
|
+
invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
|
211
|
+
end
|
212
|
+
|
213
|
+
if @domain_type.nil?
|
214
|
+
invalid_properties.push('invalid value for "domain_type", domain_type cannot be nil.')
|
215
|
+
end
|
216
|
+
|
176
217
|
invalid_properties
|
177
218
|
end
|
178
219
|
|
179
220
|
# Check to see if the all the properties in the model are valid
|
180
221
|
# @return true if the model is valid
|
181
222
|
def valid?
|
223
|
+
return false if @id.nil?
|
224
|
+
return false if @user_id.nil?
|
225
|
+
return false if @domain.nil?
|
226
|
+
return false if @verification_token.nil?
|
227
|
+
return false if @dkim_tokens.nil?
|
228
|
+
return false if @is_verified.nil?
|
229
|
+
return false if @domain_name_records.nil?
|
230
|
+
return false if @created_at.nil?
|
231
|
+
return false if @updated_at.nil?
|
232
|
+
return false if @domain_type.nil?
|
182
233
|
domain_type_validator = EnumAttributeValidator.new('String', ["HTTP_INBOX", "SMTP_DOMAIN"])
|
183
234
|
return false unless domain_type_validator.valid?(@domain_type)
|
184
235
|
true
|
@@ -204,12 +255,12 @@ module MailSlurpClient
|
|
204
255
|
domain == o.domain &&
|
205
256
|
verification_token == o.verification_token &&
|
206
257
|
dkim_tokens == o.dkim_tokens &&
|
258
|
+
is_verified == o.is_verified &&
|
207
259
|
domain_name_records == o.domain_name_records &&
|
208
260
|
catch_all_inbox_id == o.catch_all_inbox_id &&
|
209
261
|
created_at == o.created_at &&
|
210
262
|
updated_at == o.updated_at &&
|
211
|
-
domain_type == o.domain_type
|
212
|
-
verified == o.verified
|
263
|
+
domain_type == o.domain_type
|
213
264
|
end
|
214
265
|
|
215
266
|
# @see the `==` method
|
@@ -221,7 +272,7 @@ module MailSlurpClient
|
|
221
272
|
# Calculates hash code according to all attributes.
|
222
273
|
# @return [Integer] Hash code
|
223
274
|
def hash
|
224
|
-
[id, user_id, domain, verification_token, dkim_tokens, domain_name_records, catch_all_inbox_id, created_at, updated_at, domain_type
|
275
|
+
[id, user_id, domain, verification_token, dkim_tokens, is_verified, domain_name_records, catch_all_inbox_id, created_at, updated_at, domain_type].hash
|
225
276
|
end
|
226
277
|
|
227
278
|
# Builds the object from hash
|
@@ -110,14 +110,34 @@ module MailSlurpClient
|
|
110
110
|
# @return Array for valid properties with the reasons
|
111
111
|
def list_invalid_properties
|
112
112
|
invalid_properties = Array.new
|
113
|
+
if @record_type.nil?
|
114
|
+
invalid_properties.push('invalid value for "record_type", record_type cannot be nil.')
|
115
|
+
end
|
116
|
+
|
117
|
+
if @name.nil?
|
118
|
+
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
119
|
+
end
|
120
|
+
|
121
|
+
if @record_entries.nil?
|
122
|
+
invalid_properties.push('invalid value for "record_entries", record_entries cannot be nil.')
|
123
|
+
end
|
124
|
+
|
125
|
+
if @ttl.nil?
|
126
|
+
invalid_properties.push('invalid value for "ttl", ttl cannot be nil.')
|
127
|
+
end
|
128
|
+
|
113
129
|
invalid_properties
|
114
130
|
end
|
115
131
|
|
116
132
|
# Check to see if the all the properties in the model are valid
|
117
133
|
# @return true if the model is valid
|
118
134
|
def valid?
|
135
|
+
return false if @record_type.nil?
|
119
136
|
record_type_validator = EnumAttributeValidator.new('String', ["A", "NS", "MD", "MF", "CNAME", "SOA", "MB", "MG", "MR", "NULL", "WKS", "PTR", "HINFO", "MINFO", "MX", "TXT", "RP", "AFSDB", "X25", "ISDN", "RT", "NSAP", "NSAP_PTR", "SIG", "KEY", "PX", "GPOS", "AAAA", "LOC", "NXT", "EID", "NIMLOC", "SRV", "ATMA", "NAPTR", "KX", "CERT", "A6", "DNAME", "SINK", "OPT", "APL", "DS", "SSHFP", "IPSECKEY", "RRSIG", "NSEC", "DNSKEY", "DHCID", "NSEC3", "NSEC3PARAM", "TLSA", "SMIMEA", "HIP", "NINFO", "RKEY", "TALINK", "CDS", "CDNSKEY", "OPENPGPKEY", "CSYNC", "ZONEMD", "SVCB", "HTTPS", "SPF", "UINFO", "UID", "GID", "UNSPEC", "NID", "L32", "L64", "LP", "EUI48", "EUI64", "TKEY", "TSIG", "IXFR", "AXFR", "MAILB", "MAILA", "ANY", "URI", "CAA", "AVC", "DOA", "AMTRELAY", "TA", "DLV"])
|
120
137
|
return false unless record_type_validator.valid?(@record_type)
|
138
|
+
return false if @name.nil?
|
139
|
+
return false if @record_entries.nil?
|
140
|
+
return false if @ttl.nil?
|
121
141
|
true
|
122
142
|
end
|
123
143
|
|
@@ -26,7 +26,7 @@ module MailSlurpClient
|
|
26
26
|
# Type of domain. Dictates type of inbox that can be created with domain. HTTP means inboxes are processed using SES while SMTP inboxes use a custom SMTP mail server. SMTP does not support sending so use HTTP for sending emails.
|
27
27
|
attr_accessor :domain_type
|
28
28
|
|
29
|
-
attr_accessor :
|
29
|
+
attr_accessor :is_verified
|
30
30
|
|
31
31
|
class EnumAttributeValidator
|
32
32
|
attr_reader :datatype
|
@@ -58,7 +58,7 @@ module MailSlurpClient
|
|
58
58
|
:'catch_all_inbox_id' => :'catchAllInboxId',
|
59
59
|
:'created_at' => :'createdAt',
|
60
60
|
:'domain_type' => :'domainType',
|
61
|
-
:'
|
61
|
+
:'is_verified' => :'isVerified'
|
62
62
|
}
|
63
63
|
end
|
64
64
|
|
@@ -70,7 +70,7 @@ module MailSlurpClient
|
|
70
70
|
:'catch_all_inbox_id' => :'String',
|
71
71
|
:'created_at' => :'DateTime',
|
72
72
|
:'domain_type' => :'String',
|
73
|
-
:'
|
73
|
+
:'is_verified' => :'Boolean'
|
74
74
|
}
|
75
75
|
end
|
76
76
|
|
@@ -115,8 +115,8 @@ module MailSlurpClient
|
|
115
115
|
self.domain_type = attributes[:'domain_type']
|
116
116
|
end
|
117
117
|
|
118
|
-
if attributes.key?(:'
|
119
|
-
self.
|
118
|
+
if attributes.key?(:'is_verified')
|
119
|
+
self.is_verified = attributes[:'is_verified']
|
120
120
|
end
|
121
121
|
end
|
122
122
|
|
@@ -124,14 +124,39 @@ 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 @domain.nil?
|
132
|
+
invalid_properties.push('invalid value for "domain", domain cannot be nil.')
|
133
|
+
end
|
134
|
+
|
135
|
+
if @created_at.nil?
|
136
|
+
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
137
|
+
end
|
138
|
+
|
139
|
+
if @domain_type.nil?
|
140
|
+
invalid_properties.push('invalid value for "domain_type", domain_type cannot be nil.')
|
141
|
+
end
|
142
|
+
|
143
|
+
if @is_verified.nil?
|
144
|
+
invalid_properties.push('invalid value for "is_verified", is_verified cannot be nil.')
|
145
|
+
end
|
146
|
+
|
127
147
|
invalid_properties
|
128
148
|
end
|
129
149
|
|
130
150
|
# Check to see if the all the properties in the model are valid
|
131
151
|
# @return true if the model is valid
|
132
152
|
def valid?
|
153
|
+
return false if @id.nil?
|
154
|
+
return false if @domain.nil?
|
155
|
+
return false if @created_at.nil?
|
156
|
+
return false if @domain_type.nil?
|
133
157
|
domain_type_validator = EnumAttributeValidator.new('String', ["HTTP_INBOX", "SMTP_DOMAIN"])
|
134
158
|
return false unless domain_type_validator.valid?(@domain_type)
|
159
|
+
return false if @is_verified.nil?
|
135
160
|
true
|
136
161
|
end
|
137
162
|
|
@@ -155,7 +180,7 @@ module MailSlurpClient
|
|
155
180
|
catch_all_inbox_id == o.catch_all_inbox_id &&
|
156
181
|
created_at == o.created_at &&
|
157
182
|
domain_type == o.domain_type &&
|
158
|
-
|
183
|
+
is_verified == o.is_verified
|
159
184
|
end
|
160
185
|
|
161
186
|
# @see the `==` method
|
@@ -167,7 +192,7 @@ module MailSlurpClient
|
|
167
192
|
# Calculates hash code according to all attributes.
|
168
193
|
# @return [Integer] Hash code
|
169
194
|
def hash
|
170
|
-
[id, domain, catch_all_inbox_id, created_at, domain_type,
|
195
|
+
[id, domain, catch_all_inbox_id, created_at, domain_type, is_verified].hash
|
171
196
|
end
|
172
197
|
|
173
198
|
# Builds the object from hash
|
@@ -80,12 +80,27 @@ module MailSlurpClient
|
|
80
80
|
# @return Array for valid properties with the reasons
|
81
81
|
def list_invalid_properties
|
82
82
|
invalid_properties = Array.new
|
83
|
+
if @base64_file_contents.nil?
|
84
|
+
invalid_properties.push('invalid value for "base64_file_contents", base64_file_contents cannot be nil.')
|
85
|
+
end
|
86
|
+
|
87
|
+
if @content_type.nil?
|
88
|
+
invalid_properties.push('invalid value for "content_type", content_type cannot be nil.')
|
89
|
+
end
|
90
|
+
|
91
|
+
if @size_bytes.nil?
|
92
|
+
invalid_properties.push('invalid value for "size_bytes", size_bytes cannot be nil.')
|
93
|
+
end
|
94
|
+
|
83
95
|
invalid_properties
|
84
96
|
end
|
85
97
|
|
86
98
|
# Check to see if the all the properties in the model are valid
|
87
99
|
# @return true if the model is valid
|
88
100
|
def valid?
|
101
|
+
return false if @base64_file_contents.nil?
|
102
|
+
return false if @content_type.nil?
|
103
|
+
return false if @size_bytes.nil?
|
89
104
|
true
|
90
105
|
end
|
91
106
|
|
@@ -61,6 +61,9 @@ module MailSlurpClient
|
|
61
61
|
# A hash signature of the email message using MD5. Useful for comparing emails without fetching full body.
|
62
62
|
attr_accessor :body_md5_hash
|
63
63
|
|
64
|
+
# Is the email body content type HTML?
|
65
|
+
attr_accessor :is_html
|
66
|
+
|
64
67
|
# Detected character set of the email body such as UTF-8
|
65
68
|
attr_accessor :charset
|
66
69
|
|
@@ -78,8 +81,6 @@ module MailSlurpClient
|
|
78
81
|
# Can the email be accessed by organization team members
|
79
82
|
attr_accessor :team_access
|
80
83
|
|
81
|
-
attr_accessor :html
|
82
|
-
|
83
84
|
# Attribute mapping from ruby-style variable name to JSON key.
|
84
85
|
def self.attribute_map
|
85
86
|
{
|
@@ -99,13 +100,13 @@ module MailSlurpClient
|
|
99
100
|
:'body' => :'body',
|
100
101
|
:'body_excerpt' => :'bodyExcerpt',
|
101
102
|
:'body_md5_hash' => :'bodyMD5Hash',
|
103
|
+
:'is_html' => :'isHTML',
|
102
104
|
:'charset' => :'charset',
|
103
105
|
:'analysis' => :'analysis',
|
104
106
|
:'created_at' => :'createdAt',
|
105
107
|
:'updated_at' => :'updatedAt',
|
106
108
|
:'read' => :'read',
|
107
|
-
:'team_access' => :'teamAccess'
|
108
|
-
:'html' => :'html'
|
109
|
+
:'team_access' => :'teamAccess'
|
109
110
|
}
|
110
111
|
end
|
111
112
|
|
@@ -128,13 +129,13 @@ module MailSlurpClient
|
|
128
129
|
:'body' => :'String',
|
129
130
|
:'body_excerpt' => :'String',
|
130
131
|
:'body_md5_hash' => :'String',
|
132
|
+
:'is_html' => :'Boolean',
|
131
133
|
:'charset' => :'String',
|
132
134
|
:'analysis' => :'EmailAnalysis',
|
133
135
|
:'created_at' => :'DateTime',
|
134
136
|
:'updated_at' => :'DateTime',
|
135
137
|
:'read' => :'Boolean',
|
136
|
-
:'team_access' => :'Boolean'
|
137
|
-
:'html' => :'Boolean'
|
138
|
+
:'team_access' => :'Boolean'
|
138
139
|
}
|
139
140
|
end
|
140
141
|
|
@@ -233,6 +234,10 @@ module MailSlurpClient
|
|
233
234
|
self.body_md5_hash = attributes[:'body_md5_hash']
|
234
235
|
end
|
235
236
|
|
237
|
+
if attributes.key?(:'is_html')
|
238
|
+
self.is_html = attributes[:'is_html']
|
239
|
+
end
|
240
|
+
|
236
241
|
if attributes.key?(:'charset')
|
237
242
|
self.charset = attributes[:'charset']
|
238
243
|
end
|
@@ -256,22 +261,58 @@ module MailSlurpClient
|
|
256
261
|
if attributes.key?(:'team_access')
|
257
262
|
self.team_access = attributes[:'team_access']
|
258
263
|
end
|
259
|
-
|
260
|
-
if attributes.key?(:'html')
|
261
|
-
self.html = attributes[:'html']
|
262
|
-
end
|
263
264
|
end
|
264
265
|
|
265
266
|
# Show invalid properties with the reasons. Usually used together with valid?
|
266
267
|
# @return Array for valid properties with the reasons
|
267
268
|
def list_invalid_properties
|
268
269
|
invalid_properties = Array.new
|
270
|
+
if @id.nil?
|
271
|
+
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
272
|
+
end
|
273
|
+
|
274
|
+
if @user_id.nil?
|
275
|
+
invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
|
276
|
+
end
|
277
|
+
|
278
|
+
if @inbox_id.nil?
|
279
|
+
invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
|
280
|
+
end
|
281
|
+
|
282
|
+
if @to.nil?
|
283
|
+
invalid_properties.push('invalid value for "to", to cannot be nil.')
|
284
|
+
end
|
285
|
+
|
286
|
+
if @created_at.nil?
|
287
|
+
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
288
|
+
end
|
289
|
+
|
290
|
+
if @updated_at.nil?
|
291
|
+
invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
|
292
|
+
end
|
293
|
+
|
294
|
+
if @read.nil?
|
295
|
+
invalid_properties.push('invalid value for "read", read cannot be nil.')
|
296
|
+
end
|
297
|
+
|
298
|
+
if @team_access.nil?
|
299
|
+
invalid_properties.push('invalid value for "team_access", team_access cannot be nil.')
|
300
|
+
end
|
301
|
+
|
269
302
|
invalid_properties
|
270
303
|
end
|
271
304
|
|
272
305
|
# Check to see if the all the properties in the model are valid
|
273
306
|
# @return true if the model is valid
|
274
307
|
def valid?
|
308
|
+
return false if @id.nil?
|
309
|
+
return false if @user_id.nil?
|
310
|
+
return false if @inbox_id.nil?
|
311
|
+
return false if @to.nil?
|
312
|
+
return false if @created_at.nil?
|
313
|
+
return false if @updated_at.nil?
|
314
|
+
return false if @read.nil?
|
315
|
+
return false if @team_access.nil?
|
275
316
|
true
|
276
317
|
end
|
277
318
|
|
@@ -296,13 +337,13 @@ module MailSlurpClient
|
|
296
337
|
body == o.body &&
|
297
338
|
body_excerpt == o.body_excerpt &&
|
298
339
|
body_md5_hash == o.body_md5_hash &&
|
340
|
+
is_html == o.is_html &&
|
299
341
|
charset == o.charset &&
|
300
342
|
analysis == o.analysis &&
|
301
343
|
created_at == o.created_at &&
|
302
344
|
updated_at == o.updated_at &&
|
303
345
|
read == o.read &&
|
304
|
-
team_access == o.team_access
|
305
|
-
html == o.html
|
346
|
+
team_access == o.team_access
|
306
347
|
end
|
307
348
|
|
308
349
|
# @see the `==` method
|
@@ -314,7 +355,7 @@ module MailSlurpClient
|
|
314
355
|
# Calculates hash code according to all attributes.
|
315
356
|
# @return [Integer] Hash code
|
316
357
|
def hash
|
317
|
-
[id, user_id, inbox_id, to, from, sender, recipients, reply_to, cc, bcc, headers, attachments, subject, body, body_excerpt, body_md5_hash, charset, analysis, created_at, updated_at, read, team_access
|
358
|
+
[id, user_id, inbox_id, to, from, sender, recipients, reply_to, cc, bcc, headers, attachments, subject, body, body_excerpt, body_md5_hash, is_html, charset, analysis, created_at, updated_at, read, team_access].hash
|
318
359
|
end
|
319
360
|
|
320
361
|
# Builds the object from hash
|
@@ -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 @pattern.nil?
|
75
|
+
invalid_properties.push('invalid value for "pattern", pattern 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 @pattern.nil?
|
89
|
+
return false if @matches.nil?
|
80
90
|
true
|
81
91
|
end
|
82
92
|
|
@@ -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 @links.nil?
|
75
|
+
invalid_properties.push('invalid value for "links", links 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 @links.nil?
|
89
|
+
return false if @body.nil?
|
80
90
|
true
|
81
91
|
end
|
82
92
|
|
@@ -142,12 +142,27 @@ module MailSlurpClient
|
|
142
142
|
# @return Array for valid properties with the reasons
|
143
143
|
def list_invalid_properties
|
144
144
|
invalid_properties = Array.new
|
145
|
+
if @id.nil?
|
146
|
+
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
147
|
+
end
|
148
|
+
|
149
|
+
if @to.nil?
|
150
|
+
invalid_properties.push('invalid value for "to", to cannot be nil.')
|
151
|
+
end
|
152
|
+
|
153
|
+
if @created_at.nil?
|
154
|
+
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
155
|
+
end
|
156
|
+
|
145
157
|
invalid_properties
|
146
158
|
end
|
147
159
|
|
148
160
|
# Check to see if the all the properties in the model are valid
|
149
161
|
# @return true if the model is valid
|
150
162
|
def valid?
|
163
|
+
return false if @id.nil?
|
164
|
+
return false if @to.nil?
|
165
|
+
return false if @created_at.nil?
|
151
166
|
true
|
152
167
|
end
|
153
168
|
|