mailslurp_client 15.0.2 → 15.0.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (170) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE +1 -1
  3. data/lib/mailslurp_client/api/alias_controller_api.rb +60 -56
  4. data/lib/mailslurp_client/api/attachment_controller_api.rb +50 -61
  5. data/lib/mailslurp_client/api/bounce_controller_api.rb +27 -19
  6. data/lib/mailslurp_client/api/bulk_actions_controller_api.rb +16 -16
  7. data/lib/mailslurp_client/api/common_actions_controller_api.rb +129 -68
  8. data/lib/mailslurp_client/api/contact_controller_api.rb +23 -23
  9. data/lib/mailslurp_client/api/domain_controller_api.rb +33 -33
  10. data/lib/mailslurp_client/api/email_controller_api.rb +191 -117
  11. data/lib/mailslurp_client/api/expired_controller_api.rb +20 -20
  12. data/lib/mailslurp_client/api/export_controller_api.rb +39 -39
  13. data/lib/mailslurp_client/api/form_controller_api.rb +17 -19
  14. data/lib/mailslurp_client/api/group_controller_api.rb +53 -53
  15. data/lib/mailslurp_client/api/inbox_controller_api.rb +360 -226
  16. data/lib/mailslurp_client/api/inbox_forwarder_controller_api.rb +34 -30
  17. data/lib/mailslurp_client/api/inbox_ruleset_controller_api.rb +34 -30
  18. data/lib/mailslurp_client/api/mail_server_controller_api.rb +27 -27
  19. data/lib/mailslurp_client/api/missed_email_controller_api.rb +55 -43
  20. data/lib/mailslurp_client/api/sent_emails_controller_api.rb +158 -48
  21. data/lib/mailslurp_client/api/template_controller_api.rb +22 -22
  22. data/lib/mailslurp_client/api/tracking_controller_api.rb +17 -17
  23. data/lib/mailslurp_client/api/wait_for_controller_api.rb +129 -89
  24. data/lib/mailslurp_client/api/webhook_controller_api.rb +103 -87
  25. data/lib/mailslurp_client/api_client.rb +1 -1
  26. data/lib/mailslurp_client/api_error.rb +1 -1
  27. data/lib/mailslurp_client/configuration.rb +3 -3
  28. data/lib/mailslurp_client/models/abstract_webhook_payload.rb +11 -26
  29. data/lib/mailslurp_client/models/alias_dto.rb +46 -57
  30. data/lib/mailslurp_client/models/alias_projection.rb +38 -68
  31. data/lib/mailslurp_client/models/attachment_entity.rb +35 -55
  32. data/lib/mailslurp_client/models/attachment_meta_data.rb +22 -22
  33. data/lib/mailslurp_client/models/attachment_projection.rb +30 -45
  34. data/lib/mailslurp_client/models/basic_auth_options.rb +1 -11
  35. data/lib/mailslurp_client/models/bounce_projection.rb +14 -24
  36. data/lib/mailslurp_client/models/bounce_recipient.rb +23 -43
  37. data/lib/mailslurp_client/models/bounced_email_dto.rb +57 -77
  38. data/lib/mailslurp_client/models/bounced_recipient_dto.rb +17 -32
  39. data/lib/mailslurp_client/models/bulk_send_email_options.rb +6 -1
  40. data/lib/mailslurp_client/models/condition_option.rb +3 -3
  41. data/lib/mailslurp_client/models/contact_dto.rb +54 -74
  42. data/lib/mailslurp_client/models/contact_projection.rb +43 -53
  43. data/lib/mailslurp_client/models/content_match_options.rb +1 -1
  44. data/lib/mailslurp_client/models/count_dto.rb +206 -0
  45. data/lib/mailslurp_client/models/create_alias_options.rb +1 -1
  46. data/lib/mailslurp_client/models/create_contact_options.rb +43 -43
  47. data/lib/mailslurp_client/models/create_domain_options.rb +22 -17
  48. data/lib/mailslurp_client/models/create_group_options.rb +1 -6
  49. data/lib/mailslurp_client/models/create_inbox_dto.rb +59 -59
  50. data/lib/mailslurp_client/models/create_inbox_forwarder_options.rb +20 -15
  51. data/lib/mailslurp_client/models/create_inbox_ruleset_options.rb +24 -24
  52. data/lib/mailslurp_client/models/create_template_options.rb +1 -11
  53. data/lib/mailslurp_client/models/create_tracking_pixel_options.rb +1 -1
  54. data/lib/mailslurp_client/models/create_webhook_options.rb +19 -19
  55. data/lib/mailslurp_client/models/describe_domain_options.rb +1 -1
  56. data/lib/mailslurp_client/models/describe_mail_server_domain_result.rb +16 -26
  57. data/lib/mailslurp_client/models/dns_lookup_options.rb +25 -15
  58. data/lib/mailslurp_client/models/dns_lookup_result.rb +24 -43
  59. data/lib/mailslurp_client/models/dns_lookup_results.rb +1 -6
  60. data/lib/mailslurp_client/models/domain_dto.rb +60 -81
  61. data/lib/mailslurp_client/models/domain_name_record.rb +12 -31
  62. data/lib/mailslurp_client/models/domain_preview.rb +27 -51
  63. data/lib/mailslurp_client/models/download_attachment_dto.rb +1 -1
  64. data/lib/mailslurp_client/models/email.rb +135 -136
  65. data/lib/mailslurp_client/models/email_analysis.rb +29 -29
  66. data/lib/mailslurp_client/models/email_content_match_result.rb +14 -24
  67. data/lib/mailslurp_client/models/email_links_result.rb +14 -24
  68. data/lib/mailslurp_client/models/email_preview.rb +48 -48
  69. data/lib/mailslurp_client/models/email_projection.rb +67 -87
  70. data/lib/mailslurp_client/models/email_recipients.rb +17 -16
  71. data/lib/mailslurp_client/models/email_text_lines_result.rb +14 -24
  72. data/lib/mailslurp_client/models/email_verification_result.rb +17 -37
  73. data/lib/mailslurp_client/models/expiration_defaults.rb +17 -27
  74. data/lib/mailslurp_client/models/expired_inbox_dto.rb +14 -29
  75. data/lib/mailslurp_client/models/expired_inbox_record_projection.rb +23 -43
  76. data/lib/mailslurp_client/models/export_link.rb +1 -6
  77. data/lib/mailslurp_client/models/export_options.rb +2 -7
  78. data/lib/mailslurp_client/models/flush_expired_inboxes_result.rb +14 -24
  79. data/lib/mailslurp_client/models/forward_email_options.rb +37 -32
  80. data/lib/mailslurp_client/models/gravatar_url.rb +14 -24
  81. data/lib/mailslurp_client/models/group_contacts_dto.rb +14 -24
  82. data/lib/mailslurp_client/models/group_dto.rb +23 -38
  83. data/lib/mailslurp_client/models/group_projection.rb +23 -38
  84. data/lib/mailslurp_client/models/html_validation_result.rb +14 -15
  85. data/lib/mailslurp_client/models/{inbox.rb → inbox_dto.rb} +48 -58
  86. data/lib/mailslurp_client/models/inbox_exists_dto.rb +1 -6
  87. data/lib/mailslurp_client/models/inbox_forwarder_dto.rb +32 -62
  88. data/lib/mailslurp_client/models/inbox_forwarder_test_options.rb +1 -6
  89. data/lib/mailslurp_client/models/inbox_forwarder_test_result.rb +14 -24
  90. data/lib/mailslurp_client/models/inbox_preview.rb +39 -39
  91. data/lib/mailslurp_client/models/inbox_ruleset_dto.rb +44 -79
  92. data/lib/mailslurp_client/models/inbox_ruleset_test_options.rb +1 -6
  93. data/lib/mailslurp_client/models/inbox_ruleset_test_result.rb +14 -19
  94. data/lib/mailslurp_client/models/inline_object.rb +221 -0
  95. data/lib/mailslurp_client/models/ip_address_result.rb +1 -11
  96. data/lib/mailslurp_client/models/json_schema_dto.rb +1 -6
  97. data/lib/mailslurp_client/models/match_option.rb +8 -3
  98. data/lib/mailslurp_client/models/match_options.rb +17 -17
  99. data/lib/mailslurp_client/models/missed_email.rb +68 -103
  100. data/lib/mailslurp_client/models/missed_email_projection.rb +20 -30
  101. data/lib/mailslurp_client/models/name_server_record.rb +11 -31
  102. data/lib/mailslurp_client/models/organization_inbox_projection.rb +45 -45
  103. data/lib/mailslurp_client/models/page_alias.rb +50 -50
  104. data/lib/mailslurp_client/models/page_attachment_entity.rb +50 -50
  105. data/lib/mailslurp_client/models/page_bounced_email.rb +50 -50
  106. data/lib/mailslurp_client/models/page_bounced_recipients.rb +50 -50
  107. data/lib/mailslurp_client/models/page_contact_projection.rb +50 -50
  108. data/lib/mailslurp_client/models/page_email_preview.rb +50 -50
  109. data/lib/mailslurp_client/models/page_email_projection.rb +50 -50
  110. data/lib/mailslurp_client/models/page_expired_inbox_record_projection.rb +50 -50
  111. data/lib/mailslurp_client/models/page_group_projection.rb +50 -50
  112. data/lib/mailslurp_client/models/page_inbox_forwarder_dto.rb +50 -50
  113. data/lib/mailslurp_client/models/page_inbox_projection.rb +50 -50
  114. data/lib/mailslurp_client/models/page_inbox_ruleset_dto.rb +50 -50
  115. data/lib/mailslurp_client/models/page_missed_email_projection.rb +50 -50
  116. data/lib/mailslurp_client/models/page_organization_inbox_projection.rb +50 -50
  117. data/lib/mailslurp_client/models/page_sent_email_projection.rb +50 -50
  118. data/lib/mailslurp_client/models/page_template_projection.rb +50 -50
  119. data/lib/mailslurp_client/models/page_thread_projection.rb +50 -50
  120. data/lib/mailslurp_client/models/page_tracking_pixel_projection.rb +50 -50
  121. data/lib/mailslurp_client/models/page_unknown_missed_email_projection.rb +50 -50
  122. data/lib/mailslurp_client/models/page_webhook_projection.rb +50 -50
  123. data/lib/mailslurp_client/models/page_webhook_result.rb +50 -50
  124. data/lib/mailslurp_client/models/pageable.rb +29 -29
  125. data/lib/mailslurp_client/models/raw_email_json.rb +1 -6
  126. data/lib/mailslurp_client/models/recipient.rb +14 -24
  127. data/lib/mailslurp_client/models/reply_to_alias_email_options.rb +39 -38
  128. data/lib/mailslurp_client/models/reply_to_email_options.rb +52 -51
  129. data/lib/mailslurp_client/models/send_email_options.rb +108 -116
  130. data/lib/mailslurp_client/models/sender.rb +15 -24
  131. data/lib/mailslurp_client/models/sent_email_dto.rb +98 -103
  132. data/lib/mailslurp_client/models/sent_email_projection.rb +64 -103
  133. data/lib/mailslurp_client/models/set_inbox_favourited_options.rb +1 -1
  134. data/lib/mailslurp_client/models/simple_send_email_options.rb +25 -25
  135. data/lib/mailslurp_client/models/sort.rb +14 -14
  136. data/lib/mailslurp_client/models/template_dto.rb +23 -48
  137. data/lib/mailslurp_client/models/template_projection.rb +26 -51
  138. data/lib/mailslurp_client/models/template_variable.rb +1 -11
  139. data/lib/mailslurp_client/models/test_new_inbox_forwarder_options.rb +1 -11
  140. data/lib/mailslurp_client/models/test_new_inbox_ruleset_options.rb +1 -11
  141. data/lib/mailslurp_client/models/thread_projection.rb +58 -93
  142. data/lib/mailslurp_client/models/tracking_pixel_dto.rb +44 -69
  143. data/lib/mailslurp_client/models/tracking_pixel_projection.rb +35 -55
  144. data/lib/mailslurp_client/models/unknown_missed_email_projection.rb +20 -30
  145. data/lib/mailslurp_client/models/unread_count.rb +1 -6
  146. data/lib/mailslurp_client/models/unseen_error_count_dto.rb +1 -6
  147. data/lib/mailslurp_client/models/update_alias_options.rb +1 -1
  148. data/lib/mailslurp_client/models/update_domain_options.rb +1 -1
  149. data/lib/mailslurp_client/models/update_group_contacts.rb +1 -6
  150. data/lib/mailslurp_client/models/update_inbox_options.rb +27 -27
  151. data/lib/mailslurp_client/models/upload_attachment_options.rb +15 -15
  152. data/lib/mailslurp_client/models/validation_dto.rb +1 -1
  153. data/lib/mailslurp_client/models/validation_message.rb +2 -6
  154. data/lib/mailslurp_client/models/verify_email_address_options.rb +1 -6
  155. data/lib/mailslurp_client/models/wait_for_conditions.rb +49 -59
  156. data/lib/mailslurp_client/models/webhook_dto.rb +65 -70
  157. data/lib/mailslurp_client/models/webhook_email_opened_payload.rb +43 -43
  158. data/lib/mailslurp_client/models/webhook_email_read_payload.rb +50 -50
  159. data/lib/mailslurp_client/models/webhook_new_attachment_payload.rb +44 -44
  160. data/lib/mailslurp_client/models/webhook_new_contact_payload.rb +76 -96
  161. data/lib/mailslurp_client/models/webhook_new_email_payload.rb +85 -85
  162. data/lib/mailslurp_client/models/webhook_projection.rb +35 -60
  163. data/lib/mailslurp_client/models/webhook_redrive_result.rb +14 -24
  164. data/lib/mailslurp_client/models/webhook_result_dto.rb +77 -127
  165. data/lib/mailslurp_client/models/webhook_test_request.rb +22 -37
  166. data/lib/mailslurp_client/models/webhook_test_response.rb +14 -14
  167. data/lib/mailslurp_client/models/webhook_test_result.rb +14 -24
  168. data/lib/mailslurp_client/version.rb +2 -2
  169. data/lib/mailslurp_client.rb +4 -2
  170. metadata +5 -3
