mailslurp_client 15.19.13 → 15.19.16

Sign up to get free protection for your applications and to get access to all the features.
Files changed (55) hide show
  1. checksums.yaml +4 -4
  2. data/lib/mailslurp_client/api/email_controller_api.rb +3 -0
  3. data/lib/mailslurp_client/api/inbox_controller_api.rb +182 -2
  4. data/lib/mailslurp_client/models/alias_projection.rb +15 -15
  5. data/lib/mailslurp_client/models/connector_projection.rb +15 -15
  6. data/lib/mailslurp_client/models/create_domain_options.rb +1 -1
  7. data/lib/mailslurp_client/models/imap_access_details.rb +61 -1
  8. data/lib/mailslurp_client/models/imap_smtp_access_details.rb +61 -1
  9. data/lib/mailslurp_client/models/imap_smtp_access_servers.rb +254 -0
  10. data/lib/mailslurp_client/models/inbox_dto.rb +1 -1
  11. data/lib/mailslurp_client/models/inbox_forwarder_event_projection.rb +11 -11
  12. data/lib/mailslurp_client/models/inbox_replier_event_projection.rb +11 -11
  13. data/lib/mailslurp_client/models/page_alias.rb +10 -10
  14. data/lib/mailslurp_client/models/page_attachment_entity.rb +10 -10
  15. data/lib/mailslurp_client/models/page_bounced_email.rb +10 -10
  16. data/lib/mailslurp_client/models/page_bounced_recipients.rb +10 -10
  17. data/lib/mailslurp_client/models/page_complaint.rb +10 -10
  18. data/lib/mailslurp_client/models/page_connector.rb +10 -10
  19. data/lib/mailslurp_client/models/page_connector_sync_events.rb +10 -10
  20. data/lib/mailslurp_client/models/page_contact_projection.rb +10 -10
  21. data/lib/mailslurp_client/models/page_delivery_status.rb +10 -10
  22. data/lib/mailslurp_client/models/page_email_preview.rb +10 -10
  23. data/lib/mailslurp_client/models/page_email_projection.rb +10 -10
  24. data/lib/mailslurp_client/models/page_email_validation_request.rb +10 -10
  25. data/lib/mailslurp_client/models/page_expired_inbox_record_projection.rb +10 -10
  26. data/lib/mailslurp_client/models/page_group_projection.rb +10 -10
  27. data/lib/mailslurp_client/models/page_inbox_forwarder_dto.rb +10 -10
  28. data/lib/mailslurp_client/models/page_inbox_forwarder_events.rb +10 -10
  29. data/lib/mailslurp_client/models/page_inbox_projection.rb +10 -10
  30. data/lib/mailslurp_client/models/page_inbox_replier_dto.rb +10 -10
  31. data/lib/mailslurp_client/models/page_inbox_replier_events.rb +10 -10
  32. data/lib/mailslurp_client/models/page_inbox_ruleset_dto.rb +10 -10
  33. data/lib/mailslurp_client/models/page_list_unsubscribe_recipients.rb +10 -10
  34. data/lib/mailslurp_client/models/page_missed_email_projection.rb +10 -10
  35. data/lib/mailslurp_client/models/page_organization_inbox_projection.rb +10 -10
  36. data/lib/mailslurp_client/models/page_phone_number_projection.rb +10 -10
  37. data/lib/mailslurp_client/models/page_scheduled_jobs.rb +10 -10
  38. data/lib/mailslurp_client/models/page_sent_email_projection.rb +10 -10
  39. data/lib/mailslurp_client/models/page_sent_email_with_queue_projection.rb +10 -10
  40. data/lib/mailslurp_client/models/page_sms_projection.rb +10 -10
  41. data/lib/mailslurp_client/models/page_template_projection.rb +10 -10
  42. data/lib/mailslurp_client/models/page_thread_projection.rb +10 -10
  43. data/lib/mailslurp_client/models/page_tracking_pixel_projection.rb +10 -10
  44. data/lib/mailslurp_client/models/page_unknown_missed_email_projection.rb +10 -10
  45. data/lib/mailslurp_client/models/page_webhook_projection.rb +10 -10
  46. data/lib/mailslurp_client/models/page_webhook_result.rb +10 -10
  47. data/lib/mailslurp_client/models/sent_email_projection.rb +15 -15
  48. data/lib/mailslurp_client/models/server_endpoints.rb +255 -0
  49. data/lib/mailslurp_client/models/thread_projection.rb +16 -16
  50. data/lib/mailslurp_client/models/tracking_pixel_projection.rb +13 -13
  51. data/lib/mailslurp_client/models/update_imap_access_options.rb +220 -0
  52. data/lib/mailslurp_client/models/update_smtp_access_options.rb +220 -0
  53. data/lib/mailslurp_client/version.rb +1 -1
  54. data/lib/mailslurp_client.rb +4 -0
  55. metadata +6 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4acb145f88af1078f8631a5eb9300cd6ff9ef841a1f9189cc31623310cb7319e
