mailslurp_client 8.4.2 → 8.4.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cb47aef7d9c1b1a45883e93bb8b272440edbc73d10d8449d18ff1cf6723d8e57
4
- data.tar.gz: bc9ebbad6639ab43767f76d810bf0eb841354036bf31568cfd948458fdb7e55d
3
+ metadata.gz: 3efaa012e6540bf6b737779f13998a6148b322c70cdf8065dd4d93b1c1045713
4
+ data.tar.gz: 757d32f65229b03af69e52a7b5560abe1e369305daa0f2028586579a4e5aa049
5
5
  SHA512:
6
- metadata.gz: b7db76fa56f6c49d6c4d0321b70d200e2f377ffea2801abf25abfcc5170140d25ebc12114c048f372656aca4ec5531ca2cb961768da58bf735824281df826ab6
7
- data.tar.gz: 410667490a172e3c9acce218c8f22637506d08b8f5beb0100541eefb85bef1854e7d87b9c4e9ac812fe12fd4a5efdf79e7c9715b7e155ae020d67d6d62b347a0
6
+ metadata.gz: 203de8c176baa26b46b0a96f129e8f2cbd86e7a077373fdde18799f7c6145679d58bfbc22685b1de0067ac33c007fb0549e94b2adefe536ae2ff923cc726007c
7
+ data.tar.gz: ea1f1f2e80960c491c50bbfd6ec36af4acd8dcccfc9ea286e1e2780e81a9f15367b68c74dd48329ab56d0052c4cac5b5e8f5474e7b2a4c3a484ffcb50a1d7a9b
@@ -23,7 +23,7 @@ module MailSlurpClient
23
23
  # Email aliases use a MailSlurp randomly generated email address (or a custom domain inbox that you provide) to mask or proxy a real email address. Emails sent to the alias address will be forwarded to the hidden email address it was created for. If you want to send a reply use the threadId attached
24
24
  # @param create_alias_options [CreateAliasOptions] createAliasOptions
25
25
  # @param [Hash] opts the optional parameters
26
- # @return [ModelAlias]
26
+ # @return [AliasDto]
27
27
  def create_alias(create_alias_options, opts = {})
28
28
  data, _status_code, _headers = create_alias_with_http_info(create_alias_options, opts)
29
29
  data
@@ -33,7 +33,7 @@ module MailSlurpClient
33
33
  # Email aliases use a MailSlurp randomly generated email address (or a custom domain inbox that you provide) to mask or proxy a real email address. Emails sent to the alias address will be forwarded to the hidden email address it was created for. If you want to send a reply use the threadId attached
34
34
  # @param create_alias_options [CreateAliasOptions] createAliasOptions
35
35
  # @param [Hash] opts the optional parameters
36
- # @return [Array<(ModelAlias, Integer, Hash)>] ModelAlias data, response status code and response headers
36
+ # @return [Array<(AliasDto, Integer, Hash)>] AliasDto data, response status code and response headers
37
37
  def create_alias_with_http_info(create_alias_options, opts = {})
38
38
  if @api_client.config.debugging
39
39
  @api_client.config.logger.debug 'Calling API: AliasControllerApi.create_alias ...'
@@ -62,7 +62,7 @@ module MailSlurpClient
62
62
  post_body = opts[:body] || @api_client.object_to_http_body(create_alias_options)
63
63
 
64
64
  # return_type
65
- return_type = opts[:return_type] || 'ModelAlias'
65
+ return_type = opts[:return_type] || 'AliasDto'
66
66
 
67
67
  # auth_names
68
68
  auth_names = opts[:auth_names] || ['API_KEY']
@@ -17,18 +17,25 @@ module MailSlurpClient
17
17
  class AliasDto
18
18
  attr_accessor :created_at
19
19
 
20
+ # The alias's email address for receiving email
20
21
  attr_accessor :email_address
21
22
 
22
23
  attr_accessor :id
23
24
 
25
+ # Inbox that is associated with the alias
24
26
  attr_accessor :inbox_id
25
27
 
28
+ # Has the alias been verified. You must verify an alias if the masked email address has not yet been verified by your account
26
29
  attr_accessor :is_verified
27
30
 
31
+ # The underlying email address that is hidden and will received forwarded email
32
+ attr_accessor :masked_email_address
33
+
28
34
  attr_accessor :name
29
35
 
30
36
  attr_accessor :updated_at
31
37
 
38
+ # If alias will generate response threads or not when email are received by it
32
39
  attr_accessor :use_threads
33
40
 
34
41
  attr_accessor :user_id
@@ -41,6 +48,7 @@ module MailSlurpClient
41
48
  :'id' => :'id',
42
49
  :'inbox_id' => :'inboxId',
43
50
  :'is_verified' => :'isVerified',
51
+ :'masked_email_address' => :'maskedEmailAddress',
44
52
  :'name' => :'name',
45
53
  :'updated_at' => :'updatedAt',
46
54
  :'use_threads' => :'useThreads',
@@ -56,6 +64,7 @@ module MailSlurpClient
56
64
  :'id' => :'String',
57
65
  :'inbox_id' => :'String',
