mailslurp_client 15.7.14 → 15.7.17

Sign up to get free protection for your applications and to get access to all the features.
Files changed (99) 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 +27 -27
  7. data/lib/mailslurp_client/models/attachment_entity.rb +1 -0
  8. data/lib/mailslurp_client/models/attachment_projection.rb +35 -34
  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 +15 -15
  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/page_alias.rb +19 -19
  52. data/lib/mailslurp_client/models/page_attachment_entity.rb +19 -19
  53. data/lib/mailslurp_client/models/page_bounced_email.rb +19 -19
  54. data/lib/mailslurp_client/models/page_bounced_recipients.rb +19 -19
  55. data/lib/mailslurp_client/models/page_contact_projection.rb +19 -19
  56. data/lib/mailslurp_client/models/page_email_preview.rb +19 -19
  57. data/lib/mailslurp_client/models/page_email_projection.rb +19 -19
  58. data/lib/mailslurp_client/models/page_email_validation_request.rb +19 -19
  59. data/lib/mailslurp_client/models/page_expired_inbox_record_projection.rb +19 -19
  60. data/lib/mailslurp_client/models/page_group_projection.rb +19 -19
  61. data/lib/mailslurp_client/models/page_inbox_forwarder_dto.rb +19 -19
  62. data/lib/mailslurp_client/models/page_inbox_projection.rb +19 -19
  63. data/lib/mailslurp_client/models/page_inbox_ruleset_dto.rb +19 -19
  64. data/lib/mailslurp_client/models/page_missed_email_projection.rb +19 -19
  65. data/lib/mailslurp_client/models/page_organization_inbox_projection.rb +19 -19
  66. data/lib/mailslurp_client/models/page_template_projection.rb +19 -19
  67. data/lib/mailslurp_client/models/page_thread_projection.rb +19 -19
  68. data/lib/mailslurp_client/models/page_tracking_pixel_projection.rb +19 -19
  69. data/lib/mailslurp_client/models/page_unknown_missed_email_projection.rb +19 -19
  70. data/lib/mailslurp_client/models/page_webhook_projection.rb +19 -19
  71. data/lib/mailslurp_client/models/page_webhook_result.rb +19 -19
  72. data/lib/mailslurp_client/models/recipient.rb +1 -0
  73. data/lib/mailslurp_client/models/reply_to_alias_email_options.rb +13 -4
  74. data/lib/mailslurp_client/models/reply_to_email_options.rb +13 -4
  75. data/lib/mailslurp_client/models/sent_email_dto.rb +22 -4
  76. data/lib/mailslurp_client/models/sent_email_projection.rb +27 -18
  77. data/lib/mailslurp_client/models/simple_send_email_options.rb +1 -0
  78. data/lib/mailslurp_client/models/template_dto.rb +1 -0
  79. data/lib/mailslurp_client/models/template_projection.rb +19 -18
  80. data/lib/mailslurp_client/models/template_variable.rb +1 -0
  81. data/lib/mailslurp_client/models/test_new_inbox_forwarder_options.rb +1 -0
  82. data/lib/mailslurp_client/models/test_new_inbox_ruleset_options.rb +1 -0
  83. data/lib/mailslurp_client/models/thread_projection.rb +21 -21
  84. data/lib/mailslurp_client/models/tracking_pixel_dto.rb +1 -0
  85. data/lib/mailslurp_client/models/tracking_pixel_projection.rb +25 -24
  86. data/lib/mailslurp_client/models/unknown_missed_email_projection.rb +14 -13
  87. data/lib/mailslurp_client/models/unread_count.rb +1 -0
  88. data/lib/mailslurp_client/models/unseen_error_count_dto.rb +1 -0
  89. data/lib/mailslurp_client/models/update_group_contacts.rb +1 -0
  90. data/lib/mailslurp_client/models/validate_email_address_list_options.rb +1 -0
  91. data/lib/mailslurp_client/models/validate_email_address_list_result.rb +1 -0
  92. data/lib/mailslurp_client/models/webhook_projection.rb +18 -18
  93. data/lib/mailslurp_client/models/webhook_redrive_result.rb +1 -0
  94. data/lib/mailslurp_client/models/webhook_result_dto.rb +1 -0
  95. data/lib/mailslurp_client/models/webhook_test_request.rb +1 -0
  96. data/lib/mailslurp_client/models/webhook_test_response.rb +1 -0
  97. data/lib/mailslurp_client/version.rb +1 -1
  98. data/lib/mailslurp_client.rb +1 -0
  99. metadata +3 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7c182b68b3bba23c4483eeb6b44a0c34e86a19d3666473bcf39ac792f16c84a8
