mailslurp_client 15.0.0 → 15.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (158) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE +1 -1
  3. data/lib/mailslurp_client/api/alias_controller_api.rb +59 -55
  4. data/lib/mailslurp_client/api/attachment_controller_api.rb +49 -60
  5. data/lib/mailslurp_client/api/bounce_controller_api.rb +26 -18
  6. data/lib/mailslurp_client/api/bulk_actions_controller_api.rb +15 -15
  7. data/lib/mailslurp_client/api/common_actions_controller_api.rb +128 -67
  8. data/lib/mailslurp_client/api/contact_controller_api.rb +22 -22
  9. data/lib/mailslurp_client/api/domain_controller_api.rb +32 -32
  10. data/lib/mailslurp_client/api/email_controller_api.rb +190 -116
  11. data/lib/mailslurp_client/api/expired_controller_api.rb +19 -19
  12. data/lib/mailslurp_client/api/export_controller_api.rb +38 -38
  13. data/lib/mailslurp_client/api/form_controller_api.rb +16 -18
  14. data/lib/mailslurp_client/api/group_controller_api.rb +52 -52
  15. data/lib/mailslurp_client/api/inbox_controller_api.rb +359 -225
  16. data/lib/mailslurp_client/api/inbox_forwarder_controller_api.rb +33 -29
  17. data/lib/mailslurp_client/api/inbox_ruleset_controller_api.rb +33 -29
  18. data/lib/mailslurp_client/api/mail_server_controller_api.rb +26 -26
  19. data/lib/mailslurp_client/api/missed_email_controller_api.rb +54 -42
  20. data/lib/mailslurp_client/api/sent_emails_controller_api.rb +157 -47
  21. data/lib/mailslurp_client/api/template_controller_api.rb +21 -21
  22. data/lib/mailslurp_client/api/tracking_controller_api.rb +16 -16
  23. data/lib/mailslurp_client/api/wait_for_controller_api.rb +128 -88
  24. data/lib/mailslurp_client/api/webhook_controller_api.rb +102 -86
  25. data/lib/mailslurp_client/configuration.rb +4 -4
  26. data/lib/mailslurp_client/models/abstract_webhook_payload.rb +10 -25
  27. data/lib/mailslurp_client/models/alias_dto.rb +45 -56
  28. data/lib/mailslurp_client/models/alias_projection.rb +42 -72
  29. data/lib/mailslurp_client/models/attachment_entity.rb +34 -54
  30. data/lib/mailslurp_client/models/attachment_meta_data.rb +21 -21
  31. data/lib/mailslurp_client/models/attachment_projection.rb +36 -51
  32. data/lib/mailslurp_client/models/basic_auth_options.rb +0 -10
  33. data/lib/mailslurp_client/models/bounce_projection.rb +13 -23
  34. data/lib/mailslurp_client/models/bounce_recipient.rb +22 -42
  35. data/lib/mailslurp_client/models/bounced_email_dto.rb +56 -76
  36. data/lib/mailslurp_client/models/bounced_recipient_dto.rb +16 -31
  37. data/lib/mailslurp_client/models/bulk_send_email_options.rb +5 -0
  38. data/lib/mailslurp_client/models/condition_option.rb +2 -2
  39. data/lib/mailslurp_client/models/contact_dto.rb +53 -73
  40. data/lib/mailslurp_client/models/contact_projection.rb +42 -52
  41. data/lib/mailslurp_client/models/count_dto.rb +206 -0
  42. data/lib/mailslurp_client/models/create_contact_options.rb +42 -42
  43. data/lib/mailslurp_client/models/create_domain_options.rb +21 -16
  44. data/lib/mailslurp_client/models/create_group_options.rb +0 -5
  45. data/lib/mailslurp_client/models/create_inbox_dto.rb +58 -58
  46. data/lib/mailslurp_client/models/create_inbox_forwarder_options.rb +19 -14
  47. data/lib/mailslurp_client/models/create_inbox_ruleset_options.rb +23 -23
  48. data/lib/mailslurp_client/models/create_template_options.rb +0 -10
  49. data/lib/mailslurp_client/models/create_webhook_options.rb +18 -18
  50. data/lib/mailslurp_client/models/describe_mail_server_domain_result.rb +15 -25
  51. data/lib/mailslurp_client/models/dns_lookup_options.rb +24 -14
  52. data/lib/mailslurp_client/models/dns_lookup_result.rb +23 -42
  53. data/lib/mailslurp_client/models/dns_lookup_results.rb +0 -5
  54. data/lib/mailslurp_client/models/domain_dto.rb +59 -80
  55. data/lib/mailslurp_client/models/domain_name_record.rb +11 -30
  56. data/lib/mailslurp_client/models/domain_preview.rb +26 -50
  57. data/lib/mailslurp_client/models/email.rb +134 -135
  58. data/lib/mailslurp_client/models/email_analysis.rb +28 -28
  59. data/lib/mailslurp_client/models/email_content_match_result.rb +13 -23
  60. data/lib/mailslurp_client/models/email_links_result.rb +13 -23
  61. data/lib/mailslurp_client/models/email_preview.rb +47 -47
  62. data/lib/mailslurp_client/models/email_projection.rb +77 -97
  63. data/lib/mailslurp_client/models/email_recipients.rb +16 -15
  64. data/lib/mailslurp_client/models/email_text_lines_result.rb +13 -23
  65. data/lib/mailslurp_client/models/email_verification_result.rb +16 -36
  66. data/lib/mailslurp_client/models/expiration_defaults.rb +16 -26
  67. data/lib/mailslurp_client/models/expired_inbox_dto.rb +13 -28
  68. data/lib/mailslurp_client/models/expired_inbox_record_projection.rb +22 -42
  69. data/lib/mailslurp_client/models/export_link.rb +0 -5
  70. data/lib/mailslurp_client/models/export_options.rb +1 -6
  71. data/lib/mailslurp_client/models/flush_expired_inboxes_result.rb +13 -23
  72. data/lib/mailslurp_client/models/forward_email_options.rb +36 -31
  73. data/lib/mailslurp_client/models/gravatar_url.rb +13 -23
  74. data/lib/mailslurp_client/models/group_contacts_dto.rb +13 -23
  75. data/lib/mailslurp_client/models/group_dto.rb +22 -37
  76. data/lib/mailslurp_client/models/group_projection.rb +22 -37
  77. data/lib/mailslurp_client/models/html_validation_result.rb +13 -14
  78. data/lib/mailslurp_client/models/{inbox.rb → inbox_dto.rb} +47 -57
  79. data/lib/mailslurp_client/models/inbox_exists_dto.rb +0 -5
  80. data/lib/mailslurp_client/models/inbox_forwarder_dto.rb +31 -61
  81. data/lib/mailslurp_client/models/inbox_forwarder_test_options.rb +0 -5
  82. data/lib/mailslurp_client/models/inbox_forwarder_test_result.rb +13 -23
  83. data/lib/mailslurp_client/models/inbox_preview.rb +38 -38
  84. data/lib/mailslurp_client/models/inbox_ruleset_dto.rb +43 -78
  85. data/lib/mailslurp_client/models/inbox_ruleset_test_options.rb +0 -5
  86. data/lib/mailslurp_client/models/inbox_ruleset_test_result.rb +13 -18
  87. data/lib/mailslurp_client/models/inline_object.rb +221 -0
  88. data/lib/mailslurp_client/models/ip_address_result.rb +0 -10
  89. data/lib/mailslurp_client/models/json_schema_dto.rb +0 -5
  90. data/lib/mailslurp_client/models/match_option.rb +7 -2
  91. data/lib/mailslurp_client/models/match_options.rb +16 -16
  92. data/lib/mailslurp_client/models/missed_email.rb +67 -102
  93. data/lib/mailslurp_client/models/missed_email_projection.rb +19 -29
  94. data/lib/mailslurp_client/models/name_server_record.rb +10 -30
  95. data/lib/mailslurp_client/models/organization_inbox_projection.rb +44 -44
  96. data/lib/mailslurp_client/models/page_alias.rb +52 -52
  97. data/lib/mailslurp_client/models/page_attachment_entity.rb +52 -52
  98. data/lib/mailslurp_client/models/page_bounced_email.rb +52 -52
  99. data/lib/mailslurp_client/models/page_bounced_recipients.rb +52 -52
  100. data/lib/mailslurp_client/models/page_contact_projection.rb +52 -52
  101. data/lib/mailslurp_client/models/page_email_preview.rb +52 -52
  102. data/lib/mailslurp_client/models/page_email_projection.rb +52 -52
  103. data/lib/mailslurp_client/models/page_expired_inbox_record_projection.rb +52 -52
  104. data/lib/mailslurp_client/models/page_group_projection.rb +52 -52
  105. data/lib/mailslurp_client/models/page_inbox_forwarder_dto.rb +52 -52
  106. data/lib/mailslurp_client/models/page_inbox_projection.rb +52 -52
  107. data/lib/mailslurp_client/models/page_inbox_ruleset_dto.rb +52 -52
  108. data/lib/mailslurp_client/models/page_missed_email_projection.rb +52 -52
  109. data/lib/mailslurp_client/models/page_organization_inbox_projection.rb +52 -52
  110. data/lib/mailslurp_client/models/page_sent_email_projection.rb +49 -49
  111. data/lib/mailslurp_client/models/page_template_projection.rb +52 -52
  112. data/lib/mailslurp_client/models/page_thread_projection.rb +52 -52
  113. data/lib/mailslurp_client/models/page_tracking_pixel_projection.rb +52 -52
  114. data/lib/mailslurp_client/models/page_unknown_missed_email_projection.rb +52 -52
  115. data/lib/mailslurp_client/models/page_webhook_projection.rb +52 -52
  116. data/lib/mailslurp_client/models/page_webhook_result.rb +52 -52
  117. data/lib/mailslurp_client/models/pageable.rb +10 -10
  118. data/lib/mailslurp_client/models/raw_email_json.rb +0 -5
  119. data/lib/mailslurp_client/models/recipient.rb +13 -23
  120. data/lib/mailslurp_client/models/reply_to_alias_email_options.rb +38 -37
  121. data/lib/mailslurp_client/models/reply_to_email_options.rb +51 -50
  122. data/lib/mailslurp_client/models/send_email_options.rb +107 -115
  123. data/lib/mailslurp_client/models/sender.rb +14 -23
  124. data/lib/mailslurp_client/models/sent_email_dto.rb +97 -102
  125. data/lib/mailslurp_client/models/sent_email_projection.rb +66 -105
  126. data/lib/mailslurp_client/models/simple_send_email_options.rb +24 -24
  127. data/lib/mailslurp_client/models/template_dto.rb +22 -47
  128. data/lib/mailslurp_client/models/template_projection.rb +16 -41
  129. data/lib/mailslurp_client/models/template_variable.rb +0 -10
  130. data/lib/mailslurp_client/models/test_new_inbox_forwarder_options.rb +0 -10
  131. data/lib/mailslurp_client/models/test_new_inbox_ruleset_options.rb +0 -10
  132. data/lib/mailslurp_client/models/thread_projection.rb +60 -95
  133. data/lib/mailslurp_client/models/tracking_pixel_dto.rb +43 -68
  134. data/lib/mailslurp_client/models/tracking_pixel_projection.rb +34 -54
  135. data/lib/mailslurp_client/models/unknown_missed_email_projection.rb +19 -29
  136. data/lib/mailslurp_client/models/unread_count.rb +0 -5
  137. data/lib/mailslurp_client/models/unseen_error_count_dto.rb +0 -5
  138. data/lib/mailslurp_client/models/update_group_contacts.rb +0 -5
  139. data/lib/mailslurp_client/models/update_inbox_options.rb +26 -26
  140. data/lib/mailslurp_client/models/upload_attachment_options.rb +14 -14
  141. data/lib/mailslurp_client/models/validation_message.rb +1 -5
  142. data/lib/mailslurp_client/models/verify_email_address_options.rb +0 -5
  143. data/lib/mailslurp_client/models/wait_for_conditions.rb +48 -58
  144. data/lib/mailslurp_client/models/webhook_dto.rb +64 -69
  145. data/lib/mailslurp_client/models/webhook_email_opened_payload.rb +42 -42
  146. data/lib/mailslurp_client/models/webhook_email_read_payload.rb +49 -49
  147. data/lib/mailslurp_client/models/webhook_new_attachment_payload.rb +43 -43
  148. data/lib/mailslurp_client/models/webhook_new_contact_payload.rb +75 -95
  149. data/lib/mailslurp_client/models/webhook_new_email_payload.rb +84 -84
  150. data/lib/mailslurp_client/models/webhook_projection.rb +36 -61
  151. data/lib/mailslurp_client/models/webhook_redrive_result.rb +13 -23
  152. data/lib/mailslurp_client/models/webhook_result_dto.rb +76 -126
  153. data/lib/mailslurp_client/models/webhook_test_request.rb +21 -36
  154. data/lib/mailslurp_client/models/webhook_test_response.rb +13 -13
  155. data/lib/mailslurp_client/models/webhook_test_result.rb +13 -23
  156. data/lib/mailslurp_client/version.rb +1 -1
  157. data/lib/mailslurp_client.rb +3 -1
  158. metadata +5 -3
