mailslurp_client 15.7.17 → 15.8.0

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/lib/mailslurp_client/api/inbox_controller_api.rb +2 -2
  3. data/lib/mailslurp_client/api/template_controller_api.rb +28 -16
  4. data/lib/mailslurp_client/api/webhook_controller_api.rb +68 -10
  5. data/lib/mailslurp_client/models/abstract_webhook_payload.rb +15 -15
  6. data/lib/mailslurp_client/models/alias_projection.rb +33 -33
  7. data/lib/mailslurp_client/models/attachment_projection.rb +28 -28
  8. data/lib/mailslurp_client/models/create_template_options.rb +3 -1
  9. data/lib/mailslurp_client/models/email_projection.rb +40 -40
  10. data/lib/mailslurp_client/models/expired_inbox_record_projection.rb +18 -18
  11. data/lib/mailslurp_client/models/flush_expired_inboxes_result.rb +2 -0
  12. data/lib/mailslurp_client/models/missed_email_projection.rb +13 -13
  13. data/lib/mailslurp_client/models/page_alias.rb +19 -19
  14. data/lib/mailslurp_client/models/page_attachment_entity.rb +19 -19
  15. data/lib/mailslurp_client/models/page_bounced_email.rb +19 -19
  16. data/lib/mailslurp_client/models/page_bounced_recipients.rb +19 -19
  17. data/lib/mailslurp_client/models/page_contact_projection.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_projection.rb +19 -19
  25. data/lib/mailslurp_client/models/page_inbox_ruleset_dto.rb +19 -19
  26. data/lib/mailslurp_client/models/page_missed_email_projection.rb +19 -19
  27. data/lib/mailslurp_client/models/page_organization_inbox_projection.rb +19 -19
  28. data/lib/mailslurp_client/models/page_template_projection.rb +19 -19
  29. data/lib/mailslurp_client/models/page_thread_projection.rb +19 -19
  30. data/lib/mailslurp_client/models/page_tracking_pixel_projection.rb +19 -19
  31. data/lib/mailslurp_client/models/page_unknown_missed_email_projection.rb +19 -19
  32. data/lib/mailslurp_client/models/page_webhook_projection.rb +19 -19
  33. data/lib/mailslurp_client/models/page_webhook_result.rb +19 -19
  34. data/lib/mailslurp_client/models/sent_email_projection.rb +30 -30
  35. data/lib/mailslurp_client/models/template_dto.rb +5 -0
  36. data/lib/mailslurp_client/models/template_projection.rb +18 -18
  37. data/lib/mailslurp_client/models/template_variable.rb +2 -0
  38. data/lib/mailslurp_client/models/thread_projection.rb +44 -33
  39. data/lib/mailslurp_client/models/tracking_pixel_projection.rb +18 -18
  40. data/lib/mailslurp_client/models/unknown_missed_email_projection.rb +13 -13
  41. data/lib/mailslurp_client/models/verify_webhook_signature_options.rb +225 -0
  42. data/lib/mailslurp_client/models/verify_webhook_signature_results.rb +211 -0
  43. data/lib/mailslurp_client/models/webhook_projection.rb +18 -18
  44. data/lib/mailslurp_client/version.rb +1 -1
  45. data/lib/mailslurp_client.rb +2 -0
  46. metadata +4 -2
@@ -19,20 +19,20 @@ module MailSlurpClient
19
19
 
20
20
  attr_accessor :id
21
21
 
22
+ attr_accessor :updated_at
23
+
22
24
  attr_accessor :created_at
23
25
 
24
26
  attr_accessor :variables
25
27
 
26
- attr_accessor :updated_at
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
+ :'updated_at' => :'updatedAt',
33
34
  :'created_at' => :'createdAt',
34
- :'variables' => :'variables',
35
- :'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
+ :'updated_at' => :'DateTime',
44
45
  :'created_at' => :'DateTime',