@@ -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
 
@@ -15,85 +15,85 @@ require 'date'
15
15
  module MailSlurpClient
16
16
  # Sent email details
17
17
  class SentEmailDto
18
- # Array of IDs of attachments that were sent with this email
19
- attr_accessor :attachments
18
+ # ID of sent email
19
+ attr_accessor :id
20
20
 
21
- attr_accessor :bcc
21
+ # User ID
22
+ attr_accessor :user_id
22
23
 
23
- attr_accessor :body
24
+ # Inbox ID email was sent from
25
+ attr_accessor :inbox_id
24
26
 
25
- # MD5 Hash
26
- attr_accessor :body_md5_hash
27
+ # Recipients email was sent to
28
+ attr_accessor :to
27
29
 
28
- attr_accessor :cc
30
+ attr_accessor :from
29
31
 
30
- attr_accessor :charset
32
+ attr_accessor :reply_to
31
33
 
32
- attr_accessor :from
34
+ attr_accessor :cc
33
35
 
34
- # ID of sent email
35
- attr_accessor :id
36
+ attr_accessor :bcc
36
37
 
37
- # Inbox ID email was sent from
38
- attr_accessor :inbox_id
38
+ # Array of IDs of attachments that were sent with this email
39
+ attr_accessor :attachments
39
40
 
