mailslurp_client 15.0.6 → 15.0.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (131) hide show
  1. checksums.yaml +4 -4
  2. data/lib/mailslurp_client/api/email_controller_api.rb +10 -7
  3. data/lib/mailslurp_client/api/inbox_controller_api.rb +94 -94
  4. data/lib/mailslurp_client/models/abstract_webhook_payload.rb +28 -13
  5. data/lib/mailslurp_client/models/alias_dto.rb +39 -13
  6. data/lib/mailslurp_client/models/alias_projection.rb +40 -10
  7. data/lib/mailslurp_client/models/attachment_entity.rb +20 -0
  8. data/lib/mailslurp_client/models/attachment_meta_data.rb +20 -0
  9. data/lib/mailslurp_client/models/attachment_projection.rb +43 -23
  10. data/lib/mailslurp_client/models/basic_auth_options.rb +10 -0
  11. data/lib/mailslurp_client/models/bounce_projection.rb +10 -0
  12. data/lib/mailslurp_client/models/bounce_recipient.rb +20 -0
  13. data/lib/mailslurp_client/models/bounced_email_dto.rb +20 -0
  14. data/lib/mailslurp_client/models/bounced_recipient_dto.rb +15 -0
  15. data/lib/mailslurp_client/models/bulk_send_email_options.rb +5 -0
  16. data/lib/mailslurp_client/models/condition_option.rb +10 -0
  17. data/lib/mailslurp_client/models/contact_dto.rb +20 -0
  18. data/lib/mailslurp_client/models/contact_projection.rb +23 -13
  19. data/lib/mailslurp_client/models/content_match_options.rb +5 -0
  20. data/lib/mailslurp_client/models/count_dto.rb +5 -0
  21. data/lib/mailslurp_client/models/create_alias_options.rb +10 -0
  22. data/lib/mailslurp_client/models/create_group_options.rb +5 -0
  23. data/lib/mailslurp_client/models/create_inbox_forwarder_options.rb +10 -0
  24. data/lib/mailslurp_client/models/create_inbox_ruleset_options.rb +15 -0
  25. data/lib/mailslurp_client/models/create_template_options.rb +10 -0
  26. data/lib/mailslurp_client/models/create_webhook_options.rb +5 -0
  27. data/lib/mailslurp_client/models/describe_mail_server_domain_result.rb +10 -0
  28. data/lib/mailslurp_client/models/dns_lookup_options.rb +5 -0
  29. data/lib/mailslurp_client/models/dns_lookup_result.rb +20 -0
  30. data/lib/mailslurp_client/models/dns_lookup_results.rb +5 -0
  31. data/lib/mailslurp_client/models/domain_dto.rb +64 -13
  32. data/lib/mailslurp_client/models/domain_name_record.rb +20 -0
  33. data/lib/mailslurp_client/models/domain_preview.rb +32 -7
  34. data/lib/mailslurp_client/models/download_attachment_dto.rb +15 -0
  35. data/lib/mailslurp_client/models/email.rb +54 -13
  36. data/lib/mailslurp_client/models/email_content_match_result.rb +10 -0
  37. data/lib/mailslurp_client/models/email_links_result.rb +10 -0
  38. data/lib/mailslurp_client/models/email_preview.rb +15 -0
  39. data/lib/mailslurp_client/models/email_projection.rb +30 -10
  40. data/lib/mailslurp_client/models/email_text_lines_result.rb +10 -0
  41. data/lib/mailslurp_client/models/email_verification_result.rb +33 -13
  42. data/lib/mailslurp_client/models/expiration_defaults.rb +10 -0
  43. data/lib/mailslurp_client/models/expired_inbox_dto.rb +15 -0
  44. data/lib/mailslurp_client/models/expired_inbox_record_projection.rb +20 -0
  45. data/lib/mailslurp_client/models/export_link.rb +5 -0
  46. data/lib/mailslurp_client/models/export_options.rb +5 -0
  47. data/lib/mailslurp_client/models/flush_expired_inboxes_result.rb +10 -0
  48. data/lib/mailslurp_client/models/gravatar_url.rb +10 -0
  49. data/lib/mailslurp_client/models/group_contacts_dto.rb +10 -0
  50. data/lib/mailslurp_client/models/group_dto.rb +15 -0
  51. data/lib/mailslurp_client/models/group_projection.rb +15 -0
  52. data/lib/mailslurp_client/models/html_validation_result.rb +29 -13
  53. data/lib/mailslurp_client/models/inbox_dto.rb +25 -0
  54. data/lib/mailslurp_client/models/inbox_exists_dto.rb +5 -0
  55. data/lib/mailslurp_client/models/inbox_forwarder_dto.rb +30 -0
  56. data/lib/mailslurp_client/models/inbox_forwarder_test_options.rb +5 -0
  57. data/lib/mailslurp_client/models/inbox_forwarder_test_result.rb +10 -0
  58. data/lib/mailslurp_client/models/inbox_preview.rb +20 -0
  59. data/lib/mailslurp_client/models/inbox_ruleset_dto.rb +35 -0
  60. data/lib/mailslurp_client/models/inbox_ruleset_test_options.rb +5 -0
  61. data/lib/mailslurp_client/models/inbox_ruleset_test_result.rb +10 -0
  62. data/lib/mailslurp_client/models/ip_address_result.rb +10 -0
  63. data/lib/mailslurp_client/models/json_schema_dto.rb +5 -0
  64. data/lib/mailslurp_client/models/match_option.rb +10 -0
  65. data/lib/mailslurp_client/models/missed_email.rb +35 -0
  66. data/lib/mailslurp_client/models/missed_email_projection.rb +10 -0
  67. data/lib/mailslurp_client/models/name_server_record.rb +20 -0
  68. data/lib/mailslurp_client/models/organization_inbox_projection.rb +25 -0
  69. data/lib/mailslurp_client/models/page_alias.rb +32 -23
  70. data/lib/mailslurp_client/models/page_attachment_entity.rb +32 -23
  71. data/lib/mailslurp_client/models/page_bounced_email.rb +32 -23
  72. data/lib/mailslurp_client/models/page_bounced_recipients.rb +32 -23
  73. data/lib/mailslurp_client/models/page_contact_projection.rb +32 -23
  74. data/lib/mailslurp_client/models/page_email_preview.rb +32 -23
  75. data/lib/mailslurp_client/models/page_email_projection.rb +32 -23
  76. data/lib/mailslurp_client/models/page_expired_inbox_record_projection.rb +32 -23
  77. data/lib/mailslurp_client/models/page_group_projection.rb +32 -23
  78. data/lib/mailslurp_client/models/page_inbox_forwarder_dto.rb +32 -23
  79. data/lib/mailslurp_client/models/page_inbox_projection.rb +32 -23
  80. data/lib/mailslurp_client/models/page_inbox_ruleset_dto.rb +32 -23
  81. data/lib/mailslurp_client/models/page_missed_email_projection.rb +32 -23
  82. data/lib/mailslurp_client/models/page_organization_inbox_projection.rb +32 -23
  83. data/lib/mailslurp_client/models/page_sent_email_projection.rb +51 -12
  84. data/lib/mailslurp_client/models/page_template_projection.rb +32 -23
  85. data/lib/mailslurp_client/models/page_thread_projection.rb +32 -23
  86. data/lib/mailslurp_client/models/page_tracking_pixel_projection.rb +32 -23
  87. data/lib/mailslurp_client/models/page_unknown_missed_email_projection.rb +32 -23
  88. data/lib/mailslurp_client/models/page_webhook_projection.rb +32 -23
  89. data/lib/mailslurp_client/models/page_webhook_result.rb +32 -23
  90. data/lib/mailslurp_client/models/{pageable.rb → pageable_object.rb} +3 -3
  91. data/lib/mailslurp_client/models/raw_email_json.rb +5 -0
  92. data/lib/mailslurp_client/models/recipient.rb +10 -0
  93. data/lib/mailslurp_client/models/reply_to_alias_email_options.rb +24 -13
  94. data/lib/mailslurp_client/models/reply_to_email_options.rb +24 -13
  95. data/lib/mailslurp_client/models/send_email_options.rb +12 -2
  96. data/lib/mailslurp_client/models/sender.rb +10 -0
  97. data/lib/mailslurp_client/models/sent_email_dto.rb +33 -13
  98. data/lib/mailslurp_client/models/sent_email_projection.rb +50 -10
  99. data/lib/mailslurp_client/models/set_inbox_favourited_options.rb +5 -0
  100. data/lib/mailslurp_client/models/simple_send_email_options.rb +5 -0
  101. data/lib/mailslurp_client/models/sort.rb +13 -13
  102. data/lib/mailslurp_client/models/template_dto.rb +25 -0
  103. data/lib/mailslurp_client/models/template_projection.rb +25 -0
  104. data/lib/mailslurp_client/models/template_variable.rb +10 -0
  105. data/lib/mailslurp_client/models/test_new_inbox_forwarder_options.rb +10 -0
  106. data/lib/mailslurp_client/models/test_new_inbox_ruleset_options.rb +10 -0
  107. data/lib/mailslurp_client/models/thread_projection.rb +54 -19
  108. data/lib/mailslurp_client/models/tracking_pixel_dto.rb +25 -0
  109. data/lib/mailslurp_client/models/tracking_pixel_projection.rb +30 -10
  110. data/lib/mailslurp_client/models/unknown_missed_email_projection.rb +10 -0
  111. data/lib/mailslurp_client/models/unread_count.rb +5 -0
  112. data/lib/mailslurp_client/models/unseen_error_count_dto.rb +5 -0
  113. data/lib/mailslurp_client/models/update_group_contacts.rb +5 -0
  114. data/lib/mailslurp_client/models/validation_dto.rb +10 -0
  115. data/lib/mailslurp_client/models/validation_message.rb +5 -0
  116. data/lib/mailslurp_client/models/verify_email_address_options.rb +5 -0
  117. data/lib/mailslurp_client/models/wait_for_conditions.rb +10 -0
  118. data/lib/mailslurp_client/models/webhook_dto.rb +45 -0
  119. data/lib/mailslurp_client/models/webhook_email_opened_payload.rb +40 -0
  120. data/lib/mailslurp_client/models/webhook_email_read_payload.rb +35 -0
  121. data/lib/mailslurp_client/models/webhook_new_attachment_payload.rb +35 -0
  122. data/lib/mailslurp_client/models/webhook_new_contact_payload.rb +35 -0
  123. data/lib/mailslurp_client/models/webhook_new_email_payload.rb +55 -0
  124. data/lib/mailslurp_client/models/webhook_projection.rb +25 -0
  125. data/lib/mailslurp_client/models/webhook_redrive_result.rb +10 -0
  126. data/lib/mailslurp_client/models/webhook_result_dto.rb +50 -0
  127. data/lib/mailslurp_client/models/webhook_test_request.rb +15 -0
  128. data/lib/mailslurp_client/models/webhook_test_result.rb +10 -0
  129. data/lib/mailslurp_client/version.rb +1 -1
  130. data/lib/mailslurp_client.rb +1 -1
  131. metadata +2 -2
