mailslurp_client 15.4.0 → 15.4.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 +57 -0
- data/lib/mailslurp_client/models/alias_projection.rb +15 -15
- data/lib/mailslurp_client/models/attachment_projection.rb +15 -15
- data/lib/mailslurp_client/models/contact_projection.rb +13 -13
- data/lib/mailslurp_client/models/email_projection.rb +19 -19
- data/lib/mailslurp_client/models/imap_smtp_access_details.rb +309 -0
- data/lib/mailslurp_client/models/sent_email_projection.rb +15 -15
- data/lib/mailslurp_client/models/thread_projection.rb +24 -24
- data/lib/mailslurp_client/models/tracking_pixel_projection.rb +10 -10
- data/lib/mailslurp_client/version.rb +1 -1
- data/lib/mailslurp_client.rb +1 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b39069566bfd8c5512682d31f0556a6175ce44f433ad2cbcef63faa7cf7efb33
|
4
|
+
data.tar.gz: 674e71a7ec67d788b524e654c63bbeb6401c3a461400e29208591b3348626ba2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f67b88c92b9d33609da3514e326a68b166afcaa07102845def2bb9e8b962c472400ecce35af17939861e9677c5113f3680bf6809414efe3da2dc9e328a0dedc2
|
7
|
+
data.tar.gz: 46b82430fe7a25e3bef0eb511a850b091962d3d2056f623d87252d0cf7cdda2040116fc16eaa9b7618e01f7deddbde476868d3f5d4c994dd7e8155d0d39ec5f4
|
@@ -721,6 +721,63 @@ module MailSlurpClient
|
|
721
721
|
return data, status_code, headers
|
722
722
|
end
|
723
723
|
|
724
|
+
# Get IMAP and SMTP access usernames and passwords
|
725
|
+
# @param [Hash] opts the optional parameters
|
726
|
+
# @option opts [String] :inbox_id Inbox ID
|
727
|
+
# @return [ImapSmtpAccessDetails]
|
728
|
+
def get_imap_smtp_access(opts = {})
|
729
|
+
data, _status_code, _headers = get_imap_smtp_access_with_http_info(opts)
|
730
|
+
data
|
731
|
+
end
|
732
|
+
|
733
|
+
# Get IMAP and SMTP access usernames and passwords
|
734
|
+
# @param [Hash] opts the optional parameters
|
735
|
+
# @option opts [String] :inbox_id Inbox ID
|
736
|
+
# @return [Array<(ImapSmtpAccessDetails, Integer, Hash)>] ImapSmtpAccessDetails data, response status code and response headers
|
737
|
+
def get_imap_smtp_access_with_http_info(opts = {})
|
738
|
+
if @api_client.config.debugging
|
739
|
+
@api_client.config.logger.debug 'Calling API: InboxControllerApi.get_imap_smtp_access ...'
|
740
|
+
end
|
741
|
+
# resource path
|
742
|
+
local_var_path = '/inboxes/imap-smtp-access'
|
743
|
+
|
744
|
+
# query parameters
|
745
|
+
query_params = opts[:query_params] || {}
|
746
|
+
query_params[:'inboxId'] = opts[:'inbox_id'] if !opts[:'inbox_id'].nil?
|
747
|
+
|
748
|
+
# header parameters
|
749
|
+
header_params = opts[:header_params] || {}
|
750
|
+
# HTTP header 'Accept' (if needed)
|
751
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
752
|
+
|
753
|
+
# form parameters
|
754
|
+
form_params = opts[:form_params] || {}
|
755
|
+
|
756
|
+
# http body (model)
|
757
|
+
post_body = opts[:body]
|
758
|
+
|
759
|
+
# return_type
|
760
|
+
return_type = opts[:return_type] || 'ImapSmtpAccessDetails'
|
761
|
+
|
762
|
+
# auth_names
|
763
|
+
auth_names = opts[:auth_names] || ['API_KEY']
|
764
|
+
|
765
|
+
new_options = opts.merge(
|
766
|
+
:header_params => header_params,
|
767
|
+
:query_params => query_params,
|
768
|
+
:form_params => form_params,
|
769
|
+
:body => post_body,
|
770
|
+
:auth_names => auth_names,
|
771
|
+
:return_type => return_type
|
772
|
+
)
|
773
|
+
|
774
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
775
|
+
if @api_client.config.debugging
|
776
|
+
@api_client.config.logger.debug "API called: InboxControllerApi#get_imap_smtp_access\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
777
|
+
end
|
778
|
+
return data, status_code, headers
|
779
|
+
end
|
780
|
+
|
724
781
|
# Get Inbox. Returns properties of an inbox.
|
725
782
|
# Returns an inbox's properties, including its email address and ID.
|
726
783
|
# @param inbox_id [String]
|
@@ -19,12 +19,12 @@ 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
|
|
26
24
|
attr_accessor :email_address
|
27
25
|
|
26
|
+
attr_accessor :inbox_id
|
27
|
+
|
28
28
|
attr_accessor :created_at
|
29
29
|
|
30
30
|
attr_accessor :use_threads
|
@@ -36,9 +36,9 @@ module MailSlurpClient
|
|
36
36
|
{
|
37
37
|
:'name' => :'name',
|
38
38
|
:'id' => :'id',
|
39
|
-
:'inbox_id' => :'inboxId',
|
40
39
|
:'user_id' => :'userId',
|
41
40
|
:'email_address' => :'emailAddress',
|
41
|
+
:'inbox_id' => :'inboxId',
|
42
42
|
:'created_at' => :'createdAt',
|
43
43
|
:'use_threads' => :'useThreads',
|
44
44
|
:'updated_at' => :'updatedAt'
|
@@ -50,9 +50,9 @@ module MailSlurpClient
|
|
50
50
|
{
|
51
51
|
:'name' => :'String',
|
52
52
|
:'id' => :'String',
|
53
|
-
:'inbox_id' => :'String',
|
54
53
|
:'user_id' => :'String',
|
55
54
|
:'email_address' => :'String',
|
55
|
+
:'inbox_id' => :'String',
|
56
56
|
:'created_at' => :'DateTime',
|
57
57
|
:'use_threads' => :'Boolean',
|
58
58
|
:'updated_at' => :'DateTime'
|
@@ -88,10 +88,6 @@ module MailSlurpClient
|
|
88
88
|
self.id = attributes[:'id']
|
89
89
|
end
|
90
90
|
|
91
|
-
if attributes.key?(:'inbox_id')
|
92
|
-
self.inbox_id = attributes[:'inbox_id']
|
93
|
-
end
|
94
|
-
|
95
91
|
if attributes.key?(:'user_id')
|
96
92
|
self.user_id = attributes[:'user_id']
|
97
93
|
end
|
@@ -100,6 +96,10 @@ module MailSlurpClient
|
|
100
96
|
self.email_address = attributes[:'email_address']
|
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?(:'created_at')
|
104
104
|
self.created_at = attributes[:'created_at']
|
105
105
|
end
|
@@ -121,10 +121,6 @@ module MailSlurpClient
|
|
121
121
|
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
122
122
|
end
|
123
123
|
|
124
|
-
if @inbox_id.nil?
|
125
|
-
invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
|
126
|
-
end
|
127
|
-
|
128
124
|
if @user_id.nil?
|
129
125
|
invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
|
130
126
|
end
|
@@ -133,6 +129,10 @@ module MailSlurpClient
|
|
133
129
|
invalid_properties.push('invalid value for "email_address", email_address cannot be nil.')
|
134
130
|
end
|
135
131
|
|
132
|
+
if @inbox_id.nil?
|
133
|
+
invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
|
134
|
+
end
|
135
|
+
|
136
136
|
if @created_at.nil?
|
137
137
|
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
138
138
|
end
|
@@ -148,9 +148,9 @@ module MailSlurpClient
|
|
148
148
|
# @return true if the model is valid
|
149
149
|
def valid?
|
150
150
|
return false if @id.nil?
|
151
|
-
return false if @inbox_id.nil?
|
152
151
|
return false if @user_id.nil?
|
153
152
|
return false if @email_address.nil?
|
153
|
+
return false if @inbox_id.nil?
|
154
154
|
return false if @created_at.nil?
|
155
155
|
return false if @updated_at.nil?
|
156
156
|
true
|
@@ -163,9 +163,9 @@ module MailSlurpClient
|
|
163
163
|
self.class == o.class &&
|
164
164
|
name == o.name &&
|
165
165
|
id == o.id &&
|
166
|
-
inbox_id == o.inbox_id &&
|
167
166
|
user_id == o.user_id &&
|
168
167
|
email_address == o.email_address &&
|
168
|
+
inbox_id == o.inbox_id &&
|
169
169
|
created_at == o.created_at &&
|
170
170
|
use_threads == o.use_threads &&
|
171
171
|
updated_at == o.updated_at
|
@@ -180,7 +180,7 @@ module MailSlurpClient
|
|
180
180
|
# Calculates hash code according to all attributes.
|
181
181
|
# @return [Integer] Hash code
|
182
182
|
def hash
|
183
|
-
[name, id,
|
183
|
+
[name, id, user_id, email_address, inbox_id, created_at, use_threads, updated_at].hash
|
184
184
|
end
|
185
185
|
|
186
186
|
# Builds the object from hash
|
@@ -21,11 +21,11 @@ module MailSlurpClient
|
|
21
21
|
|
22
22
|
attr_accessor :user_id
|
23
23
|
|
24
|
+
attr_accessor :created_at
|
25
|
+
|
24
26
|
# Attachment ID
|
25
27
|
attr_accessor :attachment_id
|
26
28
|
|
27
|
-
attr_accessor :created_at
|
28
|
-
|
29
29
|
attr_accessor :updated_at
|
30
30
|
|
31
31
|
# Content type of attachment.
|
@@ -37,8 +37,8 @@ module MailSlurpClient
|
|
37
37
|
:'name' => :'name',
|
38
38
|
:'content_length' => :'contentLength',
|
39
39
|
:'user_id' => :'userId',
|
40
|
-
:'attachment_id' => :'attachmentId',
|
41
40
|
:'created_at' => :'createdAt',
|
41
|
+
:'attachment_id' => :'attachmentId',
|
42
42
|
:'updated_at' => :'updatedAt',
|
43
43
|
:'content_type' => :'contentType'
|
44
44
|
}
|
@@ -50,8 +50,8 @@ module MailSlurpClient
|
|
50
50
|
:'name' => :'String',
|
51
51
|
:'content_length' => :'Integer',
|
52
52
|
:'user_id' => :'String',
|
53
|
-
:'attachment_id' => :'String',
|
54
53
|
:'created_at' => :'DateTime',
|
54
|
+
:'attachment_id' => :'String',
|
55
55
|
:'updated_at' => :'DateTime',
|
56
56
|
:'content_type' => :'String'
|
57
57
|
}
|
@@ -90,14 +90,14 @@ module MailSlurpClient
|
|
90
90
|
self.user_id = attributes[:'user_id']
|
91
91
|
end
|
92
92
|
|
93
|
-
if attributes.key?(:'attachment_id')
|
94
|
-
self.attachment_id = attributes[:'attachment_id']
|
95
|
-
end
|
96
|
-
|
97
93
|
if attributes.key?(:'created_at')
|
98
94
|
self.created_at = attributes[:'created_at']
|
99
95
|
end
|
100
96
|
|
97
|
+
if attributes.key?(:'attachment_id')
|
98
|
+
self.attachment_id = attributes[:'attachment_id']
|
99
|
+
end
|
100
|
+
|
101
101
|
if attributes.key?(:'updated_at')
|
102
102
|
self.updated_at = attributes[:'updated_at']
|
103
103
|
end
|
@@ -115,14 +115,14 @@ module MailSlurpClient
|
|
115
115
|
invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
|
116
116
|
end
|
117
117
|
|
118
|
-
if @attachment_id.nil?
|
119
|
-
invalid_properties.push('invalid value for "attachment_id", attachment_id cannot be nil.')
|
120
|
-
end
|
121
|
-
|
122
118
|
if @created_at.nil?
|
123
119
|
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
124
120
|
end
|
125
121
|
|
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
|
@@ -134,8 +134,8 @@ module MailSlurpClient
|
|
134
134
|
# @return true if the model is valid
|
135
135
|
def valid?
|
136
136
|
return false if @user_id.nil?
|
137
|
-
return false if @attachment_id.nil?
|
138
137
|
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,8 +148,8 @@ module MailSlurpClient
|
|
148
148
|
name == o.name &&
|
149
149
|
content_length == o.content_length &&
|
150
150
|
user_id == o.user_id &&
|
151
|
-
attachment_id == o.attachment_id &&
|
152
151
|
created_at == o.created_at &&
|
152
|
+
attachment_id == o.attachment_id &&
|
153
153
|
updated_at == o.updated_at &&
|
154
154
|
content_type == o.content_type
|
155
155
|
end
|
@@ -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, user_id,
|
166
|
+
[name, content_length, user_id, created_at, attachment_id, updated_at, content_type].hash
|
167
167
|
end
|
168
168
|
|
169
169
|
# Builds the object from hash
|
@@ -18,6 +18,8 @@ module MailSlurpClient
|
|
18
18
|
|
19
19
|
attr_accessor :group_id
|
20
20
|
|
21
|
+
attr_accessor :created_at
|
22
|
+
|
21
23
|
attr_accessor :first_name
|
22
24
|
|
23
25
|
attr_accessor :last_name
|
@@ -28,19 +30,17 @@ module MailSlurpClient
|
|
28
30
|
|
29
31
|
attr_accessor :opt_out
|
30
32
|
|
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',
|
38
39
|
:'first_name' => :'firstName',
|
39
40
|
:'last_name' => :'lastName',
|
40
41
|
:'company' => :'company',
|
41
42
|
:'email_addresses' => :'emailAddresses',
|
42
|
-
:'opt_out' => :'optOut'
|
43
|
-
:'created_at' => :'createdAt'
|
43
|
+
:'opt_out' => :'optOut'
|
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',
|
52
53
|
:'first_name' => :'String',
|
53
54
|
:'last_name' => :'String',
|
54
55
|
:'company' => :'String',
|
55
56
|
:'email_addresses' => :'Array<String>',
|
56
|
-
:'opt_out' => :'Boolean'
|
57
|
-
:'created_at' => :'DateTime'
|
57
|
+
:'opt_out' => :'Boolean'
|
58
58
|
}
|
59
59
|
end
|
60
60
|
|
@@ -87,6 +87,10 @@ 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
|
+
|
90
94
|
if attributes.key?(:'first_name')
|
91
95
|
self.first_name = attributes[:'first_name']
|
92
96
|
end
|
@@ -108,10 +112,6 @@ module MailSlurpClient
|
|
108
112
|
if attributes.key?(:'opt_out')
|
109
113
|
self.opt_out = attributes[:'opt_out']
|
110
114
|
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 &&
|
147
148
|
first_name == o.first_name &&
|
148
149
|
last_name == o.last_name &&
|
149
150
|
company == o.company &&
|
150
151
|
email_addresses == o.email_addresses &&
|
151
|
-
opt_out == o.opt_out
|
152
|
-
created_at == o.created_at
|
152
|
+
opt_out == o.opt_out
|
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, first_name, last_name, company, email_addresses, opt_out
|
164
|
+
[id, group_id, created_at, first_name, last_name, company, email_addresses, opt_out].hash
|
165
165
|
end
|
166
166
|
|
167
167
|
# Builds the object from hash
|
@@ -19,20 +19,20 @@ module MailSlurpClient
|
|
19
19
|
|
20
20
|
attr_accessor :from
|
21
21
|
|
22
|
-
attr_accessor :inbox_id
|
23
|
-
|
24
22
|
attr_accessor :subject
|
25
23
|
|
24
|
+
attr_accessor :inbox_id
|
25
|
+
|
26
26
|
attr_accessor :to
|
27
27
|
|
28
28
|
attr_accessor :attachments
|
29
29
|
|
30
|
+
attr_accessor :created_at
|
31
|
+
|
30
32
|
attr_accessor :bcc
|
31
33
|
|
32
34
|
attr_accessor :cc
|
33
35
|
|
34
|
-
attr_accessor :created_at
|
35
|
-
|
36
36
|
attr_accessor :team_access
|
37
37
|
|
38
38
|
attr_accessor :read
|
@@ -46,13 +46,13 @@ module MailSlurpClient
|
|
46
46
|
{
|
47
47
|
:'id' => :'id',
|
48
48
|
:'from' => :'from',
|
49
|
-
:'inbox_id' => :'inboxId',
|
50
49
|
:'subject' => :'subject',
|
50
|
+
:'inbox_id' => :'inboxId',
|
51
51
|
:'to' => :'to',
|
52
52
|
:'attachments' => :'attachments',
|
53
|
+
:'created_at' => :'createdAt',
|
53
54
|
:'bcc' => :'bcc',
|
54
55
|
:'cc' => :'cc',
|
55
|
-
:'created_at' => :'createdAt',
|
56
56
|
:'team_access' => :'teamAccess',
|
57
57
|
:'read' => :'read',
|
58
58
|
:'body_md5_hash' => :'bodyMD5Hash',
|
@@ -65,13 +65,13 @@ module MailSlurpClient
|
|
65
65
|
{
|
66
66
|
:'id' => :'String',
|
67
67
|
:'from' => :'String',
|
68
|
-
:'inbox_id' => :'String',
|
69
68
|
:'subject' => :'String',
|
69
|
+
:'inbox_id' => :'String',
|
70
70
|
:'to' => :'Array<String>',
|
71
71
|
:'attachments' => :'Array<String>',
|
72
|
+
:'created_at' => :'DateTime',
|
72
73
|
:'bcc' => :'Array<String>',
|
73
74
|
:'cc' => :'Array<String>',
|
74
|
-
:'created_at' => :'DateTime',
|
75
75
|
:'team_access' => :'Boolean',
|
76
76
|
:'read' => :'Boolean',
|
77
77
|
:'body_md5_hash' => :'String',
|
@@ -108,14 +108,14 @@ module MailSlurpClient
|
|
108
108
|
self.from = attributes[:'from']
|
109
109
|
end
|
110
110
|
|
111
|
-
if attributes.key?(:'inbox_id')
|
112
|
-
self.inbox_id = attributes[:'inbox_id']
|
113
|
-
end
|
114
|
-
|
115
111
|
if attributes.key?(:'subject')
|
116
112
|
self.subject = attributes[:'subject']
|
117
113
|
end
|
118
114
|
|
115
|
+
if attributes.key?(:'inbox_id')
|
116
|
+
self.inbox_id = attributes[:'inbox_id']
|
117
|
+
end
|
118
|
+
|
119
119
|
if attributes.key?(:'to')
|
120
120
|
if (value = attributes[:'to']).is_a?(Array)
|
121
121
|
self.to = value
|
@@ -128,6 +128,10 @@ module MailSlurpClient
|
|
128
128
|
end
|
129
129
|
end
|
130
130
|
|
131
|
+
if attributes.key?(:'created_at')
|
132
|
+
self.created_at = attributes[:'created_at']
|
133
|
+
end
|
134
|
+
|
131
135
|
if attributes.key?(:'bcc')
|
132
136
|
if (value = attributes[:'bcc']).is_a?(Array)
|
133
137
|
self.bcc = value
|
@@ -140,10 +144,6 @@ module MailSlurpClient
|
|
140
144
|
end
|
141
145
|
end
|
142
146
|
|
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
|
@@ -201,13 +201,13 @@ module MailSlurpClient
|
|
201
201
|
self.class == o.class &&
|
202
202
|
id == o.id &&
|
203
203
|
from == o.from &&
|
204
|
-
inbox_id == o.inbox_id &&
|
205
204
|
subject == o.subject &&
|
205
|
+
inbox_id == o.inbox_id &&
|
206
206
|
to == o.to &&
|
207
207
|
attachments == o.attachments &&
|
208
|
+
created_at == o.created_at &&
|
208
209
|
bcc == o.bcc &&
|
209
210
|
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,
|
226
|
+
[id, from, subject, inbox_id, to, attachments, created_at, bcc, cc, team_access, read, body_md5_hash, body_excerpt].hash
|
227
227
|
end
|
228
228
|
|
229
229
|
# Builds the object from hash
|
@@ -0,0 +1,309 @@
|
|
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://www.mailslurp.com/docs/) - [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 ImapSmtpAccessDetails
|
17
|
+
attr_accessor :smtp_server_host
|
18
|
+
|
19
|
+
attr_accessor :smtp_server_port
|
20
|
+
|
21
|
+
attr_accessor :smtp_username
|
22
|
+
|
23
|
+
attr_accessor :smtp_password
|
24
|
+
|
25
|
+
attr_accessor :imap_server_host
|
26
|
+
|
27
|
+
attr_accessor :imap_server_port
|
28
|
+
|
29
|
+
attr_accessor :imap_username
|
30
|
+
|
31
|
+
attr_accessor :imap_password
|
32
|
+
|
33
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
34
|
+
def self.attribute_map
|
35
|
+
{
|
36
|
+
:'smtp_server_host' => :'smtpServerHost',
|
37
|
+
:'smtp_server_port' => :'smtpServerPort',
|
38
|
+
:'smtp_username' => :'smtpUsername',
|
39
|
+
:'smtp_password' => :'smtpPassword',
|
40
|
+
:'imap_server_host' => :'imapServerHost',
|
41
|
+
:'imap_server_port' => :'imapServerPort',
|
42
|
+
:'imap_username' => :'imapUsername',
|
43
|
+
:'imap_password' => :'imapPassword'
|
44
|
+
}
|
45
|
+
end
|
46
|
+
|
47
|
+
# Attribute type mapping.
|
48
|
+
def self.openapi_types
|
49
|
+
{
|
50
|
+
:'smtp_server_host' => :'String',
|
51
|
+
:'smtp_server_port' => :'Integer',
|
52
|
+
:'smtp_username' => :'String',
|
53
|
+
:'smtp_password' => :'String',
|
54
|
+
:'imap_server_host' => :'String',
|
55
|
+
:'imap_server_port' => :'Integer',
|
56
|
+
:'imap_username' => :'String',
|
57
|
+
:'imap_password' => :'String'
|
58
|
+
}
|
59
|
+
end
|
60
|
+
|
61
|
+
# List of attributes with nullable: true
|
62
|
+
def self.openapi_nullable
|
63
|
+
Set.new([
|
64
|
+
])
|
65
|
+
end
|
66
|
+
|
67
|
+
# Initializes the object
|
68
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
69
|
+
def initialize(attributes = {})
|
70
|
+
if (!attributes.is_a?(Hash))
|
71
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `MailSlurpClient::ImapSmtpAccessDetails` initialize method"
|
72
|
+
end
|
73
|
+
|
74
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
75
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
76
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
77
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `MailSlurpClient::ImapSmtpAccessDetails`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
78
|
+
end
|
79
|
+
h[k.to_sym] = v
|
80
|
+
}
|
81
|
+
|
82
|
+
if attributes.key?(:'smtp_server_host')
|
83
|
+
self.smtp_server_host = attributes[:'smtp_server_host']
|
84
|
+
end
|
85
|
+
|
86
|
+
if attributes.key?(:'smtp_server_port')
|
87
|
+
self.smtp_server_port = attributes[:'smtp_server_port']
|
88
|
+
end
|
89
|
+
|
90
|
+
if attributes.key?(:'smtp_username')
|
91
|
+
self.smtp_username = attributes[:'smtp_username']
|
92
|
+
end
|
93
|
+
|
94
|
+
if attributes.key?(:'smtp_password')
|
95
|
+
self.smtp_password = attributes[:'smtp_password']
|
96
|
+
end
|
97
|
+
|
98
|
+
if attributes.key?(:'imap_server_host')
|
99
|
+
self.imap_server_host = attributes[:'imap_server_host']
|
100
|
+
end
|
101
|
+
|
102
|
+
if attributes.key?(:'imap_server_port')
|
103
|
+
self.imap_server_port = attributes[:'imap_server_port']
|
104
|
+
end
|
105
|
+
|
106
|
+
if attributes.key?(:'imap_username')
|
107
|
+
self.imap_username = attributes[:'imap_username']
|
108
|
+
end
|
109
|
+
|
110
|
+
if attributes.key?(:'imap_password')
|
111
|
+
self.imap_password = attributes[:'imap_password']
|
112
|
+
end
|
113
|
+
end
|
114
|
+
|
115
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
116
|
+
# @return Array for valid properties with the reasons
|
117
|
+
def list_invalid_properties
|
118
|
+
invalid_properties = Array.new
|
119
|
+
if @smtp_server_host.nil?
|
120
|
+
invalid_properties.push('invalid value for "smtp_server_host", smtp_server_host cannot be nil.')
|
121
|
+
end
|
122
|
+
|
123
|
+
if @smtp_server_port.nil?
|
124
|
+
invalid_properties.push('invalid value for "smtp_server_port", smtp_server_port cannot be nil.')
|
125
|
+
end
|
126
|
+
|
127
|
+
if @smtp_username.nil?
|
128
|
+
invalid_properties.push('invalid value for "smtp_username", smtp_username cannot be nil.')
|
129
|
+
end
|
130
|
+
|
131
|
+
if @smtp_password.nil?
|
132
|
+
invalid_properties.push('invalid value for "smtp_password", smtp_password cannot be nil.')
|
133
|
+
end
|
134
|
+
|
135
|
+
if @imap_server_host.nil?
|
136
|
+
invalid_properties.push('invalid value for "imap_server_host", imap_server_host cannot be nil.')
|
137
|
+
end
|
138
|
+
|
139
|
+
if @imap_server_port.nil?
|
140
|
+
invalid_properties.push('invalid value for "imap_server_port", imap_server_port cannot be nil.')
|
141
|
+
end
|
142
|
+
|
143
|
+
if @imap_username.nil?
|
144
|
+
invalid_properties.push('invalid value for "imap_username", imap_username cannot be nil.')
|
145
|
+
end
|
146
|
+
|
147
|
+
if @imap_password.nil?
|
148
|
+
invalid_properties.push('invalid value for "imap_password", imap_password cannot be nil.')
|
149
|
+
end
|
150
|
+
|
151
|
+
invalid_properties
|
152
|
+
end
|
153
|
+
|
154
|
+
# Check to see if the all the properties in the model are valid
|
155
|
+
# @return true if the model is valid
|
156
|
+
def valid?
|
157
|
+
return false if @smtp_server_host.nil?
|
158
|
+
return false if @smtp_server_port.nil?
|
159
|
+
return false if @smtp_username.nil?
|
160
|
+
return false if @smtp_password.nil?
|
161
|
+
return false if @imap_server_host.nil?
|
162
|
+
return false if @imap_server_port.nil?
|
163
|
+
return false if @imap_username.nil?
|
164
|
+
return false if @imap_password.nil?
|
165
|
+
true
|
166
|
+
end
|
167
|
+
|
168
|
+
# Checks equality by comparing each attribute.
|
169
|
+
# @param [Object] Object to be compared
|
170
|
+
def ==(o)
|
171
|
+
return true if self.equal?(o)
|
172
|
+
self.class == o.class &&
|
173
|
+
smtp_server_host == o.smtp_server_host &&
|
174
|
+
smtp_server_port == o.smtp_server_port &&
|
175
|
+
smtp_username == o.smtp_username &&
|
176
|
+
smtp_password == o.smtp_password &&
|
177
|
+
imap_server_host == o.imap_server_host &&
|
178
|
+
imap_server_port == o.imap_server_port &&
|
179
|
+
imap_username == o.imap_username &&
|
180
|
+
imap_password == o.imap_password
|
181
|
+
end
|
182
|
+
|
183
|
+
# @see the `==` method
|
184
|
+
# @param [Object] Object to be compared
|
185
|
+
def eql?(o)
|
186
|
+
self == o
|
187
|
+
end
|
188
|
+
|
189
|
+
# Calculates hash code according to all attributes.
|
190
|
+
# @return [Integer] Hash code
|
191
|
+
def hash
|
192
|
+
[smtp_server_host, smtp_server_port, smtp_username, smtp_password, imap_server_host, imap_server_port, imap_username, imap_password].hash
|
193
|
+
end
|
194
|
+
|
195
|
+
# Builds the object from hash
|
196
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
197
|
+
# @return [Object] Returns the model itself
|
198
|
+
def self.build_from_hash(attributes)
|
199
|
+
new.build_from_hash(attributes)
|
200
|
+
end
|
201
|
+
|
202
|
+
# Builds the object from hash
|
203
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
204
|
+
# @return [Object] Returns the model itself
|
205
|
+
def build_from_hash(attributes)
|
206
|
+
return nil unless attributes.is_a?(Hash)
|
207
|
+
self.class.openapi_types.each_pair do |key, type|
|
208
|
+
if type =~ /\AArray<(.*)>/i
|
209
|
+
# check to ensure the input is an array given that the attribute
|
210
|
+
# is documented as an array but the input is not
|
211
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
212
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
213
|
+
end
|
214
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
215
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
216
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
217
|
+
end
|
218
|
+
|
219
|
+
self
|
220
|
+
end
|
221
|
+
|
222
|
+
# Deserializes the data based on type
|
223
|
+
# @param string type Data type
|
224
|
+
# @param string value Value to be deserialized
|
225
|
+
# @return [Object] Deserialized data
|
226
|
+
def _deserialize(type, value)
|
227
|
+
case type.to_sym
|
228
|
+
when :DateTime
|
229
|
+
DateTime.parse(value)
|
230
|
+
when :Date
|
231
|
+
Date.parse(value)
|
232
|
+
when :String
|
233
|
+
value.to_s
|
234
|
+
when :Integer
|
235
|
+
value.to_i
|
236
|
+
when :Float
|
237
|
+
value.to_f
|
238
|
+
when :Boolean
|
239
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
240
|
+
true
|
241
|
+
else
|
242
|
+
false
|
243
|
+
end
|
244
|
+
when :Object
|
245
|
+
# generic object (usually a Hash), return directly
|
246
|
+
value
|
247
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
248
|
+
inner_type = Regexp.last_match[:inner_type]
|
249
|
+
value.map { |v| _deserialize(inner_type, v) }
|
250
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
251
|
+
k_type = Regexp.last_match[:k_type]
|
252
|
+
v_type = Regexp.last_match[:v_type]
|
253
|
+
{}.tap do |hash|
|
254
|
+
value.each do |k, v|
|
255
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
256
|
+
end
|
257
|
+
end
|
258
|
+
else # model
|
259
|
+
MailSlurpClient.const_get(type).build_from_hash(value)
|
260
|
+
end
|
261
|
+
end
|
262
|
+
|
263
|
+
# Returns the string representation of the object
|
264
|
+
# @return [String] String presentation of the object
|
265
|
+
def to_s
|
266
|
+
to_hash.to_s
|
267
|
+
end
|
268
|
+
|
269
|
+
# to_body is an alias to to_hash (backward compatibility)
|
270
|
+
# @return [Hash] Returns the object in the form of hash
|
271
|
+
def to_body
|
272
|
+
to_hash
|
273
|
+
end
|
274
|
+
|
275
|
+
# Returns the object in the form of hash
|
276
|
+
# @return [Hash] Returns the object in the form of hash
|
277
|
+
def to_hash
|
278
|
+
hash = {}
|
279
|
+
self.class.attribute_map.each_pair do |attr, param|
|
280
|
+
value = self.send(attr)
|
281
|
+
if value.nil?
|
282
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
283
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
284
|
+
end
|
285
|
+
|
286
|
+
hash[param] = _to_hash(value)
|
287
|
+
end
|
288
|
+
hash
|
289
|
+
end
|
290
|
+
|
291
|
+
# Outputs non-array value in the form of hash
|
292
|
+
# For object, use to_hash. Otherwise, just return the value
|
293
|
+
# @param [Object] value Any valid value
|
294
|
+
# @return [Hash] Returns the value in the form of hash
|
295
|
+
def _to_hash(value)
|
296
|
+
if value.is_a?(Array)
|
297
|
+
value.compact.map { |v| _to_hash(v) }
|
298
|
+
elsif value.is_a?(Hash)
|
299
|
+
{}.tap do |hash|
|
300
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
301
|
+
end
|
302
|
+
elsif value.respond_to? :to_hash
|
303
|
+
value.to_hash
|
304
|
+
else
|
305
|
+
value
|
306
|
+
end
|
307
|
+
end
|
308
|
+
end
|
309
|
+
end
|
@@ -29,12 +29,12 @@ module MailSlurpClient
|
|
29
29
|
|
30
30
|
attr_accessor :attachments
|
31
31
|
|
32
|
+
attr_accessor :created_at
|
33
|
+
|
32
34
|
attr_accessor :bcc
|
33
35
|
|
34
36
|
attr_accessor :cc
|
35
37
|
|
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.
|
@@ -47,9 +47,9 @@ module MailSlurpClient
|
|
47
47
|
:'inbox_id' => :'inboxId',
|
48
48
|
:'to' => :'to',
|
49
49
|
:'attachments' => :'attachments',
|
50
|
+
:'created_at' => :'createdAt',
|
50
51
|
:'bcc' => :'bcc',
|
51
52
|
:'cc' => :'cc',
|
52
|
-
:'created_at' => :'createdAt',
|
53
53
|
:'body_md5_hash' => :'bodyMD5Hash'
|
54
54
|
}
|
55
55
|
end
|
@@ -64,9 +64,9 @@ module MailSlurpClient
|
|
64
64
|
:'inbox_id' => :'String',
|
65
65
|
:'to' => :'Array<String>',
|
66
66
|
:'attachments' => :'Array<String>',
|
67
|
+
:'created_at' => :'DateTime',
|
67
68
|
:'bcc' => :'Array<String>',
|
68
69
|
:'cc' => :'Array<String>',
|
69
|
-
:'created_at' => :'DateTime',
|
70
70
|
:'body_md5_hash' => :'String'
|
71
71
|
}
|
72
72
|
end
|
@@ -124,6 +124,10 @@ module MailSlurpClient
|
|
124
124
|
end
|
125
125
|
end
|
126
126
|
|
127
|
+
if attributes.key?(:'created_at')
|
128
|
+
self.created_at = attributes[:'created_at']
|
129
|
+
end
|
130
|
+
|
127
131
|
if attributes.key?(:'bcc')
|
128
132
|
if (value = attributes[:'bcc']).is_a?(Array)
|
129
133
|
self.bcc = value
|
@@ -136,10 +140,6 @@ module MailSlurpClient
|
|
136
140
|
end
|
137
141
|
end
|
138
142
|
|
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
|
@@ -169,6 +169,10 @@ module MailSlurpClient
|
|
169
169
|
invalid_properties.push('invalid value for "attachments", attachments cannot be nil.')
|
170
170
|
end
|
171
171
|
|
172
|
+
if @created_at.nil?
|
173
|
+
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
174
|
+
end
|
175
|
+
|
172
176
|
if @bcc.nil?
|
173
177
|
invalid_properties.push('invalid value for "bcc", bcc cannot be nil.')
|
174
178
|
end
|
@@ -177,10 +181,6 @@ module MailSlurpClient
|
|
177
181
|
invalid_properties.push('invalid value for "cc", cc cannot be nil.')
|
178
182
|
end
|
179
183
|
|
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
|
|
@@ -192,9 +192,9 @@ module MailSlurpClient
|
|
192
192
|
return false if @inbox_id.nil?
|
193
193
|
return false if @to.nil?
|
194
194
|
return false if @attachments.nil?
|
195
|
+
return false if @created_at.nil?
|
195
196
|
return false if @bcc.nil?
|
196
197
|
return false if @cc.nil?
|
197
|
-
return false if @created_at.nil?
|
198
198
|
true
|
199
199
|
end
|
200
200
|
|
@@ -210,9 +210,9 @@ module MailSlurpClient
|
|
210
210
|
inbox_id == o.inbox_id &&
|
211
211
|
to == o.to &&
|
212
212
|
attachments == o.attachments &&
|
213
|
+
created_at == o.created_at &&
|
213
214
|
bcc == o.bcc &&
|
214
215
|
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, inbox_id, to, attachments, bcc, cc,
|
228
|
+
[id, from, user_id, subject, inbox_id, to, attachments, created_at, bcc, cc, body_md5_hash].hash
|
229
229
|
end
|
230
230
|
|
231
231
|
# Builds the object from hash
|
@@ -19,20 +19,20 @@ module MailSlurpClient
|
|
19
19
|
|
20
20
|
attr_accessor :id
|
21
21
|
|
22
|
-
attr_accessor :inbox_id
|
23
|
-
|
24
22
|
attr_accessor :subject
|
25
23
|
|
26
24
|
attr_accessor :user_id
|
27
25
|
|
26
|
+
attr_accessor :inbox_id
|
27
|
+
|
28
28
|
attr_accessor :to
|
29
29
|
|
30
|
+
attr_accessor :created_at
|
31
|
+
|
30
32
|
attr_accessor :bcc
|
31
33
|
|
32
34
|
attr_accessor :cc
|
33
35
|
|
34
|
-
attr_accessor :created_at
|
35
|
-
|
36
36
|
attr_accessor :updated_at
|
37
37
|
|
38
38
|
attr_accessor :alias_id
|
@@ -42,13 +42,13 @@ module MailSlurpClient
|
|
42
42
|
{
|
43
43
|
:'name' => :'name',
|
44
44
|
:'id' => :'id',
|
45
|
-
:'inbox_id' => :'inboxId',
|
46
45
|
:'subject' => :'subject',
|
47
46
|
:'user_id' => :'userId',
|
47
|
+
:'inbox_id' => :'inboxId',
|
48
48
|
:'to' => :'to',
|
49
|
+
:'created_at' => :'createdAt',
|
49
50
|
:'bcc' => :'bcc',
|
50
51
|
:'cc' => :'cc',
|
51
|
-
:'created_at' => :'createdAt',
|
52
52
|
:'updated_at' => :'updatedAt',
|
53
53
|
:'alias_id' => :'aliasId'
|
54
54
|
}
|
@@ -59,13 +59,13 @@ module MailSlurpClient
|
|
59
59
|
{
|
60
60
|
:'name' => :'String',
|
61
61
|
:'id' => :'String',
|
62
|
-
:'inbox_id' => :'String',
|
63
62
|
:'subject' => :'String',
|
64
63
|
:'user_id' => :'String',
|
64
|
+
:'inbox_id' => :'String',
|
65
65
|
:'to' => :'Array<String>',
|
66
|
+
:'created_at' => :'DateTime',
|
66
67
|
:'bcc' => :'Array<String>',
|
67
68
|
:'cc' => :'Array<String>',
|
68
|
-
:'created_at' => :'DateTime',
|
69
69
|
:'updated_at' => :'DateTime',
|
70
70
|
:'alias_id' => :'String'
|
71
71
|
}
|
@@ -100,10 +100,6 @@ module MailSlurpClient
|
|
100
100
|
self.id = attributes[:'id']
|
101
101
|
end
|
102
102
|
|
103
|
-
if attributes.key?(:'inbox_id')
|
104
|
-
self.inbox_id = attributes[:'inbox_id']
|
105
|
-
end
|
106
|
-
|
107
103
|
if attributes.key?(:'subject')
|
108
104
|
self.subject = attributes[:'subject']
|
109
105
|
end
|
@@ -112,12 +108,20 @@ module MailSlurpClient
|
|
112
108
|
self.user_id = attributes[:'user_id']
|
113
109
|
end
|
114
110
|
|
111
|
+
if attributes.key?(:'inbox_id')
|
112
|
+
self.inbox_id = attributes[:'inbox_id']
|
113
|
+
end
|
114
|
+
|
115
115
|
if attributes.key?(:'to')
|
116
116
|
if (value = attributes[:'to']).is_a?(Array)
|
117
117
|
self.to = value
|
118
118
|
end
|
119
119
|
end
|
120
120
|
|
121
|
+
if attributes.key?(:'created_at')
|
122
|
+
self.created_at = attributes[:'created_at']
|
123
|
+
end
|
124
|
+
|
121
125
|
if attributes.key?(:'bcc')
|
122
126
|
if (value = attributes[:'bcc']).is_a?(Array)
|
123
127
|
self.bcc = value
|
@@ -130,10 +134,6 @@ module MailSlurpClient
|
|
130
134
|
end
|
131
135
|
end
|
132
136
|
|
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
|
@@ -151,14 +151,14 @@ module MailSlurpClient
|
|
151
151
|
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
152
152
|
end
|
153
153
|
|
154
|
-
if @inbox_id.nil?
|
155
|
-
invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
|
156
|
-
end
|
157
|
-
|
158
154
|
if @user_id.nil?
|
159
155
|
invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
|
160
156
|
end
|
161
157
|
|
158
|
+
if @inbox_id.nil?
|
159
|
+
invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
|
160
|
+
end
|
161
|
+
|
162
162
|
if @to.nil?
|
163
163
|
invalid_properties.push('invalid value for "to", to cannot be nil.')
|
164
164
|
end
|
@@ -182,8 +182,8 @@ module MailSlurpClient
|
|
182
182
|
# @return true if the model is valid
|
183
183
|
def valid?
|
184
184
|
return false if @id.nil?
|
185
|
-
return false if @inbox_id.nil?
|
186
185
|
return false if @user_id.nil?
|
186
|
+
return false if @inbox_id.nil?
|
187
187
|
return false if @to.nil?
|
188
188
|
return false if @created_at.nil?
|
189
189
|
return false if @updated_at.nil?
|
@@ -198,13 +198,13 @@ module MailSlurpClient
|
|
198
198
|
self.class == o.class &&
|
199
199
|
name == o.name &&
|
200
200
|
id == o.id &&
|
201
|
-
inbox_id == o.inbox_id &&
|
202
201
|
subject == o.subject &&
|
203
202
|
user_id == o.user_id &&
|
203
|
+
inbox_id == o.inbox_id &&
|
204
204
|
to == o.to &&
|
205
|
+
created_at == o.created_at &&
|
205
206
|
bcc == o.bcc &&
|
206
207
|
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,
|
221
|
+
[name, id, subject, user_id, inbox_id, to, created_at, bcc, cc, updated_at, alias_id].hash
|
222
222
|
end
|
223
223
|
|
224
224
|
# Builds the object from hash
|
@@ -18,10 +18,10 @@ module MailSlurpClient
|
|
18
18
|
|
19
19
|
attr_accessor :id
|
20
20
|
|
21
|
-
attr_accessor :inbox_id
|
22
|
-
|
23
21
|
attr_accessor :user_id
|
24
22
|
|
23
|
+
attr_accessor :inbox_id
|
24
|
+
|
25
25
|
attr_accessor :created_at
|
26
26
|
|
27
27
|
attr_accessor :seen
|
@@ -37,8 +37,8 @@ module MailSlurpClient
|
|
37
37
|
{
|
38
38
|
:'name' => :'name',
|
39
39
|
:'id' => :'id',
|
40
|
-
:'inbox_id' => :'inboxId',
|
41
40
|
:'user_id' => :'userId',
|
41
|
+
:'inbox_id' => :'inboxId',
|
42
42
|
:'created_at' => :'createdAt',
|
43
43
|
:'seen' => :'seen',
|
44
44
|
:'recipient' => :'recipient',
|
@@ -52,8 +52,8 @@ module MailSlurpClient
|
|
52
52
|
{
|
53
53
|
:'name' => :'String',
|
54
54
|
:'id' => :'String',
|
55
|
-
:'inbox_id' => :'String',
|
56
55
|
:'user_id' => :'String',
|
56
|
+
:'inbox_id' => :'String',
|
57
57
|
:'created_at' => :'DateTime',
|
58
58
|
:'seen' => :'Boolean',
|
59
59
|
:'recipient' => :'String',
|
@@ -91,14 +91,14 @@ module MailSlurpClient
|
|
91
91
|
self.id = attributes[:'id']
|
92
92
|
end
|
93
93
|
|
94
|
-
if attributes.key?(:'inbox_id')
|
95
|
-
self.inbox_id = attributes[:'inbox_id']
|
96
|
-
end
|
97
|
-
|
98
94
|
if attributes.key?(:'user_id')
|
99
95
|
self.user_id = attributes[:'user_id']
|
100
96
|
end
|
101
97
|
|
98
|
+
if attributes.key?(:'inbox_id')
|
99
|
+
self.inbox_id = attributes[:'inbox_id']
|
100
|
+
end
|
101
|
+
|
102
102
|
if attributes.key?(:'created_at')
|
103
103
|
self.created_at = attributes[:'created_at']
|
104
104
|
end
|
@@ -160,8 +160,8 @@ module MailSlurpClient
|
|
160
160
|
self.class == o.class &&
|
161
161
|
name == o.name &&
|
162
162
|
id == o.id &&
|
163
|
-
inbox_id == o.inbox_id &&
|
164
163
|
user_id == o.user_id &&
|
164
|
+
inbox_id == o.inbox_id &&
|
165
165
|
created_at == o.created_at &&
|
166
166
|
seen == o.seen &&
|
167
167
|
recipient == o.recipient &&
|
@@ -178,7 +178,7 @@ module MailSlurpClient
|
|
178
178
|
# Calculates hash code according to all attributes.
|
179
179
|
# @return [Integer] Hash code
|
180
180
|
def hash
|
181
|
-
[name, id,
|
181
|
+
[name, id, user_id, inbox_id, created_at, seen, recipient, seen_at, sent_email_id].hash
|
182
182
|
end
|
183
183
|
|
184
184
|
# Builds the object from hash
|
data/lib/mailslurp_client.rb
CHANGED
@@ -75,6 +75,7 @@ require 'mailslurp_client/models/group_dto'
|
|
75
75
|
require 'mailslurp_client/models/group_projection'
|
76
76
|
require 'mailslurp_client/models/html_validation_result'
|
77
77
|
require 'mailslurp_client/models/ip_address_result'
|
78
|
+
require 'mailslurp_client/models/imap_smtp_access_details'
|
78
79
|
require 'mailslurp_client/models/inbox_by_email_address_result'
|
79
80
|
require 'mailslurp_client/models/inbox_dto'
|
80
81
|
require 'mailslurp_client/models/inbox_exists_dto'
|
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.
|
4
|
+
version: 15.4.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-01-
|
11
|
+
date: 2022-01-20 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.
|
@@ -105,6 +105,7 @@ files:
|
|
105
105
|
- lib/mailslurp_client/models/group_dto.rb
|
106
106
|
- lib/mailslurp_client/models/group_projection.rb
|
107
107
|
- lib/mailslurp_client/models/html_validation_result.rb
|
108
|
+
- lib/mailslurp_client/models/imap_smtp_access_details.rb
|
108
109
|
- lib/mailslurp_client/models/inbox_by_email_address_result.rb
|
109
110
|
- lib/mailslurp_client/models/inbox_dto.rb
|
110
111
|
- lib/mailslurp_client/models/inbox_exists_dto.rb
|