mailslurp_client 15.0.4 → 15.0.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (169) hide show
  1. checksums.yaml +4 -4
  2. data/lib/mailslurp_client/api/alias_controller_api.rb +1 -1
  3. data/lib/mailslurp_client/api/attachment_controller_api.rb +4 -4
  4. data/lib/mailslurp_client/api/bounce_controller_api.rb +1 -1
  5. data/lib/mailslurp_client/api/bulk_actions_controller_api.rb +1 -1
  6. data/lib/mailslurp_client/api/common_actions_controller_api.rb +1 -1
  7. data/lib/mailslurp_client/api/contact_controller_api.rb +1 -1
  8. data/lib/mailslurp_client/api/domain_controller_api.rb +1 -1
  9. data/lib/mailslurp_client/api/email_controller_api.rb +17 -14
  10. data/lib/mailslurp_client/api/expired_controller_api.rb +1 -1
  11. data/lib/mailslurp_client/api/export_controller_api.rb +1 -1
  12. data/lib/mailslurp_client/api/form_controller_api.rb +1 -1
  13. data/lib/mailslurp_client/api/group_controller_api.rb +1 -1
  14. data/lib/mailslurp_client/api/inbox_controller_api.rb +95 -95
  15. data/lib/mailslurp_client/api/inbox_forwarder_controller_api.rb +1 -1
  16. data/lib/mailslurp_client/api/inbox_ruleset_controller_api.rb +1 -1
  17. data/lib/mailslurp_client/api/mail_server_controller_api.rb +1 -1
  18. data/lib/mailslurp_client/api/missed_email_controller_api.rb +1 -1
  19. data/lib/mailslurp_client/api/sent_emails_controller_api.rb +1 -1
  20. data/lib/mailslurp_client/api/template_controller_api.rb +1 -1
  21. data/lib/mailslurp_client/api/tracking_controller_api.rb +1 -1
  22. data/lib/mailslurp_client/api/wait_for_controller_api.rb +1 -1
  23. data/lib/mailslurp_client/api/webhook_controller_api.rb +1 -1
  24. data/lib/mailslurp_client/api_client.rb +1 -1
  25. data/lib/mailslurp_client/api_error.rb +1 -1
  26. data/lib/mailslurp_client/configuration.rb +5 -5
  27. data/lib/mailslurp_client/models/abstract_webhook_payload.rb +16 -1
  28. data/lib/mailslurp_client/models/alias_dto.rb +40 -14
  29. data/lib/mailslurp_client/models/alias_projection.rb +41 -11
  30. data/lib/mailslurp_client/models/attachment_entity.rb +21 -1
  31. data/lib/mailslurp_client/models/attachment_meta_data.rb +21 -1
  32. data/lib/mailslurp_client/models/attachment_projection.rb +35 -15
  33. data/lib/mailslurp_client/models/basic_auth_options.rb +11 -1
  34. data/lib/mailslurp_client/models/bounce_projection.rb +11 -1
  35. data/lib/mailslurp_client/models/bounce_recipient.rb +21 -1
  36. data/lib/mailslurp_client/models/bounced_email_dto.rb +21 -1
  37. data/lib/mailslurp_client/models/bounced_recipient_dto.rb +16 -1
  38. data/lib/mailslurp_client/models/bulk_send_email_options.rb +6 -1
  39. data/lib/mailslurp_client/models/condition_option.rb +11 -1
  40. data/lib/mailslurp_client/models/contact_dto.rb +21 -1
  41. data/lib/mailslurp_client/models/contact_projection.rb +11 -1
  42. data/lib/mailslurp_client/models/content_match_options.rb +6 -1
  43. data/lib/mailslurp_client/models/count_dto.rb +6 -1
  44. data/lib/mailslurp_client/models/create_alias_options.rb +11 -1
  45. data/lib/mailslurp_client/models/create_contact_options.rb +1 -1
  46. data/lib/mailslurp_client/models/create_domain_options.rb +1 -1
  47. data/lib/mailslurp_client/models/create_group_options.rb +6 -1
  48. data/lib/mailslurp_client/models/create_inbox_dto.rb +1 -1
  49. data/lib/mailslurp_client/models/create_inbox_forwarder_options.rb +11 -1
  50. data/lib/mailslurp_client/models/create_inbox_ruleset_options.rb +16 -1
  51. data/lib/mailslurp_client/models/create_template_options.rb +11 -1
  52. data/lib/mailslurp_client/models/create_tracking_pixel_options.rb +1 -1
  53. data/lib/mailslurp_client/models/create_webhook_options.rb +6 -1
  54. data/lib/mailslurp_client/models/describe_domain_options.rb +1 -1
  55. data/lib/mailslurp_client/models/describe_mail_server_domain_result.rb +11 -1
  56. data/lib/mailslurp_client/models/dns_lookup_options.rb +6 -1
  57. data/lib/mailslurp_client/models/dns_lookup_result.rb +21 -1
  58. data/lib/mailslurp_client/models/dns_lookup_results.rb +6 -1
  59. data/lib/mailslurp_client/models/domain_dto.rb +65 -14
  60. data/lib/mailslurp_client/models/domain_name_record.rb +21 -1
  61. data/lib/mailslurp_client/models/domain_preview.rb +33 -8
  62. data/lib/mailslurp_client/models/download_attachment_dto.rb +16 -1
  63. data/lib/mailslurp_client/models/email.rb +55 -14
  64. data/lib/mailslurp_client/models/email_analysis.rb +1 -1
  65. data/lib/mailslurp_client/models/email_content_match_result.rb +11 -1
  66. data/lib/mailslurp_client/models/email_links_result.rb +11 -1
  67. data/lib/mailslurp_client/models/email_preview.rb +16 -1
  68. data/lib/mailslurp_client/models/email_projection.rb +61 -41
  69. data/lib/mailslurp_client/models/email_recipients.rb +1 -1
  70. data/lib/mailslurp_client/models/email_text_lines_result.rb +11 -1
  71. data/lib/mailslurp_client/models/email_verification_result.rb +34 -14
  72. data/lib/mailslurp_client/models/expiration_defaults.rb +11 -1
  73. data/lib/mailslurp_client/models/expired_inbox_dto.rb +16 -1
  74. data/lib/mailslurp_client/models/expired_inbox_record_projection.rb +21 -1
  75. data/lib/mailslurp_client/models/export_link.rb +6 -1
  76. data/lib/mailslurp_client/models/export_options.rb +6 -1
  77. data/lib/mailslurp_client/models/flush_expired_inboxes_result.rb +11 -1
  78. data/lib/mailslurp_client/models/forward_email_options.rb +1 -1
  79. data/lib/mailslurp_client/models/gravatar_url.rb +11 -1
  80. data/lib/mailslurp_client/models/group_contacts_dto.rb +11 -1
  81. data/lib/mailslurp_client/models/group_dto.rb +16 -1
  82. data/lib/mailslurp_client/models/group_projection.rb +16 -1
  83. data/lib/mailslurp_client/models/html_validation_result.rb +30 -14
  84. data/lib/mailslurp_client/models/inbox_dto.rb +26 -1
  85. data/lib/mailslurp_client/models/inbox_exists_dto.rb +6 -1
  86. data/lib/mailslurp_client/models/inbox_forwarder_dto.rb +31 -1
  87. data/lib/mailslurp_client/models/inbox_forwarder_test_options.rb +6 -1
  88. data/lib/mailslurp_client/models/inbox_forwarder_test_result.rb +11 -1
  89. data/lib/mailslurp_client/models/inbox_preview.rb +21 -1
  90. data/lib/mailslurp_client/models/inbox_ruleset_dto.rb +36 -1
  91. data/lib/mailslurp_client/models/inbox_ruleset_test_options.rb +6 -1
  92. data/lib/mailslurp_client/models/inbox_ruleset_test_result.rb +11 -1
  93. data/lib/mailslurp_client/models/inline_object.rb +1 -1
  94. data/lib/mailslurp_client/models/ip_address_result.rb +11 -1
  95. data/lib/mailslurp_client/models/json_schema_dto.rb +6 -1
  96. data/lib/mailslurp_client/models/match_option.rb +11 -1
  97. data/lib/mailslurp_client/models/match_options.rb +1 -1
  98. data/lib/mailslurp_client/models/missed_email.rb +36 -1
  99. data/lib/mailslurp_client/models/missed_email_projection.rb +11 -1
  100. data/lib/mailslurp_client/models/name_server_record.rb +21 -1
  101. data/lib/mailslurp_client/models/organization_inbox_projection.rb +26 -1
  102. data/lib/mailslurp_client/models/page_alias.rb +30 -21
  103. data/lib/mailslurp_client/models/page_attachment_entity.rb +30 -21
  104. data/lib/mailslurp_client/models/page_bounced_email.rb +30 -21
  105. data/lib/mailslurp_client/models/page_bounced_recipients.rb +30 -21
  106. data/lib/mailslurp_client/models/page_contact_projection.rb +30 -21
  107. data/lib/mailslurp_client/models/page_email_preview.rb +30 -21
  108. data/lib/mailslurp_client/models/page_email_projection.rb +30 -21
  109. data/lib/mailslurp_client/models/page_expired_inbox_record_projection.rb +30 -21
  110. data/lib/mailslurp_client/models/page_group_projection.rb +30 -21
  111. data/lib/mailslurp_client/models/page_inbox_forwarder_dto.rb +30 -21
  112. data/lib/mailslurp_client/models/page_inbox_projection.rb +30 -21
  113. data/lib/mailslurp_client/models/page_inbox_ruleset_dto.rb +30 -21
  114. data/lib/mailslurp_client/models/page_missed_email_projection.rb +30 -21
  115. data/lib/mailslurp_client/models/page_organization_inbox_projection.rb +30 -21
  116. data/lib/mailslurp_client/models/page_sent_email_projection.rb +42 -3
  117. data/lib/mailslurp_client/models/page_template_projection.rb +30 -21
  118. data/lib/mailslurp_client/models/page_thread_projection.rb +30 -21
  119. data/lib/mailslurp_client/models/page_tracking_pixel_projection.rb +30 -21
  120. data/lib/mailslurp_client/models/page_unknown_missed_email_projection.rb +30 -21
  121. data/lib/mailslurp_client/models/page_webhook_projection.rb +30 -21
  122. data/lib/mailslurp_client/models/page_webhook_result.rb +30 -21
  123. data/lib/mailslurp_client/models/{pageable.rb → pageable_object.rb} +4 -4
  124. data/lib/mailslurp_client/models/raw_email_json.rb +6 -1
  125. data/lib/mailslurp_client/models/recipient.rb +11 -1
  126. data/lib/mailslurp_client/models/reply_to_alias_email_options.rb +25 -14
  127. data/lib/mailslurp_client/models/reply_to_email_options.rb +25 -14
  128. data/lib/mailslurp_client/models/send_email_options.rb +13 -3
  129. data/lib/mailslurp_client/models/sender.rb +11 -1
  130. data/lib/mailslurp_client/models/sent_email_dto.rb +34 -14
  131. data/lib/mailslurp_client/models/sent_email_projection.rb +54 -14
  132. data/lib/mailslurp_client/models/set_inbox_favourited_options.rb +6 -1
  133. data/lib/mailslurp_client/models/simple_send_email_options.rb +6 -1
  134. data/lib/mailslurp_client/models/sort.rb +1 -1
  135. data/lib/mailslurp_client/models/template_dto.rb +26 -1
  136. data/lib/mailslurp_client/models/template_projection.rb +39 -14
  137. data/lib/mailslurp_client/models/template_variable.rb +11 -1
  138. data/lib/mailslurp_client/models/test_new_inbox_forwarder_options.rb +11 -1
  139. data/lib/mailslurp_client/models/test_new_inbox_ruleset_options.rb +11 -1
  140. data/lib/mailslurp_client/models/thread_projection.rb +46 -11
  141. data/lib/mailslurp_client/models/tracking_pixel_dto.rb +26 -1
  142. data/lib/mailslurp_client/models/tracking_pixel_projection.rb +21 -1
  143. data/lib/mailslurp_client/models/unknown_missed_email_projection.rb +11 -1
  144. data/lib/mailslurp_client/models/unread_count.rb +6 -1
  145. data/lib/mailslurp_client/models/unseen_error_count_dto.rb +6 -1
  146. data/lib/mailslurp_client/models/update_alias_options.rb +1 -1
  147. data/lib/mailslurp_client/models/update_domain_options.rb +1 -1
  148. data/lib/mailslurp_client/models/update_group_contacts.rb +6 -1
  149. data/lib/mailslurp_client/models/update_inbox_options.rb +1 -1
  150. data/lib/mailslurp_client/models/upload_attachment_options.rb +1 -1
  151. data/lib/mailslurp_client/models/validation_dto.rb +11 -1
  152. data/lib/mailslurp_client/models/validation_message.rb +6 -1
  153. data/lib/mailslurp_client/models/verify_email_address_options.rb +6 -1
  154. data/lib/mailslurp_client/models/wait_for_conditions.rb +11 -1
  155. data/lib/mailslurp_client/models/webhook_dto.rb +46 -1
  156. data/lib/mailslurp_client/models/webhook_email_opened_payload.rb +41 -1
  157. data/lib/mailslurp_client/models/webhook_email_read_payload.rb +36 -1
  158. data/lib/mailslurp_client/models/webhook_new_attachment_payload.rb +36 -1
  159. data/lib/mailslurp_client/models/webhook_new_contact_payload.rb +36 -1
  160. data/lib/mailslurp_client/models/webhook_new_email_payload.rb +56 -1
  161. data/lib/mailslurp_client/models/webhook_projection.rb +39 -14
  162. data/lib/mailslurp_client/models/webhook_redrive_result.rb +11 -1
  163. data/lib/mailslurp_client/models/webhook_result_dto.rb +51 -1
  164. data/lib/mailslurp_client/models/webhook_test_request.rb +16 -1
  165. data/lib/mailslurp_client/models/webhook_test_response.rb +1 -1
  166. data/lib/mailslurp_client/models/webhook_test_result.rb +11 -1
  167. data/lib/mailslurp_client/version.rb +2 -2
  168. data/lib/mailslurp_client.rb +2 -2
  169. metadata +2 -2
