mailslurp_client 15.1.3 → 15.2.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 +5 -5
- data/lib/mailslurp_client/api/common_actions_controller_api.rb +7 -7
- data/lib/mailslurp_client/api/email_controller_api.rb +35 -35
- data/lib/mailslurp_client/models/alias_projection.rb +15 -15
- data/lib/mailslurp_client/models/expired_inbox_record_projection.rb +15 -15
- data/lib/mailslurp_client/models/missed_email_projection.rb +10 -10
- data/lib/mailslurp_client/models/thread_projection.rb +15 -15
- 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: 46c90f43c94049d40387dac56b805f1bf01495e497451d5c8ad0043d8e64719a
|
4
|
+
data.tar.gz: 0d8d81db180b0b5b24e7de3c1485d66222bb233d64cf39f0885e758873b95e15
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bfa67f66a1713ec6ae3bfb0e5fedf96df84107b12e8349afe364feb607009f56e1bb07cc24ebe0265600443090bb25284d2e9be3b79706cd2715aa98ac5b69a6
|
7
|
+
data.tar.gz: 1764729cb55f3579a5edbe9d1ecd81cfb2f73206b473c312707ea99ad3f9a5911f7fb7c83363713f24699f29f80cd7583642bf23c886d7992553318382626976
|
@@ -385,8 +385,8 @@ module MailSlurpClient
|
|
385
385
|
# @option opts [DateTime] :since Filter by created at after the given timestamp
|
386
386
|
# @option opts [DateTime] :before Filter by created at before the given timestamp
|
387
387
|
# @return [PageAttachmentEntity]
|
388
|
-
def
|
389
|
-
data, _status_code, _headers =
|
388
|
+
def get_attachments(opts = {})
|
389
|
+
data, _status_code, _headers = get_attachments_with_http_info(opts)
|
390
390
|
data
|
391
391
|
end
|
392
392
|
|
@@ -400,9 +400,9 @@ module MailSlurpClient
|
|
400
400
|
# @option opts [DateTime] :since Filter by created at after the given timestamp
|
401
401
|
# @option opts [DateTime] :before Filter by created at before the given timestamp
|
402
402
|
# @return [Array<(PageAttachmentEntity, Integer, Hash)>] PageAttachmentEntity data, response status code and response headers
|
403
|
-
def
|
403
|
+
def get_attachments_with_http_info(opts = {})
|
404
404
|
if @api_client.config.debugging
|
405
|
-
@api_client.config.logger.debug 'Calling API: AttachmentControllerApi.
|
405
|
+
@api_client.config.logger.debug 'Calling API: AttachmentControllerApi.get_attachments ...'
|
406
406
|
end
|
407
407
|
allowable_values = ["ASC", "DESC"]
|
408
408
|
if @api_client.config.client_side_validation && opts[:'sort'] && !allowable_values.include?(opts[:'sort'])
|
@@ -448,7 +448,7 @@ module MailSlurpClient
|
|
448
448
|
|
449
449
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
450
450
|
if @api_client.config.debugging
|
451
|
-
@api_client.config.logger.debug "API called: AttachmentControllerApi#
|
451
|
+
@api_client.config.logger.debug "API called: AttachmentControllerApi#get_attachments\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
452
452
|
end
|
453
453
|
return data, status_code, headers
|
454
454
|
end
|
@@ -61,7 +61,7 @@ module MailSlurpClient
|
|
61
61
|
fail ArgumentError, "invalid value for \"inbox_type\", must be one of #{allowable_values}"
|
62
62
|
end
|
63
63
|
# resource path
|
64
|
-
local_var_path = '/
|
64
|
+
local_var_path = '/newEmailAddress'
|
65
65
|
|
66
66
|
# query parameters
|
67
67
|
query_params = opts[:query_params] || {}
|
@@ -123,8 +123,8 @@ module MailSlurpClient
|
|
123
123
|
# @option opts [Array<String>] :tags
|
124
124
|
# @option opts [Boolean] :favourite
|
125
125
|
# @return [InboxDto]
|
126
|
-
def
|
127
|
-
data, _status_code, _headers =
|
126
|
+
def create_random_inbox(opts = {})
|
127
|
+
data, _status_code, _headers = create_random_inbox_with_http_info(opts)
|
128
128
|
data
|
129
129
|
end
|
130
130
|
|
@@ -142,16 +142,16 @@ module MailSlurpClient
|
|
142
142
|
# @option opts [Array<String>] :tags
|
143
143
|
# @option opts [Boolean] :favourite
|
144
144
|
# @return [Array<(InboxDto, Integer, Hash)>] InboxDto data, response status code and response headers
|
145
|
-
def
|
145
|
+
def create_random_inbox_with_http_info(opts = {})
|
146
146
|
if @api_client.config.debugging
|
147
|
-
@api_client.config.logger.debug 'Calling API: CommonActionsControllerApi.
|
147
|
+
@api_client.config.logger.debug 'Calling API: CommonActionsControllerApi.create_random_inbox ...'
|
148
148
|
end
|
149
149
|
allowable_values = ["HTTP_INBOX", "SMTP_INBOX"]
|
150
150
|
if @api_client.config.client_side_validation && opts[:'inbox_type'] && !allowable_values.include?(opts[:'inbox_type'])
|
151
151
|
fail ArgumentError, "invalid value for \"inbox_type\", must be one of #{allowable_values}"
|
152
152
|
end
|
153
153
|
# resource path
|
154
|
-
local_var_path = '/
|
154
|
+
local_var_path = '/createInbox'
|
155
155
|
|
156
156
|
# query parameters
|
157
157
|
query_params = opts[:query_params] || {}
|
@@ -194,7 +194,7 @@ module MailSlurpClient
|
|
194
194
|
|
195
195
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
196
196
|
if @api_client.config.debugging
|
197
|
-
@api_client.config.logger.debug "API called: CommonActionsControllerApi#
|
197
|
+
@api_client.config.logger.debug "API called: CommonActionsControllerApi#create_random_inbox\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
198
198
|
end
|
199
199
|
return data, status_code, headers
|
200
200
|
end
|
@@ -534,34 +534,37 @@ module MailSlurpClient
|
|
534
534
|
return data, status_code, headers
|
535
535
|
end
|
536
536
|
|
537
|
-
# Get
|
538
|
-
# Returns
|
539
|
-
# @param email_id [String]
|
537
|
+
# Get email content including headers and body. Expects email to exist by ID. For emails that may not have arrived yet use the WaitForController.
|
538
|
+
# Returns a email summary object with headers and content. To retrieve the raw unparsed email use the getRawEmail endpoints
|
539
|
+
# @param email_id [String]
|
540
540
|
# @param [Hash] opts the optional parameters
|
541
|
-
# @
|
542
|
-
|
543
|
-
|
541
|
+
# @option opts [Boolean] :decode Decode email body quoted-printable encoding to plain text. SMTP servers often encode text using quoted-printable format (for instance `=D7`). This can be a pain for testing (default to false)
|
542
|
+
# @return [Email]
|
543
|
+
def get_email(email_id, opts = {})
|
544
|
+
data, _status_code, _headers = get_email_with_http_info(email_id, opts)
|
544
545
|
data
|
545
546
|
end
|
546
547
|
|
547
|
-
# Get
|
548
|
-
# Returns
|
549
|
-
# @param email_id [String]
|
548
|
+
# Get email content including headers and body. Expects email to exist by ID. For emails that may not have arrived yet use the WaitForController.
|
549
|
+
# Returns a email summary object with headers and content. To retrieve the raw unparsed email use the getRawEmail endpoints
|
550
|
+
# @param email_id [String]
|
550
551
|
# @param [Hash] opts the optional parameters
|
551
|
-
# @
|
552
|
-
|
552
|
+
# @option opts [Boolean] :decode Decode email body quoted-printable encoding to plain text. SMTP servers often encode text using quoted-printable format (for instance `=D7`). This can be a pain for testing
|
553
|
+
# @return [Array<(Email, Integer, Hash)>] Email data, response status code and response headers
|
554
|
+
def get_email_with_http_info(email_id, opts = {})
|
553
555
|
if @api_client.config.debugging
|
554
|
-
@api_client.config.logger.debug 'Calling API: EmailControllerApi.
|
556
|
+
@api_client.config.logger.debug 'Calling API: EmailControllerApi.get_email ...'
|
555
557
|
end
|
556
558
|
# verify the required parameter 'email_id' is set
|
557
559
|
if @api_client.config.client_side_validation && email_id.nil?
|
558
|
-
fail ArgumentError, "Missing the required parameter 'email_id' when calling EmailControllerApi.
|
560
|
+
fail ArgumentError, "Missing the required parameter 'email_id' when calling EmailControllerApi.get_email"
|
559
561
|
end
|
560
562
|
# resource path
|
561
|
-
local_var_path = '/emails/{emailId}
|
563
|
+
local_var_path = '/emails/{emailId}'.sub('{' + 'emailId' + '}', CGI.escape(email_id.to_s))
|
562
564
|
|
563
565
|
# query parameters
|
564
566
|
query_params = opts[:query_params] || {}
|
567
|
+
query_params[:'decode'] = opts[:'decode'] if !opts[:'decode'].nil?
|
565
568
|
|
566
569
|
# header parameters
|
567
570
|
header_params = opts[:header_params] || {}
|
@@ -575,7 +578,7 @@ module MailSlurpClient
|
|
575
578
|
post_body = opts[:body]
|
576
579
|
|
577
580
|
# return_type
|
578
|
-
return_type = opts[:return_type] || '
|
581
|
+
return_type = opts[:return_type] || 'Email'
|
579
582
|
|
580
583
|
# auth_names
|
581
584
|
auth_names = opts[:auth_names] || ['API_KEY']
|
@@ -591,42 +594,39 @@ module MailSlurpClient
|
|
591
594
|
|
592
595
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
593
596
|
if @api_client.config.debugging
|
594
|
-
@api_client.config.logger.debug "API called: EmailControllerApi#
|
597
|
+
@api_client.config.logger.debug "API called: EmailControllerApi#get_email\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
595
598
|
end
|
596
599
|
return data, status_code, headers
|
597
600
|
end
|
598
601
|
|
599
|
-
# Get
|
600
|
-
# Returns
|
601
|
-
# @param email_id [String]
|
602
|
+
# Get all email attachment metadata. Metadata includes name and size of attachments.
|
603
|
+
# Returns an array of attachment metadata such as name and content-type for a given email if present.
|
604
|
+
# @param email_id [String] ID of email
|
602
605
|
# @param [Hash] opts the optional parameters
|
603
|
-
# @
|
604
|
-
|
605
|
-
|
606
|
-
data, _status_code, _headers = get_email_with_http_info(email_id, opts)
|
606
|
+
# @return [Array<AttachmentMetaData>]
|
607
|
+
def get_email_attachments(email_id, opts = {})
|
608
|
+
data, _status_code, _headers = get_email_attachments_with_http_info(email_id, opts)
|
607
609
|
data
|
608
610
|
end
|
609
611
|
|
610
|
-
# Get
|
611
|
-
# Returns
|
612
|
-
# @param email_id [String]
|
612
|
+
# Get all email attachment metadata. Metadata includes name and size of attachments.
|
613
|
+
# Returns an array of attachment metadata such as name and content-type for a given email if present.
|
614
|
+
# @param email_id [String] ID of email
|
613
615
|
# @param [Hash] opts the optional parameters
|
614
|
-
# @
|
615
|
-
|
616
|
-
def get_email_with_http_info(email_id, opts = {})
|
616
|
+
# @return [Array<(Array<AttachmentMetaData>, Integer, Hash)>] Array<AttachmentMetaData> data, response status code and response headers
|
617
|
+
def get_email_attachments_with_http_info(email_id, opts = {})
|
617
618
|
if @api_client.config.debugging
|
618
|
-
@api_client.config.logger.debug 'Calling API: EmailControllerApi.
|
619
|
+
@api_client.config.logger.debug 'Calling API: EmailControllerApi.get_email_attachments ...'
|
619
620
|
end
|
620
621
|
# verify the required parameter 'email_id' is set
|
621
622
|
if @api_client.config.client_side_validation && email_id.nil?
|
622
|
-
fail ArgumentError, "Missing the required parameter 'email_id' when calling EmailControllerApi.
|
623
|
+
fail ArgumentError, "Missing the required parameter 'email_id' when calling EmailControllerApi.get_email_attachments"
|
623
624
|
end
|
624
625
|
# resource path
|
625
|
-
local_var_path = '/emails/{emailId}'.sub('{' + 'emailId' + '}', CGI.escape(email_id.to_s))
|
626
|
+
local_var_path = '/emails/{emailId}/attachments'.sub('{' + 'emailId' + '}', CGI.escape(email_id.to_s))
|
626
627
|
|
627
628
|
# query parameters
|
628
629
|
query_params = opts[:query_params] || {}
|
629
|
-
query_params[:'decode'] = opts[:'decode'] if !opts[:'decode'].nil?
|
630
630
|
|
631
631
|
# header parameters
|
632
632
|
header_params = opts[:header_params] || {}
|
@@ -640,7 +640,7 @@ module MailSlurpClient
|
|
640
640
|
post_body = opts[:body]
|
641
641
|
|
642
642
|
# return_type
|
643
|
-
return_type = opts[:return_type] || '
|
643
|
+
return_type = opts[:return_type] || 'Array<AttachmentMetaData>'
|
644
644
|
|
645
645
|
# auth_names
|
646
646
|
auth_names = opts[:auth_names] || ['API_KEY']
|
@@ -656,7 +656,7 @@ module MailSlurpClient
|
|
656
656
|
|
657
657
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
658
658
|
if @api_client.config.debugging
|
659
|
-
@api_client.config.logger.debug "API called: EmailControllerApi#
|
659
|
+
@api_client.config.logger.debug "API called: EmailControllerApi#get_email_attachments\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
660
660
|
end
|
661
661
|
return data, status_code, headers
|
662
662
|
end
|
@@ -19,12 +19,12 @@ module MailSlurpClient
|
|
19
19
|
|
20
20
|
attr_accessor :id
|
21
21
|
|
22
|
-
attr_accessor :user_id
|
23
|
-
|
24
22
|
attr_accessor :email_address
|
25
23
|
|
26
24
|
attr_accessor :inbox_id
|
27
25
|
|
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',
|
40
39
|
:'email_address' => :'emailAddress',
|
41
40
|
:'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',
|
54
53
|
:'email_address' => :'String',
|
55
54
|
:'inbox_id' => :'String',
|
55
|
+
:'user_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?(:'user_id')
|
92
|
-
self.user_id = attributes[:'user_id']
|
93
|
-
end
|
94
|
-
|
95
91
|
if attributes.key?(:'email_address')
|
96
92
|
self.email_address = attributes[:'email_address']
|
97
93
|
end
|
@@ -100,6 +96,10 @@ module MailSlurpClient
|
|
100
96
|
self.inbox_id = attributes[:'inbox_id']
|
101
97
|
end
|
102
98
|
|
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,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 @user_id.nil?
|
125
|
-
invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
|
126
|
-
end
|
127
|
-
|
128
124
|
if @email_address.nil?
|
129
125
|
invalid_properties.push('invalid value for "email_address", email_address cannot be nil.')
|
130
126
|
end
|
@@ -133,6 +129,10 @@ module MailSlurpClient
|
|
133
129
|
invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
|
134
130
|
end
|
135
131
|
|
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?
|
152
151
|
return false if @email_address.nil?
|
153
152
|
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 &&
|
167
166
|
email_address == o.email_address &&
|
168
167
|
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,
|
183
|
+
[name, id, email_address, inbox_id, user_id, created_at, use_threads, updated_at].hash
|
184
184
|
end
|
185
185
|
|
186
186
|
# Builds the object from hash
|
@@ -16,18 +16,18 @@ module MailSlurpClient
|
|
16
16
|
class ExpiredInboxRecordProjection
|
17
17
|
attr_accessor :id
|
18
18
|
|
19
|
-
attr_accessor :user_id
|
20
|
-
|
21
19
|
attr_accessor :email_address
|
22
20
|
|
21
|
+
attr_accessor :user_id
|
22
|
+
|
23
23
|
attr_accessor :created_at
|
24
24
|
|
25
25
|
# Attribute mapping from ruby-style variable name to JSON key.
|
26
26
|
def self.attribute_map
|
27
27
|
{
|
28
28
|
:'id' => :'id',
|
29
|
-
:'user_id' => :'userId',
|
30
29
|
:'email_address' => :'emailAddress',
|
30
|
+
:'user_id' => :'userId',
|
31
31
|
:'created_at' => :'createdAt'
|
32
32
|
}
|
33
33
|
end
|
@@ -36,8 +36,8 @@ module MailSlurpClient
|
|
36
36
|
def self.openapi_types
|
37
37
|
{
|
38
38
|
:'id' => :'String',
|
39
|
-
:'user_id' => :'String',
|
40
39
|
:'email_address' => :'String',
|
40
|
+
:'user_id' => :'String',
|
41
41
|
:'created_at' => :'DateTime'
|
42
42
|
}
|
43
43
|
end
|
@@ -67,14 +67,14 @@ module MailSlurpClient
|
|
67
67
|
self.id = attributes[:'id']
|
68
68
|
end
|
69
69
|
|
70
|
-
if attributes.key?(:'user_id')
|
71
|
-
self.user_id = attributes[:'user_id']
|
72
|
-
end
|
73
|
-
|
74
70
|
if attributes.key?(:'email_address')
|
75
71
|
self.email_address = attributes[:'email_address']
|
76
72
|
end
|
77
73
|
|
74
|
+
if attributes.key?(:'user_id')
|
75
|
+
self.user_id = attributes[:'user_id']
|
76
|
+
end
|
77
|
+
|
78
78
|
if attributes.key?(:'created_at')
|
79
79
|
self.created_at = attributes[:'created_at']
|
80
80
|
end
|
@@ -88,14 +88,14 @@ module MailSlurpClient
|
|
88
88
|
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
89
89
|
end
|
90
90
|
|
91
|
-
if @user_id.nil?
|
92
|
-
invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
|
93
|
-
end
|
94
|
-
|
95
91
|
if @email_address.nil?
|
96
92
|
invalid_properties.push('invalid value for "email_address", email_address cannot be nil.')
|
97
93
|
end
|
98
94
|
|
95
|
+
if @user_id.nil?
|
96
|
+
invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
|
97
|
+
end
|
98
|
+
|
99
99
|
if @created_at.nil?
|
100
100
|
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
101
101
|
end
|
@@ -107,8 +107,8 @@ module MailSlurpClient
|
|
107
107
|
# @return true if the model is valid
|
108
108
|
def valid?
|
109
109
|
return false if @id.nil?
|
110
|
-
return false if @user_id.nil?
|
111
110
|
return false if @email_address.nil?
|
111
|
+
return false if @user_id.nil?
|
112
112
|
return false if @created_at.nil?
|
113
113
|
true
|
114
114
|
end
|
@@ -119,8 +119,8 @@ module MailSlurpClient
|
|
119
119
|
return true if self.equal?(o)
|
120
120
|
self.class == o.class &&
|
121
121
|
id == o.id &&
|
122
|
-
user_id == o.user_id &&
|
123
122
|
email_address == o.email_address &&
|
123
|
+
user_id == o.user_id &&
|
124
124
|
created_at == o.created_at
|
125
125
|
end
|
126
126
|
|
@@ -133,7 +133,7 @@ module MailSlurpClient
|
|
133
133
|
# Calculates hash code according to all attributes.
|
134
134
|
# @return [Integer] Hash code
|
135
135
|
def hash
|
136
|
-
[id,
|
136
|
+
[id, email_address, user_id, created_at].hash
|
137
137
|
end
|
138
138
|
|
139
139
|
# Builds the object from hash
|
@@ -18,10 +18,10 @@ module MailSlurpClient
|
|
18
18
|
|
19
19
|
attr_accessor :from
|
20
20
|
|
21
|
-
attr_accessor :user_id
|
22
|
-
|
23
21
|
attr_accessor :subject
|
24
22
|
|
23
|
+
attr_accessor :user_id
|
24
|
+
|
25
25
|
attr_accessor :created_at
|
26
26
|
|
27
27
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -29,8 +29,8 @@ module MailSlurpClient
|
|
29
29
|
{
|
30
30
|
:'id' => :'id',
|
31
31
|
:'from' => :'from',
|
32
|
-
:'user_id' => :'userId',
|
33
32
|
:'subject' => :'subject',
|
33
|
+
:'user_id' => :'userId',
|
34
34
|
:'created_at' => :'createdAt'
|
35
35
|
}
|
36
36
|
end
|
@@ -40,8 +40,8 @@ module MailSlurpClient
|
|
40
40
|
{
|
41
41
|
:'id' => :'String',
|
42
42
|
:'from' => :'String',
|
43
|
-
:'user_id' => :'String',
|
44
43
|
:'subject' => :'String',
|
44
|
+
:'user_id' => :'String',
|
45
45
|
:'created_at' => :'DateTime'
|
46
46
|
}
|
47
47
|
end
|
@@ -75,14 +75,14 @@ module MailSlurpClient
|
|
75
75
|
self.from = attributes[:'from']
|
76
76
|
end
|
77
77
|
|
78
|
-
if attributes.key?(:'user_id')
|
79
|
-
self.user_id = attributes[:'user_id']
|
80
|
-
end
|
81
|
-
|
82
78
|
if attributes.key?(:'subject')
|
83
79
|
self.subject = attributes[:'subject']
|
84
80
|
end
|
85
81
|
|
82
|
+
if attributes.key?(:'user_id')
|
83
|
+
self.user_id = attributes[:'user_id']
|
84
|
+
end
|
85
|
+
|
86
86
|
if attributes.key?(:'created_at')
|
87
87
|
self.created_at = attributes[:'created_at']
|
88
88
|
end
|
@@ -118,8 +118,8 @@ module MailSlurpClient
|
|
118
118
|
self.class == o.class &&
|
119
119
|
id == o.id &&
|
120
120
|
from == o.from &&
|
121
|
-
user_id == o.user_id &&
|
122
121
|
subject == o.subject &&
|
122
|
+
user_id == o.user_id &&
|
123
123
|
created_at == o.created_at
|
124
124
|
end
|
125
125
|
|
@@ -132,7 +132,7 @@ module MailSlurpClient
|
|
132
132
|
# Calculates hash code according to all attributes.
|
133
133
|
# @return [Integer] Hash code
|
134
134
|
def hash
|
135
|
-
[id, from,
|
135
|
+
[id, from, subject, user_id, created_at].hash
|
136
136
|
end
|
137
137
|
|
138
138
|
# Builds the object from hash
|
@@ -19,12 +19,12 @@ module MailSlurpClient
|
|
19
19
|
|
20
20
|
attr_accessor :id
|
21
21
|
|
22
|
-
attr_accessor :user_id
|
23
|
-
|
24
22
|
attr_accessor :subject
|
25
23
|
|
26
24
|
attr_accessor :inbox_id
|
27
25
|
|
26
|
+
attr_accessor :user_id
|
27
|
+
|
28
28
|
attr_accessor :to
|
29
29
|
|
30
30
|
attr_accessor :bcc
|
@@ -42,9 +42,9 @@ module MailSlurpClient
|
|
42
42
|
{
|
43
43
|
:'name' => :'name',
|
44
44
|
:'id' => :'id',
|
45
|
-
:'user_id' => :'userId',
|
46
45
|
:'subject' => :'subject',
|
47
46
|
:'inbox_id' => :'inboxId',
|
47
|
+
:'user_id' => :'userId',
|
48
48
|
:'to' => :'to',
|
49
49
|
:'bcc' => :'bcc',
|
50
50
|
:'cc' => :'cc',
|
@@ -59,9 +59,9 @@ module MailSlurpClient
|
|
59
59
|
{
|
60
60
|
:'name' => :'String',
|
61
61
|
:'id' => :'String',
|
62
|
-
:'user_id' => :'String',
|
63
62
|
:'subject' => :'String',
|
64
63
|
:'inbox_id' => :'String',
|
64
|
+
:'user_id' => :'String',
|
65
65
|
:'to' => :'Array<String>',
|
66
66
|
:'bcc' => :'Array<String>',
|
67
67
|
:'cc' => :'Array<String>',
|
@@ -100,10 +100,6 @@ module MailSlurpClient
|
|
100
100
|
self.id = attributes[:'id']
|
101
101
|
end
|
102
102
|
|
103
|
-
if attributes.key?(:'user_id')
|
104
|
-
self.user_id = attributes[:'user_id']
|
105
|
-
end
|
106
|
-
|
107
103
|
if attributes.key?(:'subject')
|
108
104
|
self.subject = attributes[:'subject']
|
109
105
|
end
|
@@ -112,6 +108,10 @@ module MailSlurpClient
|
|
112
108
|
self.inbox_id = attributes[:'inbox_id']
|
113
109
|
end
|
114
110
|
|
111
|
+
if attributes.key?(:'user_id')
|
112
|
+
self.user_id = attributes[:'user_id']
|
113
|
+
end
|
114
|
+
|
115
115
|
if attributes.key?(:'to')
|
116
116
|
if (value = attributes[:'to']).is_a?(Array)
|
117
117
|
self.to = value
|
@@ -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 @user_id.nil?
|
155
|
-
invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
|
156
|
-
end
|
157
|
-
|
158
154
|
if @inbox_id.nil?
|
159
155
|
invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
|
160
156
|
end
|
161
157
|
|
158
|
+
if @user_id.nil?
|
159
|
+
invalid_properties.push('invalid value for "user_id", user_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 @user_id.nil?
|
186
185
|
return false if @inbox_id.nil?
|
186
|
+
return false if @user_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,9 +198,9 @@ module MailSlurpClient
|
|
198
198
|
self.class == o.class &&
|
199
199
|
name == o.name &&
|
200
200
|
id == o.id &&
|
201
|
-
user_id == o.user_id &&
|
202
201
|
subject == o.subject &&
|
203
202
|
inbox_id == o.inbox_id &&
|
203
|
+
user_id == o.user_id &&
|
204
204
|
to == o.to &&
|
205
205
|
bcc == o.bcc &&
|
206
206
|
cc == o.cc &&
|
@@ -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, inbox_id, user_id, to, bcc, cc, created_at, 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 :user_id
|
22
|
-
|
23
21
|
attr_accessor :inbox_id
|
24
22
|
|
23
|
+
attr_accessor :user_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
|
-
:'user_id' => :'userId',
|
41
40
|
:'inbox_id' => :'inboxId',
|
41
|
+
:'user_id' => :'userId',
|
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
|
-
:'user_id' => :'String',
|
56
55
|
:'inbox_id' => :'String',
|
56
|
+
:'user_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?(:'user_id')
|
95
|
-
self.user_id = attributes[:'user_id']
|
96
|
-
end
|
97
|
-
|
98
94
|
if attributes.key?(:'inbox_id')
|
99
95
|
self.inbox_id = attributes[:'inbox_id']
|
100
96
|
end
|
101
97
|
|
98
|
+
if attributes.key?(:'user_id')
|
99
|
+
self.user_id = attributes[:'user_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
|
-
user_id == o.user_id &&
|
164
163
|
inbox_id == o.inbox_id &&
|
164
|
+
user_id == o.user_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, inbox_id, user_id, created_at, seen, recipient, seen_at, sent_email_id].hash
|
182
182
|
end
|
183
183
|
|
184
184
|
# Builds the object from hash
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mailslurp_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 15.
|
4
|
+
version: 15.2.2
|
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-15 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.
|