mailslurp_client 4.3.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (50) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +8 -0
  3. data/Gemfile.lock +79 -0
  4. data/LICENSE +22 -0
  5. data/README.md +126 -0
  6. data/Rakefile +10 -0
  7. data/docs/BasicAuthOptions.md +9 -0
  8. data/docs/BulkSendEmailOptions.md +9 -0
  9. data/docs/CommonOperationsApi.md +166 -0
  10. data/docs/CreateWebhookOptions.md +10 -0
  11. data/docs/Email.md +22 -0
  12. data/docs/EmailAnalysis.md +12 -0
  13. data/docs/EmailPreview.md +9 -0
  14. data/docs/ExtraOperationsApi.md +855 -0
  15. data/docs/Inbox.md +11 -0
  16. data/docs/SendEmailOptions.md +16 -0
  17. data/docs/Webhook.md +13 -0
  18. data/git_push.sh +55 -0
  19. data/lib/mailslurp_client.rb +50 -0
  20. data/lib/mailslurp_client/api/common_operations_api.rb +175 -0
  21. data/lib/mailslurp_client/api/extra_operations_api.rb +879 -0
  22. data/lib/mailslurp_client/api_client.rb +389 -0
  23. data/lib/mailslurp_client/api_error.rb +38 -0
  24. data/lib/mailslurp_client/configuration.rb +251 -0
  25. data/lib/mailslurp_client/models/basic_auth_options.rb +202 -0
  26. data/lib/mailslurp_client/models/bulk_send_email_options.rb +201 -0
  27. data/lib/mailslurp_client/models/create_webhook_options.rb +202 -0
  28. data/lib/mailslurp_client/models/email.rb +350 -0
  29. data/lib/mailslurp_client/models/email_analysis.rb +245 -0
  30. data/lib/mailslurp_client/models/email_preview.rb +203 -0
  31. data/lib/mailslurp_client/models/inbox.rb +212 -0
  32. data/lib/mailslurp_client/models/send_email_options.rb +275 -0
  33. data/lib/mailslurp_client/models/webhook.rb +242 -0
  34. data/lib/mailslurp_client/version.rb +15 -0
  35. data/mailslurp_client.gemspec +45 -0
  36. data/spec/api/common_operations_api_spec.rb +71 -0
  37. data/spec/api/extra_operations_api_spec.rb +231 -0
  38. data/spec/api_client_spec.rb +226 -0
  39. data/spec/configuration_spec.rb +42 -0
  40. data/spec/models/basic_auth_options_spec.rb +47 -0
  41. data/spec/models/bulk_send_email_options_spec.rb +47 -0
  42. data/spec/models/create_webhook_options_spec.rb +53 -0
  43. data/spec/models/email_analysis_spec.rb +65 -0
  44. data/spec/models/email_preview_spec.rb +47 -0
  45. data/spec/models/email_spec.rb +125 -0
  46. data/spec/models/inbox_spec.rb +59 -0
  47. data/spec/models/send_email_options_spec.rb +89 -0
  48. data/spec/models/webhook_spec.rb +71 -0
  49. data/spec/spec_helper.rb +111 -0
  50. metadata +287 -0