@@ -4,7 +4,7 @@
4
4
  #MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://www.mailslurp.com/docs/) - [Examples](https://github.com/mailslurp/examples) repository
5
5
 
6
6
  The version of the OpenAPI document: 6.5.2
7
-
7
+ Contact: contact@mailslurp.dev
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 4.3.1
10
10
 
@@ -4,7 +4,7 @@
4
4
  #MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://www.mailslurp.com/docs/) - [Examples](https://github.com/mailslurp/examples) repository
5
5
 
6
6
  The version of the OpenAPI document: 6.5.2
7
-
7
+ Contact: contact@mailslurp.dev
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 4.3.1
10
10
 
@@ -126,8 +126,8 @@ module MailSlurpClient
126
126
  attr_accessor :force_ending_format
127
127
 
128
128
  def initialize
129
- @scheme = 'http'
130
- @host = 'localhost'
129
+ @scheme = 'https'
130
+ @host = 'api.mailslurp.com'
131
131
  @base_path = ''
132
132
  @api_key = {}
133
133
  @api_key_prefix = {}
@@ -207,8 +207,8 @@ module MailSlurpClient
207
207
  def server_settings
208
208
  [
209
209
  {
210
- url: "http://localhost:8080",
211
- description: "Generated server url",
210
+ url: "https://api.mailslurp.com",
211
+ description: "MailSlurp API Server",
212
212
  }
213
213
  ]
