mailslurp_client 15.7.14 → 15.7.17

Sign up to get free protection for your applications and to get access to all the features.
Files changed (99) hide show
  1. checksums.yaml +4 -4
  2. data/lib/mailslurp_client/api/attachment_controller_api.rb +9 -9
  3. data/lib/mailslurp_client/api/common_actions_controller_api.rb +6 -0
  4. data/lib/mailslurp_client/api/email_controller_api.rb +3 -0
  5. data/lib/mailslurp_client/api/inbox_controller_api.rb +3 -0
  6. data/lib/mailslurp_client/models/alias_projection.rb +27 -27
  7. data/lib/mailslurp_client/models/attachment_entity.rb +1 -0
  8. data/lib/mailslurp_client/models/attachment_projection.rb +35 -34
  9. data/lib/mailslurp_client/models/bounce_projection.rb +1 -0
  10. data/lib/mailslurp_client/models/bounce_recipient.rb +1 -0
  11. data/lib/mailslurp_client/models/contact_dto.rb +1 -0
  12. data/lib/mailslurp_client/models/contact_projection.rb +14 -13
  13. data/lib/mailslurp_client/models/count_dto.rb +1 -0
  14. data/lib/mailslurp_client/models/create_contact_options.rb +1 -0
  15. data/lib/mailslurp_client/models/create_group_options.rb +1 -0
  16. data/lib/mailslurp_client/models/create_inbox_dto.rb +14 -4
  17. data/lib/mailslurp_client/models/create_template_options.rb +1 -0
  18. data/lib/mailslurp_client/models/create_tracking_pixel_options.rb +1 -0
  19. data/lib/mailslurp_client/models/describe_domain_options.rb +1 -0
  20. data/lib/mailslurp_client/models/email.rb +13 -4
  21. data/lib/mailslurp_client/models/email_preview_urls.rb +1 -0
  22. data/lib/mailslurp_client/models/email_projection.rb +15 -15
  23. data/lib/mailslurp_client/models/email_validation_request.rb +1 -0
  24. data/lib/mailslurp_client/models/expired_inbox_record_projection.rb +19 -18
  25. data/lib/mailslurp_client/models/filter_bounced_recipients_options.rb +1 -0
  26. data/lib/mailslurp_client/models/filter_bounced_recipients_result.rb +1 -0
  27. data/lib/mailslurp_client/models/flush_expired_inboxes_result.rb +1 -0
  28. data/lib/mailslurp_client/models/gravatar_url.rb +1 -0
  29. data/lib/mailslurp_client/models/group_contacts_dto.rb +1 -0
  30. data/lib/mailslurp_client/models/group_dto.rb +1 -0
  31. data/lib/mailslurp_client/models/group_projection.rb +1 -0
  32. data/lib/mailslurp_client/models/imap_flag_operation_options.rb +1 -0
  33. data/lib/mailslurp_client/models/imap_smtp_access_details.rb +9 -0
  34. data/lib/mailslurp_client/models/inbox_by_email_address_result.rb +1 -0
  35. data/lib/mailslurp_client/models/inbox_dto.rb +19 -4
  36. data/lib/mailslurp_client/models/inbox_exists_dto.rb +1 -0
  37. data/lib/mailslurp_client/models/inbox_forwarder_dto.rb +1 -0
  38. data/lib/mailslurp_client/models/inbox_forwarder_test_options.rb +1 -0
  39. data/lib/mailslurp_client/models/inbox_forwarder_test_result.rb +1 -0
  40. data/lib/mailslurp_client/models/inbox_id_item.rb +1 -0
  41. data/lib/mailslurp_client/models/inbox_ids_result.rb +1 -0
  42. data/lib/mailslurp_client/models/inbox_preview.rb +12 -1
  43. data/lib/mailslurp_client/models/inbox_ruleset_dto.rb +1 -0
  44. data/lib/mailslurp_client/models/inbox_ruleset_test_options.rb +1 -0
  45. data/lib/mailslurp_client/models/inbox_ruleset_test_result.rb +1 -0
  46. data/lib/mailslurp_client/models/inline_object1.rb +270 -0
  47. data/lib/mailslurp_client/models/json_schema_dto.rb +1 -0
  48. data/lib/mailslurp_client/models/missed_email.rb +1 -0
  49. data/lib/mailslurp_client/models/missed_email_projection.rb +14 -13
  50. data/lib/mailslurp_client/models/organization_inbox_projection.rb +15 -4
  51. data/lib/mailslurp_client/models/page_alias.rb +19 -19
  52. data/lib/mailslurp_client/models/page_attachment_entity.rb +19 -19
  53. data/lib/mailslurp_client/models/page_bounced_email.rb +19 -19
  54. data/lib/mailslurp_client/models/page_bounced_recipients.rb +19 -19
  55. data/lib/mailslurp_client/models/page_contact_projection.rb +19 -19
  56. data/lib/mailslurp_client/models/page_email_preview.rb +19 -19
  57. data/lib/mailslurp_client/models/page_email_projection.rb +19 -19
  58. data/lib/mailslurp_client/models/page_email_validation_request.rb +19 -19
  59. data/lib/mailslurp_client/models/page_expired_inbox_record_projection.rb +19 -19
  60. data/lib/mailslurp_client/models/page_group_projection.rb +19 -19
  61. data/lib/mailslurp_client/models/page_inbox_forwarder_dto.rb +19 -19
  62. data/lib/mailslurp_client/models/page_inbox_projection.rb +19 -19
  63. data/lib/mailslurp_client/models/page_inbox_ruleset_dto.rb +19 -19
  64. data/lib/mailslurp_client/models/page_missed_email_projection.rb +19 -19
  65. data/lib/mailslurp_client/models/page_organization_inbox_projection.rb +19 -19
  66. data/lib/mailslurp_client/models/page_template_projection.rb +19 -19
  67. data/lib/mailslurp_client/models/page_thread_projection.rb +19 -19
  68. data/lib/mailslurp_client/models/page_tracking_pixel_projection.rb +19 -19
  69. data/lib/mailslurp_client/models/page_unknown_missed_email_projection.rb +19 -19
  70. data/lib/mailslurp_client/models/page_webhook_projection.rb +19 -19
  71. data/lib/mailslurp_client/models/page_webhook_result.rb +19 -19
  72. data/lib/mailslurp_client/models/recipient.rb +1 -0
  73. data/lib/mailslurp_client/models/reply_to_alias_email_options.rb +13 -4
  74. data/lib/mailslurp_client/models/reply_to_email_options.rb +13 -4
  75. data/lib/mailslurp_client/models/sent_email_dto.rb +22 -4
  76. data/lib/mailslurp_client/models/sent_email_projection.rb +27 -18
  77. data/lib/mailslurp_client/models/simple_send_email_options.rb +1 -0
  78. data/lib/mailslurp_client/models/template_dto.rb +1 -0
  79. data/lib/mailslurp_client/models/template_projection.rb +19 -18
  80. data/lib/mailslurp_client/models/template_variable.rb +1 -0
  81. data/lib/mailslurp_client/models/test_new_inbox_forwarder_options.rb +1 -0
  82. data/lib/mailslurp_client/models/test_new_inbox_ruleset_options.rb +1 -0
  83. data/lib/mailslurp_client/models/thread_projection.rb +21 -21
  84. data/lib/mailslurp_client/models/tracking_pixel_dto.rb +1 -0
  85. data/lib/mailslurp_client/models/tracking_pixel_projection.rb +25 -24
  86. data/lib/mailslurp_client/models/unknown_missed_email_projection.rb +14 -13
  87. data/lib/mailslurp_client/models/unread_count.rb +1 -0
  88. data/lib/mailslurp_client/models/unseen_error_count_dto.rb +1 -0
  89. data/lib/mailslurp_client/models/update_group_contacts.rb +1 -0
  90. data/lib/mailslurp_client/models/validate_email_address_list_options.rb +1 -0
  91. data/lib/mailslurp_client/models/validate_email_address_list_result.rb +1 -0
  92. data/lib/mailslurp_client/models/webhook_projection.rb +18 -18
  93. data/lib/mailslurp_client/models/webhook_redrive_result.rb +1 -0
  94. data/lib/mailslurp_client/models/webhook_result_dto.rb +1 -0
  95. data/lib/mailslurp_client/models/webhook_test_request.rb +1 -0
  96. data/lib/mailslurp_client/models/webhook_test_response.rb +1 -0
  97. data/lib/mailslurp_client/version.rb +1 -1
  98. data/lib/mailslurp_client.rb +1 -0
  99. metadata +3 -2