4
- data.tar.gz: dc45e76d757c20e7ff35adea98d7bc3b52364e2216c6d8790b97a771be726f1e
3
+ metadata.gz: a535b061f207d73a7900a31e1d48e547e0d911023fd588c833a2f18ae5a8400e
4
+ data.tar.gz: 35873ce71eba9f91a76b2a4666d7380c37dc97cfac6c9800f8dd6130756b824a
5
5
  SHA512:
6
- metadata.gz: cc0919967bfe3e9b7a9e3f575847cae0d986698b280e1465aa251a57e016c4dcba6002dfb137a8aa23dadce057f266f8afd00bc236401485b081fb0722740b80
7
- data.tar.gz: 59ff97db6977d9aa096e2a215ce0590bf0e918f415638df1cd321fdea6f7de46488bed2f237f56c91a6baf0f88093e8140840170b7eed9ee85498aecce986a68
6
+ metadata.gz: a4aee9eea79d3e53881c3910084d0f4f5ef756f7b878f27393e3c4116216b9db6090053f1396cd79b1c24157bab6618cdba3a0669d05af88917a5853ec7974ad
7
+ data.tar.gz: 62b2aa11fc2d07ed90ff84a7b644a4e486659ac83f19111dddc18ac7c11c83bf4014174f5730ae7fb42e438ffbd30753f3676b40be999d0e32d38db9e8b36650
@@ -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,29 +19,29 @@ 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 :updated_at
29
-
30
- attr_accessor :created_at
31
-
32
30
  attr_accessor :use_threads
33
31
 
32
+ attr_accessor :updated_at
33
+
34
34
  # Attribute mapping from ruby-style variable name to JSON key.
35
35
  def self.attribute_map
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
- :'updated_at' => :'updatedAt',
43
- :'created_at' => :'createdAt',
44
- :'use_threads' => :'useThreads'
43
+ :'use_threads' => :'useThreads',
44
+ :'updated_at' => :'updatedAt'
45
45
  }
46
46
  end
47
47
 
@@ -50,12 +50,12 @@ 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
- :'updated_at' => :'DateTime',
57
- :'created_at' => :'DateTime',
58
- :'use_threads' => :'Boolean'
57
+ :'use_threads' => :'Boolean',
58
+ :'updated_at' => :'DateTime'
59
59
  }
60
60
  end
61
61
 
@@ -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,17 +104,13 @@ module MailSlurpClient
100
104
  self.inbox_id = attributes[:'inbox_id']
101
105
  end
102
106
 
103
- if attributes.key?(:'updated_at')
104
- self.updated_at = attributes[:'updated_at']
105
- end
106
-
107
- if attributes.key?(:'created_at')
108
- self.created_at = attributes[:'created_at']
109
- end
110
-
111
107
  if attributes.key?(:'use_threads')
112
108
  self.use_threads = attributes[:'use_threads']
113
109
  end
110
+
111
+ if attributes.key?(:'updated_at')
112
+ self.updated_at = attributes[:'updated_at']
113
+ end
114
114
  end
115
115
 
116
116
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -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
@@ -137,10 +141,6 @@ module MailSlurpClient
137
141
  invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
138
142
  end
139
143
 
140
- if @created_at.nil?
141
- invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
142
- end
143
-
144
144
  invalid_properties
145
145
  end
146
146
 
@@ -148,11 +148,11 @@ 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
155
  return false if @updated_at.nil?
155
- return false if @created_at.nil?
156
156
  true
157
157
  end
158
158
 
@@ -163,12 +163,12 @@ 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
- updated_at == o.updated_at &&
170
- created_at == o.created_at &&
171
- use_threads == o.use_threads
170
+ use_threads == o.use_threads &&
171
+ updated_at == o.updated_at
172
172
  end
173
173
 
174
174
  # @see the `==` method
@@ -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, updated_at, created_at, use_threads].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,34 +13,35 @@ 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
 
19
20
  # Content length of attachment in bytes
20
21
  attr_accessor :content_length
21
22
 
22
- attr_accessor :user_id
23
+ # Content type of attachment.
24
+ attr_accessor :content_type
23
25
 
24
- attr_accessor :updated_at
26
+ attr_accessor :created_at
27
+
28
+ attr_accessor :user_id
25
29
 
26
30
  # Attachment ID
27
31
  attr_accessor :attachment_id
28
32
 