214
214
  end
@@ -4,7 +4,7 @@
4
4
  #MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://www.mailslurp.com/docs/) - [Examples](https://github.com/mailslurp/examples) repository
5
5
 
6
6
  The version of the OpenAPI document: 6.5.2
7
-
7
+ Contact: contact@mailslurp.dev
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 4.3.1
10
10
 
@@ -107,14 +107,29 @@ module MailSlurpClient
107
107
  # @return Array for valid properties with the reasons
108
108
  def list_invalid_properties
109
109
  invalid_properties = Array.new
110
+ if @event_name.nil?
111
+ invalid_properties.push('invalid value for "event_name", event_name cannot be nil.')
112
+ end
113
+
114
+ if @webhook_id.nil?
115
+ invalid_properties.push('invalid value for "webhook_id", webhook_id cannot be nil.')
116
+ end
117
+
118
+ if @message_id.nil?
119
+ invalid_properties.push('invalid value for "message_id", message_id cannot be nil.')
120
+ end
121
+
110
122
  invalid_properties
111
123
  end
112
124
 
113
125
  # Check to see if the all the properties in the model are valid
114
126
  # @return true if the model is valid
115
127
  def valid?
128
+ return false if @event_name.nil?
116
129
  event_name_validator = EnumAttributeValidator.new('String', ["EMAIL_RECEIVED", "NEW_EMAIL", "NEW_CONTACT", "NEW_ATTACHMENT", "EMAIL_OPENED", "EMAIL_READ"])
