mailslurp_client 15.13.32 → 15.14.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (102) hide show
  1. checksums.yaml +4 -4
  2. data/lib/mailslurp_client/api/api_user_controller_api.rb +0 -4
  3. data/lib/mailslurp_client/api/missed_email_controller_api.rb +6 -6
  4. data/lib/mailslurp_client/models/alias_dto.rb +5 -0
  5. data/lib/mailslurp_client/models/alias_projection.rb +13 -13
  6. data/lib/mailslurp_client/models/attachment_entity.rb +0 -1
  7. data/lib/mailslurp_client/models/attachment_projection.rb +3 -0
  8. data/lib/mailslurp_client/models/bounce_projection.rb +3 -0
  9. data/lib/mailslurp_client/models/bounce_recipient_projection.rb +3 -0
  10. data/lib/mailslurp_client/models/bounced_email_dto.rb +12 -0
  11. data/lib/mailslurp_client/models/bounced_recipient_dto.rb +10 -0
  12. data/lib/mailslurp_client/models/contact_dto.rb +7 -0
  13. data/lib/mailslurp_client/models/contact_projection.rb +29 -24
  14. data/lib/mailslurp_client/models/create_alias_options.rb +2 -0
  15. data/lib/mailslurp_client/models/create_contact_options.rb +1 -0
  16. data/lib/mailslurp_client/models/create_group_options.rb +1 -0
  17. data/lib/mailslurp_client/models/create_inbox_dto.rb +1 -0
  18. data/lib/mailslurp_client/models/create_tracking_pixel_options.rb +2 -0
  19. data/lib/mailslurp_client/models/create_webhook_options.rb +2 -0
  20. data/lib/mailslurp_client/models/describe_mail_server_domain_result.rb +1 -0
  21. data/lib/mailslurp_client/models/domain_dto.rb +1 -0
  22. data/lib/mailslurp_client/models/domain_preview.rb +1 -0
  23. data/lib/mailslurp_client/models/email.rb +1 -0
  24. data/lib/mailslurp_client/models/email_preview.rb +1 -0
  25. data/lib/mailslurp_client/models/email_projection.rb +35 -27
  26. data/lib/mailslurp_client/models/{email_validation_request.rb → email_validation_request_dto.rb} +8 -3
  27. data/lib/mailslurp_client/models/email_verification_result.rb +1 -0
  28. data/lib/mailslurp_client/models/expiration_defaults.rb +3 -0
  29. data/lib/mailslurp_client/models/export_options.rb +5 -0
  30. data/lib/mailslurp_client/models/forward_email_options.rb +5 -0
  31. data/lib/mailslurp_client/models/group_dto.rb +1 -0
  32. data/lib/mailslurp_client/models/group_projection.rb +1 -0
  33. data/lib/mailslurp_client/models/inbox_by_email_address_result.rb +1 -0
  34. data/lib/mailslurp_client/models/inbox_by_name_result.rb +1 -0
  35. data/lib/mailslurp_client/models/match_options.rb +2 -0
  36. data/lib/mailslurp_client/models/{missed_email.rb → missed_email_dto.rb} +16 -3
  37. data/lib/mailslurp_client/models/missed_email_projection.rb +3 -0
  38. data/lib/mailslurp_client/models/organization_inbox_projection.rb +1 -0
  39. data/lib/mailslurp_client/models/page_alias.rb +10 -10
  40. data/lib/mailslurp_client/models/page_attachment_entity.rb +10 -10
  41. data/lib/mailslurp_client/models/page_bounced_email.rb +10 -10
  42. data/lib/mailslurp_client/models/page_bounced_recipients.rb +10 -10
  43. data/lib/mailslurp_client/models/page_complaint.rb +10 -10
  44. data/lib/mailslurp_client/models/page_contact_projection.rb +10 -10
  45. data/lib/mailslurp_client/models/page_delivery_status.rb +10 -10
  46. data/lib/mailslurp_client/models/page_email_preview.rb +10 -10
  47. data/lib/mailslurp_client/models/page_email_projection.rb +10 -10
  48. data/lib/mailslurp_client/models/page_email_validation_request.rb +11 -11
  49. data/lib/mailslurp_client/models/page_expired_inbox_record_projection.rb +10 -10
  50. data/lib/mailslurp_client/models/page_group_projection.rb +10 -10
  51. data/lib/mailslurp_client/models/page_inbox_forwarder_dto.rb +10 -10
  52. data/lib/mailslurp_client/models/page_inbox_projection.rb +10 -10
  53. data/lib/mailslurp_client/models/page_inbox_ruleset_dto.rb +10 -10
  54. data/lib/mailslurp_client/models/page_missed_email_projection.rb +10 -10
  55. data/lib/mailslurp_client/models/page_organization_inbox_projection.rb +10 -10
  56. data/lib/mailslurp_client/models/page_phone_number_projection.rb +10 -10
  57. data/lib/mailslurp_client/models/page_scheduled_jobs.rb +10 -10
  58. data/lib/mailslurp_client/models/page_sent_email_projection.rb +16 -16
  59. data/lib/mailslurp_client/models/page_sent_email_with_queue_projection.rb +16 -16
  60. data/lib/mailslurp_client/models/page_sms_projection.rb +10 -10
  61. data/lib/mailslurp_client/models/page_template_projection.rb +10 -10
  62. data/lib/mailslurp_client/models/page_thread_projection.rb +10 -10
  63. data/lib/mailslurp_client/models/page_tracking_pixel_projection.rb +10 -10
  64. data/lib/mailslurp_client/models/page_unknown_missed_email_projection.rb +10 -10
  65. data/lib/mailslurp_client/models/page_webhook_projection.rb +10 -10
  66. data/lib/mailslurp_client/models/page_webhook_result.rb +10 -10
  67. data/lib/mailslurp_client/models/phone_number_projection.rb +19 -19
  68. data/lib/mailslurp_client/models/recipient.rb +1 -0
  69. data/lib/mailslurp_client/models/reply_to_alias_email_options.rb +6 -0
  70. data/lib/mailslurp_client/models/reply_to_email_options.rb +8 -0
  71. data/lib/mailslurp_client/models/send_email_options.rb +20 -0
  72. data/lib/mailslurp_client/models/sent_email_dto.rb +22 -0
  73. data/lib/mailslurp_client/models/sent_email_projection.rb +24 -24
  74. data/lib/mailslurp_client/models/simple_send_email_options.rb +3 -0
  75. data/lib/mailslurp_client/models/sms_projection.rb +15 -15
  76. data/lib/mailslurp_client/models/sort.rb +13 -13
  77. data/lib/mailslurp_client/models/template_projection.rb +20 -20
  78. data/lib/mailslurp_client/models/thread_projection.rb +26 -26
  79. data/lib/mailslurp_client/models/tracking_pixel_dto.rb +4 -0
  80. data/lib/mailslurp_client/models/unknown_missed_email_projection.rb +13 -13
  81. data/lib/mailslurp_client/models/update_alias_options.rb +1 -0
  82. data/lib/mailslurp_client/models/update_domain_options.rb +1 -0
  83. data/lib/mailslurp_client/models/verify_email_address_options.rb +3 -0
  84. data/lib/mailslurp_client/models/wait_for_conditions.rb +8 -0
  85. data/lib/mailslurp_client/models/wait_for_sms_conditions.rb +8 -0
  86. data/lib/mailslurp_client/models/webhook_bounce_payload.rb +3 -0
  87. data/lib/mailslurp_client/models/webhook_bounce_recipient_payload.rb +1 -0
  88. data/lib/mailslurp_client/models/webhook_delivery_status_payload.rb +1 -0
  89. data/lib/mailslurp_client/models/webhook_email_opened_payload.rb +1 -0
  90. data/lib/mailslurp_client/models/webhook_email_read_payload.rb +1 -0
  91. data/lib/mailslurp_client/models/webhook_new_attachment_payload.rb +1 -0
  92. data/lib/mailslurp_client/models/webhook_new_contact_payload.rb +2 -0
  93. data/lib/mailslurp_client/models/webhook_new_email_payload.rb +3 -0
  94. data/lib/mailslurp_client/models/webhook_projection.rb +13 -13
  95. data/lib/mailslurp_client/models/webhook_redrive_result.rb +1 -0
  96. data/lib/mailslurp_client/models/webhook_result_dto.rb +6 -0
  97. data/lib/mailslurp_client/models/webhook_test_request.rb +1 -0
  98. data/lib/mailslurp_client/models/webhook_test_response.rb +2 -0
  99. data/lib/mailslurp_client/models/webhook_test_result.rb +1 -0
  100. data/lib/mailslurp_client/version.rb +1 -1
  101. data/lib/mailslurp_client.rb +2 -2
  102. metadata +4 -4