40
- attr_accessor :is_html
41
+ attr_accessor :subject
41
42
 
42
- attr_accessor :pixel_ids
43
+ # MD5 Hash
44
+ attr_accessor :body_md5_hash
43
45
 
44
- attr_accessor :reply_to
46
+ attr_accessor :body
45
47
 
46
- attr_accessor :sent_at
48
+ attr_accessor :charset
47
49
 
48
- attr_accessor :subject
50
+ attr_accessor :sent_at
49
51
 
50
- # Recipients email was sent to
51
- attr_accessor :to
52
+ attr_accessor :pixel_ids
52
53
 
53
- # User ID
54
- attr_accessor :user_id
54
+ attr_accessor :html
55
55
 
56
56
  # Attribute mapping from ruby-style variable name to JSON key.
57
57
  def self.attribute_map
58
58
  {
59
- :'attachments' => :'attachments',
60
- :'bcc' => :'bcc',
61
- :'body' => :'body',
62
- :'body_md5_hash' => :'bodyMD5Hash',
63
- :'cc' => :'cc',
64
- :'charset' => :'charset',
65
- :'from' => :'from',
66
59
  :'id' => :'id',
60
+ :'user_id' => :'userId',
67
61
  :'inbox_id' => :'inboxId',
68
- :'is_html' => :'isHTML',
69
- :'pixel_ids' => :'pixelIds',
62
+ :'to' => :'to',
63
+ :'from' => :'from',
70
64
  :'reply_to' => :'replyTo',
71
- :'sent_at' => :'sentAt',
65
+ :'cc' => :'cc',
66
+ :'bcc' => :'bcc',
67
+ :'attachments' => :'attachments',
72
68
  :'subject' => :'subject',
73
- :'to' => :'to',
74
- :'user_id' => :'userId'
69
+ :'body_md5_hash' => :'bodyMD5Hash',
70
+ :'body' => :'body',
71
+ :'charset' => :'charset',
72
+ :'sent_at' => :'sentAt',
73
+ :'pixel_ids' => :'pixelIds',
74
+ :'html' => :'html'
75
75
  }
