mailslurp_client 11.8.11 → 11.9.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6867c00e2f8dad1441bea7df5b91bf82411c42690c5dc9634c45fade5b7c63d2
4
- data.tar.gz: 9b3421995e3525fb513a08251b76b570d43881b395598ccc81d3c5632f53b059
3
+ metadata.gz: 297d85713ff3b1fdeb33ce6728cffea626b36403700dc880d3ae1716449a825d
4
+ data.tar.gz: 2f4cec607f824edada339c37c2f47a45cc23316912745eeced2eb5d758384f0e
5
5
  SHA512:
6
- metadata.gz: 693859869f69748f75192d1aa90dc6af9ecb1cb6028258d51c4ac502057a8fc15dcddb8035f8aef493b743d15cc0948fb49260ecb5a15869f650b69548f1ca7c
7
- data.tar.gz: ac9e5bc9858733932da00dac7172893d49d8b9884c5d2522834fccec81a0ce5f99f3184308c56775f31df2dfd243a95afbc4fbda2ed1f8cb513a6884a2fb01d9
6
+ metadata.gz: f1748155562fbf377d704ca6841d830b11d00b64f61e7e2783f98e06072316d2e3948e0e919b14786c7b20a1334fd3f632735db17c5fcd351c2b03d67c7d701f
7
+ data.tar.gz: 11c8d5a255e8b77c3dc4eea6739a2ee4e1455ee8a54616afc439cdfb5b9b4cea796c83db7f58def988d0632342c9038af26aa75a82130762434d1c60e2a7f6ba
@@ -19,6 +19,192 @@ module MailSlurpClient
19
19
  def initialize(api_client = ApiClient.default)
20
20
  @api_client = api_client
21
21
  end
22
+ # Get email attachment as base64 encoded string as alternative to binary responses. To read the content decode the Base64 encoded contents.
23
+ # Returns the specified attachment for a given email as a base 64 encoded string. The response type is application/json. This method is similar to the `downloadAttachment` method but allows some clients to get around issues with binary responses.
24
+ # @param attachment_id [String] ID of attachment
25
+ # @param [Hash] opts the optional parameters
26
+ # @return [DownloadAttachmentDto]
27
+ def download_attachment_as_base64_encoded(attachment_id, opts = {})
28
+ data, _status_code, _headers = download_attachment_as_base64_encoded_with_http_info(attachment_id, opts)
29
+ data
30
+ end
31
+
32
+ # Get email attachment as base64 encoded string as alternative to binary responses. To read the content decode the Base64 encoded contents.
33
+ # Returns the specified attachment for a given email as a base 64 encoded string. The response type is application/json. This method is similar to the `downloadAttachment` method but allows some clients to get around issues with binary responses.
34
+ # @param attachment_id [String] ID of attachment
35
+ # @param [Hash] opts the optional parameters
36
+ # @return [Array<(DownloadAttachmentDto, Integer, Hash)>] DownloadAttachmentDto data, response status code and response headers
37
+ def download_attachment_as_base64_encoded_with_http_info(attachment_id, opts = {})
38
+ if @api_client.config.debugging
39
+ @api_client.config.logger.debug 'Calling API: AttachmentControllerApi.download_attachment_as_base64_encoded ...'
40
+ end
41
+ # verify the required parameter 'attachment_id' is set
42
+ if @api_client.config.client_side_validation && attachment_id.nil?
43
+ fail ArgumentError, "Missing the required parameter 'attachment_id' when calling AttachmentControllerApi.download_attachment_as_base64_encoded"
44
+ end
45
+ # resource path
46
+ local_var_path = '/attachments/{attachmentId}/base64'.sub('{' + 'attachmentId' + '}', CGI.escape(attachment_id.to_s))
47
+
48
+ # query parameters
49
+ query_params = opts[:query_params] || {}
50
+
51
+ # header parameters
52
+ header_params = opts[:header_params] || {}
53
+ # HTTP header 'Accept' (if needed)
54
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
55
+
56
+ # form parameters
57
+ form_params = opts[:form_params] || {}
58
+
59
+ # http body (model)
60
+ post_body = opts[:body]
61
+
62
+ # return_type
63
+ return_type = opts[:return_type] || 'DownloadAttachmentDto'
64
+
65
+ # auth_names
66
+ auth_names = opts[:auth_names] || ['API_KEY']
67
+
68
+ new_options = opts.merge(
69
+ :header_params => header_params,
70
+ :query_params => query_params,
71
+ :form_params => form_params,
72
+ :body => post_body,
73
+ :auth_names => auth_names,
74
+ :return_type => return_type
75
+ )
76
+
77
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
78
+ if @api_client.config.debugging
79
+ @api_client.config.logger.debug "API called: AttachmentControllerApi#download_attachment_as_base64_encoded\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
80
+ end
81
+ return data, status_code, headers
82
+ end
83
+
84
+ # Download attachments. Get email attachment bytes. If you have trouble with byte responses try the `downloadAttachmentBase64` response endpoints.
85
+ # Returns the specified attachment for a given email as a stream / array of bytes. You can find attachment ids in email responses endpoint responses. The response type is application/octet-stream.
86
+ # @param attachment_id [String] ID of attachment
87
+ # @param [Hash] opts the optional parameters
88
+ # @return [String]
89
+ def download_attachment_as_bytes(attachment_id, opts = {})
90
+ data, _status_code, _headers = download_attachment_as_bytes_with_http_info(attachment_id, opts)
91
+ data
92
+ end
93
+
94
+ # Download attachments. Get email attachment bytes. If you have trouble with byte responses try the &#x60;downloadAttachmentBase64&#x60; response endpoints.
95
+ # Returns the specified attachment for a given email as a stream / array of bytes. You can find attachment ids in email responses endpoint responses. The response type is application/octet-stream.
96
+ # @param attachment_id [String] ID of attachment
97
+ # @param [Hash] opts the optional parameters
98
+ # @return [Array<(String, Integer, Hash)>] String data, response status code and response headers
99
+ def download_attachment_as_bytes_with_http_info(attachment_id, opts = {})
100
+ if @api_client.config.debugging
101
+ @api_client.config.logger.debug 'Calling API: AttachmentControllerApi.download_attachment_as_bytes ...'
102
+ end
103
+ # verify the required parameter 'attachment_id' is set
104
+ if @api_client.config.client_side_validation && attachment_id.nil?
105
+ fail ArgumentError, "Missing the required parameter 'attachment_id' when calling AttachmentControllerApi.download_attachment_as_bytes"
106
+ end
107
+ # resource path
108
+ local_var_path = '/attachments/{attachmentId}/bytes'.sub('{' + 'attachmentId' + '}', CGI.escape(attachment_id.to_s))
109
+
110
+ # query parameters
111
+ query_params = opts[:query_params] || {}
112
+
113
+ # header parameters
114
+ header_params = opts[:header_params] || {}
115
+ # HTTP header 'Accept' (if needed)
116
+ header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
117
+
118
+ # form parameters
119
+ form_params = opts[:form_params] || {}
120
+
121
+ # http body (model)
122
+ post_body = opts[:body]
123
+
124
+ # return_type
125
+ return_type = opts[:return_type] || 'String'
126
+
127
+ # auth_names
128
+ auth_names = opts[:auth_names] || ['API_KEY']
129
+
130
+ new_options = opts.merge(
131
+ :header_params => header_params,
132
+ :query_params => query_params,
133
+ :form_params => form_params,
134
+ :body => post_body,
135
+ :auth_names => auth_names,
136
+ :return_type => return_type
137
+ )
138
+
139
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
140
+ if @api_client.config.debugging
141
+ @api_client.config.logger.debug "API called: AttachmentControllerApi#download_attachment_as_bytes\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
142
+ end
143
+ return data, status_code, headers
144
+ end
145
+
146
+ # Get email attachment metadata information
147
+ # Returns the metadata for an attachment. It is saved separately to the content of the attachment. Contains properties `name` and `content-type` and `content-length` in bytes for a given attachment.
148
+ # @param attachment_id [String] ID of attachment
149
+ # @param [Hash] opts the optional parameters
150
+ # @return [AttachmentMetaData]
151
+ def get_attachment_info(attachment_id, opts = {})
152
+ data, _status_code, _headers = get_attachment_info_with_http_info(attachment_id, opts)
153
+ data
154
+ end
155
+
156
+ # Get email attachment metadata information
157
+ # Returns the metadata for an attachment. It is saved separately to the content of the attachment. Contains properties &#x60;name&#x60; and &#x60;content-type&#x60; and &#x60;content-length&#x60; in bytes for a given attachment.
158
+ # @param attachment_id [String] ID of attachment
159
+ # @param [Hash] opts the optional parameters
160
+ # @return [Array<(AttachmentMetaData, Integer, Hash)>] AttachmentMetaData data, response status code and response headers
161
+ def get_attachment_info_with_http_info(attachment_id, opts = {})
162
+ if @api_client.config.debugging
163
+ @api_client.config.logger.debug 'Calling API: AttachmentControllerApi.get_attachment_info ...'
164
+ end
165
+ # verify the required parameter 'attachment_id' is set
166
+ if @api_client.config.client_side_validation && attachment_id.nil?
167
+ fail ArgumentError, "Missing the required parameter 'attachment_id' when calling AttachmentControllerApi.get_attachment_info"
168
+ end
169
+ # resource path
170
+ local_var_path = '/attachments/{attachmentId}/metadata'.sub('{' + 'attachmentId' + '}', CGI.escape(attachment_id.to_s))
171
+
172
+ # query parameters
173
+ query_params = opts[:query_params] || {}
174
+
175
+ # header parameters
176
+ header_params = opts[:header_params] || {}
177
+ # HTTP header 'Accept' (if needed)
178
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
179
+
180
+ # form parameters
181
+ form_params = opts[:form_params] || {}
182
+
183
+ # http body (model)
184
+ post_body = opts[:body]
185
+
186
+ # return_type
187
+ return_type = opts[:return_type] || 'AttachmentMetaData'
188
+
189
+ # auth_names
190
+ auth_names = opts[:auth_names] || ['API_KEY']
191
+
192
+ new_options = opts.merge(
193
+ :header_params => header_params,
194
+ :query_params => query_params,
195
+ :form_params => form_params,
196
+ :body => post_body,
197
+ :auth_names => auth_names,
198
+ :return_type => return_type
199
+ )
200
+
201
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
202
+ if @api_client.config.debugging
203
+ @api_client.config.logger.debug "API called: AttachmentControllerApi#get_attachment_info\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
204
+ end
205
+ return data, status_code, headers
206
+ end
207
+
22
208
  # Upload an attachment for sending using base64 file encoding. Returns an array whose first element is the ID of the uploaded attachment.
