mailslurp_client 15.7.15 → 15.7.16

Sign up to get free protection for your applications and to get access to all the features.
Files changed (31) hide show
  1. checksums.yaml +4 -4
  2. data/lib/mailslurp_client/api/attachment_controller_api.rb +9 -9
  3. data/lib/mailslurp_client/api/common_actions_controller_api.rb +6 -0
  4. data/lib/mailslurp_client/api/email_controller_api.rb +3 -0
  5. data/lib/mailslurp_client/api/inbox_controller_api.rb +3 -0
  6. data/lib/mailslurp_client/models/alias_projection.rb +15 -15
  7. data/lib/mailslurp_client/models/attachment_projection.rb +15 -15
  8. data/lib/mailslurp_client/models/contact_projection.rb +14 -13
  9. data/lib/mailslurp_client/models/create_inbox_dto.rb +14 -4
  10. data/lib/mailslurp_client/models/email.rb +13 -4
  11. data/lib/mailslurp_client/models/email_projection.rb +15 -15
  12. data/lib/mailslurp_client/models/expired_inbox_record_projection.rb +18 -18
  13. data/lib/mailslurp_client/models/group_dto.rb +1 -0
  14. data/lib/mailslurp_client/models/inbox_dto.rb +19 -4
  15. data/lib/mailslurp_client/models/inbox_forwarder_test_options.rb +1 -0
  16. data/lib/mailslurp_client/models/inbox_preview.rb +11 -1
  17. data/lib/mailslurp_client/models/inline_object1.rb +270 -0
  18. data/lib/mailslurp_client/models/missed_email_projection.rb +13 -13
  19. data/lib/mailslurp_client/models/organization_inbox_projection.rb +14 -4
  20. data/lib/mailslurp_client/models/reply_to_alias_email_options.rb +13 -4
  21. data/lib/mailslurp_client/models/reply_to_email_options.rb +13 -4
  22. data/lib/mailslurp_client/models/sent_email_dto.rb +22 -4
  23. data/lib/mailslurp_client/models/sent_email_projection.rb +27 -18
  24. data/lib/mailslurp_client/models/thread_projection.rb +15 -15
  25. data/lib/mailslurp_client/models/tracking_pixel_projection.rb +15 -15
  26. data/lib/mailslurp_client/models/unknown_missed_email_projection.rb +13 -13
  27. data/lib/mailslurp_client/models/validate_email_address_list_options.rb +1 -0
  28. data/lib/mailslurp_client/models/webhook_projection.rb +11 -11
  29. data/lib/mailslurp_client/version.rb +1 -1
  30. data/lib/mailslurp_client.rb +1 -0
  31. metadata +3 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 228705b59c20fd53fa607206ff7fa940cc9415046cbf427f5945dc48d40d146a
4
- data.tar.gz: 9625c66adc08d5e5b2df2bf1133c70a590d8778d1686d77a4056737ee9e907bb
3
+ metadata.gz: 2bdf6204c13a67023421303a8ae72ff9cc3968ae5bcb6e73315a9b8e50889a32
4
+ data.tar.gz: 9267034416c67df0873c6705f8bc59e65a5d425e9da0422ece0580f13ba21a90
5
5
  SHA512:
6
- metadata.gz: 547555cfcff62c42067f3e845c3f8037f506f715e4b014d7a8116cfa90280f857926cfcb4ee75d42d7a2e42f1afbb3adbd6a67d096725063c308b489e173d6e2
7
- data.tar.gz: d4ed561778340b979dcca59fed8ea9f4e1b2a7ff760fb7431b3111eccdf6a4042769852bf1097f8196ae5f9089534a9520e76857ea0f95b830ca0378e78c48de
6
+ metadata.gz: 040ca454d24aac9237ac85474e5628ec9052e328f42ac49c47567430caa7f4afbe6e69dfff1242a656fe011e06e3069312a4d40c9104a2dd0995eaec4dbe2e53
7
+ data.tar.gz: 135ea65e05534ddb61c53dff71557f34610a75e0e507edf7a71d37bebbabcd2924b10973cbe133f9d57dd568b65020c76b15f013e10cf7fbe6fbe5f58bc10fa2
@@ -516,29 +516,29 @@ module MailSlurpClient
516
516
  end