76
76
  end
77
77
 
78
78
  # Attribute type mapping.
79
79
  def self.openapi_types
80
80
  {
81
- :'attachments' => :'Array<String>',
82
- :'bcc' => :'Array<String>',
83
- :'body' => :'String',
84
- :'body_md5_hash' => :'String',
85
- :'cc' => :'Array<String>',
86
- :'charset' => :'String',
87
- :'from' => :'String',
88
81
  :'id' => :'String',
82
+ :'user_id' => :'String',
89
83
  :'inbox_id' => :'String',
90
- :'is_html' => :'Boolean',
91
- :'pixel_ids' => :'Array<String>',
84
+ :'to' => :'Array<String>',
85
+ :'from' => :'String',
92
86
  :'reply_to' => :'String',
93
- :'sent_at' => :'DateTime',
87
+ :'cc' => :'Array<String>',
88
+ :'bcc' => :'Array<String>',
89
+ :'attachments' => :'Array<String>',
94
90
  :'subject' => :'String',
95
- :'to' => :'Array<String>',
96
- :'user_id' => :'String'
91
+ :'body_md5_hash' => :'String',
92
+ :'body' => :'String',
93
+ :'charset' => :'String',
94
+ :'sent_at' => :'DateTime',
95
+ :'pixel_ids' => :'Array<String>',
96
+ :'html' => :'Boolean'
97
97
  }
