mailslurp_client 15.13.29 → 15.13.31

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (45) hide show
  1. checksums.yaml +4 -4
  2. data/lib/mailslurp_client/api/inbox_controller_api.rb +233 -0
  3. data/lib/mailslurp_client/api/webhook_controller_api.rb +98 -0
  4. data/lib/mailslurp_client/models/alias_projection.rb +15 -15
  5. data/lib/mailslurp_client/models/attachment_projection.rb +14 -14
  6. data/lib/mailslurp_client/models/bounce_recipient_projection.rb +13 -13
  7. data/lib/mailslurp_client/models/contact_projection.rb +18 -18
  8. data/lib/mailslurp_client/models/create_webhook_options.rb +16 -5
  9. data/lib/mailslurp_client/models/email_projection.rb +10 -10
  10. data/lib/mailslurp_client/models/page_alias.rb +19 -19
  11. data/lib/mailslurp_client/models/page_attachment_entity.rb +19 -19
  12. data/lib/mailslurp_client/models/page_bounced_email.rb +19 -19
  13. data/lib/mailslurp_client/models/page_bounced_recipients.rb +19 -19
  14. data/lib/mailslurp_client/models/page_complaint.rb +19 -19
  15. data/lib/mailslurp_client/models/page_contact_projection.rb +19 -19
  16. data/lib/mailslurp_client/models/page_delivery_status.rb +19 -19
  17. data/lib/mailslurp_client/models/page_email_preview.rb +19 -19
  18. data/lib/mailslurp_client/models/page_email_projection.rb +19 -19
  19. data/lib/mailslurp_client/models/page_email_validation_request.rb +19 -19
  20. data/lib/mailslurp_client/models/page_expired_inbox_record_projection.rb +19 -19
  21. data/lib/mailslurp_client/models/page_group_projection.rb +19 -19
  22. data/lib/mailslurp_client/models/page_inbox_forwarder_dto.rb +19 -19
  23. data/lib/mailslurp_client/models/page_inbox_projection.rb +19 -19
  24. data/lib/mailslurp_client/models/page_inbox_ruleset_dto.rb +19 -19
  25. data/lib/mailslurp_client/models/page_missed_email_projection.rb +19 -19
  26. data/lib/mailslurp_client/models/page_organization_inbox_projection.rb +19 -19
  27. data/lib/mailslurp_client/models/page_phone_number_projection.rb +19 -19
  28. data/lib/mailslurp_client/models/page_scheduled_jobs.rb +308 -0
  29. data/lib/mailslurp_client/models/page_sms_projection.rb +19 -19
  30. data/lib/mailslurp_client/models/page_template_projection.rb +19 -19
  31. data/lib/mailslurp_client/models/page_thread_projection.rb +19 -19
  32. data/lib/mailslurp_client/models/page_tracking_pixel_projection.rb +19 -19
  33. data/lib/mailslurp_client/models/page_unknown_missed_email_projection.rb +19 -19
  34. data/lib/mailslurp_client/models/page_webhook_projection.rb +19 -19
  35. data/lib/mailslurp_client/models/page_webhook_result.rb +19 -19
  36. data/lib/mailslurp_client/models/phone_number_projection.rb +18 -18
  37. data/lib/mailslurp_client/models/scheduled_job.rb +371 -0
  38. data/lib/mailslurp_client/models/sent_email_projection.rb +59 -59
  39. data/lib/mailslurp_client/models/template_projection.rb +15 -15
  40. data/lib/mailslurp_client/models/thread_projection.rb +26 -26
  41. data/lib/mailslurp_client/models/tracking_pixel_projection.rb +10 -10
  42. data/lib/mailslurp_client/models/webhook_dto.rb +12 -1
  43. data/lib/mailslurp_client/version.rb +1 -1
  44. data/lib/mailslurp_client.rb +2 -0
  45. metadata +4 -2
@@ -24,24 +24,24 @@ module MailSlurpClient
24
24
  # Thread subject