517
517
 
518
518
  # Upload an attachment for sending using file byte stream input octet stream. Returns an array whose first element is the ID of the uploaded attachment.
519
- # @param request_body [Array<String>]
519
+ # @param inline_object1 [InlineObject1]
520
520
  # @param [Hash] opts the optional parameters
521
521
  # @option opts [String] :content_type Optional contentType for file. For instance &#x60;application/pdf&#x60;
522
522
  # @option opts [String] :filename Optional filename to save upload with
523
523
  # @return [Array<String>]
524
- def upload_attachment_bytes(request_body, opts = {})
525
- data, _status_code, _headers = upload_attachment_bytes_with_http_info(request_body, opts)
524
+ def upload_attachment_bytes(inline_object1, opts = {})
525
+ data, _status_code, _headers = upload_attachment_bytes_with_http_info(inline_object1, opts)
526
526
  data
527
527
  end
528
528
 
529
529
  # Upload an attachment for sending using file byte stream input octet stream. Returns an array whose first element is the ID of the uploaded attachment.
530
- # @param request_body [Array<String>]
530
+ # @param inline_object1 [InlineObject1]
531
531
  # @param [Hash] opts the optional parameters
532
532
  # @option opts [String] :content_type Optional contentType for file. For instance &#x60;application/pdf&#x60;
533
533
  # @option opts [String] :filename Optional filename to save upload with
534
534
  # @return [Array<(Array<String>, Integer, Hash)>] Array<String> data, response status code and response headers
535
- def upload_attachment_bytes_with_http_info(request_body, opts = {})
535
+ def upload_attachment_bytes_with_http_info(inline_object1, opts = {})
536
536
  if @api_client.config.debugging
537
537
  @api_client.config.logger.debug 'Calling API: AttachmentControllerApi.upload_attachment_bytes ...'
538
538
  end
539
- # verify the required parameter 'request_body' is set
540
- if @api_client.config.client_side_validation && request_body.nil?
541
- fail ArgumentError, "Missing the required parameter 'request_body' when calling AttachmentControllerApi.upload_attachment_bytes"
539
+ # verify the required parameter 'inline_object1' is set
540
+ if @api_client.config.client_side_validation && inline_object1.nil?
541
+ fail ArgumentError, "Missing the required parameter 'inline_object1' when calling AttachmentControllerApi.upload_attachment_bytes"
542
542
  end
543
543
  # resource path
544
544
  local_var_path = '/attachments/bytes'
@@ -559,7 +559,7 @@ module MailSlurpClient
559
559
  form_params = opts[:form_params] || {}
560
560
 
561
561
  # http body (model)
562
- post_body = opts[:body] || @api_client.object_to_http_body(request_body)
562
+ post_body = opts[:body] || @api_client.object_to_http_body(inline_object1)
563
563
 
564
564
  # return_type
565
565
  return_type = opts[:return_type] || 'Array<String>'
@@ -32,6 +32,7 @@ module MailSlurpClient
32
32
  # @option opts [String] :name
33
33
  # @option opts [Array<String>] :tags
34
34
  # @option opts [Boolean] :favourite
35
+ # @option opts [Boolean] :virtual_inbox
35
36
  # @return [InboxDto]
36
37
  def create_new_email_address(opts = {})
37
38
  data, _status_code, _headers = create_new_email_address_with_http_info(opts)
@@ -51,6 +52,7 @@ module MailSlurpClient
51
52
  # @option opts [String] :name
52
53
  # @option opts [Array<String>] :tags
53
54
  # @option opts [Boolean] :favourite
55
+ # @option opts [Boolean] :virtual_inbox
54
56
  # @return [Array<(InboxDto, Integer, Hash)>] InboxDto data, response status code and response headers
55
57
  def create_new_email_address_with_http_info(opts = {})
56
58
  if @api_client.config.debugging
