mailslurp_client 15.12.13 → 15.12.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/mailslurp_client/api/webhook_controller_api.rb +68 -0
- data/lib/mailslurp_client/models/alias_projection.rb +15 -15
- data/lib/mailslurp_client/models/bounce_projection.rb +10 -10
- data/lib/mailslurp_client/models/create_contact_options.rb +7 -0
- data/lib/mailslurp_client/models/create_domain_options.rb +3 -0
- data/lib/mailslurp_client/models/create_inbox_dto.rb +10 -0
- data/lib/mailslurp_client/models/create_webhook_options.rb +15 -4
- data/lib/mailslurp_client/models/email.rb +15 -0
- data/lib/mailslurp_client/models/email_analysis.rb +5 -0
- data/lib/mailslurp_client/models/email_preview.rb +6 -5
- data/lib/mailslurp_client/models/inbox_dto.rb +2 -0
- data/lib/mailslurp_client/models/inbox_preview.rb +5 -0
- data/lib/mailslurp_client/models/organization_inbox_projection.rb +4 -0
- data/lib/mailslurp_client/models/sent_email_projection.rb +59 -59
- data/lib/mailslurp_client/models/thread_projection.rb +16 -16
- data/lib/mailslurp_client/models/tracking_pixel_projection.rb +10 -10
- data/lib/mailslurp_client/models/update_inbox_options.rb +5 -0
- data/lib/mailslurp_client/models/upload_attachment_options.rb +2 -0
- data/lib/mailslurp_client/models/webhook_dto.rb +18 -9
- data/lib/mailslurp_client/models/webhook_header_name_value.rb +228 -0
- data/lib/mailslurp_client/models/webhook_headers.rb +215 -0
- data/lib/mailslurp_client/version.rb +1 -1
- data/lib/mailslurp_client.rb +2 -0
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f5115bc2f8ca0c4cbfe748f3e3c7d6eae3d8aa1ab4711fab5e3eaea505364e81
|
4
|
+
data.tar.gz: 5d8ee9139852ead5bfed33d4addfc9b30ec967516cd3f3522ca7dc4d8d0741c2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3a375671aad02955aa43a22aab055768224ef24573b433ac210035b4e9b6c6e240c64bd5ecd5594213b35e6660dd52169dc40fb7360562ada40a90b7ad453d95
|
7
|
+
data.tar.gz: db485fe77b62ddb0d681faee23296f505ad7d9dc957b5380a12e73af8832d97ed0b8d33102e2b53bd7a4a54d26392e8d92f3f13464370c55bc41bff949515227
|
@@ -1648,6 +1648,74 @@ module MailSlurpClient
|
|
1648
1648
|
return data, status_code, headers
|
1649
1649
|
end
|
1650
1650
|
|
1651
|
+
# Update a webhook request headers
|
1652
|
+
# @param webhook_id [String]
|
1653
|
+
# @param webhook_headers [WebhookHeaders]
|
1654
|
+
# @param [Hash] opts the optional parameters
|
1655
|
+
# @return [WebhookDto]
|
1656
|
+
def update_webhook_headers(webhook_id, webhook_headers, opts = {})
|
1657
|
+
data, _status_code, _headers = update_webhook_headers_with_http_info(webhook_id, webhook_headers, opts)
|
1658
|
+
data
|
1659
|
+
end
|
1660
|
+
|
1661
|
+
# Update a webhook request headers
|
1662
|
+
# @param webhook_id [String]
|
1663
|
+
# @param webhook_headers [WebhookHeaders]
|
1664
|
+
# @param [Hash] opts the optional parameters
|
1665
|
+
# @return [Array<(WebhookDto, Integer, Hash)>] WebhookDto data, response status code and response headers
|
1666
|
+
def update_webhook_headers_with_http_info(webhook_id, webhook_headers, opts = {})
|
1667
|
+
if @api_client.config.debugging
|
1668
|
+
@api_client.config.logger.debug 'Calling API: WebhookControllerApi.update_webhook_headers ...'
|
1669
|
+
end
|
1670
|
+
# verify the required parameter 'webhook_id' is set
|
1671
|
+
if @api_client.config.client_side_validation && webhook_id.nil?
|
1672
|
+
fail ArgumentError, "Missing the required parameter 'webhook_id' when calling WebhookControllerApi.update_webhook_headers"
|
1673
|
+
end
|
1674
|
+
# verify the required parameter 'webhook_headers' is set
|
1675
|
+
if @api_client.config.client_side_validation && webhook_headers.nil?
|
1676
|
+
fail ArgumentError, "Missing the required parameter 'webhook_headers' when calling WebhookControllerApi.update_webhook_headers"
|
1677
|
+
end
|
1678
|
+
# resource path
|
1679
|
+
local_var_path = '/webhooks/{webhookId}/headers'.sub('{' + 'webhookId' + '}', CGI.escape(webhook_id.to_s))
|
1680
|
+
|
1681
|
+
# query parameters
|
1682
|
+
query_params = opts[:query_params] || {}
|
1683
|
+
|
1684
|
+
# header parameters
|
1685
|
+
header_params = opts[:header_params] || {}
|
1686
|
+
# HTTP header 'Accept' (if needed)
|
1687
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
1688
|
+
# HTTP header 'Content-Type'
|
1689
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
1690
|
+
|
1691
|
+
# form parameters
|
1692
|
+
form_params = opts[:form_params] || {}
|
1693
|
+
|
1694
|
+
# http body (model)
|
1695
|
+
post_body = opts[:body] || @api_client.object_to_http_body(webhook_headers)
|
1696
|
+
|
1697
|
+
# return_type
|
1698
|
+
return_type = opts[:return_type] || 'WebhookDto'
|
1699
|
+
|
1700
|
+
# auth_names
|
1701
|
+
auth_names = opts[:auth_names] || ['API_KEY']
|
1702
|
+
|
1703
|
+
new_options = opts.merge(
|
1704
|
+
:header_params => header_params,
|
1705
|
+
:query_params => query_params,
|
1706
|
+
:form_params => form_params,
|
1707
|
+
:body => post_body,
|
1708
|
+
:auth_names => auth_names,
|
1709
|
+
:return_type => return_type
|
1710
|
+
)
|
1711
|
+
|
1712
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
1713
|
+
if @api_client.config.debugging
|
1714
|
+
@api_client.config.logger.debug "API called: WebhookControllerApi#update_webhook_headers\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1715
|
+
end
|
1716
|
+
return data, status_code, headers
|
1717
|
+
end
|
1718
|
+
|
1651
1719
|
# Verify a webhook payload signature
|
1652
1720
|
# Verify a webhook payload using the messageId and signature. This allows you to be sure that MailSlurp sent the payload and not another server.
|
1653
1721
|
# @param verify_webhook_signature_options [VerifyWebhookSignatureOptions]
|
@@ -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 :updated_at
|
@@ -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
|
:'updated_at' => :'updatedAt',
|
44
44
|
:'use_threads' => :'useThreads'
|
@@ -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
|
:'updated_at' => :'DateTime',
|
58
58
|
:'use_threads' => :'Boolean'
|
@@ -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
|
updated_at == o.updated_at &&
|
171
171
|
use_threads == o.use_threads
|
@@ -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, updated_at, use_threads].hash
|
184
184
|
end
|
185
185
|
|
186
186
|
# Builds the object from hash
|
@@ -17,10 +17,10 @@ module MailSlurpClient
|
|
17
17
|
class BounceProjection
|
18
18
|
attr_accessor :id
|
19
19
|
|
20
|
-
attr_accessor :sender
|
21
|
-
|
22
20
|
attr_accessor :subject
|
23
21
|
|
22
|
+
attr_accessor :sender
|
23
|
+
|
24
24
|
attr_accessor :created_at
|
25
25
|
|
26
26
|
attr_accessor :bounce_mta
|
@@ -31,8 +31,8 @@ module MailSlurpClient
|
|
31
31
|
def self.attribute_map
|
32
32
|
{
|
33
33
|
:'id' => :'id',
|
34
|
-
:'sender' => :'sender',
|
35
34
|
:'subject' => :'subject',
|
35
|
+
:'sender' => :'sender',
|
36
36
|
:'created_at' => :'createdAt',
|
37
37
|
:'bounce_mta' => :'bounceMta',
|
38
38
|
:'bounce_type' => :'bounceType'
|
@@ -43,8 +43,8 @@ module MailSlurpClient
|
|
43
43
|
def self.openapi_types
|
44
44
|
{
|
45
45
|
:'id' => :'String',
|
46
|
-
:'sender' => :'String',
|
47
46
|
:'subject' => :'String',
|
47
|
+
:'sender' => :'String',
|
48
48
|
:'created_at' => :'DateTime',
|
49
49
|
:'bounce_mta' => :'String',
|
50
50
|
:'bounce_type' => :'String'
|
@@ -76,14 +76,14 @@ module MailSlurpClient
|
|
76
76
|
self.id = attributes[:'id']
|
77
77
|
end
|
78
78
|
|
79
|
-
if attributes.key?(:'sender')
|
80
|
-
self.sender = attributes[:'sender']
|
81
|
-
end
|
82
|
-
|
83
79
|
if attributes.key?(:'subject')
|
84
80
|
self.subject = attributes[:'subject']
|
85
81
|
end
|
86
82
|
|
83
|
+
if attributes.key?(:'sender')
|
84
|
+
self.sender = attributes[:'sender']
|
85
|
+
end
|
86
|
+
|
87
87
|
if attributes.key?(:'created_at')
|
88
88
|
self.created_at = attributes[:'created_at']
|
89
89
|
end
|
@@ -126,8 +126,8 @@ module MailSlurpClient
|
|
126
126
|
return true if self.equal?(o)
|
127
127
|
self.class == o.class &&
|
128
128
|
id == o.id &&
|
129
|
-
sender == o.sender &&
|
130
129
|
subject == o.subject &&
|
130
|
+
sender == o.sender &&
|
131
131
|
created_at == o.created_at &&
|
132
132
|
bounce_mta == o.bounce_mta &&
|
133
133
|
bounce_type == o.bounce_type
|
@@ -142,7 +142,7 @@ module MailSlurpClient
|
|
142
142
|
# Calculates hash code according to all attributes.
|
143
143
|
# @return [Integer] Hash code
|
144
144
|
def hash
|
145
|
-
[id,
|
145
|
+
[id, subject, sender, created_at, bounce_mta, bounce_type].hash
|
146
146
|
end
|
147
147
|
|
148
148
|
# Builds the object from hash
|
@@ -107,6 +107,16 @@ module MailSlurpClient
|
|
107
107
|
# List of attributes with nullable: true
|
108
108
|
def self.openapi_nullable
|
109
109
|
Set.new([
|
110
|
+
:'name',
|
111
|
+
:'description',
|
112
|
+
:'use_domain_pool',
|
113
|
+
:'tags',
|
114
|
+
:'expires_at',
|
115
|
+
:'favourite',
|
116
|
+
:'expires_in',
|
117
|
+
:'allow_team_access',
|
118
|
+
:'inbox_type',
|
119
|
+
:'virtual_inbox'
|
110
120
|
])
|
111
121
|
end
|
112
122
|
|
@@ -26,6 +26,8 @@ module MailSlurpClient
|
|
26
26
|
# Optional webhook event name. Default is `EMAIL_RECEIVED` and is triggered when an email is received by the inbox associated with the webhook. Payload differ according to the webhook event name. The other events are `NEW_EMAIL`, `NEW_CONTACT`, and `NEW_ATTACHMENT` and `EMAIL_OPENED`. `EMAIL_OPENED` requires the use of tracking pixels when sending. See the email tracking guide for more information.
|
27
27
|
attr_accessor :event_name
|
28
28
|
|
29
|
+
attr_accessor :include_headers
|
30
|
+
|
29
31
|
class EnumAttributeValidator
|
30
32
|
attr_reader :datatype
|
31
33
|
attr_reader :allowable_values
|
@@ -54,7 +56,8 @@ module MailSlurpClient
|
|
54
56
|
:'url' => :'url',
|
55
57
|
:'basic_auth' => :'basicAuth',
|
56
58
|
:'name' => :'name',
|
57
|
-
:'event_name' => :'eventName'
|
59
|
+
:'event_name' => :'eventName',
|
60
|
+
:'include_headers' => :'includeHeaders'
|
58
61
|
}
|
59
62
|
end
|
60
63
|
|
@@ -64,13 +67,16 @@ module MailSlurpClient
|
|
64
67
|
:'url' => :'String',
|
65
68
|
:'basic_auth' => :'BasicAuthOptions',
|
66
69
|
:'name' => :'String',
|
67
|
-
:'event_name' => :'String'
|
70
|
+
:'event_name' => :'String',
|
71
|
+
:'include_headers' => :'WebhookHeaders'
|
68
72
|
}
|
69
73
|
end
|
70
74
|
|
71
75
|
# List of attributes with nullable: true
|
72
76
|
def self.openapi_nullable
|
73
77
|
Set.new([
|
78
|
+
:'basic_auth',
|
79
|
+
:'event_name',
|
74
80
|
])
|
75
81
|
end
|
76
82
|
|
@@ -104,6 +110,10 @@ module MailSlurpClient
|
|
104
110
|
if attributes.key?(:'event_name')
|
105
111
|
self.event_name = attributes[:'event_name']
|
106
112
|
end
|
113
|
+
|
114
|
+
if attributes.key?(:'include_headers')
|
115
|
+
self.include_headers = attributes[:'include_headers']
|
116
|
+
end
|
107
117
|
end
|
108
118
|
|
109
119
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -144,7 +154,8 @@ module MailSlurpClient
|
|
144
154
|
url == o.url &&
|
145
155
|
basic_auth == o.basic_auth &&
|
146
156
|
name == o.name &&
|
147
|
-
event_name == o.event_name
|
157
|
+
event_name == o.event_name &&
|
158
|
+
include_headers == o.include_headers
|
148
159
|
end
|
149
160
|
|
150
161
|
# @see the `==` method
|
@@ -156,7 +167,7 @@ module MailSlurpClient
|
|
156
167
|
# Calculates hash code according to all attributes.
|
157
168
|
# @return [Integer] Hash code
|
158
169
|
def hash
|
159
|
-
[url, basic_auth, name, event_name].hash
|
170
|
+
[url, basic_auth, name, event_name, include_headers].hash
|
160
171
|
end
|
161
172
|
|
162
173
|
# Builds the object from hash
|
@@ -146,6 +146,21 @@ module MailSlurpClient
|
|
146
146
|
# List of attributes with nullable: true
|
147
147
|
def self.openapi_nullable
|
148
148
|
Set.new([
|
149
|
+
:'from',
|
150
|
+
:'sender',
|
151
|
+
:'recipients',
|
152
|
+
:'reply_to',
|
153
|
+
:'cc',
|
154
|
+
:'bcc',
|
155
|
+
:'headers',
|
156
|
+
:'attachments',
|
157
|
+
:'subject',
|
158
|
+
:'body',
|
159
|
+
:'body_excerpt',
|
160
|
+
:'body_md5_hash',
|
161
|
+
:'is_html',
|
162
|
+
:'charset',
|
163
|
+
:'analysis',
|
149
164
|
])
|
150
165
|
end
|
151
166
|
|
@@ -75,6 +75,12 @@ module MailSlurpClient
|
|
75
75
|
# List of attributes with nullable: true
|
76
76
|
def self.openapi_nullable
|
77
77
|
Set.new([
|
78
|
+
:'subject',
|
79
|
+
:'to',
|
80
|
+
:'from',
|
81
|
+
:'bcc',
|
82
|
+
:'cc',
|
83
|
+
:'attachments'
|
78
84
|
])
|
79
85
|
end
|
80
86
|
|
@@ -146,10 +152,6 @@ module MailSlurpClient
|
|
146
152
|
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
147
153
|
end
|
148
154
|
|
149
|
-
if @to.nil?
|
150
|
-
invalid_properties.push('invalid value for "to", to cannot be nil.')
|
151
|
-
end
|
152
|
-
|
153
155
|
if @created_at.nil?
|
154
156
|
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
155
157
|
end
|
@@ -165,7 +167,6 @@ module MailSlurpClient
|
|
165
167
|
# @return true if the model is valid
|
166
168
|
def valid?
|
167
169
|
return false if @id.nil?
|
168
|
-
return false if @to.nil?
|
169
170
|
return false if @created_at.nil?
|
170
171
|
return false if @read.nil?
|
171
172
|
true
|
@@ -23,21 +23,21 @@ module MailSlurpClient
|
|
23
23
|
|
24
24
|
attr_accessor :subject
|
25
25
|
|
26
|
-
attr_accessor :
|
26
|
+
attr_accessor :body_md5_hash
|
27
27
|
|
28
|
-
attr_accessor :
|
28
|
+
attr_accessor :bcc
|
29
29
|
|
30
|
-
attr_accessor :
|
30
|
+
attr_accessor :cc
|
31
31
|
|
32
|
-
attr_accessor :
|
32
|
+
attr_accessor :virtual_send
|
33
33
|
|
34
|
-
attr_accessor :
|
34
|
+
attr_accessor :inbox_id
|
35
35
|
|
36
|
-
attr_accessor :
|
36
|
+
attr_accessor :attachments
|
37
37
|
|
38
|
-
attr_accessor :
|
38
|
+
attr_accessor :to
|
39
39
|
|
40
|
-
attr_accessor :
|
40
|
+
attr_accessor :created_at
|
41
41
|
|
42
42
|
# Attribute mapping from ruby-style variable name to JSON key.
|
43
43
|
def self.attribute_map
|
@@ -46,14 +46,14 @@ module MailSlurpClient
|
|
46
46
|
:'from' => :'from',
|
47
47
|
:'user_id' => :'userId',
|
48
48
|
:'subject' => :'subject',
|
49
|
+
:'body_md5_hash' => :'bodyMD5Hash',
|
50
|
+
:'bcc' => :'bcc',
|
51
|
+
:'cc' => :'cc',
|
52
|
+
:'virtual_send' => :'virtualSend',
|
49
53
|
:'inbox_id' => :'inboxId',
|
50
54
|
:'attachments' => :'attachments',
|
51
55
|
:'to' => :'to',
|
52
|
-
:'created_at' => :'createdAt'
|
53
|
-
:'bcc' => :'bcc',
|
54
|
-
:'cc' => :'cc',
|
55
|
-
:'body_md5_hash' => :'bodyMD5Hash',
|
56
|
-
:'virtual_send' => :'virtualSend'
|
56
|
+
:'created_at' => :'createdAt'
|
57
57
|
}
|
58
58
|
end
|
59
59
|
|
@@ -64,14 +64,14 @@ module MailSlurpClient
|
|
64
64
|
:'from' => :'String',
|
65
65
|
:'user_id' => :'String',
|
66
66
|
:'subject' => :'String',
|
67
|
+
:'body_md5_hash' => :'String',
|
68
|
+
:'bcc' => :'Array<String>',
|
69
|
+
:'cc' => :'Array<String>',
|
70
|
+
:'virtual_send' => :'Boolean',
|
67
71
|
:'inbox_id' => :'String',
|
68
72
|
:'attachments' => :'Array<String>',
|
69
73
|
:'to' => :'Array<String>',
|
70
|
-
:'created_at' => :'DateTime'
|
71
|
-
:'bcc' => :'Array<String>',
|
72
|
-
:'cc' => :'Array<String>',
|
73
|
-
:'body_md5_hash' => :'String',
|
74
|
-
:'virtual_send' => :'Boolean'
|
74
|
+
:'created_at' => :'DateTime'
|
75
75
|
}
|
76
76
|
end
|
77
77
|
|
@@ -112,6 +112,26 @@ module MailSlurpClient
|
|
112
112
|
self.subject = attributes[:'subject']
|
113
113
|
end
|
114
114
|
|
115
|
+
if attributes.key?(:'body_md5_hash')
|
116
|
+
self.body_md5_hash = attributes[:'body_md5_hash']
|
117
|
+
end
|
118
|
+
|
119
|
+
if attributes.key?(:'bcc')
|
120
|
+
if (value = attributes[:'bcc']).is_a?(Array)
|
121
|
+
self.bcc = value
|
122
|
+
end
|
123
|
+
end
|
124
|
+
|
125
|
+
if attributes.key?(:'cc')
|
126
|
+
if (value = attributes[:'cc']).is_a?(Array)
|
127
|
+
self.cc = value
|
128
|
+
end
|
129
|
+
end
|
130
|
+
|
131
|
+
if attributes.key?(:'virtual_send')
|
132
|
+
self.virtual_send = attributes[:'virtual_send']
|
133
|
+
end
|
134
|
+
|
115
135
|
if attributes.key?(:'inbox_id')
|
116
136
|
self.inbox_id = attributes[:'inbox_id']
|
117
137
|
end
|
@@ -131,26 +151,6 @@ module MailSlurpClient
|
|
131
151
|
if attributes.key?(:'created_at')
|
132
152
|
self.created_at = attributes[:'created_at']
|
133
153
|
end
|
134
|
-
|
135
|
-
if attributes.key?(:'bcc')
|
136
|
-
if (value = attributes[:'bcc']).is_a?(Array)
|
137
|
-
self.bcc = value
|
138
|
-
end
|
139
|
-
end
|
140
|
-
|
141
|
-
if attributes.key?(:'cc')
|
142
|
-
if (value = attributes[:'cc']).is_a?(Array)
|
143
|
-
self.cc = value
|
144
|
-
end
|
145
|
-
end
|
146
|
-
|
147
|
-
if attributes.key?(:'body_md5_hash')
|
148
|
-
self.body_md5_hash = attributes[:'body_md5_hash']
|
149
|
-
end
|
150
|
-
|
151
|
-
if attributes.key?(:'virtual_send')
|
152
|
-
self.virtual_send = attributes[:'virtual_send']
|
153
|
-
end
|
154
154
|
end
|
155
155
|
|
156
156
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -165,6 +165,18 @@ module MailSlurpClient
|
|
165
165
|
invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
|
166
166
|
end
|
167
167
|
|
168
|
+
if @bcc.nil?
|
169
|
+
invalid_properties.push('invalid value for "bcc", bcc cannot be nil.')
|
170
|
+
end
|
171
|
+
|
172
|
+
if @cc.nil?
|
173
|
+
invalid_properties.push('invalid value for "cc", cc cannot be nil.')
|
174
|
+
end
|
175
|
+
|
176
|
+
if @virtual_send.nil?
|
177
|
+
invalid_properties.push('invalid value for "virtual_send", virtual_send cannot be nil.')
|
178
|
+
end
|
179
|
+
|
168
180
|
if @inbox_id.nil?
|
169
181
|
invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
|
170
182
|
end
|
@@ -181,18 +193,6 @@ module MailSlurpClient
|
|
181
193
|
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
182
194
|
end
|
183
195
|
|
184
|
-
if @bcc.nil?
|
185
|
-
invalid_properties.push('invalid value for "bcc", bcc cannot be nil.')
|
186
|
-
end
|
187
|
-
|
188
|
-
if @cc.nil?
|
189
|
-
invalid_properties.push('invalid value for "cc", cc cannot be nil.')
|
190
|
-
end
|
191
|
-
|
192
|
-
if @virtual_send.nil?
|
193
|
-
invalid_properties.push('invalid value for "virtual_send", virtual_send cannot be nil.')
|
194
|
-
end
|
195
|
-
|
196
196
|
invalid_properties
|
197
197
|
end
|
198
198
|
|
@@ -201,13 +201,13 @@ module MailSlurpClient
|
|
201
201
|
def valid?
|
202
202
|
return false if @id.nil?
|
203
203
|
return false if @user_id.nil?
|
204
|
+
return false if @bcc.nil?
|
205
|
+
return false if @cc.nil?
|
206
|
+
return false if @virtual_send.nil?
|
204
207
|
return false if @inbox_id.nil?
|
205
208
|
return false if @attachments.nil?
|
206
209
|
return false if @to.nil?
|
207
210
|
return false if @created_at.nil?
|
208
|
-
return false if @bcc.nil?
|
209
|
-
return false if @cc.nil?
|
210
|
-
return false if @virtual_send.nil?
|
211
211
|
true
|
212
212
|
end
|
213
213
|
|
@@ -220,14 +220,14 @@ module MailSlurpClient
|
|
220
220
|
from == o.from &&
|
221
221
|
user_id == o.user_id &&
|
222
222
|
subject == o.subject &&
|
223
|
+
body_md5_hash == o.body_md5_hash &&
|
224
|
+
bcc == o.bcc &&
|
225
|
+
cc == o.cc &&
|
226
|
+
virtual_send == o.virtual_send &&
|
223
227
|
inbox_id == o.inbox_id &&
|
224
228
|
attachments == o.attachments &&
|
225
229
|
to == o.to &&
|
226
|
-
created_at == o.created_at
|
227
|
-
bcc == o.bcc &&
|
228
|
-
cc == o.cc &&
|
229
|
-
body_md5_hash == o.body_md5_hash &&
|
230
|
-
virtual_send == o.virtual_send
|
230
|
+
created_at == o.created_at
|
231
231
|
end
|
232
232
|
|
233
233
|
# @see the `==` method
|
@@ -239,7 +239,7 @@ module MailSlurpClient
|
|
239
239
|
# Calculates hash code according to all attributes.
|
240
240
|
# @return [Integer] Hash code
|
241
241
|
def hash
|
242
|
-
[id, from, user_id, subject,
|
242
|
+
[id, from, user_id, subject, body_md5_hash, bcc, cc, virtual_send, inbox_id, attachments, to, created_at].hash
|
243
243
|
end
|
244
244
|
|
245
245
|
# Builds the object from hash
|