98
98
  end
99
99
 
@@ -118,24 +118,30 @@ module MailSlurpClient
118
118
  h[k.to_sym] = v
119
119
  }
120
120
 
121
- if attributes.key?(:'attachments')
122
- if (value = attributes[:'attachments']).is_a?(Array)
123
- self.attachments = value
124
- end
121
+ if attributes.key?(:'id')
122
+ self.id = attributes[:'id']
125
123
  end
126
124
 
127
- if attributes.key?(:'bcc')
128
- if (value = attributes[:'bcc']).is_a?(Array)
129
- self.bcc = value
125
+ if attributes.key?(:'user_id')
126
+ self.user_id = attributes[:'user_id']
127
+ end
128
+
129
+ if attributes.key?(:'inbox_id')
130
+ self.inbox_id = attributes[:'inbox_id']
131
+ end
132
+
133
+ if attributes.key?(:'to')
134
+ if (value = attributes[:'to']).is_a?(Array)
135
+ self.to = value
130
136
  end
131
137
  end
132
138
 
133
- if attributes.key?(:'body')
134
- self.body = attributes[:'body']
139
+ if attributes.key?(:'from')
140
+ self.from = attributes[:'from']
135
141
  end
136
142
 
137
- if attributes.key?(:'body_md5_hash')
138
- self.body_md5_hash = attributes[:'body_md5_hash']
143
+ if attributes.key?(:'reply_to')
144
+ self.reply_to = attributes[:'reply_to']
139
145
  end
140
146
 
141
147
  if attributes.key?(:'cc')
@@ -144,52 +150,46 @@ module MailSlurpClient
144
150
  end
145
151
  end
146
152
 
147
- if attributes.key?(:'charset')
148
- self.charset = attributes[:'charset']
149
- end
150
-
151
- if attributes.key?(:'from')
152
- self.from = attributes[:'from']
153
+ if attributes.key?(:'bcc')
154
+ if (value = attributes[:'bcc']).is_a?(Array)
155
+ self.bcc = value
156
+ end
153
157
  end
154
158
 
155
- if attributes.key?(:'id')
156
- self.id = attributes[:'id']
159
+ if attributes.key?(:'attachments')
160
+ if (value = attributes[:'attachments']).is_a?(Array)
161
+ self.attachments = value
162
+ end
157
163
  end
158
164
 
159
- if attributes.key?(:'inbox_id')
160
- self.inbox_id = attributes[:'inbox_id']
165
+ if attributes.key?(:'subject')
166
+ self.subject = attributes[:'subject']
161
167
  end
162
168
 
163
- if attributes.key?(:'is_html')
164
- self.is_html = attributes[:'is_html']
169
+ if attributes.key?(:'body_md5_hash')
170
+ self.body_md5_hash = attributes[:'body_md5_hash']
165
171
  end