@@ -75,6 +77,7 @@ module MailSlurpClient
75
77
  query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
76
78
  query_params[:'tags'] = @api_client.build_collection_param(opts[:'tags'], :multi) if !opts[:'tags'].nil?
77
79
  query_params[:'favourite'] = opts[:'favourite'] if !opts[:'favourite'].nil?
80
+ query_params[:'virtualInbox'] = opts[:'virtual_inbox'] if !opts[:'virtual_inbox'].nil?
78
81
 
79
82
  # header parameters
80
83
  header_params = opts[:header_params] || {}
@@ -122,6 +125,7 @@ module MailSlurpClient
122
125
  # @option opts [String] :name
123
126
  # @option opts [Array<String>] :tags
124
127
  # @option opts [Boolean] :favourite
128
+ # @option opts [Boolean] :virtual_inbox
125
129
  # @return [InboxDto]
126
130
  def create_random_inbox(opts = {})
127
131
  data, _status_code, _headers = create_random_inbox_with_http_info(opts)
@@ -141,6 +145,7 @@ module MailSlurpClient
141
145
  # @option opts [String] :name
142
146
  # @option opts [Array<String>] :tags
143
147
  # @option opts [Boolean] :favourite
148
+ # @option opts [Boolean] :virtual_inbox
144
149
  # @return [Array<(InboxDto, Integer, Hash)>] InboxDto data, response status code and response headers
145
150
  def create_random_inbox_with_http_info(opts = {})
146
151
  if @api_client.config.debugging
@@ -165,6 +170,7 @@ module MailSlurpClient
165
170
  query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
166
171
  query_params[:'tags'] = @api_client.build_collection_param(opts[:'tags'], :multi) if !opts[:'tags'].nil?
167
172
  query_params[:'favourite'] = opts[:'favourite'] if !opts[:'favourite'].nil?
173
+ query_params[:'virtualInbox'] = opts[:'virtual_inbox'] if !opts[:'virtual_inbox'].nil?
168
174
 
169
175
  # header parameters
170
176
  header_params = opts[:header_params] || {}
@@ -1864,6 +1864,7 @@ module MailSlurpClient
1864
1864
  # @param send_email_options [SendEmailOptions]
1865
1865
  # @param [Hash] opts the optional parameters
1866
1866
  # @option opts [Boolean] :use_domain_pool Use domain pool. Optionally create inbox to send from using the mailslurp domain pool.
1867
+ # @option opts [Boolean] :virtual_send Optionally create inbox to send from that is a virtual inbox and won&#39;t send to external addresses
1867
1868
  # @return [nil]
1868
1869
  def send_email_source_optional(inbox_id, send_email_options, opts = {})
1869
1870
  send_email_source_optional_with_http_info(inbox_id, send_email_options, opts)
@@ -1876,6 +1877,7 @@ module MailSlurpClient
1876
1877
  # @param send_email_options [SendEmailOptions]
1877
1878
  # @param [Hash] opts the optional parameters
1878
1879
  # @option opts [Boolean] :use_domain_pool Use domain pool. Optionally create inbox to send from using the mailslurp domain pool.
1880
+ # @option opts [Boolean] :virtual_send Optionally create inbox to send from that is a virtual inbox and won&#39;t send to external addresses
1879
1881
  # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
1880
1882
  def send_email_source_optional_with_http_info(inbox_id, send_email_options, opts = {})
1881
1883
  if @api_client.config.debugging
@@ -1895,6 +1897,7 @@ module MailSlurpClient
1895
1897
  # query parameters
1896
1898
  query_params = opts[:query_params] || {}
1897
1899
  query_params[:'useDomainPool'] = opts[:'use_domain_pool'] if !opts[:'use_domain_pool'].nil?
1900
+ query_params[:'virtualSend'] = opts[:'virtual_send'] if !opts[:'virtual_send'].nil?
1898
1901
 
1899
1902
  # header parameters
1900
1903
  header_params = opts[:header_params] || {}