@@ -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 :verified
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
- :'verified' => :'verified'
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
- :'verified' => :'Boolean'
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?(:'verified')
119
- self.verified = attributes[:'verified']
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
- verified == o.verified
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, verified].hash
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, html].hash
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
 
@@ -27,12 +27,12 @@ module MailSlurpClient
27
27
 
28
28
  attr_accessor :attachments
29
29
 
30
+ attr_accessor :created_at
31
+
30
32
  attr_accessor :bcc
31
33
 
32
34
  attr_accessor :cc
33
35
 
34
- attr_accessor :created_at
35
-
36
36
  attr_accessor :team_access
37
37
 
38
38
  attr_accessor :read
@@ -50,9 +50,9 @@ module MailSlurpClient
50
50
  :'inbox_id' => :'inboxId',
51
51
  :'to' => :'to',
52
52
  :'attachments' => :'attachments',
53
+ :'created_at' => :'createdAt',
53
54
  :'bcc' => :'bcc',
54
55
  :'cc' => :'cc',
55
- :'created_at' => :'createdAt',
56
56
  :'team_access' => :'teamAccess',
57
57
  :'read' => :'read',
58
58
  :'body_md5_hash' => :'bodyMD5Hash',
@@ -69,9 +69,9 @@ module MailSlurpClient
69
69
  :'inbox_id' => :'String',