4
- data.tar.gz: 4ef3e3016135270de2c58390cd23b6d87478452f63a2288b026d940253d05817
3
+ metadata.gz: e7e0753dcb62ecb6c99bb3d4d8e54c67ba9abf92c8d0c8680e58555773497a2a
4
+ data.tar.gz: 130dbb95d9747f93e134dedfa3717591be43736fb9edf5d0c65bd3635f18e8f9
5
5
  SHA512:
6
- metadata.gz: b0cdd13689926f8394089b5abb4072cd37714926cca8f6138c17b4e3559d3d30bb7c9be253e59e2e653d656126f5d8e2305518d02fd51b90c7812af8d21a419b
7
- data.tar.gz: cc8293b566178ddd66b215cf373a3cbe3e801789d38db0f8f3daa10904e41a84ab8ad5c6f74041de34434033e1478db2aee7a81ff6cf4712f870189b2754ae84
6
+ metadata.gz: 41efd78e0df359fcde5b7f8b05ffe18af64517b8672844984874dbe57dccf340f64d135b4715fba15c1e0219d843d65001937a17ab7fbf595ed9d1f0cfad34da
7
+ data.tar.gz: 258e3834d273530775ba1ea5c2b63f7c25ed794a656e3a1fe112cfd08b50b3c330d47ca756bb55dbc08123d6374d397c58c9ef09aec737cb5008a32bdd7bc878
@@ -1131,6 +1131,7 @@ module MailSlurpClient
1131
1131
 
1132
1132
  # Get email count
1133
1133
  # @param [Hash] opts the optional parameters
1134
+ # @option opts [String] :inbox_id
1134
1135
  # @return [CountDto]
1135
1136
  def get_email_count(opts = {})
1136
1137
  data, _status_code, _headers = get_email_count_with_http_info(opts)
@@ -1139,6 +1140,7 @@ module MailSlurpClient
1139
1140
 
1140
1141
  # Get email count
1141
1142
  # @param [Hash] opts the optional parameters
1143
+ # @option opts [String] :inbox_id
1142
1144
  # @return [Array<(CountDto, Integer, Hash)>] CountDto data, response status code and response headers
1143
1145
  def get_email_count_with_http_info(opts = {})
1144
1146
  if @api_client.config.debugging
@@ -1149,6 +1151,7 @@ module MailSlurpClient
1149
1151
 
1150
1152
  # query parameters
1151
1153
  query_params = opts[:query_params] || {}
1154
+ query_params[:'inboxId'] = opts[:'inbox_id'] if !opts[:'inbox_id'].nil?
1152
1155
 
1153
1156
  # header parameters
1154
1157
  header_params = opts[:header_params] || {}
@@ -93,7 +93,7 @@ module MailSlurpClient
93
93
  # @option opts [DateTime] :expires_at Optional inbox expiration date. If null then this inbox is permanent and the emails in it won&#39;t be deleted. If an expiration date is provided or is required by your plan the inbox will be closed when the expiration time is reached. Expired inboxes still contain their emails but can no longer send or receive emails. An ExpiredInboxRecord is created when an inbox and the email address and inbox ID are recorded. The expiresAt property is a timestamp string in ISO DateTime Format yyyy-MM-dd&#39;T&#39;HH:mm:ss.SSSXXX.
94
94
  # @option opts [Integer] :expires_in Number of milliseconds that inbox should exist for