@@ -45,6 +45,8 @@ module MailSlurpClient
45
45
  # Optionally use inbox name as display name for sender email address
46
46
  attr_accessor :use_inbox_name
47
47
 
48
+ attr_accessor :html
49
+
48
50
  class EnumAttributeValidator
49
51
  attr_reader :datatype
50
52
  attr_reader :allowable_values
@@ -79,7 +81,8 @@ module MailSlurpClient
79
81
  :'template_variables' => :'templateVariables',
80
82
  :'template' => :'template',
81
83
  :'send_strategy' => :'sendStrategy',
82
- :'use_inbox_name' => :'useInboxName'
84
+ :'use_inbox_name' => :'useInboxName',
85
+ :'html' => :'html'
83
86
  }
84
87
  end
85
88
 
@@ -95,7 +98,8 @@ module MailSlurpClient
95
98
  :'template_variables' => :'Hash<String, Object>',
96
99
  :'template' => :'String',
97
100
  :'send_strategy' => :'String',
98
- :'use_inbox_name' => :'Boolean'
101
+ :'use_inbox_name' => :'Boolean',
102
+ :'html' => :'Boolean'
99
103
  }
100
104
  end
101
105
 
@@ -163,6 +167,10 @@ module MailSlurpClient
163
167
  if attributes.key?(:'use_inbox_name')
