mailslurp_client 15.19.11 → 15.19.13
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/mailslurp_client/api/email_controller_api.rb +65 -2
- data/lib/mailslurp_client/api/imap_controller_api.rb +64 -0
- data/lib/mailslurp_client/api/inbox_controller_api.rb +57 -0
- data/lib/mailslurp_client/models/alias_projection.rb +36 -36
- data/lib/mailslurp_client/models/attachment_projection.rb +29 -29
- data/lib/mailslurp_client/models/bounce_projection.rb +22 -22
- data/lib/mailslurp_client/models/bounce_recipient_projection.rb +15 -15
- data/lib/mailslurp_client/models/connector_projection.rb +27 -27
- 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 +15 -15
- data/lib/mailslurp_client/models/expired_inbox_record_projection.rb +15 -15
- data/lib/mailslurp_client/models/imap_email_projection.rb +15 -15
- data/lib/mailslurp_client/models/imap_server_get_result.rb +206 -0
- data/lib/mailslurp_client/models/inbox_forwarder_event_projection.rb +17 -17
- data/lib/mailslurp_client/models/inbox_replier_event_projection.rb +20 -20
- 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/phone_number_projection.rb +15 -15
- data/lib/mailslurp_client/models/sent_email_projection.rb +29 -29
- data/lib/mailslurp_client/models/sms_projection.rb +29 -29
- 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 +1 -0
- metadata +3 -2
@@ -15,20 +15,20 @@ require 'date'
|
|
15
15
|
module MailSlurpClient
|
16
16
|
# Record of inbox expiration
|
17
17
|
class ExpiredInboxRecordProjection
|
18
|
-
attr_accessor :created_at
|
19
|
-
|
20
18
|
attr_accessor :email_address
|
21
19
|
|
22
20
|
attr_accessor :user_id
|
23
21
|
|
22
|
+
attr_accessor :created_at
|
23
|
+
|
24
24
|
attr_accessor :id
|
25
25
|
|
26
26
|
# Attribute mapping from ruby-style variable name to JSON key.
|
27
27
|
def self.attribute_map
|
28
28
|
{
|
29
|
-
:'created_at' => :'createdAt',
|
30
29
|
:'email_address' => :'emailAddress',
|
31
30
|
:'user_id' => :'userId',
|
31
|
+
:'created_at' => :'createdAt',
|
32
32
|
:'id' => :'id'
|
33
33
|
}
|
34
34
|
end
|
@@ -36,9 +36,9 @@ module MailSlurpClient
|
|
36
36
|
# Attribute type mapping.
|
37
37
|
def self.openapi_types
|
38
38
|
{
|
39
|
-
:'created_at' => :'DateTime',
|
40
39
|
:'email_address' => :'String',
|
41
40
|
:'user_id' => :'String',
|
41
|
+
:'created_at' => :'DateTime',
|
42
42
|
:'id' => :'String'
|
43
43
|
}
|
44
44
|
end
|
@@ -64,10 +64,6 @@ module MailSlurpClient
|
|
64
64
|
h[k.to_sym] = v
|
65
65
|
}
|
66
66
|
|
67
|
-
if attributes.key?(:'created_at')
|
68
|
-
self.created_at = attributes[:'created_at']
|
69
|
-
end
|
70
|
-
|
71
67
|
if attributes.key?(:'email_address')
|
72
68
|
self.email_address = attributes[:'email_address']
|
73
69
|
end
|
@@ -76,6 +72,10 @@ module MailSlurpClient
|
|
76
72
|
self.user_id = attributes[:'user_id']
|
77
73
|
end
|
78
74
|
|
75
|
+
if attributes.key?(:'created_at')
|
76
|
+
self.created_at = attributes[:'created_at']
|
77
|
+
end
|
78
|
+
|
79
79
|
if attributes.key?(:'id')
|
80
80
|
self.id = attributes[:'id']
|
81
81
|
end
|
@@ -85,10 +85,6 @@ module MailSlurpClient
|
|
85
85
|
# @return Array for valid properties with the reasons
|
86
86
|
def list_invalid_properties
|
87
87
|
invalid_properties = Array.new
|
88
|
-
if @created_at.nil?
|
89
|
-
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
90
|
-
end
|
91
|
-
|
92
88
|
if @email_address.nil?
|
93
89
|
invalid_properties.push('invalid value for "email_address", email_address cannot be nil.')
|
94
90
|
end
|
@@ -97,6 +93,10 @@ module MailSlurpClient
|
|
97
93
|
invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
|
98
94
|
end
|
99
95
|
|
96
|
+
if @created_at.nil?
|
97
|
+
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
98
|
+
end
|
99
|
+
|
100
100
|
if @id.nil?
|
101
101
|
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
102
102
|
end
|
@@ -107,9 +107,9 @@ module MailSlurpClient
|
|
107
107
|
# Check to see if the all the properties in the model are valid
|
108
108
|
# @return true if the model is valid
|
109
109
|
def valid?
|
110
|
-
return false if @created_at.nil?
|
111
110
|
return false if @email_address.nil?
|
112
111
|
return false if @user_id.nil?
|
112
|
+
return false if @created_at.nil?
|
113
113
|
return false if @id.nil?
|
114
114
|
true
|
115
115
|
end
|
@@ -119,9 +119,9 @@ module MailSlurpClient
|
|
119
119
|
def ==(o)
|
120
120
|
return true if self.equal?(o)
|
121
121
|
self.class == o.class &&
|
122
|
-
created_at == o.created_at &&
|
123
122
|
email_address == o.email_address &&
|
124
123
|
user_id == o.user_id &&
|
124
|
+
created_at == o.created_at &&
|
125
125
|
id == o.id
|
126
126
|
end
|
127
127
|
|
@@ -134,7 +134,7 @@ module MailSlurpClient
|
|
134
134
|
# Calculates hash code according to all attributes.
|
135
135
|
# @return [Integer] Hash code
|
136
136
|
def hash
|
137
|
-
[
|
137
|
+
[email_address, user_id, created_at, id].hash
|
138
138
|
end
|
139
139
|
|
140
140
|
# Builds the object from hash
|
@@ -14,23 +14,23 @@ require 'date'
|
|
14
14
|
|
15
15
|
module MailSlurpClient
|
16
16
|
class ImapEmailProjection
|
17
|
-
attr_accessor :created_at
|
18
|
-
|
19
17
|
attr_accessor :read
|
20
18
|
|
21
19
|
attr_accessor :uid
|
22
20
|
|
23
21
|
attr_accessor :seq_num
|
24
22
|
|
23
|
+
attr_accessor :created_at
|
24
|
+
|
25
25
|
attr_accessor :id
|
26
26
|
|
27
27
|
# Attribute mapping from ruby-style variable name to JSON key.
|
28
28
|
def self.attribute_map
|
29
29
|
{
|
30
|
-
:'created_at' => :'createdAt',
|
31
30
|
:'read' => :'read',
|
32
31
|
:'uid' => :'uid',
|
33
32
|
:'seq_num' => :'seqNum',
|
33
|
+
:'created_at' => :'createdAt',
|
34
34
|
:'id' => :'id'
|
35
35
|
}
|
36
36
|
end
|
@@ -38,10 +38,10 @@ module MailSlurpClient
|
|
38
38
|
# Attribute type mapping.
|
39
39
|
def self.openapi_types
|
40
40
|
{
|
41
|
-
:'created_at' => :'DateTime',
|
42
41
|
:'read' => :'Boolean',
|
43
42
|
:'uid' => :'Integer',
|
44
43
|
:'seq_num' => :'Integer',
|
44
|
+
:'created_at' => :'DateTime',
|
45
45
|
:'id' => :'String'
|
46
46
|
}
|
47
47
|
end
|
@@ -68,10 +68,6 @@ module MailSlurpClient
|
|
68
68
|
h[k.to_sym] = v
|
69
69
|
}
|
70
70
|
|
71
|
-
if attributes.key?(:'created_at')
|
72
|
-
self.created_at = attributes[:'created_at']
|
73
|
-
end
|
74
|
-
|
75
71
|
if attributes.key?(:'read')
|
76
72
|
self.read = attributes[:'read']
|
77
73
|
end
|
@@ -84,6 +80,10 @@ module MailSlurpClient
|
|
84
80
|
self.seq_num = attributes[:'seq_num']
|
85
81
|
end
|
86
82
|
|
83
|
+
if attributes.key?(:'created_at')
|
84
|
+
self.created_at = attributes[:'created_at']
|
85
|
+
end
|
86
|
+
|
87
87
|
if attributes.key?(:'id')
|
88
88
|
self.id = attributes[:'id']
|
89
89
|
end
|
@@ -93,10 +93,6 @@ module MailSlurpClient
|
|
93
93
|
# @return Array for valid properties with the reasons
|
94
94
|
def list_invalid_properties
|
95
95
|
invalid_properties = Array.new
|
96
|
-
if @created_at.nil?
|
97
|
-
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
98
|
-
end
|
99
|
-
|
100
96
|
if @uid.nil?
|
101
97
|
invalid_properties.push('invalid value for "uid", uid cannot be nil.')
|
102
98
|
end
|
@@ -105,6 +101,10 @@ module MailSlurpClient
|
|
105
101
|
invalid_properties.push('invalid value for "seq_num", seq_num cannot be nil.')
|
106
102
|
end
|
107
103
|
|
104
|
+
if @created_at.nil?
|
105
|
+
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
106
|
+
end
|
107
|
+
|
108
108
|
if @id.nil?
|
109
109
|
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
110
110
|
end
|
@@ -115,9 +115,9 @@ module MailSlurpClient
|
|
115
115
|
# Check to see if the all the properties in the model are valid
|
116
116
|
# @return true if the model is valid
|
117
117
|
def valid?
|
118
|
-
return false if @created_at.nil?
|
119
118
|
return false if @uid.nil?
|
120
119
|
return false if @seq_num.nil?
|
120
|
+
return false if @created_at.nil?
|
121
121
|
return false if @id.nil?
|
122
122
|
true
|
123
123
|
end
|
@@ -127,10 +127,10 @@ module MailSlurpClient
|
|
127
127
|
def ==(o)
|
128
128
|
return true if self.equal?(o)
|
129
129
|
self.class == o.class &&
|
130
|
-
created_at == o.created_at &&
|
131
130
|
read == o.read &&
|
132
131
|
uid == o.uid &&
|
133
132
|
seq_num == o.seq_num &&
|
133
|
+
created_at == o.created_at &&
|
134
134
|
id == o.id
|
135
135
|
end
|
136
136
|
|
@@ -143,7 +143,7 @@ module MailSlurpClient
|
|
143
143
|
# Calculates hash code according to all attributes.
|
144
144
|
# @return [Integer] Hash code
|
145
145
|
def hash
|
146
|
-
[
|
146
|
+
[read, uid, seq_num, created_at, id].hash
|
147
147
|
end
|
148
148
|
|
149
149
|
# Builds the object from hash
|
@@ -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 ImapServerGetResult
|
17
|
+
attr_accessor :result
|
18
|
+
|
19
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
20
|
+
def self.attribute_map
|
21
|
+
{
|
22
|
+
:'result' => :'result'
|
23
|
+
}
|
24
|
+
end
|
25
|
+
|
26
|
+
# Attribute type mapping.
|
27
|
+
def self.openapi_types
|
28
|
+
{
|
29
|
+
:'result' => :'ImapEmailProjection'
|
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::ImapServerGetResult` 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::ImapServerGetResult`. 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?(:'result')
|
55
|
+
self.result = attributes[:'result']
|
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
|
+
result == o.result
|
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
|
+
[result].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
|
@@ -15,16 +15,16 @@ require 'date'
|
|
15
15
|
module MailSlurpClient
|
16
16
|
# Inbox forwarder event
|
17
17
|
class InboxForwarderEventProjection
|
18
|
-
attr_accessor :
|
18
|
+
attr_accessor :user_id
|
19
19
|
|
20
20
|
attr_accessor :email_id
|
21
21
|
|
22
22
|
attr_accessor :inbox_id
|
23
23
|
|
24
|
-
attr_accessor :user_id
|
25
|
-
|
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
|
-
:'
|
59
|
+
:'user_id' => :'userId',
|
60
60
|
:'email_id' => :'emailId',
|
61
61
|
:'inbox_id' => :'inboxId',
|
62
|
-
:'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
|
-
:'
|
73
|
+
:'user_id' => :'String',
|
74
74
|
:'email_id' => :'String',
|
75
75
|
:'inbox_id' => :'String',
|
76
|
-
:'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',
|
87
88
|
:'email_id',
|
88
89
|
:'inbox_id',
|
89
|
-
:'user_id',
|
90
90
|
:'forwarder_id',
|
91
91
|
:'message',
|
92
92
|
:'id',
|
@@ -109,8 +109,8 @@ module MailSlurpClient
|
|
109
109
|
h[k.to_sym] = v
|
110
110
|
}
|
111
111
|
|
112
|
-
if attributes.key?(:'
|
113
|
-
self.
|
112
|
+
if attributes.key?(:'user_id')
|
113
|
+
self.user_id = attributes[:'user_id']
|
114
114
|
end
|
115
115
|
|
116
116
|
if attributes.key?(:'email_id')
|
@@ -121,14 +121,14 @@ module MailSlurpClient
|
|
121
121
|
self.inbox_id = attributes[:'inbox_id']
|
122
122
|
end
|
123
123
|
|
124
|
-
if attributes.key?(:'user_id')
|
125
|
-
self.user_id = attributes[:'user_id']
|
126
|
-
end
|
127
|
-
|
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
|
-
|
180
|
+
user_id == o.user_id &&
|
181
181
|
email_id == o.email_id &&
|
182
182
|
inbox_id == o.inbox_id &&
|
183
|
-
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
|
+
[user_id, email_id, inbox_id, forwarder_id, created_at, message, id, status].hash
|
200
200
|
end
|
201
201
|
|
202
202
|
# Builds the object from hash
|
@@ -15,20 +15,20 @@ require 'date'
|
|
15
15
|
module MailSlurpClient
|
16
16
|
# Inbox replier event
|
17
17
|
class InboxReplierEventProjection
|
18
|
-
attr_accessor :created_at
|
19
|
-
|
20
18
|
attr_accessor :recipients
|
21
19
|
|
20
|
+
attr_accessor :user_id
|
21
|
+
|
22
22
|
attr_accessor :email_id
|
23
23
|
|
24
24
|
attr_accessor :inbox_id
|
25
25
|
|
26
|
-
attr_accessor :user_id
|
27
|
-
|
28
26
|
attr_accessor :sent_id
|
29
27
|
|
30
28
|
attr_accessor :replier_id
|
31
29
|
|
30
|
+
attr_accessor :created_at
|
31
|
+
|
32
32
|
attr_accessor :message
|
33
33
|
|
34
34
|
attr_accessor :id
|
@@ -60,13 +60,13 @@ module MailSlurpClient
|
|
60
60
|
# Attribute mapping from ruby-style variable name to JSON key.
|
61
61
|
def self.attribute_map
|
62
62
|
{
|
63
|
-
:'created_at' => :'createdAt',
|
64
63
|
:'recipients' => :'recipients',
|
64
|
+
:'user_id' => :'userId',
|
65
65
|
:'email_id' => :'emailId',
|
66
66
|
:'inbox_id' => :'inboxId',
|
67
|
-
:'user_id' => :'userId',
|
68
67
|
:'sent_id' => :'sentId',
|
69
68
|
:'replier_id' => :'replierId',
|
69
|
+
:'created_at' => :'createdAt',
|
70
70
|
:'message' => :'message',
|
71
71
|
:'id' => :'id',
|
72
72
|
:'status' => :'status'
|
@@ -76,13 +76,13 @@ module MailSlurpClient
|
|
76
76
|
# Attribute type mapping.
|
77
77
|
def self.openapi_types
|
78
78
|
{
|
79
|
-
:'created_at' => :'DateTime',
|
80
79
|
:'recipients' => :'Array<String>',
|
80
|
+
:'user_id' => :'String',
|
81
81
|
:'email_id' => :'String',
|
82
82
|
:'inbox_id' => :'String',
|
83
|
-
:'user_id' => :'String',
|
84
83
|
:'sent_id' => :'String',
|
85
84
|
:'replier_id' => :'String',
|
85
|
+
:'created_at' => :'DateTime',
|
86
86
|
:'message' => :'String',
|
87
87
|
:'id' => :'String',
|
88
88
|
:'status' => :'String'
|
@@ -93,9 +93,9 @@ module MailSlurpClient
|
|
93
93
|
def self.openapi_nullable
|
94
94
|
Set.new([
|
95
95
|
:'recipients',
|
96
|
+
:'user_id',
|
96
97
|
:'email_id',
|
97
98
|
:'inbox_id',
|
98
|
-
:'user_id',
|
99
99
|
:'sent_id',
|
100
100
|
:'replier_id',
|
101
101
|
:'message',
|
@@ -119,16 +119,16 @@ module MailSlurpClient
|
|
119
119
|
h[k.to_sym] = v
|
120
120
|
}
|
121
121
|
|
122
|
-
if attributes.key?(:'created_at')
|
123
|
-
self.created_at = attributes[:'created_at']
|
124
|
-
end
|
125
|
-
|
126
122
|
if attributes.key?(:'recipients')
|
127
123
|
if (value = attributes[:'recipients']).is_a?(Array)
|
128
124
|
self.recipients = value
|
129
125
|
end
|
130
126
|
end
|
131
127
|
|
128
|
+
if attributes.key?(:'user_id')
|
129
|
+
self.user_id = attributes[:'user_id']
|
130
|
+
end
|
131
|
+
|
132
132
|
if attributes.key?(:'email_id')
|
133
133
|
self.email_id = attributes[:'email_id']
|
134
134
|
end
|
@@ -137,10 +137,6 @@ module MailSlurpClient
|
|
137
137
|
self.inbox_id = attributes[:'inbox_id']
|
138
138
|
end
|
139
139
|
|
140
|
-
if attributes.key?(:'user_id')
|
141
|
-
self.user_id = attributes[:'user_id']
|
142
|
-
end
|
143
|
-
|
144
140
|
if attributes.key?(:'sent_id')
|
145
141
|
self.sent_id = attributes[:'sent_id']
|
146
142
|
end
|
@@ -149,6 +145,10 @@ module MailSlurpClient
|
|
149
145
|
self.replier_id = attributes[:'replier_id']
|
150
146
|
end
|
151
147
|
|
148
|
+
if attributes.key?(:'created_at')
|
149
|
+
self.created_at = attributes[:'created_at']
|
150
|
+
end
|
151
|
+
|
152
152
|
if attributes.key?(:'message')
|
153
153
|
self.message = attributes[:'message']
|
154
154
|
end
|
@@ -197,13 +197,13 @@ module MailSlurpClient
|
|
197
197
|
def ==(o)
|
198
198
|
return true if self.equal?(o)
|
199
199
|
self.class == o.class &&
|
200
|
-
created_at == o.created_at &&
|
201
200
|
recipients == o.recipients &&
|
201
|
+
user_id == o.user_id &&
|
202
202
|
email_id == o.email_id &&
|
203
203
|
inbox_id == o.inbox_id &&
|
204
|
-
user_id == o.user_id &&
|
205
204
|
sent_id == o.sent_id &&
|
206
205
|
replier_id == o.replier_id &&
|
206
|
+
created_at == o.created_at &&
|
207
207
|
message == o.message &&
|
208
208
|
id == o.id &&
|
209
209
|
status == o.status
|
@@ -218,7 +218,7 @@ module MailSlurpClient
|
|
218
218
|
# Calculates hash code according to all attributes.
|
219
219
|
# @return [Integer] Hash code
|
220
220
|
def hash
|
221
|
-
[
|
221
|
+
[recipients, user_id, email_id, inbox_id, sent_id, replier_id, created_at, message, id, status].hash
|
222
222
|
end
|
223
223
|
|
224
224
|
# Builds the object from hash
|