70
70
  :'to' => :'Array<String>',
71
71
  :'attachments' => :'Array<String>',
72
+ :'created_at' => :'DateTime',
72
73
  :'bcc' => :'Array<String>',
73
74
  :'cc' => :'Array<String>',
74
- :'created_at' => :'DateTime',
75
75
  :'team_access' => :'Boolean',
76
76
  :'read' => :'Boolean',
77
77
  :'body_md5_hash' => :'String',
@@ -128,6 +128,10 @@ module MailSlurpClient
128
128
  end
129
129
  end
130
130
 
131
+ if attributes.key?(:'created_at')
132
+ self.created_at = attributes[:'created_at']
133
+ end
134
+
131
135
  if attributes.key?(:'bcc')
132
136
  if (value = attributes[:'bcc']).is_a?(Array)
133
137
  self.bcc = value
@@ -140,10 +144,6 @@ module MailSlurpClient
140
144
  end
141
145
  end
142
146
 
143
- if attributes.key?(:'created_at')
144
- self.created_at = attributes[:'created_at']
145
- end
146
-
147
147
  if attributes.key?(:'team_access')
148
148
  self.team_access = attributes[:'team_access']
149
149
  end
@@ -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
 
@@ -185,9 +205,9 @@ module MailSlurpClient
185
205
  inbox_id == o.inbox_id &&