@@ -30,6 +30,7 @@ module MailSlurpClient
30
30
  # Recipients email was sent to
31
31
  attr_accessor :to
32
32
 
33
+ # Sent from address
33
34
  attr_accessor :from
34
35
 
35
36
  attr_accessor :reply_to
@@ -46,6 +47,7 @@ module MailSlurpClient
46
47
  # MD5 Hash
47
48
  attr_accessor :body_md5_hash
48
49
 
50
+ # Sent email body
49
51
  attr_accessor :body
50
52
 
51
53
  attr_accessor :to_contacts
@@ -137,6 +139,26 @@ module MailSlurpClient
137
139
  # List of attributes with nullable: true
138
140
  def self.openapi_nullable
139
141
  Set.new([
142
+ :'domain_id',
143
+ :'to',
144
+ :'from',
145
+ :'reply_to',
146
+ :'cc',
147
+ :'bcc',
148
+ :'attachments',
149
+ :'subject',
150
+ :'body_md5_hash',
151
+ :'body',
152
+ :'to_contacts',
153
+ :'to_group',
154
+ :'charset',
155
+ :'is_html',
156
+ :'pixel_ids',
157
+ :'message_id',
158
+ :'message_ids',
159
+ :'virtual_send',
160
+ :'template_id',
161
+ :'template_variables',
140
162
  ])