@@ -32,6 +32,7 @@ module MailSlurpClient
32
32
  # @option opts [Integer] :expires_in Number of milliseconds that inbox should exist for
33
33
  # @option opts [Boolean] :allow_team_access DEPRECATED (team access is always true). Grant team access to this inbox and the emails that belong to it for team members of your organization.
34
34
  # @option opts [String] :inbox_type HTTP (default) or SMTP inbox type. HTTP inboxes are default and best solution for most cases. SMTP inboxes are more reliable for public inbound email consumption (but do not support sending emails). When using custom domains the domain type must match the inbox type. HTTP inboxes are processed by AWS SES while SMTP inboxes use a custom mail server running at &#x60;mx.mailslurp.com&#x60;.
35
+ # @option opts [Boolean] :virtual_inbox Virtual inbox prevents any outbound emails from being sent. It creates sent email records but will never send real emails to recipients. Great for testing and faking email sending.
35
36
  # @return [InboxDto]
36
37
  def create_inbox(opts = {})
37
38
  data, _status_code, _headers = create_inbox_with_http_info(opts)
@@ -51,6 +52,7 @@ module MailSlurpClient
51
52
  # @option opts [Integer] :expires_in Number of milliseconds that inbox should exist for
52
53
  # @option opts [Boolean] :allow_team_access DEPRECATED (team access is always true). Grant team access to this inbox and the emails that belong to it for team members of your organization.
53
54
  # @option opts [String] :inbox_type HTTP (default) or SMTP inbox type. HTTP inboxes are default and best solution for most cases. SMTP inboxes are more reliable for public inbound email consumption (but do not support sending emails). When using custom domains the domain type must match the inbox type. HTTP inboxes are processed by AWS SES while SMTP inboxes use a custom mail server running at &#x60;mx.mailslurp.com&#x60;.
55
+ # @option opts [Boolean] :virtual_inbox Virtual inbox prevents any outbound emails from being sent. It creates sent email records but will never send real emails to recipients. Great for testing and faking email sending.
54
56
  # @return [Array<(InboxDto, Integer, Hash)>] InboxDto data, response status code and response headers
55
57
  def create_inbox_with_http_info(opts = {})
56
58
  if @api_client.config.debugging
@@ -75,6 +77,7 @@ module MailSlurpClient
75
77
  query_params[:'expiresIn'] = opts[:'expires_in'] if !opts[:'expires_in'].nil?
76
78
  query_params[:'allowTeamAccess'] = opts[:'allow_team_access'] if !opts[:'allow_team_access'].nil?
77
79
  query_params[:'inboxType'] = opts[:'inbox_type'] if !opts[:'inbox_type'].nil?
80
+ query_params[:'virtualInbox'] = opts[:'virtual_inbox'] if !opts[:'virtual_inbox'].nil?
78
81
 
79
82
  # header parameters
80
83
  header_params = opts[:header_params] || {}
@@ -19,14 +19,14 @@ module MailSlurpClient
19
19
 
20
20
  attr_accessor :id
21
21
 
22
+ attr_accessor :created_at
23
+
22
24
  attr_accessor :user_id
23
25
 
24
26
  attr_accessor :email_address
25
27
 
26
28
  attr_accessor :inbox_id
27
29
 
28
- attr_accessor :created_at
29
-
30
30
  attr_accessor :use_threads
31
31
 
32
32
  attr_accessor :updated_at
@@ -36,10 +36,10 @@ module MailSlurpClient
36
36
  {
37
37
  :'name' => :'name',
38
38
  :'id' => :'id',
39
+ :'created_at' => :'createdAt',
39
40
  :'user_id' => :'userId',
40
41
  :'email_address' => :'emailAddress',
41
42
  :'inbox_id' => :'inboxId',
42
- :'created_at' => :'createdAt',
43
43
  :'use_threads' => :'useThreads',
44
44
  :'updated_at' => :'updatedAt'
45
45
  }