25
25
  attr_accessor :subject
26
26
 
27
- # Inbox ID
28
- attr_accessor :inbox_id
29
-
30
27
  # User ID
31
28
  attr_accessor :user_id
32
29
 
30
+ # Inbox ID
31
+ attr_accessor :inbox_id
32
+
33
33
  # To recipients
34
34
  attr_accessor :to
35
35
 
36
+ # Created at DateTime
37
+ attr_accessor :created_at
38
+
36
39
  # BCC recipients
37
40
  attr_accessor :bcc
38
41
 
39
42
  # CC recipients
40
43
  attr_accessor :cc
41
44
 
42
- # Created at DateTime
43
- attr_accessor :created_at
44
-
45
45
  # Updated at DateTime
46
46
  attr_accessor :updated_at
47
47
 
@@ -54,12 +54,12 @@ module MailSlurpClient
54
54
  :'name' => :'name',
55
55
  :'id' => :'id',
56
56
  :'subject' => :'subject',
57
- :'inbox_id' => :'inboxId',
58
57
  :'user_id' => :'userId',
58
+ :'inbox_id' => :'inboxId',
59
59
  :'to' => :'to',
60
+ :'created_at' => :'createdAt',
60
61
  :'bcc' => :'bcc',
61
62
  :'cc' => :'cc',
62
- :'created_at' => :'createdAt',
63
63
  :'updated_at' => :'updatedAt',
64
64
  :'alias_id' => :'aliasId'
65
65
  }
@@ -71,12 +71,12 @@ module MailSlurpClient
71
71
  :'name' => :'String',
72
72
  :'id' => :'String',
73
73
  :'subject' => :'String',
74
- :'inbox_id' => :'String',
75
74
  :'user_id' => :'String',
75
+ :'inbox_id' => :'String',
76
76
  :'to' => :'Array<String>',
77
+ :'created_at' => :'DateTime',
77
78
  :'bcc' => :'Array<String>',
78
79
  :'cc' => :'Array<String>',
79
- :'created_at' => :'DateTime',
80
80
  :'updated_at' => :'DateTime',
81
81
  :'alias_id' => :'String'
82
82
  }
@@ -115,20 +115,24 @@ module MailSlurpClient
115
115
  self.subject = attributes[:'subject']
116
116
  end
117
117
 
118
- if attributes.key?(:'inbox_id')
119
- self.inbox_id = attributes[:'inbox_id']
120
- end
121
-
122
118
  if attributes.key?(:'user_id')
123
119
  self.user_id = attributes[:'user_id']
124
120
  end
125
121
 
122
+ if attributes.key?(:'inbox_id')
123
+ self.inbox_id = attributes[:'inbox_id']
124
+ end
125
+
126
126
  if attributes.key?(:'to')
127
127
  if (value = attributes[:'to']).is_a?(Array)
128
128
  self.to = value
129
129
  end
130
130
  end
131
131
 
132
+ if attributes.key?(:'created_at')
133
+ self.created_at = attributes[:'created_at']
134
+ end
135
+
132
136
  if attributes.key?(:'bcc')
133
137
  if (value = attributes[:'bcc']).is_a?(Array)
134
138
  self.bcc = value
@@ -141,10 +145,6 @@ module MailSlurpClient
141
145
  end
142
146
  end
143
147
 
144
- if attributes.key?(:'created_at')
145
- self.created_at = attributes[:'created_at']
146
- end
147
-
148
148
  if attributes.key?(:'updated_at')
149
149
  self.updated_at = attributes[:'updated_at']
150
150
  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 @inbox_id.nil?
166
- invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
167
- end
168
-
169
165
  if @user_id.nil?
170
166
  invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
171
167
  end
172
168
 
169
+ if @inbox_id.nil?
170
+ invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
171
+ end
172
+
173
173
  if @to.nil?
