mailslurp_client 15.12.16 → 15.13.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/mailslurp_client/api/inbox_controller_api.rb +89 -0
- data/lib/mailslurp_client/api/phone_controller_api.rb +64 -0
- data/lib/mailslurp_client/api/sent_emails_controller_api.rb +83 -3
- data/lib/mailslurp_client/api/sms_controller_api.rb +3 -3
- data/lib/mailslurp_client/api/wait_for_controller_api.rb +64 -0
- data/lib/mailslurp_client/api/webhook_controller_api.rb +70 -0
- data/lib/mailslurp_client/models/alias_projection.rb +19 -19
- data/lib/mailslurp_client/models/attachment_meta_data.rb +1 -1
- data/lib/mailslurp_client/models/bounce_projection.rb +22 -22
- data/lib/mailslurp_client/models/contact_projection.rb +13 -13
- data/lib/mailslurp_client/models/{delivery_status.rb → delivery_status_dto.rb} +18 -4
- data/lib/mailslurp_client/models/email.rb +11 -1
- data/lib/mailslurp_client/models/email_preview.rb +11 -1
- data/lib/mailslurp_client/models/email_projection.rb +42 -33
- data/lib/mailslurp_client/models/expired_inbox_record_projection.rb +15 -15
- data/lib/mailslurp_client/models/inbox_preview.rb +11 -1
- data/lib/mailslurp_client/models/missed_email_projection.rb +10 -10
- data/lib/mailslurp_client/models/organization_inbox_projection.rb +11 -1
- data/lib/mailslurp_client/models/page_delivery_status.rb +1 -1
- data/lib/mailslurp_client/models/page_sent_email_projection.rb +16 -16
- data/lib/mailslurp_client/models/page_sent_email_with_queue_projection.rb +16 -16
- data/lib/mailslurp_client/models/sent_email_dto.rb +11 -1
- data/lib/mailslurp_client/models/sent_email_projection.rb +56 -56
- data/lib/mailslurp_client/models/{sms_message.rb → sms_dto.rb} +9 -18
- data/lib/mailslurp_client/models/sms_preview.rb +15 -1
- data/lib/mailslurp_client/models/sms_projection.rb +32 -18
- data/lib/mailslurp_client/models/sort.rb +13 -13
- data/lib/mailslurp_client/models/test_phone_number_options.rb +211 -0
- data/lib/mailslurp_client/models/thread_projection.rb +20 -20
- data/lib/mailslurp_client/models/tracking_pixel_projection.rb +10 -10
- data/lib/mailslurp_client/models/wait_for_single_sms_options.rb +304 -0
- data/lib/mailslurp_client/models/webhook_new_email_payload.rb +11 -1
- data/lib/mailslurp_client/version.rb +1 -1
- data/lib/mailslurp_client.rb +4 -2
- metadata +6 -4
@@ -21,14 +21,14 @@ module MailSlurpClient
|
|
21
21
|
# ID of email thread
|
22
22
|
attr_accessor :id
|
23
23
|
|
24
|
-
#
|
25
|
-
attr_accessor :
|
24
|
+
# Thread subject
|
25
|
+
attr_accessor :subject
|
26
26
|
|
27
27
|
# Inbox ID
|
28
28
|
attr_accessor :inbox_id
|
29
29
|
|
30
|
-
#
|
31
|
-
attr_accessor :
|
30
|
+
# User ID
|
31
|
+
attr_accessor :user_id
|
32
32
|
|
33
33
|
# To recipients
|
34
34
|
attr_accessor :to
|
@@ -53,9 +53,9 @@ module MailSlurpClient
|
|
53
53
|
{
|
54
54
|
:'name' => :'name',
|
55
55
|
:'id' => :'id',
|
56
|
-
:'user_id' => :'userId',
|
57
|
-
:'inbox_id' => :'inboxId',
|
58
56
|
:'subject' => :'subject',
|
57
|
+
:'inbox_id' => :'inboxId',
|
58
|
+
:'user_id' => :'userId',
|
59
59
|
:'to' => :'to',
|
60
60
|
:'created_at' => :'createdAt',
|
61
61
|
:'updated_at' => :'updatedAt',
|
@@ -70,9 +70,9 @@ module MailSlurpClient
|
|
70
70
|
{
|
71
71
|
:'name' => :'String',
|
72
72
|
:'id' => :'String',
|
73
|
-
:'user_id' => :'String',
|
74
|
-
:'inbox_id' => :'String',
|
75
73
|
:'subject' => :'String',
|
74
|
+
:'inbox_id' => :'String',
|
75
|
+
:'user_id' => :'String',
|
76
76
|
:'to' => :'Array<String>',
|
77
77
|
:'created_at' => :'DateTime',
|
78
78
|
:'updated_at' => :'DateTime',
|
@@ -111,16 +111,16 @@ module MailSlurpClient
|
|
111
111
|
self.id = attributes[:'id']
|
112
112
|
end
|
113
113
|
|
114
|
-
if attributes.key?(:'
|
115
|
-
self.
|
114
|
+
if attributes.key?(:'subject')
|
115
|
+
self.subject = attributes[:'subject']
|
116
116
|
end
|
117
117
|
|
118
118
|
if attributes.key?(:'inbox_id')
|
119
119
|
self.inbox_id = attributes[:'inbox_id']
|
120
120
|
end
|
121
121
|
|
122
|
-
if attributes.key?(:'
|
123
|
-
self.
|
122
|
+
if attributes.key?(:'user_id')
|
123
|
+
self.user_id = attributes[:'user_id']
|
124
124
|
end
|
125
125
|
|
126
126
|
if attributes.key?(:'to')
|
@@ -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 @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 @user_id.nil?
|
197
196
|
return false if @inbox_id.nil?
|
197
|
+
return false if @user_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?
|
@@ -209,9 +209,9 @@ module MailSlurpClient
|
|
209
209
|
self.class == o.class &&
|
210
210
|
name == o.name &&
|
211
211
|
id == o.id &&
|
212
|
-
user_id == o.user_id &&
|
213
|
-
inbox_id == o.inbox_id &&
|
214
212
|
subject == o.subject &&
|
213
|
+
inbox_id == o.inbox_id &&
|
214
|
+
user_id == o.user_id &&
|
215
215
|
to == o.to &&
|
216
216
|
created_at == o.created_at &&
|
217
217
|
updated_at == o.updated_at &&
|
@@ -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,
|
232
|
+
[name, id, subject, inbox_id, user_id, to, created_at, updated_at, 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,
|
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
|
@@ -0,0 +1,304 @@
|
|
1
|
+
=begin
|
2
|
+
#MailSlurp API
|
3
|
+
|
4
|
+
#MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 6.5.2
|
7
|
+
Contact: contact@mailslurp.dev
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 4.3.1
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
|
15
|
+
module MailSlurpClient
|
16
|
+
class WaitForSingleSmsOptions
|
17
|
+
attr_accessor :phone_number_id
|
18
|
+
|
19
|
+
attr_accessor :timeout
|
20
|
+
|
21
|
+
attr_accessor :unread_only
|
22
|
+
|
23
|
+
attr_accessor :before
|
24
|
+
|
25
|
+
attr_accessor :since
|
26
|
+
|
27
|
+
attr_accessor :sort_direction
|
28
|
+
|
29
|
+
attr_accessor :delay
|
30
|
+
|
31
|
+
class EnumAttributeValidator
|
32
|
+
attr_reader :datatype
|
33
|
+
attr_reader :allowable_values
|
34
|
+
|
35
|
+
def initialize(datatype, allowable_values)
|
36
|
+
@allowable_values = allowable_values.map do |value|
|
37
|
+
case datatype.to_s
|
38
|
+
when /Integer/i
|
39
|
+
value.to_i
|
40
|
+
when /Float/i
|
41
|
+
value.to_f
|
42
|
+
else
|
43
|
+
value
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
47
|
+
|
48
|
+
def valid?(value)
|
49
|
+
!value || allowable_values.include?(value)
|
50
|
+
end
|
51
|
+
end
|
52
|
+
|
53
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
54
|
+
def self.attribute_map
|
55
|
+
{
|
56
|
+
:'phone_number_id' => :'phoneNumberId',
|
57
|
+
:'timeout' => :'timeout',
|
58
|
+
:'unread_only' => :'unreadOnly',
|
59
|
+
:'before' => :'before',
|
60
|
+
:'since' => :'since',
|
61
|
+
:'sort_direction' => :'sortDirection',
|
62
|
+
:'delay' => :'delay'
|
63
|
+
}
|
64
|
+
end
|
65
|
+
|
66
|
+
# Attribute type mapping.
|
67
|
+
def self.openapi_types
|
68
|
+
{
|
69
|
+
:'phone_number_id' => :'String',
|
70
|
+
:'timeout' => :'Integer',
|
71
|
+
:'unread_only' => :'Boolean',
|
72
|
+
:'before' => :'DateTime',
|
73
|
+
:'since' => :'DateTime',
|
74
|
+
:'sort_direction' => :'String',
|
75
|
+
:'delay' => :'Integer'
|
76
|
+
}
|
77
|
+
end
|
78
|
+
|
79
|
+
# List of attributes with nullable: true
|
80
|
+
def self.openapi_nullable
|
81
|
+
Set.new([
|
82
|
+
])
|
83
|
+
end
|
84
|
+
|
85
|
+
# Initializes the object
|
86
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
87
|
+
def initialize(attributes = {})
|
88
|
+
if (!attributes.is_a?(Hash))
|
89
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `MailSlurpClient::WaitForSingleSmsOptions` initialize method"
|
90
|
+
end
|
91
|
+
|
92
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
93
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
94
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
95
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `MailSlurpClient::WaitForSingleSmsOptions`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
96
|
+
end
|
97
|
+
h[k.to_sym] = v
|
98
|
+
}
|
99
|
+
|
100
|
+
if attributes.key?(:'phone_number_id')
|
101
|
+
self.phone_number_id = attributes[:'phone_number_id']
|
102
|
+
end
|
103
|
+
|
104
|
+
if attributes.key?(:'timeout')
|
105
|
+
self.timeout = attributes[:'timeout']
|
106
|
+
end
|
107
|
+
|
108
|
+
if attributes.key?(:'unread_only')
|
109
|
+
self.unread_only = attributes[:'unread_only']
|
110
|
+
end
|
111
|
+
|
112
|
+
if attributes.key?(:'before')
|
113
|
+
self.before = attributes[:'before']
|
114
|
+
end
|
115
|
+
|
116
|
+
if attributes.key?(:'since')
|
117
|
+
self.since = attributes[:'since']
|
118
|
+
end
|
119
|
+
|
120
|
+
if attributes.key?(:'sort_direction')
|
121
|
+
self.sort_direction = attributes[:'sort_direction']
|
122
|
+
end
|
123
|
+
|
124
|
+
if attributes.key?(:'delay')
|
125
|
+
self.delay = attributes[:'delay']
|
126
|
+
end
|
127
|
+
end
|
128
|
+
|
129
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
130
|
+
# @return Array for valid properties with the reasons
|
131
|
+
def list_invalid_properties
|
132
|
+
invalid_properties = Array.new
|
133
|
+
if @phone_number_id.nil?
|
134
|
+
invalid_properties.push('invalid value for "phone_number_id", phone_number_id cannot be nil.')
|
135
|
+
end
|
136
|
+
|
137
|
+
if @timeout.nil?
|
138
|
+
invalid_properties.push('invalid value for "timeout", timeout cannot be nil.')
|
139
|
+
end
|
140
|
+
|
141
|
+
invalid_properties
|
142
|
+
end
|
143
|
+
|
144
|
+
# Check to see if the all the properties in the model are valid
|
145
|
+
# @return true if the model is valid
|
146
|
+
def valid?
|
147
|
+
return false if @phone_number_id.nil?
|
148
|
+
return false if @timeout.nil?
|
149
|
+
sort_direction_validator = EnumAttributeValidator.new('String', ["ASC", "DESC"])
|
150
|
+
return false unless sort_direction_validator.valid?(@sort_direction)
|
151
|
+
true
|
152
|
+
end
|
153
|
+
|
154
|
+
# Custom attribute writer method checking allowed values (enum).
|
155
|
+
# @param [Object] sort_direction Object to be assigned
|
156
|
+
def sort_direction=(sort_direction)
|
157
|
+
validator = EnumAttributeValidator.new('String', ["ASC", "DESC"])
|
158
|
+
unless validator.valid?(sort_direction)
|
159
|
+
fail ArgumentError, "invalid value for \"sort_direction\", must be one of #{validator.allowable_values}."
|
160
|
+
end
|
161
|
+
@sort_direction = sort_direction
|
162
|
+
end
|
163
|
+
|
164
|
+
# Checks equality by comparing each attribute.
|
165
|
+
# @param [Object] Object to be compared
|
166
|
+
def ==(o)
|
167
|
+
return true if self.equal?(o)
|
168
|
+
self.class == o.class &&
|
169
|
+
phone_number_id == o.phone_number_id &&
|
170
|
+
timeout == o.timeout &&
|
171
|
+
unread_only == o.unread_only &&
|
172
|
+
before == o.before &&
|
173
|
+
since == o.since &&
|
174
|
+
sort_direction == o.sort_direction &&
|
175
|
+
delay == o.delay
|
176
|
+
end
|
177
|
+
|
178
|
+
# @see the `==` method
|
179
|
+
# @param [Object] Object to be compared
|
180
|
+
def eql?(o)
|
181
|
+
self == o
|
182
|
+
end
|
183
|
+
|
184
|
+
# Calculates hash code according to all attributes.
|
185
|
+
# @return [Integer] Hash code
|
186
|
+
def hash
|
187
|
+
[phone_number_id, timeout, unread_only, before, since, sort_direction, delay].hash
|
188
|
+
end
|
189
|
+
|
190
|
+
# Builds the object from hash
|
191
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
192
|
+
# @return [Object] Returns the model itself
|
193
|
+
def self.build_from_hash(attributes)
|
194
|
+
new.build_from_hash(attributes)
|
195
|
+
end
|
196
|
+
|
197
|
+
# Builds the object from hash
|
198
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
199
|
+
# @return [Object] Returns the model itself
|
200
|
+
def build_from_hash(attributes)
|
201
|
+
return nil unless attributes.is_a?(Hash)
|
202
|
+
self.class.openapi_types.each_pair do |key, type|
|
203
|
+
if type =~ /\AArray<(.*)>/i
|
204
|
+
# check to ensure the input is an array given that the attribute
|
205
|
+
# is documented as an array but the input is not
|
206
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
207
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
208
|
+
end
|
209
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
210
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
211
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
212
|
+
end
|
213
|
+
|
214
|
+
self
|
215
|
+
end
|
216
|
+
|
217
|
+
# Deserializes the data based on type
|
218
|
+
# @param string type Data type
|
219
|
+
# @param string value Value to be deserialized
|
220
|
+
# @return [Object] Deserialized data
|
221
|
+
def _deserialize(type, value)
|
222
|
+
case type.to_sym
|
223
|
+
when :DateTime
|
224
|
+
DateTime.parse(value)
|
225
|
+
when :Date
|
226
|
+
Date.parse(value)
|
227
|
+
when :String
|
228
|
+
value.to_s
|
229
|
+
when :Integer
|
230
|
+
value.to_i
|
231
|
+
when :Float
|
232
|
+
value.to_f
|
233
|
+
when :Boolean
|
234
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
235
|
+
true
|
236
|
+
else
|
237
|
+
false
|
238
|
+
end
|
239
|
+
when :Object
|
240
|
+
# generic object (usually a Hash), return directly
|
241
|
+
value
|
242
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
243
|
+
inner_type = Regexp.last_match[:inner_type]
|
244
|
+
value.map { |v| _deserialize(inner_type, v) }
|
245
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
246
|
+
k_type = Regexp.last_match[:k_type]
|
247
|
+
v_type = Regexp.last_match[:v_type]
|
248
|
+
{}.tap do |hash|
|
249
|
+
value.each do |k, v|
|
250
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
251
|
+
end
|
252
|
+
end
|
253
|
+
else # model
|
254
|
+
MailSlurpClient.const_get(type).build_from_hash(value)
|
255
|
+
end
|
256
|
+
end
|
257
|
+
|
258
|
+
# Returns the string representation of the object
|
259
|
+
# @return [String] String presentation of the object
|
260
|
+
def to_s
|
261
|
+
to_hash.to_s
|
262
|
+
end
|
263
|
+
|
264
|
+
# to_body is an alias to to_hash (backward compatibility)
|
265
|
+
# @return [Hash] Returns the object in the form of hash
|
266
|
+
def to_body
|
267
|
+
to_hash
|
268
|
+
end
|
269
|
+
|
270
|
+
# Returns the object in the form of hash
|
271
|
+
# @return [Hash] Returns the object in the form of hash
|
272
|
+
def to_hash
|
273
|
+
hash = {}
|
274
|
+
self.class.attribute_map.each_pair do |attr, param|
|
275
|
+
value = self.send(attr)
|
276
|
+
if value.nil?
|
277
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
278
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
279
|
+
end
|
280
|
+
|
281
|
+
hash[param] = _to_hash(value)
|
282
|
+
end
|
283
|
+
hash
|
284
|
+
end
|
285
|
+
|
286
|
+
# Outputs non-array value in the form of hash
|
287
|
+
# For object, use to_hash. Otherwise, just return the value
|
288
|
+
# @param [Object] value Any valid value
|
289
|
+
# @return [Hash] Returns the value in the form of hash
|
290
|
+
def _to_hash(value)
|
291
|
+
if value.is_a?(Array)
|
292
|
+
value.compact.map { |v| _to_hash(v) }
|
293
|
+
elsif value.is_a?(Hash)
|
294
|
+
{}.tap do |hash|
|
295
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
296
|
+
end
|
297
|
+
elsif value.respond_to? :to_hash
|
298
|
+
value.to_hash
|
299
|
+
else
|
300
|
+
value
|
301
|
+
end
|
302
|
+
end
|
303
|
+
end
|
304
|
+
end
|
@@ -30,6 +30,9 @@ module MailSlurpClient
|
|
30
30
|
# Id of the inbox that received an email
|
31
31
|
attr_accessor :inbox_id
|
32
32
|
|
33
|
+
# Id of the domain that received an email
|
34
|
+
attr_accessor :domain_id
|
35
|
+
|
33
36
|
# ID of the email that was received. Use this ID for fetching the email with the `EmailController`.
|
34
37
|
attr_accessor :email_id
|
35
38
|
|
@@ -84,6 +87,7 @@ module MailSlurpClient
|
|
84
87
|
:'event_name' => :'eventName',
|
85
88
|
:'webhook_name' => :'webhookName',
|
86
89
|
:'inbox_id' => :'inboxId',
|
90
|
+
:'domain_id' => :'domainId',
|
87
91
|
:'email_id' => :'emailId',
|
88
92
|
:'created_at' => :'createdAt',
|
89
93
|
:'to' => :'to',
|
@@ -103,6 +107,7 @@ module MailSlurpClient
|
|
103
107
|
:'event_name' => :'String',
|
104
108
|
:'webhook_name' => :'String',
|
105
109
|
:'inbox_id' => :'String',
|
110
|
+
:'domain_id' => :'String',
|
106
111
|
:'email_id' => :'String',
|
107
112
|
:'created_at' => :'DateTime',
|
108
113
|
:'to' => :'Array<String>',
|
@@ -155,6 +160,10 @@ module MailSlurpClient
|
|
155
160
|
self.inbox_id = attributes[:'inbox_id']
|
156
161
|
end
|
157
162
|
|
163
|
+
if attributes.key?(:'domain_id')
|
164
|
+
self.domain_id = attributes[:'domain_id']
|
165
|
+
end
|
166
|
+
|
158
167
|
if attributes.key?(:'email_id')
|
159
168
|
self.email_id = attributes[:'email_id']
|
160
169
|
end
|
@@ -286,6 +295,7 @@ module MailSlurpClient
|
|
286
295
|
event_name == o.event_name &&
|
287
296
|
webhook_name == o.webhook_name &&
|
288
297
|
inbox_id == o.inbox_id &&
|
298
|
+
domain_id == o.domain_id &&
|
289
299
|
email_id == o.email_id &&
|
290
300
|
created_at == o.created_at &&
|
291
301
|
to == o.to &&
|
@@ -305,7 +315,7 @@ module MailSlurpClient
|
|
305
315
|
# Calculates hash code according to all attributes.
|
306
316
|
# @return [Integer] Hash code
|
307
317
|
def hash
|
308
|
-
[message_id, webhook_id, event_name, webhook_name, inbox_id, email_id, created_at, to, from, cc, bcc, subject, attachment_meta_datas].hash
|
318
|
+
[message_id, webhook_id, event_name, webhook_name, inbox_id, domain_id, email_id, created_at, to, from, cc, bcc, subject, attachment_meta_datas].hash
|
309
319
|
end
|
310
320
|
|
311
321
|
# Builds the object from hash
|
data/lib/mailslurp_client.rb
CHANGED
@@ -49,7 +49,7 @@ require 'mailslurp_client/models/create_webhook_options'
|
|
49
49
|
require 'mailslurp_client/models/dns_lookup_options'
|
50
50
|
require 'mailslurp_client/models/dns_lookup_result'
|
51
51
|
require 'mailslurp_client/models/dns_lookup_results'
|
52
|
-
require 'mailslurp_client/models/
|
52
|
+
require 'mailslurp_client/models/delivery_status_dto'
|
53
53
|
require 'mailslurp_client/models/describe_domain_options'
|
54
54
|
require 'mailslurp_client/models/describe_mail_server_domain_result'
|
55
55
|
require 'mailslurp_client/models/domain_dto'
|
@@ -153,8 +153,8 @@ require 'mailslurp_client/models/sent_email_dto'
|
|
153
153
|
require 'mailslurp_client/models/sent_email_projection'
|
154
154
|
require 'mailslurp_client/models/set_inbox_favourited_options'
|
155
155
|
require 'mailslurp_client/models/simple_send_email_options'
|
156
|
+
require 'mailslurp_client/models/sms_dto'
|
156
157
|
require 'mailslurp_client/models/sms_match_option'
|
157
|
-
require 'mailslurp_client/models/sms_message'
|
158
158
|
require 'mailslurp_client/models/sms_preview'
|
159
159
|
require 'mailslurp_client/models/sms_projection'
|
160
160
|
require 'mailslurp_client/models/sort'
|
@@ -164,6 +164,7 @@ require 'mailslurp_client/models/template_projection'
|
|
164
164
|
require 'mailslurp_client/models/template_variable'
|
165
165
|
require 'mailslurp_client/models/test_new_inbox_forwarder_options'
|
166
166
|
require 'mailslurp_client/models/test_new_inbox_ruleset_options'
|
167
|
+
require 'mailslurp_client/models/test_phone_number_options'
|
167
168
|
require 'mailslurp_client/models/thread_projection'
|
168
169
|
require 'mailslurp_client/models/tracking_pixel_dto'
|
169
170
|
require 'mailslurp_client/models/tracking_pixel_projection'
|
@@ -184,6 +185,7 @@ require 'mailslurp_client/models/verify_email_address_options'
|
|
184
185
|
require 'mailslurp_client/models/verify_webhook_signature_options'
|
185
186
|
require 'mailslurp_client/models/verify_webhook_signature_results'
|
186
187
|
require 'mailslurp_client/models/wait_for_conditions'
|
188
|
+
require 'mailslurp_client/models/wait_for_single_sms_options'
|
187
189
|
require 'mailslurp_client/models/wait_for_sms_conditions'
|
188
190
|
require 'mailslurp_client/models/webhook_bounce_payload'
|
189
191
|
require 'mailslurp_client/models/webhook_bounce_recipient_payload'
|
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.
|
4
|
+
version: 15.13.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- mailslurp
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-07-
|
11
|
+
date: 2022-07-30 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
|
@@ -81,7 +81,7 @@ files:
|
|
81
81
|
- lib/mailslurp_client/models/create_template_options.rb
|
82
82
|
- lib/mailslurp_client/models/create_tracking_pixel_options.rb
|
83
83
|
- lib/mailslurp_client/models/create_webhook_options.rb
|
84
|
-
- lib/mailslurp_client/models/
|
84
|
+
- lib/mailslurp_client/models/delivery_status_dto.rb
|
85
85
|
- lib/mailslurp_client/models/describe_domain_options.rb
|
86
86
|
- lib/mailslurp_client/models/describe_mail_server_domain_result.rb
|
87
87
|
- lib/mailslurp_client/models/dns_lookup_options.rb
|
@@ -188,8 +188,8 @@ files:
|
|
188
188
|
- lib/mailslurp_client/models/sent_email_projection.rb
|
189
189
|
- lib/mailslurp_client/models/set_inbox_favourited_options.rb
|
190
190
|
- lib/mailslurp_client/models/simple_send_email_options.rb
|
191
|
+
- lib/mailslurp_client/models/sms_dto.rb
|
191
192
|
- lib/mailslurp_client/models/sms_match_option.rb
|
192
|
-
- lib/mailslurp_client/models/sms_message.rb
|
193
193
|
- lib/mailslurp_client/models/sms_preview.rb
|
194
194
|
- lib/mailslurp_client/models/sms_projection.rb
|
195
195
|
- lib/mailslurp_client/models/sort.rb
|
@@ -199,6 +199,7 @@ files:
|
|
199
199
|
- lib/mailslurp_client/models/template_variable.rb
|
200
200
|
- lib/mailslurp_client/models/test_new_inbox_forwarder_options.rb
|
201
201
|
- lib/mailslurp_client/models/test_new_inbox_ruleset_options.rb
|
202
|
+
- lib/mailslurp_client/models/test_phone_number_options.rb
|
202
203
|
- lib/mailslurp_client/models/thread_projection.rb
|
203
204
|
- lib/mailslurp_client/models/tracking_pixel_dto.rb
|
204
205
|
- lib/mailslurp_client/models/tracking_pixel_projection.rb
|
@@ -219,6 +220,7 @@ files:
|
|
219
220
|
- lib/mailslurp_client/models/verify_webhook_signature_options.rb
|
220
221
|
- lib/mailslurp_client/models/verify_webhook_signature_results.rb
|
221
222
|
- lib/mailslurp_client/models/wait_for_conditions.rb
|
223
|
+
- lib/mailslurp_client/models/wait_for_single_sms_options.rb
|
222
224
|
- lib/mailslurp_client/models/wait_for_sms_conditions.rb
|
223
225
|
- lib/mailslurp_client/models/webhook_bounce_payload.rb
|
224
226
|
- lib/mailslurp_client/models/webhook_bounce_recipient_payload.rb
|