mailslurp_client 15.7.13 → 15.7.16

Sign up to get free protection for your applications and to get access to all the features.
Files changed (78) 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_entity.rb +1 -0
  8. data/lib/mailslurp_client/models/attachment_projection.rb +16 -15
  9. data/lib/mailslurp_client/models/bounce_projection.rb +1 -0
  10. data/lib/mailslurp_client/models/bounce_recipient.rb +1 -0
  11. data/lib/mailslurp_client/models/contact_dto.rb +1 -0
  12. data/lib/mailslurp_client/models/contact_projection.rb +14 -13
  13. data/lib/mailslurp_client/models/count_dto.rb +1 -0
  14. data/lib/mailslurp_client/models/create_contact_options.rb +1 -0
  15. data/lib/mailslurp_client/models/create_group_options.rb +1 -0
  16. data/lib/mailslurp_client/models/create_inbox_dto.rb +14 -4
  17. data/lib/mailslurp_client/models/create_template_options.rb +1 -0
  18. data/lib/mailslurp_client/models/create_tracking_pixel_options.rb +1 -0
  19. data/lib/mailslurp_client/models/describe_domain_options.rb +1 -0
  20. data/lib/mailslurp_client/models/email.rb +13 -4
  21. data/lib/mailslurp_client/models/email_preview_urls.rb +1 -0
  22. data/lib/mailslurp_client/models/email_projection.rb +32 -32
  23. data/lib/mailslurp_client/models/email_validation_request.rb +1 -0
  24. data/lib/mailslurp_client/models/expired_inbox_record_projection.rb +19 -18
  25. data/lib/mailslurp_client/models/filter_bounced_recipients_options.rb +1 -0
  26. data/lib/mailslurp_client/models/filter_bounced_recipients_result.rb +1 -0
  27. data/lib/mailslurp_client/models/flush_expired_inboxes_result.rb +1 -0
  28. data/lib/mailslurp_client/models/gravatar_url.rb +1 -0
  29. data/lib/mailslurp_client/models/group_contacts_dto.rb +1 -0
  30. data/lib/mailslurp_client/models/group_dto.rb +1 -0
  31. data/lib/mailslurp_client/models/group_projection.rb +1 -0
  32. data/lib/mailslurp_client/models/imap_flag_operation_options.rb +1 -0
  33. data/lib/mailslurp_client/models/imap_smtp_access_details.rb +9 -0
  34. data/lib/mailslurp_client/models/inbox_by_email_address_result.rb +1 -0
  35. data/lib/mailslurp_client/models/inbox_dto.rb +19 -4
  36. data/lib/mailslurp_client/models/inbox_exists_dto.rb +1 -0
  37. data/lib/mailslurp_client/models/inbox_forwarder_dto.rb +1 -0
  38. data/lib/mailslurp_client/models/inbox_forwarder_test_options.rb +1 -0
  39. data/lib/mailslurp_client/models/inbox_forwarder_test_result.rb +1 -0
  40. data/lib/mailslurp_client/models/inbox_id_item.rb +1 -0
  41. data/lib/mailslurp_client/models/inbox_ids_result.rb +1 -0
  42. data/lib/mailslurp_client/models/inbox_preview.rb +12 -1
  43. data/lib/mailslurp_client/models/inbox_ruleset_dto.rb +1 -0
  44. data/lib/mailslurp_client/models/inbox_ruleset_test_options.rb +1 -0
  45. data/lib/mailslurp_client/models/inbox_ruleset_test_result.rb +1 -0
  46. data/lib/mailslurp_client/models/inline_object1.rb +270 -0
  47. data/lib/mailslurp_client/models/json_schema_dto.rb +1 -0
  48. data/lib/mailslurp_client/models/missed_email.rb +1 -0
  49. data/lib/mailslurp_client/models/missed_email_projection.rb +14 -13
  50. data/lib/mailslurp_client/models/organization_inbox_projection.rb +15 -4
  51. data/lib/mailslurp_client/models/recipient.rb +1 -0
  52. data/lib/mailslurp_client/models/reply_to_alias_email_options.rb +13 -4
  53. data/lib/mailslurp_client/models/reply_to_email_options.rb +13 -4
  54. data/lib/mailslurp_client/models/sent_email_dto.rb +22 -4
  55. data/lib/mailslurp_client/models/sent_email_projection.rb +38 -29
  56. data/lib/mailslurp_client/models/simple_send_email_options.rb +1 -0
  57. data/lib/mailslurp_client/models/template_dto.rb +1 -0
  58. data/lib/mailslurp_client/models/template_projection.rb +1 -0
  59. data/lib/mailslurp_client/models/template_variable.rb +1 -0
  60. data/lib/mailslurp_client/models/test_new_inbox_forwarder_options.rb +1 -0
  61. data/lib/mailslurp_client/models/test_new_inbox_ruleset_options.rb +1 -0
  62. data/lib/mailslurp_client/models/thread_projection.rb +15 -15
  63. data/lib/mailslurp_client/models/tracking_pixel_dto.rb +1 -0
  64. data/lib/mailslurp_client/models/tracking_pixel_projection.rb +16 -15
  65. data/lib/mailslurp_client/models/unknown_missed_email_projection.rb +14 -13
  66. data/lib/mailslurp_client/models/unread_count.rb +1 -0
  67. data/lib/mailslurp_client/models/unseen_error_count_dto.rb +1 -0
  68. data/lib/mailslurp_client/models/update_group_contacts.rb +1 -0
  69. data/lib/mailslurp_client/models/validate_email_address_list_options.rb +1 -0
  70. data/lib/mailslurp_client/models/validate_email_address_list_result.rb +1 -0
  71. data/lib/mailslurp_client/models/webhook_projection.rb +11 -11
  72. data/lib/mailslurp_client/models/webhook_redrive_result.rb +1 -0
  73. data/lib/mailslurp_client/models/webhook_result_dto.rb +1 -0
  74. data/lib/mailslurp_client/models/webhook_test_request.rb +1 -0
  75. data/lib/mailslurp_client/models/webhook_test_response.rb +1 -0
  76. data/lib/mailslurp_client/version.rb +1 -1
  77. data/lib/mailslurp_client.rb +1 -0
  78. metadata +3 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8f92a11802f5a101808f19c0d470a08b50015c0e899b9f5043e7ff056f81e246