@@ -50,10 +50,10 @@ module MailSlurpClient
50
50
  {
51
51
  :'name' => :'String',
52
52
  :'id' => :'String',
53
+ :'created_at' => :'DateTime',
53
54
  :'user_id' => :'String',
54
55
  :'email_address' => :'String',
55
56
  :'inbox_id' => :'String',
56
- :'created_at' => :'DateTime',
57
57
  :'use_threads' => :'Boolean',
58
58
  :'updated_at' => :'DateTime'
59
59
  }
@@ -88,6 +88,10 @@ module MailSlurpClient
88
88
  self.id = attributes[:'id']
89
89
  end
90
90
 
91
+ if attributes.key?(:'created_at')
92
+ self.created_at = attributes[:'created_at']
93
+ end
94
+
91
95
  if attributes.key?(:'user_id')
92
96
  self.user_id = attributes[:'user_id']
93
97
  end
@@ -100,10 +104,6 @@ module MailSlurpClient
100
104
  self.inbox_id = attributes[:'inbox_id']
101
105
  end
102
106
 
103
- if attributes.key?(:'created_at')
104
- self.created_at = attributes[:'created_at']
105
- end
106
-
107
107
  if attributes.key?(:'use_threads')
108
108
  self.use_threads = attributes[:'use_threads']
109
109
  end
@@ -121,6 +121,10 @@ module MailSlurpClient
121
121
  invalid_properties.push('invalid value for "id", id cannot be nil.')
122
122
  end
123
123
 
124
+ if @created_at.nil?
125
+ invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
126
+ end
127
+
124
128
  if @user_id.nil?
125
129
  invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
126
130
  end
@@ -133,10 +137,6 @@ module MailSlurpClient
133
137
  invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
134
138
  end
135
139
 
136
- if @created_at.nil?
137
- invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
138
- end
139
-
140
140
  if @updated_at.nil?
141
141
  invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
142
142
  end
@@ -148,10 +148,10 @@ 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 @created_at.nil?
151
152
  return false if @user_id.nil?
152
153
  return false if @email_address.nil?
153
154
  return false if @inbox_id.nil?
154
- return false if @created_at.nil?
155
155
  return false if @updated_at.nil?
156
156
  true
157
157
  end
@@ -163,10 +163,10 @@ module MailSlurpClient
163
163
  self.class == o.class &&
164
164
  name == o.name &&
165
165
  id == o.id &&
166
+ created_at == o.created_at &&
166
167
  user_id == o.user_id &&
167
168
  email_address == o.email_address &&
168
169
  inbox_id == o.inbox_id &&
169
- created_at == o.created_at &&
170
170
  use_threads == o.use_threads &&
171
171
  updated_at == o.updated_at
172
172
  end
@@ -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, user_id, email_address, inbox_id, created_at, use_threads, updated_at].hash
183
+ [name, id, created_at, user_id, email_address, inbox_id, use_threads, updated_at].hash
184
184
  end
185
185
 
186
186
  # Builds the object from hash
@@ -23,13 +23,13 @@ module MailSlurpClient
23
23
  # Content type of attachment.
24
24
  attr_accessor :content_type
25
25
 
26
+ attr_accessor :created_at
27
+
26
28
  attr_accessor :user_id
27
29
 
28
30
  # Attachment ID
29
31
  attr_accessor :attachment_id
30
32
 
31
- attr_accessor :created_at
32
-
33
33
  attr_accessor :updated_at
34
34
 
35
35
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -38,9 +38,9 @@ module MailSlurpClient
38
38
  :'name' => :'name',
39
39
  :'content_length' => :'contentLength',
40
40
  :'content_type' => :'contentType',
41
+ :'created_at' => :'createdAt',
41
42
  :'user_id' => :'userId',
42
43
  :'attachment_id' => :'attachmentId',
43
- :'created_at' => :'createdAt',
44
44
  :'updated_at' => :'updatedAt'
45
45
  }
46
46
  end
@@ -51,9 +51,9 @@ module MailSlurpClient
51
51
  :'name' => :'String',
52
52
  :'content_length' => :'Integer',
53
53
  :'content_type' => :'String',
54
+ :'created_at' => :'DateTime',
54
55
  :'user_id' => :'String',