141
163
  end
142
164
 
@@ -23,18 +23,18 @@ module MailSlurpClient
23
23
 
24
24
  attr_accessor :subject
25
25
 
26
- attr_accessor :inbox_id
26
+ attr_accessor :created_at
27
27
 
28
28
  attr_accessor :attachments
29
29
 
30
+ attr_accessor :inbox_id
31
+
30
32
  attr_accessor :to
31
33
 
32
34
  attr_accessor :bcc
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
40
  attr_accessor :virtual_send
@@ -46,12 +46,12 @@ module MailSlurpClient
46
46
  :'from' => :'from',
47
47
  :'user_id' => :'userId',
48
48
  :'subject' => :'subject',
49
- :'inbox_id' => :'inboxId',
49
+ :'created_at' => :'createdAt',
50
50
  :'attachments' => :'attachments',
51
+ :'inbox_id' => :'inboxId',
51
52
  :'to' => :'to',
52
53
  :'bcc' => :'bcc',
53
54
  :'cc' => :'cc',
54
- :'created_at' => :'createdAt',
55
55
  :'body_md5_hash' => :'bodyMD5Hash',
56
56
  :'virtual_send' => :'virtualSend'
57
57
  }
@@ -64,12 +64,12 @@ module MailSlurpClient
64
64
  :'from' => :'String',
65
65
  :'user_id' => :'String',
66
66
  :'subject' => :'String',
67
- :'inbox_id' => :'String',
67
+ :'created_at' => :'DateTime',
68
68
  :'attachments' => :'Array<String>',
69
+ :'inbox_id' => :'String',
69
70
  :'to' => :'Array<String>',
70
71
  :'bcc' => :'Array<String>',
71
72
  :'cc' => :'Array<String>',
72
- :'created_at' => :'DateTime',
73
73
  :'body_md5_hash' => :'String',
74
74
  :'virtual_send' => :'Boolean'
75
75
  }