4
- data.tar.gz: 5e817a0bbe48bfaec6e3b87742fda04da79cf3a11575e4024d0d9f0966ba87cd
3
+ metadata.gz: 2bdf6204c13a67023421303a8ae72ff9cc3968ae5bcb6e73315a9b8e50889a32
4
+ data.tar.gz: 9267034416c67df0873c6705f8bc59e65a5d425e9da0422ece0580f13ba21a90
5
5
  SHA512:
6
- metadata.gz: b38e5c9ebefdd1519dce0275fa68e22ae2a10c32a8167f27f2a0b2745ed8261956256f703c044b35c1c4f72eb3be87eb772757cd477960e63b95d9d4089a408d
7
- data.tar.gz: f4c173843e177f9fd309dfb6d62f1c0606a1537ace9936c0135f43cde1a5ab409f299c8c2cb003032e88ca5ed2915abe9f294a940247f31bf8beb6be70cde0a4
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
@@ -13,6 +13,7 @@ OpenAPI Generator version: 4.3.1
13
13
  require 'date'
14
14
 
15
15
  module MailSlurpClient
16
+ # Email attachment entity
16
17
  class AttachmentEntity
17
18
  attr_accessor :id
18
19
 
@@ -13,6 +13,7 @@ OpenAPI Generator version: 4.3.1
13
13
  require 'date'
14
14
 
15
15
  module MailSlurpClient
16
+ # Email attachment data
16
17
  class AttachmentProjection
17
18
  attr_accessor :name
18
19
 
@@ -22,13 +23,13 @@ module MailSlurpClient
22
23
  # Content type of attachment.
23
24
  attr_accessor :content_type
24
25
 
26
+ attr_accessor :created_at
27
+
25
28
  attr_accessor :user_id
26
29
 
27
30
  # Attachment ID
28
31
  attr_accessor :attachment_id
29
32
 
30
- attr_accessor :created_at
31
-
32
33
  attr_accessor :updated_at
33
34
 
34
35
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -37,9 +38,9 @@ module MailSlurpClient
37
38
  :'name' => :'name',
38
39
  :'content_length' => :'contentLength',
39
40
  :'content_type' => :'contentType',
41
+ :'created_at' => :'createdAt',
40
42
  :'user_id' => :'userId',
41
43
  :'attachment_id' => :'attachmentId',
42
- :'created_at' => :'createdAt',
43
44
  :'updated_at' => :'updatedAt'
44
45
  }
45
46
  end
@@ -50,9 +51,9 @@ module MailSlurpClient
50
51
  :'name' => :'String',
51
52
  :'content_length' => :'Integer',
52
53
  :'content_type' => :'String',
54
+ :'created_at' => :'DateTime',
53
55
  :'user_id' => :'String',
54
56
  :'attachment_id' => :'String',
55
- :'created_at' => :'DateTime',
56
57
  :'updated_at' => :'DateTime'
57
58
  }
58
59
  end
@@ -90,6 +91,10 @@ module MailSlurpClient
90
91
  self.content_type = attributes[:'content_type']
91
92
  end
92
93
 
94
+ if attributes.key?(:'created_at')
95
+ self.created_at = attributes[:'created_at']
96
+ end
97
+
93
98
  if attributes.key?(:'user_id')
94
99
  self.user_id = attributes[:'user_id']