174
174
  invalid_properties.push('invalid value for "to", to 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 @inbox_id.nil?
197
196
  return false if @user_id.nil?
197
+ return false if @inbox_id.nil?
198
198
  return false if @to.nil?
199
199
  return false if @created_at.nil?
200
200
  return false if @updated_at.nil?
@@ -210,12 +210,12 @@ module MailSlurpClient
210
210
  name == o.name &&
211
211
  id == o.id &&
212
212
  subject == o.subject &&
213
- inbox_id == o.inbox_id &&
214
213
  user_id == o.user_id &&
214
+ inbox_id == o.inbox_id &&
215
215
  to == o.to &&
216
+ created_at == o.created_at &&
216
217
  bcc == o.bcc &&
217
218
  cc == o.cc &&
218
- created_at == o.created_at &&
219
219
  updated_at == o.updated_at &&
220
220
  alias_id == o.alias_id
221
221
  end
@@ -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, user_id, inbox_id, to, created_at, bcc, cc, updated_at, 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 :inbox_id
23
-
24
22
  attr_accessor :user_id
25
23
 
24
+ attr_accessor :inbox_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
- :'inbox_id' => :'inboxId',
42
41
  :'user_id' => :'userId',
42
+ :'inbox_id' => :'inboxId',
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
- :'inbox_id' => :'String',
57
56
  :'user_id' => :'String',
57
+ :'inbox_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?(:'inbox_id')
96
- self.inbox_id = attributes[:'inbox_id']
97
- end
98
-
99
95
  if attributes.key?(:'user_id')
100
96
  self.user_id = attributes[:'user_id']
101
97
  end
102
98
 
99
+ if attributes.key?(:'inbox_id')
100
+ self.inbox_id = attributes[:'inbox_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
- inbox_id == o.inbox_id &&
165
164
  user_id == o.user_id &&
165
+ inbox_id == o.inbox_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, inbox_id, user_id, sent_email_id, created_at, recipient, seen, seen_at].hash
182
+ [name, id, user_id, inbox_id, sent_email_id, created_at, recipient, seen, seen_at].hash
183
183
  end
184
184
 
185
185
  # Builds the object from hash
@@ -33,6 +33,9 @@ module MailSlurpClient
33
33
  # The inbox that the Webhook will be triggered by. If null then webhook triggered at account level or phone level if phoneId set
34
34
  attr_accessor :inbox_id
35
35
 
36
+ # Request body template for HTTP request that will be sent for the webhook. Use Moustache style template variables to insert values from the original event payload.
37
+ attr_accessor :request_body_template
38
+
36
39
  # URL of your server that the webhook will be sent to. The schema of the JSON that is sent is described by the payloadJsonSchema.
37
40
  attr_accessor :url
38
41
 
@@ -83,6 +86,7 @@ module MailSlurpClient
83
86
  :'name' => :'name',
84
87
  :'phone_id' => :'phoneId',
85
88
  :'inbox_id' => :'inboxId',
89
+ :'request_body_template' => :'requestBodyTemplate',
86
90
  :'url' => :'url',
87
91
  :'method' => :'method',
88
92
  :'payload_json_schema' => :'payloadJsonSchema',
@@ -102,6 +106,7 @@ module MailSlurpClient
102
106
  :'name' => :'String',
103
107
  :'phone_id' => :'String',
104
108
  :'inbox_id' => :'String',
109
+ :'request_body_template' => :'String',
105
110
  :'url' => :'String',
106
111
  :'method' => :'String',
107
112
  :'payload_json_schema' => :'String',
@@ -118,6 +123,7 @@ module MailSlurpClient
118
123
  :'name',
119
124
  :'phone_id',
120
125
  :'inbox_id',
126
+ :'request_body_template',
121
127
  :'created_at',
122
128
  :'event_name',
123
129
  ])
@@ -162,6 +168,10 @@ module MailSlurpClient
162
168
  self.inbox_id = attributes[:'inbox_id']
163
169
  end
164
170
 