@@ -0,0 +1,242 @@
1
+ =begin
2
+ #MailSlurp API
3
+
4
+ #For documentation see [developer guide](https://www.mailslurp.com/developers). [Create an account](https://app.mailslurp.com) in the MailSlurp Dashboard to [view your API Key](https://app). For all bugs, feature requests, or help please [see support](https://www.mailslurp.com/support/).
5
+
6
+ OpenAPI spec version: 0.0.1-alpha
7
+ Contact: contact@mailslurp.dev
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 3.3.4
10
+
11
+ =end
12
+
13
+ require 'date'
14
+
15
+ module MailSlurpClient
16
+ # Representation of a webhook for an inbox.
17
+ class Webhook
18
+ # Does Webhook expect basic authentication
19
+ attr_accessor :basic_auth
20
+
21
+ attr_accessor :created_at
22
+
23
+ # ID of the Webhook
24
+ attr_accessor :id
25
+
26
+ # The inbox that the Webhook will be triggered by
27
+ attr_accessor :inbox_id
28
+
29
+ attr_accessor :name
30
+
31
+ attr_accessor :updated_at
32
+
33
+ # Attribute mapping from ruby-style variable name to JSON key.
34
+ def self.attribute_map
35
+ {
36
+ :'basic_auth' => :'basicAuth',
37
+ :'created_at' => :'createdAt',
38
+ :'id' => :'id',
39
+ :'inbox_id' => :'inboxId',
40
+ :'name' => :'name',
41
+ :'updated_at' => :'updatedAt'
42
+ }
43
+ end
44
+
45
+ # Attribute type mapping.
46
+ def self.openapi_types
47
+ {
48
+ :'basic_auth' => :'BOOLEAN',
49
+ :'created_at' => :'DateTime',
50
+ :'id' => :'String',
51
+ :'inbox_id' => :'String',
52
+ :'name' => :'String',
53
+ :'updated_at' => :'DateTime'
54
+ }
55
+ end
56
+
57
+ # Initializes the object
58
+ # @param [Hash] attributes Model attributes in the form of hash
59
+ def initialize(attributes = {})
60
+ return unless attributes.is_a?(Hash)
61
+
62
+ # convert string to symbol for hash key
63
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
64
+
65
+ if attributes.has_key?(:'basicAuth')
66
+ self.basic_auth = attributes[:'basicAuth']
67
+ end
68
+
69
+ if attributes.has_key?(:'createdAt')
70
+ self.created_at = attributes[:'createdAt']
71
+ end
72
+
73
+ if attributes.has_key?(:'id')
74
+ self.id = attributes[:'id']
75
+ end
76
+
77
+ if attributes.has_key?(:'inboxId')
78
+ self.inbox_id = attributes[:'inboxId']
79
+ end
80
+
81
+ if attributes.has_key?(:'name')
82
+ self.name = attributes[:'name']
83
+ end
84
+
85
+ if attributes.has_key?(:'updatedAt')
86
+ self.updated_at = attributes[:'updatedAt']
87
+ end
88
+ end
89
+
90
+ # Show invalid properties with the reasons. Usually used together with valid?
91
+ # @return Array for valid properties with the reasons
92
+ def list_invalid_properties
93
+ invalid_properties = Array.new
94
+ if @created_at.nil?
95
+ invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
96
+ end
97
+
98
+ if @updated_at.nil?
99
+ invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
100
+ end
101
+
102
+ invalid_properties
103
+ end
104
+
105
+ # Check to see if the all the properties in the model are valid
106
+ # @return true if the model is valid
107
+ def valid?
108
+ return false if @created_at.nil?
109
+ return false if @updated_at.nil?
110
+ true
111
+ end
112
+
113
+ # Checks equality by comparing each attribute.
114
+ # @param [Object] Object to be compared
115
+ def ==(o)
116
+ return true if self.equal?(o)
117
+ self.class == o.class &&
118
+ basic_auth == o.basic_auth &&
119
+ created_at == o.created_at &&
120
+ id == o.id &&
121
+ inbox_id == o.inbox_id &&
122
+ name == o.name &&
123
+ updated_at == o.updated_at
124
+ end
125
+
126
+ # @see the `==` method
127
+ # @param [Object] Object to be compared
128
+ def eql?(o)
129
+ self == o
130
+ end
131
+
132
+ # Calculates hash code according to all attributes.
133
+ # @return [Fixnum] Hash code
134
+ def hash
135
+ [basic_auth, created_at, id, inbox_id, name, updated_at].hash
136
+ end
137
+
138
+ # Builds the object from hash
139
+ # @param [Hash] attributes Model attributes in the form of hash
140
+ # @return [Object] Returns the model itself
141
+ def build_from_hash(attributes)
142
+ return nil unless attributes.is_a?(Hash)
143
+ self.class.openapi_types.each_pair do |key, type|
144
+ if type =~ /\AArray<(.*)>/i
145
+ # check to ensure the input is an array given that the the attribute
146
+ # is documented as an array but the input is not
147
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
148
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
149
+ end
150
+ elsif !attributes[self.class.attribute_map[key]].nil?
151
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
152
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
153
+ end
154
+
155
+ self
156
+ end
157
+
158
+ # Deserializes the data based on type
159
+ # @param string type Data type
160
+ # @param string value Value to be deserialized
161
+ # @return [Object] Deserialized data
162
+ def _deserialize(type, value)
163
+ case type.to_sym
164
+ when :DateTime
165
+ DateTime.parse(value)
166
+ when :Date
167
+ Date.parse(value)
168
+ when :String
169
+ value.to_s
170
+ when :Integer
171
+ value.to_i
172
+ when :Float
173
+ value.to_f
174
+ when :BOOLEAN
175
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
176
+ true
177
+ else
178
+ false
179
+ end
180
+ when :Object
181
+ # generic object (usually a Hash), return directly
182
+ value
183
+ when /\AArray<(?<inner_type>.+)>\z/
184
+ inner_type = Regexp.last_match[:inner_type]
185
+ value.map { |v| _deserialize(inner_type, v) }
186
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
187
+ k_type = Regexp.last_match[:k_type]
188
+ v_type = Regexp.last_match[:v_type]
189
+ {}.tap do |hash|
190
+ value.each do |k, v|
191
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
192
+ end
193
+ end
194
+ else # model
195
+ temp_model = MailSlurpClient.const_get(type).new
196
+ temp_model.build_from_hash(value)
197
+ end
198
+ end
199
+
200
+ # Returns the string representation of the object
201
+ # @return [String] String presentation of the object
202
+ def to_s
203
+ to_hash.to_s
204
+ end
205
+
206
+ # to_body is an alias to to_hash (backward compatibility)
207
+ # @return [Hash] Returns the object in the form of hash
208
+ def to_body
209
+ to_hash
210
+ end
211
+
212
+ # Returns the object in the form of hash
213
+ # @return [Hash] Returns the object in the form of hash
214
+ def to_hash
215
+ hash = {}
216
+ self.class.attribute_map.each_pair do |attr, param|
217
+ value = self.send(attr)
218
+ next if value.nil?
219
+ hash[param] = _to_hash(value)
220
+ end
221
+ hash
222
+ end
223
+
224
+ # Outputs non-array value in the form of hash
225
+ # For object, use to_hash. Otherwise, just return the value
226
+ # @param [Object] value Any valid value
227
+ # @return [Hash] Returns the value in the form of hash
228
+ def _to_hash(value)
229
+ if value.is_a?(Array)
230
+ value.compact.map { |v| _to_hash(v) }
231
+ elsif value.is_a?(Hash)
232
+ {}.tap do |hash|
233
+ value.each { |k, v| hash[k] = _to_hash(v) }
234
+ end
235
+ elsif value.respond_to? :to_hash
236
+ value.to_hash
237
+ else
238
+ value
239
+ end
240
+ end
241
+ end
242
+ end
@@ -0,0 +1,15 @@
1
+ =begin
2
+ #MailSlurp API
3
+
4
+ #For documentation see [developer guide](https://www.mailslurp.com/developers). [Create an account](https://app.mailslurp.com) in the MailSlurp Dashboard to [view your API Key](https://app). For all bugs, feature requests, or help please [see support](https://www.mailslurp.com/support/).
5
+
6
+ OpenAPI spec version: 0.0.1-alpha
7
+ Contact: contact@mailslurp.dev
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 3.3.4
10
+
11
+ =end
12
+
13
+ module MailSlurpClient
14
+ VERSION = '4.3.3'
15
+ end
@@ -0,0 +1,45 @@
1
+ # -*- encoding: utf-8 -*-
2
+
3
+ =begin
4
+ #MailSlurp API
5
+
6
+ #For documentation see [developer guide](https://www.mailslurp.com/developers). [Create an account](https://app.mailslurp.com) in the MailSlurp Dashboard to [view your API Key](https://app). For all bugs, feature requests, or help please [see support](https://www.mailslurp.com/support/).
7
+
8
+ OpenAPI spec version: 0.0.1-alpha
9
+ Contact: contact@mailslurp.dev
10
+ Generated by: https://openapi-generator.tech
11
+ OpenAPI Generator version: 3.3.4
12
+
13
+ =end
14
+
15
+ $:.push File.expand_path("../lib", __FILE__)
16
+ require "mailslurp_client/version"
17
+
18
+ Gem::Specification.new do |s|
19
+ s.name = "mailslurp_client"
20
+ s.version = MailSlurpClient::VERSION
21
+ s.platform = Gem::Platform::RUBY
22
+ s.authors = ["MailSlurp"]
23
+ s.email = ["contact@mailslurp.dev"]
24
+ s.homepage = "https://github.com/mailslurp/mailslurp-client-ruby"
25
+ s.summary = "Official MailSlurp API Client"
26
+ s.description = "Send and receive real emails in Ruby. See https://www.mailslurp.com/developers/ for full Ruby documentation."
27
+ s.license = 'MIT'
28
+ s.required_ruby_version = ">= 1.9"
29
+
30
+ s.add_runtime_dependency 'typhoeus', '~> 1.0', '>= 1.0.1'
31
+ s.add_runtime_dependency 'json', '~> 2.1', '>= 2.1.0'
32
+
33
+ s.add_development_dependency 'rspec', '~> 3.6', '>= 3.6.0'
34
+ s.add_development_dependency 'vcr', '~> 3.0', '>= 3.0.1'
35
+ s.add_development_dependency 'webmock', '~> 1.24', '>= 1.24.3'
36
+ s.add_development_dependency 'autotest', '~> 4.4', '>= 4.4.6'
37
+ s.add_development_dependency 'autotest-rails-pure', '~> 4.1', '>= 4.1.2'
38
+ s.add_development_dependency 'autotest-growl', '~> 0.2', '>= 0.2.16'
39
+ s.add_development_dependency 'autotest-fsevent', '~> 0.2', '>= 0.2.12'
40
+
41
+ s.files = `find *`.split("\n").uniq.sort.select { |f| !f.empty? }
42
+ s.test_files = `find spec/*`.split("\n")
43
+ s.executables = []
44
+ s.require_paths = ["lib"]
45
+ end
@@ -0,0 +1,71 @@
1
+ =begin
2
+ #MailSlurp API
3
+
4
+ #For documentation see [developer guide](https://www.mailslurp.com/developers). [Create an account](https://app.mailslurp.com) in the MailSlurp Dashboard to [view your API Key](https://app). For all bugs, feature requests, or help please [see support](https://www.mailslurp.com/support/).
5
+
6
+ OpenAPI spec version: 0.0.1-alpha
7
+ Contact: contact@mailslurp.dev
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 3.3.4
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+
16
+ # Unit tests for MailSlurpClient::CommonOperationsApi
17
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
18
+ # Please update as you see appropriate
19
+ describe 'CommonOperationsApi' do
20
+ before do
21
+ # run before each test
22
+ @instance = MailSlurpClient::CommonOperationsApi.new
23
+ end
24
+
25
+ after do
26
+ # run after each test
27
+ end
28
+
29
+ describe 'test an instance of CommonOperationsApi' do
30
+ it 'should create an instance of CommonOperationsApi' do
31
+ expect(@instance).to be_instance_of(MailSlurpClient::CommonOperationsApi)
32
+ end
33
+ end
34
+
35
+ # unit tests for create_new_email_address
36
+ # Create new email address
37
+ # Returns an Inbox with an &#x60;id&#x60; and an &#x60;emailAddress&#x60;
38
+ # @param [Hash] opts the optional parameters
39
+ # @return [Inbox]
40
+ describe 'create_new_email_address test' do
41
+ it 'should work' do
42
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
43
+ end
44
+ end
45
+
46
+ # unit tests for send_email_simple
47
+ # Send an email from a random email address
48
+ # To specify an email address first create an inbox and use that with the other send email methods
49
+ # @param send_email_options sendEmailOptions
50
+ # @param [Hash] opts the optional parameters
51
+ # @return [nil]
52
+ describe 'send_email_simple test' do
53
+ it 'should work' do
54
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
55
+ end
56
+ end
57
+
58
+ # unit tests for wait_for_latest_email
59
+ # Fetch inbox&#39;s latest email or if empty wait for email to arrive
60
+ # Will return either the last received email or wait for an email to arrive and return that. If you need to wait for an email for a non-empty inbox see the other receive methods.
61
+ # @param [Hash] opts the optional parameters
62
+ # @option opts [String] :inbox_email_address Email address of the inbox we are fetching emails from
63
+ # @option opts [String] :inbox_id Id of the inbox we are fetching emails from
64
+ # @return [Email]
65
+ describe 'wait_for_latest_email test' do
66
+ it 'should work' do
67
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
68
+ end
69
+ end
70
+
71
+ end
@@ -0,0 +1,231 @@
1
+ =begin
2
+ #MailSlurp API
3
+
4
+ #For documentation see [developer guide](https://www.mailslurp.com/developers). [Create an account](https://app.mailslurp.com) in the MailSlurp Dashboard to [view your API Key](https://app). For all bugs, feature requests, or help please [see support](https://www.mailslurp.com/support/).
5
+
6
+ OpenAPI spec version: 0.0.1-alpha
7
+ Contact: contact@mailslurp.dev
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 3.3.4
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+
16
+ # Unit tests for MailSlurpClient::ExtraOperationsApi
17
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
18
+ # Please update as you see appropriate
19
+ describe 'ExtraOperationsApi' do
20
+ before do
21
+ # run before each test
22
+ @instance = MailSlurpClient::ExtraOperationsApi.new
23
+ end
24
+
25
+ after do
26
+ # run after each test
27
+ end
28
+
29
+ describe 'test an instance of ExtraOperationsApi' do
30
+ it 'should create an instance of ExtraOperationsApi' do
31
+ expect(@instance).to be_instance_of(MailSlurpClient::ExtraOperationsApi)
32
+ end
33
+ end
34
+
35
+ # unit tests for bulk_create_inboxes
36
+ # Bulk create Inboxes (email addresses)
37
+ # Enterprise Plan Required
38
+ # @param count Number of inboxes to be created in bulk
39
+ # @param [Hash] opts the optional parameters
40
+ # @return [Array<Inbox>]
41
+ describe 'bulk_create_inboxes test' do
42
+ it 'should work' do
43
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
44
+ end
45
+ end
46
+
47
+ # unit tests for bulk_delete_inboxes
48
+ # Bulk Delete Inboxes
49
+ # Enterprise Plan Required
50
+ # @param request_body ids
51
+ # @param [Hash] opts the optional parameters
52
+ # @return [nil]
53
+ describe 'bulk_delete_inboxes test' do
54
+ it 'should work' do
55
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
56
+ end
57
+ end
58
+
59
+ # unit tests for bulk_send_emails
60
+ # Bulk Send Emails
61
+ # Enterprise Plan Required
62
+ # @param bulk_send_email_options bulkSendEmailOptions
63
+ # @param [Hash] opts the optional parameters
64
+ # @return [nil]
65
+ describe 'bulk_send_emails test' do
66
+ it 'should work' do
67
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
68
+ end
69
+ end
70
+
71
+ # unit tests for create_inbox
72
+ # Create an Inbox (email address)
73
+ # Create a new inbox and ephemeral email address to send and receive from. This is a necessary step before sending or receiving emails. The response contains the inbox&#39;s ID and its associated email address. It is recommended that you create a new inbox during each test method so that it is unique and empty
74
+ # @param [Hash] opts the optional parameters
75
+ # @return [Inbox]
76
+ describe 'create_inbox test' do
77
+ it 'should work' do
78
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
79
+ end
80
+ end
81
+
82
+ # unit tests for create_webhook
83
+ # Attach a WebHook URL to an inbox
84
+ # Get notified whenever an inbox receives an email via a WebHook URL. An emailID will be posted to this URL every time an email is received for this inbox. The URL must be publicly reachable by the MailSlurp server. You can provide basicAuth values if you wish to secure this endpoint.
85
+ # @param inbox_id inboxId
86
+ # @param create_webhook_options options
87
+ # @param [Hash] opts the optional parameters
88
+ # @return [Webhook]
89
+ describe 'create_webhook test' do
90
+ it 'should work' do
91
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
92
+ end
93
+ end
94
+
95
+ # unit tests for delete_email
96
+ # Delete Email
97
+ # Deletes an email and removes it from the inbox
98
+ # @param email_id emailId
99
+ # @param [Hash] opts the optional parameters
100
+ # @return [nil]
101
+ describe 'delete_email test' do
102
+ it 'should work' do
103
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
104
+ end
105
+ end
106
+
107
+ # unit tests for delete_inbox
108
+ # Delete Inbox / Email Address
109
+ # Permanently delete an inbox and associated email address
110
+ # @param inbox_id inboxId
111
+ # @param [Hash] opts the optional parameters
112
+ # @return [nil]
113
+ describe 'delete_inbox test' do
114
+ it 'should work' do
115
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
116
+ end
117
+ end
118
+
119
+ # unit tests for delete_webhook
120
+ # Delete and disable a WebHook for an Inbox
121
+ # @param inbox_id inboxId
122
+ # @param webhook_id webhookId
123
+ # @param [Hash] opts the optional parameters
124
+ # @return [nil]
125
+ describe 'delete_webhook test' do
126
+ it 'should work' do
127
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
128
+ end
129
+ end
130
+
131
+ # unit tests for download_attachment
132
+ # Get email attachment
133
+ # Returns the specified attachment for a given email as a byte stream (file download). Get the attachmentId from the email response. Requires enterprise account.
134
+ # @param attachment_id attachmentId
135
+ # @param email_id emailId
136
+ # @param [Hash] opts the optional parameters
137
+ # @return [nil]
138
+ describe 'download_attachment test' do
139
+ it 'should work' do
140
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
141
+ end
142
+ end
143
+
144
+ # unit tests for get_email
145
+ # Get Email Content
146
+ # Returns a email summary object with headers and content. To retrieve the raw unparsed email use the getRawMessage endpoint
147
+ # @param email_id emailId
148
+ # @param [Hash] opts the optional parameters
149
+ # @return [Email]
150
+ describe 'get_email test' do
151
+ it 'should work' do
152
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
153
+ end
154
+ end
155
+
156
+ # unit tests for get_emails
157
+ # List Emails in an Inbox / EmailAddress
158
+ # List emails that an inbox has received. Only emails that are sent to the inbox&#39;s email address will appear in the inbox. It may take several seconds for any email you send to an inbox&#39;s email address to appear in the inbox. To make this endpoint wait for a minimum number of emails use the &#x60;minCount&#x60; parameter. The server will retry the inbox database until the &#x60;minCount&#x60; is satisfied or the &#x60;retryTimeout&#x60; is reached
159
+ # @param inbox_id Id of inbox that emails belongs to
160
+ # @param [Hash] opts the optional parameters
161
+ # @option opts [Integer] :limit Limit the result set, ordered by descending received date time
162
+ # @option opts [Integer] :min_count Minimum acceptable email count. Will cause request to hang (and retry) until minCount is satisfied or retryTimeout is reached.
163
+ # @option opts [Integer] :retry_timeout Maximum milliseconds to spend retrying inbox database until minCount emails are returned
164
+ # @option opts [DateTime] :since Exclude emails received before this ISO 8601 date time
165
+ # @return [Array<EmailPreview>]
166
+ describe 'get_emails test' do
167
+ it 'should work' do
168
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
169
+ end
170
+ end
171
+
172
+ # unit tests for get_inbox
173
+ # Get Inbox / EmailAddress
174
+ # Returns an inbox&#39;s properties, including its email address and ID.
175
+ # @param inbox_id inboxId
176
+ # @param [Hash] opts the optional parameters
177
+ # @return [Inbox]
178
+ describe 'get_inbox test' do
179
+ it 'should work' do
180
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
181
+ end
182
+ end
183
+
184
+ # unit tests for get_inboxes
185
+ # List Inboxes / Email Addresses
186
+ # List the inboxes you have created
187
+ # @param [Hash] opts the optional parameters
188
+ # @return [Array<Inbox>]
189
+ describe 'get_inboxes test' do
190
+ it 'should work' do
191
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
192
+ end
193
+ end
194
+
195
+ # unit tests for get_raw_email_contents
196
+ # Get Raw Email Content
197
+ # Returns a raw, unparsed and unprocessed email
198
+ # @param email_id emailId
199
+ # @param [Hash] opts the optional parameters
200
+ # @return [String]
201
+ describe 'get_raw_email_contents test' do
202
+ it 'should work' do
203
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
204
+ end
205
+ end
206
+
207
+ # unit tests for get_webhooks
208
+ # Get all WebHooks for an Inbox
209
+ # @param inbox_id inboxId
210
+ # @param [Hash] opts the optional parameters
211
+ # @return [Array<Webhook>]
212
+ describe 'get_webhooks test' do
213
+ it 'should work' do
214
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
215
+ end
216
+ end
217
+
218
+ # unit tests for send_email
219
+ # Send Email
220
+ # Send an email from the inbox&#39;s email address. Specify the email recipients and contents in the request body. See the &#x60;SendEmailOptions&#x60; for more information. Note the &#x60;inboxId&#x60; refers to the inbox&#39;s id NOT its email address
221
+ # @param inbox_id inboxId
222
+ # @param send_email_options sendEmailOptions
223
+ # @param [Hash] opts the optional parameters
224
+ # @return [nil]
225
+ describe 'send_email test' do
226
+ it 'should work' do
227
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
228
+ end
229
+ end
230
+
231
+ end