23
209
  # Email attachments are essentially files with meta data. Files are byte arrays and the meta data is a content type and a filename. These properties allow email clients to display the filename and icon etc. When sending emails with attachments first upload each attachment with an upload endpoint. Record the returned attachment ID and use it with subsequent email sending. For legacy reasons the ID is returned as the first element in an array. Only a single ID is ever returned. To send the attachments pass a list of attachment IDs with `SendEmailOptions` when sending an email. Using the upload endpoints prior to sending mean attachments can easily be reused.
24
210
  # @param upload_options [UploadAttachmentOptions] uploadOptions
@@ -19,7 +19,7 @@ module MailSlurpClient
19
19
  def initialize(api_client = ApiClient.default)
20
20
  @api_client = api_client
21
21
  end
22
- # Delete all emails
22
+ # Delete all emails in all inboxes.
23
23
  # Deletes all emails in your account. Be careful as emails cannot be recovered
24
24
  # @param [Hash] opts the optional parameters
25
25
  # @return [nil]
@@ -28,7 +28,7 @@ module MailSlurpClient
28
28
  nil
29
29
  end
30
30
 
31
- # Delete all emails
31
+ # Delete all emails in all inboxes.
32
32
  # Deletes all emails in your account. Be careful as emails cannot be recovered
33
33
  # @param [Hash] opts the optional parameters
34
34
  # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
@@ -133,7 +133,7 @@ module MailSlurpClient
133
133
  return data, status_code, headers
134
134
  end
135
135
 
136
- # Get email attachment bytes. If you have trouble with byte responses try the `downloadAttachmentBase64` response endpoints.
136
+ # Get email attachment bytes. Returned as `octet-stream` with content type header. If you have trouble with byte responses try the `downloadAttachmentBase64` response endpoints and convert the base 64 encoded content to a file or string.
137
137
  # Returns the specified attachment for a given email as a stream / array of bytes. You can find attachment ids in email responses endpoint responses. The response type is application/octet-stream.
138
138
  # @param attachment_id [String] ID of attachment
139
139
  # @param email_id [String] ID of email
@@ -145,7 +145,7 @@ module MailSlurpClient
145
145
  data
146
146
  end
147
147
 
148
- # Get email attachment bytes. If you have trouble with byte responses try the &#x60;downloadAttachmentBase64&#x60; response endpoints.
148
+ # Get email attachment bytes. Returned as &#x60;octet-stream&#x60; with content type header. If you have trouble with byte responses try the &#x60;downloadAttachmentBase64&#x60; response endpoints and convert the base 64 encoded content to a file or string.
149
149
  # Returns the specified attachment for a given email as a stream / array of bytes. You can find attachment ids in email responses endpoint responses. The response type is application/octet-stream.
150
150
  # @param attachment_id [String] ID of attachment
151
151
  # @param email_id [String] ID of email
@@ -204,7 +204,7 @@ module MailSlurpClient
204
204
  return data, status_code, headers
205
205
  end
206
206
 
207
- # Get email attachment as base64 encoded string (alternative to binary responses)
207
+ # Get email attachment as base64 encoded string alternative to binary responses. Decode the `base64FileContents` as a `utf-8` encoded string or array of bytes depending on the `contentType`.
208
208
  # Returns the specified attachment for a given email as a base 64 encoded string. The response type is application/json. This method is similar to the `downloadAttachment` method but allows some clients to get around issues with binary responses.
209
209
  # @param attachment_id [String] ID of attachment
210
210
  # @param email_id [String] ID of email
@@ -215,7 +215,7 @@ module MailSlurpClient
215
215
  data
216
216
  end
217
217
 
218
- # Get email attachment as base64 encoded string (alternative to binary responses)
218
+ # Get email attachment as base64 encoded string alternative to binary responses. Decode the &#x60;base64FileContents&#x60; as a &#x60;utf-8&#x60; encoded string or array of bytes depending on the &#x60;contentType&#x60;.
219
219
  # Returns the specified attachment for a given email as a base 64 encoded string. The response type is application/json. This method is similar to the &#x60;downloadAttachment&#x60; method but allows some clients to get around issues with binary responses.
