mailslurp_client 15.2.8 → 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 +176 -0
- data/lib/mailslurp_client/models/alias_projection.rb +15 -15
- data/lib/mailslurp_client/models/attachment_projection.rb +28 -28
- data/lib/mailslurp_client/models/contact_projection.rb +13 -13
- data/lib/mailslurp_client/models/email_projection.rb +10 -10
- data/lib/mailslurp_client/models/expired_inbox_record_projection.rb +15 -15
- data/lib/mailslurp_client/models/imap_smtp_access_details.rb +309 -0
- data/lib/mailslurp_client/models/inbox_by_email_address_result.rb +220 -0
- data/lib/mailslurp_client/models/inbox_id_item.rb +225 -0
- data/lib/mailslurp_client/models/inbox_ids_result.rb +213 -0
- data/lib/mailslurp_client/models/page_alias.rb +19 -19
- data/lib/mailslurp_client/models/page_attachment_entity.rb +19 -19
- data/lib/mailslurp_client/models/page_bounced_email.rb +19 -19
- data/lib/mailslurp_client/models/page_bounced_recipients.rb +19 -19
- data/lib/mailslurp_client/models/page_contact_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_email_preview.rb +19 -19
- data/lib/mailslurp_client/models/page_email_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_expired_inbox_record_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_group_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_inbox_forwarder_dto.rb +19 -19
- data/lib/mailslurp_client/models/page_inbox_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_inbox_ruleset_dto.rb +19 -19
- data/lib/mailslurp_client/models/page_missed_email_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_organization_inbox_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_template_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_thread_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_tracking_pixel_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_unknown_missed_email_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_webhook_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_webhook_result.rb +19 -19
- 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 +4 -0
- metadata +6 -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]
|
@@ -783,6 +840,69 @@ module MailSlurpClient
|
|
783
840
|
return data, status_code, headers
|
784
841
|
end
|
785
842
|
|
843
|
+
# Search for an inbox with the provided email address
|
844
|
+
# Get a inbox result by email address
|
845
|
+
# @param email_address [String]
|
846
|
+
# @param [Hash] opts the optional parameters
|
847
|
+
# @return [InboxByEmailAddressResult]
|
848
|
+
def get_inbox_by_email_address(email_address, opts = {})
|
849
|
+
data, _status_code, _headers = get_inbox_by_email_address_with_http_info(email_address, opts)
|
850
|
+
data
|
851
|
+
end
|
852
|
+
|
853
|
+
# Search for an inbox with the provided email address
|
854
|
+
# Get a inbox result by email address
|
855
|
+
# @param email_address [String]
|
856
|
+
# @param [Hash] opts the optional parameters
|
857
|
+
# @return [Array<(InboxByEmailAddressResult, Integer, Hash)>] InboxByEmailAddressResult data, response status code and response headers
|
858
|
+
def get_inbox_by_email_address_with_http_info(email_address, opts = {})
|
859
|
+
if @api_client.config.debugging
|
860
|
+
@api_client.config.logger.debug 'Calling API: InboxControllerApi.get_inbox_by_email_address ...'
|
861
|
+
end
|
862
|
+
# verify the required parameter 'email_address' is set
|
863
|
+
if @api_client.config.client_side_validation && email_address.nil?
|
864
|
+
fail ArgumentError, "Missing the required parameter 'email_address' when calling InboxControllerApi.get_inbox_by_email_address"
|
865
|
+
end
|
866
|
+
# resource path
|
867
|
+
local_var_path = '/inboxes/byEmailAddress'
|
868
|
+
|
869
|
+
# query parameters
|
870
|
+
query_params = opts[:query_params] || {}
|
871
|
+
query_params[:'emailAddress'] = email_address
|
872
|
+
|
873
|
+
# header parameters
|
874
|
+
header_params = opts[:header_params] || {}
|
875
|
+
# HTTP header 'Accept' (if needed)
|
876
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
877
|
+
|
878
|
+
# form parameters
|
879
|
+
form_params = opts[:form_params] || {}
|
880
|
+
|
881
|
+
# http body (model)
|
882
|
+
post_body = opts[:body]
|
883
|
+
|
884
|
+
# return_type
|
885
|
+
return_type = opts[:return_type] || 'InboxByEmailAddressResult'
|
886
|
+
|
887
|
+
# auth_names
|
888
|
+
auth_names = opts[:auth_names] || ['API_KEY']
|
889
|
+
|
890
|
+
new_options = opts.merge(
|
891
|
+
:header_params => header_params,
|
892
|
+
:query_params => query_params,
|
893
|
+
:form_params => form_params,
|
894
|
+
:body => post_body,
|
895
|
+
:auth_names => auth_names,
|
896
|
+
:return_type => return_type
|
897
|
+
)
|
898
|
+
|
899
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
900
|
+
if @api_client.config.debugging
|
901
|
+
@api_client.config.logger.debug "API called: InboxControllerApi#get_inbox_by_email_address\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
902
|
+
end
|
903
|
+
return data, status_code, headers
|
904
|
+
end
|
905
|
+
|
786
906
|
# Get total inbox count
|
787
907
|
# @param [Hash] opts the optional parameters
|
788
908
|
# @return [CountDto]
|
@@ -978,6 +1098,62 @@ module MailSlurpClient
|
|
978
1098
|
return data, status_code, headers
|
979
1099
|
end
|
980
1100
|
|
1101
|
+
# Get all inbox IDs
|
1102
|
+
# Get list of inbox IDs
|
1103
|
+
# @param [Hash] opts the optional parameters
|
1104
|
+
# @return [InboxIdsResult]
|
1105
|
+
def get_inbox_ids(opts = {})
|
1106
|
+
data, _status_code, _headers = get_inbox_ids_with_http_info(opts)
|
1107
|
+
data
|
1108
|
+
end
|
1109
|
+
|
1110
|
+
# Get all inbox IDs
|
1111
|
+
# Get list of inbox IDs
|
1112
|
+
# @param [Hash] opts the optional parameters
|
1113
|
+
# @return [Array<(InboxIdsResult, Integer, Hash)>] InboxIdsResult data, response status code and response headers
|
1114
|
+
def get_inbox_ids_with_http_info(opts = {})
|
1115
|
+
if @api_client.config.debugging
|
1116
|
+
@api_client.config.logger.debug 'Calling API: InboxControllerApi.get_inbox_ids ...'
|
1117
|
+
end
|
1118
|
+
# resource path
|
1119
|
+
local_var_path = '/inboxes/ids'
|
1120
|
+
|
1121
|
+
# query parameters
|
1122
|
+
query_params = opts[:query_params] || {}
|
1123
|
+
|
1124
|
+
# header parameters
|
1125
|
+
header_params = opts[:header_params] || {}
|
1126
|
+
# HTTP header 'Accept' (if needed)
|
1127
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
1128
|
+
|
1129
|
+
# form parameters
|
1130
|
+
form_params = opts[:form_params] || {}
|
1131
|
+
|
1132
|
+
# http body (model)
|
1133
|
+
post_body = opts[:body]
|
1134
|
+
|
1135
|
+
# return_type
|
1136
|
+
return_type = opts[:return_type] || 'InboxIdsResult'
|
1137
|
+
|
1138
|
+
# auth_names
|
1139
|
+
auth_names = opts[:auth_names] || ['API_KEY']
|
1140
|
+
|
1141
|
+
new_options = opts.merge(
|
1142
|
+
:header_params => header_params,
|
1143
|
+
:query_params => query_params,
|
1144
|
+
:form_params => form_params,
|
1145
|
+
:body => post_body,
|
1146
|
+
:auth_names => auth_names,
|
1147
|
+
:return_type => return_type
|
1148
|
+
)
|
1149
|
+
|
1150
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
1151
|
+
if @api_client.config.debugging
|
1152
|
+
@api_client.config.logger.debug "API called: InboxControllerApi#get_inbox_ids\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1153
|
+
end
|
1154
|
+
return data, status_code, headers
|
1155
|
+
end
|
1156
|
+
|
981
1157
|
# Get Inbox Sent Emails
|
982
1158
|
# Returns an inbox's sent email receipts. Call individual sent email endpoints for more details. Note for privacy reasons the full body of sent emails is never stored. An MD5 hash hex is available for comparison instead.
|
983
1159
|
# @param inbox_id [String]
|
@@ -19,12 +19,12 @@ module MailSlurpClient
|
|
19
19
|
|
20
20
|
attr_accessor :id
|
21
21
|
|
22
|
+
attr_accessor :user_id
|
23
|
+
|
22
24
|
attr_accessor :email_address
|
23
25
|
|
24
26
|
attr_accessor :inbox_id
|
25
27
|
|
26
|
-
attr_accessor :user_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
|
+
:'user_id' => :'userId',
|
39
40
|
:'email_address' => :'emailAddress',
|
40
41
|
:'inbox_id' => :'inboxId',
|
41
|
-
:'user_id' => :'userId',
|
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
|
+
:'user_id' => :'String',
|
53
54
|
:'email_address' => :'String',
|
54
55
|
:'inbox_id' => :'String',
|
55
|
-
:'user_id' => :'String',
|
56
56
|
:'created_at' => :'DateTime',
|
57
57
|
:'use_threads' => :'Boolean',
|
58
58
|
:'updated_at' => :'DateTime'
|
@@ -88,6 +88,10 @@ module MailSlurpClient
|
|
88
88
|
self.id = attributes[:'id']
|
89
89
|
end
|
90
90
|
|
91
|
+
if attributes.key?(:'user_id')
|
92
|
+
self.user_id = attributes[:'user_id']
|
93
|
+
end
|
94
|
+
|
91
95
|
if attributes.key?(:'email_address')
|
92
96
|
self.email_address = attributes[:'email_address']
|
93
97
|
end
|
@@ -96,10 +100,6 @@ module MailSlurpClient
|
|
96
100
|
self.inbox_id = attributes[:'inbox_id']
|
97
101
|
end
|
98
102
|
|
99
|
-
if attributes.key?(:'user_id')
|
100
|
-
self.user_id = attributes[:'user_id']
|
101
|
-
end
|
102
|
-
|
103
103
|
if attributes.key?(:'created_at')
|
104
104
|
self.created_at = attributes[:'created_at']
|
105
105
|
end
|
@@ -121,6 +121,10 @@ module MailSlurpClient
|
|
121
121
|
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
122
122
|
end
|
123
123
|
|
124
|
+
if @user_id.nil?
|
125
|
+
invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
|
126
|
+
end
|
127
|
+
|
124
128
|
if @email_address.nil?
|
125
129
|
invalid_properties.push('invalid value for "email_address", email_address cannot be nil.')
|
126
130
|
end
|
@@ -129,10 +133,6 @@ module MailSlurpClient
|
|
129
133
|
invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
|
130
134
|
end
|
131
135
|
|
132
|
-
if @user_id.nil?
|
133
|
-
invalid_properties.push('invalid value for "user_id", user_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 @user_id.nil?
|
151
152
|
return false if @email_address.nil?
|
152
153
|
return false if @inbox_id.nil?
|
153
|
-
return false if @user_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
|
+
user_id == o.user_id &&
|
166
167
|
email_address == o.email_address &&
|
167
168
|
inbox_id == o.inbox_id &&
|
168
|
-
user_id == o.user_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, email_address, inbox_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
|
@@ -19,28 +19,28 @@ module MailSlurpClient
|
|
19
19
|
# Content length of attachment in bytes
|
20
20
|
attr_accessor :content_length
|
21
21
|
|
22
|
-
# Content type of attachment.
|
23
|
-
attr_accessor :content_type
|
24
|
-
|
25
22
|
attr_accessor :user_id
|
26
23
|
|
24
|
+
attr_accessor :created_at
|
25
|
+
|
27
26
|
# Attachment ID
|
28
27
|
attr_accessor :attachment_id
|
29
28
|
|
30
|
-
attr_accessor :created_at
|
31
|
-
|
32
29
|
attr_accessor :updated_at
|
33
30
|
|
31
|
+
# Content type of attachment.
|
32
|
+
attr_accessor :content_type
|
33
|
+
|
34
34
|
# Attribute mapping from ruby-style variable name to JSON key.
|
35
35
|
def self.attribute_map
|
36
36
|
{
|
37
37
|
:'name' => :'name',
|
38
38
|
:'content_length' => :'contentLength',
|
39
|
-
:'content_type' => :'contentType',
|
40
39
|
:'user_id' => :'userId',
|
41
|
-
:'attachment_id' => :'attachmentId',
|
42
40
|
:'created_at' => :'createdAt',
|
43
|
-
:'
|
41
|
+
:'attachment_id' => :'attachmentId',
|
42
|
+
:'updated_at' => :'updatedAt',
|
43
|
+
:'content_type' => :'contentType'
|
44
44
|
}
|
45
45
|
end
|
46
46
|
|
@@ -49,11 +49,11 @@ module MailSlurpClient
|
|
49
49
|
{
|
50
50
|
:'name' => :'String',
|
51
51
|
:'content_length' => :'Integer',
|
52
|
-
:'content_type' => :'String',
|
53
52
|
:'user_id' => :'String',
|
54
|
-
:'attachment_id' => :'String',
|
55
53
|
:'created_at' => :'DateTime',
|
56
|
-
:'
|
54
|
+
:'attachment_id' => :'String',
|
55
|
+
:'updated_at' => :'DateTime',
|
56
|
+
:'content_type' => :'String'
|
57
57
|
}
|
58
58
|
end
|
59
59
|
|
@@ -86,25 +86,25 @@ module MailSlurpClient
|
|
86
86
|
self.content_length = attributes[:'content_length']
|
87
87
|
end
|
88
88
|
|
89
|
-
if attributes.key?(:'content_type')
|
90
|
-
self.content_type = attributes[:'content_type']
|
91
|
-
end
|
92
|
-
|
93
89
|
if attributes.key?(:'user_id')
|
94
90
|
self.user_id = attributes[:'user_id']
|
95
91
|
end
|
96
92
|
|
97
|
-
if attributes.key?(:'attachment_id')
|
98
|
-
self.attachment_id = attributes[:'attachment_id']
|
99
|
-
end
|
100
|
-
|
101
93
|
if attributes.key?(:'created_at')
|
102
94
|
self.created_at = attributes[:'created_at']
|
103
95
|
end
|
104
96
|
|
97
|
+
if attributes.key?(:'attachment_id')
|
98
|
+
self.attachment_id = attributes[:'attachment_id']
|
99
|
+
end
|
100
|
+
|
105
101
|
if attributes.key?(:'updated_at')
|
106
102
|
self.updated_at = attributes[:'updated_at']
|
107
103
|
end
|
104
|
+
|
105
|
+
if attributes.key?(:'content_type')
|
106
|
+
self.content_type = attributes[:'content_type']
|
107
|
+
end
|
108
108
|
end
|
109
109
|
|
110
110
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -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
|
@@ -147,11 +147,11 @@ module MailSlurpClient
|
|
147
147
|
self.class == o.class &&
|
148
148
|
name == o.name &&
|
149
149
|
content_length == o.content_length &&
|
150
|
-
content_type == o.content_type &&
|
151
150
|
user_id == o.user_id &&
|
152
|
-
attachment_id == o.attachment_id &&
|
153
151
|
created_at == o.created_at &&
|
154
|
-
|
152
|
+
attachment_id == o.attachment_id &&
|
153
|
+
updated_at == o.updated_at &&
|
154
|
+
content_type == o.content_type
|
155
155
|
end
|
156
156
|
|
157
157
|
# @see the `==` method
|
@@ -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,
|
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
|
@@ -27,12 +27,12 @@ module MailSlurpClient
|
|
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
|
@@ -50,9 +50,9 @@ module MailSlurpClient
|
|
50
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',
|
@@ -69,9 +69,9 @@ module MailSlurpClient
|
|
69
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',
|
@@ -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
|
@@ -205,9 +205,9 @@ module MailSlurpClient
|
|
205
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, subject, inbox_id, to, attachments, bcc, cc,
|
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
|