164
168
  self.use_inbox_name = attributes[:'use_inbox_name']
165
169
  end
170
+
171
+ if attributes.key?(:'html')
172
+ self.html = attributes[:'html']
173
+ end
166
174
  end
167
175
 
168
176
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -214,7 +222,8 @@ module MailSlurpClient
214
222
  template_variables == o.template_variables &&
215
223
  template == o.template &&
216
224
  send_strategy == o.send_strategy &&
217
- use_inbox_name == o.use_inbox_name
225
+ use_inbox_name == o.use_inbox_name &&
226
+ html == o.html
218
227
  end
219
228
 
220
229
  # @see the `==` method
@@ -226,7 +235,7 @@ module MailSlurpClient
226
235
  # Calculates hash code according to all attributes.
227
236
  # @return [Integer] Hash code
228
237
  def hash
229
- [body, is_html, from, reply_to, charset, attachments, template_variables, template, send_strategy, use_inbox_name].hash
238
+ [body, is_html, from, reply_to, charset, attachments, template_variables, template, send_strategy, use_inbox_name, html].hash
230
239
  end
231
240
 
232
241
  # Builds the object from hash
@@ -55,6 +55,10 @@ module MailSlurpClient
55
55
 
56
56
  attr_accessor :message_id
57
57
 
58
+ attr_accessor :virtual_send
59
+
60
+ attr_accessor :html
61
+
58
62
  # Attribute mapping from ruby-style variable name to JSON key.
59
63
  def self.attribute_map
60
64
  {
@@ -74,7 +78,9 @@ module MailSlurpClient
74
78
  :'is_html' => :'isHTML',
75
79
  :'sent_at' => :'sentAt',
76
80
  :'pixel_ids' => :'pixelIds',
77
- :'message_id' => :'messageId'
81
+ :'message_id' => :'messageId',
82
+ :'virtual_send' => :'virtualSend',
83
+ :'html' => :'html'
78
84
  }
79
85
  end
80
86
 
@@ -97,7 +103,9 @@ module MailSlurpClient
97
103
  :'is_html' => :'Boolean',
98
104
  :'sent_at' => :'DateTime',
99
105
  :'pixel_ids' => :'Array<String>',
100
- :'message_id' => :'String'
106
+ :'message_id' => :'String',
107
+ :'virtual_send' => :'Boolean',
108
+ :'html' => :'Boolean'
101
109
  }
102
110
  end
103
111
 
@@ -199,6 +207,14 @@ module MailSlurpClient
199
207
  if attributes.key?(:'message_id')
200
208
  self.message_id = attributes[:'message_id']
201
209
  end
210
+
211
+ if attributes.key?(:'virtual_send')
212
+ self.virtual_send = attributes[:'virtual_send']
213
+ end
214
+
215
+ if attributes.key?(:'html')
216
+ self.html = attributes[:'html']
217
+ end
202
218
  end
203
219
 
204
220
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -255,7 +271,9 @@ module MailSlurpClient
255
271
  is_html == o.is_html &&
256
272
  sent_at == o.sent_at &&
257
273
  pixel_ids == o.pixel_ids &&
258
- message_id == o.message_id
274
+ message_id == o.message_id &&
275
+ virtual_send == o.virtual_send &&
276
+ html == o.html
259
277
  end