220
220
  # @param attachment_id [String] ID of attachment
221
221
  # @param email_id [String] ID of email
@@ -272,7 +272,7 @@ module MailSlurpClient
272
272
  return data, status_code, headers
273
273
  end
274
274
 
275
- # Forward email
275
+ # Forward email to recipients
276
276
  # Forward an existing email to new recipients.
277
277
  # @param email_id [String] ID of email
278
278
  # @param forward_email_options [ForwardEmailOptions] forwardEmailOptions
@@ -283,7 +283,7 @@ module MailSlurpClient
283
283
  nil
284
284
  end
285
285
 
286
- # Forward email
286
+ # Forward email to recipients
287
287
  # Forward an existing email to new recipients.
288
288
  # @param email_id [String] ID of email
289
289
  # @param forward_email_options [ForwardEmailOptions] forwardEmailOptions
@@ -340,7 +340,7 @@ module MailSlurpClient
340
340
  return data, status_code, headers
341
341
  end
342
342
 
343
- # Get email attachment metadata
343
+ # Get email attachment metadata. This is the `contentType` and `contentLength` of an attachment. To get the individual attachments use the `downloadAttachment` methods.
344
344
  # Returns the metadata such as name and content-type for a given attachment and email.
345
345
  # @param attachment_id [String] ID of attachment
346
346
  # @param email_id [String] ID of email
@@ -351,7 +351,7 @@ module MailSlurpClient
351
351
  data
352
352
  end
353
353
 
354
- # Get email attachment metadata
354
+ # Get email attachment metadata. This is the &#x60;contentType&#x60; and &#x60;contentLength&#x60; of an attachment. To get the individual attachments use the &#x60;downloadAttachment&#x60; methods.
355
355
  # Returns the metadata such as name and content-type for a given attachment and email.
356
356
  # @param attachment_id [String] ID of attachment
357
357
  # @param email_id [String] ID of email
@@ -408,7 +408,7 @@ module MailSlurpClient
408
408
  return data, status_code, headers
409
409
  end
410
410
 
411
- # Get all email attachment metadata
411
+ # Get all email attachment metadata. Metadata includes name and attachment size.
412
412
  # Returns an array of attachment metadata such as name and content-type for a given email if present.
413
413
  # @param email_id [String] ID of email
414
414
  # @param [Hash] opts the optional parameters
@@ -418,7 +418,7 @@ module MailSlurpClient
418
418
  data
419
419
  end
420
420
 
421
- # Get all email attachment metadata
421
+ # Get all email attachment metadata. Metadata includes name and attachment size.
422
422
  # Returns an array of attachment metadata such as name and content-type for a given email if present.
423
423
  # @param email_id [String] ID of email
424
424
  # @param [Hash] opts the optional parameters
@@ -605,7 +605,7 @@ module MailSlurpClient
605
605
  return data, status_code, headers
606
606
  end
607
607
 
608
- # Get email content as HTML
608
+ # Get email content as HTML. For displaying emails in browser context.
609
609
  # Retrieve email content as HTML response for viewing in browsers. Decodes quoted-printable entities and converts charset to UTF-8. Pass your API KEY as a request parameter when viewing in a browser: `?apiKey=xxx`
610
610
  # @param email_id [String] emailId
611
611
  # @param [Hash] opts the optional parameters
@@ -616,7 +616,7 @@ module MailSlurpClient
616
616
  data
617
617
  end
618
618
 
619
- # Get email content as HTML
619
+ # Get email content as HTML. For displaying emails in browser context.
620
620
  # Retrieve email content as HTML response for viewing in browsers. Decodes quoted-printable entities and converts charset to UTF-8. Pass your API KEY as a request parameter when viewing in a browser: &#x60;?apiKey&#x3D;xxx&#x60;
621
621
  # @param email_id [String] emailId
622
622
  # @param [Hash] opts the optional parameters
@@ -878,7 +878,7 @@ module MailSlurpClient
878
878
  return data, status_code, headers
879
879
  end
880
880
 
881
- # Get latest email
881
+ # Get latest email in all inboxes. Most recently received.
882
882
  # Get the newest email in all inboxes or in a passed set of inbox IDs
883
883
  # @param [Hash] opts the optional parameters
884
884
  # @option opts [Array<String>] :inbox_ids Optional set of inboxes to filter by. Only get the latest email from these inbox IDs
@@ -888,7 +888,7 @@ module MailSlurpClient
888
888
  data
889
889
  end
890
890
 
891
- # Get latest email
891
+ # Get latest email in all inboxes. Most recently received.
892
892
  # Get the newest email in all inboxes or in a passed set of inbox IDs
893
893
  # @param [Hash] opts the optional parameters
894
894
  # @option opts [Array<String>] :inbox_ids Optional set of inboxes to filter by. Only get the latest email from these inbox IDs
@@ -937,7 +937,7 @@ module MailSlurpClient
937
937
  return data, status_code, headers
938
938
  end
939
939
 
940
- # Get latest email
940
+ # Get latest email in an inbox. Use `WaitForController` to get emails that may not have arrived yet.
941
941
  # Get the newest email in all inboxes or in a passed set of inbox IDs
942
942
  # @param [Hash] opts the optional parameters
943
943
  # @option opts [String] :inbox_id ID of the inbox you want to get the latest email from
@@ -947,7 +947,7 @@ module MailSlurpClient
947
947
  data
948
948
  end
949
949
 
950
- # Get latest email
950
+ # Get latest email in an inbox. Use &#x60;WaitForController&#x60; to get emails that may not have arrived yet.
951
951
  # Get the newest email in all inboxes or in a passed set of inbox IDs
952
952
  # @param [Hash] opts the optional parameters
953
953
  # @option opts [String] :inbox_id ID of the inbox you want to get the latest email from
@@ -1071,7 +1071,7 @@ module MailSlurpClient
1071
1071
  return data, status_code, headers
1072
1072
  end
1073
1073
 
1074
- # Get raw email string
1074
+ # Get raw email string. Returns unparsed raw SMTP message with headers and body.
1075
1075
  # Returns a raw, unparsed, and unprocessed email. If your client has issues processing the response it is likely due to the response content-type which is text/plain. If you need a JSON response content-type use the getRawEmailJson endpoint
1076
1076
  # @param email_id [String] ID of email
1077
1077
  # @param [Hash] opts the optional parameters
@@ -1081,7 +1081,7 @@ module MailSlurpClient
1081
1081
  data
1082
1082
  end
1083
1083
 
1084
- # Get raw email string
1084
+ # Get raw email string. Returns unparsed raw SMTP message with headers and body.
1085
1085
  # Returns a raw, unparsed, and unprocessed email. If your client has issues processing the response it is likely due to the response content-type which is text/plain. If you need a JSON response content-type use the getRawEmailJson endpoint
1086
1086
  # @param email_id [String] ID of email
1087
1087
  # @param [Hash] opts the optional parameters
@@ -1133,7 +1133,7 @@ module MailSlurpClient
1133
1133
  return data, status_code, headers
1134
1134
  end
1135
1135
 