166
172
 
167
- if attributes.key?(:'pixel_ids')
168
- if (value = attributes[:'pixel_ids']).is_a?(Array)
169
- self.pixel_ids = value
170
- end
173
+ if attributes.key?(:'body')
174
+ self.body = attributes[:'body']
171
175
  end
172
176
 
173
- if attributes.key?(:'reply_to')
174
- self.reply_to = attributes[:'reply_to']
177
+ if attributes.key?(:'charset')
178
+ self.charset = attributes[:'charset']
175
179
  end
176
180
 
177
181
  if attributes.key?(:'sent_at')
178
182
  self.sent_at = attributes[:'sent_at']
179
183
  end
180
184
 
181
- if attributes.key?(:'subject')
182
- self.subject = attributes[:'subject']
183
- end
184
-
185
- if attributes.key?(:'to')
186
- if (value = attributes[:'to']).is_a?(Array)
187
- self.to = value
185
+ if attributes.key?(:'pixel_ids')
186
+ if (value = attributes[:'pixel_ids']).is_a?(Array)
187
+ self.pixel_ids = value
188
188
  end
189
189
  end
190
190
 
191
- if attributes.key?(:'user_id')
192
- self.user_id = attributes[:'user_id']
191
+ if attributes.key?(:'html')
192
+ self.html = attributes[:'html']
193
193
  end
194
194
  end
195
195
 
@@ -197,17 +197,12 @@ module MailSlurpClient
197
197
  # @return Array for valid properties with the reasons
198
198
  def list_invalid_properties
199
199
  invalid_properties = Array.new
200
- if @sent_at.nil?
201
- invalid_properties.push('invalid value for "sent_at", sent_at cannot be nil.')
202
- end
203
-
204
200
  invalid_properties
205
201
  end
206
202
 
207
203
  # Check to see if the all the properties in the model are valid
208
204
  # @return true if the model is valid
209
205
  def valid?
210
- return false if @sent_at.nil?
211
206
  true
212
207
  end
213
208
 
@@ -216,22 +211,22 @@ module MailSlurpClient
216
211
  def ==(o)
217
212
  return true if self.equal?(o)
218
213
  self.class == o.class &&
219
- attachments == o.attachments &&
220
- bcc == o.bcc &&
221
- body == o.body &&
222
- body_md5_hash == o.body_md5_hash &&
223
- cc == o.cc &&
224
- charset == o.charset &&
225
- from == o.from &&
226
214
  id == o.id &&
215
+ user_id == o.user_id &&
227
216
  inbox_id == o.inbox_id &&
228
- is_html == o.is_html &&
229
- pixel_ids == o.pixel_ids &&
217
+ to == o.to &&
218
+ from == o.from &&
230
219
  reply_to == o.reply_to &&
231
- sent_at == o.sent_at &&
220
+ cc == o.cc &&
221
+ bcc == o.bcc &&
222
+ attachments == o.attachments &&
232
223
  subject == o.subject &&
233
- to == o.to &&
234
- user_id == o.user_id
224
+ body_md5_hash == o.body_md5_hash &&
225
+ body == o.body &&
226
+ charset == o.charset &&
227
+ sent_at == o.sent_at &&
228
+ pixel_ids == o.pixel_ids &&
229
+ html == o.html
235
230
  end
236
231
 
237
232
  # @see the `==` method
@@ -243,7 +238,7 @@ module MailSlurpClient
243
238
  # Calculates hash code according to all attributes.
244
239
  # @return [Integer] Hash code
245
240
  def hash
246
- [attachments, bcc, body, body_md5_hash, cc, charset, from, id, inbox_id, is_html, pixel_ids, reply_to, sent_at, subject, to, user_id].hash
241
+ [id, user_id, inbox_id, to, from, reply_to, cc, bcc, attachments, subject, body_md5_hash, body, charset, sent_at, pixel_ids, html].hash
247
242
  end
248
243
 
249
244
  # 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
 
@@ -13,60 +13,61 @@ OpenAPI Generator version: 4.3.1
13
13
  require 'date'
14
14
 
15
15
  module MailSlurpClient
16
+ # Collection of items
16
17
  class SentEmailProjection
17
- attr_accessor :attachments
18
+ attr_accessor :id
18
19
 
19
- attr_accessor :bcc
20
+ attr_accessor :from
20
21
 
21
- attr_accessor :body_md5_hash
22
+ attr_accessor :user_id
22
23
 
