mailslurp_client 15.19.1 → 15.19.3
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/imap_controller_api.rb +65 -0
- data/lib/mailslurp_client/models/alias_projection.rb +29 -29
- data/lib/mailslurp_client/models/attachment_projection.rb +29 -29
- data/lib/mailslurp_client/models/bounce_projection.rb +19 -19
- data/lib/mailslurp_client/models/bounce_recipient_projection.rb +15 -15
- data/lib/mailslurp_client/models/connector_projection.rb +15 -15
- 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 +19 -19
- data/lib/mailslurp_client/models/expired_inbox_record_projection.rb +15 -15
- data/lib/mailslurp_client/models/imap_email_projection.rb +25 -1
- data/lib/mailslurp_client/models/imap_mailbox_status.rb +367 -0
- data/lib/mailslurp_client/models/imap_server_status_options.rb +241 -0
- data/lib/mailslurp_client/models/imap_server_status_result.rb +207 -0
- data/lib/mailslurp_client/models/inbox_forwarder_event_projection.rb +10 -10
- data/lib/mailslurp_client/models/inbox_replier_event_projection.rb +14 -14
- data/lib/mailslurp_client/models/list_unsubscribe_recipient_projection.rb +15 -15
- data/lib/mailslurp_client/models/missed_email_projection.rb +14 -14
- data/lib/mailslurp_client/models/page_alias.rb +15 -15
- data/lib/mailslurp_client/models/page_attachment_entity.rb +15 -15
- data/lib/mailslurp_client/models/page_bounced_email.rb +15 -15
- data/lib/mailslurp_client/models/page_bounced_recipients.rb +15 -15
- data/lib/mailslurp_client/models/page_complaint.rb +15 -15
- data/lib/mailslurp_client/models/page_connector.rb +15 -15
- data/lib/mailslurp_client/models/page_connector_sync_events.rb +15 -15
- data/lib/mailslurp_client/models/page_contact_projection.rb +15 -15
- data/lib/mailslurp_client/models/page_delivery_status.rb +15 -15
- data/lib/mailslurp_client/models/page_email_preview.rb +15 -15
- data/lib/mailslurp_client/models/page_email_projection.rb +15 -15
- data/lib/mailslurp_client/models/page_email_validation_request.rb +15 -15
- data/lib/mailslurp_client/models/page_expired_inbox_record_projection.rb +15 -15
- data/lib/mailslurp_client/models/page_group_projection.rb +15 -15
- data/lib/mailslurp_client/models/page_inbox_forwarder_dto.rb +15 -15
- data/lib/mailslurp_client/models/page_inbox_forwarder_events.rb +15 -15
- data/lib/mailslurp_client/models/page_inbox_projection.rb +15 -15
- data/lib/mailslurp_client/models/page_inbox_replier_dto.rb +15 -15
- data/lib/mailslurp_client/models/page_inbox_replier_events.rb +15 -15
- data/lib/mailslurp_client/models/page_inbox_ruleset_dto.rb +15 -15
- data/lib/mailslurp_client/models/page_list_unsubscribe_recipients.rb +15 -15
- data/lib/mailslurp_client/models/page_missed_email_projection.rb +15 -15
- data/lib/mailslurp_client/models/page_organization_inbox_projection.rb +15 -15
- data/lib/mailslurp_client/models/page_phone_number_projection.rb +15 -15
- data/lib/mailslurp_client/models/page_scheduled_jobs.rb +15 -15
- data/lib/mailslurp_client/models/page_sent_email_projection.rb +15 -15
- data/lib/mailslurp_client/models/page_sent_email_with_queue_projection.rb +15 -15
- data/lib/mailslurp_client/models/page_sms_projection.rb +15 -15
- data/lib/mailslurp_client/models/page_template_projection.rb +15 -15
- data/lib/mailslurp_client/models/page_thread_projection.rb +15 -15
- data/lib/mailslurp_client/models/page_tracking_pixel_projection.rb +15 -15
- data/lib/mailslurp_client/models/page_unknown_missed_email_projection.rb +15 -15
- data/lib/mailslurp_client/models/page_webhook_projection.rb +15 -15
- data/lib/mailslurp_client/models/page_webhook_result.rb +15 -15
- data/lib/mailslurp_client/models/phone_number_projection.rb +15 -15
- data/lib/mailslurp_client/models/sent_email_projection.rb +27 -27
- 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 +35 -35
- data/lib/mailslurp_client/models/tracking_pixel_projection.rb +15 -15
- data/lib/mailslurp_client/models/unknown_missed_email_projection.rb +13 -13
- data/lib/mailslurp_client/models/webhook_projection.rb +25 -25
- data/lib/mailslurp_client/version.rb +1 -1
- data/lib/mailslurp_client.rb +3 -0
- metadata +5 -2
@@ -0,0 +1,207 @@
|
|
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 ImapServerStatusResult
|
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' => :'ImapMailboxStatus'
|
30
|
+
}
|
31
|
+
end
|
32
|
+
|
33
|
+
# List of attributes with nullable: true
|
34
|
+
def self.openapi_nullable
|
35
|
+
Set.new([
|
36
|
+
:'result'
|
37
|
+
])
|
38
|
+
end
|
39
|
+
|
40
|
+
# Initializes the object
|
41
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
42
|
+
def initialize(attributes = {})
|
43
|
+
if (!attributes.is_a?(Hash))
|
44
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `MailSlurpClient::ImapServerStatusResult` initialize method"
|
45
|
+
end
|
46
|
+
|
47
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
48
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
49
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
50
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `MailSlurpClient::ImapServerStatusResult`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
51
|
+
end
|
52
|
+
h[k.to_sym] = v
|
53
|
+
}
|
54
|
+
|
55
|
+
if attributes.key?(:'result')
|
56
|
+
self.result = attributes[:'result']
|
57
|
+
end
|
58
|
+
end
|
59
|
+
|
60
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
61
|
+
# @return Array for valid properties with the reasons
|
62
|
+
def list_invalid_properties
|
63
|
+
invalid_properties = Array.new
|
64
|
+
invalid_properties
|
65
|
+
end
|
66
|
+
|
67
|
+
# Check to see if the all the properties in the model are valid
|
68
|
+
# @return true if the model is valid
|
69
|
+
def valid?
|
70
|
+
true
|
71
|
+
end
|
72
|
+
|
73
|
+
# Checks equality by comparing each attribute.
|
74
|
+
# @param [Object] Object to be compared
|
75
|
+
def ==(o)
|
76
|
+
return true if self.equal?(o)
|
77
|
+
self.class == o.class &&
|
78
|
+
result == o.result
|
79
|
+
end
|
80
|
+
|
81
|
+
# @see the `==` method
|
82
|
+
# @param [Object] Object to be compared
|
83
|
+
def eql?(o)
|
84
|
+
self == o
|
85
|
+
end
|
86
|
+
|
87
|
+
# Calculates hash code according to all attributes.
|
88
|
+
# @return [Integer] Hash code
|
89
|
+
def hash
|
90
|
+
[result].hash
|
91
|
+
end
|
92
|
+
|
93
|
+
# Builds the object from hash
|
94
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
95
|
+
# @return [Object] Returns the model itself
|
96
|
+
def self.build_from_hash(attributes)
|
97
|
+
new.build_from_hash(attributes)
|
98
|
+
end
|
99
|
+
|
100
|
+
# Builds the object from hash
|
101
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
102
|
+
# @return [Object] Returns the model itself
|
103
|
+
def build_from_hash(attributes)
|
104
|
+
return nil unless attributes.is_a?(Hash)
|
105
|
+
self.class.openapi_types.each_pair do |key, type|
|
106
|
+
if type =~ /\AArray<(.*)>/i
|
107
|
+
# check to ensure the input is an array given that the attribute
|
108
|
+
# is documented as an array but the input is not
|
109
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
110
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
111
|
+
end
|
112
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
113
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
114
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
115
|
+
end
|
116
|
+
|
117
|
+
self
|
118
|
+
end
|
119
|
+
|
120
|
+
# Deserializes the data based on type
|
121
|
+
# @param string type Data type
|
122
|
+
# @param string value Value to be deserialized
|
123
|
+
# @return [Object] Deserialized data
|
124
|
+
def _deserialize(type, value)
|
125
|
+
case type.to_sym
|
126
|
+
when :DateTime
|
127
|
+
DateTime.parse(value)
|
128
|
+
when :Date
|
129
|
+
Date.parse(value)
|
130
|
+
when :String
|
131
|
+
value.to_s
|
132
|
+
when :Integer
|
133
|
+
value.to_i
|
134
|
+
when :Float
|
135
|
+
value.to_f
|
136
|
+
when :Boolean
|
137
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
138
|
+
true
|
139
|
+
else
|
140
|
+
false
|
141
|
+
end
|
142
|
+
when :Object
|
143
|
+
# generic object (usually a Hash), return directly
|
144
|
+
value
|
145
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
146
|
+
inner_type = Regexp.last_match[:inner_type]
|
147
|
+
value.map { |v| _deserialize(inner_type, v) }
|
148
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
149
|
+
k_type = Regexp.last_match[:k_type]
|
150
|
+
v_type = Regexp.last_match[:v_type]
|
151
|
+
{}.tap do |hash|
|
152
|
+
value.each do |k, v|
|
153
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
154
|
+
end
|
155
|
+
end
|
156
|
+
else # model
|
157
|
+
MailSlurpClient.const_get(type).build_from_hash(value)
|
158
|
+
end
|
159
|
+
end
|
160
|
+
|
161
|
+
# Returns the string representation of the object
|
162
|
+
# @return [String] String presentation of the object
|
163
|
+
def to_s
|
164
|
+
to_hash.to_s
|
165
|
+
end
|
166
|
+
|
167
|
+
# to_body is an alias to to_hash (backward compatibility)
|
168
|
+
# @return [Hash] Returns the object in the form of hash
|
169
|
+
def to_body
|
170
|
+
to_hash
|
171
|
+
end
|
172
|
+
|
173
|
+
# Returns the object in the form of hash
|
174
|
+
# @return [Hash] Returns the object in the form of hash
|
175
|
+
def to_hash
|
176
|
+
hash = {}
|
177
|
+
self.class.attribute_map.each_pair do |attr, param|
|
178
|
+
value = self.send(attr)
|
179
|
+
if value.nil?
|
180
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
181
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
182
|
+
end
|
183
|
+
|
184
|
+
hash[param] = _to_hash(value)
|
185
|
+
end
|
186
|
+
hash
|
187
|
+
end
|
188
|
+
|
189
|
+
# Outputs non-array value in the form of hash
|
190
|
+
# For object, use to_hash. Otherwise, just return the value
|
191
|
+
# @param [Object] value Any valid value
|
192
|
+
# @return [Hash] Returns the value in the form of hash
|
193
|
+
def _to_hash(value)
|
194
|
+
if value.is_a?(Array)
|
195
|
+
value.compact.map { |v| _to_hash(v) }
|
196
|
+
elsif value.is_a?(Hash)
|
197
|
+
{}.tap do |hash|
|
198
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
199
|
+
end
|
200
|
+
elsif value.respond_to? :to_hash
|
201
|
+
value.to_hash
|
202
|
+
else
|
203
|
+
value
|
204
|
+
end
|
205
|
+
end
|
206
|
+
end
|
207
|
+
end
|
@@ -15,6 +15,8 @@ require 'date'
|
|
15
15
|
module MailSlurpClient
|
16
16
|
# Inbox forwarder event
|
17
17
|
class InboxForwarderEventProjection
|
18
|
+
attr_accessor :created_at
|
19
|
+
|
18
20
|
attr_accessor :email_id
|
19
21
|
|
20
22
|
attr_accessor :inbox_id
|
@@ -23,8 +25,6 @@ module MailSlurpClient
|
|
23
25
|
|
24
26
|
attr_accessor :forwarder_id
|
25
27
|
|
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',
|
59
60
|
:'email_id' => :'emailId',
|
60
61
|
:'inbox_id' => :'inboxId',
|
61
62
|
:'user_id' => :'userId',
|
62
63
|
:'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',
|
73
74
|
:'email_id' => :'String',
|
74
75
|
:'inbox_id' => :'String',
|
75
76
|
:'user_id' => :'String',
|
76
77
|
:'forwarder_id' => :'String',
|
77
|
-
:'created_at' => :'DateTime',
|
78
78
|
:'message' => :'String',
|
79
79
|
:'id' => :'String',
|
80
80
|
:'status' => :'String'
|
@@ -109,6 +109,10 @@ 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
|
+
|
112
116
|
if attributes.key?(:'email_id')
|
113
117
|
self.email_id = attributes[:'email_id']
|
114
118
|
end
|
@@ -125,10 +129,6 @@ module MailSlurpClient
|
|
125
129
|
self.forwarder_id = attributes[:'forwarder_id']
|
126
130
|
end
|
127
131
|
|
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 &&
|
180
181
|
email_id == o.email_id &&
|
181
182
|
inbox_id == o.inbox_id &&
|
182
183
|
user_id == o.user_id &&
|
183
184
|
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
|
-
[email_id, inbox_id, user_id, forwarder_id,
|
199
|
+
[created_at, email_id, inbox_id, user_id, forwarder_id, message, id, status].hash
|
200
200
|
end
|
201
201
|
|
202
202
|
# Builds the object from hash
|
@@ -15,7 +15,7 @@ require 'date'
|
|
15
15
|
module MailSlurpClient
|
16
16
|
# Inbox replier event
|
17
17
|
class InboxReplierEventProjection
|
18
|
-
attr_accessor :
|
18
|
+
attr_accessor :created_at
|
19
19
|
|
20
20
|
attr_accessor :recipients
|
21
21
|
|
@@ -27,7 +27,7 @@ module MailSlurpClient
|
|
27
27
|
|
28
28
|
attr_accessor :sent_id
|
29
29
|
|
30
|
-
attr_accessor :
|
30
|
+
attr_accessor :replier_id
|
31
31
|
|
32
32
|
attr_accessor :message
|
33
33
|
|
@@ -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
|
-
:'
|
63
|
+
:'created_at' => :'createdAt',
|
64
64
|
:'recipients' => :'recipients',
|
65
65
|
:'email_id' => :'emailId',
|
66
66
|
:'inbox_id' => :'inboxId',
|
67
67
|
:'user_id' => :'userId',
|
68
68
|
:'sent_id' => :'sentId',
|
69
|
-
:'
|
69
|
+
:'replier_id' => :'replierId',
|
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
|
-
:'
|
79
|
+
:'created_at' => :'DateTime',
|
80
80
|
:'recipients' => :'Array<String>',
|
81
81
|
:'email_id' => :'String',
|
82
82
|
:'inbox_id' => :'String',
|
83
83
|
:'user_id' => :'String',
|
84
84
|
:'sent_id' => :'String',
|
85
|
-
:'
|
85
|
+
:'replier_id' => :'String',
|
86
86
|
:'message' => :'String',
|
87
87
|
:'id' => :'String',
|
88
88
|
:'status' => :'String'
|
@@ -92,12 +92,12 @@ module MailSlurpClient
|
|
92
92
|
# List of attributes with nullable: true
|
93
93
|
def self.openapi_nullable
|
94
94
|
Set.new([
|
95
|
-
:'replier_id',
|
96
95
|
:'recipients',
|
97
96
|
:'email_id',
|
98
97
|
:'inbox_id',
|
99
98
|
:'user_id',
|
100
99
|
:'sent_id',
|
100
|
+
:'replier_id',
|
101
101
|
:'message',
|
102
102
|
:'id',
|
103
103
|
:'status'
|
@@ -119,8 +119,8 @@ module MailSlurpClient
|
|
119
119
|
h[k.to_sym] = v
|
120
120
|
}
|
121
121
|
|
122
|
-
if attributes.key?(:'
|
123
|
-
self.
|
122
|
+
if attributes.key?(:'created_at')
|
123
|
+
self.created_at = attributes[:'created_at']
|
124
124
|
end
|
125
125
|
|
126
126
|
if attributes.key?(:'recipients')
|
@@ -145,8 +145,8 @@ module MailSlurpClient
|
|
145
145
|
self.sent_id = attributes[:'sent_id']
|
146
146
|
end
|
147
147
|
|
148
|
-
if attributes.key?(:'
|
149
|
-
self.
|
148
|
+
if attributes.key?(:'replier_id')
|
149
|
+
self.replier_id = attributes[:'replier_id']
|
150
150
|
end
|
151
151
|
|
152
152
|
if attributes.key?(:'message')
|
@@ -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
|
-
|
200
|
+
created_at == o.created_at &&
|
201
201
|
recipients == o.recipients &&
|
202
202
|
email_id == o.email_id &&
|
203
203
|
inbox_id == o.inbox_id &&
|
204
204
|
user_id == o.user_id &&
|
205
205
|
sent_id == o.sent_id &&
|
206
|
-
|
206
|
+
replier_id == o.replier_id &&
|
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
|
+
[created_at, recipients, email_id, inbox_id, user_id, sent_id, replier_id, message, id, status].hash
|
222
222
|
end
|
223
223
|
|
224
224
|
# Builds the object from hash
|
@@ -15,20 +15,20 @@ require 'date'
|
|
15
15
|
module MailSlurpClient
|
16
16
|
# List unsubscribe recipient
|
17
17
|
class ListUnsubscribeRecipientProjection
|
18
|
+
attr_accessor :created_at
|
19
|
+
|
18
20
|
attr_accessor :email_address
|
19
21
|
|
20
22
|
attr_accessor :domain_id
|
21
23
|
|
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',
|
29
30
|
:'email_address' => :'emailAddress',
|
30
31
|
:'domain_id' => :'domainId',
|
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',
|
39
40
|
:'email_address' => :'String',
|
40
41
|
:'domain_id' => :'String',
|
41
|
-
:'created_at' => :'DateTime',
|
42
42
|
:'id' => :'String'
|
43
43
|
}
|
44
44
|
end
|
@@ -65,6 +65,10 @@ module MailSlurpClient
|
|
65
65
|
h[k.to_sym] = v
|
66
66
|
}
|
67
67
|
|
68
|
+
if attributes.key?(:'created_at')
|
69
|
+
self.created_at = attributes[:'created_at']
|
70
|
+
end
|
71
|
+
|
68
72
|
if attributes.key?(:'email_address')
|
69
73
|
self.email_address = attributes[:'email_address']
|
70
74
|
end
|
@@ -73,10 +77,6 @@ module MailSlurpClient
|
|
73
77
|
self.domain_id = attributes[:'domain_id']
|
74
78
|
end
|
75
79
|
|
76
|
-
if attributes.key?(:'created_at')
|
77
|
-
self.created_at = attributes[:'created_at']
|
78
|
-
end
|
79
|
-
|
80
80
|
if attributes.key?(:'id')
|
81
81
|
self.id = attributes[:'id']
|
82
82
|
end
|
@@ -86,14 +86,14 @@ module MailSlurpClient
|
|
86
86
|
# @return Array for valid properties with the reasons
|
87
87
|
def list_invalid_properties
|
88
88
|
invalid_properties = Array.new
|
89
|
-
if @email_address.nil?
|
90
|
-
invalid_properties.push('invalid value for "email_address", email_address cannot be nil.')
|
91
|
-
end
|
92
|
-
|
93
89
|
if @created_at.nil?
|
94
90
|
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
95
91
|
end
|
96
92
|
|
93
|
+
if @email_address.nil?
|
94
|
+
invalid_properties.push('invalid value for "email_address", email_address cannot be nil.')
|
95
|
+
end
|
96
|
+
|
97
97
|
if @id.nil?
|
98
98
|
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
99
99
|
end
|
@@ -104,8 +104,8 @@ module MailSlurpClient
|
|
104
104
|
# Check to see if the all the properties in the model are valid
|
105
105
|
# @return true if the model is valid
|
106
106
|
def valid?
|
107
|
-
return false if @email_address.nil?
|
108
107
|
return false if @created_at.nil?
|
108
|
+
return false if @email_address.nil?
|
109
109
|
return false if @id.nil?
|
110
110
|
true
|
111
111
|
end
|
@@ -115,9 +115,9 @@ module MailSlurpClient
|
|
115
115
|
def ==(o)
|
116
116
|
return true if self.equal?(o)
|
117
117
|
self.class == o.class &&
|
118
|
+
created_at == o.created_at &&
|
118
119
|
email_address == o.email_address &&
|
119
120
|
domain_id == o.domain_id &&
|
120
|
-
created_at == o.created_at &&
|
121
121
|
id == o.id
|
122
122
|
end
|
123
123
|
|
@@ -130,7 +130,7 @@ module MailSlurpClient
|
|
130
130
|
# Calculates hash code according to all attributes.
|
131
131
|
# @return [Integer] Hash code
|
132
132
|
def hash
|
133
|
-
[email_address, domain_id,
|
133
|
+
[created_at, email_address, domain_id, id].hash
|
134
134
|
end
|
135
135
|
|
136
136
|
# Builds the object from hash
|
@@ -15,11 +15,11 @@ require 'date'
|
|
15
15
|
module MailSlurpClient
|
16
16
|
# Missed email data
|
17
17
|
class MissedEmailProjection
|
18
|
-
attr_accessor :
|
18
|
+
attr_accessor :created_at
|
19
19
|
|
20
20
|
attr_accessor :user_id
|
21
21
|
|
22
|
-
attr_accessor :
|
22
|
+
attr_accessor :subject
|
23
23
|
|
24
24
|
attr_accessor :id
|
25
25
|
|
@@ -28,9 +28,9 @@ module MailSlurpClient
|
|
28
28
|
# Attribute mapping from ruby-style variable name to JSON key.
|
29
29
|
def self.attribute_map
|
30
30
|
{
|
31
|
-
:'subject' => :'subject',
|
32
|
-
:'user_id' => :'userId',
|
33
31
|
:'created_at' => :'createdAt',
|
32
|
+
:'user_id' => :'userId',
|
33
|
+
:'subject' => :'subject',
|
34
34
|
:'id' => :'id',
|
35
35
|
:'from' => :'from'
|
36
36
|
}
|
@@ -39,9 +39,9 @@ module MailSlurpClient
|
|
39
39
|
# Attribute type mapping.
|
40
40
|
def self.openapi_types
|
41
41
|
{
|
42
|
-
:'subject' => :'String',
|
43
|
-
:'user_id' => :'String',
|
44
42
|
:'created_at' => :'DateTime',
|
43
|
+
:'user_id' => :'String',
|
44
|
+
:'subject' => :'String',
|
45
45
|
:'id' => :'String',
|
46
46
|
:'from' => :'String'
|
47
47
|
}
|
@@ -50,8 +50,8 @@ module MailSlurpClient
|
|
50
50
|
# List of attributes with nullable: true
|
51
51
|
def self.openapi_nullable
|
52
52
|
Set.new([
|
53
|
-
:'subject',
|
54
53
|
:'user_id',
|
54
|
+
:'subject',
|
55
55
|
:'from'
|
56
56
|
])
|
57
57
|
end
|
@@ -71,16 +71,16 @@ module MailSlurpClient
|
|
71
71
|
h[k.to_sym] = v
|
72
72
|
}
|
73
73
|
|
74
|
-
if attributes.key?(:'
|
75
|
-
self.
|
74
|
+
if attributes.key?(:'created_at')
|
75
|
+
self.created_at = attributes[:'created_at']
|
76
76
|
end
|
77
77
|
|
78
78
|
if attributes.key?(:'user_id')
|
79
79
|
self.user_id = attributes[:'user_id']
|
80
80
|
end
|
81
81
|
|
82
|
-
if attributes.key?(:'
|
83
|
-
self.
|
82
|
+
if attributes.key?(:'subject')
|
83
|
+
self.subject = attributes[:'subject']
|
84
84
|
end
|
85
85
|
|
86
86
|
if attributes.key?(:'id')
|
@@ -120,9 +120,9 @@ module MailSlurpClient
|
|
120
120
|
def ==(o)
|
121
121
|
return true if self.equal?(o)
|
122
122
|
self.class == o.class &&
|
123
|
-
subject == o.subject &&
|
124
|
-
user_id == o.user_id &&
|
125
123
|
created_at == o.created_at &&
|
124
|
+
user_id == o.user_id &&
|
125
|
+
subject == o.subject &&
|
126
126
|
id == o.id &&
|
127
127
|
from == o.from
|
128
128
|
end
|
@@ -136,7 +136,7 @@ module MailSlurpClient
|
|
136
136
|
# Calculates hash code according to all attributes.
|
137
137
|
# @return [Integer] Hash code
|
138
138
|
def hash
|
139
|
-
[
|
139
|
+
[created_at, user_id, subject, id, from].hash
|
140
140
|
end
|
141
141
|
|
142
142
|
# Builds the object from hash
|
@@ -19,10 +19,10 @@ module MailSlurpClient
|
|
19
19
|
|
20
20
|
attr_accessor :pageable
|
21
21
|
|
22
|
-
attr_accessor :total_elements
|
23
|
-
|
24
22
|
attr_accessor :total_pages
|
25
23
|
|
24
|
+
attr_accessor :total_elements
|
25
|
+
|
26
26
|
attr_accessor :last
|
27
27
|
|
28
28
|
attr_accessor :number_of_elements
|
@@ -42,8 +42,8 @@ module MailSlurpClient
|
|
42
42
|
{
|
43
43
|
:'content' => :'content',
|
44
44
|
:'pageable' => :'pageable',
|
45
|
-
:'total_elements' => :'totalElements',
|
46
45
|
:'total_pages' => :'totalPages',
|
46
|
+
:'total_elements' => :'totalElements',
|
47
47
|
:'last' => :'last',
|
48
48
|
:'number_of_elements' => :'numberOfElements',
|
49
49
|
:'first' => :'first',
|
@@ -59,8 +59,8 @@ module MailSlurpClient
|
|
59
59
|
{
|
60
60
|
:'content' => :'Array<AliasProjection>',
|
61
61
|
:'pageable' => :'PageableObject',
|
62
|
-
:'total_elements' => :'Integer',
|
63
62
|
:'total_pages' => :'Integer',
|
63
|
+
:'total_elements' => :'Integer',
|
64
64
|
:'last' => :'Boolean',
|
65
65
|
:'number_of_elements' => :'Integer',
|
66
66
|
:'first' => :'Boolean',
|
@@ -102,14 +102,14 @@ module MailSlurpClient
|
|
102
102
|
self.pageable = attributes[:'pageable']
|
103
103
|
end
|
104
104
|
|
105
|
-
if attributes.key?(:'total_elements')
|
106
|
-
self.total_elements = attributes[:'total_elements']
|
107
|
-
end
|
108
|
-
|
109
105
|
if attributes.key?(:'total_pages')
|
110
106
|
self.total_pages = attributes[:'total_pages']
|
111
107
|
end
|
112
108
|
|
109
|
+
if attributes.key?(:'total_elements')
|
110
|
+
self.total_elements = attributes[:'total_elements']
|
111
|
+
end
|
112
|
+
|
113
113
|
if attributes.key?(:'last')
|
114
114
|
self.last = attributes[:'last']
|
115
115
|
end
|
@@ -143,22 +143,22 @@ module MailSlurpClient
|
|
143
143
|
# @return Array for valid properties with the reasons
|
144
144
|
def list_invalid_properties
|
145
145
|
invalid_properties = Array.new
|
146
|
-
if @total_elements.nil?
|
147
|
-
invalid_properties.push('invalid value for "total_elements", total_elements cannot be nil.')
|
148
|
-
end
|
149
|
-
|
150
146
|
if @total_pages.nil?
|
151
147
|
invalid_properties.push('invalid value for "total_pages", total_pages cannot be nil.')
|
152
148
|
end
|
153
149
|
|
150
|
+
if @total_elements.nil?
|
151
|
+
invalid_properties.push('invalid value for "total_elements", total_elements cannot be nil.')
|
152
|
+
end
|
153
|
+
|
154
154
|
invalid_properties
|
155
155
|
end
|
156
156
|
|
157
157
|
# Check to see if the all the properties in the model are valid
|
158
158
|
# @return true if the model is valid
|
159
159
|
def valid?
|
160
|
-
return false if @total_elements.nil?
|
161
160
|
return false if @total_pages.nil?
|
161
|
+
return false if @total_elements.nil?
|
162
162
|
true
|
163
163
|
end
|
164
164
|
|
@@ -169,8 +169,8 @@ module MailSlurpClient
|
|
169
169
|
self.class == o.class &&
|
170
170
|
content == o.content &&
|
171
171
|
pageable == o.pageable &&
|
172
|
-
total_elements == o.total_elements &&
|
173
172
|
total_pages == o.total_pages &&
|
173
|
+
total_elements == o.total_elements &&
|
174
174
|
last == o.last &&
|
175
175
|
number_of_elements == o.number_of_elements &&
|
176
176
|
first == o.first &&
|
@@ -189,7 +189,7 @@ module MailSlurpClient
|
|
189
189
|
# Calculates hash code according to all attributes.
|
190
190
|
# @return [Integer] Hash code
|
191
191
|
def hash
|
192
|
-
[content, pageable,
|
192
|
+
[content, pageable, total_pages, total_elements, last, number_of_elements, first, size, number, sort, empty].hash
|
193
193
|
end
|
194
194
|
|
195
195
|
# Builds the object from hash
|