95
95
  # @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.
96
- # @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;.
96
+ # @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;mxslurp.click&#x60;.
97
97
  # @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.
98
98
  # @option opts [Boolean] :use_short_address Use a shorter email address under 31 characters
99
99
  # @option opts [String] :domain_id ID of custom domain to use for email address.
@@ -117,7 +117,7 @@ module MailSlurpClient
117
117
  # @option opts [DateTime] :expires_at Optional inbox expiration date. If null then this inbox is permanent and the emails in it won&#39;t be deleted. If an expiration date is provided or is required by your plan the inbox will be closed when the expiration time is reached. Expired inboxes still contain their emails but can no longer send or receive emails. An ExpiredInboxRecord is created when an inbox and the email address and inbox ID are recorded. The expiresAt property is a timestamp string in ISO DateTime Format yyyy-MM-dd&#39;T&#39;HH:mm:ss.SSSXXX.
118
118
  # @option opts [Integer] :expires_in Number of milliseconds that inbox should exist for
119
119
  # @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.
120
- # @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;.
120
+ # @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;mxslurp.click&#x60;.
121
121
  # @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.
122
122
  # @option opts [Boolean] :use_short_address Use a shorter email address under 31 characters
123
123
  # @option opts [String] :domain_id ID of custom domain to use for email address.
@@ -1490,6 +1490,60 @@ module MailSlurpClient
1490
1490
  return data, status_code, headers
1491
1491
  end
1492
1492
 
1493
+ # Get IMAP and SMTP server hosts
1494
+ # @param [Hash] opts the optional parameters
1495
+ # @return [ImapSmtpAccessServers]
1496
+ def get_imap_smtp_access_servers(opts = {})
1497
+ data, _status_code, _headers = get_imap_smtp_access_servers_with_http_info(opts)
1498
+ data
1499
+ end
1500
+
1501
+ # Get IMAP and SMTP server hosts
1502
+ # @param [Hash] opts the optional parameters
1503
+ # @return [Array<(ImapSmtpAccessServers, Integer, Hash)>] ImapSmtpAccessServers data, response status code and response headers
1504
+ def get_imap_smtp_access_servers_with_http_info(opts = {})
1505
+ if @api_client.config.debugging
1506
+ @api_client.config.logger.debug 'Calling API: InboxControllerApi.get_imap_smtp_access_servers ...'
1507
+ end
1508
+ # resource path
1509
+ local_var_path = '/inboxes/imap-smtp-access/servers'
1510
+
1511
+ # query parameters
1512
+ query_params = opts[:query_params] || {}
1513
+
1514
+ # header parameters
1515
+ header_params = opts[:header_params] || {}
1516
+ # HTTP header 'Accept' (if needed)
1517
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
1518
+
1519
+ # form parameters
1520
+ form_params = opts[:form_params] || {}
1521
+
1522
+ # http body (model)
1523
+ post_body = opts[:body]
1524
+
1525
+ # return_type
1526
+ return_type = opts[:return_type] || 'ImapSmtpAccessServers'
1527
+
1528
+ # auth_names
1529
+ auth_names = opts[:auth_names] || ['API_KEY']
1530
+
1531
+ new_options = opts.merge(
1532
+ :header_params => header_params,
1533
+ :query_params => query_params,
1534
+ :form_params => form_params,
1535
+ :body => post_body,
1536
+ :auth_names => auth_names,
1537
+ :return_type => return_type
1538
+ )
1539
+
1540
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1541
+ if @api_client.config.debugging
1542
+ @api_client.config.logger.debug "API called: InboxControllerApi#get_imap_smtp_access_servers\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1543
+ end
1544
+ return data, status_code, headers
1545
+ end
1546
+
1493
1547
  # Get Inbox. Returns properties of an inbox.
1494
1548
  # Returns an inbox's properties, including its email address and ID.
1495
1549
  # @param inbox_id [String]
@@ -3220,6 +3274,69 @@ module MailSlurpClient
3220
3274
  return data, status_code, headers
3221
3275
  end
3222
3276
 