1136
- # Get raw email in JSON
1136
+ # Get raw email in JSON. Unparsed SMTP message in JSON wrapper format.
1137
1137
  # Returns a raw, unparsed, and unprocessed email wrapped in a JSON response object for easier handling when compared with the getRawEmail text/plain response
1138
1138
  # @param email_id [String] ID of email
1139
1139
  # @param [Hash] opts the optional parameters
@@ -1143,7 +1143,7 @@ module MailSlurpClient
1143
1143
  data
1144
1144
  end
1145
1145
 
1146
- # Get raw email in JSON
1146
+ # Get raw email in JSON. Unparsed SMTP message in JSON wrapper format.
1147
1147
  # Returns a raw, unparsed, and unprocessed email wrapped in a JSON response object for easier handling when compared with the getRawEmail text/plain response
1148
1148
  # @param email_id [String] ID of email
1149
1149
  # @param [Hash] opts the optional parameters
@@ -1321,7 +1321,7 @@ module MailSlurpClient
1321
1321
  return data, status_code, headers
1322
1322
  end
1323
1323
 
1324
- # Validate email
1324
+ # Validate email HTML contents
1325
1325
  # Validate the HTML content of email if HTML is found. Considered valid if no HTML.
1326
1326
  # @param email_id [String] ID of email
1327
1327
  # @param [Hash] opts the optional parameters
@@ -1331,7 +1331,7 @@ module MailSlurpClient
1331
1331
  data
1332
1332
  end
1333
1333
 
1334
- # Validate email
1334
+ # Validate email HTML contents
1335
1335
  # Validate the HTML content of email if HTML is found. Considered valid if no HTML.
1336
1336
  # @param email_id [String] ID of email
1337
1337
  # @param [Hash] opts the optional parameters
@@ -19,7 +19,7 @@ module MailSlurpClient
19
19
  def initialize(api_client = ApiClient.default)
20
20
  @api_client = api_client
21
21
  end
22
- # Create an Inbox (email address)
22
+ # Create an inbox email address. An inbox has a real email address and can send and receive emails.
23
23
  # Create a new inbox and with a randomized email address to send and receive from. Pass emailAddress parameter if you wish to use a specific email address. Creating an inbox is required before sending or receiving emails. If writing tests it is recommended that you create a new inbox during each test method so that it is unique and empty.
24
24
  # @param [Hash] opts the optional parameters
25
25
  # @option opts [Boolean] :allow_team_access Grant team access to this inbox and the emails that belong to it for team members of your organization.
@@ -37,7 +37,7 @@ module MailSlurpClient
37
37
  data
38
38
  end
39
39
 
40
- # Create an Inbox (email address)
40
+ # Create an inbox email address. An inbox has a real email address and can send and receive emails.
41
41
  # Create a new inbox and with a randomized email address to send and receive from. Pass emailAddress parameter if you wish to use a specific email address. Creating an inbox is required before sending or receiving emails. If writing tests it is recommended that you create a new inbox during each test method so that it is unique and empty.
42
42
  # @param [Hash] opts the optional parameters
43
43
  # @option opts [Boolean] :allow_team_access Grant team access to this inbox and the emails that belong to it for team members of your organization.
@@ -102,7 +102,61 @@ module MailSlurpClient
102
102
  return data, status_code, headers
103
103
  end
104
104
 
105
- # Create an inbox with additional options
105
+ # Create an inbox with default options. Uses MailSlurp domain pool address and is private.
106
+ # @param [Hash] opts the optional parameters
107
+ # @return [Inbox]
108
+ def create_inbox_with_defaults(opts = {})
109
+ data, _status_code, _headers = create_inbox_with_defaults_with_http_info(opts)
110
+ data
111
+ end
112
+
113
+ # Create an inbox with default options. Uses MailSlurp domain pool address and is private.
114
+ # @param [Hash] opts the optional parameters
115
+ # @return [Array<(Inbox, Integer, Hash)>] Inbox data, response status code and response headers
116
+ def create_inbox_with_defaults_with_http_info(opts = {})
117
+ if @api_client.config.debugging
118
+ @api_client.config.logger.debug 'Calling API: InboxControllerApi.create_inbox_with_defaults ...'
119
+ end
120
+ # resource path
121
+ local_var_path = '/inboxes/withDefaults'
122
+
123
+ # query parameters
124
+ query_params = opts[:query_params] || {}
125
+
126
+ # header parameters
127
+ header_params = opts[:header_params] || {}
128
+ # HTTP header 'Accept' (if needed)
129
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
130
+
131
+ # form parameters
132
+ form_params = opts[:form_params] || {}
133
+
134
+ # http body (model)
135
+ post_body = opts[:body]
136
+
137
+ # return_type
138
+ return_type = opts[:return_type] || 'Inbox'
139
+
140
+ # auth_names
141
+ auth_names = opts[:auth_names] || ['API_KEY']
142
+
143
+ new_options = opts.merge(
144
+ :header_params => header_params,
145
+ :query_params => query_params,
146
+ :form_params => form_params,
147
+ :body => post_body,
148
+ :auth_names => auth_names,
149
+ :return_type => return_type
150
+ )
151
+
152
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
153
+ if @api_client.config.debugging
154
+ @api_client.config.logger.debug "API called: InboxControllerApi#create_inbox_with_defaults\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
155
+ end
156
+ return data, status_code, headers
157
+ end
158
+
159
+ # Create an inbox with options. Extended options for inbox creation.
106
160
  # Additional endpoint that allows inbox creation with request body options. Can be more flexible that other methods for some clients.
107
161
  # @param create_inbox_dto [CreateInboxDto] createInboxDto
108
162
  # @param [Hash] opts the optional parameters
@@ -112,7 +166,7 @@ module MailSlurpClient
112
166
  data
113
167
  end
114
168
 
115
- # Create an inbox with additional options
169
+ # Create an inbox with options. Extended options for inbox creation.
116
170
  # Additional endpoint that allows inbox creation with request body options. Can be more flexible that other methods for some clients.
117
171
  # @param create_inbox_dto [CreateInboxDto] createInboxDto
118
172
  # @param [Hash] opts the optional parameters
@@ -445,7 +499,7 @@ module MailSlurpClient
445
499
  return data, status_code, headers
446
500
  end
447
501
 
448
- # Get Inbox
502
+ # Get Inbox. Returns properties of an inbox.
449
503
  # Returns an inbox's properties, including its email address and ID.
450
504
  # @param inbox_id [String] inboxId
451
505
  # @param [Hash] opts the optional parameters
@@ -455,7 +509,7 @@ module MailSlurpClient
455
509
  data
456
510
  end
457
511
 
458
- # Get Inbox
512
+ # Get Inbox. Returns properties of an inbox.
459
513
  # Returns an inbox&#39;s properties, including its email address and ID.
460
514
  # @param inbox_id [String] inboxId
461
515
  # @param [Hash] opts the optional parameters
@@ -713,7 +767,7 @@ module MailSlurpClient
713
767
  return data, status_code, headers
714
768
  end
715
769
 
716
- # List Inboxes / Email Addresses
770
+ # List Inboxes and email eddresses
717
771
  # List the inboxes you have created. Note use of the more advanced `getAllEmails` is recommended. You can provide a limit and sort parameter.
718
772
  # @param [Hash] opts the optional parameters