171
+ if attributes.key?(:'request_body_template')
172
+ self.request_body_template = attributes[:'request_body_template']
173
+ end
174
+
165
175
  if attributes.key?(:'url')
166
176
  self.url = attributes[:'url']
167
177
  end
@@ -274,6 +284,7 @@ module MailSlurpClient
274
284
  name == o.name &&
275
285
  phone_id == o.phone_id &&
276
286
  inbox_id == o.inbox_id &&
287
+ request_body_template == o.request_body_template &&
277
288
  url == o.url &&
278
289
  method == o.method &&
279
290
  payload_json_schema == o.payload_json_schema &&
@@ -292,7 +303,7 @@ module MailSlurpClient
292
303
  # Calculates hash code according to all attributes.
293
304
  # @return [Integer] Hash code
294
305
  def hash
295
- [id, user_id, basic_auth, name, phone_id, inbox_id, url, method, payload_json_schema, created_at, updated_at, event_name, request_headers].hash
306
+ [id, user_id, basic_auth, name, phone_id, inbox_id, request_body_template, url, method, payload_json_schema, created_at, updated_at, event_name, request_headers].hash
296
307
  end
297
308
 
298
309
  # 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.13.29'
14
+ VERSION = '15.13.31'
15
15
  end
@@ -128,6 +128,7 @@ require 'mailslurp_client/models/page_inbox_ruleset_dto'
128
128
  require 'mailslurp_client/models/page_missed_email_projection'
129
129
  require 'mailslurp_client/models/page_organization_inbox_projection'
130
130
  require 'mailslurp_client/models/page_phone_number_projection'
131
+ require 'mailslurp_client/models/page_scheduled_jobs'
131
132
  require 'mailslurp_client/models/page_sent_email_projection'
132
133
  require 'mailslurp_client/models/page_sent_email_with_queue_projection'
133
134
  require 'mailslurp_client/models/page_sms_projection'
@@ -145,6 +146,7 @@ require 'mailslurp_client/models/raw_email_json'
145
146
  require 'mailslurp_client/models/recipient'
146
147
  require 'mailslurp_client/models/reply_to_alias_email_options'
147
148
  require 'mailslurp_client/models/reply_to_email_options'
149
+ require 'mailslurp_client/models/scheduled_job'
148
150
  require 'mailslurp_client/models/send_email_options'
149
151
  require 'mailslurp_client/models/send_smtp_envelope_options'
150
152
  require 'mailslurp_client/models/send_with_queue_result'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mailslurp_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 15.13.29
4
+ version: 15.13.31
5
5
  platform: ruby
6
6
  authors:
7
7
  - mailslurp
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-08-19 00:00:00.000000000 Z
11
+ date: 2022-09-15 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
@@ -163,6 +163,7 @@ files:
163
163
  - lib/mailslurp_client/models/page_missed_email_projection.rb
164
164
  - lib/mailslurp_client/models/page_organization_inbox_projection.rb
165
165
  - lib/mailslurp_client/models/page_phone_number_projection.rb
166
+ - lib/mailslurp_client/models/page_scheduled_jobs.rb
166
167
  - lib/mailslurp_client/models/page_sent_email_projection.rb
167
168
  - lib/mailslurp_client/models/page_sent_email_with_queue_projection.rb
168
169
  - lib/mailslurp_client/models/page_sms_projection.rb
@@ -180,6 +181,7 @@ files:
180
181
  - lib/mailslurp_client/models/recipient.rb
181
182
  - lib/mailslurp_client/models/reply_to_alias_email_options.rb
182
183
  - lib/mailslurp_client/models/reply_to_email_options.rb
184
+ - lib/mailslurp_client/models/scheduled_job.rb
183
185
  - lib/mailslurp_client/models/send_email_options.rb
184
186
  - lib/mailslurp_client/models/send_smtp_envelope_options.rb
185
187
  - lib/mailslurp_client/models/send_with_queue_result.rb