3277
+ # Update IMAP access usernames and passwords
3278
+ # @param update_imap_access_options [UpdateImapAccessOptions]
3279
+ # @param [Hash] opts the optional parameters
3280
+ # @option opts [String] :inbox_id Inbox ID
3281
+ # @return [nil]
3282
+ def update_imap_access(update_imap_access_options, opts = {})
3283
+ update_imap_access_with_http_info(update_imap_access_options, opts)
3284
+ nil
3285
+ end
3286
+
3287
+ # Update IMAP access usernames and passwords
3288
+ # @param update_imap_access_options [UpdateImapAccessOptions]
3289
+ # @param [Hash] opts the optional parameters
3290
+ # @option opts [String] :inbox_id Inbox ID
3291
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
3292
+ def update_imap_access_with_http_info(update_imap_access_options, opts = {})
3293
+ if @api_client.config.debugging
3294
+ @api_client.config.logger.debug 'Calling API: InboxControllerApi.update_imap_access ...'
3295
+ end
3296
+ # verify the required parameter 'update_imap_access_options' is set
3297
+ if @api_client.config.client_side_validation && update_imap_access_options.nil?
3298
+ fail ArgumentError, "Missing the required parameter 'update_imap_access_options' when calling InboxControllerApi.update_imap_access"
3299
+ end
3300
+ # resource path
3301
+ local_var_path = '/inboxes/imap-access'
3302
+
3303
+ # query parameters
3304
+ query_params = opts[:query_params] || {}
3305
+ query_params[:'inboxId'] = opts[:'inbox_id'] if !opts[:'inbox_id'].nil?
3306
+
3307
+ # header parameters
3308
+ header_params = opts[:header_params] || {}
3309
+ # HTTP header 'Content-Type'
3310
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
3311
+
3312
+ # form parameters
3313
+ form_params = opts[:form_params] || {}
3314
+
3315
+ # http body (model)
3316
+ post_body = opts[:body] || @api_client.object_to_http_body(update_imap_access_options)
3317
+
3318
+ # return_type
3319
+ return_type = opts[:return_type]
3320
+
3321
+ # auth_names
3322
+ auth_names = opts[:auth_names] || ['API_KEY']
3323
+
3324
+ new_options = opts.merge(
3325
+ :header_params => header_params,
3326
+ :query_params => query_params,
3327
+ :form_params => form_params,
3328
+ :body => post_body,
3329
+ :auth_names => auth_names,
3330
+ :return_type => return_type
3331
+ )
3332
+
3333
+ data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
3334
+ if @api_client.config.debugging
3335
+ @api_client.config.logger.debug "API called: InboxControllerApi#update_imap_access\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3336
+ end
3337
+ return data, status_code, headers
3338
+ end
3339
+
3223
3340
  # Update Inbox. Change name and description. Email address is not editable.
3224
3341
  # Update editable fields on an inbox
3225
3342
  # @param inbox_id [String]
@@ -3289,5 +3406,68 @@ module MailSlurpClient
3289
3406
  end
3290
3407
  return data, status_code, headers
3291
3408
  end