@@ -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
@@ -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
- attr_accessor :created_at
26
+ attr_accessor :body_md5_hash
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 :created_at
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
+ :'body_md5_hash' => :'bodyMD5Hash',
48
+ :'inbox_id' => :'inboxId',
51
49
  :'to' => :'to',
52
- :'user_id' => :'userId'
50
+ :'attachments' => :'attachments',
51
+ :'bcc' => :'bcc',
52
+ :'cc' => :'cc',
53
+ :'created_at' => :'createdAt'
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
+ :'body_md5_hash' => :'String',
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
+ :'created_at' => :'DateTime'
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
98
- end
99
-
100
- if attributes.key?(:'bcc')
101
- if (value = attributes[:'bcc']).is_a?(Array)
102
- self.bcc = value
103
- end
104
- end
105
-
106
- if attributes.key?(:'body_md5_hash')
107
- self.body_md5_hash = attributes[:'body_md5_hash']
95
+ if attributes.key?(:'id')
96
+ self.id = attributes[:'id']
108
97
  end
109
98
 
110
- if attributes.key?(:'cc')
111
- if (value = attributes[:'cc']).is_a?(Array)
112
- self.cc = value
113
- end
99
+ if attributes.key?(:'from')
100
+ self.from = attributes[:'from']
114
101
  end
