mailslurp_client 8.3.0 → 8.4.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -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
@@ -13,22 +13,22 @@ OpenAPI Generator version: 4.3.1
13
13
  require 'date'
14
14
 
15
15
  module MailSlurpClient
16
- # Create anonymous email alias options. Email aliases can be used to mask real email addresses behind an ID
17
- class CreateAnonymousAliasOptions
18
- # Email address to be hidden behind alias
19
- attr_accessor :email_address
16
+ # Update an email alias
17
+ class UpdateAliasOptions
18
+ # Optional name for alias
19
+ attr_accessor :name
20
20
 
21
21
  # Attribute mapping from ruby-style variable name to JSON key.
22
22
  def self.attribute_map
23
23
  {
24
- :'email_address' => :'emailAddress'
24
+ :'name' => :'name'
25
25
  }
26
26
  end
27
27
 
28
28
  # Attribute type mapping.
29
29
  def self.openapi_types
30
30
  {
31
- :'email_address' => :'String'
31
+ :'name' => :'String'
32
32
  }
33
33
  end
34
34
 
@@ -42,19 +42,19 @@ module MailSlurpClient
42
42
  # @param [Hash] attributes Model attributes in the form of hash
43
43
  def initialize(attributes = {})
44
44
  if (!attributes.is_a?(Hash))
45
- fail ArgumentError, "The input argument (attributes) must be a hash in `MailSlurpClient::CreateAnonymousAliasOptions` initialize method"
45
+ fail ArgumentError, "The input argument (attributes) must be a hash in `MailSlurpClient::UpdateAliasOptions` initialize method"
46
46
  end
47
47
 
48
48
  # check to see if the attribute exists and convert string to symbol for hash key
49
49
  attributes = attributes.each_with_object({}) { |(k, v), h|
50
50
  if (!self.class.attribute_map.key?(k.to_sym))
51
- fail ArgumentError, "`#{k}` is not a valid attribute in `MailSlurpClient::CreateAnonymousAliasOptions`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
51
+ fail ArgumentError, "`#{k}` is not a valid attribute in `MailSlurpClient::UpdateAliasOptions`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
52
52
  end
53
53
  h[k.to_sym] = v
54
54
  }
55
55
 
56
- if attributes.key?(:'email_address')
57
- self.email_address = attributes[:'email_address']
56
+ if attributes.key?(:'name')
57
+ self.name = attributes[:'name']
58
58
  end
59
59
  end
60
60
 
@@ -76,7 +76,7 @@ module MailSlurpClient
76
76
  def ==(o)
77
77
  return true if self.equal?(o)
78
78
  self.class == o.class &&
79
- email_address == o.email_address
79
+ name == o.name
80
80
  end
81
81
 
82
82
  # @see the `==` method
@@ -88,7 +88,7 @@ module MailSlurpClient
88
88
  # Calculates hash code according to all attributes.
89
89
  # @return [Integer] Hash code
90
90
  def hash
91
- [email_address].hash
91
+ [name].hash
92
92
  end
93
93
 
94
94
  # 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.3.0'
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.3.0
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-08 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.
@@ -41,18 +41,19 @@ files:
41
41
  - lib/mailslurp_client/api_client.rb
42
42
  - lib/mailslurp_client/api_error.rb
43
43
  - lib/mailslurp_client/configuration.rb
44
+ - lib/mailslurp_client/models/alias_dto.rb
45
+ - lib/mailslurp_client/models/alias_projection.rb
44
46
  - lib/mailslurp_client/models/attachment_meta_data.rb
45
47
  - lib/mailslurp_client/models/basic_auth_options.rb
46
48
  - lib/mailslurp_client/models/bulk_send_email_options.rb
47
49
  - lib/mailslurp_client/models/contact_dto.rb
48
50
  - lib/mailslurp_client/models/contact_projection.rb
49
51
  - lib/mailslurp_client/models/content_match_options.rb
50
- - lib/mailslurp_client/models/create_anonymous_alias_options.rb
52
+ - lib/mailslurp_client/models/create_alias_options.rb
51
53
  - lib/mailslurp_client/models/create_contact_options.rb
52
54
  - lib/mailslurp_client/models/create_domain_options.rb
53
55
  - lib/mailslurp_client/models/create_group_options.rb
54
56
  - lib/mailslurp_client/models/create_inbox_dto.rb
55
- - lib/mailslurp_client/models/create_owned_alias_options.rb
56
57
  - lib/mailslurp_client/models/create_template_options.rb
57
58
  - lib/mailslurp_client/models/create_webhook_options.rb
58
59
  - lib/mailslurp_client/models/describe_domain_options.rb
@@ -92,6 +93,7 @@ files:
92
93
  - lib/mailslurp_client/models/page_webhook_projection.rb
93
94
  - lib/mailslurp_client/models/pageable.rb
94
95
  - lib/mailslurp_client/models/raw_email_json.rb
96
+ - lib/mailslurp_client/models/reply_to_email_options.rb
95
97
  - lib/mailslurp_client/models/send_email_options.rb
96
98
  - lib/mailslurp_client/models/sent_email_dto.rb
97
99
  - lib/mailslurp_client/models/sent_email_projection.rb
@@ -102,6 +104,7 @@ files:
102
104
  - lib/mailslurp_client/models/template_projection.rb
103
105
  - lib/mailslurp_client/models/template_variable.rb
104
106
  - lib/mailslurp_client/models/unread_count.rb
107
+ - lib/mailslurp_client/models/update_alias_options.rb
105
108
  - lib/mailslurp_client/models/update_group_contacts.rb
106
109
  - lib/mailslurp_client/models/update_inbox_options.rb
107
110
  - lib/mailslurp_client/models/upload_attachment_options.rb