719
773
  # @option opts [Integer] :size Optional result size limit. Note an automatic limit of 100 results is applied. See the paginated &#x60;getAllEmails&#x60; for larger queries. (default to 100)
@@ -724,7 +778,7 @@ module MailSlurpClient
724
778
  data
725
779
  end
726
780
 
727
- # List Inboxes / Email Addresses
781
+ # List Inboxes and email eddresses
728
782
  # List the inboxes you have created. Note use of the more advanced &#x60;getAllEmails&#x60; is recommended. You can provide a limit and sort parameter.
729
783
  # @param [Hash] opts the optional parameters
730
784
  # @option opts [Integer] :size Optional result size limit. Note an automatic limit of 100 results is applied. See the paginated &#x60;getAllEmails&#x60; for larger queries.
@@ -913,7 +967,7 @@ module MailSlurpClient
913
967
  end
914
968
 
915
969
  # Send email and return sent confirmation
916
- # Sister method for standard `sendEmail` method with the benefit of returning a `SentEmail` entity confirming the successful sending of the email with link the the sent object created for it.
970
+ # Sister method for standard `sendEmail` method with the benefit of returning a `SentEmail` entity confirming the successful sending of the email with a link to the sent object created for it.
917
971
  # @param inbox_id [String] ID of the inbox you want to send the email from
918
972
  # @param [Hash] opts the optional parameters
919
973
  # @option opts [SendEmailOptions] :send_email_options Options for the email
@@ -924,7 +978,7 @@ module MailSlurpClient
924
978
  end
925
979
 
926
980
  # Send email and return sent confirmation
927
- # Sister method for standard &#x60;sendEmail&#x60; method with the benefit of returning a &#x60;SentEmail&#x60; entity confirming the successful sending of the email with link the the sent object created for it.
981
+ # Sister method for standard &#x60;sendEmail&#x60; method with the benefit of returning a &#x60;SentEmail&#x60; entity confirming the successful sending of the email with a link to the sent object created for it.
928
982
  # @param inbox_id [String] ID of the inbox you want to send the email from
929
983
  # @param [Hash] opts the optional parameters
930
984
  # @option opts [SendEmailOptions] :send_email_options Options for the email
@@ -1048,7 +1102,7 @@ module MailSlurpClient
1048
1102
  return data, status_code, headers
1049
1103
  end
1050
1104
 
1051
- # Update Inbox
1105
+ # Update Inbox. Change name and description. Email address is not editable.
1052
1106
  # Update editable fields on an inbox
1053
1107
  # @param inbox_id [String] inboxId
1054
1108
  # @param update_inbox_options [UpdateInboxOptions] updateInboxOptions
@@ -1059,7 +1113,7 @@ module MailSlurpClient
1059
1113
  data
1060
1114
  end
1061
1115
 
1062
- # Update Inbox
1116
+ # Update Inbox. Change name and description. Email address is not editable.
1063
1117
  # Update editable fields on an inbox
1064
1118
  # @param inbox_id [String] inboxId
1065
1119
  # @param update_inbox_options [UpdateInboxOptions] updateInboxOptions
@@ -19,20 +19,20 @@ module MailSlurpClient
19
19
  def initialize(api_client = ApiClient.default)
20
20
  @api_client = api_client
21
21
  end
22
- # Wait for conditions to be met
22
+ # Wait for an email to match the provided filter conditions such as subject contains keyword.
23
23
  # Generic waitFor method that will wait until an inbox meets given conditions or return immediately if already met
24
24
  # @param [Hash] opts the optional parameters
25
- # @option opts [WaitForConditions] :wait_for_conditions Conditions to wait for
25
+ # @option opts [WaitForConditions] :wait_for_conditions Conditions to apply to emails that you are waiting for
26
26
  # @return [Array<EmailPreview>]
27
27
  def wait_for(opts = {})
28
28
  data, _status_code, _headers = wait_for_with_http_info(opts)
29
29
  data
30
30
  end
31
31
 
32
- # Wait for conditions to be met
32
+ # Wait for an email to match the provided filter conditions such as subject contains keyword.
33
33
  # Generic waitFor method that will wait until an inbox meets given conditions or return immediately if already met
34
34
  # @param [Hash] opts the optional parameters
35
- # @option opts [WaitForConditions] :wait_for_conditions Conditions to wait for
35
+ # @option opts [WaitForConditions] :wait_for_conditions Conditions to apply to emails that you are waiting for
36
36
  # @return [Array<(Array<EmailPreview>, Integer, Hash)>] Array<EmailPreview> data, response status code and response headers
37
37
  def wait_for_with_http_info(opts = {})
38
38
  if @api_client.config.debugging
@@ -79,7 +79,7 @@ module MailSlurpClient
79
79
  return data, status_code, headers
80
80
  end
81
81
 
82
- # Wait for and return count number of emails
82
+ # Wait for and return count number of emails. Hold connection until inbox count matches expected or timeout occurs
83
83
  # If inbox contains count or more emails at time of request then return count worth of emails. If not wait until the count is reached and return those or return an error if timeout is exceeded.
84
84
  # @param [Hash] opts the optional parameters
85
85
  # @option opts [Integer] :count Number of emails to wait for. Must be greater that 1
@@ -92,7 +92,7 @@ module MailSlurpClient
92
92
  data
93
93
  end
94
94
 
95
- # Wait for and return count number of emails
95
+ # Wait for and return count number of emails. Hold connection until inbox count matches expected or timeout occurs
96
96
  # If inbox contains count or more emails at time of request then return count worth of emails. If not wait until the count is reached and return those or return an error if timeout is exceeded.
97
97
  # @param [Hash] opts the optional parameters
98
98
  # @option opts [Integer] :count Number of emails to wait for. Must be greater that 1
@@ -361,7 +361,7 @@ module MailSlurpClient
361
361
  return data, status_code, headers
362
362
  end
363
363
 
364
- # Wait for or fetch the email with a given index in the inbox specified
364
+ # Wait for or fetch the email with a given index in the inbox specified. IF indx doesn't exist waits for it to exist or timeout to occur.
365
365
  # If nth email is already present in inbox then return it. If not hold the connection open until timeout expires or the nth email is received and returned.
366
366
  # @param [Hash] opts the optional parameters
367
367
  # @option opts [String] :inbox_id Id of the inbox you are fetching emails from
@@ -374,7 +374,7 @@ module MailSlurpClient
374
374
  data
375
375
  end
376
376
 
377
- # Wait for or fetch the email with a given index in the inbox specified
377
+ # Wait for or fetch the email with a given index in the inbox specified. IF indx doesn&#39;t exist waits for it to exist or timeout to occur.
378
378
  # If nth email is already present in inbox then return it. If not hold the connection open until timeout expires or the nth email is received and returned.
379
379
  # @param [Hash] opts the optional parameters
380
380
  # @option opts [String] :inbox_id Id of the inbox you are fetching emails from
@@ -18,13 +18,13 @@ module MailSlurpClient
18
18
  # Size of attachment in bytes
19
19
  attr_accessor :content_length
20
20
 
21
- # Content type of attachment
21
+ # Content type of attachment such as `image/png`
22
22
  attr_accessor :content_type
23
23
 
24
24
  # ID of attachment
25
25
  attr_accessor :id
26
26
 
27
- # Name of attachment
27
+ # Name of attachment if given
28
28
  attr_accessor :name