117
130
  return false unless event_name_validator.valid?(@event_name)
131
+ return false if @webhook_id.nil?
132
+ return false if @message_id.nil?
118
133
  true
119
134
  end
120
135
 
@@ -4,7 +4,7 @@
4
4
  #MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://www.mailslurp.com/docs/) - [Examples](https://github.com/mailslurp/examples) repository
5
5
 
6
6
  The version of the OpenAPI document: 6.5.2
7
-
7
+ Contact: contact@mailslurp.dev
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 4.3.1
10
10
 
@@ -33,12 +33,13 @@ module MailSlurpClient
33
33
  # If alias will generate response threads or not when email are received by it
34
34
  attr_accessor :use_threads
35
35
 
36
+ # Has the alias been verified. You must verify an alias if the masked email address has not yet been verified by your account
37
+ attr_accessor :is_verified
38
+
36
39
  attr_accessor :created_at
37
40
 
38
41
  attr_accessor :updated_at
39
42
 
40
- attr_accessor :verified
41
-
42
43
  # Attribute mapping from ruby-style variable name to JSON key.
43
44
  def self.attribute_map
44
45
  {
@@ -49,9 +50,9 @@ module MailSlurpClient
49
50
  :'inbox_id' => :'inboxId',
50
51
  :'name' => :'name',
51
52
  :'use_threads' => :'useThreads',
53
+ :'is_verified' => :'isVerified',
52
54
  :'created_at' => :'createdAt',
53
- :'updated_at' => :'updatedAt',
54
- :'verified' => :'verified'
55
+ :'updated_at' => :'updatedAt'
55
56
  }
56
57
  end
57
58
 