95
100
  end
@@ -98,10 +103,6 @@ module MailSlurpClient
98
103
  self.attachment_id = attributes[:'attachment_id']
99
104
  end
100
105
 
101
- if attributes.key?(:'created_at')
102
- self.created_at = attributes[:'created_at']
103
- end
104
-
105
106
  if attributes.key?(:'updated_at')
106
107
  self.updated_at = attributes[:'updated_at']
107
108
  end
@@ -111,6 +112,10 @@ module MailSlurpClient
111
112
  # @return Array for valid properties with the reasons
112
113
  def list_invalid_properties
113
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
+
114
119
  if @user_id.nil?
115
120
  invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
116
121
  end
@@ -119,10 +124,6 @@ module MailSlurpClient
119
124
  invalid_properties.push('invalid value for "attachment_id", attachment_id cannot be nil.')
120
125
  end
121
126
 
122
- if @created_at.nil?
123
- invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
124
- end
125
-
126
127
  if @updated_at.nil?
127
128
  invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
128
129
  end
@@ -133,9 +134,9 @@ module MailSlurpClient
133
134
  # Check to see if the all the properties in the model are valid
134
135
  # @return true if the model is valid
135
136
  def valid?
137
+ return false if @created_at.nil?
136
138
  return false if @user_id.nil?
137
139
  return false if @attachment_id.nil?
138
- return false if @created_at.nil?
139
140
  return false if @updated_at.nil?
140
141
  true
141
142
  end
@@ -148,9 +149,9 @@ module MailSlurpClient
148
149
  name == o.name &&
149
150
  content_length == o.content_length &&
150
151
  content_type == o.content_type &&
152
+ created_at == o.created_at &&
151
153
  user_id == o.user_id &&
152
154
  attachment_id == o.attachment_id &&
153
- created_at == o.created_at &&
154
155
  updated_at == o.updated_at
155
156
  end
156
157
 
@@ -163,7 +164,7 @@ module MailSlurpClient
163
164
  # Calculates hash code according to all attributes.
164
165
  # @return [Integer] Hash code
165
166
  def hash
166
- [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
167
168
  end
168
169
 
169
170
  # Builds the object from hash
@@ -13,6 +13,7 @@ OpenAPI Generator version: 4.3.1
13
13
  require 'date'
14
14
 
15
15
  module MailSlurpClient
16
+ # Bounced email event
16
17
  class BounceProjection
17
18
  attr_accessor :id
18
19
 
@@ -13,6 +13,7 @@ OpenAPI Generator version: 4.3.1
13
13
  require 'date'
14
14
 
15
15
  module MailSlurpClient
16
+ # Bounced email recipient address
16
17
  class BounceRecipient
17
18
  attr_accessor :id
18
19
 
@@ -13,6 +13,7 @@ OpenAPI Generator version: 4.3.1
13
13
  require 'date'
14
14
 
15
15
  module MailSlurpClient
16
+ # Contact object. For saving a user in contact book.
16
17
  class ContactDto
17
18
  attr_accessor :id
18
19
 
@@ -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
@@ -13,6 +13,7 @@ OpenAPI Generator version: 4.3.1
13
13
  require 'date'
14
14
 
15
15
  module MailSlurpClient
16
+ # Number of elements
16
17
  class CountDto
17
18
  attr_accessor :total_elements
18
19
 
@@ -13,6 +13,7 @@ OpenAPI Generator version: 4.3.1
13
13
  require 'date'
14
14
 
15
15
  module MailSlurpClient
16
+ # Options for creating an email contact in address book
16
17
  class CreateContactOptions
17
18
  attr_accessor :first_name
18
19
 
@@ -13,6 +13,7 @@ OpenAPI Generator version: 4.3.1
13
13
  require 'date'
14
14
 
15
15
  module MailSlurpClient
16
+ # Create contact group options
16
17
  class CreateGroupOptions
17
18
  attr_accessor :name
18
19
 
@@ -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
@@ -13,6 +13,7 @@ OpenAPI Generator version: 4.3.1
13
13
  require 'date'
14
14
 
15
15
  module MailSlurpClient
16
+ # Options for creating email templates
16
17
  class CreateTemplateOptions
17
18
  attr_accessor :name
18
19
 
@@ -13,6 +13,7 @@ OpenAPI Generator version: 4.3.1
13
13
  require 'date'
14
14
 
15
15
  module MailSlurpClient
16
+ # Options for creating a tracking pixel for email open tracking
16
17
  class CreateTrackingPixelOptions
17
18
  attr_accessor :name
18
19
 
@@ -13,6 +13,7 @@ OpenAPI Generator version: 4.3.1
13
13
  require 'date'
14
14
 
15
15
  module MailSlurpClient
16
+ # Domain record description
16
17
  class DescribeDomainOptions
17
18
  attr_accessor :domain
18
19