mailslurp_client 15.18.0 → 15.18.1
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 +2 -2
- 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 +15 -15
- data/lib/mailslurp_client/models/bounce_recipient_projection.rb +22 -22
- 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/inbox_forwarder_event_projection.rb +10 -10
- 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 +38 -38
- 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,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,16 +14,20 @@ require 'date'
|
|
14
14
|
|
15
15
|
module MailSlurpClient
|
16
16
|
class SentEmailProjection
|
17
|
+
attr_accessor :created_at
|
18
|
+
|
17
19
|
attr_accessor :id
|
18
20
|
|
21
|
+
attr_accessor :body_md5_hash
|
22
|
+
|
23
|
+
attr_accessor :user_id
|
24
|
+
|
19
25
|
attr_accessor :from
|
20
26
|
|
21
27
|
attr_accessor :subject
|
22
28
|
|
23
29
|
attr_accessor :inbox_id
|
24
30
|
|
25
|
-
attr_accessor :user_id
|
26
|
-
|
27
31
|
attr_accessor :attachments
|
28
32
|
|
29
33
|
attr_accessor :to
|
@@ -32,26 +36,22 @@ module MailSlurpClient
|
|
32
36
|
|
33
37
|
attr_accessor :cc
|
34
38
|
|
35
|
-
attr_accessor :created_at
|
36
|
-
|
37
|
-
attr_accessor :body_md5_hash
|
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',
|
46
|
+
:'body_md5_hash' => :'bodyMD5Hash',
|
47
|
+
:'user_id' => :'userId',
|
45
48
|
:'from' => :'from',
|
46
49
|
:'subject' => :'subject',
|
47
50
|
:'inbox_id' => :'inboxId',
|
48
|
-
:'user_id' => :'userId',
|
49
51
|
:'attachments' => :'attachments',
|
50
52
|
:'to' => :'to',
|
51
53
|
:'bcc' => :'bcc',
|
52
54
|
:'cc' => :'cc',
|
53
|
-
:'created_at' => :'createdAt',
|
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',
|
64
|
+
:'body_md5_hash' => :'String',
|
65
|
+
:'user_id' => :'String',
|
63
66
|
:'from' => :'String',
|
64
67
|
:'subject' => :'String',
|
65
68
|
:'inbox_id' => :'String',
|
66
|
-
:'user_id' => :'String',
|
67
69
|
:'attachments' => :'Array<String>',
|
68
70
|
:'to' => :'Array<String>',
|
69
71
|
:'bcc' => :'Array<String>',
|
70
72
|
:'cc' => :'Array<String>',
|
71
|
-
:'created_at' => :'DateTime',
|
72
|
-
:'body_md5_hash' => :'String',
|
73
73
|
:'virtual_send' => :'Boolean'
|
74
74
|
}
|
75
75
|
end
|
@@ -95,10 +95,22 @@ module MailSlurpClient
|
|
95
95
|
h[k.to_sym] = v
|
96
96
|
}
|
97
97
|
|
98
|
+
if attributes.key?(:'created_at')
|
99
|
+
self.created_at = attributes[:'created_at']
|
100
|
+
end
|
101
|
+
|
98
102
|
if attributes.key?(:'id')
|
99
103
|
self.id = attributes[:'id']
|
100
104
|
end
|
101
105
|
|
106
|
+
if attributes.key?(:'body_md5_hash')
|
107
|
+
self.body_md5_hash = attributes[:'body_md5_hash']
|
108
|
+
end
|
109
|
+
|
110
|
+
if attributes.key?(:'user_id')
|
111
|
+
self.user_id = attributes[:'user_id']
|
112
|
+
end
|
113
|
+
|
102
114
|
if attributes.key?(:'from')
|
103
115
|
self.from = attributes[:'from']
|
104
116
|
end
|
@@ -111,10 +123,6 @@ module MailSlurpClient
|
|
111
123
|
self.inbox_id = attributes[:'inbox_id']
|
112
124
|
end
|
113
125
|
|
114
|
-
if attributes.key?(:'user_id')
|
115
|
-
self.user_id = attributes[:'user_id']
|
116
|
-
end
|
117
|
-
|
118
126
|
if attributes.key?(:'attachments')
|
119
127
|
if (value = attributes[:'attachments']).is_a?(Array)
|
120
128
|
self.attachments = value
|
@@ -139,14 +147,6 @@ module MailSlurpClient
|
|
139
147
|
end
|
140
148
|
end
|
141
149
|
|
142
|
-
if attributes.key?(:'created_at')
|
143
|
-
self.created_at = attributes[:'created_at']
|
144
|
-
end
|
145
|
-
|
146
|
-
if attributes.key?(:'body_md5_hash')
|
147
|
-
self.body_md5_hash = attributes[:'body_md5_hash']
|
148
|
-
end
|
149
|
-
|
150
150
|
if attributes.key?(:'virtual_send')
|
151
151
|
self.virtual_send = attributes[:'virtual_send']
|
152
152
|
end
|
@@ -156,18 +156,22 @@ 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 @user_id.nil?
|
168
168
|
invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
|
169
169
|
end
|
170
170
|
|
171
|
+
if @inbox_id.nil?
|
172
|
+
invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
|
173
|
+
end
|
174
|
+
|
171
175
|
if @attachments.nil?
|
172
176
|
invalid_properties.push('invalid value for "attachments", attachments cannot be nil.')
|
173
177
|
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 @inbox_id.nil?
|
203
203
|
return false if @user_id.nil?
|
204
|
+
return false if @inbox_id.nil?
|
204
205
|
return false if @attachments.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 &&
|
220
|
+
body_md5_hash == o.body_md5_hash &&
|
221
|
+
user_id == o.user_id &&
|
219
222
|
from == o.from &&
|
220
223
|
subject == o.subject &&
|
221
224
|
inbox_id == o.inbox_id &&
|
222
|
-
user_id == o.user_id &&
|
223
225
|
attachments == o.attachments &&
|
224
226
|
to == o.to &&
|
225
227
|
bcc == o.bcc &&
|
226
228
|
cc == o.cc &&
|
227
|
-
created_at == o.created_at &&
|
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
|
-
[id, from, subject, inbox_id,
|
241
|
+
[created_at, id, body_md5_hash, user_id, from, subject, inbox_id, attachments, to, bcc, cc, virtual_send].hash
|
242
242
|
end
|
243
243
|
|
244
244
|
# Builds the object from hash
|
@@ -15,6 +15,10 @@ require 'date'
|
|
15
15
|
module MailSlurpClient
|
16
16
|
# SMS projection
|
17
17
|
class SmsProjection
|
18
|
+
attr_accessor :body
|
19
|
+
|
20
|
+
attr_accessor :created_at
|
21
|
+
|
18
22
|
attr_accessor :user_id
|
19
23
|
|
20
24
|
attr_accessor :phone_number
|
@@ -23,21 +27,17 @@ module MailSlurpClient
|
|
23
27
|
|
24
28
|
attr_accessor :read
|
25
29
|
|
26
|
-
attr_accessor :body
|
27
|
-
|
28
|
-
attr_accessor :created_at
|
29
|
-
|
30
30
|
attr_accessor :id
|
31
31
|
|
32
32
|
# Attribute mapping from ruby-style variable name to JSON key.
|
33
33
|
def self.attribute_map
|
34
34
|
{
|
35
|
+
:'body' => :'body',
|
36
|
+
:'created_at' => :'createdAt',
|
35
37
|
:'user_id' => :'userId',
|
36
38
|
:'phone_number' => :'phoneNumber',
|
37
39
|
:'from_number' => :'fromNumber',
|
38
40
|
:'read' => :'read',
|
39
|
-
:'body' => :'body',
|
40
|
-
:'created_at' => :'createdAt',
|
41
41
|
:'id' => :'id'
|
42
42
|
}
|
43
43
|
end
|
@@ -45,12 +45,12 @@ module MailSlurpClient
|
|
45
45
|
# Attribute type mapping.
|
46
46
|
def self.openapi_types
|
47
47
|
{
|
48
|
+
:'body' => :'String',
|
49
|
+
:'created_at' => :'DateTime',
|
48
50
|
:'user_id' => :'String',
|
49
51
|
:'phone_number' => :'String',
|
50
52
|
:'from_number' => :'String',
|
51
53
|
:'read' => :'Boolean',
|
52
|
-
:'body' => :'String',
|
53
|
-
:'created_at' => :'DateTime',
|
54
54
|
:'id' => :'String'
|
55
55
|
}
|
56
56
|
end
|
@@ -76,6 +76,14 @@ module MailSlurpClient
|
|
76
76
|
h[k.to_sym] = v
|
77
77
|
}
|
78
78
|
|
79
|
+
if attributes.key?(:'body')
|
80
|
+
self.body = attributes[:'body']
|
81
|
+
end
|
82
|
+
|
83
|
+
if attributes.key?(:'created_at')
|
84
|
+
self.created_at = attributes[:'created_at']
|
85
|
+
end
|
86
|
+
|
79
87
|
if attributes.key?(:'user_id')
|
80
88
|
self.user_id = attributes[:'user_id']
|
81
89
|
end
|
@@ -92,14 +100,6 @@ module MailSlurpClient
|
|
92
100
|
self.read = attributes[:'read']
|
93
101
|
end
|
94
102
|
|
95
|
-
if attributes.key?(:'body')
|
96
|
-
self.body = attributes[:'body']
|
97
|
-
end
|
98
|
-
|
99
|
-
if attributes.key?(:'created_at')
|
100
|
-
self.created_at = attributes[:'created_at']
|
101
|
-
end
|
102
|
-
|
103
103
|
if attributes.key?(:'id')
|
104
104
|
self.id = attributes[:'id']
|
105
105
|
end
|
@@ -109,6 +109,14 @@ module MailSlurpClient
|
|
109
109
|
# @return Array for valid properties with the reasons
|
110
110
|
def list_invalid_properties
|
111
111
|
invalid_properties = Array.new
|
112
|
+
if @body.nil?
|
113
|
+
invalid_properties.push('invalid value for "body", body cannot be nil.')
|
114
|
+
end
|
115
|
+
|
116
|
+
if @created_at.nil?
|
117
|
+
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
118
|
+
end
|
119
|
+
|
112
120
|
if @user_id.nil?
|
113
121
|
invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
|
114
122
|
end
|
@@ -125,14 +133,6 @@ module MailSlurpClient
|
|
125
133
|
invalid_properties.push('invalid value for "read", read cannot be nil.')
|
126
134
|
end
|
127
135
|
|
128
|
-
if @body.nil?
|
129
|
-
invalid_properties.push('invalid value for "body", body cannot be nil.')
|
130
|
-
end
|
131
|
-
|
132
|
-
if @created_at.nil?
|
133
|
-
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
134
|
-
end
|
135
|
-
|
136
136
|
if @id.nil?
|
137
137
|
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
138
138
|
end
|
@@ -143,12 +143,12 @@ module MailSlurpClient
|
|
143
143
|
# Check to see if the all the properties in the model are valid
|
144
144
|
# @return true if the model is valid
|
145
145
|
def valid?
|
146
|
+
return false if @body.nil?
|
147
|
+
return false if @created_at.nil?
|
146
148
|
return false if @user_id.nil?
|
147
149
|
return false if @phone_number.nil?
|
148
150
|
return false if @from_number.nil?
|
149
151
|
return false if @read.nil?
|
150
|
-
return false if @body.nil?
|
151
|
-
return false if @created_at.nil?
|
152
152
|
return false if @id.nil?
|
153
153
|
true
|
154
154
|
end
|
@@ -158,12 +158,12 @@ module MailSlurpClient
|
|
158
158
|
def ==(o)
|
159
159
|
return true if self.equal?(o)
|
160
160
|
self.class == o.class &&
|
161
|
+
body == o.body &&
|
162
|
+
created_at == o.created_at &&
|
161
163
|
user_id == o.user_id &&
|
162
164
|
phone_number == o.phone_number &&
|
163
165
|
from_number == o.from_number &&
|
164
166
|
read == o.read &&
|
165
|
-
body == o.body &&
|
166
|
-
created_at == o.created_at &&
|
167
167
|
id == o.id
|
168
168
|
end
|
169
169
|
|
@@ -176,7 +176,7 @@ module MailSlurpClient
|
|
176
176
|
# Calculates hash code according to all attributes.
|
177
177
|
# @return [Integer] Hash code
|
178
178
|
def hash
|
179
|
-
[user_id, phone_number, from_number, read,
|
179
|
+
[body, created_at, user_id, phone_number, from_number, read, id].hash
|
180
180
|
end
|
181
181
|
|
182
182
|
# Builds the object from hash
|