260
278
 
261
279
  # @see the `==` method
@@ -267,7 +285,7 @@ module MailSlurpClient
267
285
  # Calculates hash code according to all attributes.
268
286
  # @return [Integer] Hash code
269
287
  def hash
270
- [id, user_id, inbox_id, to, from, reply_to, cc, bcc, attachments, subject, body_md5_hash, body, charset, is_html, sent_at, pixel_ids, message_id].hash
288
+ [id, user_id, inbox_id, to, from, reply_to, cc, bcc, attachments, subject, body_md5_hash, body, charset, is_html, sent_at, pixel_ids, message_id, virtual_send, html].hash
271
289
  end
272
290
 
273
291
  # Builds the object from hash
@@ -23,6 +23,8 @@ module MailSlurpClient
23
23
 
24
24
  attr_accessor :subject
25
25
 
26
+ attr_accessor :created_at
27
+
26
28
  attr_accessor :inbox_id
27
29
 
28
30
  attr_accessor :attachments
@@ -33,10 +35,10 @@ module MailSlurpClient
33
35
 
34
36
  attr_accessor :cc
35
37
 
36
- attr_accessor :created_at
37
-
38
38
  attr_accessor :body_md5_hash
39
39
 
40
+ attr_accessor :virtual_send
41
+
40
42
  # Attribute mapping from ruby-style variable name to JSON key.
41
43
  def self.attribute_map
42
44
  {
@@ -44,13 +46,14 @@ module MailSlurpClient
44
46
  :'from' => :'from',
45
47
  :'user_id' => :'userId',
46
48
  :'subject' => :'subject',
49
+ :'created_at' => :'createdAt',
47
50
  :'inbox_id' => :'inboxId',
48
51
  :'attachments' => :'attachments',
49
52
  :'to' => :'to',
50
53
  :'bcc' => :'bcc',
51
54
  :'cc' => :'cc',
52
- :'created_at' => :'createdAt',
53
- :'body_md5_hash' => :'bodyMD5Hash'
55
+ :'body_md5_hash' => :'bodyMD5Hash',
56
+ :'virtual_send' => :'virtualSend'
54
57
  }
55
58
  end
56
59
 
@@ -61,13 +64,14 @@ module MailSlurpClient
61
64
  :'from' => :'String',
62
65
  :'user_id' => :'String',
63
66
  :'subject' => :'String',
67
+ :'created_at' => :'DateTime',
64
68
  :'inbox_id' => :'String',
65
69
  :'attachments' => :'Array<String>',
66
70
  :'to' => :'Array<String>',
67
71
  :'bcc' => :'Array<String>',
68
72
  :'cc' => :'Array<String>',
69
- :'created_at' => :'DateTime',
70
- :'body_md5_hash' => :'String'
73
+ :'body_md5_hash' => :'String',
74
+ :'virtual_send' => :'Boolean'
71
75
  }
72
76
  end
73
77
 
@@ -108,6 +112,10 @@ module MailSlurpClient
108
112
  self.subject = attributes[:'subject']
109
113
  end
110
114
 
115
+ if attributes.key?(:'created_at')
116
+ self.created_at = attributes[:'created_at']
117
+ end
118
+
111
119
  if attributes.key?(:'inbox_id')
112
120
  self.inbox_id = attributes[:'inbox_id']
113
121
  end
@@ -136,13 +144,13 @@ module MailSlurpClient
136
144
  end
137
145
  end
138
146
 
139
- if attributes.key?(:'created_at')
140
- self.created_at = attributes[:'created_at']
141
- end
142
-
143
147
  if attributes.key?(:'body_md5_hash')
144
148
  self.body_md5_hash = attributes[:'body_md5_hash']
145
149
  end
150
+
151
+ if attributes.key?(:'virtual_send')
152
+ self.virtual_send = attributes[:'virtual_send']
153
+ end
146
154
  end
147
155
 
148
156
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -157,6 +165,10 @@ module MailSlurpClient
157
165
  invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
158
166
  end
159
167
 
168
+ if @created_at.nil?
169
+ invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
170
+ end
171
+
160
172
  if @inbox_id.nil?
161
173
  invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
162
174
  end
@@ -177,10 +189,6 @@ module MailSlurpClient
177
189
  invalid_properties.push('invalid value for "cc", cc cannot be nil.')
178
190
  end
179
191
 