45
- :'variables' => :'Array<String>',
46
- :'updated_at' => :'DateTime'
46
+ :'variables' => :'Array<String>'
47
47
  }
48
48
  end
49
49
 
@@ -76,6 +76,10 @@ module MailSlurpClient
76
76
  self.id = attributes[:'id']
77
77
  end
78
78
 
79
+ if attributes.key?(:'updated_at')
80
+ self.updated_at = attributes[:'updated_at']
81
+ end
82
+
79
83
  if attributes.key?(:'created_at')
80
84
  self.created_at = attributes[:'created_at']
81
85
  end
@@ -85,10 +89,6 @@ module MailSlurpClient
85
89
  self.variables = value
86
90
  end
87
91
  end
88
-
89
- if attributes.key?(:'updated_at')
90
- self.updated_at = attributes[:'updated_at']
91
- end
92
92
  end
93
93
 
94
94
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -103,6 +103,10 @@ module MailSlurpClient
103
103
  invalid_properties.push('invalid value for "id", id cannot be nil.')
104
104
  end
105
105
 
106
+ if @updated_at.nil?
107
+ invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
108
+ end
109
+
106
110
  if @created_at.nil?
107
111
  invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
108
112
  end
@@ -111,10 +115,6 @@ module MailSlurpClient
111
115
  invalid_properties.push('invalid value for "variables", variables cannot be nil.')
112
116
  end
113
117
 
114
- if @updated_at.nil?
115
- invalid_properties.push('invalid value for "updated_at", updated_at 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 @updated_at.nil?
126
127
  return false if @created_at.nil?
127
128
  return false if @variables.nil?
128
- return false if @updated_at.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
+ updated_at == o.updated_at &&
139
140
  created_at == o.created_at &&
140
- variables == o.variables &&
141
- 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, created_at, variables, updated_at].hash
153
+ [name, id, updated_at, created_at, variables].hash
154
154
  end
155
155
 
156
156
  # Builds the object from hash
@@ -15,8 +15,10 @@ require 'date'
15
15
  module MailSlurpClient
16
16
  # Variable for use with email template
17
17
  class TemplateVariable
18
+ # Name of variable. This can be used in a template as {{name}}
18
19
  attr_accessor :name
19
20
 
21
+ # The type of variable
20
22
  attr_accessor :variable_type
21
23
 
22
24
  class EnumAttributeValidator
@@ -15,26 +15,37 @@ require 'date'
15
15
  module MailSlurpClient
16
16
  # A thread is a message thread created for a message received by an alias
17
17
  class ThreadProjection
18
+ # Name of thread
18
19
  attr_accessor :name
19
20
 
21
+ # ID of email thread
20
22
  attr_accessor :id
21
23
 
24
+ # Thread subject
22
25
  attr_accessor :subject
23
26
 
24
- attr_accessor :created_at
27
+ # Inbox ID
28
+ attr_accessor :inbox_id
25
29
 
30
+ # User ID
26
31
  attr_accessor :user_id
27
32
 
28
- attr_accessor :inbox_id
29
-
33
+ # To recipients
30
34
  attr_accessor :to
31
35
 
36
+ # Updated at DateTime
37
+ attr_accessor :updated_at
38
+
39
+ # Created at DateTime
40
+ attr_accessor :created_at
41
+
42
+ # BCC recipients
32
43
  attr_accessor :bcc
33
44
 
45
+ # CC recipients
34
46
  attr_accessor :cc
35
47
 
36
- attr_accessor :updated_at
37
-
48
+ # Alias ID
38
49
  attr_accessor :alias_id
39
50
 
40
51
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -43,13 +54,13 @@ module MailSlurpClient
43
54
  :'name' => :'name',
44
55
  :'id' => :'id',
45
56
  :'subject' => :'subject',
46
- :'created_at' => :'createdAt',
47
- :'user_id' => :'userId',
48
57
  :'inbox_id' => :'inboxId',
58
+ :'user_id' => :'userId',
49
59
  :'to' => :'to',
