mailslurp_client 15.17.5 → 15.17.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (46) hide show
  1. checksums.yaml +4 -4
  2. data/SECURITY.md +1 -1
  3. data/SUPPORT.md +2 -2
  4. data/lib/mailslurp_client/api/inbox_ruleset_controller_api.rb +6 -10
  5. data/lib/mailslurp_client/models/alias_projection.rb +15 -15
  6. data/lib/mailslurp_client/models/attachment_projection.rb +15 -15
  7. data/lib/mailslurp_client/models/email_projection.rb +10 -10
  8. data/lib/mailslurp_client/models/inbox_forwarder_event_projection.rb +11 -11
  9. data/lib/mailslurp_client/models/inbox_replier_event_projection.rb +21 -21
  10. data/lib/mailslurp_client/models/inbox_ruleset_dto.rb +0 -5
  11. data/lib/mailslurp_client/models/page_alias.rb +19 -19
  12. data/lib/mailslurp_client/models/page_attachment_entity.rb +19 -19
  13. data/lib/mailslurp_client/models/page_bounced_email.rb +19 -19
  14. data/lib/mailslurp_client/models/page_bounced_recipients.rb +19 -19
  15. data/lib/mailslurp_client/models/page_complaint.rb +19 -19
  16. data/lib/mailslurp_client/models/page_contact_projection.rb +19 -19
  17. data/lib/mailslurp_client/models/page_delivery_status.rb +19 -19
  18. data/lib/mailslurp_client/models/page_email_preview.rb +19 -19
  19. data/lib/mailslurp_client/models/page_email_projection.rb +19 -19
  20. data/lib/mailslurp_client/models/page_email_validation_request.rb +19 -19
  21. data/lib/mailslurp_client/models/page_expired_inbox_record_projection.rb +19 -19
  22. data/lib/mailslurp_client/models/page_group_projection.rb +19 -19
  23. data/lib/mailslurp_client/models/page_inbox_forwarder_dto.rb +19 -19
  24. data/lib/mailslurp_client/models/page_inbox_forwarder_events.rb +19 -19
  25. data/lib/mailslurp_client/models/page_inbox_projection.rb +19 -19
  26. data/lib/mailslurp_client/models/page_inbox_replier_dto.rb +19 -19
  27. data/lib/mailslurp_client/models/page_inbox_replier_events.rb +19 -19
  28. data/lib/mailslurp_client/models/page_inbox_ruleset_dto.rb +19 -19
  29. data/lib/mailslurp_client/models/page_list_unsubscribe_recipients.rb +19 -19
  30. data/lib/mailslurp_client/models/page_missed_email_projection.rb +19 -19
  31. data/lib/mailslurp_client/models/page_organization_inbox_projection.rb +19 -19
  32. data/lib/mailslurp_client/models/page_phone_number_projection.rb +19 -19
  33. data/lib/mailslurp_client/models/page_scheduled_jobs.rb +19 -19
  34. data/lib/mailslurp_client/models/page_sms_projection.rb +19 -19
  35. data/lib/mailslurp_client/models/page_template_projection.rb +19 -19
  36. data/lib/mailslurp_client/models/page_thread_projection.rb +19 -19
  37. data/lib/mailslurp_client/models/page_tracking_pixel_projection.rb +19 -19
  38. data/lib/mailslurp_client/models/page_unknown_missed_email_projection.rb +19 -19
  39. data/lib/mailslurp_client/models/page_webhook_projection.rb +19 -19
  40. data/lib/mailslurp_client/models/page_webhook_result.rb +19 -19
  41. data/lib/mailslurp_client/models/phone_number_projection.rb +19 -19
  42. data/lib/mailslurp_client/models/sent_email_projection.rb +15 -15
  43. data/lib/mailslurp_client/models/thread_projection.rb +16 -16
  44. data/lib/mailslurp_client/models/tracking_pixel_projection.rb +10 -10
  45. data/lib/mailslurp_client/version.rb +1 -1
  46. metadata +3 -3