@@ -65,9 +66,9 @@ module MailSlurpClient
65
66
  :'inbox_id' => :'String',
66
67
  :'name' => :'String',
67
68
  :'use_threads' => :'Boolean',
69
+ :'is_verified' => :'Boolean',
68
70
  :'created_at' => :'DateTime',
69
- :'updated_at' => :'DateTime',
70
- :'verified' => :'Boolean'
71
+ :'updated_at' => :'DateTime'
71
72
  }
72
73
  end
73
74
 
@@ -120,6 +121,10 @@ module MailSlurpClient
120
121
  self.use_threads = attributes[:'use_threads']
121
122
  end
122
123
 
124
+ if attributes.key?(:'is_verified')
125
+ self.is_verified = attributes[:'is_verified']
126
+ end
127
+
123
128
  if attributes.key?(:'created_at')
124
129
  self.created_at = attributes[:'created_at']
125
130
  end
@@ -127,22 +132,43 @@ module MailSlurpClient
127
132
  if attributes.key?(:'updated_at')
128
133
  self.updated_at = attributes[:'updated_at']
129
134
  end
130
-
131
- if attributes.key?(:'verified')
132
- self.verified = attributes[:'verified']
133
- end
134
135
  end
135
136
 
136
137
  # Show invalid properties with the reasons. Usually used together with valid?
137
138
  # @return Array for valid properties with the reasons
138
139
  def list_invalid_properties
139
140
  invalid_properties = Array.new
141
+ if @id.nil?
142
+ invalid_properties.push('invalid value for "id", id cannot be nil.')
143
+ end
144
+
145
+ if @email_address.nil?
146
+ invalid_properties.push('invalid value for "email_address", email_address cannot be nil.')
147
+ end
148
+
149
+ if @user_id.nil?
150
+ invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
151
+ end
152
+
153
+ if @inbox_id.nil?
154
+ invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
155
+ end
156
+
157
+ if @is_verified.nil?
158
+ invalid_properties.push('invalid value for "is_verified", is_verified cannot be nil.')
159
+ end
160
+
140
161
  invalid_properties
141
162
  end
142
163
 
143
164
  # Check to see if the all the properties in the model are valid
144
165
  # @return true if the model is valid
145
166
  def valid?
167
+ return false if @id.nil?
168
+ return false if @email_address.nil?
169
+ return false if @user_id.nil?
170
+ return false if @inbox_id.nil?
171
+ return false if @is_verified.nil?
146
172
  true
147
173
  end
148
174
 
@@ -158,9 +184,9 @@ module MailSlurpClient
158
184
  inbox_id == o.inbox_id &&
159
185
  name == o.name &&
160
186
  use_threads == o.use_threads &&
187
+ is_verified == o.is_verified &&
161
188
  created_at == o.created_at &&
162
- updated_at == o.updated_at &&
163
- verified == o.verified
189
+ updated_at == o.updated_at
164
190
  end
165
191
 
166
192
  # @see the `==` method
@@ -172,7 +198,7 @@ module MailSlurpClient
172
198
  # Calculates hash code according to all attributes.
173
199
  # @return [Integer] Hash code
174
200
  def hash
175
- [id, email_address, masked_email_address, user_id, inbox_id, name, use_threads, created_at, updated_at, verified].hash
201
+ [id, email_address, masked_email_address, user_id, inbox_id, name, use_threads, is_verified, created_at, updated_at].hash
176
202
  end
177
203
 
178
204
  # Builds the object from hash
@@ -4,7 +4,7 @@
4
4
  #MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://www.mailslurp.com/docs/) - [Examples](https://github.com/mailslurp/examples) repository
5
5
 
6
6
  The version of the OpenAPI document: 6.5.2
7
-
7
+ Contact: contact@mailslurp.dev
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 4.3.1
10
10
 
@@ -19,8 +19,6 @@ module MailSlurpClient
19
19
 
20
20
  attr_accessor :id
21
21
 
22
- attr_accessor :updated_at
23
-
24
22
  attr_accessor :user_id
25
23
 
26
24
  attr_accessor :email_address
@@ -29,6 +27,8 @@ module MailSlurpClient
29
27
 
30
28
  attr_accessor :created_at
31
29
 
30
+ attr_accessor :updated_at
31
+
32
32
  attr_accessor :use_threads
33
33
 
34
34
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -36,11 +36,11 @@ module MailSlurpClient
36
36
  {
37
37
  :'name' => :'name',
38
38
  :'id' => :'id',
39
- :'updated_at' => :'updatedAt',
40
39
  :'user_id' => :'userId',
41
40
  :'email_address' => :'emailAddress',
42
41
  :'inbox_id' => :'inboxId',
43
42
  :'created_at' => :'createdAt',
43
+ :'updated_at' => :'updatedAt',
44
44
  :'use_threads' => :'useThreads'
45
45
  }