29
- attr_accessor :created_at
30
-
31
- # Content type of attachment.
32
- attr_accessor :content_type
33
+ attr_accessor :updated_at
33
34
 
34
35
  # Attribute mapping from ruby-style variable name to JSON key.
35
36
  def self.attribute_map
36
37
  {
37
38
  :'name' => :'name',
38
39
  :'content_length' => :'contentLength',
40
+ :'content_type' => :'contentType',
41
+ :'created_at' => :'createdAt',
39
42
  :'user_id' => :'userId',
40
- :'updated_at' => :'updatedAt',
41
43
  :'attachment_id' => :'attachmentId',
42
- :'created_at' => :'createdAt',
43
- :'content_type' => :'contentType'
44
+ :'updated_at' => :'updatedAt'
44
45
  }
45
46
  end
46
47
 
@@ -49,11 +50,11 @@ module MailSlurpClient
49
50
  {
50
51
  :'name' => :'String',
51
52
  :'content_length' => :'Integer',
53
+ :'content_type' => :'String',
54
+ :'created_at' => :'DateTime',
52
55
  :'user_id' => :'String',
53
- :'updated_at' => :'DateTime',
54
56
  :'attachment_id' => :'String',
55
- :'created_at' => :'DateTime',
56
- :'content_type' => :'String'
57
+ :'updated_at' => :'DateTime'
57
58
  }
58
59
  end
59
60
 
@@ -86,24 +87,24 @@ module MailSlurpClient
86
87
  self.content_length = attributes[:'content_length']
87
88
  end
88
89
 
89
- if attributes.key?(:'user_id')
90
- self.user_id = attributes[:'user_id']
90
+ if attributes.key?(:'content_type')
91
+ self.content_type = attributes[:'content_type']
91
92
  end
92
93
 
93
- if attributes.key?(:'updated_at')
94
- self.updated_at = attributes[:'updated_at']
94
+ if attributes.key?(:'created_at')
95
+ self.created_at = attributes[:'created_at']
95
96
  end
96
97
 
97
- if attributes.key?(:'attachment_id')
98
- self.attachment_id = attributes[:'attachment_id']
98
+ if attributes.key?(:'user_id')
99
+ self.user_id = attributes[:'user_id']
99
100
  end
100
101
 
101
- if attributes.key?(:'created_at')
102
- self.created_at = attributes[:'created_at']
102
+ if attributes.key?(:'attachment_id')
103
+ self.attachment_id = attributes[:'attachment_id']
103
104
  end
104
105
 
105
- if attributes.key?(:'content_type')
106
- self.content_type = attributes[:'content_type']
106
+ if attributes.key?(:'updated_at')
107
+ self.updated_at = attributes[:'updated_at']
107
108
  end
108
109
  end
109
110
 
@@ -111,20 +112,20 @@ module MailSlurpClient
111
112
  # @return Array for valid properties with the reasons
112
113
  def list_invalid_properties
113
114
  invalid_properties = Array.new
114
- if @user_id.nil?
115
- invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
115
+ if @created_at.nil?
116
+ invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
116
117
  end
117
118
 
118
- if @updated_at.nil?
119
- invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
119
+ if @user_id.nil?
120
+ invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
120
121
  end
121
122
 
122
123
  if @attachment_id.nil?
123
124
  invalid_properties.push('invalid value for "attachment_id", attachment_id cannot be nil.')
124
125
  end
125
126
 
126
- if @created_at.nil?
127
- invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
127
+ if @updated_at.nil?
128
+ invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
128
129
  end
129
130
 
130
131
  invalid_properties
@@ -133,10 +134,10 @@ 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
- return false if @updated_at.nil?
138
139
  return false if @attachment_id.nil?
139
- return false if @created_at.nil?
140
+ return false if @updated_at.nil?
140
141
  true
141
142
  end
142
143
 
@@ -147,11 +148,11 @@ module MailSlurpClient
147
148
  self.class == o.class &&
148
149
  name == o.name &&
149
150
  content_length == o.content_length &&
151
+ content_type == o.content_type &&
152
+ created_at == o.created_at &&
150
153
  user_id == o.user_id &&
151
- updated_at == o.updated_at &&
152
154
  attachment_id == o.attachment_id &&
153
- created_at == o.created_at &&
154
- content_type == o.content_type
155
+ updated_at == o.updated_at
155
156
  end
156
157
 
157
158
  # @see the `==` method
@@ -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, user_id, updated_at, attachment_id, created_at, content_type].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