@@ -112,8 +112,8 @@ module MailSlurpClient
112
112
  self.subject = attributes[:'subject']
113
113
  end
114
114
 
115
- if attributes.key?(:'inbox_id')
116
- self.inbox_id = attributes[:'inbox_id']
115
+ if attributes.key?(:'created_at')
116
+ self.created_at = attributes[:'created_at']
117
117
  end
118
118
 
119
119
  if attributes.key?(:'attachments')
@@ -122,6 +122,10 @@ module MailSlurpClient
122
122
  end
123
123
  end
124
124
 
125
+ if attributes.key?(:'inbox_id')
126
+ self.inbox_id = attributes[:'inbox_id']
127
+ end
128
+
125
129
  if attributes.key?(:'to')
126
130
  if (value = attributes[:'to']).is_a?(Array)
127
131
  self.to = value
@@ -140,10 +144,6 @@ module MailSlurpClient
140
144
  end
141
145
  end
142
146
 
143
- if attributes.key?(:'created_at')
144
- self.created_at = attributes[:'created_at']
145
- end
146
-
147
147
  if attributes.key?(:'body_md5_hash')
148
148
  self.body_md5_hash = attributes[:'body_md5_hash']
149
149
  end
@@ -165,14 +165,18 @@ module MailSlurpClient
165
165
  invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
166
166
  end
167
167
 
168
- if @inbox_id.nil?
169
- invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
168
+ if @created_at.nil?
169
+ invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
170
170
  end
171
171
 
172
172
  if @attachments.nil?
173
173
  invalid_properties.push('invalid value for "attachments", attachments cannot be nil.')
174
174
  end
175
175
 
176
+ if @inbox_id.nil?
177
+ invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
178
+ end
179
+
176
180
  if @to.nil?
177
181
  invalid_properties.push('invalid value for "to", to cannot be nil.')
178
182
  end
@@ -185,10 +189,6 @@ module MailSlurpClient
185
189
  invalid_properties.push('invalid value for "cc", cc cannot be nil.')
186
190
  end
187
191
 
188
- if @created_at.nil?
189
- invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
190
- end
191
-
192
192
  if @virtual_send.nil?
193
193
  invalid_properties.push('invalid value for "virtual_send", virtual_send cannot be nil.')
194
194
  end
@@ -201,12 +201,12 @@ module MailSlurpClient
201
201
  def valid?
202
202
  return false if @id.nil?
203
203
  return false if @user_id.nil?
204
- return false if @inbox_id.nil?
204
+ return false if @created_at.nil?
205
205
  return false if @attachments.nil?
206
+ return false if @inbox_id.nil?
206
207
  return false if @to.nil?
207
208
  return false if @bcc.nil?
208
209
  return false if @cc.nil?
209
- return false if @created_at.nil?
210
210
  return false if @virtual_send.nil?
211
211
  true
212
212
  end
@@ -220,12 +220,12 @@ module MailSlurpClient
220
220
  from == o.from &&
221
221
  user_id == o.user_id &&
222
222
  subject == o.subject &&
223
- inbox_id == o.inbox_id &&
223
+ created_at == o.created_at &&
224
224
  attachments == o.attachments &&
225
+ inbox_id == o.inbox_id &&
225
226
  to == o.to &&
226
227
  bcc == o.bcc &&
227
228
  cc == o.cc &&
228
- created_at == o.created_at &&
229
229
  body_md5_hash == o.body_md5_hash &&
230
230
  virtual_send == o.virtual_send
231
231
  end
@@ -239,7 +239,7 @@ module MailSlurpClient
239
239
  # Calculates hash code according to all attributes.
240
240
  # @return [Integer] Hash code
241
241
  def hash
242
- [id, from, user_id, subject, inbox_id, attachments, to, bcc, cc, created_at, body_md5_hash, virtual_send].hash
242
+ [id, from, user_id, subject, created_at, attachments, inbox_id, to, bcc, cc, body_md5_hash, virtual_send].hash
243
243
  end
244
244
 
245
245
  # Builds the object from hash