60
+ :'updated_at' => :'updatedAt',
61
+ :'created_at' => :'createdAt',
50
62
  :'bcc' => :'bcc',
51
63
  :'cc' => :'cc',
52
- :'updated_at' => :'updatedAt',
53
64
  :'alias_id' => :'aliasId'
54
65
  }
55
66
  end
@@ -60,13 +71,13 @@ module MailSlurpClient
60
71
  :'name' => :'String',
61
72
  :'id' => :'String',
62
73
  :'subject' => :'String',
63
- :'created_at' => :'DateTime',
64
- :'user_id' => :'String',
65
74
  :'inbox_id' => :'String',
75
+ :'user_id' => :'String',
66
76
  :'to' => :'Array<String>',
77
+ :'updated_at' => :'DateTime',
78
+ :'created_at' => :'DateTime',
67
79
  :'bcc' => :'Array<String>',
68
80
  :'cc' => :'Array<String>',
69
- :'updated_at' => :'DateTime',
70
81
  :'alias_id' => :'String'
71
82
  }
72
83
  end
@@ -104,24 +115,28 @@ module MailSlurpClient
104
115
  self.subject = attributes[:'subject']
105
116
  end
106
117
 
107
- if attributes.key?(:'created_at')
108
- self.created_at = attributes[:'created_at']
118
+ if attributes.key?(:'inbox_id')
119
+ self.inbox_id = attributes[:'inbox_id']
109
120
  end
110
121
 
111
122
  if attributes.key?(:'user_id')
112
123
  self.user_id = attributes[:'user_id']
113
124
  end
114
125
 
115
- if attributes.key?(:'inbox_id')
116
- self.inbox_id = attributes[:'inbox_id']
117
- end
118
-
119
126
  if attributes.key?(:'to')
120
127
  if (value = attributes[:'to']).is_a?(Array)
121
128
  self.to = value
122
129
  end
123
130
  end
124
131
 
132
+ if attributes.key?(:'updated_at')
133
+ self.updated_at = attributes[:'updated_at']
134
+ end
135
+
136
+ if attributes.key?(:'created_at')
137
+ self.created_at = attributes[:'created_at']
138
+ end
139
+
125
140
  if attributes.key?(:'bcc')
126
141
  if (value = attributes[:'bcc']).is_a?(Array)
127
142
  self.bcc = value
@@ -134,10 +149,6 @@ module MailSlurpClient
134
149
  end
135
150
  end
136
151
 
137
- if attributes.key?(:'updated_at')
138
- self.updated_at = attributes[:'updated_at']
139
- end
140
-
141
152
  if attributes.key?(:'alias_id')
142
153
  self.alias_id = attributes[:'alias_id']
143
154
  end
@@ -151,18 +162,14 @@ module MailSlurpClient
151
162
  invalid_properties.push('invalid value for "id", id cannot be nil.')
152
163
  end
153
164
 
154
- if @created_at.nil?
155
- invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
165
+ if @inbox_id.nil?
166
+ invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
156
167
  end
157
168
 
158
169
  if @user_id.nil?
159
170
  invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
160
171
  end
161
172
 
162
- if @inbox_id.nil?
163
- invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
164
- end
165
-
166
173
  if @to.nil?
167
174
  invalid_properties.push('invalid value for "to", to cannot be nil.')
168
175
  end
@@ -171,6 +178,10 @@ module MailSlurpClient
171
178
  invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
172
179
  end
173
180
 
181
+ if @created_at.nil?
182
+ invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
183
+ end
184
+
174
185
  if @alias_id.nil?
175
186
  invalid_properties.push('invalid value for "alias_id", alias_id cannot be nil.')
176
187
  end
@@ -182,11 +193,11 @@ module MailSlurpClient
182
193
  # @return true if the model is valid
183
194
  def valid?
184
195
  return false if @id.nil?
185
- return false if @created_at.nil?
186
- return false if @user_id.nil?
187
196
  return false if @inbox_id.nil?