@@ -19,12 +19,12 @@ module MailSlurpClient
19
19
 
20
20
  attr_accessor :user_id
21
21
 
22
- attr_accessor :phone_country
23
-
24
22
  attr_accessor :created_at
25
23
 
26
24
  attr_accessor :phone_number
27
25
 
26
+ attr_accessor :phone_country
27
+
28
28
  class EnumAttributeValidator
29
29
  attr_reader :datatype
30
30
  attr_reader :allowable_values
@@ -52,9 +52,9 @@ module MailSlurpClient
52
52
  {
53
53
  :'id' => :'id',
54
54
  :'user_id' => :'userId',
55
- :'phone_country' => :'phoneCountry',
56
55
  :'created_at' => :'createdAt',
57
- :'phone_number' => :'phoneNumber'
56
+ :'phone_number' => :'phoneNumber',
57
+ :'phone_country' => :'phoneCountry'
58
58
  }
59
59
  end
60
60
 
@@ -63,9 +63,9 @@ module MailSlurpClient
63
63
  {
64
64
  :'id' => :'String',
65
65
  :'user_id' => :'String',
66
- :'phone_country' => :'String',
67
66
  :'created_at' => :'DateTime',
68
- :'phone_number' => :'String'
67
+ :'phone_number' => :'String',
68
+ :'phone_country' => :'String'
69
69
  }
70
70
  end
71
71
 
@@ -98,10 +98,6 @@ module MailSlurpClient
98
98
  self.user_id = attributes[:'user_id']
99
99
  end
100
100
 
101
- if attributes.key?(:'phone_country')
102
- self.phone_country = attributes[:'phone_country']
103
- end
104
-
105
101
  if attributes.key?(:'created_at')
106
102
  self.created_at = attributes[:'created_at']
107
103
  end
@@ -109,6 +105,10 @@ module MailSlurpClient
109
105
  if attributes.key?(:'phone_number')
110
106
  self.phone_number = attributes[:'phone_number']
111
107
  end
108
+
109
+ if attributes.key?(:'phone_country')
110
+ self.phone_country = attributes[:'phone_country']
111
+ end
112
112
  end
113
113
 
114
114
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -123,10 +123,6 @@ module MailSlurpClient
123
123
  invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
124
124
  end
125
125
 
126
- if @phone_country.nil?
127
- invalid_properties.push('invalid value for "phone_country", phone_country cannot be nil.')
128
- end
129
-
130
126
  if @created_at.nil?
131
127
  invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
132
128
  end
@@ -135,6 +131,10 @@ module MailSlurpClient
135
131
  invalid_properties.push('invalid value for "phone_number", phone_number cannot be nil.')
136
132
  end
137
133
 
134
+ if @phone_country.nil?
135
+ invalid_properties.push('invalid value for "phone_country", phone_country cannot be nil.')
136
+ end
137
+
138
138
  invalid_properties
139
139
  end
140
140
 
@@ -143,11 +143,11 @@ module MailSlurpClient
143
143
  def valid?
144
144
  return false if @id.nil?
145
145
  return false if @user_id.nil?
146
+ return false if @created_at.nil?
147
+ return false if @phone_number.nil?
146
148
  return false if @phone_country.nil?
147
149
  phone_country_validator = EnumAttributeValidator.new('String', ["US", "GB", "AU"])
148
150
  return false unless phone_country_validator.valid?(@phone_country)
149
- return false if @created_at.nil?
150
- return false if @phone_number.nil?
151
151
  true
152
152
  end
153
153
 
@@ -168,9 +168,9 @@ module MailSlurpClient
168
168
  self.class == o.class &&
169
169
  id == o.id &&
170
170
  user_id == o.user_id &&
171
- phone_country == o.phone_country &&
172
171
  created_at == o.created_at &&
173
- phone_number == o.phone_number
172
+ phone_number == o.phone_number &&
173
+ phone_country == o.phone_country
174
174
  end
175
175
 
176
176
  # @see the `==` method