@@ -50,6 +50,9 @@ module MailSlurpClient
50
50
  # List of attributes with nullable: true
51
51
  def self.openapi_nullable
52
52
  Set.new([
53
+ :'sender_id',
54
+ :'body',
55
+ :'subject'
53
56
  ])
54
57
  end
55
58
 
@@ -21,10 +21,10 @@ module MailSlurpClient
21
21
 
22
22
  attr_accessor :user_id
23
23
 
24
- attr_accessor :phone_number
25
-
26
24
  attr_accessor :created_at
27
25
 
26
+ attr_accessor :phone_number
27
+
28
28
  attr_accessor :from_number
29
29
 
30
30
  attr_accessor :read
@@ -35,8 +35,8 @@ module MailSlurpClient
35
35
  :'id' => :'id',
36
36
  :'body' => :'body',
37
37
  :'user_id' => :'userId',
38
- :'phone_number' => :'phoneNumber',
39
38
  :'created_at' => :'createdAt',
39
+ :'phone_number' => :'phoneNumber',
40
40
  :'from_number' => :'fromNumber',
41
41
  :'read' => :'read'
42
42
  }
@@ -48,8 +48,8 @@ module MailSlurpClient
48
48
  :'id' => :'String',
49
49
  :'body' => :'String',
50
50
  :'user_id' => :'String',
51
- :'phone_number' => :'String',
52
51
  :'created_at' => :'DateTime',
52
+ :'phone_number' => :'String',
53
53
  :'from_number' => :'String',
54
54
  :'read' => :'Boolean'
55
55
  }
@@ -88,14 +88,14 @@ module MailSlurpClient
88
88
  self.user_id = attributes[:'user_id']
89
89
  end
90
90
 
91
- if attributes.key?(:'phone_number')
92
- self.phone_number = attributes[:'phone_number']
93
- end
94
-
95
91
  if attributes.key?(:'created_at')
96
92
  self.created_at = attributes[:'created_at']
97
93
  end
98
94
 
95
+ if attributes.key?(:'phone_number')
96
+ self.phone_number = attributes[:'phone_number']
97
+ end
98
+
99
99
  if attributes.key?(:'from_number')
100
100
  self.from_number = attributes[:'from_number']
101
101
  end
@@ -121,14 +121,14 @@ module MailSlurpClient
121
121
  invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
122
122
  end
123
123
 
124
- if @phone_number.nil?
125
- invalid_properties.push('invalid value for "phone_number", phone_number cannot be nil.')
126
- end
127
-
128
124
  if @created_at.nil?
129
125
  invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
130
126
  end
131
127
 
128
+ if @phone_number.nil?
129
+ invalid_properties.push('invalid value for "phone_number", phone_number cannot be nil.')
130
+ end
131
+
132
132
  if @from_number.nil?
133
133
  invalid_properties.push('invalid value for "from_number", from_number cannot be nil.')
134
134
  end
@@ -146,8 +146,8 @@ module MailSlurpClient
146
146
  return false if @id.nil?
147
147
  return false if @body.nil?
148
148
  return false if @user_id.nil?
149
- return false if @phone_number.nil?
150
149
  return false if @created_at.nil?
150
+ return false if @phone_number.nil?
151
151
  return false if @from_number.nil?
152
152
  return false if @read.nil?
153
153
  true
@@ -161,8 +161,8 @@ module MailSlurpClient
161
161
  id == o.id &&
162
162
  body == o.body &&
163
163
  user_id == o.user_id &&
164
- phone_number == o.phone_number &&
165
164
  created_at == o.created_at &&
165
+ phone_number == o.phone_number &&
166
166
  from_number == o.from_number &&
167
167
  read == o.read
168
168
  end
@@ -176,7 +176,7 @@ module MailSlurpClient
176
176
  # Calculates hash code according to all attributes.
177
177
  # @return [Integer] Hash code
178
178
  def hash
179
- [id, body, user_id, phone_number, created_at, from_number, read].hash
179
+ [id, body, user_id, created_at, phone_number, from_number, read].hash
180
180
  end