197
+ return false if @user_id.nil?
188
198
  return false if @to.nil?
189
199
  return false if @updated_at.nil?
200
+ return false if @created_at.nil?
190
201
  return false if @alias_id.nil?
191
202
  true
192
203
  end
@@ -199,13 +210,13 @@ module MailSlurpClient
199
210
  name == o.name &&
200
211
  id == o.id &&
201
212
  subject == o.subject &&
202
- created_at == o.created_at &&
203
- user_id == o.user_id &&
204
213
  inbox_id == o.inbox_id &&
214
+ user_id == o.user_id &&
205
215
  to == o.to &&
216
+ updated_at == o.updated_at &&
217
+ created_at == o.created_at &&
206
218
  bcc == o.bcc &&
207
219
  cc == o.cc &&
208
- updated_at == o.updated_at &&
209
220
  alias_id == o.alias_id
210
221
  end
211
222
 
@@ -218,7 +229,7 @@ module MailSlurpClient
218
229
  # Calculates hash code according to all attributes.
219
230
  # @return [Integer] Hash code
220
231
  def hash
221
- [name, id, subject, created_at, user_id, inbox_id, to, bcc, cc, updated_at, alias_id].hash
232
+ [name, id, subject, inbox_id, user_id, to, updated_at, created_at, bcc, cc, alias_id].hash
222
233
  end
223
234
 
224
235
  # Builds the object from hash
@@ -19,11 +19,11 @@ module MailSlurpClient
19
19
 
20
20
  attr_accessor :id
21
21
 
22
- attr_accessor :created_at
22
+ attr_accessor :inbox_id
23
23
 
24
24
  attr_accessor :user_id
25
25
 
26
- attr_accessor :inbox_id
26
+ attr_accessor :created_at
27
27
 
28
28
  attr_accessor :recipient
29
29
 
