mailslurp_client 15.13.17 → 15.13.18
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.
- checksums.yaml +4 -4
- data/lib/mailslurp_client/models/bounce_projection.rb +13 -13
- data/lib/mailslurp_client/models/email_projection.rb +10 -10
- data/lib/mailslurp_client/models/phone_number_projection.rb +15 -15
- data/lib/mailslurp_client/models/sent_email_projection.rb +67 -67
- data/lib/mailslurp_client/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 12ece14b8e2bdf31b237c731fc3fde169d17bde43a7ce9d5d7aed8d16ed17353
|
4
|
+
data.tar.gz: '01336801b3e380bc7551cde0aa33290b6875f6b8b8758d13cc6014be23bee94b'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fc4394ec74db36aa516d74c3462c7db496434f8ee2c27dd69a390be4ac468b4a8d7ef40c97dcafdac30b944ee7320dddb335698cdf367aa30f4c4c3d81a857e0
|
7
|
+
data.tar.gz: bd99b4b8d80d42a2dbf30d01d7d8cd57efe708143960b359d3e721f9e4c53ebed2bdd7dd16fca50eb6fee1759f30bdcfb1a4c082b7f7254e9ff160ccdbfeaf4b
|
@@ -23,10 +23,10 @@ module MailSlurpClient
|
|
23
23
|
|
24
24
|
attr_accessor :created_at
|
25
25
|
|
26
|
-
attr_accessor :bounce_type
|
27
|
-
|
28
26
|
attr_accessor :bounce_mta
|
29
27
|
|
28
|
+
attr_accessor :bounce_type
|
29
|
+
|
30
30
|
# Attribute mapping from ruby-style variable name to JSON key.
|
31
31
|
def self.attribute_map
|
32
32
|
{
|
@@ -34,8 +34,8 @@ module MailSlurpClient
|
|
34
34
|
:'sender' => :'sender',
|
35
35
|
:'subject' => :'subject',
|
36
36
|
:'created_at' => :'createdAt',
|
37
|
-
:'
|
38
|
-
:'
|
37
|
+
:'bounce_mta' => :'bounceMta',
|
38
|
+
:'bounce_type' => :'bounceType'
|
39
39
|
}
|
40
40
|
end
|
41
41
|
|
@@ -46,8 +46,8 @@ module MailSlurpClient
|
|
46
46
|
:'sender' => :'String',
|
47
47
|
:'subject' => :'String',
|
48
48
|
:'created_at' => :'DateTime',
|
49
|
-
:'
|
50
|
-
:'
|
49
|
+
:'bounce_mta' => :'String',
|
50
|
+
:'bounce_type' => :'String'
|
51
51
|
}
|
52
52
|
end
|
53
53
|
|
@@ -88,13 +88,13 @@ module MailSlurpClient
|
|
88
88
|
self.created_at = attributes[:'created_at']
|
89
89
|
end
|
90
90
|
|
91
|
-
if attributes.key?(:'bounce_type')
|
92
|
-
self.bounce_type = attributes[:'bounce_type']
|
93
|
-
end
|
94
|
-
|
95
91
|
if attributes.key?(:'bounce_mta')
|
96
92
|
self.bounce_mta = attributes[:'bounce_mta']
|
97
93
|
end
|
94
|
+
|
95
|
+
if attributes.key?(:'bounce_type')
|
96
|
+
self.bounce_type = attributes[:'bounce_type']
|
97
|
+
end
|
98
98
|
end
|
99
99
|
|
100
100
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -129,8 +129,8 @@ module MailSlurpClient
|
|
129
129
|
sender == o.sender &&
|
130
130
|
subject == o.subject &&
|
131
131
|
created_at == o.created_at &&
|
132
|
-
|
133
|
-
|
132
|
+
bounce_mta == o.bounce_mta &&
|
133
|
+
bounce_type == o.bounce_type
|
134
134
|
end
|
135
135
|
|
136
136
|
# @see the `==` method
|
@@ -142,7 +142,7 @@ module MailSlurpClient
|
|
142
142
|
# Calculates hash code according to all attributes.
|
143
143
|
# @return [Integer] Hash code
|
144
144
|
def hash
|
145
|
-
[id, sender, subject, created_at,
|
145
|
+
[id, sender, subject, created_at, bounce_mta, bounce_type].hash
|
146
146
|
end
|
147
147
|
|
148
148
|
# Builds the object from hash
|
@@ -21,10 +21,10 @@ module MailSlurpClient
|
|
21
21
|
|
22
22
|
attr_accessor :subject
|
23
23
|
|
24
|
-
attr_accessor :attachments
|
25
|
-
|
26
24
|
attr_accessor :inbox_id
|
27
25
|
|
26
|
+
attr_accessor :attachments
|
27
|
+
|
28
28
|
attr_accessor :to
|
29
29
|
|
30
30
|
attr_accessor :bcc
|
@@ -49,8 +49,8 @@ module MailSlurpClient
|
|
49
49
|
:'id' => :'id',
|
50
50
|
:'from' => :'from',
|
51
51
|
:'subject' => :'subject',
|
52
|
-
:'attachments' => :'attachments',
|
53
52
|
:'inbox_id' => :'inboxId',
|
53
|
+
:'attachments' => :'attachments',
|
54
54
|
:'to' => :'to',
|
55
55
|
:'bcc' => :'bcc',
|
56
56
|
:'cc' => :'cc',
|
@@ -69,8 +69,8 @@ module MailSlurpClient
|
|
69
69
|
:'id' => :'String',
|
70
70
|
:'from' => :'String',
|
71
71
|
:'subject' => :'String',
|
72
|
-
:'attachments' => :'Array<String>',
|
73
72
|
:'inbox_id' => :'String',
|
73
|
+
:'attachments' => :'Array<String>',
|
74
74
|
:'to' => :'Array<String>',
|
75
75
|
:'bcc' => :'Array<String>',
|
76
76
|
:'cc' => :'Array<String>',
|
@@ -116,16 +116,16 @@ module MailSlurpClient
|
|
116
116
|
self.subject = attributes[:'subject']
|
117
117
|
end
|
118
118
|
|
119
|
+
if attributes.key?(:'inbox_id')
|
120
|
+
self.inbox_id = attributes[:'inbox_id']
|
121
|
+
end
|
122
|
+
|
119
123
|
if attributes.key?(:'attachments')
|
120
124
|
if (value = attributes[:'attachments']).is_a?(Array)
|
121
125
|
self.attachments = value
|
122
126
|
end
|
123
127
|
end
|
124
128
|
|
125
|
-
if attributes.key?(:'inbox_id')
|
126
|
-
self.inbox_id = attributes[:'inbox_id']
|
127
|
-
end
|
128
|
-
|
129
129
|
if attributes.key?(:'to')
|
130
130
|
if (value = attributes[:'to']).is_a?(Array)
|
131
131
|
self.to = value
|
@@ -220,8 +220,8 @@ module MailSlurpClient
|
|
220
220
|
id == o.id &&
|
221
221
|
from == o.from &&
|
222
222
|
subject == o.subject &&
|
223
|
-
attachments == o.attachments &&
|
224
223
|
inbox_id == o.inbox_id &&
|
224
|
+
attachments == o.attachments &&
|
225
225
|
to == o.to &&
|
226
226
|
bcc == o.bcc &&
|
227
227
|
cc == o.cc &&
|
@@ -242,7 +242,7 @@ module MailSlurpClient
|
|
242
242
|
# Calculates hash code according to all attributes.
|
243
243
|
# @return [Integer] Hash code
|
244
244
|
def hash
|
245
|
-
[id, from, subject,
|
245
|
+
[id, from, subject, inbox_id, attachments, to, bcc, cc, created_at, domain_id, read, team_access, body_md5_hash, body_excerpt].hash
|
246
246
|
end
|
247
247
|
|
248
248
|
# Builds the object from hash
|
@@ -19,10 +19,10 @@ module MailSlurpClient
|
|
19
19
|
|
20
20
|
attr_accessor :user_id
|
21
21
|
|
22
|
-
attr_accessor :phone_country
|
23
|
-
|
24
22
|
attr_accessor :phone_number
|
25
23
|
|
24
|
+
attr_accessor :phone_country
|
25
|
+
|
26
26
|
attr_accessor :created_at
|
27
27
|
|
28
28
|
class EnumAttributeValidator
|
@@ -52,8 +52,8 @@ module MailSlurpClient
|
|
52
52
|
{
|
53
53
|
:'id' => :'id',
|
54
54
|
:'user_id' => :'userId',
|
55
|
-
:'phone_country' => :'phoneCountry',
|
56
55
|
:'phone_number' => :'phoneNumber',
|
56
|
+
:'phone_country' => :'phoneCountry',
|
57
57
|
:'created_at' => :'createdAt'
|
58
58
|
}
|
59
59
|
end
|
@@ -63,8 +63,8 @@ module MailSlurpClient
|
|
63
63
|
{
|
64
64
|
:'id' => :'String',
|
65
65
|
:'user_id' => :'String',
|
66
|
-
:'phone_country' => :'String',
|
67
66
|
:'phone_number' => :'String',
|
67
|
+
:'phone_country' => :'String',
|
68
68
|
:'created_at' => :'DateTime'
|
69
69
|
}
|
70
70
|
end
|
@@ -98,14 +98,14 @@ 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?(:'phone_number')
|
106
102
|
self.phone_number = attributes[:'phone_number']
|
107
103
|
end
|
108
104
|
|
105
|
+
if attributes.key?(:'phone_country')
|
106
|
+
self.phone_country = attributes[:'phone_country']
|
107
|
+
end
|
108
|
+
|
109
109
|
if attributes.key?(:'created_at')
|
110
110
|
self.created_at = attributes[:'created_at']
|
111
111
|
end
|
@@ -123,14 +123,14 @@ 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 @phone_number.nil?
|
131
127
|
invalid_properties.push('invalid value for "phone_number", phone_number cannot be nil.')
|
132
128
|
end
|
133
129
|
|
130
|
+
if @phone_country.nil?
|
131
|
+
invalid_properties.push('invalid value for "phone_country", phone_country cannot be nil.')
|
132
|
+
end
|
133
|
+
|
134
134
|
if @created_at.nil?
|
135
135
|
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
136
136
|
end
|
@@ -143,10 +143,10 @@ 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 @phone_number.nil?
|
146
147
|
return false if @phone_country.nil?
|
147
148
|
phone_country_validator = EnumAttributeValidator.new('String', ["US", "GB"])
|
148
149
|
return false unless phone_country_validator.valid?(@phone_country)
|
149
|
-
return false if @phone_number.nil?
|
150
150
|
return false if @created_at.nil?
|
151
151
|
true
|
152
152
|
end
|
@@ -168,8 +168,8 @@ 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
|
phone_number == o.phone_number &&
|
172
|
+
phone_country == o.phone_country &&
|
173
173
|
created_at == o.created_at
|
174
174
|
end
|
175
175
|
|
@@ -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,
|
185
|
+
[id, user_id, phone_number, phone_country, created_at].hash
|
186
186
|
end
|
187
187
|
|
188
188
|
# Builds the object from hash
|
@@ -23,21 +23,21 @@ module MailSlurpClient
|
|
23
23
|
|
24
24
|
attr_accessor :subject
|
25
25
|
|
26
|
-
attr_accessor :
|
26
|
+
attr_accessor :body_md5_hash
|
27
27
|
|
28
|
-
attr_accessor :
|
28
|
+
attr_accessor :bcc
|
29
29
|
|
30
|
-
attr_accessor :
|
30
|
+
attr_accessor :cc
|
31
31
|
|
32
|
-
attr_accessor :
|
32
|
+
attr_accessor :virtual_send
|
33
33
|
|
34
|
-
attr_accessor :
|
34
|
+
attr_accessor :inbox_id
|
35
35
|
|
36
|
-
attr_accessor :
|
36
|
+
attr_accessor :attachments
|
37
37
|
|
38
|
-
attr_accessor :
|
38
|
+
attr_accessor :to
|
39
39
|
|
40
|
-
attr_accessor :
|
40
|
+
attr_accessor :created_at
|
41
41
|
|
42
42
|
# Attribute mapping from ruby-style variable name to JSON key.
|
43
43
|
def self.attribute_map
|
@@ -46,14 +46,14 @@ module MailSlurpClient
|
|
46
46
|
:'from' => :'from',
|
47
47
|
:'user_id' => :'userId',
|
48
48
|
:'subject' => :'subject',
|
49
|
-
:'
|
50
|
-
:'attachments' => :'attachments',
|
51
|
-
:'inbox_id' => :'inboxId',
|
52
|
-
:'to' => :'to',
|
49
|
+
:'body_md5_hash' => :'bodyMD5Hash',
|
53
50
|
:'bcc' => :'bcc',
|
54
51
|
:'cc' => :'cc',
|
55
|
-
:'
|
56
|
-
:'
|
52
|
+
:'virtual_send' => :'virtualSend',
|
53
|
+
:'inbox_id' => :'inboxId',
|
54
|
+
:'attachments' => :'attachments',
|
55
|
+
:'to' => :'to',
|
56
|
+
:'created_at' => :'createdAt'
|
57
57
|
}
|
58
58
|
end
|
59
59
|
|
@@ -64,14 +64,14 @@ module MailSlurpClient
|
|
64
64
|
:'from' => :'String',
|
65
65
|
:'user_id' => :'String',
|
66
66
|
:'subject' => :'String',
|
67
|
-
:'
|
68
|
-
:'attachments' => :'Array<String>',
|
69
|
-
:'inbox_id' => :'String',
|
70
|
-
:'to' => :'Array<String>',
|
67
|
+
:'body_md5_hash' => :'String',
|
71
68
|
:'bcc' => :'Array<String>',
|
72
69
|
:'cc' => :'Array<String>',
|
73
|
-
:'
|
74
|
-
:'
|
70
|
+
:'virtual_send' => :'Boolean',
|
71
|
+
:'inbox_id' => :'String',
|
72
|
+
:'attachments' => :'Array<String>',
|
73
|
+
:'to' => :'Array<String>',
|
74
|
+
:'created_at' => :'DateTime'
|
75
75
|
}
|
76
76
|
end
|
77
77
|
|
@@ -112,24 +112,8 @@ module MailSlurpClient
|
|
112
112
|
self.subject = attributes[:'subject']
|
113
113
|
end
|
114
114
|
|
115
|
-
if attributes.key?(:'
|
116
|
-
self.
|
117
|
-
end
|
118
|
-
|
119
|
-
if attributes.key?(:'attachments')
|
120
|
-
if (value = attributes[:'attachments']).is_a?(Array)
|
121
|
-
self.attachments = value
|
122
|
-
end
|
123
|
-
end
|
124
|
-
|
125
|
-
if attributes.key?(:'inbox_id')
|
126
|
-
self.inbox_id = attributes[:'inbox_id']
|
127
|
-
end
|
128
|
-
|
129
|
-
if attributes.key?(:'to')
|
130
|
-
if (value = attributes[:'to']).is_a?(Array)
|
131
|
-
self.to = value
|
132
|
-
end
|
115
|
+
if attributes.key?(:'body_md5_hash')
|
116
|
+
self.body_md5_hash = attributes[:'body_md5_hash']
|
133
117
|
end
|
134
118
|
|
135
119
|
if attributes.key?(:'bcc')
|
@@ -144,13 +128,29 @@ module MailSlurpClient
|
|
144
128
|
end
|
145
129
|
end
|
146
130
|
|
147
|
-
if attributes.key?(:'body_md5_hash')
|
148
|
-
self.body_md5_hash = attributes[:'body_md5_hash']
|
149
|
-
end
|
150
|
-
|
151
131
|
if attributes.key?(:'virtual_send')
|
152
132
|
self.virtual_send = attributes[:'virtual_send']
|
153
133
|
end
|
134
|
+
|
135
|
+
if attributes.key?(:'inbox_id')
|
136
|
+
self.inbox_id = attributes[:'inbox_id']
|
137
|
+
end
|
138
|
+
|
139
|
+
if attributes.key?(:'attachments')
|
140
|
+
if (value = attributes[:'attachments']).is_a?(Array)
|
141
|
+
self.attachments = value
|
142
|
+
end
|
143
|
+
end
|
144
|
+
|
145
|
+
if attributes.key?(:'to')
|
146
|
+
if (value = attributes[:'to']).is_a?(Array)
|
147
|
+
self.to = value
|
148
|
+
end
|
149
|
+
end
|
150
|
+
|
151
|
+
if attributes.key?(:'created_at')
|
152
|
+
self.created_at = attributes[:'created_at']
|
153
|
+
end
|
154
154
|
end
|
155
155
|
|
156
156
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -165,32 +165,32 @@ module MailSlurpClient
|
|
165
165
|
invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
|
166
166
|
end
|
167
167
|
|
168
|
-
if @
|
169
|
-
invalid_properties.push('invalid value for "
|
168
|
+
if @bcc.nil?
|
169
|
+
invalid_properties.push('invalid value for "bcc", bcc cannot be nil.')
|
170
170
|
end
|
171
171
|
|
172
|
-
if @
|
173
|
-
invalid_properties.push('invalid value for "
|
172
|
+
if @cc.nil?
|
173
|
+
invalid_properties.push('invalid value for "cc", cc cannot be nil.')
|
174
174
|
end
|
175
175
|
|
176
|
-
if @
|
177
|
-
invalid_properties.push('invalid value for "
|
176
|
+
if @virtual_send.nil?
|
177
|
+
invalid_properties.push('invalid value for "virtual_send", virtual_send cannot be nil.')
|
178
178
|
end
|
179
179
|
|
180
|
-
if @
|
181
|
-
invalid_properties.push('invalid value for "
|
180
|
+
if @inbox_id.nil?
|
181
|
+
invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
|
182
182
|
end
|
183
183
|
|
184
|
-
if @
|
185
|
-
invalid_properties.push('invalid value for "
|
184
|
+
if @attachments.nil?
|
185
|
+
invalid_properties.push('invalid value for "attachments", attachments cannot be nil.')
|
186
186
|
end
|
187
187
|
|
188
|
-
if @
|
189
|
-
invalid_properties.push('invalid value for "
|
188
|
+
if @to.nil?
|
189
|
+
invalid_properties.push('invalid value for "to", to cannot be nil.')
|
190
190
|
end
|
191
191
|
|
192
|
-
if @
|
193
|
-
invalid_properties.push('invalid value for "
|
192
|
+
if @created_at.nil?
|
193
|
+
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
194
194
|
end
|
195
195
|
|
196
196
|
invalid_properties
|
@@ -201,13 +201,13 @@ 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 @created_at.nil?
|
205
|
-
return false if @attachments.nil?
|
206
|
-
return false if @inbox_id.nil?
|
207
|
-
return false if @to.nil?
|
208
204
|
return false if @bcc.nil?
|
209
205
|
return false if @cc.nil?
|
210
206
|
return false if @virtual_send.nil?
|
207
|
+
return false if @inbox_id.nil?
|
208
|
+
return false if @attachments.nil?
|
209
|
+
return false if @to.nil?
|
210
|
+
return false if @created_at.nil?
|
211
211
|
true
|
212
212
|
end
|
213
213
|
|
@@ -220,14 +220,14 @@ module MailSlurpClient
|
|
220
220
|
from == o.from &&
|
221
221
|
user_id == o.user_id &&
|
222
222
|
subject == o.subject &&
|
223
|
-
|
224
|
-
attachments == o.attachments &&
|
225
|
-
inbox_id == o.inbox_id &&
|
226
|
-
to == o.to &&
|
223
|
+
body_md5_hash == o.body_md5_hash &&
|
227
224
|
bcc == o.bcc &&
|
228
225
|
cc == o.cc &&
|
229
|
-
|
230
|
-
|
226
|
+
virtual_send == o.virtual_send &&
|
227
|
+
inbox_id == o.inbox_id &&
|
228
|
+
attachments == o.attachments &&
|
229
|
+
to == o.to &&
|
230
|
+
created_at == o.created_at
|
231
231
|
end
|
232
232
|
|
233
233
|
# @see the `==` method
|
@@ -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,
|
242
|
+
[id, from, user_id, subject, body_md5_hash, bcc, cc, virtual_send, inbox_id, attachments, to, created_at].hash
|
243
243
|
end
|
244
244
|
|
245
245
|
# Builds the object from hash
|
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.
|
4
|
+
version: 15.13.18
|
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-
|
11
|
+
date: 2022-08-18 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
|