55
56
  :'attachment_id' => :'String',
56
- :'created_at' => :'DateTime',
57
57
  :'updated_at' => :'DateTime'
58
58
  }
59
59
  end
@@ -91,6 +91,10 @@ module MailSlurpClient
91
91
  self.content_type = attributes[:'content_type']
92
92
  end
93
93
 
94
+ if attributes.key?(:'created_at')
95
+ self.created_at = attributes[:'created_at']
96
+ end
97
+
94
98
  if attributes.key?(:'user_id')
95
99
  self.user_id = attributes[:'user_id']
96
100
  end
@@ -99,10 +103,6 @@ module MailSlurpClient
99
103
  self.attachment_id = attributes[:'attachment_id']
100
104
  end
101
105
 
102
- if attributes.key?(:'created_at')
103
- self.created_at = attributes[:'created_at']
104
- end
105
-
106
106
  if attributes.key?(:'updated_at')
107
107
  self.updated_at = attributes[:'updated_at']
108
108
  end
@@ -112,6 +112,10 @@ module MailSlurpClient
112
112
  # @return Array for valid properties with the reasons
113
113
  def list_invalid_properties
114
114
  invalid_properties = Array.new
115
+ if @created_at.nil?
116
+ invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
117
+ end
118
+
115
119
  if @user_id.nil?
116
120
  invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
117
121
  end
@@ -120,10 +124,6 @@ module MailSlurpClient
120
124
  invalid_properties.push('invalid value for "attachment_id", attachment_id cannot be nil.')
121
125
  end
122
126
 
123
- if @created_at.nil?
124
- invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
125
- end
126
-
127
127
  if @updated_at.nil?
128
128
  invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
129
129
  end
@@ -134,9 +134,9 @@ module MailSlurpClient
134
134
  # Check to see if the all the properties in the model are valid
135
135
  # @return true if the model is valid
136
136
  def valid?
137
+ return false if @created_at.nil?
137
138
  return false if @user_id.nil?
138
139
  return false if @attachment_id.nil?
139
- return false if @created_at.nil?
140
140
  return false if @updated_at.nil?
141
141
  true
142
142
  end
@@ -149,9 +149,9 @@ module MailSlurpClient
149
149
  name == o.name &&
150
150
  content_length == o.content_length &&
151
151
  content_type == o.content_type &&
152
+ created_at == o.created_at &&
152
153
  user_id == o.user_id &&
153
154
  attachment_id == o.attachment_id &&
154
- created_at == o.created_at &&
155
155
  updated_at == o.updated_at
156
156
  end
157
157
 
@@ -164,7 +164,7 @@ module MailSlurpClient
164
164
  # Calculates hash code according to all attributes.
165
165
  # @return [Integer] Hash code
166
166
  def hash
167
- [name, content_length, content_type, user_id, attachment_id, created_at, updated_at].hash
167
+ [name, content_length, content_type, created_at, user_id, attachment_id, updated_at].hash
168
168
  end
169
169
 
170
170
  # Builds the object from hash
@@ -13,11 +13,14 @@ OpenAPI Generator version: 4.3.1
13
13
  require 'date'
14
14
 
15
15
  module MailSlurpClient
16
+ # Email contact for address book
16
17
  class ContactProjection
17
18
  attr_accessor :id
18
19
 
19
20
  attr_accessor :group_id
20
21
 
22
+ attr_accessor :created_at
23
+
21
24
  attr_accessor :first_name
22
25
 
23
26
  attr_accessor :last_name
@@ -28,19 +31,17 @@ module MailSlurpClient
28
31
 
29
32
  attr_accessor :opt_out
30
33
 
31
- attr_accessor :created_at
32
-
33
34
  # Attribute mapping from ruby-style variable name to JSON key.
34
35
  def self.attribute_map