46
46
  end
@@ -50,11 +50,11 @@ module MailSlurpClient
50
50
  {
51
51
  :'name' => :'String',
52
52
  :'id' => :'String',
53
- :'updated_at' => :'DateTime',
54
53
  :'user_id' => :'String',
55
54
  :'email_address' => :'String',
56
55
  :'inbox_id' => :'String',
57
56
  :'created_at' => :'DateTime',
57
+ :'updated_at' => :'DateTime',
58
58
  :'use_threads' => :'Boolean'
59
59
  }
60
60
  end
@@ -88,10 +88,6 @@ module MailSlurpClient
88
88
  self.id = attributes[:'id']
89
89
  end
90
90
 
91
- if attributes.key?(:'updated_at')
92
- self.updated_at = attributes[:'updated_at']
93
- end
94
-
95
91
  if attributes.key?(:'user_id')
96
92
  self.user_id = attributes[:'user_id']
97
93
  end
@@ -108,6 +104,10 @@ module MailSlurpClient
108
104
  self.created_at = attributes[:'created_at']
109
105
  end
110
106
 
107
+ if attributes.key?(:'updated_at')
108
+ self.updated_at = attributes[:'updated_at']
109
+ end
110
+
111
111
  if attributes.key?(:'use_threads')
112
112
  self.use_threads = attributes[:'use_threads']
113
113
  end
@@ -117,12 +117,42 @@ module MailSlurpClient
117
117
  # @return Array for valid properties with the reasons
118
118
  def list_invalid_properties
119
119
  invalid_properties = Array.new
120
+ if @id.nil?
121
+ invalid_properties.push('invalid value for "id", id cannot be nil.')
122
+ end
123
+
124
+ if @user_id.nil?
125
+ invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
126
+ end
127
+
128
+ if @email_address.nil?
129
+ invalid_properties.push('invalid value for "email_address", email_address cannot be nil.')
130
+ end
131
+
132
+ if @inbox_id.nil?
133
+ invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
134
+ end
135
+
136
+ if @created_at.nil?
137
+ invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
138
+ end
139
+
140
+ if @updated_at.nil?
141
+ invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
142
+ end
143
+
120
144
  invalid_properties
121
145
  end
122
146
 
123
147
  # Check to see if the all the properties in the model are valid
124
148
  # @return true if the model is valid
125
149
  def valid?
150
+ return false if @id.nil?
151
+ return false if @user_id.nil?
152
+ return false if @email_address.nil?
153
+ return false if @inbox_id.nil?
154
+ return false if @created_at.nil?
155
+ return false if @updated_at.nil?
126
156
  true
127
157
  end
128
158
 
@@ -133,11 +163,11 @@ module MailSlurpClient
133
163
  self.class == o.class &&
134
164
  name == o.name &&
135
165
  id == o.id &&
136
- updated_at == o.updated_at &&
137
166
  user_id == o.user_id &&
138
167
  email_address == o.email_address &&
139
168
  inbox_id == o.inbox_id &&
140
169
  created_at == o.created_at &&
170
+ updated_at == o.updated_at &&
141
171
  use_threads == o.use_threads
142
172
  end
143
173
 
@@ -150,7 +180,7 @@ module MailSlurpClient
150
180
  # Calculates hash code according to all attributes.
151
181
  # @return [Integer] Hash code
152
182
  def hash
153
- [name, id, updated_at, user_id, email_address, inbox_id, created_at, use_threads].hash
183
+ [name, id, user_id, email_address, inbox_id, created_at, updated_at, use_threads].hash
154
184
  end
155
185
 
156
186
  # Builds the object from hash
@@ -4,7 +4,7 @@
4
4
  #MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://www.mailslurp.com/docs/) - [Examples](https://github.com/mailslurp/examples) repository
5
5
 
6
6
  The version of the OpenAPI document: 6.5.2
7
-
7
+ Contact: contact@mailslurp.dev
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 4.3.1
10
10
 
@@ -116,12 +116,32 @@ module MailSlurpClient
116
116
  # @return Array for valid properties with the reasons
117
117
  def list_invalid_properties
118
118
  invalid_properties = Array.new
119
+ if @attachment_id.nil?
120
+ invalid_properties.push('invalid value for "attachment_id", attachment_id cannot be nil.')
121
+ end
122
+
123
+ if @user_id.nil?
124
+ invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
125
+ end
126
+
127
+ if @created_at.nil?
128
+ invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
129
+ end
130
+
131
+ if @updated_at.nil?
132
+ invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
133
+ end
134
+
119
135
  invalid_properties
120
136
  end
121
137
 
122
138
  # Check to see if the all the properties in the model are valid