181
181
 
182
182
  # Builds the object from hash
@@ -16,16 +16,16 @@ module MailSlurpClient
16
16
  class Sort
17
17
  attr_accessor :empty
18
18
 
19
- attr_accessor :sorted
20
-
21
19
  attr_accessor :unsorted
22
20
 
21
+ attr_accessor :sorted
22
+
23
23
  # Attribute mapping from ruby-style variable name to JSON key.
24
24
  def self.attribute_map
25
25
  {
26
26
  :'empty' => :'empty',
27
- :'sorted' => :'sorted',
28
- :'unsorted' => :'unsorted'
27
+ :'unsorted' => :'unsorted',
28
+ :'sorted' => :'sorted'
29
29
  }
30
30
  end
31
31
 
@@ -33,8 +33,8 @@ module MailSlurpClient
33
33
  def self.openapi_types
34
34
  {
35
35
  :'empty' => :'Boolean',
36
- :'sorted' => :'Boolean',
37
- :'unsorted' => :'Boolean'
36
+ :'unsorted' => :'Boolean',
37
+ :'sorted' => :'Boolean'
38
38
  }
39
39
  end
40
40
 
@@ -63,13 +63,13 @@ module MailSlurpClient
63
63
  self.empty = attributes[:'empty']
64
64
  end
65
65
 
66
- if attributes.key?(:'sorted')
67
- self.sorted = attributes[:'sorted']
68
- end
69
-
70
66
  if attributes.key?(:'unsorted')
71
67
  self.unsorted = attributes[:'unsorted']
72
68
  end
69
+
70
+ if attributes.key?(:'sorted')
71
+ self.sorted = attributes[:'sorted']
72
+ end
73
73
  end
74
74
 
75
75
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -91,8 +91,8 @@ module MailSlurpClient
91
91
  return true if self.equal?(o)
92
92
  self.class == o.class &&
93
93
  empty == o.empty &&
94
- sorted == o.sorted &&
95
- unsorted == o.unsorted
94
+ unsorted == o.unsorted &&
95
+ sorted == o.sorted
96
96
  end
97
97
 
98
98
  # @see the `==` method
@@ -104,7 +104,7 @@ module MailSlurpClient
104
104
  # Calculates hash code according to all attributes.
105
105
  # @return [Integer] Hash code
106
106
  def hash
107
- [empty, sorted, unsorted].hash
107
+ [empty, unsorted, sorted].hash
108
108
  end
109
109
 
110
110
  # Builds the object from hash
@@ -19,20 +19,20 @@ module MailSlurpClient
19
19
 
20
20
  attr_accessor :id
21
21
 
22
- attr_accessor :variables
23
-
24
22
  attr_accessor :created_at
25
23
 
26
24
  attr_accessor :updated_at
27
25
 
26
+ attr_accessor :variables
27
+
28
28
  # Attribute mapping from ruby-style variable name to JSON key.
29
29
  def self.attribute_map
30
30
  {
31
31
  :'name' => :'name',
32
32
  :'id' => :'id',
33
- :'variables' => :'variables',
34
33
  :'created_at' => :'createdAt',
35
- :'updated_at' => :'updatedAt'
34
+ :'updated_at' => :'updatedAt',
35
+ :'variables' => :'variables'
36
36
  }
37
37
  end
38
38
 
@@ -41,9 +41,9 @@ module MailSlurpClient
41
41
  {
42
42
  :'name' => :'String',
43
43
  :'id' => :'String',
44
- :'variables' => :'Array<String>',
45
44
  :'created_at' => :'DateTime',
46
- :'updated_at' => :'DateTime'
45
+ :'updated_at' => :'DateTime',
46
+ :'variables' => :'Array<String>'
47
47
  }
48
48
  end
49
49
 
@@ -76,12 +76,6 @@ module MailSlurpClient
76
76
  self.id = attributes[:'id']
77
77
  end
78
78
 
79
- if attributes.key?(:'variables')
80
- if (value = attributes[:'variables']).is_a?(Array)
81
- self.variables = value
82
- end
83
- end
84
-
85
79
  if attributes.key?(:'created_at')
