mailslurp_client 15.17.40 → 15.18.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +23 -22
- data/lib/mailslurp_client/api/email_controller_api.rb +62 -0
- data/lib/mailslurp_client/api/tools_controller_api.rb +175 -0
- data/lib/mailslurp_client/models/alias_projection.rb +39 -39
- data/lib/mailslurp_client/models/attachment_projection.rb +29 -29
- data/lib/mailslurp_client/models/bounce_projection.rb +15 -15
- data/lib/mailslurp_client/models/bounce_recipient_projection.rb +15 -15
- data/lib/mailslurp_client/models/check_email_body_results.rb +259 -0
- data/lib/mailslurp_client/models/connector_projection.rb +24 -24
- data/lib/mailslurp_client/models/connector_sync_event_projection.rb +15 -15
- data/lib/mailslurp_client/models/contact_projection.rb +10 -10
- data/lib/mailslurp_client/models/email_projection.rb +21 -21
- data/lib/mailslurp_client/models/expired_inbox_record_projection.rb +19 -19
- data/lib/mailslurp_client/models/fake_email_dto.rb +305 -0
- data/lib/mailslurp_client/models/fake_email_preview.rb +291 -0
- data/lib/mailslurp_client/models/fake_email_result.rb +206 -0
- data/lib/mailslurp_client/models/image_issue.rb +282 -0
- data/lib/mailslurp_client/models/imap_smtp_access_details.rb +15 -4
- data/lib/mailslurp_client/models/inbox_forwarder_event_projection.rb +20 -20
- data/lib/mailslurp_client/models/inbox_replier_event_projection.rb +20 -20
- data/lib/mailslurp_client/models/link_issue.rb +282 -0
- data/lib/mailslurp_client/models/list_unsubscribe_recipient_projection.rb +15 -15
- data/lib/mailslurp_client/models/missed_email_projection.rb +10 -10
- data/lib/mailslurp_client/models/new_fake_email_address_result.rb +211 -0
- data/lib/mailslurp_client/models/phone_number_projection.rb +15 -15
- data/lib/mailslurp_client/models/sent_email_projection.rb +44 -44
- data/lib/mailslurp_client/models/sms_projection.rb +29 -29
- data/lib/mailslurp_client/models/spelling_issue.rb +287 -0
- data/lib/mailslurp_client/models/template_projection.rb +17 -17
- data/lib/mailslurp_client/models/thread_projection.rb +41 -41
- data/lib/mailslurp_client/models/tracking_pixel_projection.rb +27 -27
- data/lib/mailslurp_client/models/unknown_missed_email_projection.rb +10 -10
- data/lib/mailslurp_client/models/webhook_projection.rb +25 -25
- data/lib/mailslurp_client/version.rb +1 -1
- data/lib/mailslurp_client.rb +8 -0
- metadata +10 -2
@@ -0,0 +1,206 @@
|
|
1
|
+
=begin
|
2
|
+
#MailSlurp API
|
3
|
+
|
4
|
+
#MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 6.5.2
|
7
|
+
Contact: contact@mailslurp.dev
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 4.3.1
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
|
15
|
+
module MailSlurpClient
|
16
|
+
class FakeEmailResult
|
17
|
+
attr_accessor :email
|
18
|
+
|
19
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
20
|
+
def self.attribute_map
|
21
|
+
{
|
22
|
+
:'email' => :'email'
|
23
|
+
}
|
24
|
+
end
|
25
|
+
|
26
|
+
# Attribute type mapping.
|
27
|
+
def self.openapi_types
|
28
|
+
{
|
29
|
+
:'email' => :'FakeEmailDto'
|
30
|
+
}
|
31
|
+
end
|
32
|
+
|
33
|
+
# List of attributes with nullable: true
|
34
|
+
def self.openapi_nullable
|
35
|
+
Set.new([
|
36
|
+
])
|
37
|
+
end
|
38
|
+
|
39
|
+
# Initializes the object
|
40
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
41
|
+
def initialize(attributes = {})
|
42
|
+
if (!attributes.is_a?(Hash))
|
43
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `MailSlurpClient::FakeEmailResult` initialize method"
|
44
|
+
end
|
45
|
+
|
46
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
47
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
48
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
49
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `MailSlurpClient::FakeEmailResult`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
50
|
+
end
|
51
|
+
h[k.to_sym] = v
|
52
|
+
}
|
53
|
+
|
54
|
+
if attributes.key?(:'email')
|
55
|
+
self.email = attributes[:'email']
|
56
|
+
end
|
57
|
+
end
|
58
|
+
|
59
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
60
|
+
# @return Array for valid properties with the reasons
|
61
|
+
def list_invalid_properties
|
62
|
+
invalid_properties = Array.new
|
63
|
+
invalid_properties
|
64
|
+
end
|
65
|
+
|
66
|
+
# Check to see if the all the properties in the model are valid
|
67
|
+
# @return true if the model is valid
|
68
|
+
def valid?
|
69
|
+
true
|
70
|
+
end
|
71
|
+
|
72
|
+
# Checks equality by comparing each attribute.
|
73
|
+
# @param [Object] Object to be compared
|
74
|
+
def ==(o)
|
75
|
+
return true if self.equal?(o)
|
76
|
+
self.class == o.class &&
|
77
|
+
email == o.email
|
78
|
+
end
|
79
|
+
|
80
|
+
# @see the `==` method
|
81
|
+
# @param [Object] Object to be compared
|
82
|
+
def eql?(o)
|
83
|
+
self == o
|
84
|
+
end
|
85
|
+
|
86
|
+
# Calculates hash code according to all attributes.
|
87
|
+
# @return [Integer] Hash code
|
88
|
+
def hash
|
89
|
+
[email].hash
|
90
|
+
end
|
91
|
+
|
92
|
+
# Builds the object from hash
|
93
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
94
|
+
# @return [Object] Returns the model itself
|
95
|
+
def self.build_from_hash(attributes)
|
96
|
+
new.build_from_hash(attributes)
|
97
|
+
end
|
98
|
+
|
99
|
+
# Builds the object from hash
|
100
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
101
|
+
# @return [Object] Returns the model itself
|
102
|
+
def build_from_hash(attributes)
|
103
|
+
return nil unless attributes.is_a?(Hash)
|
104
|
+
self.class.openapi_types.each_pair do |key, type|
|
105
|
+
if type =~ /\AArray<(.*)>/i
|
106
|
+
# check to ensure the input is an array given that the attribute
|
107
|
+
# is documented as an array but the input is not
|
108
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
109
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
110
|
+
end
|
111
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
112
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
113
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
114
|
+
end
|
115
|
+
|
116
|
+
self
|
117
|
+
end
|
118
|
+
|
119
|
+
# Deserializes the data based on type
|
120
|
+
# @param string type Data type
|
121
|
+
# @param string value Value to be deserialized
|
122
|
+
# @return [Object] Deserialized data
|
123
|
+
def _deserialize(type, value)
|
124
|
+
case type.to_sym
|
125
|
+
when :DateTime
|
126
|
+
DateTime.parse(value)
|
127
|
+
when :Date
|
128
|
+
Date.parse(value)
|
129
|
+
when :String
|
130
|
+
value.to_s
|
131
|
+
when :Integer
|
132
|
+
value.to_i
|
133
|
+
when :Float
|
134
|
+
value.to_f
|
135
|
+
when :Boolean
|
136
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
137
|
+
true
|
138
|
+
else
|
139
|
+
false
|
140
|
+
end
|
141
|
+
when :Object
|
142
|
+
# generic object (usually a Hash), return directly
|
143
|
+
value
|
144
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
145
|
+
inner_type = Regexp.last_match[:inner_type]
|
146
|
+
value.map { |v| _deserialize(inner_type, v) }
|
147
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
148
|
+
k_type = Regexp.last_match[:k_type]
|
149
|
+
v_type = Regexp.last_match[:v_type]
|
150
|
+
{}.tap do |hash|
|
151
|
+
value.each do |k, v|
|
152
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
153
|
+
end
|
154
|
+
end
|
155
|
+
else # model
|
156
|
+
MailSlurpClient.const_get(type).build_from_hash(value)
|
157
|
+
end
|
158
|
+
end
|
159
|
+
|
160
|
+
# Returns the string representation of the object
|
161
|
+
# @return [String] String presentation of the object
|
162
|
+
def to_s
|
163
|
+
to_hash.to_s
|
164
|
+
end
|
165
|
+
|
166
|
+
# to_body is an alias to to_hash (backward compatibility)
|
167
|
+
# @return [Hash] Returns the object in the form of hash
|
168
|
+
def to_body
|
169
|
+
to_hash
|
170
|
+
end
|
171
|
+
|
172
|
+
# Returns the object in the form of hash
|
173
|
+
# @return [Hash] Returns the object in the form of hash
|
174
|
+
def to_hash
|
175
|
+
hash = {}
|
176
|
+
self.class.attribute_map.each_pair do |attr, param|
|
177
|
+
value = self.send(attr)
|
178
|
+
if value.nil?
|
179
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
180
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
181
|
+
end
|
182
|
+
|
183
|
+
hash[param] = _to_hash(value)
|
184
|
+
end
|
185
|
+
hash
|
186
|
+
end
|
187
|
+
|
188
|
+
# Outputs non-array value in the form of hash
|
189
|
+
# For object, use to_hash. Otherwise, just return the value
|
190
|
+
# @param [Object] value Any valid value
|
191
|
+
# @return [Hash] Returns the value in the form of hash
|
192
|
+
def _to_hash(value)
|
193
|
+
if value.is_a?(Array)
|
194
|
+
value.compact.map { |v| _to_hash(v) }
|
195
|
+
elsif value.is_a?(Hash)
|
196
|
+
{}.tap do |hash|
|
197
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
198
|
+
end
|
199
|
+
elsif value.respond_to? :to_hash
|
200
|
+
value.to_hash
|
201
|
+
else
|
202
|
+
value
|
203
|
+
end
|
204
|
+
end
|
205
|
+
end
|
206
|
+
end
|
@@ -0,0 +1,282 @@
|
|
1
|
+
=begin
|
2
|
+
#MailSlurp API
|
3
|
+
|
4
|
+
#MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 6.5.2
|
7
|
+
Contact: contact@mailslurp.dev
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 4.3.1
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
|
15
|
+
module MailSlurpClient
|
16
|
+
class ImageIssue
|
17
|
+
attr_accessor :url
|
18
|
+
|
19
|
+
attr_accessor :response_status
|
20
|
+
|
21
|
+
attr_accessor :severity
|
22
|
+
|
23
|
+
attr_accessor :message
|
24
|
+
|
25
|
+
class EnumAttributeValidator
|
26
|
+
attr_reader :datatype
|
27
|
+
attr_reader :allowable_values
|
28
|
+
|
29
|
+
def initialize(datatype, allowable_values)
|
30
|
+
@allowable_values = allowable_values.map do |value|
|
31
|
+
case datatype.to_s
|
32
|
+
when /Integer/i
|
33
|
+
value.to_i
|
34
|
+
when /Float/i
|
35
|
+
value.to_f
|
36
|
+
else
|
37
|
+
value
|
38
|
+
end
|
39
|
+
end
|
40
|
+
end
|
41
|
+
|
42
|
+
def valid?(value)
|
43
|
+
!value || allowable_values.include?(value)
|
44
|
+
end
|
45
|
+
end
|
46
|
+
|
47
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
48
|
+
def self.attribute_map
|
49
|
+
{
|
50
|
+
:'url' => :'url',
|
51
|
+
:'response_status' => :'responseStatus',
|
52
|
+
:'severity' => :'severity',
|
53
|
+
:'message' => :'message'
|
54
|
+
}
|
55
|
+
end
|
56
|
+
|
57
|
+
# Attribute type mapping.
|
58
|
+
def self.openapi_types
|
59
|
+
{
|
60
|
+
:'url' => :'String',
|
61
|
+
:'response_status' => :'Integer',
|
62
|
+
:'severity' => :'String',
|
63
|
+
:'message' => :'String'
|
64
|
+
}
|
65
|
+
end
|
66
|
+
|
67
|
+
# List of attributes with nullable: true
|
68
|
+
def self.openapi_nullable
|
69
|
+
Set.new([
|
70
|
+
])
|
71
|
+
end
|
72
|
+
|
73
|
+
# Initializes the object
|
74
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
75
|
+
def initialize(attributes = {})
|
76
|
+
if (!attributes.is_a?(Hash))
|
77
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `MailSlurpClient::ImageIssue` initialize method"
|
78
|
+
end
|
79
|
+
|
80
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
81
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
82
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
83
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `MailSlurpClient::ImageIssue`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
84
|
+
end
|
85
|
+
h[k.to_sym] = v
|
86
|
+
}
|
87
|
+
|
88
|
+
if attributes.key?(:'url')
|
89
|
+
self.url = attributes[:'url']
|
90
|
+
end
|
91
|
+
|
92
|
+
if attributes.key?(:'response_status')
|
93
|
+
self.response_status = attributes[:'response_status']
|
94
|
+
end
|
95
|
+
|
96
|
+
if attributes.key?(:'severity')
|
97
|
+
self.severity = attributes[:'severity']
|
98
|
+
end
|
99
|
+
|
100
|
+
if attributes.key?(:'message')
|
101
|
+
self.message = attributes[:'message']
|
102
|
+
end
|
103
|
+
end
|
104
|
+
|
105
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
106
|
+
# @return Array for valid properties with the reasons
|
107
|
+
def list_invalid_properties
|
108
|
+
invalid_properties = Array.new
|
109
|
+
if @url.nil?
|
110
|
+
invalid_properties.push('invalid value for "url", url cannot be nil.')
|
111
|
+
end
|
112
|
+
|
113
|
+
if @severity.nil?
|
114
|
+
invalid_properties.push('invalid value for "severity", severity cannot be nil.')
|
115
|
+
end
|
116
|
+
|
117
|
+
if @message.nil?
|
118
|
+
invalid_properties.push('invalid value for "message", message cannot be nil.')
|
119
|
+
end
|
120
|
+
|
121
|
+
invalid_properties
|
122
|
+
end
|
123
|
+
|
124
|
+
# Check to see if the all the properties in the model are valid
|
125
|
+
# @return true if the model is valid
|
126
|
+
def valid?
|
127
|
+
return false if @url.nil?
|
128
|
+
return false if @severity.nil?
|
129
|
+
severity_validator = EnumAttributeValidator.new('String', ["Warning", "Error"])
|
130
|
+
return false unless severity_validator.valid?(@severity)
|
131
|
+
return false if @message.nil?
|
132
|
+
true
|
133
|
+
end
|
134
|
+
|
135
|
+
# Custom attribute writer method checking allowed values (enum).
|
136
|
+
# @param [Object] severity Object to be assigned
|
137
|
+
def severity=(severity)
|
138
|
+
validator = EnumAttributeValidator.new('String', ["Warning", "Error"])
|
139
|
+
unless validator.valid?(severity)
|
140
|
+
fail ArgumentError, "invalid value for \"severity\", must be one of #{validator.allowable_values}."
|
141
|
+
end
|
142
|
+
@severity = severity
|
143
|
+
end
|
144
|
+
|
145
|
+
# Checks equality by comparing each attribute.
|
146
|
+
# @param [Object] Object to be compared
|
147
|
+
def ==(o)
|
148
|
+
return true if self.equal?(o)
|
149
|
+
self.class == o.class &&
|
150
|
+
url == o.url &&
|
151
|
+
response_status == o.response_status &&
|
152
|
+
severity == o.severity &&
|
153
|
+
message == o.message
|
154
|
+
end
|
155
|
+
|
156
|
+
# @see the `==` method
|
157
|
+
# @param [Object] Object to be compared
|
158
|
+
def eql?(o)
|
159
|
+
self == o
|
160
|
+
end
|
161
|
+
|
162
|
+
# Calculates hash code according to all attributes.
|
163
|
+
# @return [Integer] Hash code
|
164
|
+
def hash
|
165
|
+
[url, response_status, severity, message].hash
|
166
|
+
end
|
167
|
+
|
168
|
+
# Builds the object from hash
|
169
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
170
|
+
# @return [Object] Returns the model itself
|
171
|
+
def self.build_from_hash(attributes)
|
172
|
+
new.build_from_hash(attributes)
|
173
|
+
end
|
174
|
+
|
175
|
+
# Builds the object from hash
|
176
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
177
|
+
# @return [Object] Returns the model itself
|
178
|
+
def build_from_hash(attributes)
|
179
|
+
return nil unless attributes.is_a?(Hash)
|
180
|
+
self.class.openapi_types.each_pair do |key, type|
|
181
|
+
if type =~ /\AArray<(.*)>/i
|
182
|
+
# check to ensure the input is an array given that the attribute
|
183
|
+
# is documented as an array but the input is not
|
184
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
185
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
186
|
+
end
|
187
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
188
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
189
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
190
|
+
end
|
191
|
+
|
192
|
+
self
|
193
|
+
end
|
194
|
+
|
195
|
+
# Deserializes the data based on type
|
196
|
+
# @param string type Data type
|
197
|
+
# @param string value Value to be deserialized
|
198
|
+
# @return [Object] Deserialized data
|
199
|
+
def _deserialize(type, value)
|
200
|
+
case type.to_sym
|
201
|
+
when :DateTime
|
202
|
+
DateTime.parse(value)
|
203
|
+
when :Date
|
204
|
+
Date.parse(value)
|
205
|
+
when :String
|
206
|
+
value.to_s
|
207
|
+
when :Integer
|
208
|
+
value.to_i
|
209
|
+
when :Float
|
210
|
+
value.to_f
|
211
|
+
when :Boolean
|
212
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
213
|
+
true
|
214
|
+
else
|
215
|
+
false
|
216
|
+
end
|
217
|
+
when :Object
|
218
|
+
# generic object (usually a Hash), return directly
|
219
|
+
value
|
220
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
221
|
+
inner_type = Regexp.last_match[:inner_type]
|
222
|
+
value.map { |v| _deserialize(inner_type, v) }
|
223
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
224
|
+
k_type = Regexp.last_match[:k_type]
|
225
|
+
v_type = Regexp.last_match[:v_type]
|
226
|
+
{}.tap do |hash|
|
227
|
+
value.each do |k, v|
|
228
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
229
|
+
end
|
230
|
+
end
|
231
|
+
else # model
|
232
|
+
MailSlurpClient.const_get(type).build_from_hash(value)
|
233
|
+
end
|
234
|
+
end
|
235
|
+
|
236
|
+
# Returns the string representation of the object
|
237
|
+
# @return [String] String presentation of the object
|
238
|
+
def to_s
|
239
|
+
to_hash.to_s
|
240
|
+
end
|
241
|
+
|
242
|
+
# to_body is an alias to to_hash (backward compatibility)
|
243
|
+
# @return [Hash] Returns the object in the form of hash
|
244
|
+
def to_body
|
245
|
+
to_hash
|
246
|
+
end
|
247
|
+
|
248
|
+
# Returns the object in the form of hash
|
249
|
+
# @return [Hash] Returns the object in the form of hash
|
250
|
+
def to_hash
|
251
|
+
hash = {}
|
252
|
+
self.class.attribute_map.each_pair do |attr, param|
|
253
|
+
value = self.send(attr)
|
254
|
+
if value.nil?
|
255
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
256
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
257
|
+
end
|
258
|
+
|
259
|
+
hash[param] = _to_hash(value)
|
260
|
+
end
|
261
|
+
hash
|
262
|
+
end
|
263
|
+
|
264
|
+
# Outputs non-array value in the form of hash
|
265
|
+
# For object, use to_hash. Otherwise, just return the value
|
266
|
+
# @param [Object] value Any valid value
|
267
|
+
# @return [Hash] Returns the value in the form of hash
|
268
|
+
def _to_hash(value)
|
269
|
+
if value.is_a?(Array)
|
270
|
+
value.compact.map { |v| _to_hash(v) }
|
271
|
+
elsif value.is_a?(Hash)
|
272
|
+
{}.tap do |hash|
|
273
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
274
|
+
end
|
275
|
+
elsif value.respond_to? :to_hash
|
276
|
+
value.to_hash
|
277
|
+
else
|
278
|
+
value
|
279
|
+
end
|
280
|
+
end
|
281
|
+
end
|
282
|
+
end
|
@@ -51,6 +51,9 @@ module MailSlurpClient
|
|
51
51
|
# IMAP password for login
|
52
52
|
attr_accessor :imap_password
|
53
53
|
|
54
|
+
# Mail from domain or SMTP HELO value
|
55
|
+
attr_accessor :mail_from_domain
|
56
|
+
|
54
57
|
# Attribute mapping from ruby-style variable name to JSON key.
|
55
58
|
def self.attribute_map
|
56
59
|
{
|
@@ -65,7 +68,8 @@ module MailSlurpClient
|
|
65
68
|
:'imap_server_host' => :'imapServerHost',
|
66
69
|
:'imap_server_port' => :'imapServerPort',
|
67
70
|
:'imap_username' => :'imapUsername',
|
68
|
-
:'imap_password' => :'imapPassword'
|
71
|
+
:'imap_password' => :'imapPassword',
|
72
|
+
:'mail_from_domain' => :'mailFromDomain'
|
69
73
|
}
|
70
74
|
end
|
71
75
|
|
@@ -83,13 +87,15 @@ module MailSlurpClient
|
|
83
87
|
:'imap_server_host' => :'String',
|
84
88
|
:'imap_server_port' => :'Integer',
|
85
89
|
:'imap_username' => :'String',
|
86
|
-
:'imap_password' => :'String'
|
90
|
+
:'imap_password' => :'String',
|
91
|
+
:'mail_from_domain' => :'String'
|
87
92
|
}
|
88
93
|
end
|
89
94
|
|
90
95
|
# List of attributes with nullable: true
|
91
96
|
def self.openapi_nullable
|
92
97
|
Set.new([
|
98
|
+
:'mail_from_domain'
|
93
99
|
])
|
94
100
|
end
|
95
101
|
|
@@ -155,6 +161,10 @@ module MailSlurpClient
|
|
155
161
|
if attributes.key?(:'imap_password')
|
156
162
|
self.imap_password = attributes[:'imap_password']
|
157
163
|
end
|
164
|
+
|
165
|
+
if attributes.key?(:'mail_from_domain')
|
166
|
+
self.mail_from_domain = attributes[:'mail_from_domain']
|
167
|
+
end
|
158
168
|
end
|
159
169
|
|
160
170
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -246,7 +256,8 @@ module MailSlurpClient
|
|
246
256
|
imap_server_host == o.imap_server_host &&
|
247
257
|
imap_server_port == o.imap_server_port &&
|
248
258
|
imap_username == o.imap_username &&
|
249
|
-
imap_password == o.imap_password
|
259
|
+
imap_password == o.imap_password &&
|
260
|
+
mail_from_domain == o.mail_from_domain
|
250
261
|
end
|
251
262
|
|
252
263
|
# @see the `==` method
|
@@ -258,7 +269,7 @@ module MailSlurpClient
|
|
258
269
|
# Calculates hash code according to all attributes.
|
259
270
|
# @return [Integer] Hash code
|
260
271
|
def hash
|
261
|
-
[secure_smtp_server_host, secure_smtp_server_port, secure_smtp_username, secure_smtp_password, smtp_server_host, smtp_server_port, smtp_username, smtp_password, imap_server_host, imap_server_port, imap_username, imap_password].hash
|
272
|
+
[secure_smtp_server_host, secure_smtp_server_port, secure_smtp_username, secure_smtp_password, smtp_server_host, smtp_server_port, smtp_username, smtp_password, imap_server_host, imap_server_port, imap_username, imap_password, mail_from_domain].hash
|
262
273
|
end
|
263
274
|
|
264
275
|
# Builds the object from hash
|
@@ -15,16 +15,16 @@ require 'date'
|
|
15
15
|
module MailSlurpClient
|
16
16
|
# Inbox forwarder event
|
17
17
|
class InboxForwarderEventProjection
|
18
|
-
attr_accessor :created_at
|
19
|
-
|
20
|
-
attr_accessor :user_id
|
21
|
-
|
22
18
|
attr_accessor :email_id
|
23
19
|
|
24
20
|
attr_accessor :inbox_id
|
25
21
|
|
22
|
+
attr_accessor :user_id
|
23
|
+
|
26
24
|
attr_accessor :forwarder_id
|
27
25
|
|
26
|
+
attr_accessor :created_at
|
27
|
+
|
28
28
|
attr_accessor :message
|
29
29
|
|
30
30
|
attr_accessor :id
|
@@ -56,11 +56,11 @@ module MailSlurpClient
|
|
56
56
|
# Attribute mapping from ruby-style variable name to JSON key.
|
57
57
|
def self.attribute_map
|
58
58
|
{
|
59
|
-
:'created_at' => :'createdAt',
|
60
|
-
:'user_id' => :'userId',
|
61
59
|
:'email_id' => :'emailId',
|
62
60
|
:'inbox_id' => :'inboxId',
|
61
|
+
:'user_id' => :'userId',
|
63
62
|
:'forwarder_id' => :'forwarderId',
|
63
|
+
:'created_at' => :'createdAt',
|
64
64
|
:'message' => :'message',
|
65
65
|
:'id' => :'id',
|
66
66
|
:'status' => :'status'
|
@@ -70,11 +70,11 @@ module MailSlurpClient
|
|
70
70
|
# Attribute type mapping.
|
71
71
|
def self.openapi_types
|
72
72
|
{
|
73
|
-
:'created_at' => :'DateTime',
|
74
|
-
:'user_id' => :'String',
|
75
73
|
:'email_id' => :'String',
|
76
74
|
:'inbox_id' => :'String',
|
75
|
+
:'user_id' => :'String',
|
77
76
|
:'forwarder_id' => :'String',
|
77
|
+
:'created_at' => :'DateTime',
|
78
78
|
:'message' => :'String',
|
79
79
|
:'id' => :'String',
|
80
80
|
:'status' => :'String'
|
@@ -84,9 +84,9 @@ module MailSlurpClient
|
|
84
84
|
# List of attributes with nullable: true
|
85
85
|
def self.openapi_nullable
|
86
86
|
Set.new([
|
87
|
-
:'user_id',
|
88
87
|
:'email_id',
|
89
88
|
:'inbox_id',
|
89
|
+
:'user_id',
|
90
90
|
:'forwarder_id',
|
91
91
|
:'message',
|
92
92
|
:'id',
|
@@ -109,14 +109,6 @@ module MailSlurpClient
|
|
109
109
|
h[k.to_sym] = v
|
110
110
|
}
|
111
111
|
|
112
|
-
if attributes.key?(:'created_at')
|
113
|
-
self.created_at = attributes[:'created_at']
|
114
|
-
end
|
115
|
-
|
116
|
-
if attributes.key?(:'user_id')
|
117
|
-
self.user_id = attributes[:'user_id']
|
118
|
-
end
|
119
|
-
|
120
112
|
if attributes.key?(:'email_id')
|
121
113
|
self.email_id = attributes[:'email_id']
|
122
114
|
end
|
@@ -125,10 +117,18 @@ module MailSlurpClient
|
|
125
117
|
self.inbox_id = attributes[:'inbox_id']
|
126
118
|
end
|
127
119
|
|
120
|
+
if attributes.key?(:'user_id')
|
121
|
+
self.user_id = attributes[:'user_id']
|
122
|
+
end
|
123
|
+
|
128
124
|
if attributes.key?(:'forwarder_id')
|
129
125
|
self.forwarder_id = attributes[:'forwarder_id']
|
130
126
|
end
|
131
127
|
|
128
|
+
if attributes.key?(:'created_at')
|
129
|
+
self.created_at = attributes[:'created_at']
|
130
|
+
end
|
131
|
+
|
132
132
|
if attributes.key?(:'message')
|
133
133
|
self.message = attributes[:'message']
|
134
134
|
end
|
@@ -177,11 +177,11 @@ module MailSlurpClient
|
|
177
177
|
def ==(o)
|
178
178
|
return true if self.equal?(o)
|
179
179
|
self.class == o.class &&
|
180
|
-
created_at == o.created_at &&
|
181
|
-
user_id == o.user_id &&
|
182
180
|
email_id == o.email_id &&
|
183
181
|
inbox_id == o.inbox_id &&
|
182
|
+
user_id == o.user_id &&
|
184
183
|
forwarder_id == o.forwarder_id &&
|
184
|
+
created_at == o.created_at &&
|
185
185
|
message == o.message &&
|
186
186
|
id == o.id &&
|
187
187
|
status == o.status
|
@@ -196,7 +196,7 @@ module MailSlurpClient
|
|
196
196
|
# Calculates hash code according to all attributes.
|
197
197
|
# @return [Integer] Hash code
|
198
198
|
def hash
|
199
|
-
[
|
199
|
+
[email_id, inbox_id, user_id, forwarder_id, created_at, message, id, status].hash
|
200
200
|
end
|
201
201
|
|
202
202
|
# Builds the object from hash
|