@@ -38,9 +38,9 @@ module MailSlurpClient
38
38
  {
39
39
  :'name' => :'name',
40
40
  :'id' => :'id',
41
- :'created_at' => :'createdAt',
42
- :'user_id' => :'userId',
43
41
  :'inbox_id' => :'inboxId',
42
+ :'user_id' => :'userId',
43
+ :'created_at' => :'createdAt',
44
44
  :'recipient' => :'recipient',
45
45
  :'seen' => :'seen',
46
46
  :'seen_at' => :'seenAt',
@@ -53,9 +53,9 @@ module MailSlurpClient
53
53
  {
54
54
  :'name' => :'String',
55
55
  :'id' => :'String',
56
- :'created_at' => :'DateTime',
57
- :'user_id' => :'String',
58
56
  :'inbox_id' => :'String',
57
+ :'user_id' => :'String',
58
+ :'created_at' => :'DateTime',
59
59
  :'recipient' => :'String',
60
60
  :'seen' => :'Boolean',
61
61
  :'seen_at' => :'DateTime',
@@ -92,16 +92,16 @@ module MailSlurpClient
92
92
  self.id = attributes[:'id']
93
93
  end
94
94
 
95
- if attributes.key?(:'created_at')
96
- self.created_at = attributes[:'created_at']
95
+ if attributes.key?(:'inbox_id')
96
+ self.inbox_id = attributes[:'inbox_id']
97
97
  end
98
98
 
99
99
  if attributes.key?(:'user_id')
100
100
  self.user_id = attributes[:'user_id']
101
101
  end
102
102
 
103
- if attributes.key?(:'inbox_id')
104
- self.inbox_id = attributes[:'inbox_id']
103
+ if attributes.key?(:'created_at')
104
+ self.created_at = attributes[:'created_at']
105
105
  end
106
106
 
107
107
  if attributes.key?(:'recipient')
@@ -129,14 +129,14 @@ module MailSlurpClient
129
129
  invalid_properties.push('invalid value for "id", id cannot be nil.')
130
130
  end
131
131
 
132
- if @created_at.nil?
133
- invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
134
- end
135
-
136
132
  if @user_id.nil?
137
133
  invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
138
134
  end
139
135
 
136
+ if @created_at.nil?
137
+ invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
138
+ end
139
+
140
140
  if @seen.nil?
141
141
  invalid_properties.push('invalid value for "seen", seen cannot be nil.')
142
142
  end
@@ -148,8 +148,8 @@ module MailSlurpClient
148
148
  # @return true if the model is valid
149
149
  def valid?
150
150
  return false if @id.nil?
151
- return false if @created_at.nil?
152
151
  return false if @user_id.nil?
152
+ return false if @created_at.nil?
153
153
  return false if @seen.nil?
154
154
  true
155
155
  end
@@ -161,9 +161,9 @@ module MailSlurpClient
161
161
  self.class == o.class &&
162
162
  name == o.name &&
163
163
  id == o.id &&
164
- created_at == o.created_at &&
165
- user_id == o.user_id &&
166
164
  inbox_id == o.inbox_id &&
165
+ user_id == o.user_id &&
166
+ created_at == o.created_at &&
167
167
  recipient == o.recipient &&
168
168
  seen == o.seen &&
169
169
  seen_at == o.seen_at &&
@@ -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, created_at, user_id, inbox_id, recipient, seen, seen_at, sent_email_id].hash
182
+ [name, id, inbox_id, user_id, created_at, recipient, seen, seen_at, sent_email_id].hash
183
183
  end
184
184
 
185
185
  # Builds the object from hash
@@ -21,18 +21,18 @@ module MailSlurpClient
21
21
 
22
22
  attr_accessor :subject
23
23
 
24
- attr_accessor :created_at
25
-
26
24
  attr_accessor :to
27
25
 
26
+ attr_accessor :created_at
27
+
28
28
  # Attribute mapping from ruby-style variable name to JSON key.
29
29
  def self.attribute_map
30
30
  {
31
31
  :'id' => :'id',
32
32
  :'from' => :'from',
33
33
  :'subject' => :'subject',
34
- :'created_at' => :'createdAt',
35
- :'to' => :'to'
34
+ :'to' => :'to',
35
+ :'created_at' => :'createdAt'
36
36
  }
37
37
  end
38
38
 
@@ -42,8 +42,8 @@ module MailSlurpClient
42
42
  :'id' => :'String',
43
43
  :'from' => :'String',
44
44
  :'subject' => :'String',
45
- :'created_at' => :'DateTime',
46
- :'to' => :'Array<String>'
45
+ :'to' => :'Array<String>',
46
+ :'created_at' => :'DateTime'
47
47
  }
48
48
  end
49
49
 
@@ -80,15 +80,15 @@ module MailSlurpClient
80
80
  self.subject = attributes[:'subject']
81
81
  end
82
82
 
83
- if attributes.key?(:'created_at')
84
- self.created_at = attributes[:'created_at']
85
- end
86
-
87
83
  if attributes.key?(:'to')
88
84
  if (value = attributes[:'to']).is_a?(Array)
89
85
  self.to = value
90
86
  end
91
87
  end
88
+
89
+ if attributes.key?(:'created_at')
90
+ self.created_at = attributes[:'created_at']
91
+ end
92
92
  end
93
93
 
94
94
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -122,8 +122,8 @@ module MailSlurpClient
122
122
  id == o.id &&
123
123
  from == o.from &&
124
124
  subject == o.subject &&
125
- created_at == o.created_at &&
126
- to == o.to
125
+ to == o.to &&
126
+ created_at == o.created_at
127
127
  end
128
128
 
129
129
  # @see the `==` method
@@ -135,7 +135,7 @@ module MailSlurpClient
135
135
  # Calculates hash code according to all attributes.
136
136
  # @return [Integer] Hash code
137
137
  def hash
138
- [id, from, subject, created_at, to].hash
138
+ [id, from, subject, to, created_at].hash
139
139
  end
140
140
 
141
141
  # Builds the object from hash