3409
+
3410
+ # Update SMTP access usernames and passwords
3411
+ # @param update_smtp_access_options [UpdateSmtpAccessOptions]
3412
+ # @param [Hash] opts the optional parameters
3413
+ # @option opts [String] :inbox_id Inbox ID
3414
+ # @return [nil]
3415
+ def update_smtp_access(update_smtp_access_options, opts = {})
3416
+ update_smtp_access_with_http_info(update_smtp_access_options, opts)
3417
+ nil
3418
+ end
3419
+
3420
+ # Update SMTP access usernames and passwords
3421
+ # @param update_smtp_access_options [UpdateSmtpAccessOptions]
3422
+ # @param [Hash] opts the optional parameters
3423
+ # @option opts [String] :inbox_id Inbox ID
3424
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
3425
+ def update_smtp_access_with_http_info(update_smtp_access_options, opts = {})
3426
+ if @api_client.config.debugging
3427
+ @api_client.config.logger.debug 'Calling API: InboxControllerApi.update_smtp_access ...'
3428
+ end
3429
+ # verify the required parameter 'update_smtp_access_options' is set
3430
+ if @api_client.config.client_side_validation && update_smtp_access_options.nil?
3431
+ fail ArgumentError, "Missing the required parameter 'update_smtp_access_options' when calling InboxControllerApi.update_smtp_access"
3432
+ end
3433
+ # resource path
3434
+ local_var_path = '/inboxes/smtp-access'
3435
+
3436
+ # query parameters
3437
+ query_params = opts[:query_params] || {}
3438
+ query_params[:'inboxId'] = opts[:'inbox_id'] if !opts[:'inbox_id'].nil?
3439
+
3440
+ # header parameters
3441
+ header_params = opts[:header_params] || {}
3442
+ # HTTP header 'Content-Type'
3443
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
3444
+
3445
+ # form parameters
3446
+ form_params = opts[:form_params] || {}
3447
+
3448
+ # http body (model)
3449
+ post_body = opts[:body] || @api_client.object_to_http_body(update_smtp_access_options)
3450
+
3451
+ # return_type
3452
+ return_type = opts[:return_type]
3453
+
3454
+ # auth_names
3455
+ auth_names = opts[:auth_names] || ['API_KEY']
3456
+
3457
+ new_options = opts.merge(
3458
+ :header_params => header_params,
3459
+ :query_params => query_params,
3460
+ :form_params => form_params,
3461
+ :body => post_body,
3462
+ :auth_names => auth_names,
3463
+ :return_type => return_type
3464
+ )
3465
+
3466
+ data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
3467
+ if @api_client.config.debugging
3468
+ @api_client.config.logger.debug "API called: InboxControllerApi#update_smtp_access\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3469
+ end
3470
+ return data, status_code, headers
3471
+ end
3292
3472
  end
3293
3473
  end
@@ -17,10 +17,10 @@ module MailSlurpClient
17
17
  class AliasProjection
18
18
  attr_accessor :email_address
19
19
 
20
- attr_accessor :user_id
21
-
22
20
  attr_accessor :inbox_id
23
21
 
22
+ attr_accessor :user_id
23
+
24
24
  attr_accessor :use_threads
25
25
 
26
26
  attr_accessor :created_at
@@ -35,8 +35,8 @@ module MailSlurpClient
35
35
  def self.attribute_map