115
102
 
116
- if attributes.key?(:'created_at')
117
- self.created_at = attributes[:'created_at']
103
+ if attributes.key?(:'user_id')
104
+ self.user_id = attributes[:'user_id']
118
105
  end
119
106
 
120
- if attributes.key?(:'from')
121
- self.from = attributes[:'from']
107
+ if attributes.key?(:'subject')
108
+ self.subject = attributes[:'subject']
122
109
  end
123
110
 
124
- if attributes.key?(:'id')
125
- self.id = attributes[:'id']
111
+ if attributes.key?(:'body_md5_hash')
112
+ self.body_md5_hash = attributes[:'body_md5_hash']
126
113
  end
127
114
 
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?(:'created_at')
144
+ self.created_at = attributes[:'created_at']
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
+ body_md5_hash == o.body_md5_hash &&
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
+ created_at == o.created_at
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, body_md5_hash, inbox_id, to, attachments, bcc, cc, created_at].hash
228
189
  end
229
190
 
230
191
  # Builds the object from hash
@@ -14,35 +14,35 @@ require 'date'
14
14
 
15
15
  module MailSlurpClient
16
16
  class SimpleSendEmailOptions
17
- # Body of the email message. Supports HTML
18
- attr_accessor :body
19
-
20
17
  # ID of inbox to send from. If null an inbox will be created for sending
