mailslurp_client 15.19.9 → 15.19.11
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/models/alias_projection.rb +29 -29
- 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 +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 +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_mailbox_status.rb +2 -4
- data/lib/mailslurp_client/models/imap_update_flags_options.rb +0 -34
- 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 +10 -10
- data/lib/mailslurp_client/models/phone_number_projection.rb +15 -15
- data/lib/mailslurp_client/models/sent_email_projection.rb +35 -35
- 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 +31 -31
- data/lib/mailslurp_client/models/tracking_pixel_projection.rb +15 -15
- 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
- metadata +2 -2
@@ -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,10 +15,10 @@ require 'date'
|
|
15
15
|
module MailSlurpClient
|
16
16
|
# Missed email data
|
17
17
|
class MissedEmailProjection
|
18
|
-
attr_accessor :user_id
|
19
|
-
|
20
18
|
attr_accessor :created_at
|
21
19
|
|
20
|
+
attr_accessor :user_id
|
21
|
+
|
22
22
|
attr_accessor :subject
|
23
23
|
|
24
24
|
attr_accessor :id
|
@@ -28,8 +28,8 @@ module MailSlurpClient
|
|
28
28
|
# Attribute mapping from ruby-style variable name to JSON key.
|
29
29
|
def self.attribute_map
|
30
30
|
{
|
31
|
-
:'user_id' => :'userId',
|
32
31
|
:'created_at' => :'createdAt',
|
32
|
+
:'user_id' => :'userId',
|
33
33
|
:'subject' => :'subject',
|
34
34
|
:'id' => :'id',
|
35
35
|
:'from' => :'from'
|
@@ -39,8 +39,8 @@ module MailSlurpClient
|
|
39
39
|
# Attribute type mapping.
|
40
40
|
def self.openapi_types
|
41
41
|
{
|
42
|
-
:'user_id' => :'String',
|
43
42
|
:'created_at' => :'DateTime',
|
43
|
+
:'user_id' => :'String',
|
44
44
|
:'subject' => :'String',
|
45
45
|
:'id' => :'String',
|
46
46
|
:'from' => :'String'
|
@@ -71,14 +71,14 @@ module MailSlurpClient
|
|
71
71
|
h[k.to_sym] = v
|
72
72
|
}
|
73
73
|
|
74
|
-
if attributes.key?(:'user_id')
|
75
|
-
self.user_id = attributes[:'user_id']
|
76
|
-
end
|
77
|
-
|
78
74
|
if attributes.key?(:'created_at')
|
79
75
|
self.created_at = attributes[:'created_at']
|
80
76
|
end
|
81
77
|
|
78
|
+
if attributes.key?(:'user_id')
|
79
|
+
self.user_id = attributes[:'user_id']
|
80
|
+
end
|
81
|
+
|
82
82
|
if attributes.key?(:'subject')
|
83
83
|
self.subject = attributes[:'subject']
|
84
84
|
end
|
@@ -120,8 +120,8 @@ module MailSlurpClient
|
|
120
120
|
def ==(o)
|
121
121
|
return true if self.equal?(o)
|
122
122
|
self.class == o.class &&
|
123
|
-
user_id == o.user_id &&
|
124
123
|
created_at == o.created_at &&
|
124
|
+
user_id == o.user_id &&
|
125
125
|
subject == o.subject &&
|
126
126
|
id == o.id &&
|
127
127
|
from == o.from
|
@@ -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
|
@@ -15,14 +15,14 @@ require 'date'
|
|
15
15
|
module MailSlurpClient
|
16
16
|
# Phone number projection
|
17
17
|
class PhoneNumberProjection
|
18
|
+
attr_accessor :created_at
|
19
|
+
|
18
20
|
attr_accessor :user_id
|
19
21
|
|
20
22
|
attr_accessor :phone_number
|
21
23
|
|
22
24
|
attr_accessor :phone_country
|
23
25
|
|
24
|
-
attr_accessor :created_at
|
25
|
-
|
26
26
|
attr_accessor :id
|
27
27
|
|
28
28
|
class EnumAttributeValidator
|
@@ -50,10 +50,10 @@ module MailSlurpClient
|
|
50
50
|
# Attribute mapping from ruby-style variable name to JSON key.
|
51
51
|
def self.attribute_map
|
52
52
|
{
|
53
|
+
:'created_at' => :'createdAt',
|
53
54
|
:'user_id' => :'userId',
|
54
55
|
:'phone_number' => :'phoneNumber',
|
55
56
|
:'phone_country' => :'phoneCountry',
|
56
|
-
:'created_at' => :'createdAt',
|
57
57
|
:'id' => :'id'
|
58
58
|
}
|
59
59
|
end
|
@@ -61,10 +61,10 @@ module MailSlurpClient
|
|
61
61
|
# Attribute type mapping.
|
62
62
|
def self.openapi_types
|
63
63
|
{
|
64
|
+
:'created_at' => :'DateTime',
|
64
65
|
:'user_id' => :'String',
|
65
66
|
:'phone_number' => :'String',
|
66
67
|
:'phone_country' => :'String',
|
67
|
-
:'created_at' => :'DateTime',
|
68
68
|
:'id' => :'String'
|
69
69
|
}
|
70
70
|
end
|
@@ -90,6 +90,10 @@ module MailSlurpClient
|
|
90
90
|
h[k.to_sym] = v
|
91
91
|
}
|
92
92
|
|
93
|
+
if attributes.key?(:'created_at')
|
94
|
+
self.created_at = attributes[:'created_at']
|
95
|
+
end
|
96
|
+
|
93
97
|
if attributes.key?(:'user_id')
|
94
98
|
self.user_id = attributes[:'user_id']
|
95
99
|
end
|
@@ -102,10 +106,6 @@ module MailSlurpClient
|
|
102
106
|
self.phone_country = attributes[:'phone_country']
|
103
107
|
end
|
104
108
|
|
105
|
-
if attributes.key?(:'created_at')
|
106
|
-
self.created_at = attributes[:'created_at']
|
107
|
-
end
|
108
|
-
|
109
109
|
if attributes.key?(:'id')
|
110
110
|
self.id = attributes[:'id']
|
111
111
|
end
|
@@ -115,6 +115,10 @@ module MailSlurpClient
|
|
115
115
|
# @return Array for valid properties with the reasons
|
116
116
|
def list_invalid_properties
|
117
117
|
invalid_properties = Array.new
|
118
|
+
if @created_at.nil?
|
119
|
+
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
120
|
+
end
|
121
|
+
|
118
122
|
if @user_id.nil?
|
119
123
|
invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
|
120
124
|
end
|
@@ -127,10 +131,6 @@ module MailSlurpClient
|
|
127
131
|
invalid_properties.push('invalid value for "phone_country", phone_country cannot be nil.')
|
128
132
|
end
|
129
133
|
|
130
|
-
if @created_at.nil?
|
131
|
-
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
132
|
-
end
|
133
|
-
|
134
134
|
if @id.nil?
|
135
135
|
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
136
136
|
end
|
@@ -141,12 +141,12 @@ module MailSlurpClient
|
|
141
141
|
# Check to see if the all the properties in the model are valid
|
142
142
|
# @return true if the model is valid
|
143
143
|
def valid?
|
144
|
+
return false if @created_at.nil?
|
144
145
|
return false if @user_id.nil?
|
145
146
|
return false if @phone_number.nil?
|
146
147
|
return false if @phone_country.nil?
|
147
148
|
phone_country_validator = EnumAttributeValidator.new('String', ["US", "GB", "AU"])
|
148
149
|
return false unless phone_country_validator.valid?(@phone_country)
|
149
|
-
return false if @created_at.nil?
|
150
150
|
return false if @id.nil?
|
151
151
|
true
|
152
152
|
end
|
@@ -166,10 +166,10 @@ module MailSlurpClient
|
|
166
166
|
def ==(o)
|
167
167
|
return true if self.equal?(o)
|
168
168
|
self.class == o.class &&
|
169
|
+
created_at == o.created_at &&
|
169
170
|
user_id == o.user_id &&
|
170
171
|
phone_number == o.phone_number &&
|
171
172
|
phone_country == o.phone_country &&
|
172
|
-
created_at == o.created_at &&
|
173
173
|
id == o.id
|
174
174
|
end
|
175
175
|
|
@@ -182,7 +182,7 @@ module MailSlurpClient
|
|
182
182
|
# Calculates hash code according to all attributes.
|
183
183
|
# @return [Integer] Hash code
|
184
184
|
def hash
|
185
|
-
[user_id, phone_number, phone_country,
|
185
|
+
[created_at, user_id, phone_number, phone_country, id].hash
|
186
186
|
end
|
187
187
|
|
188
188
|
# Builds the object from hash
|
@@ -14,11 +14,9 @@ require 'date'
|
|
14
14
|
|
15
15
|
module MailSlurpClient
|
16
16
|
class SentEmailProjection
|
17
|
-
attr_accessor :
|
18
|
-
|
19
|
-
attr_accessor :user_id
|
17
|
+
attr_accessor :created_at
|
20
18
|
|
21
|
-
attr_accessor :
|
19
|
+
attr_accessor :id
|
22
20
|
|
23
21
|
attr_accessor :from
|
24
22
|
|
@@ -28,30 +26,32 @@ module MailSlurpClient
|
|
28
26
|
|
29
27
|
attr_accessor :inbox_id
|
30
28
|
|
29
|
+
attr_accessor :user_id
|
30
|
+
|
31
31
|
attr_accessor :to
|
32
32
|
|
33
33
|
attr_accessor :bcc
|
34
34
|
|
35
35
|
attr_accessor :cc
|
36
36
|
|
37
|
-
attr_accessor :
|
37
|
+
attr_accessor :body_md5_hash
|
38
38
|
|
39
39
|
attr_accessor :virtual_send
|
40
40
|
|
41
41
|
# Attribute mapping from ruby-style variable name to JSON key.
|
42
42
|
def self.attribute_map
|
43
43
|
{
|
44
|
+
:'created_at' => :'createdAt',
|
44
45
|
:'id' => :'id',
|
45
|
-
:'user_id' => :'userId',
|
46
|
-
:'body_md5_hash' => :'bodyMD5Hash',
|
47
46
|
:'from' => :'from',
|
48
47
|
:'subject' => :'subject',
|
49
48
|
:'attachments' => :'attachments',
|
50
49
|
:'inbox_id' => :'inboxId',
|
50
|
+
:'user_id' => :'userId',
|
51
51
|
:'to' => :'to',
|
52
52
|
:'bcc' => :'bcc',
|
53
53
|
:'cc' => :'cc',
|
54
|
-
:'
|
54
|
+
:'body_md5_hash' => :'bodyMD5Hash',
|
55
55
|
:'virtual_send' => :'virtualSend'
|
56
56
|
}
|
57
57
|
end
|
@@ -59,17 +59,17 @@ module MailSlurpClient
|
|
59
59
|
# Attribute type mapping.
|
60
60
|
def self.openapi_types
|
61
61
|
{
|
62
|
+
:'created_at' => :'DateTime',
|
62
63
|
:'id' => :'String',
|
63
|
-
:'user_id' => :'String',
|
64
|
-
:'body_md5_hash' => :'String',
|
65
64
|
:'from' => :'String',
|
66
65
|
:'subject' => :'String',
|
67
66
|
:'attachments' => :'Array<String>',
|
68
67
|
:'inbox_id' => :'String',
|
68
|
+
:'user_id' => :'String',
|
69
69
|
:'to' => :'Array<String>',
|
70
70
|
:'bcc' => :'Array<String>',
|
71
71
|
:'cc' => :'Array<String>',
|
72
|
-
:'
|
72
|
+
:'body_md5_hash' => :'String',
|
73
73
|
:'virtual_send' => :'Boolean'
|
74
74
|
}
|
75
75
|
end
|
@@ -95,16 +95,12 @@ module MailSlurpClient
|
|
95
95
|
h[k.to_sym] = v
|
96
96
|
}
|
97
97
|
|
98
|
-
if attributes.key?(:'
|
99
|
-
self.
|
100
|
-
end
|
101
|
-
|
102
|
-
if attributes.key?(:'user_id')
|
103
|
-
self.user_id = attributes[:'user_id']
|
98
|
+
if attributes.key?(:'created_at')
|
99
|
+
self.created_at = attributes[:'created_at']
|
104
100
|
end
|
105
101
|
|
106
|
-
if attributes.key?(:'
|
107
|
-
self.
|
102
|
+
if attributes.key?(:'id')
|
103
|
+
self.id = attributes[:'id']
|
108
104
|
end
|
109
105
|
|
110
106
|
if attributes.key?(:'from')
|
@@ -125,6 +121,10 @@ module MailSlurpClient
|
|
125
121
|
self.inbox_id = attributes[:'inbox_id']
|
126
122
|
end
|
127
123
|
|
124
|
+
if attributes.key?(:'user_id')
|
125
|
+
self.user_id = attributes[:'user_id']
|
126
|
+
end
|
127
|
+
|
128
128
|
if attributes.key?(:'to')
|
129
129
|
if (value = attributes[:'to']).is_a?(Array)
|
130
130
|
self.to = value
|
@@ -143,8 +143,8 @@ module MailSlurpClient
|
|
143
143
|
end
|
144
144
|
end
|
145
145
|
|
146
|
-
if attributes.key?(:'
|
147
|
-
self.
|
146
|
+
if attributes.key?(:'body_md5_hash')
|
147
|
+
self.body_md5_hash = attributes[:'body_md5_hash']
|
148
148
|
end
|
149
149
|
|
150
150
|
if attributes.key?(:'virtual_send')
|
@@ -156,12 +156,12 @@ module MailSlurpClient
|
|
156
156
|
# @return Array for valid properties with the reasons
|
157
157
|
def list_invalid_properties
|
158
158
|
invalid_properties = Array.new
|
159
|
-
if @
|
160
|
-
invalid_properties.push('invalid value for "
|
159
|
+
if @created_at.nil?
|
160
|
+
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
161
161
|
end
|
162
162
|
|
163
|
-
if @
|
164
|
-
invalid_properties.push('invalid value for "
|
163
|
+
if @id.nil?
|
164
|
+
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
165
165
|
end
|
166
166
|
|
167
167
|
if @attachments.nil?
|
@@ -172,6 +172,10 @@ module MailSlurpClient
|
|
172
172
|
invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
|
173
173
|
end
|
174
174
|
|
175
|
+
if @user_id.nil?
|
176
|
+
invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
|
177
|
+
end
|
178
|
+
|
175
179
|
if @to.nil?
|
176
180
|
invalid_properties.push('invalid value for "to", to cannot be nil.')
|
177
181
|
end
|
@@ -184,10 +188,6 @@ module MailSlurpClient
|
|
184
188
|
invalid_properties.push('invalid value for "cc", cc cannot be nil.')
|
185
189
|
end
|
186
190
|
|
187
|
-
if @created_at.nil?
|
188
|
-
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
189
|
-
end
|
190
|
-
|
191
191
|
if @virtual_send.nil?
|
192
192
|
invalid_properties.push('invalid value for "virtual_send", virtual_send cannot be nil.')
|
193
193
|
end
|
@@ -198,14 +198,14 @@ module MailSlurpClient
|
|
198
198
|
# Check to see if the all the properties in the model are valid
|
199
199
|
# @return true if the model is valid
|
200
200
|
def valid?
|
201
|
+
return false if @created_at.nil?
|
201
202
|
return false if @id.nil?
|
202
|
-
return false if @user_id.nil?
|
203
203
|
return false if @attachments.nil?
|
204
204
|
return false if @inbox_id.nil?
|
205
|
+
return false if @user_id.nil?
|
205
206
|
return false if @to.nil?
|
206
207
|
return false if @bcc.nil?
|
207
208
|
return false if @cc.nil?
|
208
|
-
return false if @created_at.nil?
|
209
209
|
return false if @virtual_send.nil?
|
210
210
|
true
|
211
211
|
end
|
@@ -215,17 +215,17 @@ module MailSlurpClient
|
|
215
215
|
def ==(o)
|
216
216
|
return true if self.equal?(o)
|
217
217
|
self.class == o.class &&
|
218
|
+
created_at == o.created_at &&
|
218
219
|
id == o.id &&
|
219
|
-
user_id == o.user_id &&
|
220
|
-
body_md5_hash == o.body_md5_hash &&
|
221
220
|
from == o.from &&
|
222
221
|
subject == o.subject &&
|
223
222
|
attachments == o.attachments &&
|
224
223
|
inbox_id == o.inbox_id &&
|
224
|
+
user_id == o.user_id &&
|
225
225
|
to == o.to &&
|
226
226
|
bcc == o.bcc &&
|
227
227
|
cc == o.cc &&
|
228
|
-
|
228
|
+
body_md5_hash == o.body_md5_hash &&
|
229
229
|
virtual_send == o.virtual_send
|
230
230
|
end
|
231
231
|
|
@@ -238,7 +238,7 @@ module MailSlurpClient
|
|
238
238
|
# Calculates hash code according to all attributes.
|
239
239
|
# @return [Integer] Hash code
|
240
240
|
def hash
|
241
|
-
[
|
241
|
+
[created_at, id, from, subject, attachments, inbox_id, user_id, to, bcc, cc, body_md5_hash, virtual_send].hash
|
242
242
|
end
|
243
243
|
|
244
244
|
# Builds the object from hash
|