58
66
  :'is_verified' => :'Boolean',
67
+ :'masked_email_address' => :'String',
59
68
  :'name' => :'String',
60
69
  :'updated_at' => :'DateTime',
61
70
  :'use_threads' => :'Boolean',
@@ -104,6 +113,10 @@ module MailSlurpClient
104
113
  self.is_verified = attributes[:'is_verified']
105
114
  end
106
115
 
116
+ if attributes.key?(:'masked_email_address')
117
+ self.masked_email_address = attributes[:'masked_email_address']
118
+ end
119
+
107
120
  if attributes.key?(:'name')
108
121
  self.name = attributes[:'name']
109
122
  end
@@ -129,14 +142,6 @@ module MailSlurpClient
129
142
  invalid_properties.push('invalid value for "id", id cannot be nil.')
130
143
  end
131
144
 
132
- if @inbox_id.nil?
133
- invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
134
- end
135
-
136
- if @is_verified.nil?
137
- invalid_properties.push('invalid value for "is_verified", is_verified cannot be nil.')
138
- end
139
-
140
145
  if @user_id.nil?
141
146
  invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
142
147
  end
@@ -148,8 +153,6 @@ module MailSlurpClient
148
153
  # @return true if the model is valid
149
154
  def valid?
150
155
  return false if @id.nil?
151
- return false if @inbox_id.nil?
152
- return false if @is_verified.nil?
153
156
  return false if @user_id.nil?
154
157
  true
155
158
  end
@@ -164,6 +167,7 @@ module MailSlurpClient
164
167
  id == o.id &&
165
168
  inbox_id == o.inbox_id &&
166
169
  is_verified == o.is_verified &&
170
+ masked_email_address == o.masked_email_address &&
167
171
  name == o.name &&
168
172
  updated_at == o.updated_at &&
169
173
  use_threads == o.use_threads &&
@@ -179,7 +183,7 @@ module MailSlurpClient
179
183
  # Calculates hash code according to all attributes.
180
184
  # @return [Integer] Hash code
181
185
  def hash
182
- [created_at, email_address, id, inbox_id, is_verified, name, updated_at, use_threads, user_id].hash
186
+ [created_at, email_address, id, inbox_id, is_verified, masked_email_address, name, updated_at, use_threads, user_id].hash
183
187
  end
184
188
 
185
189
  # Builds the object from hash
@@ -39,6 +39,8 @@ module MailSlurpClient
39
39
 
40
40
  attr_accessor :is_html
41
41
 
42
+ attr_accessor :reply_to
43
+
42
44
  attr_accessor :sent_at
43
45
 
44
46
  attr_accessor :subject
@@ -62,6 +64,7 @@ module MailSlurpClient
62
64
  :'id' => :'id',
63
65
  :'inbox_id' => :'inboxId',
64
66
  :'is_html' => :'isHTML',
67
+ :'reply_to' => :'replyTo',
65
68
  :'sent_at' => :'sentAt',
66
69
  :'subject' => :'subject',
67
70
  :'to' => :'to',
@@ -82,6 +85,7 @@ module MailSlurpClient
82
85
  :'id' => :'String',
83
86
  :'inbox_id' => :'String',
84
87
  :'is_html' => :'Boolean',
88
+ :'reply_to' => :'String',
85
89
  :'sent_at' => :'DateTime',
86
90
  :'subject' => :'String',
87
91
  :'to' => :'Array<String>',
@@ -156,6 +160,10 @@ module MailSlurpClient
156
160
  self.is_html = attributes[:'is_html']
157
161
  end
158
162
 
163
+ if attributes.key?(:'reply_to')
164
+ self.reply_to = attributes[:'reply_to']
165
+ end
166
+
159
167
  if attributes.key?(:'sent_at')
160
168
  self.sent_at = attributes[:'sent_at']
161
169
  end
@@ -208,6 +216,7 @@ module MailSlurpClient
208
216
  id == o.id &&
209
217
  inbox_id == o.inbox_id &&
210
218
  is_html == o.is_html &&
219
+ reply_to == o.reply_to &&
211
220
  sent_at == o.sent_at &&
212
221
  subject == o.subject &&
213
222
  to == o.to &&
@@ -223,7 +232,7 @@ module MailSlurpClient
223
232
  # Calculates hash code according to all attributes.
224
233
  # @return [Integer] Hash code
225
234
  def hash
226
- [attachments, bcc, body, body_md5_hash, cc, charset, from, id, inbox_id, is_html, sent_at, subject, to, user_id].hash
235
+ [attachments, bcc, body, body_md5_hash, cc, charset, from, id, inbox_id, is_html, reply_to, sent_at, subject, to, user_id].hash
227
236
  end
228
237
 
229
238
  # Builds the object from hash
@@ -11,5 +11,5 @@ OpenAPI Generator version: 4.3.1
11
11
  =end
12
12
 
13
13
  module MailSlurpClient
14
- VERSION = '8.4.2'
14
+ VERSION = '8.4.3'
15
15
  end
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: 8.4.2
4
+ version: 8.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - mailslurp
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-12-12 00:00:00.000000000 Z
11
+ date: 2020-12-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.