29
29
 
30
30
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -24,12 +24,38 @@ module MailSlurpClient
24
24
  # 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.
25
25
  attr_accessor :domain
26
26
 
27
+ # Domain type to create. HTTP or SMTP domain. HTTP domain uses MailSlurps SES MX records. SMTP uses a custom SMTP server MX record
28
+ attr_accessor :domain_type
29
+
30
+ class EnumAttributeValidator
31
+ attr_reader :datatype
32
+ attr_reader :allowable_values
33
+
34
+ def initialize(datatype, allowable_values)
35
+ @allowable_values = allowable_values.map do |value|
36
+ case datatype.to_s
37
+ when /Integer/i
38
+ value.to_i
39
+ when /Float/i
40
+ value.to_f
41
+ else
42
+ value
43
+ end
44
+ end
45
+ end
46
+
47
+ def valid?(value)
48
+ !value || allowable_values.include?(value)
49
+ end
50
+ end
51
+
27
52
  # Attribute mapping from ruby-style variable name to JSON key.
28
53
  def self.attribute_map
29
54
  {
30
55
  :'created_catch_all_inbox' => :'createdCatchAllInbox',
31
56
  :'description' => :'description',
32
- :'domain' => :'domain'
57
+ :'domain' => :'domain',
58
+ :'domain_type' => :'domainType'
33
59
  }
34
60
  end
35
61
 
@@ -38,7 +64,8 @@ module MailSlurpClient
38
64
  {
39
65
  :'created_catch_all_inbox' => :'Boolean',
40
66
  :'description' => :'String',
41
- :'domain' => :'String'
67
+ :'domain' => :'String',
68
+ :'domain_type' => :'String'
42
69
  }
43
70
  end
44
71
 
@@ -74,6 +101,10 @@ module MailSlurpClient
74
101
  if attributes.key?(:'domain')
75
102
  self.domain = attributes[:'domain']
76
103
  end
104
+
105
+ if attributes.key?(:'domain_type')
106
+ self.domain_type = attributes[:'domain_type']
107
+ end
77
108
  end
78
109
 
79
110
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -86,9 +117,21 @@ module MailSlurpClient
86
117
  # Check to see if the all the properties in the model are valid
87
118
  # @return true if the model is valid
88
119
  def valid?
120
+ domain_type_validator = EnumAttributeValidator.new('String', ["HTTP_INBOX", "SMTP_DOMAIN"])
121
+ return false unless domain_type_validator.valid?(@domain_type)
89
122
  true
90
123
  end
91
124
 
125
+ # Custom attribute writer method checking allowed values (enum).
126
+ # @param [Object] domain_type Object to be assigned
127
+ def domain_type=(domain_type)
128
+ validator = EnumAttributeValidator.new('String', ["HTTP_INBOX", "SMTP_DOMAIN"])
129
+ unless validator.valid?(domain_type)
130
+ fail ArgumentError, "invalid value for \"domain_type\", must be one of #{validator.allowable_values}."
131
+ end
132
+ @domain_type = domain_type
133
+ end
134
+
92
135
  # Checks equality by comparing each attribute.
93
136
  # @param [Object] Object to be compared
94
137
  def ==(o)
@@ -96,7 +139,8 @@ module MailSlurpClient
96
139
  self.class == o.class &&
97
140
  created_catch_all_inbox == o.created_catch_all_inbox &&
98
141
  description == o.description &&
99
- domain == o.domain
142
+ domain == o.domain &&
143
+ domain_type == o.domain_type
100
144
  end
101
145
 
102
146
  # @see the `==` method
@@ -108,7 +152,7 @@ module MailSlurpClient
108
152
  # Calculates hash code according to all attributes.
109
153
  # @return [Integer] Hash code
110
154
  def hash
111
- [created_catch_all_inbox, description, domain].hash
155
+ [created_catch_all_inbox, description, domain, domain_type].hash
112
156
  end
113
157
 
114
158
  # Builds the object from hash
@@ -33,6 +33,9 @@ module MailSlurpClient
33
33
  # Is the inbox favorited. Favouriting inboxes is typically done in the dashboard for quick access or filtering
34
34
  attr_accessor :favourite
35
35
 
36
+ # HTTP or SMTP inbox
37
+ attr_accessor :inbox_type
38
+
36
39
  # Optional name of the inbox. Displayed in the dashboard for easier search
37
40
  attr_accessor :name
38
41
 
@@ -42,6 +45,28 @@ module MailSlurpClient
42
45
  # Use the MailSlurp domain name pool with this inbox when creating the email address. Defaults to null. If enabled the inbox will be an email address with a domain randomly chosen from a list of the MailSlurp domains. This is useful when the default `@mailslurp.com` email addresses used with inboxes are blocked or considered spam by a provider or receiving service. When domain pool is enabled an email address will be generated ending in `@mailslurp.{world,info,xyz,...}` . This means a TLD is randomly selecting from a list of `.biz`, `.info`, `.xyz` etc to add variance to the generated email addresses. When null or false MailSlurp uses the default behavior of `@mailslurp.com` or custom email address provided by the emailAddress field.
43
46
  attr_accessor :use_domain_pool
44
47
 
48
+ class EnumAttributeValidator
49
+ attr_reader :datatype
50
+ attr_reader :allowable_values
51
+
52
+ def initialize(datatype, allowable_values)
53
+ @allowable_values = allowable_values.map do |value|
54
+ case datatype.to_s
55
+ when /Integer/i
56
+ value.to_i
57
+ when /Float/i
58
+ value.to_f
59
+ else
60
+ value
61
+ end
62
+ end
63
+ end
64
+
65
+ def valid?(value)
66
+ !value || allowable_values.include?(value)
67
+ end
68
+ end
69
+
45
70
  # Attribute mapping from ruby-style variable name to JSON key.
46
71
  def self.attribute_map
