mailslurp_client 15.0.7 → 15.1.2
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/attachment_controller_api.rb +3 -3
- data/lib/mailslurp_client/api/email_controller_api.rb +6 -6
- data/lib/mailslurp_client/api/expired_controller_api.rb +9 -9
- data/lib/mailslurp_client/api/inbox_controller_api.rb +10 -10
- data/lib/mailslurp_client/models/abstract_webhook_payload.rb +13 -13
- 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/missed_email_projection.rb +10 -10
- 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/pageable_object.rb +22 -22
- 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
- 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: a6367373ac95c1097fce78e2d74474661bf78ab688a454092ef1d1f44d28c0d8
|
4
|
+
data.tar.gz: 6b8f9f8c112fbd148096e782af52a4d15cec441d2e8139b5110c46a7568b335c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e3ca64dc196dc4184153dd52736cb2a6f29d9c6a567fb31fea6b5b1081e7ba8490c96c9295072708c6236bde5ca1dd21944946b6be085f5335cb4cdb48e07e2d
|
7
|
+
data.tar.gz: 72c9d86b70d41a51c923a0593ea39db6ebbed44af7985d6335fdeabcb5229359ae04984bfab002ff7cc6f719b4eabf864135b4ebec9c19b5b9f58885a0590f9a
|
@@ -195,7 +195,7 @@ module MailSlurpClient
|
|
195
195
|
# Returns the specified attachment for a given email as a stream / array of bytes. You can find attachment ids in email responses endpoint responses. The response type is application/octet-stream.
|
196
196
|
# @param attachment_id [String] ID of attachment
|
197
197
|
# @param [Hash] opts the optional parameters
|
198
|
-
# @return [
|
198
|
+
# @return [String]
|
199
199
|
def download_attachment_as_bytes(attachment_id, opts = {})
|
200
200
|
data, _status_code, _headers = download_attachment_as_bytes_with_http_info(attachment_id, opts)
|
201
201
|
data
|
@@ -205,7 +205,7 @@ module MailSlurpClient
|
|
205
205
|
# Returns the specified attachment for a given email as a stream / array of bytes. You can find attachment ids in email responses endpoint responses. The response type is application/octet-stream.
|
206
206
|
# @param attachment_id [String] ID of attachment
|
207
207
|
# @param [Hash] opts the optional parameters
|
208
|
-
# @return [Array<(
|
208
|
+
# @return [Array<(String, Integer, Hash)>] String data, response status code and response headers
|
209
209
|
def download_attachment_as_bytes_with_http_info(attachment_id, opts = {})
|
210
210
|
if @api_client.config.debugging
|
211
211
|
@api_client.config.logger.debug 'Calling API: AttachmentControllerApi.download_attachment_as_bytes ...'
|
@@ -232,7 +232,7 @@ module MailSlurpClient
|
|
232
232
|
post_body = opts[:body]
|
233
233
|
|
234
234
|
# return_type
|
235
|
-
return_type = opts[:return_type] || '
|
235
|
+
return_type = opts[:return_type] || 'String'
|
236
236
|
|
237
237
|
# auth_names
|
238
238
|
auth_names = opts[:auth_names] || ['API_KEY']
|
@@ -139,7 +139,7 @@ module MailSlurpClient
|
|
139
139
|
# @param attachment_id [String] ID of attachment
|
140
140
|
# @param [Hash] opts the optional parameters
|
141
141
|
# @option opts [String] :api_key Can pass apiKey in url for this request if you wish to download the file in a browser. Content type will be set to original content type of the attachment file. This is so that browsers can download the file correctly.
|
142
|
-
# @return [
|
142
|
+
# @return [String]
|
143
143
|
def download_attachment(email_id, attachment_id, opts = {})
|
144
144
|
data, _status_code, _headers = download_attachment_with_http_info(email_id, attachment_id, opts)
|
145
145
|
data
|
@@ -151,7 +151,7 @@ module MailSlurpClient
|
|
151
151
|
# @param attachment_id [String] ID of attachment
|
152
152
|
# @param [Hash] opts the optional parameters
|
153
153
|
# @option opts [String] :api_key Can pass apiKey in url for this request if you wish to download the file in a browser. Content type will be set to original content type of the attachment file. This is so that browsers can download the file correctly.
|
154
|
-
# @return [Array<(
|
154
|
+
# @return [Array<(String, Integer, Hash)>] String data, response status code and response headers
|
155
155
|
def download_attachment_with_http_info(email_id, attachment_id, opts = {})
|
156
156
|
if @api_client.config.debugging
|
157
157
|
@api_client.config.logger.debug 'Calling API: EmailControllerApi.download_attachment ...'
|
@@ -183,7 +183,7 @@ module MailSlurpClient
|
|
183
183
|
post_body = opts[:body]
|
184
184
|
|
185
185
|
# return_type
|
186
|
-
return_type = opts[:return_type] || '
|
186
|
+
return_type = opts[:return_type] || 'String'
|
187
187
|
|
188
188
|
# auth_names
|
189
189
|
auth_names = opts[:auth_names] || ['API_KEY']
|
@@ -338,7 +338,7 @@ module MailSlurpClient
|
|
338
338
|
# Returns the specified email body for a given email as a stream / array of bytes.
|
339
339
|
# @param email_id [String] ID of email
|
340
340
|
# @param [Hash] opts the optional parameters
|
341
|
-
# @return [
|
341
|
+
# @return [String]
|
342
342
|
def download_body_bytes(email_id, opts = {})
|
343
343
|
data, _status_code, _headers = download_body_bytes_with_http_info(email_id, opts)
|
344
344
|
data
|
@@ -348,7 +348,7 @@ module MailSlurpClient
|
|
348
348
|
# Returns the specified email body for a given email as a stream / array of bytes.
|
349
349
|
# @param email_id [String] ID of email
|
350
350
|
# @param [Hash] opts the optional parameters
|
351
|
-
# @return [Array<(
|
351
|
+
# @return [Array<(String, Integer, Hash)>] String data, response status code and response headers
|
352
352
|
def download_body_bytes_with_http_info(email_id, opts = {})
|
353
353
|
if @api_client.config.debugging
|
354
354
|
@api_client.config.logger.debug 'Calling API: EmailControllerApi.download_body_bytes ...'
|
@@ -375,7 +375,7 @@ module MailSlurpClient
|
|
375
375
|
post_body = opts[:body]
|
376
376
|
|
377
377
|
# return_type
|
378
|
-
return_type = opts[:return_type] || '
|
378
|
+
return_type = opts[:return_type] || 'String'
|
379
379
|
|
380
380
|
# auth_names
|
381
381
|
auth_names = opts[:auth_names] || ['API_KEY']
|
@@ -139,29 +139,29 @@ module MailSlurpClient
|
|
139
139
|
|
140
140
|
# Get an expired inbox record
|
141
141
|
# Inboxes created with an expiration date will expire after the given date and be moved to an ExpiredInbox entity. You can still read emails in the inbox but it can no longer send or receive emails. Fetch the expired inboxes to view the old inboxes properties
|
142
|
-
# @param
|
142
|
+
# @param expired_id [String] ID of the ExpiredInboxRecord you want to retrieve. This is different from the ID of the inbox you are interested in. See other methods for getting ExpiredInboxRecord for an inbox inboxId
|
143
143
|
# @param [Hash] opts the optional parameters
|
144
144
|
# @return [ExpiredInboxDto]
|
145
|
-
def get_expired_inbox_record(
|
146
|
-
data, _status_code, _headers = get_expired_inbox_record_with_http_info(
|
145
|
+
def get_expired_inbox_record(expired_id, opts = {})
|
146
|
+
data, _status_code, _headers = get_expired_inbox_record_with_http_info(expired_id, opts)
|
147
147
|
data
|
148
148
|
end
|
149
149
|
|
150
150
|
# Get an expired inbox record
|
151
151
|
# Inboxes created with an expiration date will expire after the given date and be moved to an ExpiredInbox entity. You can still read emails in the inbox but it can no longer send or receive emails. Fetch the expired inboxes to view the old inboxes properties
|
152
|
-
# @param
|
152
|
+
# @param expired_id [String] ID of the ExpiredInboxRecord you want to retrieve. This is different from the ID of the inbox you are interested in. See other methods for getting ExpiredInboxRecord for an inbox inboxId
|
153
153
|
# @param [Hash] opts the optional parameters
|
154
154
|
# @return [Array<(ExpiredInboxDto, Integer, Hash)>] ExpiredInboxDto data, response status code and response headers
|
155
|
-
def get_expired_inbox_record_with_http_info(
|
155
|
+
def get_expired_inbox_record_with_http_info(expired_id, opts = {})
|
156
156
|
if @api_client.config.debugging
|
157
157
|
@api_client.config.logger.debug 'Calling API: ExpiredControllerApi.get_expired_inbox_record ...'
|
158
158
|
end
|
159
|
-
# verify the required parameter '
|
160
|
-
if @api_client.config.client_side_validation &&
|
161
|
-
fail ArgumentError, "Missing the required parameter '
|
159
|
+
# verify the required parameter 'expired_id' is set
|
160
|
+
if @api_client.config.client_side_validation && expired_id.nil?
|
161
|
+
fail ArgumentError, "Missing the required parameter 'expired_id' when calling ExpiredControllerApi.get_expired_inbox_record"
|
162
162
|
end
|
163
163
|
# resource path
|
164
|
-
local_var_path = '/expired/{expiredId}'.sub('{' + '
|
164
|
+
local_var_path = '/expired/{expiredId}'.sub('{' + 'expiredId' + '}', CGI.escape(expired_id.to_s))
|
165
165
|
|
166
166
|
# query parameters
|
167
167
|
query_params = opts[:query_params] || {}
|
@@ -624,9 +624,9 @@ module MailSlurpClient
|
|
624
624
|
# List emails that an inbox has received. Only emails that are sent to the inbox's email address will appear in the inbox. It may take several seconds for any email you send to an inbox's email address to appear in the inbox. To make this endpoint wait for a minimum number of emails use the `minCount` parameter. The server will retry the inbox database until the `minCount` is satisfied or the `retryTimeout` is reached
|
625
625
|
# @param inbox_id [String] Id of inbox that emails belongs to
|
626
626
|
# @param [Hash] opts the optional parameters
|
627
|
-
# @option opts [Integer] :
|
627
|
+
# @option opts [Integer] :size Alias for limit. Assessed first before assessing any passed limit.
|
628
628
|
# @option opts [Integer] :limit Limit the result set, ordered by received date time sort direction. Maximum 100. For more listing options see the email controller
|
629
|
-
# @option opts [String] :
|
629
|
+
# @option opts [String] :sort Sort the results by received date and direction ASC or DESC
|
630
630
|
# @option opts [Integer] :retry_timeout Maximum milliseconds to spend retrying inbox database until minCount emails are returned
|
631
631
|
# @option opts [Integer] :delay_timeout
|
632
632
|
# @option opts [Integer] :min_count Minimum acceptable email count. Will cause request to hang (and retry) until minCount is satisfied or retryTimeout is reached.
|
@@ -643,9 +643,9 @@ module MailSlurpClient
|
|
643
643
|
# List emails that an inbox has received. Only emails that are sent to the inbox's email address will appear in the inbox. It may take several seconds for any email you send to an inbox's email address to appear in the inbox. To make this endpoint wait for a minimum number of emails use the `minCount` parameter. The server will retry the inbox database until the `minCount` is satisfied or the `retryTimeout` is reached
|
644
644
|
# @param inbox_id [String] Id of inbox that emails belongs to
|
645
645
|
# @param [Hash] opts the optional parameters
|
646
|
-
# @option opts [Integer] :
|
646
|
+
# @option opts [Integer] :size Alias for limit. Assessed first before assessing any passed limit.
|
647
647
|
# @option opts [Integer] :limit Limit the result set, ordered by received date time sort direction. Maximum 100. For more listing options see the email controller
|
648
|
-
# @option opts [String] :
|
648
|
+
# @option opts [String] :sort Sort the results by received date and direction ASC or DESC
|
649
649
|
# @option opts [Integer] :retry_timeout Maximum milliseconds to spend retrying inbox database until minCount emails are returned
|
650
650
|
# @option opts [Integer] :delay_timeout
|
651
651
|
# @option opts [Integer] :min_count Minimum acceptable email count. Will cause request to hang (and retry) until minCount is satisfied or retryTimeout is reached.
|
@@ -661,8 +661,8 @@ module MailSlurpClient
|
|
661
661
|
if @api_client.config.client_side_validation && inbox_id.nil?
|
662
662
|
fail ArgumentError, "Missing the required parameter 'inbox_id' when calling InboxControllerApi.get_emails"
|
663
663
|
end
|
664
|
-
if @api_client.config.client_side_validation && !opts[:'
|
665
|
-
fail ArgumentError, 'invalid value for "opts[:"
|
664
|
+
if @api_client.config.client_side_validation && !opts[:'size'].nil? && opts[:'size'] > 100
|
665
|
+
fail ArgumentError, 'invalid value for "opts[:"size"]" when calling InboxControllerApi.get_emails, must be smaller than or equal to 100.'
|
666
666
|
end
|
667
667
|
|
668
668
|
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 100
|
@@ -670,17 +670,17 @@ module MailSlurpClient
|
|
670
670
|
end
|
671
671
|
|
672
672
|
allowable_values = ["ASC", "DESC"]
|
673
|
-
if @api_client.config.client_side_validation && opts[:'
|
674
|
-
fail ArgumentError, "invalid value for \"
|
673
|
+
if @api_client.config.client_side_validation && opts[:'sort'] && !allowable_values.include?(opts[:'sort'])
|
674
|
+
fail ArgumentError, "invalid value for \"sort\", must be one of #{allowable_values}"
|
675
675
|
end
|
676
676
|
# resource path
|
677
677
|
local_var_path = '/inboxes/{inboxId}/emails'.sub('{' + 'inboxId' + '}', CGI.escape(inbox_id.to_s))
|
678
678
|
|
679
679
|
# query parameters
|
680
680
|
query_params = opts[:query_params] || {}
|
681
|
-
query_params[:'
|
681
|
+
query_params[:'size'] = opts[:'size'] if !opts[:'size'].nil?
|
682
682
|
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
683
|
-
query_params[:'
|
683
|
+
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
684
684
|
query_params[:'retryTimeout'] = opts[:'retry_timeout'] if !opts[:'retry_timeout'].nil?
|
685
685
|
query_params[:'delayTimeout'] = opts[:'delay_timeout'] if !opts[:'delay_timeout'].nil?
|
686
686
|
query_params[:'minCount'] = opts[:'min_count'] if !opts[:'min_count'].nil?
|
@@ -15,14 +15,14 @@ require 'date'
|
|
15
15
|
module MailSlurpClient
|
16
16
|
# Abstract webhook payload. Use the correct payload type for your webhook event type in order to access all the specific properties for that event. See the `NEW_EMAIL`,`NEW_CONTACT`, `NEW_ATTACHMENT` and `EMAIL_OPENED` payloads for the properties available for those events.
|
17
17
|
class AbstractWebhookPayload
|
18
|
-
attr_accessor :webhook_name
|
19
|
-
|
20
18
|
attr_accessor :event_name
|
21
19
|
|
22
20
|
attr_accessor :webhook_id
|
23
21
|
|
24
22
|
attr_accessor :message_id
|
25
23
|
|
24
|
+
attr_accessor :webhook_name
|
25
|
+
|
26
26
|
class EnumAttributeValidator
|
27
27
|
attr_reader :datatype
|
28
28
|
attr_reader :allowable_values
|
@@ -48,20 +48,20 @@ module MailSlurpClient
|
|
48
48
|
# Attribute mapping from ruby-style variable name to JSON key.
|
49
49
|
def self.attribute_map
|
50
50
|
{
|
51
|
-
:'webhook_name' => :'webhookName',
|
52
51
|
:'event_name' => :'eventName',
|
53
52
|
:'webhook_id' => :'webhookId',
|
54
|
-
:'message_id' => :'messageId'
|
53
|
+
:'message_id' => :'messageId',
|
54
|
+
:'webhook_name' => :'webhookName'
|
55
55
|
}
|
56
56
|
end
|
57
57
|
|
58
58
|
# Attribute type mapping.
|
59
59
|
def self.openapi_types
|
60
60
|
{
|
61
|
-
:'webhook_name' => :'String',
|
62
61
|
:'event_name' => :'String',
|
63
62
|
:'webhook_id' => :'String',
|
64
|
-
:'message_id' => :'String'
|
63
|
+
:'message_id' => :'String',
|
64
|
+
:'webhook_name' => :'String'
|
65
65
|
}
|
66
66
|
end
|
67
67
|
|
@@ -86,10 +86,6 @@ module MailSlurpClient
|
|
86
86
|
h[k.to_sym] = v
|
87
87
|
}
|
88
88
|
|
89
|
-
if attributes.key?(:'webhook_name')
|
90
|
-
self.webhook_name = attributes[:'webhook_name']
|
91
|
-
end
|
92
|
-
|
93
89
|
if attributes.key?(:'event_name')
|
94
90
|
self.event_name = attributes[:'event_name']
|
95
91
|
end
|
@@ -101,6 +97,10 @@ module MailSlurpClient
|
|
101
97
|
if attributes.key?(:'message_id')
|
102
98
|
self.message_id = attributes[:'message_id']
|
103
99
|
end
|
100
|
+
|
101
|
+
if attributes.key?(:'webhook_name')
|
102
|
+
self.webhook_name = attributes[:'webhook_name']
|
103
|
+
end
|
104
104
|
end
|
105
105
|
|
106
106
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -148,10 +148,10 @@ module MailSlurpClient
|
|
148
148
|
def ==(o)
|
149
149
|
return true if self.equal?(o)
|
150
150
|
self.class == o.class &&
|
151
|
-
webhook_name == o.webhook_name &&
|
152
151
|
event_name == o.event_name &&
|
153
152
|
webhook_id == o.webhook_id &&
|
154
|
-
message_id == o.message_id
|
153
|
+
message_id == o.message_id &&
|
154
|
+
webhook_name == o.webhook_name
|
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
|
-
[
|
166
|
+
[event_name, webhook_id, message_id, webhook_name].hash
|
167
167
|
end
|
168
168
|
|
169
169
|
# Builds the object from hash
|
@@ -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
|
@@ -19,28 +19,28 @@ module MailSlurpClient
|
|
19
19
|
# Content length of attachment in bytes
|
20
20
|
attr_accessor :content_length
|
21
21
|
|
22
|
-
|
22
|
+
# Content type of attachment.
|
23
|
+
attr_accessor :content_type
|
23
24
|
|
24
|
-
attr_accessor :
|
25
|
+
attr_accessor :user_id
|
25
26
|
|
26
27
|
# Attachment ID
|
27
28
|
attr_accessor :attachment_id
|
28
29
|
|
29
|
-
attr_accessor :
|
30
|
+
attr_accessor :created_at
|
30
31
|
|
31
|
-
|
32
|
-
attr_accessor :content_type
|
32
|
+
attr_accessor :updated_at
|
33
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',
|
39
40
|
:'user_id' => :'userId',
|
40
|
-
:'created_at' => :'createdAt',
|
41
41
|
:'attachment_id' => :'attachmentId',
|
42
|
-
:'
|
43
|
-
:'
|
42
|
+
:'created_at' => :'createdAt',
|
43
|
+
:'updated_at' => :'updatedAt'
|
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',
|
52
53
|
:'user_id' => :'String',
|
53
|
-
:'created_at' => :'DateTime',
|
54
54
|
:'attachment_id' => :'String',
|
55
|
-
:'
|
56
|
-
:'
|
55
|
+
:'created_at' => :'DateTime',
|
56
|
+
:'updated_at' => :'DateTime'
|
57
57
|
}
|
58
58
|
end
|
59
59
|
|
@@ -86,24 +86,24 @@ module MailSlurpClient
|
|
86
86
|
self.content_length = attributes[:'content_length']
|
87
87
|
end
|
88
88
|
|
89
|
-
if attributes.key?(:'
|
90
|
-
self.
|
89
|
+
if attributes.key?(:'content_type')
|
90
|
+
self.content_type = attributes[:'content_type']
|
91
91
|
end
|
92
92
|
|
93
|
-
if attributes.key?(:'
|
94
|
-
self.
|
93
|
+
if attributes.key?(:'user_id')
|
94
|
+
self.user_id = attributes[:'user_id']
|
95
95
|
end
|
96
96
|
|
97
97
|
if attributes.key?(:'attachment_id')
|
98
98
|
self.attachment_id = attributes[:'attachment_id']
|
99
99
|
end
|
100
100
|
|
101
|
-
if attributes.key?(:'
|
102
|
-
self.
|
101
|
+
if attributes.key?(:'created_at')
|
102
|
+
self.created_at = attributes[:'created_at']
|
103
103
|
end
|
104
104
|
|
105
|
-
if attributes.key?(:'
|
106
|
-
self.
|
105
|
+
if attributes.key?(:'updated_at')
|
106
|
+
self.updated_at = attributes[:'updated_at']
|
107
107
|
end
|
108
108
|
end
|
109
109
|
|
@@ -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 @created_at.nil?
|
119
|
-
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
120
|
-
end
|
121
|
-
|
122
118
|
if @attachment_id.nil?
|
123
119
|
invalid_properties.push('invalid value for "attachment_id", attachment_id cannot be nil.')
|
124
120
|
end
|
125
121
|
|
122
|
+
if @created_at.nil?
|
123
|
+
invalid_properties.push('invalid value for "created_at", created_at 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 @created_at.nil?
|
138
137
|
return false if @attachment_id.nil?
|
138
|
+
return false if @created_at.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 &&
|
150
151
|
user_id == o.user_id &&
|
151
|
-
created_at == o.created_at &&
|
152
152
|
attachment_id == o.attachment_id &&
|
153
|
-
|
154
|
-
|
153
|
+
created_at == o.created_at &&
|
154
|
+
updated_at == o.updated_at
|
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, content_type, user_id, attachment_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
|