mailslurp_client 15.5.4 → 15.5.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +11 -11
- data/lib/mailslurp_client/api/attachment_controller_api.rb +1 -1
- data/lib/mailslurp_client/models/attachment_projection.rb +16 -16
- data/lib/mailslurp_client/models/contact_projection.rb +13 -13
- data/lib/mailslurp_client/models/email_projection.rb +26 -26
- data/lib/mailslurp_client/models/sent_email_projection.rb +31 -31
- data/lib/mailslurp_client/models/thread_projection.rb +15 -15
- data/lib/mailslurp_client/models/unknown_missed_email_projection.rb +13 -13
- data/lib/mailslurp_client/models/webhook_projection.rb +12 -12
- 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: a4c1edd7d2313f6dfb7fb30cce0befaeb0fc1c63a1c2dceda5e1e0a807d5a1a8
|
4
|
+
data.tar.gz: 2de675537c0d500cc406e03b44eee3c92b7cb375b9fd6dd260821cc983c400c3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 89bd585939760abc3b0c80227a7f3e0f47b8379e05efb51f5f16ec9f1991b30da71d017d647e022f3bb250835436df160aa0693033ef7bc906b56c4864fcf176
|
7
|
+
data.tar.gz: 98d00e767665363cac6a1da4dbd7c09796f8fec4c0c77747f6f25e6c873386bdb96e78bd790a5954da14ab7f61196bedeb9ab91b16ca7ac3ff3216d9d71db3e3
|
data/README.md
CHANGED
@@ -6,7 +6,7 @@ MailSlurp is an email API service that lets you create real email addresses in c
|
|
6
6
|
|
7
7
|
## Quick links
|
8
8
|
|
9
|
-
- [Method Documentation](https://
|
9
|
+
- [Method Documentation](https://docs.mailslurp.com/ruby/docs/)
|
10
10
|
- [Gem Package](https://rubygems.org/gems/mailslurp_client)
|
11
11
|
- [Github Source](https://github.com/mailslurp/mailslurp-client-ruby)
|
12
12
|
- [SMTP access details](https://www.mailslurp.com/guides/smtp-imap/)
|
@@ -14,9 +14,9 @@ MailSlurp is an email API service that lets you create real email addresses in c
|
|
14
14
|
|
15
15
|
### Common controllers
|
16
16
|
|
17
|
-
- [Email controller](https://
|
18
|
-
- [Inbox controller](https://
|
19
|
-
- [WaitFor controller](https://
|
17
|
+
- [Email controller](https://docs.mailslurp.com/ruby/docs/EmailControllerApi/) send and receive emails
|
18
|
+
- [Inbox controller](https://docs.mailslurp.com/ruby/docs/InboxControllerApi/) create and manage email addresses
|
19
|
+
- [WaitFor controller](https://docs.mailslurp.com/ruby/docs/WaitForControllerApi/) wait for expected emails to arrive
|
20
20
|
|
21
21
|
|
22
22
|
### Example tutorials
|
@@ -27,7 +27,7 @@ This section describes how to get up and running with the Ruby client.
|
|
27
27
|
|
28
28
|
See the [examples page](https://www.mailslurp.com/examples/) for more examples and use with common frameworks such as Rails and RSpec.
|
29
29
|
|
30
|
-
See the method documentation for a [list of all functions](https://
|
30
|
+
See the method documentation for a [list of all functions](https://docs.mailslurp.com/ruby/docs/)
|
31
31
|
|
32
32
|
### Create API Key
|
33
33
|
|
@@ -82,7 +82,7 @@ Here are some common uses:
|
|
82
82
|
|
83
83
|
### Create inboxes
|
84
84
|
|
85
|
-
To use MailSlurp you need to create inboxes. These are email accounts that have an ID and a real email address. See methods on the [inbox controller](https://
|
85
|
+
To use MailSlurp you need to create inboxes. These are email accounts that have an ID and a real email address. See methods on the [inbox controller](https://docs.mailslurp.com/ruby/docs/InboxControllerApi/) for more information.
|
86
86
|
|
87
87
|
```ruby
|
88
88
|
inbox_controller = MailSlurpClient::InboxControllerApi.new
|
@@ -177,7 +177,7 @@ end
|
|
177
177
|
|
178
178
|
### List inboxes
|
179
179
|
|
180
|
-
Inboxes you create can be listed in a paginated way using the [InboxController](https://
|
180
|
+
Inboxes you create can be listed in a paginated way using the [InboxController](https://docs.mailslurp.com/ruby/docs/InboxControllerApi/)).
|
181
181
|
|
182
182
|
```ruby
|
183
183
|
it 'can list inboxes' do
|
@@ -198,7 +198,7 @@ end
|
|
198
198
|
### Send emails
|
199
199
|
|
200
200
|
You can send HTML emails easily with the inbox controller. First create an inbox then use its ID with the `send_email` method.
|
201
|
-
To send attachments see the [Method Documentation](https://
|
201
|
+
To send attachments see the [Method Documentation](https://docs.mailslurp.com/ruby/docs/).
|
202
202
|
|
203
203
|
```ruby
|
204
204
|
# create an inbox
|
@@ -240,7 +240,7 @@ inbox_controller.send_email(inbox_1.id, opts)
|
|
240
240
|
|
241
241
|
### Receive emails
|
242
242
|
|
243
|
-
To read already existing emails use the [Email Controller](https://
|
243
|
+
To read already existing emails use the [Email Controller](https://docs.mailslurp.com/ruby/docs/EmailControllerApi/). To wait for expected emails to arrive use the [WaitFor Controller](https://docs.mailslurp.com/ruby/docs/WaitForControllerApi/).
|
244
244
|
You can use MailSlurp to wait for at least 1 unread email in an inbox and return it.
|
245
245
|
If a timeout is exceeded it will throw an error instead:
|
246
246
|
|
@@ -274,7 +274,7 @@ code, * = match.captures
|
|
274
274
|
|
275
275
|
### Attachments
|
276
276
|
|
277
|
-
You can send attachments by first uploading files with the [AttachmentControllerApi](https://
|
277
|
+
You can send attachments by first uploading files with the [AttachmentControllerApi](https://docs.mailslurp.com/ruby/docs/AttachmentControllerApi/) then using the returned attachment IDs in the send email method.
|
278
278
|
|
279
279
|
MailSlurp endpoints use base64 string encoding for upload and download files. To encode or decode strings in Ruby make sure you use the **strict** variables that avoid added newlines.
|
280
280
|
|
@@ -420,4 +420,4 @@ end
|
|
420
420
|
|
421
421
|
## SDK Documentation
|
422
422
|
|
423
|
-
See the [examples page](https://www.mailslurp.com/examples/) or the full [Method Documentation](https://
|
423
|
+
See the [examples page](https://www.mailslurp.com/examples/) or the full [Method Documentation](https://docs.mailslurp.com/ruby/docs/) on Github.
|
@@ -545,7 +545,6 @@ module MailSlurpClient
|
|
545
545
|
|
546
546
|
# query parameters
|
547
547
|
query_params = opts[:query_params] || {}
|
548
|
-
query_params[:'contentType'] = opts[:'content_type'] if !opts[:'content_type'].nil?
|
549
548
|
query_params[:'filename'] = opts[:'filename'] if !opts[:'filename'].nil?
|
550
549
|
|
551
550
|
# header parameters
|
@@ -554,6 +553,7 @@ module MailSlurpClient
|
|
554
553
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
555
554
|
# HTTP header 'Content-Type'
|
556
555
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/octet-stream'])
|
556
|
+
header_params[:'contentType'] = opts[:'content_type'] if !opts[:'content_type'].nil?
|
557
557
|
|
558
558
|
# form parameters
|
559
559
|
form_params = opts[:form_params] || {}
|
@@ -22,13 +22,13 @@ module MailSlurpClient
|
|
22
22
|
# Content type of attachment.
|
23
23
|
attr_accessor :content_type
|
24
24
|
|
25
|
+
# Attachment ID
|
26
|
+
attr_accessor :attachment_id
|
27
|
+
|
25
28
|
attr_accessor :user_id
|
26
29
|
|
27
30
|
attr_accessor :created_at
|
28
31
|
|
29
|
-
# Attachment ID
|
30
|
-
attr_accessor :attachment_id
|
31
|
-
|
32
32
|
attr_accessor :updated_at
|
33
33
|
|
34
34
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -37,9 +37,9 @@ module MailSlurpClient
|
|
37
37
|
:'name' => :'name',
|
38
38
|
:'content_length' => :'contentLength',
|
39
39
|
:'content_type' => :'contentType',
|
40
|
+
:'attachment_id' => :'attachmentId',
|
40
41
|
:'user_id' => :'userId',
|
41
42
|
:'created_at' => :'createdAt',
|
42
|
-
:'attachment_id' => :'attachmentId',
|
43
43
|
:'updated_at' => :'updatedAt'
|
44
44
|
}
|
45
45
|
end
|
@@ -50,9 +50,9 @@ module MailSlurpClient
|
|
50
50
|
:'name' => :'String',
|
51
51
|
:'content_length' => :'Integer',
|
52
52
|
:'content_type' => :'String',
|
53
|
+
:'attachment_id' => :'String',
|
53
54
|
:'user_id' => :'String',
|
54
55
|
:'created_at' => :'DateTime',
|
55
|
-
:'attachment_id' => :'String',
|
56
56
|
:'updated_at' => :'DateTime'
|
57
57
|
}
|
58
58
|
end
|
@@ -90,6 +90,10 @@ module MailSlurpClient
|
|
90
90
|
self.content_type = attributes[:'content_type']
|
91
91
|
end
|
92
92
|
|
93
|
+
if attributes.key?(:'attachment_id')
|
94
|
+
self.attachment_id = attributes[:'attachment_id']
|
95
|
+
end
|
96
|
+
|
93
97
|
if attributes.key?(:'user_id')
|
94
98
|
self.user_id = attributes[:'user_id']
|
95
99
|
end
|
@@ -98,10 +102,6 @@ module MailSlurpClient
|
|
98
102
|
self.created_at = attributes[:'created_at']
|
99
103
|
end
|
100
104
|
|
101
|
-
if attributes.key?(:'attachment_id')
|
102
|
-
self.attachment_id = attributes[:'attachment_id']
|
103
|
-
end
|
104
|
-
|
105
105
|
if attributes.key?(:'updated_at')
|
106
106
|
self.updated_at = attributes[:'updated_at']
|
107
107
|
end
|
@@ -111,6 +111,10 @@ module MailSlurpClient
|
|
111
111
|
# @return Array for valid properties with the reasons
|
112
112
|
def list_invalid_properties
|
113
113
|
invalid_properties = Array.new
|
114
|
+
if @attachment_id.nil?
|
115
|
+
invalid_properties.push('invalid value for "attachment_id", attachment_id cannot be nil.')
|
116
|
+
end
|
117
|
+
|
114
118
|
if @user_id.nil?
|
115
119
|
invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
|
116
120
|
end
|
@@ -119,10 +123,6 @@ module MailSlurpClient
|
|
119
123
|
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
120
124
|
end
|
121
125
|
|
122
|
-
if @attachment_id.nil?
|
123
|
-
invalid_properties.push('invalid value for "attachment_id", attachment_id cannot be nil.')
|
124
|
-
end
|
125
|
-
|
126
126
|
if @updated_at.nil?
|
127
127
|
invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
|
128
128
|
end
|
@@ -133,9 +133,9 @@ module MailSlurpClient
|
|
133
133
|
# Check to see if the all the properties in the model are valid
|
134
134
|
# @return true if the model is valid
|
135
135
|
def valid?
|
136
|
+
return false if @attachment_id.nil?
|
136
137
|
return false if @user_id.nil?
|
137
138
|
return false if @created_at.nil?
|
138
|
-
return false if @attachment_id.nil?
|
139
139
|
return false if @updated_at.nil?
|
140
140
|
true
|
141
141
|
end
|
@@ -148,9 +148,9 @@ module MailSlurpClient
|
|
148
148
|
name == o.name &&
|
149
149
|
content_length == o.content_length &&
|
150
150
|
content_type == o.content_type &&
|
151
|
+
attachment_id == o.attachment_id &&
|
151
152
|
user_id == o.user_id &&
|
152
153
|
created_at == o.created_at &&
|
153
|
-
attachment_id == o.attachment_id &&
|
154
154
|
updated_at == o.updated_at
|
155
155
|
end
|
156
156
|
|
@@ -163,7 +163,7 @@ module MailSlurpClient
|
|
163
163
|
# Calculates hash code according to all attributes.
|
164
164
|
# @return [Integer] Hash code
|
165
165
|
def hash
|
166
|
-
[name, content_length, content_type, user_id, created_at,
|
166
|
+
[name, content_length, content_type, attachment_id, user_id, created_at, updated_at].hash
|
167
167
|
end
|
168
168
|
|
169
169
|
# Builds the object from hash
|
@@ -18,8 +18,6 @@ module MailSlurpClient
|
|
18
18
|
|
19
19
|
attr_accessor :group_id
|
20
20
|
|
21
|
-
attr_accessor :created_at
|
22
|
-
|
23
21
|
attr_accessor :first_name
|
24
22
|
|
25
23
|
attr_accessor :last_name
|
@@ -30,17 +28,19 @@ module MailSlurpClient
|
|
30
28
|
|
31
29
|
attr_accessor :opt_out
|
32
30
|
|
31
|
+
attr_accessor :created_at
|
32
|
+
|
33
33
|
# Attribute mapping from ruby-style variable name to JSON key.
|
34
34
|
def self.attribute_map
|
35
35
|
{
|
36
36
|
:'id' => :'id',
|
37
37
|
:'group_id' => :'groupId',
|
38
|
-
:'created_at' => :'createdAt',
|
39
38
|
:'first_name' => :'firstName',
|
40
39
|
:'last_name' => :'lastName',
|
41
40
|
:'company' => :'company',
|
42
41
|
:'email_addresses' => :'emailAddresses',
|
43
|
-
:'opt_out' => :'optOut'
|
42
|
+
:'opt_out' => :'optOut',
|
43
|
+
:'created_at' => :'createdAt'
|
44
44
|
}
|
45
45
|
end
|
46
46
|
|
@@ -49,12 +49,12 @@ module MailSlurpClient
|
|
49
49
|
{
|
50
50
|
:'id' => :'String',
|
51
51
|
:'group_id' => :'String',
|
52
|
-
:'created_at' => :'DateTime',
|
53
52
|
:'first_name' => :'String',
|
54
53
|
:'last_name' => :'String',
|
55
54
|
:'company' => :'String',
|
56
55
|
:'email_addresses' => :'Array<String>',
|
57
|
-
:'opt_out' => :'Boolean'
|
56
|
+
:'opt_out' => :'Boolean',
|
57
|
+
:'created_at' => :'DateTime'
|
58
58
|
}
|
59
59
|
end
|
60
60
|
|
@@ -87,10 +87,6 @@ module MailSlurpClient
|
|
87
87
|
self.group_id = attributes[:'group_id']
|
88
88
|
end
|
89
89
|
|
90
|
-
if attributes.key?(:'created_at')
|
91
|
-
self.created_at = attributes[:'created_at']
|
92
|
-
end
|
93
|
-
|
94
90
|
if attributes.key?(:'first_name')
|
95
91
|
self.first_name = attributes[:'first_name']
|
96
92
|
end
|
@@ -112,6 +108,10 @@ module MailSlurpClient
|
|
112
108
|
if attributes.key?(:'opt_out')
|
113
109
|
self.opt_out = attributes[:'opt_out']
|
114
110
|
end
|
111
|
+
|
112
|
+
if attributes.key?(:'created_at')
|
113
|
+
self.created_at = attributes[:'created_at']
|
114
|
+
end
|
115
115
|
end
|
116
116
|
|
117
117
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -144,12 +144,12 @@ module MailSlurpClient
|
|
144
144
|
self.class == o.class &&
|
145
145
|
id == o.id &&
|
146
146
|
group_id == o.group_id &&
|
147
|
-
created_at == o.created_at &&
|
148
147
|
first_name == o.first_name &&
|
149
148
|
last_name == o.last_name &&
|
150
149
|
company == o.company &&
|
151
150
|
email_addresses == o.email_addresses &&
|
152
|
-
opt_out == o.opt_out
|
151
|
+
opt_out == o.opt_out &&
|
152
|
+
created_at == o.created_at
|
153
153
|
end
|
154
154
|
|
155
155
|
# @see the `==` method
|
@@ -161,7 +161,7 @@ module MailSlurpClient
|
|
161
161
|
# Calculates hash code according to all attributes.
|
162
162
|
# @return [Integer] Hash code
|
163
163
|
def hash
|
164
|
-
[id, group_id,
|
164
|
+
[id, group_id, first_name, last_name, company, email_addresses, opt_out, created_at].hash
|
165
165
|
end
|
166
166
|
|
167
167
|
# Builds the object from hash
|
@@ -21,18 +21,18 @@ module MailSlurpClient
|
|
21
21
|
|
22
22
|
attr_accessor :subject
|
23
23
|
|
24
|
-
attr_accessor :attachments
|
25
|
-
|
26
24
|
attr_accessor :inbox_id
|
27
25
|
|
28
|
-
attr_accessor :created_at
|
29
|
-
|
30
26
|
attr_accessor :to
|
31
27
|
|
28
|
+
attr_accessor :attachments
|
29
|
+
|
32
30
|
attr_accessor :bcc
|
33
31
|
|
34
32
|
attr_accessor :cc
|
35
33
|
|
34
|
+
attr_accessor :created_at
|
35
|
+
|
36
36
|
attr_accessor :team_access
|
37
37
|
|
38
38
|
attr_accessor :read
|
@@ -47,12 +47,12 @@ module MailSlurpClient
|
|
47
47
|
:'id' => :'id',
|
48
48
|
:'from' => :'from',
|
49
49
|
:'subject' => :'subject',
|
50
|
-
:'attachments' => :'attachments',
|
51
50
|
:'inbox_id' => :'inboxId',
|
52
|
-
:'created_at' => :'createdAt',
|
53
51
|
:'to' => :'to',
|
52
|
+
:'attachments' => :'attachments',
|
54
53
|
:'bcc' => :'bcc',
|
55
54
|
:'cc' => :'cc',
|
55
|
+
:'created_at' => :'createdAt',
|
56
56
|
:'team_access' => :'teamAccess',
|
57
57
|
:'read' => :'read',
|
58
58
|
:'body_md5_hash' => :'bodyMD5Hash',
|
@@ -66,12 +66,12 @@ module MailSlurpClient
|
|
66
66
|
:'id' => :'String',
|
67
67
|
:'from' => :'String',
|
68
68
|
:'subject' => :'String',
|
69
|
-
:'attachments' => :'Array<String>',
|
70
69
|
:'inbox_id' => :'String',
|
71
|
-
:'created_at' => :'DateTime',
|
72
70
|
:'to' => :'Array<String>',
|
71
|
+
:'attachments' => :'Array<String>',
|
73
72
|
:'bcc' => :'Array<String>',
|
74
73
|
:'cc' => :'Array<String>',
|
74
|
+
:'created_at' => :'DateTime',
|
75
75
|
:'team_access' => :'Boolean',
|
76
76
|
:'read' => :'Boolean',
|
77
77
|
:'body_md5_hash' => :'String',
|
@@ -112,26 +112,22 @@ module MailSlurpClient
|
|
112
112
|
self.subject = attributes[:'subject']
|
113
113
|
end
|
114
114
|
|
115
|
-
if attributes.key?(:'attachments')
|
116
|
-
if (value = attributes[:'attachments']).is_a?(Array)
|
117
|
-
self.attachments = value
|
118
|
-
end
|
119
|
-
end
|
120
|
-
|
121
115
|
if attributes.key?(:'inbox_id')
|
122
116
|
self.inbox_id = attributes[:'inbox_id']
|
123
117
|
end
|
124
118
|
|
125
|
-
if attributes.key?(:'created_at')
|
126
|
-
self.created_at = attributes[:'created_at']
|
127
|
-
end
|
128
|
-
|
129
119
|
if attributes.key?(:'to')
|
130
120
|
if (value = attributes[:'to']).is_a?(Array)
|
131
121
|
self.to = value
|
132
122
|
end
|
133
123
|
end
|
134
124
|
|
125
|
+
if attributes.key?(:'attachments')
|
126
|
+
if (value = attributes[:'attachments']).is_a?(Array)
|
127
|
+
self.attachments = value
|
128
|
+
end
|
129
|
+
end
|
130
|
+
|
135
131
|
if attributes.key?(:'bcc')
|
136
132
|
if (value = attributes[:'bcc']).is_a?(Array)
|
137
133
|
self.bcc = value
|
@@ -144,6 +140,10 @@ module MailSlurpClient
|
|
144
140
|
end
|
145
141
|
end
|
146
142
|
|
143
|
+
if attributes.key?(:'created_at')
|
144
|
+
self.created_at = attributes[:'created_at']
|
145
|
+
end
|
146
|
+
|
147
147
|
if attributes.key?(:'team_access')
|
148
148
|
self.team_access = attributes[:'team_access']
|
149
149
|
end
|
@@ -173,14 +173,14 @@ module MailSlurpClient
|
|
173
173
|
invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
|
174
174
|
end
|
175
175
|
|
176
|
-
if @created_at.nil?
|
177
|
-
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
178
|
-
end
|
179
|
-
|
180
176
|
if @to.nil?
|
181
177
|
invalid_properties.push('invalid value for "to", to cannot be nil.')
|
182
178
|
end
|
183
179
|
|
180
|
+
if @created_at.nil?
|
181
|
+
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
182
|
+
end
|
183
|
+
|
184
184
|
invalid_properties
|
185
185
|
end
|
186
186
|
|
@@ -189,8 +189,8 @@ module MailSlurpClient
|
|
189
189
|
def valid?
|
190
190
|
return false if @id.nil?
|
191
191
|
return false if @inbox_id.nil?
|
192
|
-
return false if @created_at.nil?
|
193
192
|
return false if @to.nil?
|
193
|
+
return false if @created_at.nil?
|
194
194
|
true
|
195
195
|
end
|
196
196
|
|
@@ -202,12 +202,12 @@ module MailSlurpClient
|
|
202
202
|
id == o.id &&
|
203
203
|
from == o.from &&
|
204
204
|
subject == o.subject &&
|
205
|
-
attachments == o.attachments &&
|
206
205
|
inbox_id == o.inbox_id &&
|
207
|
-
created_at == o.created_at &&
|
208
206
|
to == o.to &&
|
207
|
+
attachments == o.attachments &&
|
209
208
|
bcc == o.bcc &&
|
210
209
|
cc == o.cc &&
|
210
|
+
created_at == o.created_at &&
|
211
211
|
team_access == o.team_access &&
|
212
212
|
read == o.read &&
|
213
213
|
body_md5_hash == o.body_md5_hash &&
|
@@ -223,7 +223,7 @@ module MailSlurpClient
|
|
223
223
|
# Calculates hash code according to all attributes.
|
224
224
|
# @return [Integer] Hash code
|
225
225
|
def hash
|
226
|
-
[id, from, subject,
|
226
|
+
[id, from, subject, inbox_id, to, attachments, bcc, cc, created_at, team_access, read, body_md5_hash, body_excerpt].hash
|
227
227
|
end
|
228
228
|
|
229
229
|
# Builds the object from hash
|
@@ -23,18 +23,18 @@ module MailSlurpClient
|
|
23
23
|
|
24
24
|
attr_accessor :subject
|
25
25
|
|
26
|
-
attr_accessor :attachments
|
27
|
-
|
28
26
|
attr_accessor :inbox_id
|
29
27
|
|
30
|
-
attr_accessor :created_at
|
31
|
-
|
32
28
|
attr_accessor :to
|
33
29
|
|
30
|
+
attr_accessor :attachments
|
31
|
+
|
34
32
|
attr_accessor :bcc
|
35
33
|
|
36
34
|
attr_accessor :cc
|
37
35
|
|
36
|
+
attr_accessor :created_at
|
37
|
+
|
38
38
|
attr_accessor :body_md5_hash
|
39
39
|
|
40
40
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -44,12 +44,12 @@ module MailSlurpClient
|
|
44
44
|
:'from' => :'from',
|
45
45
|
:'user_id' => :'userId',
|
46
46
|
:'subject' => :'subject',
|
47
|
-
:'attachments' => :'attachments',
|
48
47
|
:'inbox_id' => :'inboxId',
|
49
|
-
:'created_at' => :'createdAt',
|
50
48
|
:'to' => :'to',
|
49
|
+
:'attachments' => :'attachments',
|
51
50
|
:'bcc' => :'bcc',
|
52
51
|
:'cc' => :'cc',
|
52
|
+
:'created_at' => :'createdAt',
|
53
53
|
:'body_md5_hash' => :'bodyMD5Hash'
|
54
54
|
}
|
55
55
|
end
|
@@ -61,12 +61,12 @@ module MailSlurpClient
|
|
61
61
|
:'from' => :'String',
|
62
62
|
:'user_id' => :'String',
|
63
63
|
:'subject' => :'String',
|
64
|
-
:'attachments' => :'Array<String>',
|
65
64
|
:'inbox_id' => :'String',
|
66
|
-
:'created_at' => :'DateTime',
|
67
65
|
:'to' => :'Array<String>',
|
66
|
+
:'attachments' => :'Array<String>',
|
68
67
|
:'bcc' => :'Array<String>',
|
69
68
|
:'cc' => :'Array<String>',
|
69
|
+
:'created_at' => :'DateTime',
|
70
70
|
:'body_md5_hash' => :'String'
|
71
71
|
}
|
72
72
|
end
|
@@ -108,26 +108,22 @@ module MailSlurpClient
|
|
108
108
|
self.subject = attributes[:'subject']
|
109
109
|
end
|
110
110
|
|
111
|
-
if attributes.key?(:'attachments')
|
112
|
-
if (value = attributes[:'attachments']).is_a?(Array)
|
113
|
-
self.attachments = value
|
114
|
-
end
|
115
|
-
end
|
116
|
-
|
117
111
|
if attributes.key?(:'inbox_id')
|
118
112
|
self.inbox_id = attributes[:'inbox_id']
|
119
113
|
end
|
120
114
|
|
121
|
-
if attributes.key?(:'created_at')
|
122
|
-
self.created_at = attributes[:'created_at']
|
123
|
-
end
|
124
|
-
|
125
115
|
if attributes.key?(:'to')
|
126
116
|
if (value = attributes[:'to']).is_a?(Array)
|
127
117
|
self.to = value
|
128
118
|
end
|
129
119
|
end
|
130
120
|
|
121
|
+
if attributes.key?(:'attachments')
|
122
|
+
if (value = attributes[:'attachments']).is_a?(Array)
|
123
|
+
self.attachments = value
|
124
|
+
end
|
125
|
+
end
|
126
|
+
|
131
127
|
if attributes.key?(:'bcc')
|
132
128
|
if (value = attributes[:'bcc']).is_a?(Array)
|
133
129
|
self.bcc = value
|
@@ -140,6 +136,10 @@ module MailSlurpClient
|
|
140
136
|
end
|
141
137
|
end
|
142
138
|
|
139
|
+
if attributes.key?(:'created_at')
|
140
|
+
self.created_at = attributes[:'created_at']
|
141
|
+
end
|
142
|
+
|
143
143
|
if attributes.key?(:'body_md5_hash')
|
144
144
|
self.body_md5_hash = attributes[:'body_md5_hash']
|
145
145
|
end
|
@@ -157,22 +157,18 @@ module MailSlurpClient
|
|
157
157
|
invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
|
158
158
|
end
|
159
159
|
|
160
|
-
if @attachments.nil?
|
161
|
-
invalid_properties.push('invalid value for "attachments", attachments cannot be nil.')
|
162
|
-
end
|
163
|
-
|
164
160
|
if @inbox_id.nil?
|
165
161
|
invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
|
166
162
|
end
|
167
163
|
|
168
|
-
if @created_at.nil?
|
169
|
-
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
170
|
-
end
|
171
|
-
|
172
164
|
if @to.nil?
|
173
165
|
invalid_properties.push('invalid value for "to", to cannot be nil.')
|
174
166
|
end
|
175
167
|
|
168
|
+
if @attachments.nil?
|
169
|
+
invalid_properties.push('invalid value for "attachments", attachments cannot be nil.')
|
170
|
+
end
|
171
|
+
|
176
172
|
if @bcc.nil?
|
177
173
|
invalid_properties.push('invalid value for "bcc", bcc cannot be nil.')
|
178
174
|
end
|
@@ -181,6 +177,10 @@ module MailSlurpClient
|
|
181
177
|
invalid_properties.push('invalid value for "cc", cc cannot be nil.')
|
182
178
|
end
|
183
179
|
|
180
|
+
if @created_at.nil?
|
181
|
+
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
182
|
+
end
|
183
|
+
|
184
184
|
invalid_properties
|
185
185
|
end
|
186
186
|
|
@@ -189,12 +189,12 @@ module MailSlurpClient
|
|
189
189
|
def valid?
|
190
190
|
return false if @id.nil?
|
191
191
|
return false if @user_id.nil?
|
192
|
-
return false if @attachments.nil?
|
193
192
|
return false if @inbox_id.nil?
|
194
|
-
return false if @created_at.nil?
|
195
193
|
return false if @to.nil?
|
194
|
+
return false if @attachments.nil?
|
196
195
|
return false if @bcc.nil?
|
197
196
|
return false if @cc.nil?
|
197
|
+
return false if @created_at.nil?
|
198
198
|
true
|
199
199
|
end
|
200
200
|
|
@@ -207,12 +207,12 @@ module MailSlurpClient
|
|
207
207
|
from == o.from &&
|
208
208
|
user_id == o.user_id &&
|
209
209
|
subject == o.subject &&
|
210
|
-
attachments == o.attachments &&
|
211
210
|
inbox_id == o.inbox_id &&
|
212
|
-
created_at == o.created_at &&
|
213
211
|
to == o.to &&
|
212
|
+
attachments == o.attachments &&
|
214
213
|
bcc == o.bcc &&
|
215
214
|
cc == o.cc &&
|
215
|
+
created_at == o.created_at &&
|
216
216
|
body_md5_hash == o.body_md5_hash
|
217
217
|
end
|
218
218
|
|
@@ -225,7 +225,7 @@ module MailSlurpClient
|
|
225
225
|
# Calculates hash code according to all attributes.
|
226
226
|
# @return [Integer] Hash code
|
227
227
|
def hash
|
228
|
-
[id, from, user_id, subject,
|
228
|
+
[id, from, user_id, subject, inbox_id, to, attachments, bcc, cc, created_at, body_md5_hash].hash
|
229
229
|
end
|
230
230
|
|
231
231
|
# Builds the object from hash
|
@@ -25,14 +25,14 @@ module MailSlurpClient
|
|
25
25
|
|
26
26
|
attr_accessor :inbox_id
|
27
27
|
|
28
|
-
attr_accessor :created_at
|
29
|
-
|
30
28
|
attr_accessor :to
|
31
29
|
|
32
30
|
attr_accessor :bcc
|
33
31
|
|
34
32
|
attr_accessor :cc
|
35
33
|
|
34
|
+
attr_accessor :created_at
|
35
|
+
|
36
36
|
attr_accessor :updated_at
|
37
37
|
|
38
38
|
attr_accessor :alias_id
|
@@ -45,10 +45,10 @@ module MailSlurpClient
|
|
45
45
|
:'subject' => :'subject',
|
46
46
|
:'user_id' => :'userId',
|
47
47
|
:'inbox_id' => :'inboxId',
|
48
|
-
:'created_at' => :'createdAt',
|
49
48
|
:'to' => :'to',
|
50
49
|
:'bcc' => :'bcc',
|
51
50
|
:'cc' => :'cc',
|
51
|
+
:'created_at' => :'createdAt',
|
52
52
|
:'updated_at' => :'updatedAt',
|
53
53
|
:'alias_id' => :'aliasId'
|
54
54
|
}
|
@@ -62,10 +62,10 @@ module MailSlurpClient
|
|
62
62
|
:'subject' => :'String',
|
63
63
|
:'user_id' => :'String',
|
64
64
|
:'inbox_id' => :'String',
|
65
|
-
:'created_at' => :'DateTime',
|
66
65
|
:'to' => :'Array<String>',
|
67
66
|
:'bcc' => :'Array<String>',
|
68
67
|
:'cc' => :'Array<String>',
|
68
|
+
:'created_at' => :'DateTime',
|
69
69
|
:'updated_at' => :'DateTime',
|
70
70
|
:'alias_id' => :'String'
|
71
71
|
}
|
@@ -112,10 +112,6 @@ module MailSlurpClient
|
|
112
112
|
self.inbox_id = attributes[:'inbox_id']
|
113
113
|
end
|
114
114
|
|
115
|
-
if attributes.key?(:'created_at')
|
116
|
-
self.created_at = attributes[:'created_at']
|
117
|
-
end
|
118
|
-
|
119
115
|
if attributes.key?(:'to')
|
120
116
|
if (value = attributes[:'to']).is_a?(Array)
|
121
117
|
self.to = value
|
@@ -134,6 +130,10 @@ module MailSlurpClient
|
|
134
130
|
end
|
135
131
|
end
|
136
132
|
|
133
|
+
if attributes.key?(:'created_at')
|
134
|
+
self.created_at = attributes[:'created_at']
|
135
|
+
end
|
136
|
+
|
137
137
|
if attributes.key?(:'updated_at')
|
138
138
|
self.updated_at = attributes[:'updated_at']
|
139
139
|
end
|
@@ -159,14 +159,14 @@ module MailSlurpClient
|
|
159
159
|
invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
|
160
160
|
end
|
161
161
|
|
162
|
-
if @created_at.nil?
|
163
|
-
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
164
|
-
end
|
165
|
-
|
166
162
|
if @to.nil?
|
167
163
|
invalid_properties.push('invalid value for "to", to cannot be nil.')
|
168
164
|
end
|
169
165
|
|
166
|
+
if @created_at.nil?
|
167
|
+
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
168
|
+
end
|
169
|
+
|
170
170
|
if @updated_at.nil?
|
171
171
|
invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
|
172
172
|
end
|
@@ -184,8 +184,8 @@ module MailSlurpClient
|
|
184
184
|
return false if @id.nil?
|
185
185
|
return false if @user_id.nil?
|
186
186
|
return false if @inbox_id.nil?
|
187
|
-
return false if @created_at.nil?
|
188
187
|
return false if @to.nil?
|
188
|
+
return false if @created_at.nil?
|
189
189
|
return false if @updated_at.nil?
|
190
190
|
return false if @alias_id.nil?
|
191
191
|
true
|
@@ -201,10 +201,10 @@ module MailSlurpClient
|
|
201
201
|
subject == o.subject &&
|
202
202
|
user_id == o.user_id &&
|
203
203
|
inbox_id == o.inbox_id &&
|
204
|
-
created_at == o.created_at &&
|
205
204
|
to == o.to &&
|
206
205
|
bcc == o.bcc &&
|
207
206
|
cc == o.cc &&
|
207
|
+
created_at == o.created_at &&
|
208
208
|
updated_at == o.updated_at &&
|
209
209
|
alias_id == o.alias_id
|
210
210
|
end
|
@@ -218,7 +218,7 @@ module MailSlurpClient
|
|
218
218
|
# Calculates hash code according to all attributes.
|
219
219
|
# @return [Integer] Hash code
|
220
220
|
def hash
|
221
|
-
[name, id, subject, user_id, inbox_id,
|
221
|
+
[name, id, subject, user_id, inbox_id, to, bcc, cc, created_at, updated_at, alias_id].hash
|
222
222
|
end
|
223
223
|
|
224
224
|
# Builds the object from hash
|
@@ -20,18 +20,18 @@ module MailSlurpClient
|
|
20
20
|
|
21
21
|
attr_accessor :subject
|
22
22
|
|
23
|
-
attr_accessor :created_at
|
24
|
-
|
25
23
|
attr_accessor :to
|
26
24
|
|
25
|
+
attr_accessor :created_at
|
26
|
+
|
27
27
|
# Attribute mapping from ruby-style variable name to JSON key.
|
28
28
|
def self.attribute_map
|
29
29
|
{
|
30
30
|
:'id' => :'id',
|
31
31
|
:'from' => :'from',
|
32
32
|
:'subject' => :'subject',
|
33
|
-
:'
|
34
|
-
:'
|
33
|
+
:'to' => :'to',
|
34
|
+
:'created_at' => :'createdAt'
|
35
35
|
}
|
36
36
|
end
|
37
37
|
|
@@ -41,8 +41,8 @@ module MailSlurpClient
|
|
41
41
|
:'id' => :'String',
|
42
42
|
:'from' => :'String',
|
43
43
|
:'subject' => :'String',
|
44
|
-
:'
|
45
|
-
:'
|
44
|
+
:'to' => :'Array<String>',
|
45
|
+
:'created_at' => :'DateTime'
|
46
46
|
}
|
47
47
|
end
|
48
48
|
|
@@ -79,15 +79,15 @@ module MailSlurpClient
|
|
79
79
|
self.subject = attributes[:'subject']
|
80
80
|
end
|
81
81
|
|
82
|
-
if attributes.key?(:'created_at')
|
83
|
-
self.created_at = attributes[:'created_at']
|
84
|
-
end
|
85
|
-
|
86
82
|
if attributes.key?(:'to')
|
87
83
|
if (value = attributes[:'to']).is_a?(Array)
|
88
84
|
self.to = value
|
89
85
|
end
|
90
86
|
end
|
87
|
+
|
88
|
+
if attributes.key?(:'created_at')
|
89
|
+
self.created_at = attributes[:'created_at']
|
90
|
+
end
|
91
91
|
end
|
92
92
|
|
93
93
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -121,8 +121,8 @@ module MailSlurpClient
|
|
121
121
|
id == o.id &&
|
122
122
|
from == o.from &&
|
123
123
|
subject == o.subject &&
|
124
|
-
|
125
|
-
|
124
|
+
to == o.to &&
|
125
|
+
created_at == o.created_at
|
126
126
|
end
|
127
127
|
|
128
128
|
# @see the `==` method
|
@@ -134,7 +134,7 @@ module MailSlurpClient
|
|
134
134
|
# Calculates hash code according to all attributes.
|
135
135
|
# @return [Integer] Hash code
|
136
136
|
def hash
|
137
|
-
[id, from, subject,
|
137
|
+
[id, from, subject, to, created_at].hash
|
138
138
|
end
|
139
139
|
|
140
140
|
# Builds the object from hash
|
@@ -19,12 +19,12 @@ module MailSlurpClient
|
|
19
19
|
|
20
20
|
attr_accessor :id
|
21
21
|
|
22
|
-
attr_accessor :event_name
|
23
|
-
|
24
22
|
attr_accessor :url
|
25
23
|
|
26
24
|
attr_accessor :inbox_id
|
27
25
|
|
26
|
+
attr_accessor :event_name
|
27
|
+
|
28
28
|
attr_accessor :created_at
|
29
29
|
|
30
30
|
attr_accessor :updated_at
|
@@ -56,9 +56,9 @@ module MailSlurpClient
|
|
56
56
|
{
|
57
57
|
:'name' => :'name',
|
58
58
|
:'id' => :'id',
|
59
|
-
:'event_name' => :'eventName',
|
60
59
|
:'url' => :'url',
|
61
60
|
:'inbox_id' => :'inboxId',
|
61
|
+
:'event_name' => :'eventName',
|
62
62
|
:'created_at' => :'createdAt',
|
63
63
|
:'updated_at' => :'updatedAt'
|
64
64
|
}
|
@@ -69,9 +69,9 @@ module MailSlurpClient
|
|
69
69
|
{
|
70
70
|
:'name' => :'String',
|
71
71
|
:'id' => :'String',
|
72
|
-
:'event_name' => :'String',
|
73
72
|
:'url' => :'String',
|
74
73
|
:'inbox_id' => :'String',
|
74
|
+
:'event_name' => :'String',
|
75
75
|
:'created_at' => :'DateTime',
|
76
76
|
:'updated_at' => :'DateTime'
|
77
77
|
}
|
@@ -106,10 +106,6 @@ module MailSlurpClient
|
|
106
106
|
self.id = attributes[:'id']
|
107
107
|
end
|
108
108
|
|
109
|
-
if attributes.key?(:'event_name')
|
110
|
-
self.event_name = attributes[:'event_name']
|
111
|
-
end
|
112
|
-
|
113
109
|
if attributes.key?(:'url')
|
114
110
|
self.url = attributes[:'url']
|
115
111
|
end
|
@@ -118,6 +114,10 @@ module MailSlurpClient
|
|
118
114
|
self.inbox_id = attributes[:'inbox_id']
|
119
115
|
end
|
120
116
|
|
117
|
+
if attributes.key?(:'event_name')
|
118
|
+
self.event_name = attributes[:'event_name']
|
119
|
+
end
|
120
|
+
|
121
121
|
if attributes.key?(:'created_at')
|
122
122
|
self.created_at = attributes[:'created_at']
|
123
123
|
end
|
@@ -158,10 +158,10 @@ module MailSlurpClient
|
|
158
158
|
# @return true if the model is valid
|
159
159
|
def valid?
|
160
160
|
return false if @id.nil?
|
161
|
-
event_name_validator = EnumAttributeValidator.new('String', ["EMAIL_RECEIVED", "NEW_EMAIL", "NEW_CONTACT", "NEW_ATTACHMENT", "EMAIL_OPENED", "EMAIL_READ"])
|
162
|
-
return false unless event_name_validator.valid?(@event_name)
|
163
161
|
return false if @url.nil?
|
164
162
|
return false if @inbox_id.nil?
|
163
|
+
event_name_validator = EnumAttributeValidator.new('String', ["EMAIL_RECEIVED", "NEW_EMAIL", "NEW_CONTACT", "NEW_ATTACHMENT", "EMAIL_OPENED", "EMAIL_READ"])
|
164
|
+
return false unless event_name_validator.valid?(@event_name)
|
165
165
|
return false if @created_at.nil?
|
166
166
|
return false if @updated_at.nil?
|
167
167
|
true
|
@@ -184,9 +184,9 @@ module MailSlurpClient
|
|
184
184
|
self.class == o.class &&
|
185
185
|
name == o.name &&
|
186
186
|
id == o.id &&
|
187
|
-
event_name == o.event_name &&
|
188
187
|
url == o.url &&
|
189
188
|
inbox_id == o.inbox_id &&
|
189
|
+
event_name == o.event_name &&
|
190
190
|
created_at == o.created_at &&
|
191
191
|
updated_at == o.updated_at
|
192
192
|
end
|
@@ -200,7 +200,7 @@ module MailSlurpClient
|
|
200
200
|
# Calculates hash code according to all attributes.
|
201
201
|
# @return [Integer] Hash code
|
202
202
|
def hash
|
203
|
-
[name, id,
|
203
|
+
[name, id, url, inbox_id, event_name, created_at, updated_at].hash
|
204
204
|
end
|
205
205
|
|
206
206
|
# 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.5.
|
4
|
+
version: 15.5.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- mailslurp
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-01-
|
11
|
+
date: 2022-01-31 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/docs/ruby/ for full Ruby documentation.
|