180
- if @created_at.nil?
181
- invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
182
- end
183
-
184
192
  invalid_properties
185
193
  end
186
194
 
@@ -189,12 +197,12 @@ module MailSlurpClient
189
197
  def valid?
190
198
  return false if @id.nil?
191
199
  return false if @user_id.nil?
200
+ return false if @created_at.nil?
192
201
  return false if @inbox_id.nil?
193
202
  return false if @attachments.nil?
194
203
  return false if @to.nil?
195
204
  return false if @bcc.nil?
196
205
  return false if @cc.nil?
197
- return false if @created_at.nil?
198
206
  true
199
207
  end
200
208
 
@@ -207,13 +215,14 @@ module MailSlurpClient
207
215
  from == o.from &&
208
216
  user_id == o.user_id &&
209
217
  subject == o.subject &&
218
+ created_at == o.created_at &&
210
219
  inbox_id == o.inbox_id &&
211
220
  attachments == o.attachments &&
212
221
  to == o.to &&
213
222
  bcc == o.bcc &&
214
223
  cc == o.cc &&
215
- created_at == o.created_at &&
216
- body_md5_hash == o.body_md5_hash
224
+ body_md5_hash == o.body_md5_hash &&
225
+ virtual_send == o.virtual_send
217
226
  end
218
227
 
219
228
  # @see the `==` method
@@ -225,7 +234,7 @@ module MailSlurpClient
225
234
  # Calculates hash code according to all attributes.
226
235
  # @return [Integer] Hash code
227
236
  def hash
228
- [id, from, user_id, subject, inbox_id, attachments, to, bcc, cc, created_at, body_md5_hash].hash
237
+ [id, from, user_id, subject, created_at, inbox_id, attachments, to, bcc, cc, body_md5_hash, virtual_send].hash
229
238
  end
230
239
 
231
240
  # Builds the object from hash
@@ -13,6 +13,7 @@ OpenAPI Generator version: 4.3.1
13
13
  require 'date'
14
14
 
15
15
  module MailSlurpClient
16
+ # Simplified send email options
16
17
  class SimpleSendEmailOptions
17
18
  # ID of inbox to send from. If null an inbox will be created for sending
18
19
  attr_accessor :sender_id
@@ -13,6 +13,7 @@ OpenAPI Generator version: 4.3.1
13
13
  require 'date'
14
14
 
15
15
  module MailSlurpClient
16
+ # Email template
16
17
  class TemplateDto
17
18
  attr_accessor :id
18
19
 
@@ -13,25 +13,26 @@ OpenAPI Generator version: 4.3.1
13
13
  require 'date'
14
14
 
15
15
  module MailSlurpClient
16
+ # Email template data
16
17
  class TemplateProjection
17
18
  attr_accessor :name
18
19
 
19
20
  attr_accessor :id
20
21
 
21
- attr_accessor :updated_at
22
-
23
22
  attr_accessor :created_at
24
23
 
25
24
  attr_accessor :variables
26
25
 
26
+ attr_accessor :updated_at
27
+
27
28
  # Attribute mapping from ruby-style variable name to JSON key.
28
29
  def self.attribute_map
29
30
  {
30
31
  :'name' => :'name',
31
32
  :'id' => :'id',
32
- :'updated_at' => :'updatedAt',
33
33
  :'created_at' => :'createdAt',
34
- :'variables' => :'variables'
34
+ :'variables' => :'variables',
35
+ :'updated_at' => :'updatedAt'
35
36
  }
36
37
  end
37
38
 
@@ -40,9 +41,9 @@ module MailSlurpClient
40
41
  {
41
42
  :'name' => :'String',
42
43
  :'id' => :'String',
43
- :'updated_at' => :'DateTime',
44
44
  :'created_at' => :'DateTime',
45
- :'variables' => :'Array<String>'
45
+ :'variables' => :'Array<String>',
46
+ :'updated_at' => :'DateTime'
46
47
  }
47
48
  end
48
49
 
@@ -75,10 +76,6 @@ module MailSlurpClient
75
76
  self.id = attributes[:'id']
76
77
  end
77
78
 
78
- if attributes.key?(:'updated_at')
79
- self.updated_at = attributes[:'updated_at']
80
- end
81
-
82
79
  if attributes.key?(:'created_at')
83
80
  self.created_at = attributes[:'created_at']
84
81
  end
@@ -88,6 +85,10 @@ module MailSlurpClient
88
85
  self.variables = value
89
86
  end