47
72
  {
@@ -51,6 +76,7 @@ module MailSlurpClient
51
76
  :'expires_at' => :'expiresAt',
52
77
  :'expires_in' => :'expiresIn',
53
78
  :'favourite' => :'favourite',
79
+ :'inbox_type' => :'inboxType',
54
80
  :'name' => :'name',
55
81
  :'tags' => :'tags',
56
82
  :'use_domain_pool' => :'useDomainPool'
@@ -66,6 +92,7 @@ module MailSlurpClient
66
92
  :'expires_at' => :'DateTime',
67
93
  :'expires_in' => :'Integer',
68
94
  :'favourite' => :'Boolean',
95
+ :'inbox_type' => :'String',
69
96
  :'name' => :'String',
70
97
  :'tags' => :'Array<String>',
71
98
  :'use_domain_pool' => :'Boolean'
@@ -117,6 +144,10 @@ module MailSlurpClient
117
144
  self.favourite = attributes[:'favourite']
118
145
  end
119
146
 
147
+ if attributes.key?(:'inbox_type')
148
+ self.inbox_type = attributes[:'inbox_type']
149
+ end
150
+
120
151
  if attributes.key?(:'name')
121
152
  self.name = attributes[:'name']
122
153
  end
@@ -142,9 +173,21 @@ module MailSlurpClient
142
173
  # Check to see if the all the properties in the model are valid
143
174
  # @return true if the model is valid
144
175
  def valid?
176
+ inbox_type_validator = EnumAttributeValidator.new('String', ["HTTP_INBOX", "SMTP_INBOX"])
177
+ return false unless inbox_type_validator.valid?(@inbox_type)
145
178
  true
146
179
  end
147
180
 
181
+ # Custom attribute writer method checking allowed values (enum).
182
+ # @param [Object] inbox_type Object to be assigned
183
+ def inbox_type=(inbox_type)
184
+ validator = EnumAttributeValidator.new('String', ["HTTP_INBOX", "SMTP_INBOX"])
185
+ unless validator.valid?(inbox_type)
186
+ fail ArgumentError, "invalid value for \"inbox_type\", must be one of #{validator.allowable_values}."
187
+ end
188
+ @inbox_type = inbox_type
189
+ end
190
+
148
191
  # Checks equality by comparing each attribute.
149
192
  # @param [Object] Object to be compared
150
193
  def ==(o)
@@ -156,6 +199,7 @@ module MailSlurpClient
156
199
  expires_at == o.expires_at &&
157
200
  expires_in == o.expires_in &&
158
201
  favourite == o.favourite &&
202
+ inbox_type == o.inbox_type &&
159
203
  name == o.name &&
160
204
  tags == o.tags &&
161
205
  use_domain_pool == o.use_domain_pool
@@ -170,7 +214,7 @@ module MailSlurpClient
170
214
  # Calculates hash code according to all attributes.
171
215
  # @return [Integer] Hash code
172
216
  def hash
173
- [allow_team_access, description, email_address, expires_at, expires_in, favourite, name, tags, use_domain_pool].hash
217
+ [allow_team_access, description, email_address, expires_at, expires_in, favourite, inbox_type, name, tags, use_domain_pool].hash
174
218
  end
175
219
 
176
220
  # Builds the object from hash
@@ -15,13 +15,13 @@ require 'date'
15
15
  module MailSlurpClient
16
16
  # Content of attachment
17
17
  class DownloadAttachmentDto
18
- # Base64 encoded string of attachment bytes. Decode the base64 string to get the raw file bytes
18
+ # Base64 encoded string of attachment bytes. Decode the base64 encoded string to get the raw contents. If the file has a content type such as `text/html` you can read the contents directly by converting it to string using `utf-8` encoding.
19
19
  attr_accessor :base64_file_contents
20
20
 
21
- # Content type of attachment
21
+ # Content type of attachment. Examples are `image/png`, `application/msword`, `text/csv` etc.
22
22
  attr_accessor :content_type
23
23
 
24
- # Size in bytes of attachment
24
+ # Size in bytes of attachment content
25
25
  attr_accessor :size_bytes
26
26
 
27
27
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -13,7 +13,7 @@ OpenAPI Generator version: 4.3.1
13
13
  require 'date'
14
14
 
15
15
  module MailSlurpClient
16
- # Email model (also referred to as EmailDto). Represents an email that was received by an inbox. If you want the original SMTP message see the `getRawEmail` endpoint.
16
+ # Email entity (also known as EmailDto). When an SMTP email message is received by MailSlurp it is parsed. The body and attachments are written to disk and the fields such as to, from, subject etc are stored in a database. The `body` contains the email content. If you want the original SMTP message see the `getRawEmail` endpoints. The attachments can be fetched using the AttachmentController
17
17
  class Email
18
18
  attr_accessor :analysis
19
19
 
@@ -41,21 +41,22 @@ module MailSlurpClient
41
41
  # Who the email was sent from
42
42
  attr_accessor :from
43
43
 
44
+ # Collection of SMTP headers attached to email
44
45
  attr_accessor :headers
45
46
 
46
- # ID of the email
47
+ # ID of the email entity
47
48
  attr_accessor :id
48
49
 
49
50
  # ID of the inbox that received the email
50
51
  attr_accessor :inbox_id
51
52
 
52
- # Was HTML sent in the email body
53
+ # Is the email body HTML
53
54
  attr_accessor :is_html
54
55
 
55
- # Has the email been viewed ever. This means viewed in the dashboard or requested via the full email entity endpoints
56
+ # Read flag. Has the email ever been viewed in the dashboard or fetched via the API? If so the email is marked as read.
56
57
  attr_accessor :read
57
58
 
58
- # The replyTo field on the received email
59
+ # The `replyTo` field on the received email message
59
60
  attr_accessor :reply_to
60
61
 
61
62
  # The subject line of the email message
@@ -64,13 +65,13 @@ module MailSlurpClient
64
65
  # Can the email be accessed by organization team members
65
66
  attr_accessor :team_access
66
67
 
67
- # List of `To` recipients email was addressed to
68
+ # List of `To` recipients that email was addressed to
68
69
  attr_accessor :to
69
70
 
70
71
  # When was the email last updated
71
72
  attr_accessor :updated_at
72
73
 
73
- # ID of user that email belongs
74
+ # ID of user that email belongs to
74
75
  attr_accessor :user_id
75
76
 
76
77
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -30,16 +30,16 @@ module MailSlurpClient
30
30
  # Who the email was sent from
31
31
  attr_accessor :from
32
32
 
33
- # ID of the email
33
+ # ID of the email entity
34
34
  attr_accessor :id
35
35
 
36
- # Has the email been viewed ever. This means viewed in the dashboard or requested via the full email entity endpoints
36
+ # Read flag. Has the email ever been viewed in the dashboard or fetched via the API? If so the email is marked as read.
37
37
  attr_accessor :read
38
38
 
39
39
  # The subject line of the email message
40
40
  attr_accessor :subject
41
41
 
42
- # List of `To` recipients email was addressed to
42
+ # List of `To` recipients that email was addressed to
43
43
  attr_accessor :to
44
44
 
45
45
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -13,7 +13,7 @@ OpenAPI Generator version: 4.3.1
13
13
  require 'date'
14
14
 
15
15
  module MailSlurpClient
16
- # Representation of an inbox with an email address. Emails can be sent to or from this email address.
16
+ # Representation of a MailSlurp inbox. An inbox has an ID and a real email address. Emails can be sent to or from this email address. Use the `EmailController` or the `InboxController` methods to send and receive emails and attachments.
17
17
  class Inbox
18
18
  # When the inbox was created. Time stamps are in ISO DateTime Format `yyyy-MM-dd'T'HH:mm:ss.SSSXXX` e.g. `2000-10-31T01:30:00.000-05:00`.
19
19
  attr_accessor :created_at
@@ -36,13 +36,13 @@ module MailSlurpClient
36
36
  # Name of the inbox. Displayed in the dashboard for easier search
37
37
  attr_accessor :name
38
38
 
39
- # Is the inbox readOnly for the caller. Read only means can not be deleted or modified.
39
+ # Is the inbox readOnly for the caller. Read only means can not be deleted or modified. This flag is present when using team accounts and shared inboxes.
40
40
  attr_accessor :read_only
41
41
 
42
42
  # Tags that inbox has been tagged with. Tags can be added to inboxes to group different inboxes within an account. You can also search for inboxes by tag in the dashboard UI.
43
43
  attr_accessor :tags
44
44
 
45
- # Does inbox permit team access for organization team members. If so team users can use inbox and emails associated with it.
45
+ # Does inbox permit team access for organization team members. If so team users can use inbox and emails associated with it. See the team access guide at https://www.mailslurp.com/guides/team-email-account-sharing/
46
46
  attr_accessor :team_access
47
47
 
48
48
  # ID of user that inbox belongs to
@@ -29,13 +29,13 @@ module MailSlurpClient
29
29
  # Name of the inbox. Displayed in the dashboard for easier search
30
30
  attr_accessor :name
31
31
 
32
- # Is the inbox readOnly for the caller. Read only means can not be deleted or modified.
32
+ # Is the inbox readOnly for the caller. Read only means can not be deleted or modified. This flag is present when using team accounts and shared inboxes.
33
33
  attr_accessor :read_only
34
34
 
35
35
  # Tags that inbox has been tagged with. Tags can be added to inboxes to group different inboxes within an account. You can also search for inboxes by tag in the dashboard UI.
36
36
  attr_accessor :tags
37
37
 
38
- # Does inbox permit team access for organization team members. If so team users can use inbox and emails associated with it.
38
+ # Does inbox permit team access for organization team members. If so team users can use inbox and emails associated with it. See the team access guide at https://www.mailslurp.com/guides/team-email-account-sharing/
39
39
  attr_accessor :team_access
40
40
 
41
41
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -13,7 +13,7 @@ OpenAPI Generator version: 4.3.1
13
13
  require 'date'
14
14
 
15
15
  module MailSlurpClient
16
- # Representation of a webhook for an inbox. The URL specified will be using by MailSlurp whenever an email is received by the attached inbox.
16
+ # Representation of a webhook for an inbox. The URL specified will be using by MailSlurp whenever an email is received by the attached inbox. A webhook entity should have a URL that points to your server. Your server should accept HTTP/S POST requests and return a success 200. MailSlurp will retry your webhooks if they fail. See https://api.mailslurp.com/schemas/webhook-payload for the payload schema.
17
17
  class WebhookDto
18
18
  # Does webhook expect basic authentication? If true it means you created this webhook with a username and password. MailSlurp will use these in the URL to authenticate itself.
19
19
  attr_accessor :basic_auth
@@ -13,7 +13,7 @@ OpenAPI Generator version: 4.3.1
13
13
  require 'date'
14
14
 
15
15
  module MailSlurpClient
16
- # MailSlurp webhook payload schema. This schema describes the JSON object that is sent via HTTP POST to webhook urls when an email is received by an inbox that a webhook is attached to. Payloads may be delivered multiple times so use the ID as a key for event uniqueness. The payload contains IDs for the email and inbox affected. Use these to fetch more data related to the event using appropriate inbox and email endpoints. See https://www.mailslurp.com/guides/email-webhooks/ for more information. Your webhook endpoint should accept POST HTTP request and return a 200 in under 30 seconds. Process the webhook asynchronously if you need to.
16
+ # MailSlurp webhook payload schema is available at https://api.mailslurp.com/schemas/webhook-payload. This schema describes the JSON object that is sent via HTTP POST to webhook urls when an email is received by an inbox that a webhook is attached to. Payloads may be delivered multiple times so use the ID as a key for event uniqueness. The payload contains IDs for the email and inbox affected. Use these to fetch more data related to the event using appropriate inbox and email endpoints. See https://www.mailslurp.com/guides/email-webhooks/ for more information. Your webhook endpoint should accept POST HTTP request and return a 200 in under 30 seconds. Process the webhook asynchronously if you need to.
17
17
  class WebhookPayload
18
18
  # List of attachment meta data objects if attachments present
19
19
  attr_accessor :attachment_meta_datas
@@ -36,16 +36,16 @@ module MailSlurpClient
36
36
  # Who the email was sent from
37
37
  attr_accessor :from
38
38
 
39
- # Idempotent message ID. Store this ID locally or in a database to prevent message duplication.
40
- attr_accessor :id
41
-
42
39
  # Id of the inbox that receive an email
43
40
  attr_accessor :inbox_id
44
41
 
42
+ # Idempotent message ID. Store this ID locally or in a database to prevent message duplication.
43
+ attr_accessor :message_id
44
+
45
45
  # The subject line of the email message
46
46
  attr_accessor :subject
47
47
 
48
- # List of `To` recipients email was addressed to
48
+ # List of `To` recipients that email was addressed to
49
49
  attr_accessor :to
50
50
 
51
51
  # ID of webhook entity being triggered
@@ -86,8 +86,8 @@ module MailSlurpClient
86
86
  :'email_id' => :'emailId',
87
87
  :'event_name' => :'eventName',
88
88
  :'from' => :'from',
89
- :'id' => :'id',
90
89
  :'inbox_id' => :'inboxId',
90
+ :'message_id' => :'messageId',
91
91
  :'subject' => :'subject',
92
92
  :'to' => :'to',
93
93
  :'webhook_id' => :'webhookId',
@@ -105,8 +105,8 @@ module MailSlurpClient
105
105
  :'email_id' => :'String',
106
106
  :'event_name' => :'String',
107
107
  :'from' => :'String',
108
- :'id' => :'String',
109
108
  :'inbox_id' => :'String',
109
+ :'message_id' => :'String',
110
110
  :'subject' => :'String',
111
111
  :'to' => :'Array<String>',
112
112
  :'webhook_id' => :'String',
@@ -169,14 +169,14 @@ module MailSlurpClient
169
169
  self.from = attributes[:'from']
170
170
  end
171
171
 
172
- if attributes.key?(:'id')
173
- self.id = attributes[:'id']
174
- end
175
-
176
172
  if attributes.key?(:'inbox_id')
177
173
  self.inbox_id = attributes[:'inbox_id']
178
174
  end
179
175
 
176
+ if attributes.key?(:'message_id')
177
+ self.message_id = attributes[:'message_id']
178
+ end
179
+
180
180
  if attributes.key?(:'subject')
181
181
  self.subject = attributes[:'subject']
182
182
  end
@@ -233,8 +233,8 @@ module MailSlurpClient
233
233
  email_id == o.email_id &&
234
234
  event_name == o.event_name &&
235
235
  from == o.from &&
236
- id == o.id &&
237
236
  inbox_id == o.inbox_id &&
237
+ message_id == o.message_id &&
238
238
  subject == o.subject &&
239
239
  to == o.to &&
240
240
  webhook_id == o.webhook_id &&
@@ -250,7 +250,7 @@ module MailSlurpClient
250
250
  # Calculates hash code according to all attributes.
251
251
  # @return [Integer] Hash code
252
252
  def hash
253
- [attachment_meta_datas, bcc, cc, created_at, email_id, event_name, from, id, inbox_id, subject, to, webhook_id, webhook_name].hash
253
+ [attachment_meta_datas, bcc, cc, created_at, email_id, event_name, from, inbox_id, message_id, subject, to, webhook_id, webhook_name].hash
254
254
  end
255
255
 
256
256
  # Builds the object from hash
@@ -11,5 +11,5 @@ OpenAPI Generator version: 4.3.1
11
11
  =end
12
12
 
13
13
  module MailSlurpClient
14
- VERSION = '11.8.11'
14
+ VERSION = '11.9.2'
15
15
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mailslurp_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 11.8.11
4
+ version: 11.9.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - mailslurp
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-04-29 00:00:00.000000000 Z
11
+ date: 2021-05-02 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Create emails addresses in Ruby then send and receive real emails and
14
14
  attachments. See https://www.mailslurp.com/docs/ruby/ for full Ruby documentation.