123
139
  # @return true if the model is valid
124
140
  def valid?
141
+ return false if @attachment_id.nil?
142
+ return false if @user_id.nil?
143
+ return false if @created_at.nil?
144
+ return false if @updated_at.nil?
125
145
  true
126
146
  end
127
147
 
@@ -4,7 +4,7 @@
4
4
  #MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://www.mailslurp.com/docs/) - [Examples](https://github.com/mailslurp/examples) repository
5
5
 
6
6
  The version of the OpenAPI document: 6.5.2
7
-
7
+ Contact: contact@mailslurp.dev
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 4.3.1
10
10
 
@@ -89,12 +89,32 @@ module MailSlurpClient
89
89
  # @return Array for valid properties with the reasons
90
90
  def list_invalid_properties
91
91
  invalid_properties = Array.new
92
+ if @name.nil?
93
+ invalid_properties.push('invalid value for "name", name cannot be nil.')
94
+ end
95
+
96
+ if @content_type.nil?
97
+ invalid_properties.push('invalid value for "content_type", content_type cannot be nil.')
98
+ end
99
+
100
+ if @content_length.nil?
101
+ invalid_properties.push('invalid value for "content_length", content_length cannot be nil.')
102
+ end
103
+
104
+ if @id.nil?
105
+ invalid_properties.push('invalid value for "id", id cannot be nil.')
106
+ end
107
+
92
108
  invalid_properties
93
109
  end
94
110
 
95
111
  # Check to see if the all the properties in the model are valid
96
112
  # @return true if the model is valid
97
113
  def valid?
114
+ return false if @name.nil?
115
+ return false if @content_type.nil?
116
+ return false if @content_length.nil?
117
+ return false if @id.nil?
98
118
  true
99
119
  end
100
120
 
@@ -4,7 +4,7 @@
4
4
  #MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://www.mailslurp.com/docs/) - [Examples](https://github.com/mailslurp/examples) repository
5
5
 
6
6
  The version of the OpenAPI document: 6.5.2
7
-
7
+ Contact: contact@mailslurp.dev
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 4.3.1
10
10
 
@@ -19,7 +19,8 @@ module MailSlurpClient
19
19
  # Content length of attachment in bytes
20
20
  attr_accessor :content_length
21
21
 
22
- attr_accessor :updated_at
22
+ # Content type of attachment.
23
+ attr_accessor :content_type
23
24
 
24
25
  attr_accessor :user_id
25
26
 
@@ -28,19 +29,18 @@ module MailSlurpClient
28
29
 
29
30
  attr_accessor :created_at
30
31
 
31
- # Content type of attachment.
32
- attr_accessor :content_type
32
+ attr_accessor :updated_at
33
33
 
34
34
  # Attribute mapping from ruby-style variable name to JSON key.
35
35
  def self.attribute_map
36
36
  {
37
37
  :'name' => :'name',
38
38
  :'content_length' => :'contentLength',
39
- :'updated_at' => :'updatedAt',
39
+ :'content_type' => :'contentType',
40
40
  :'user_id' => :'userId',
41
41
  :'attachment_id' => :'attachmentId',
42
42
  :'created_at' => :'createdAt',
43
- :'content_type' => :'contentType'
43
+ :'updated_at' => :'updatedAt'
44
44
  }
45
45
  end
46
46
 
@@ -49,11 +49,11 @@ module MailSlurpClient
49
49
  {
50
50
  :'name' => :'String',
51
51
  :'content_length' => :'Integer',
52
- :'updated_at' => :'DateTime',
52
+ :'content_type' => :'String',
53
53
  :'user_id' => :'String',
54
54
  :'attachment_id' => :'String',
55
55
  :'created_at' => :'DateTime',
56
- :'content_type' => :'String'
56
+ :'updated_at' => :'DateTime'
57
57
  }
58
58
  end
59
59
 
@@ -86,8 +86,8 @@ module MailSlurpClient
86
86
  self.content_length = attributes[:'content_length']
87
87
  end
88
88
 
89
- if attributes.key?(:'updated_at')
90
- self.updated_at = attributes[:'updated_at']
89
+ if attributes.key?(:'content_type')
90
+ self.content_type = attributes[:'content_type']
91
91
  end
92
92
 
93
93
  if attributes.key?(:'user_id')
@@ -102,8 +102,8 @@ module MailSlurpClient
102
102
  self.created_at = attributes[:'created_at']
103
103
  end
104
104
 
105
- if attributes.key?(:'content_type')
106
- self.content_type = attributes[:'content_type']
105
+ if attributes.key?(:'updated_at')
106
+ self.updated_at = attributes[:'updated_at']
107
107
  end
108
108
  end
109
109
 
@@ -111,12 +111,32 @@ module MailSlurpClient
111
111
  # @return Array for valid properties with the reasons