36
36
  {
37
37
  :'email_address' => :'emailAddress',
38
- :'user_id' => :'userId',
39
38
  :'inbox_id' => :'inboxId',
39
+ :'user_id' => :'userId',
40
40
  :'use_threads' => :'useThreads',
41
41
  :'created_at' => :'createdAt',
42
42
  :'updated_at' => :'updatedAt',
@@ -49,8 +49,8 @@ module MailSlurpClient
49
49
  def self.openapi_types
50
50
  {
51
51
  :'email_address' => :'String',
52
- :'user_id' => :'String',
53
52
  :'inbox_id' => :'String',
53
+ :'user_id' => :'String',
54
54
  :'use_threads' => :'Boolean',
55
55
  :'created_at' => :'DateTime',
56
56
  :'updated_at' => :'DateTime',
@@ -84,14 +84,14 @@ module MailSlurpClient
84
84
  self.email_address = attributes[:'email_address']
85
85
  end
86
86
 
87
- if attributes.key?(:'user_id')
88
- self.user_id = attributes[:'user_id']
89
- end
90
-
91
87
  if attributes.key?(:'inbox_id')
92
88
  self.inbox_id = attributes[:'inbox_id']
93
89
  end
94
90
 
91
+ if attributes.key?(:'user_id')
92
+ self.user_id = attributes[:'user_id']
93
+ end
94
+
95
95
  if attributes.key?(:'use_threads')
96
96
  self.use_threads = attributes[:'use_threads']
97
97
  end
@@ -121,14 +121,14 @@ module MailSlurpClient
121
121
  invalid_properties.push('invalid value for "email_address", email_address cannot be nil.')
122
122
  end
123
123
 
124
- if @user_id.nil?
125
- invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
126
- end
127
-
128
124
  if @inbox_id.nil?
129
125
  invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
130
126
  end
131
127
 
128
+ if @user_id.nil?
129
+ invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
130
+ end
131
+
132
132
  if @created_at.nil?
133
133
  invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
134
134
  end
@@ -148,8 +148,8 @@ module MailSlurpClient
148
148
  # @return true if the model is valid
149
149
  def valid?
150
150
  return false if @email_address.nil?
151
- return false if @user_id.nil?
152
151
  return false if @inbox_id.nil?
152
+ return false if @user_id.nil?
153
153
  return false if @created_at.nil?
154
154
  return false if @updated_at.nil?
155
155
  return false if @id.nil?
@@ -162,8 +162,8 @@ module MailSlurpClient
162
162
  return true if self.equal?(o)
163
163
  self.class == o.class &&
164
164
  email_address == o.email_address &&
165
- user_id == o.user_id &&
166
165
  inbox_id == o.inbox_id &&
166
+ user_id == o.user_id &&
167
167
  use_threads == o.use_threads &&
168
168
  created_at == o.created_at &&
169
169
  updated_at == o.updated_at &&
@@ -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
- [email_address, user_id, inbox_id, use_threads, created_at, updated_at, name, id].hash
183
+ [email_address, inbox_id, user_id, use_threads, created_at, updated_at, name, id].hash
184
184
  end
185
185
 
186
186
  # Builds the object from hash
@@ -19,10 +19,10 @@ module MailSlurpClient
19
19
 
20
20
  attr_accessor :email_address
21
21
 
22
- attr_accessor :user_id
23
-
24
22
  attr_accessor :inbox_id
25
23
 
24
+ attr_accessor :user_id
25
+
26
26
  attr_accessor :sync_enabled
27
27
 
28
28
  attr_accessor :sync_schedule_type
@@ -62,8 +62,8 @@ module MailSlurpClient
62
62
  {
63
63
  :'enabled' => :'enabled',
64
64
  :'email_address' => :'emailAddress',
65
- :'user_id' => :'userId',
66
65
  :'inbox_id' => :'inboxId',
66
+ :'user_id' => :'userId',
67
67
  :'sync_enabled' => :'syncEnabled',
68
68
  :'sync_schedule_type' => :'syncScheduleType',
69
69
  :'sync_interval' => :'syncInterval',
@@ -78,8 +78,8 @@ module MailSlurpClient
78
78
  {
79
79
  :'enabled' => :'Boolean',
80
80
  :'email_address' => :'String',
81
- :'user_id' => :'String',
82
81
  :'inbox_id' => :'String',
82
+ :'user_id' => :'String',
83
83
  :'sync_enabled' => :'Boolean',
84
84
  :'sync_schedule_type' => :'String',
85
85
  :'sync_interval' => :'Integer',
@@ -118,14 +118,14 @@ module MailSlurpClient
118
118
  self.email_address = attributes[:'email_address']
119
119
  end
120
120
 
121
- if attributes.key?(:'user_id')
122
- self.user_id = attributes[:'user_id']
123
- end
124
-
125
121
  if attributes.key?(:'inbox_id')
126
122
  self.inbox_id = attributes[:'inbox_id']
127
123
  end
128
124
 
125
+ if attributes.key?(:'user_id')
126
+ self.user_id = attributes[:'user_id']
127
+ end
128
+
129
129
  if attributes.key?(:'sync_enabled')
130
130
  self.sync_enabled = attributes[:'sync_enabled']
131
131
  end
@@ -155,14 +155,14 @@ module MailSlurpClient
155
155
  # @return Array for valid properties with the reasons
156
156
  def list_invalid_properties
157
157
  invalid_properties = Array.new
158
- if @user_id.nil?
159
- invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
160
- end
161
-
162
158
  if @inbox_id.nil?
163
159
  invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
164
160
  end
165
161
 
162
+ if @user_id.nil?
163
+ invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
164
+ end
165
+
166
166
  if @sync_schedule_type.nil?
167
167
  invalid_properties.push('invalid value for "sync_schedule_type", sync_schedule_type cannot be nil.')
168
168
  end
@@ -177,8 +177,8 @@ module MailSlurpClient
177
177
  # Check to see if the all the properties in the model are valid
178
178
  # @return true if the model is valid
179
179
  def valid?
180
- return false if @user_id.nil?
181
180
  return false if @inbox_id.nil?
181
+ return false if @user_id.nil?
182
182
  return false if @sync_schedule_type.nil?
183
183
  sync_schedule_type_validator = EnumAttributeValidator.new('String', ["INTERVAL"])
184
184
  return false unless sync_schedule_type_validator.valid?(@sync_schedule_type)
@@ -203,8 +203,8 @@ module MailSlurpClient
203
203
  self.class == o.class &&
204
204
  enabled == o.enabled &&
205
205
  email_address == o.email_address &&
206
- user_id == o.user_id &&
207
206
  inbox_id == o.inbox_id &&
207
+ user_id == o.user_id &&
208
208
  sync_enabled == o.sync_enabled &&
209
209
  sync_schedule_type == o.sync_schedule_type &&
210
210
  sync_interval == o.sync_interval &&
@@ -222,7 +222,7 @@ module MailSlurpClient
222
222
  # Calculates hash code according to all attributes.
223
223
  # @return [Integer] Hash code
224
224
  def hash
225
- [enabled, email_address, user_id, inbox_id, sync_enabled, sync_schedule_type, sync_interval, created_at, name, id].hash
225
+ [enabled, email_address, inbox_id, user_id, sync_enabled, sync_schedule_type, sync_interval, created_at, name, id].hash
226
226
  end
227
227
 
228
228
  # Builds the object from hash
@@ -13,7 +13,7 @@ OpenAPI Generator version: 4.3.1
13
13
  require 'date'
14
14
 
15
15
  module MailSlurpClient
16
- # Options for creating a domain to use with MailSlurp. You must have ownership access to this domain in order to verify it. Domains will not function correctly until the domain has been verified. See https://www.mailslurp.com/guides/custom-domains for help. Domains can be either `HTTP` or `SMTP` type. The type of domain determines which inboxes can be used with it. `SMTP` inboxes use a mail server running `mx.mailslurp.com` while `HTTP` inboxes are handled by AWS SES.
16
+ # Options for creating a domain to use with MailSlurp. You must have ownership access to this domain in order to verify it. Domains will not function correctly until the domain has been verified. See https://www.mailslurp.com/guides/custom-domains for help. Domains can be either `HTTP` or `SMTP` type. The type of domain determines which inboxes can be used with it. `SMTP` inboxes use a mail server running `mxslurp.click` while `HTTP` inboxes are handled by AWS SES.
17
17
  class CreateDomainOptions
18
18
  # The top level domain you wish to use with MailSlurp. Do not specify subdomain just the top level. So `test.com` covers all subdomains such as `mail.test.com`. Don't include a protocol such as `http://`. Once added you must complete the verification steps by adding the returned records to your domain.
19
19
  attr_accessor :domain
@@ -15,6 +15,18 @@ require 'date'
15
15
  module MailSlurpClient
16
16
  # Access details for inbox using IMAP
17
17
  class ImapAccessDetails
18
+ # Secure TLS IMAP server host domain
19
+ attr_accessor :secure_imap_server_host
20
+
21
+ # Secure TLS IMAP server host port
22
+ attr_accessor :secure_imap_server_port
23
+
24
+ # Secure TLS IMAP username for login
25
+ attr_accessor :secure_imap_username
26
+
27
+ # Secure TLS IMAP password for login
28
+ attr_accessor :secure_imap_password
29
+
18
30
  # IMAP server host domain
19
31
  attr_accessor :imap_server_host
20
32
 
@@ -33,6 +45,10 @@ module MailSlurpClient
33
45
  # Attribute mapping from ruby-style variable name to JSON key.
34
46
  def self.attribute_map
35
47
  {
48
+ :'secure_imap_server_host' => :'secureImapServerHost',
49
+ :'secure_imap_server_port' => :'secureImapServerPort',
50
+ :'secure_imap_username' => :'secureImapUsername',
51
+ :'secure_imap_password' => :'secureImapPassword',
36
52
  :'imap_server_host' => :'imapServerHost',
37
53
  :'imap_server_port' => :'imapServerPort',
38
54
  :'imap_username' => :'imapUsername',
@@ -44,6 +60,10 @@ module MailSlurpClient
44
60
  # Attribute type mapping.
45
61
  def self.openapi_types
46
62
  {
63
+ :'secure_imap_server_host' => :'String',
64
+ :'secure_imap_server_port' => :'Integer',
65
+ :'secure_imap_username' => :'String',
66
+ :'secure_imap_password' => :'String',
47
67
  :'imap_server_host' => :'String',
48
68
  :'imap_server_port' => :'Integer',
49
69
  :'imap_username' => :'String',
@@ -73,6 +93,22 @@ module MailSlurpClient
73
93
  h[k.to_sym] = v
74
94
  }
75
95
 
96
+ if attributes.key?(:'secure_imap_server_host')
97
+ self.secure_imap_server_host = attributes[:'secure_imap_server_host']
98
+ end
99
+
100
+ if attributes.key?(:'secure_imap_server_port')
101
+ self.secure_imap_server_port = attributes[:'secure_imap_server_port']
102
+ end
103
+
104
+ if attributes.key?(:'secure_imap_username')
105
+ self.secure_imap_username = attributes[:'secure_imap_username']
106
+ end
107
+
108
+ if attributes.key?(:'secure_imap_password')
109
+ self.secure_imap_password = attributes[:'secure_imap_password']
110
+ end
111
+
76
112
  if attributes.key?(:'imap_server_host')
77
113
  self.imap_server_host = attributes[:'imap_server_host']
78
114
  end
@@ -98,6 +134,22 @@ module MailSlurpClient
98
134
  # @return Array for valid properties with the reasons
99
135
  def list_invalid_properties
100
136
  invalid_properties = Array.new
137
+ if @secure_imap_server_host.nil?
138
+ invalid_properties.push('invalid value for "secure_imap_server_host", secure_imap_server_host cannot be nil.')
139
+ end
140
+
141
+ if @secure_imap_server_port.nil?
142
+ invalid_properties.push('invalid value for "secure_imap_server_port", secure_imap_server_port cannot be nil.')
143
+ end
144
+
145
+ if @secure_imap_username.nil?
146
+ invalid_properties.push('invalid value for "secure_imap_username", secure_imap_username cannot be nil.')
147
+ end
148
+
149
+ if @secure_imap_password.nil?
150
+ invalid_properties.push('invalid value for "secure_imap_password", secure_imap_password cannot be nil.')
151
+ end
152
+
101
153
  if @imap_server_host.nil?
102
154
  invalid_properties.push('invalid value for "imap_server_host", imap_server_host cannot be nil.')
103
155
  end
@@ -124,6 +176,10 @@ module MailSlurpClient
124
176
  # Check to see if the all the properties in the model are valid
125
177
  # @return true if the model is valid
126
178
  def valid?
179
+ return false if @secure_imap_server_host.nil?
180
+ return false if @secure_imap_server_port.nil?
181
+ return false if @secure_imap_username.nil?
182
+ return false if @secure_imap_password.nil?
127
183
  return false if @imap_server_host.nil?
128
184
  return false if @imap_server_port.nil?
129
185
  return false if @imap_username.nil?
@@ -137,6 +193,10 @@ module MailSlurpClient
137
193
  def ==(o)
138
194
  return true if self.equal?(o)
139
195
  self.class == o.class &&
196
+ secure_imap_server_host == o.secure_imap_server_host &&
197
+ secure_imap_server_port == o.secure_imap_server_port &&
198
+ secure_imap_username == o.secure_imap_username &&
199
+ secure_imap_password == o.secure_imap_password &&
140
200
  imap_server_host == o.imap_server_host &&
141
201
  imap_server_port == o.imap_server_port &&
142
202
  imap_username == o.imap_username &&
@@ -153,7 +213,7 @@ module MailSlurpClient
153
213
  # Calculates hash code according to all attributes.
154
214
  # @return [Integer] Hash code
155
215
  def hash
156
- [imap_server_host, imap_server_port, imap_username, imap_password, imap_mailbox].hash
216
+ [secure_imap_server_host, secure_imap_server_port, secure_imap_username, secure_imap_password, imap_server_host, imap_server_port, imap_username, imap_password, imap_mailbox].hash
157
217
  end
158
218
 
159
219
  # Builds the object from hash