@@ -182,7 +182,7 @@ module MailSlurpClient
182
182
  # Calculates hash code according to all attributes.
183
183
  # @return [Integer] Hash code
184
184
  def hash
185
- [id, user_id, phone_country, created_at, phone_number].hash
185
+ [id, user_id, created_at, phone_number, phone_country].hash
186
186
  end
187
187
 
188
188
  # Builds the object from hash
@@ -21,10 +21,10 @@ module MailSlurpClient
21
21
 
22
22
  attr_accessor :subject
23
23
 
24
- attr_accessor :user_id
25
-
26
24
  attr_accessor :inbox_id
27
25
 
26
+ attr_accessor :user_id
27
+
28
28
  attr_accessor :attachments
29
29
 
30
30
  attr_accessor :created_at
@@ -45,8 +45,8 @@ module MailSlurpClient
45
45
  :'id' => :'id',
46
46
  :'from' => :'from',
47
47
  :'subject' => :'subject',
48
- :'user_id' => :'userId',
49
48
  :'inbox_id' => :'inboxId',
49
+ :'user_id' => :'userId',
50
50
  :'attachments' => :'attachments',
51
51
  :'created_at' => :'createdAt',
52
52
  :'to' => :'to',
@@ -63,8 +63,8 @@ module MailSlurpClient
63
63
  :'id' => :'String',
64
64
  :'from' => :'String',
65
65
  :'subject' => :'String',
66
- :'user_id' => :'String',
67
66
  :'inbox_id' => :'String',
67
+ :'user_id' => :'String',
68
68
  :'attachments' => :'Array<String>',
69
69
  :'created_at' => :'DateTime',
70
70
  :'to' => :'Array<String>',
@@ -108,14 +108,14 @@ module MailSlurpClient
108
108
  self.subject = attributes[:'subject']
109
109
  end
110
110
 
111
- if attributes.key?(:'user_id')
112
- self.user_id = attributes[:'user_id']
113
- end
114
-
115
111
  if attributes.key?(:'inbox_id')
116
112
  self.inbox_id = attributes[:'inbox_id']
117
113
  end
118
114
 
115
+ if attributes.key?(:'user_id')
116
+ self.user_id = attributes[:'user_id']
117
+ end
118
+
119
119
  if attributes.key?(:'attachments')
120
120
  if (value = attributes[:'attachments']).is_a?(Array)
121
121
  self.attachments = value
@@ -161,14 +161,14 @@ module MailSlurpClient
161
161
  invalid_properties.push('invalid value for "id", id cannot be nil.')
162
162
  end
163
163
 
164
- if @user_id.nil?
165
- invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
166
- end
167
-
168
164
  if @inbox_id.nil?
169
165
  invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
170
166
  end
171
167
 
168
+ if @user_id.nil?
169
+ invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
170
+ end
171
+
172
172
  if @attachments.nil?
173
173
  invalid_properties.push('invalid value for "attachments", attachments cannot be nil.')
174
174
  end
@@ -200,8 +200,8 @@ module MailSlurpClient
200
200
  # @return true if the model is valid
201
201
  def valid?
202
202
  return false if @id.nil?
203
- return false if @user_id.nil?
204
203
  return false if @inbox_id.nil?
204
+ return false if @user_id.nil?
205
205
  return false if @attachments.nil?
206
206
  return false if @created_at.nil?
207
207
  return false if @to.nil?
@@ -219,8 +219,8 @@ module MailSlurpClient
219
219
  id == o.id &&
220
220
  from == o.from &&
221
221
  subject == o.subject &&
222
- user_id == o.user_id &&
223
222
  inbox_id == o.inbox_id &&
223
+ user_id == o.user_id &&
224
224
  attachments == o.attachments &&
225
225
  created_at == o.created_at &&
226
226
  to == o.to &&
@@ -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, subject, user_id, inbox_id, attachments, created_at, to, bcc, cc, body_md5_hash, virtual_send].hash
242
+ [id, from, subject, inbox_id, user_id, attachments, created_at, to, bcc, cc, body_md5_hash, virtual_send].hash
243
243
  end