86
80
  self.created_at = attributes[:'created_at']
87
81
  end
@@ -89,6 +83,12 @@ module MailSlurpClient
89
83
  if attributes.key?(:'updated_at')
90
84
  self.updated_at = attributes[:'updated_at']
91
85
  end
86
+
87
+ if attributes.key?(:'variables')
88
+ if (value = attributes[:'variables']).is_a?(Array)
89
+ self.variables = value
90
+ end
91
+ end
92
92
  end
93
93
 
94
94
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -103,10 +103,6 @@ module MailSlurpClient
103
103
  invalid_properties.push('invalid value for "id", id cannot be nil.')
104
104
  end
105
105
 
106
- if @variables.nil?
107
- invalid_properties.push('invalid value for "variables", variables cannot be nil.')
108
- end
109
-
110
106
  if @created_at.nil?
111
107
  invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
112
108
  end
@@ -115,6 +111,10 @@ module MailSlurpClient
115
111
  invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
116
112
  end
117
113
 
114
+ if @variables.nil?
115
+ invalid_properties.push('invalid value for "variables", variables cannot be nil.')
116
+ end
117
+
118
118
  invalid_properties
119
119
  end
120
120
 
@@ -123,9 +123,9 @@ module MailSlurpClient
123
123
  def valid?
124
124
  return false if @name.nil?
125
125
  return false if @id.nil?
126
- return false if @variables.nil?
127
126
  return false if @created_at.nil?
128
127
  return false if @updated_at.nil?
128
+ return false if @variables.nil?
129
129
  true
130
130
  end
131
131
 
@@ -136,9 +136,9 @@ module MailSlurpClient
136
136
  self.class == o.class &&
137
137
  name == o.name &&
138
138
  id == o.id &&
139
- variables == o.variables &&
140
139
  created_at == o.created_at &&
141
- updated_at == o.updated_at
140
+ updated_at == o.updated_at &&
141
+ variables == o.variables
142
142
  end
143
143
 
144
144
  # @see the `==` method
@@ -150,7 +150,7 @@ module MailSlurpClient
150
150
  # Calculates hash code according to all attributes.
151
151
  # @return [Integer] Hash code
152
152
  def hash
153
- [name, id, variables, created_at, updated_at].hash
153
+ [name, id, created_at, updated_at, variables].hash
154
154
  end
155
155
 
156
156
  # Builds the object from hash
@@ -30,6 +30,12 @@ module MailSlurpClient
30
30
  # User ID
31
31
  attr_accessor :user_id
32
32
 
33
+ # Created at DateTime
34
+ attr_accessor :created_at
35
+
36
+ # Updated at DateTime
37
+ attr_accessor :updated_at
38
+
33
39
  # To recipients
34
40
  attr_accessor :to
35
41
 
@@ -39,12 +45,6 @@ module MailSlurpClient
39
45
  # CC recipients
40
46
  attr_accessor :cc
41
47
 
42
- # Created at DateTime
43
- attr_accessor :created_at
44
-
45
- # Updated at DateTime
46
- attr_accessor :updated_at
47
-
48
48
  # Alias ID
49
49
  attr_accessor :alias_id
50
50
 
@@ -56,11 +56,11 @@ module MailSlurpClient
56
56
  :'subject' => :'subject',
57
57
  :'inbox_id' => :'inboxId',
58
58
  :'user_id' => :'userId',
59
+ :'created_at' => :'createdAt',
60
+ :'updated_at' => :'updatedAt',
59
61
  :'to' => :'to',
60
62
  :'bcc' => :'bcc',
61
63
  :'cc' => :'cc',
62
- :'created_at' => :'createdAt',
63
- :'updated_at' => :'updatedAt',
64
64
  :'alias_id' => :'aliasId'
65
65
  }
66
66
  end
@@ -73,11 +73,11 @@ module MailSlurpClient
73
73
  :'subject' => :'String',
74
74
  :'inbox_id' => :'String',
75
75
  :'user_id' => :'String',