90
87
  end
88
+
89
+ if attributes.key?(:'updated_at')
90
+ self.updated_at = attributes[:'updated_at']
91
+ end
91
92
  end
92
93
 
93
94
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -102,10 +103,6 @@ module MailSlurpClient
102
103
  invalid_properties.push('invalid value for "id", id cannot be nil.')
103
104
  end
104
105
 
105
- if @updated_at.nil?
106
- invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
107
- end
108
-
109
106
  if @created_at.nil?
110
107
  invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
111
108
  end
@@ -114,6 +111,10 @@ module MailSlurpClient
114
111
  invalid_properties.push('invalid value for "variables", variables cannot be nil.')
115
112
  end
116
113
 
114
+ if @updated_at.nil?
115
+ invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
116
+ end
117
+
117
118
  invalid_properties
118
119
  end
119
120
 
@@ -122,9 +123,9 @@ module MailSlurpClient
122
123
  def valid?
123
124
  return false if @name.nil?
124
125
  return false if @id.nil?
125
- return false if @updated_at.nil?
126
126
  return false if @created_at.nil?
127
127
  return false if @variables.nil?
128
+ return false if @updated_at.nil?
128
129
  true
129
130
  end
130
131
 
@@ -135,9 +136,9 @@ module MailSlurpClient
135
136
  self.class == o.class &&
136
137
  name == o.name &&
137
138
  id == o.id &&
138
- updated_at == o.updated_at &&
139
139
  created_at == o.created_at &&
140
- variables == o.variables
140
+ variables == o.variables &&
141
+ updated_at == o.updated_at
141
142
  end
142
143
 
143
144
  # @see the `==` method
@@ -149,7 +150,7 @@ module MailSlurpClient
149
150
  # Calculates hash code according to all attributes.
150
151
  # @return [Integer] Hash code
151
152
  def hash
152
- [name, id, updated_at, created_at, variables].hash
153
+ [name, id, created_at, variables, updated_at].hash
153
154
  end
154
155
 
155
156
  # Builds the object from hash
@@ -13,6 +13,7 @@ OpenAPI Generator version: 4.3.1
13
13
  require 'date'
14
14
 
15
15
  module MailSlurpClient
16
+ # Variable for use with email template
16
17
  class TemplateVariable
17
18
  attr_accessor :name
18
19
 
@@ -13,6 +13,7 @@ OpenAPI Generator version: 4.3.1
13
13
  require 'date'
14
14
 
15
15
  module MailSlurpClient
16
+ # Options for testing new inbox forwarder rules
16
17
  class TestNewInboxForwarderOptions
17
18
  attr_accessor :inbox_forwarder_test_options
18
19
 
@@ -13,6 +13,7 @@ OpenAPI Generator version: 4.3.1
13
13
  require 'date'
14
14
 
15
15
  module MailSlurpClient
16
+ # Test inbox ruleset options
16
17
  class TestNewInboxRulesetOptions
17
18
  attr_accessor :inbox_ruleset_test_options
18
19
 
@@ -21,19 +21,19 @@ module MailSlurpClient
21
21
 
22
22
  attr_accessor :subject
23
23
 
24
+ attr_accessor :created_at
25
+
24
26
  attr_accessor :user_id
25
27
 
26
28
  attr_accessor :inbox_id
27
29
 
28
30
  attr_accessor :to
29
31
 
30
- attr_accessor :updated_at
31
-
32
32
  attr_accessor :bcc
33
33
 
34
34
  attr_accessor :cc
35
35
 
36
- attr_accessor :created_at
36
+ attr_accessor :updated_at
37
37
 
38
38
  attr_accessor :alias_id
39
39
 
@@ -43,13 +43,13 @@ module MailSlurpClient
43
43
  :'name' => :'name',
44
44
  :'id' => :'id',
45
45
  :'subject' => :'subject',
46
+ :'created_at' => :'createdAt',
46
47
  :'user_id' => :'userId',
47
48
  :'inbox_id' => :'inboxId',
48
49
  :'to' => :'to',
49
- :'updated_at' => :'updatedAt',
50
50
  :'bcc' => :'bcc',
51
51
  :'cc' => :'cc',
52
- :'created_at' => :'createdAt',
52
+ :'updated_at' => :'updatedAt',
53
53
  :'alias_id' => :'aliasId'
54
54
  }
55
55
  end
@@ -60,13 +60,13 @@ module MailSlurpClient
60
60
  :'name' => :'String',