35
36
  {
36
37
  :'id' => :'id',
37
38
  :'group_id' => :'groupId',
39
+ :'created_at' => :'createdAt',
38
40
  :'first_name' => :'firstName',
39
41
  :'last_name' => :'lastName',
40
42
  :'company' => :'company',
41
43
  :'email_addresses' => :'emailAddresses',
42
- :'opt_out' => :'optOut',
43
- :'created_at' => :'createdAt'
44
+ :'opt_out' => :'optOut'
44
45
  }
45
46
  end
46
47
 
@@ -49,12 +50,12 @@ module MailSlurpClient
49
50
  {
50
51
  :'id' => :'String',
51
52
  :'group_id' => :'String',
53
+ :'created_at' => :'DateTime',
52
54
  :'first_name' => :'String',
53
55
  :'last_name' => :'String',
54
56
  :'company' => :'String',
55
57
  :'email_addresses' => :'Array<String>',
56
- :'opt_out' => :'Boolean',
57
- :'created_at' => :'DateTime'
58
+ :'opt_out' => :'Boolean'
58
59
  }
59
60
  end
60
61
 
@@ -87,6 +88,10 @@ module MailSlurpClient
87
88
  self.group_id = attributes[:'group_id']
88
89
  end
89
90
 
91
+ if attributes.key?(:'created_at')
92
+ self.created_at = attributes[:'created_at']
93
+ end
94
+
90
95
  if attributes.key?(:'first_name')
91
96
  self.first_name = attributes[:'first_name']
92
97
  end
@@ -108,10 +113,6 @@ module MailSlurpClient
108
113
  if attributes.key?(:'opt_out')
109
114
  self.opt_out = attributes[:'opt_out']
110
115
  end
111
-
112
- if attributes.key?(:'created_at')
113
- self.created_at = attributes[:'created_at']
114
- end
115
116
  end
116
117
 
117
118
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -144,12 +145,12 @@ module MailSlurpClient
144
145
  self.class == o.class &&
145
146
  id == o.id &&
146
147
  group_id == o.group_id &&
148
+ created_at == o.created_at &&
147
149
  first_name == o.first_name &&
148
150
  last_name == o.last_name &&
149
151
  company == o.company &&
150
152
  email_addresses == o.email_addresses &&
151
- opt_out == o.opt_out &&
152
- created_at == o.created_at
153
+ opt_out == o.opt_out
153
154
  end
154
155
 
155
156
  # @see the `==` method
@@ -161,7 +162,7 @@ module MailSlurpClient
161
162
  # Calculates hash code according to all attributes.
162
163
  # @return [Integer] Hash code
163
164
  def hash
164
- [id, group_id, first_name, last_name, company, email_addresses, opt_out, created_at].hash
165
+ [id, group_id, created_at, first_name, last_name, company, email_addresses, opt_out].hash
165
166
  end
166
167
 
167
168
  # Builds the object from hash
@@ -45,6 +45,9 @@ module MailSlurpClient
45
45
  # Type of inbox. HTTP inboxes are faster and better for most cases. SMTP inboxes are more suited for public facing inbound messages (but cannot send).
46
46
  attr_accessor :inbox_type
47
47
 
48
+ # Virtual inbox prevents any outbound emails from being sent. It creates sent email records but will never send real emails to recipients. Great for testing and faking email sending.
49
+ attr_accessor :virtual_inbox
50
+
48
51
  class EnumAttributeValidator
49
52
  attr_reader :datatype
50
53
  attr_reader :allowable_values
@@ -79,7 +82,8 @@ module MailSlurpClient
79
82
  :'favourite' => :'favourite',
80
83
  :'expires_in' => :'expiresIn',
81
84
  :'allow_team_access' => :'allowTeamAccess',
82
- :'inbox_type' => :'inboxType'
85
+ :'inbox_type' => :'inboxType',
86
+ :'virtual_inbox' => :'virtualInbox'
83
87
  }
84
88
  end
85
89
 
@@ -95,7 +99,8 @@ module MailSlurpClient
95
99
  :'favourite' => :'Boolean',
96
100
  :'expires_in' => :'Integer',
97
101
  :'allow_team_access' => :'Boolean',
98
- :'inbox_type' => :'String'
102
+ :'inbox_type' => :'String',
103
+ :'virtual_inbox' => :'Boolean'
99
104
  }