76
+ :'created_at' => :'DateTime',
77
+ :'updated_at' => :'DateTime',
76
78
  :'to' => :'Array<String>',
77
79
  :'bcc' => :'Array<String>',
78
80
  :'cc' => :'Array<String>',
79
- :'created_at' => :'DateTime',
80
- :'updated_at' => :'DateTime',
81
81
  :'alias_id' => :'String'
82
82
  }
83
83
  end
@@ -123,6 +123,14 @@ module MailSlurpClient
123
123
  self.user_id = attributes[:'user_id']
124
124
  end
125
125
 
126
+ if attributes.key?(:'created_at')
127
+ self.created_at = attributes[:'created_at']
128
+ end
129
+
130
+ if attributes.key?(:'updated_at')
131
+ self.updated_at = attributes[:'updated_at']
132
+ end
133
+
126
134
  if attributes.key?(:'to')
127
135
  if (value = attributes[:'to']).is_a?(Array)
128
136
  self.to = value
@@ -141,14 +149,6 @@ module MailSlurpClient
141
149
  end
142
150
  end
143
151
 
144
- if attributes.key?(:'created_at')
145
- self.created_at = attributes[:'created_at']
146
- end
147
-
148
- if attributes.key?(:'updated_at')
149
- self.updated_at = attributes[:'updated_at']
150
- end
151
-
152
152
  if attributes.key?(:'alias_id')
153
153
  self.alias_id = attributes[:'alias_id']
154
154
  end
@@ -170,10 +170,6 @@ module MailSlurpClient
170
170
  invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
171
171
  end
172
172
 
173
- if @to.nil?
174
- invalid_properties.push('invalid value for "to", to cannot be nil.')
175
- end
176
-
177
173
  if @created_at.nil?
178
174
  invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
179
175
  end
@@ -182,6 +178,10 @@ module MailSlurpClient
182
178
  invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
183
179
  end
184
180
 
181
+ if @to.nil?
182
+ invalid_properties.push('invalid value for "to", to cannot be nil.')
183
+ end
184
+
185
185
  if @alias_id.nil?
186
186
  invalid_properties.push('invalid value for "alias_id", alias_id cannot be nil.')
187
187
  end
@@ -195,9 +195,9 @@ module MailSlurpClient
195
195
  return false if @id.nil?
196
196
  return false if @inbox_id.nil?
197
197
  return false if @user_id.nil?
198
- return false if @to.nil?
199
198
  return false if @created_at.nil?
200
199
  return false if @updated_at.nil?
200
+ return false if @to.nil?
201
201
  return false if @alias_id.nil?
202
202
  true
203
203
  end
@@ -212,11 +212,11 @@ module MailSlurpClient
212
212
  subject == o.subject &&
213
213
  inbox_id == o.inbox_id &&
214
214
  user_id == o.user_id &&
215
+ created_at == o.created_at &&
216
+ updated_at == o.updated_at &&
215
217
  to == o.to &&
216
218
  bcc == o.bcc &&
217
219
  cc == o.cc &&
218
- created_at == o.created_at &&
219
- updated_at == o.updated_at &&
220
220
  alias_id == o.alias_id
221
221
  end
222
222
 
@@ -229,7 +229,7 @@ module MailSlurpClient
229
229
  # Calculates hash code according to all attributes.
230
230
  # @return [Integer] Hash code
231
231
  def hash
232
- [name, id, subject, inbox_id, user_id, to, bcc, cc, created_at, updated_at, alias_id].hash
232
+ [name, id, subject, inbox_id, user_id, created_at, updated_at, to, bcc, cc, alias_id].hash
233
233
  end
234
234
 
235
235
  # Builds the object from hash
@@ -66,6 +66,10 @@ module MailSlurpClient
66
66
  # List of attributes with nullable: true
67
67
  def self.openapi_nullable
68
68
  Set.new([
69
+ :'recipient',
70
+ :'inbox_id',
71
+ :'sent_email_id',
72
+ :'seen_at',
69
73
  ])
70
74
  end
71
75