112
112
  def list_invalid_properties
113
113
  invalid_properties = Array.new
114
+ if @user_id.nil?
115
+ invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
116
+ end
117
+
118
+ if @attachment_id.nil?
119
+ invalid_properties.push('invalid value for "attachment_id", attachment_id cannot be nil.')
120
+ end
121
+
122
+ if @created_at.nil?
123
+ invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
124
+ end
125
+
126
+ if @updated_at.nil?
127
+ invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
128
+ end
129
+
114
130
  invalid_properties
115
131
  end
116
132
 
117
133
  # Check to see if the all the properties in the model are valid
118
134
  # @return true if the model is valid
119
135
  def valid?
136
+ return false if @user_id.nil?
137
+ return false if @attachment_id.nil?
138
+ return false if @created_at.nil?
139
+ return false if @updated_at.nil?
120
140
  true
121
141
  end
122
142
 
@@ -127,11 +147,11 @@ module MailSlurpClient
127
147
  self.class == o.class &&
128
148
  name == o.name &&
129
149
  content_length == o.content_length &&
130
- updated_at == o.updated_at &&
150
+ content_type == o.content_type &&
131
151
  user_id == o.user_id &&
132
152
  attachment_id == o.attachment_id &&
133
153
  created_at == o.created_at &&
134
- content_type == o.content_type
154
+ updated_at == o.updated_at
135
155
  end
136
156
 
137
157
  # @see the `==` method
@@ -143,7 +163,7 @@ module MailSlurpClient
143
163
  # Calculates hash code according to all attributes.
144
164
  # @return [Integer] Hash code
145
165
  def hash
146
- [name, content_length, updated_at, user_id, attachment_id, created_at, content_type].hash
166
+ [name, content_length, content_type, user_id, attachment_id, created_at, updated_at].hash
147
167
  end
148
168
 
149
169
  # Builds the object from hash
@@ -4,7 +4,7 @@
4
4
  #MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://www.mailslurp.com/docs/) - [Examples](https://github.com/mailslurp/examples) repository
5
5
 
6
6
  The version of the OpenAPI document: 6.5.2
7
-
7
+ Contact: contact@mailslurp.dev
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 4.3.1
10
10
 
@@ -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 @username.nil?
73
+ invalid_properties.push('invalid value for "username", username cannot be nil.')
74
+ end
75
+
76
+ if @password.nil?
77
+ invalid_properties.push('invalid value for "password", password 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 @username.nil?
87
+ return false if @password.nil?
78
88
  true
79
89
  end
80
90
 
@@ -4,7 +4,7 @@
4
4
  #MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://www.mailslurp.com/docs/) - [Examples](https://github.com/mailslurp/examples) repository
5
5
 
6
6
  The version of the OpenAPI document: 6.5.2
7
-
7
+ Contact: contact@mailslurp.dev
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 4.3.1
10
10
 
@@ -76,12 +76,22 @@ module MailSlurpClient
76
76
  # @return Array for valid properties with the reasons
77
77
  def list_invalid_properties
78
78
  invalid_properties = Array.new
79
+ if @sender.nil?
80
+ invalid_properties.push('invalid value for "sender", sender cannot be nil.')
81
+ end
82
+
83
+ if @created_at.nil?
84
+ invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
85
+ end
86
+
79
87
  invalid_properties
80
88
  end
81
89
 
82
90
  # Check to see if the all the properties in the model are valid
83
91
  # @return true if the model is valid
84
92
  def valid?
93
+ return false if @sender.nil?
94
+ return false if @created_at.nil?
85
95
  true
86
96
  end
87
97
 
@@ -4,7 +4,7 @@
4
4
  #MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://www.mailslurp.com/docs/) - [Examples](https://github.com/mailslurp/examples) repository
5
5
 
6
6
  The version of the OpenAPI document: 6.5.2
7
-
7
+ Contact: contact@mailslurp.dev
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 4.3.1
10
10
 
@@ -92,12 +92,32 @@ 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 @user_id.nil?
96
+ invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
97
+ end
98
+
99
+ if @recipient.nil?
100
+ invalid_properties.push('invalid value for "recipient", recipient cannot be nil.')
101
+ end
102
+
103
+ if @created_at.nil?
104
+ invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
105
+ end
106
+
107
+ if @updated_at.nil?
108
+ invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
109
+ end
110
+
95
111
  invalid_properties
96
112
  end
97
113
 
98
114
  # Check to see if the all the properties in the model are valid
99
115
  # @return true if the model is valid
100
116
  def valid?
117
+ return false if @user_id.nil?
118
+ return false if @recipient.nil?
119
+ return false if @created_at.nil?
120
+ return false if @updated_at.nil?
101
121
  true
102
122
  end
103
123