23
- attr_accessor :cc
24
+ attr_accessor :subject
24
25
 
25
26
  attr_accessor :created_at
26
27
 
27
- attr_accessor :from
28
+ attr_accessor :inbox_id
28
29
 
29
- attr_accessor :id
30
+ attr_accessor :to
30
31
 
31
- attr_accessor :inbox_id
32
+ attr_accessor :attachments
32
33
 
33
- attr_accessor :subject
34
+ attr_accessor :bcc
34
35
 
35
- attr_accessor :to
36
+ attr_accessor :cc
36
37
 
37
- attr_accessor :user_id
38
+ attr_accessor :body_md5_hash
38
39
 
39
40
  # Attribute mapping from ruby-style variable name to JSON key.
40
41
  def self.attribute_map
41
42
  {
42
- :'attachments' => :'attachments',
43
- :'bcc' => :'bcc',
44
- :'body_md5_hash' => :'bodyMD5Hash',
45
- :'cc' => :'cc',
46
- :'created_at' => :'createdAt',
47
- :'from' => :'from',
48
43
  :'id' => :'id',
49
- :'inbox_id' => :'inboxId',
44
+ :'from' => :'from',
45
+ :'user_id' => :'userId',
50
46
  :'subject' => :'subject',
47
+ :'created_at' => :'createdAt',
48
+ :'inbox_id' => :'inboxId',
51
49
  :'to' => :'to',
52
- :'user_id' => :'userId'
50
+ :'attachments' => :'attachments',
51
+ :'bcc' => :'bcc',
52
+ :'cc' => :'cc',
53
+ :'body_md5_hash' => :'bodyMD5Hash'
53
54
  }
54
55
  end
55
56
 
56
57
  # Attribute type mapping.
57
58
  def self.openapi_types
58
59
  {
59
- :'attachments' => :'Array<String>',
60
- :'bcc' => :'Array<String>',
61
- :'body_md5_hash' => :'String',
62
- :'cc' => :'Array<String>',
63
- :'created_at' => :'DateTime',
64
- :'from' => :'String',
65
60
  :'id' => :'String',
66
- :'inbox_id' => :'String',
61
+ :'from' => :'String',
62
+ :'user_id' => :'String',
67
63
  :'subject' => :'String',
64
+ :'created_at' => :'DateTime',
65
+ :'inbox_id' => :'String',
68
66
  :'to' => :'Array<String>',
69
- :'user_id' => :'String'
67
+ :'attachments' => :'Array<String>',
68
+ :'bcc' => :'Array<String>',
69
+ :'cc' => :'Array<String>',
70
+ :'body_md5_hash' => :'String'
70
71
  }
71
72
  end
72
73
 
@@ -91,109 +92,69 @@ module MailSlurpClient
91
92
  h[k.to_sym] = v
92
93
  }
93
94
 
94
- if attributes.key?(:'attachments')
95
- if (value = attributes[:'attachments']).is_a?(Array)
96
- self.attachments = value
97
- end
95
+ if attributes.key?(:'id')
96
+ self.id = attributes[:'id']
98
97
  end
99
98
 
100
- if attributes.key?(:'bcc')
101
- if (value = attributes[:'bcc']).is_a?(Array)
102
- self.bcc = value
103
- end
99
+ if attributes.key?(:'from')
100
+ self.from = attributes[:'from']
104
101
  end
105
102
 
106
- if attributes.key?(:'body_md5_hash')
107
- self.body_md5_hash = attributes[:'body_md5_hash']
103
+ if attributes.key?(:'user_id')
104
+ self.user_id = attributes[:'user_id']
108
105
  end
109
106
 
110
- if attributes.key?(:'cc')
111
- if (value = attributes[:'cc']).is_a?(Array)
112
- self.cc = value
113
- end
107
+ if attributes.key?(:'subject')
108
+ self.subject = attributes[:'subject']
114
109
  end
115
110
 
116
111
  if attributes.key?(:'created_at')
117
112
  self.created_at = attributes[:'created_at']
118
113
  end
119
114
 
120
- if attributes.key?(:'from')
121
- self.from = attributes[:'from']
122
- end
123
-
124
- if attributes.key?(:'id')
125
- self.id = attributes[:'id']
126
- end
127
-
128
115
  if attributes.key?(:'inbox_id')
129
116
  self.inbox_id = attributes[:'inbox_id']