21
18
  attr_accessor :sender_id
22
19
 
23
- # Subject line of the email
24
- attr_accessor :subject
25
-
26
20
  # Email address to send to
27
21
  attr_accessor :to
28
22
 
23
+ # Body of the email message. Supports HTML
24
+ attr_accessor :body
25
+
26
+ # Subject line of the email
27
+ attr_accessor :subject
28
+
29
29
  # Attribute mapping from ruby-style variable name to JSON key.
30
30
  def self.attribute_map
31
31
  {
32
- :'body' => :'body',
33
32
  :'sender_id' => :'senderId',
34
- :'subject' => :'subject',
35
- :'to' => :'to'
33
+ :'to' => :'to',
34
+ :'body' => :'body',
35
+ :'subject' => :'subject'
36
36
  }
37
37
  end
38
38
 
39
39
  # Attribute type mapping.
40
40
  def self.openapi_types
41
41
  {
42
- :'body' => :'String',
43
42
  :'sender_id' => :'String',
44
- :'subject' => :'String',
45
- :'to' => :'String'
43
+ :'to' => :'String',
44
+ :'body' => :'String',
45
+ :'subject' => :'String'
46
46
  }
47
47
  end
48
48
 
@@ -67,21 +67,21 @@ module MailSlurpClient
67
67
  h[k.to_sym] = v
68
68
  }
69
69
 
70
- if attributes.key?(:'body')
71
- self.body = attributes[:'body']
72
- end
73
-
74
70
  if attributes.key?(:'sender_id')
75
71
  self.sender_id = attributes[:'sender_id']
76
72
  end
77
73
 
78
- if attributes.key?(:'subject')
79
- self.subject = attributes[:'subject']
80
- end
81
-
82
74
  if attributes.key?(:'to')
83
75
  self.to = attributes[:'to']
84
76
  end
77
+
78
+ if attributes.key?(:'body')
79
+ self.body = attributes[:'body']
80
+ end
81
+
82
+ if attributes.key?(:'subject')
83
+ self.subject = attributes[:'subject']
84
+ end
85
85
  end
86
86
 
87
87
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -102,10 +102,10 @@ module MailSlurpClient
102
102
  def ==(o)
103
103
  return true if self.equal?(o)
104
104
  self.class == o.class &&
105
- body == o.body &&
106
105
  sender_id == o.sender_id &&
107
- subject == o.subject &&
108
- to == o.to
106
+ to == o.to &&
107
+ body == o.body &&
108
+ subject == o.subject
109
109
  end
110
110
 
111
111
  # @see the `==` method
@@ -117,7 +117,7 @@ module MailSlurpClient
117
117
  # Calculates hash code according to all attributes.
118
118
  # @return [Integer] Hash code
119
119
  def hash
120
- [body, sender_id, subject, to].hash
120
+ [sender_id, to, body, subject].hash
121
121
  end
122
122
 
123
123
  # Builds the object from hash