186
206
  to == o.to &&
187
207
  attachments == o.attachments &&
208
+ created_at == o.created_at &&
188
209
  bcc == o.bcc &&
189
210
  cc == o.cc &&
190
- created_at == o.created_at &&
191
211
  team_access == o.team_access &&
192
212
  read == o.read &&
193
213
  body_md5_hash == o.body_md5_hash &&
@@ -203,7 +223,7 @@ module MailSlurpClient
203
223
  # Calculates hash code according to all attributes.
204
224
  # @return [Integer] Hash code
205
225
  def hash
206
- [id, from, subject, inbox_id, to, attachments, bcc, cc, created_at, team_access, read, body_md5_hash, body_excerpt].hash
226
+ [id, from, subject, inbox_id, to, attachments, created_at, bcc, cc, team_access, read, body_md5_hash, body_excerpt].hash
207
227
  end
208
228
 
209
229
  # 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 @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 :error
24
+ attr_accessor :is_valid
25
25
 
26
- attr_accessor :valid
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
- :'error' => :'error',
35
- :'valid' => :'valid'
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
- :'error' => :'String',
46
- :'valid' => :'Boolean'
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?(:'error')
84
- self.error = attributes[:'error']
83
+ if attributes.key?(:'is_valid')
84
+ self.is_valid = attributes[:'is_valid']
85
85
  end
86
86
 
87
- if attributes.key?(:'valid')
88
- self.valid = attributes[:'valid']
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
- error == o.error &&
114
- valid == o.valid
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, error, valid].hash
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