61
61
  :'id' => :'String',
62
62
  :'subject' => :'String',
63
+ :'created_at' => :'DateTime',
63
64
  :'user_id' => :'String',
64
65
  :'inbox_id' => :'String',
65
66
  :'to' => :'Array<String>',
66
- :'updated_at' => :'DateTime',
67
67
  :'bcc' => :'Array<String>',
68
68
  :'cc' => :'Array<String>',
69
- :'created_at' => :'DateTime',
69
+ :'updated_at' => :'DateTime',
70
70
  :'alias_id' => :'String'
71
71
  }
72
72
  end
@@ -104,6 +104,10 @@ module MailSlurpClient
104
104
  self.subject = attributes[:'subject']
105
105
  end
106
106
 
107
+ if attributes.key?(:'created_at')
108
+ self.created_at = attributes[:'created_at']
109
+ end
110
+
107
111
  if attributes.key?(:'user_id')
108
112
  self.user_id = attributes[:'user_id']
109
113
  end
@@ -118,10 +122,6 @@ module MailSlurpClient
118
122
  end
119
123
  end
120
124
 
121
- if attributes.key?(:'updated_at')
122
- self.updated_at = attributes[:'updated_at']
123
- end
124
-
125
125
  if attributes.key?(:'bcc')
126
126
  if (value = attributes[:'bcc']).is_a?(Array)
127
127
  self.bcc = value
@@ -134,8 +134,8 @@ module MailSlurpClient
134
134
  end
135
135
  end
136
136
 
137
- if attributes.key?(:'created_at')
138
- self.created_at = attributes[:'created_at']
137
+ if attributes.key?(:'updated_at')
138
+ self.updated_at = attributes[:'updated_at']
139
139
  end
140
140
 
141
141
  if attributes.key?(:'alias_id')
@@ -151,6 +151,10 @@ module MailSlurpClient
151
151
  invalid_properties.push('invalid value for "id", id cannot be nil.')
152
152
  end
153
153
 
154
+ if @created_at.nil?
155
+ invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
156
+ end
157
+
154
158
  if @user_id.nil?
155
159
  invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
156
160
  end
@@ -167,10 +171,6 @@ module MailSlurpClient
167
171
  invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
168
172
  end
169
173
 
170
- if @created_at.nil?
171
- invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
172
- end
173
-
174
174
  if @alias_id.nil?
175
175
  invalid_properties.push('invalid value for "alias_id", alias_id cannot be nil.')
176
176
  end
@@ -182,11 +182,11 @@ module MailSlurpClient
182
182
  # @return true if the model is valid
183
183
  def valid?
184
184
  return false if @id.nil?
185
+ return false if @created_at.nil?
185
186
  return false if @user_id.nil?
186
187
  return false if @inbox_id.nil?
187
188
  return false if @to.nil?
188
189
  return false if @updated_at.nil?
189
- return false if @created_at.nil?
190
190
  return false if @alias_id.nil?
191
191
  true
192
192
  end
@@ -199,13 +199,13 @@ module MailSlurpClient
199
199
  name == o.name &&
200
200
  id == o.id &&
201
201
  subject == o.subject &&
202
+ created_at == o.created_at &&
202
203
  user_id == o.user_id &&
203
204
  inbox_id == o.inbox_id &&
204
205
  to == o.to &&
205
- updated_at == o.updated_at &&
206
206
  bcc == o.bcc &&
207
207
  cc == o.cc &&
208
- created_at == o.created_at &&
208
+ updated_at == o.updated_at &&
209
209
  alias_id == o.alias_id
210
210
  end
211
211
 
@@ -218,7 +218,7 @@ module MailSlurpClient
218
218
  # Calculates hash code according to all attributes.
219
219
  # @return [Integer] Hash code
220
220
  def hash
221
- [name, id, subject, user_id, inbox_id, to, updated_at, bcc, cc, created_at, alias_id].hash
221
+ [name, id, subject, created_at, user_id, inbox_id, to, bcc, cc, updated_at, alias_id].hash
222
222
  end
223
223
 
224
224
  # Builds the object from hash
@@ -13,6 +13,7 @@ OpenAPI Generator version: 4.3.1
13
13
  require 'date'
14
14
 
15
15
  module MailSlurpClient
16
+ # Tracking pixel
16
17
  class TrackingPixelDto
17
18
  attr_accessor :id
18
19