100
105
  end
101
106
 
@@ -161,6 +166,10 @@ module MailSlurpClient
161
166
  if attributes.key?(:'inbox_type')
162
167
  self.inbox_type = attributes[:'inbox_type']
163
168
  end
169
+
170
+ if attributes.key?(:'virtual_inbox')
171
+ self.virtual_inbox = attributes[:'virtual_inbox']
172
+ end
164
173
  end
165
174
 
166
175
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -202,7 +211,8 @@ module MailSlurpClient
202
211
  favourite == o.favourite &&
203
212
  expires_in == o.expires_in &&
204
213
  allow_team_access == o.allow_team_access &&
205
- inbox_type == o.inbox_type
214
+ inbox_type == o.inbox_type &&
215
+ virtual_inbox == o.virtual_inbox
206
216
  end
207
217
 
208
218
  # @see the `==` method
@@ -214,7 +224,7 @@ module MailSlurpClient
214
224
  # Calculates hash code according to all attributes.
215
225
  # @return [Integer] Hash code
216
226
  def hash
217
- [email_address, name, description, use_domain_pool, tags, expires_at, favourite, expires_in, allow_team_access, inbox_type].hash
227
+ [email_address, name, description, use_domain_pool, tags, expires_at, favourite, expires_in, allow_team_access, inbox_type, virtual_inbox].hash
218
228
  end
219
229
 
220
230
  # Builds the object from hash
@@ -81,6 +81,8 @@ module MailSlurpClient
81
81
  # Can the email be accessed by organization team members
82
82
  attr_accessor :team_access
83
83
 
84
+ attr_accessor :html
85
+
84
86
  # Attribute mapping from ruby-style variable name to JSON key.
85
87
  def self.attribute_map
86
88
  {
@@ -106,7 +108,8 @@ module MailSlurpClient
106
108
  :'created_at' => :'createdAt',
107
109
  :'updated_at' => :'updatedAt',
108
110
  :'read' => :'read',
109
- :'team_access' => :'teamAccess'
111
+ :'team_access' => :'teamAccess',
112
+ :'html' => :'html'
110
113
  }
111
114
  end
112
115
 
@@ -135,7 +138,8 @@ module MailSlurpClient
135
138
  :'created_at' => :'DateTime',
136
139
  :'updated_at' => :'DateTime',
137
140
  :'read' => :'Boolean',
138
- :'team_access' => :'Boolean'
141
+ :'team_access' => :'Boolean',
142
+ :'html' => :'Boolean'
139
143
  }
140
144
  end
141
145
 
@@ -261,6 +265,10 @@ module MailSlurpClient
261
265
  if attributes.key?(:'team_access')
262
266
  self.team_access = attributes[:'team_access']
263
267
  end
268
+
269
+ if attributes.key?(:'html')
270
+ self.html = attributes[:'html']
271
+ end
264
272
  end
265
273
 
266
274
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -343,7 +351,8 @@ module MailSlurpClient
343
351
  created_at == o.created_at &&
344
352
  updated_at == o.updated_at &&
345
353
  read == o.read &&
346
- team_access == o.team_access
354
+ team_access == o.team_access &&
355
+ html == o.html
347
356
  end
348
357
 
349
358
  # @see the `==` method
@@ -355,7 +364,7 @@ module MailSlurpClient
355
364
  # Calculates hash code according to all attributes.
356
365
  # @return [Integer] Hash code
357
366
  def hash
358
- [id, user_id, inbox_id, to, from, sender, recipients, reply_to, cc, bcc, headers, attachments, subject, body, body_excerpt, body_md5_hash, is_html, charset, analysis, created_at, updated_at, read, team_access].hash
367
+ [id, user_id, inbox_id, to, from, sender, recipients, reply_to, cc, bcc, headers, attachments, subject, body, body_excerpt, body_md5_hash, is_html, charset, analysis, created_at, updated_at, read, team_access, html].hash
359
368
  end
360
369
 
361
370
  # Builds the object from hash