130
117
  end
131
118
 
132
- if attributes.key?(:'subject')
133
- self.subject = attributes[:'subject']
134
- end
135
-
136
119
  if attributes.key?(:'to')
137
120
  if (value = attributes[:'to']).is_a?(Array)
138
121
  self.to = value
139
122
  end
140
123
  end
141
124
 
142
- if attributes.key?(:'user_id')
143
- self.user_id = attributes[:'user_id']
144
- end
145
- end
146
-
147
- # Show invalid properties with the reasons. Usually used together with valid?
148
- # @return Array for valid properties with the reasons
149
- def list_invalid_properties
150
- invalid_properties = Array.new
151
- if @attachments.nil?
152
- invalid_properties.push('invalid value for "attachments", attachments cannot be nil.')
153
- end
154
-
155
- if @bcc.nil?
156
- invalid_properties.push('invalid value for "bcc", bcc cannot be nil.')
157
- end
158
-
159
- if @cc.nil?
160
- invalid_properties.push('invalid value for "cc", cc cannot be nil.')
161
- end
162
-
163
- if @created_at.nil?
164
- invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
165
- end
166
-
167
- if @id.nil?
168
- invalid_properties.push('invalid value for "id", id cannot be nil.')
125
+ if attributes.key?(:'attachments')
126
+ if (value = attributes[:'attachments']).is_a?(Array)
127
+ self.attachments = value
128
+ end
169
129
  end
170
130
 
171
- if @inbox_id.nil?
172
- invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
131
+ if attributes.key?(:'bcc')
132
+ if (value = attributes[:'bcc']).is_a?(Array)
133
+ self.bcc = value
134
+ end
173
135
  end
174
136
 
175
- if @to.nil?
176
- invalid_properties.push('invalid value for "to", to cannot be nil.')
137
+ if attributes.key?(:'cc')
138
+ if (value = attributes[:'cc']).is_a?(Array)
139
+ self.cc = value
140
+ end
177
141
  end
178
142
 
179
- if @user_id.nil?
180
- invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
143
+ if attributes.key?(:'body_md5_hash')
144
+ self.body_md5_hash = attributes[:'body_md5_hash']
181
145
  end
146
+ end
182
147
 
148
+ # Show invalid properties with the reasons. Usually used together with valid?
149
+ # @return Array for valid properties with the reasons
150
+ def list_invalid_properties
151
+ invalid_properties = Array.new
183
152
  invalid_properties
184
153
  end
185
154
 
186
155
  # Check to see if the all the properties in the model are valid
187
156
  # @return true if the model is valid
188
157
  def valid?
189
- return false if @attachments.nil?
190
- return false if @bcc.nil?
191
- return false if @cc.nil?
192
- return false if @created_at.nil?
193
- return false if @id.nil?
194
- return false if @inbox_id.nil?
195
- return false if @to.nil?
196
- return false if @user_id.nil?
197
158
  true
198
159
  end
199
160
 
@@ -202,17 +163,17 @@ module MailSlurpClient
202
163
  def ==(o)
203
164
  return true if self.equal?(o)
204
165
  self.class == o.class &&
205
- attachments == o.attachments &&
206
- bcc == o.bcc &&
207
- body_md5_hash == o.body_md5_hash &&
208
- cc == o.cc &&
209
- created_at == o.created_at &&
210
- from == o.from &&
211
166
  id == o.id &&
212
- inbox_id == o.inbox_id &&
167
+ from == o.from &&
168
+ user_id == o.user_id &&
213
169
  subject == o.subject &&
170
+ created_at == o.created_at &&
171
+ inbox_id == o.inbox_id &&
214
172
  to == o.to &&
215
- user_id == o.user_id
173
+ attachments == o.attachments &&
174
+ bcc == o.bcc &&
175
+ cc == o.cc &&
176
+ body_md5_hash == o.body_md5_hash
216
177
  end
217
178
 
218
179
  # @see the `==` method
@@ -224,7 +185,7 @@ module MailSlurpClient
224
185
  # Calculates hash code according to all attributes.
225
186
  # @return [Integer] Hash code
226
187
  def hash
227
- [attachments, bcc, body_md5_hash, cc, created_at, from, id, inbox_id, subject, to, user_id].hash
188
+ [id, from, user_id, subject, created_at, inbox_id, to, attachments, bcc, cc, body_md5_hash].hash
228
189
  end
229
190
 
230
191
  # 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