244
244
 
245
245
  # Builds the object from hash
@@ -21,15 +21,15 @@ module MailSlurpClient
21
21
  # ID of email thread
22
22
  attr_accessor :id
23
23
 
24
+ # Inbox ID
25
+ attr_accessor :inbox_id
26
+
24
27
  # User ID
25
28
  attr_accessor :user_id
26
29
 
27
30
  # Thread subject
28
31
  attr_accessor :subject
29
32
 
30
- # Inbox ID
31
- attr_accessor :inbox_id
32
-
33
33
  # Created at DateTime
34
34
  attr_accessor :created_at
35
35
 
@@ -53,9 +53,9 @@ module MailSlurpClient
53
53
  {
54
54
  :'name' => :'name',
55
55
  :'id' => :'id',
56
+ :'inbox_id' => :'inboxId',
56
57
  :'user_id' => :'userId',
57
58
  :'subject' => :'subject',
58
- :'inbox_id' => :'inboxId',
59
59
  :'created_at' => :'createdAt',
60
60
  :'updated_at' => :'updatedAt',
61
61
  :'to' => :'to',
@@ -70,9 +70,9 @@ module MailSlurpClient
70
70
  {
71
71
  :'name' => :'String',
72
72
  :'id' => :'String',
73
+ :'inbox_id' => :'String',
73
74
  :'user_id' => :'String',
74
75
  :'subject' => :'String',
75
- :'inbox_id' => :'String',
76
76
  :'created_at' => :'DateTime',
77
77
  :'updated_at' => :'DateTime',
78
78
  :'to' => :'Array<String>',
@@ -111,6 +111,10 @@ module MailSlurpClient
111
111
  self.id = attributes[:'id']
112
112
  end
113
113
 
114
+ if attributes.key?(:'inbox_id')
115
+ self.inbox_id = attributes[:'inbox_id']
116
+ end
117
+
114
118
  if attributes.key?(:'user_id')
115
119
  self.user_id = attributes[:'user_id']
116
120
  end
@@ -119,10 +123,6 @@ module MailSlurpClient
119
123
  self.subject = attributes[:'subject']
120
124
  end
121
125
 
122
- if attributes.key?(:'inbox_id')
123
- self.inbox_id = attributes[:'inbox_id']
124
- end
125
-
126
126
  if attributes.key?(:'created_at')
127
127
  self.created_at = attributes[:'created_at']
128
128
  end
@@ -162,14 +162,14 @@ module MailSlurpClient
162
162
  invalid_properties.push('invalid value for "id", id cannot be nil.')
163
163
  end
164
164
 
165
- if @user_id.nil?
166
- invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
167
- end
168
-
169
165
  if @inbox_id.nil?
170
166
  invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
171
167
  end
172
168
 
169
+ if @user_id.nil?
170
+ invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
171
+ end
172
+
173
173
  if @created_at.nil?
174
174
  invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
175
175
  end
@@ -193,8 +193,8 @@ module MailSlurpClient
193
193
  # @return true if the model is valid
194
194
  def valid?
195
195
  return false if @id.nil?
196
- return false if @user_id.nil?
197
196
  return false if @inbox_id.nil?
197
+ return false if @user_id.nil?
198
198
  return false if @created_at.nil?
199
199
  return false if @updated_at.nil?
200
200
  return false if @to.nil?
@@ -209,9 +209,9 @@ module MailSlurpClient
209
209
  self.class == o.class &&
210
210
  name == o.name &&
211
211
  id == o.id &&
212
+ inbox_id == o.inbox_id &&
212
213
  user_id == o.user_id &&
213
214
  subject == o.subject &&
214
- inbox_id == o.inbox_id &&
215
215
  created_at == o.created_at &&
216
216
  updated_at == o.updated_at &&
217
217
  to == o.to &&
@@ -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, user_id, subject, inbox_id, created_at, updated_at, to, bcc, cc, alias_id].hash
232
+ [name, id, inbox_id, user_id, subject, created_at, updated_at, to, bcc, cc, alias_id].hash
233
233
  end
234
234
 
235
235
  # Builds the object from hash
@@ -19,10 +19,10 @@ module MailSlurpClient
19
19
 
20
20
  attr_accessor :id
21
21
 
22
- attr_accessor :user_id
23
-
24
22
  attr_accessor :inbox_id
25
23
 
24
+ attr_accessor :user_id
25
+
26
26
  attr_accessor :sent_email_id
27
27
 
28
28
  attr_accessor :created_at
@@ -38,8 +38,8 @@ module MailSlurpClient
38
38
  {
39
39
  :'name' => :'name',
40
40
  :'id' => :'id',
41
- :'user_id' => :'userId',
42
41
  :'inbox_id' => :'inboxId',
42
+ :'user_id' => :'userId',
43
43
  :'sent_email_id' => :'sentEmailId',
44
44
  :'created_at' => :'createdAt',
45
45
  :'recipient' => :'recipient',
@@ -53,8 +53,8 @@ module MailSlurpClient
53
53
  {
54
54
  :'name' => :'String',
55
55
  :'id' => :'String',
56
- :'user_id' => :'String',
57
56
  :'inbox_id' => :'String',
57
+ :'user_id' => :'String',
58
58
  :'sent_email_id' => :'String',
59
59
  :'created_at' => :'DateTime',
60
60
  :'recipient' => :'String',
@@ -92,14 +92,14 @@ module MailSlurpClient
92
92
  self.id = attributes[:'id']
93
93
  end
94
94
 
95
- if attributes.key?(:'user_id')
96
- self.user_id = attributes[:'user_id']
97
- end
98
-
99
95
  if attributes.key?(:'inbox_id')
100
96
  self.inbox_id = attributes[:'inbox_id']
101
97
  end
102
98
 
99
+ if attributes.key?(:'user_id')
100
+ self.user_id = attributes[:'user_id']
101
+ end
102
+
103
103
  if attributes.key?(:'sent_email_id')
104
104
  self.sent_email_id = attributes[:'sent_email_id']
105
105
  end
@@ -161,8 +161,8 @@ module MailSlurpClient
161
161
  self.class == o.class &&
162
162
  name == o.name &&
163
163
  id == o.id &&
164
- user_id == o.user_id &&
165
164
  inbox_id == o.inbox_id &&
165
+ user_id == o.user_id &&
166
166
  sent_email_id == o.sent_email_id &&
167
167
  created_at == o.created_at &&
168
168
  recipient == o.recipient &&
@@ -179,7 +179,7 @@ module MailSlurpClient
179
179
  # Calculates hash code according to all attributes.
180
180
  # @return [Integer] Hash code
181
181
  def hash
182
- [name, id, user_id, inbox_id, sent_email_id, created_at, recipient, seen, seen_at].hash
182
+ [name, id, inbox_id, user_id, sent_email_id, created_at, recipient, seen, seen_at].hash
183
183
  end
184
184
 
185
185
  # Builds the object from hash
@@ -11,5 +11,5 @@ OpenAPI Generator version: 4.3.1
11
11
  =end
12
12
 
13
13
  module MailSlurpClient
14
- VERSION = '15.17.5'
14
+ VERSION = '15.17.6'
15
15
  end
metadata CHANGED
@@ -1,19 +1,19 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mailslurp_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 15.17.5
4
+ version: 15.17.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - mailslurp
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-04-05 00:00:00.000000000 Z
11
+ date: 2023-05-17 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Create emails addresses in Ruby then send and receive real emails and
14
14
  attachments. See https://www.mailslurp.com/ruby/ for full Ruby documentation. Get
15
15
  an API Key at https://app.mailslurp.com
16
- email: support@mailslurp.zendesk.com
16
+ email: contact@mailslurp.dev
17
17
  executables: []
18
18
  extensions: []
19
19
  extra_rdoc_files: []