mailslurp_client 15.17.38 → 15.17.40
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 +39 -39
- 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 +22 -22
- data/lib/mailslurp_client/models/connector_projection.rb +24 -24
- data/lib/mailslurp_client/models/connector_sync_event_projection.rb +15 -15
- data/lib/mailslurp_client/models/contact_projection.rb +10 -10
- data/lib/mailslurp_client/models/email.rb +13 -13
- data/lib/mailslurp_client/models/email_projection.rb +28 -28
- data/lib/mailslurp_client/models/expired_inbox_record_projection.rb +19 -19
- data/lib/mailslurp_client/models/inbox_forwarder_event_projection.rb +20 -20
- data/lib/mailslurp_client/models/inbox_replier_event_projection.rb +20 -20
- data/lib/mailslurp_client/models/list_unsubscribe_recipient_projection.rb +15 -15
- data/lib/mailslurp_client/models/missed_email_projection.rb +14 -14
- data/lib/mailslurp_client/models/phone_number_projection.rb +15 -15
- data/lib/mailslurp_client/models/sent_email_projection.rb +41 -41
- 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 +45 -45
- data/lib/mailslurp_client/models/tracking_pixel_projection.rb +27 -27
- 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
- metadata +2 -2
@@ -15,20 +15,20 @@ require 'date'
|
|
15
15
|
module MailSlurpClient
|
16
16
|
# Record of inbox expiration
|
17
17
|
class ExpiredInboxRecordProjection
|
18
|
-
attr_accessor :
|
18
|
+
attr_accessor :created_at
|
19
19
|
|
20
20
|
attr_accessor :email_address
|
21
21
|
|
22
|
-
attr_accessor :
|
22
|
+
attr_accessor :user_id
|
23
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
|
-
:'user_id' => :'userId',
|
30
|
-
:'email_address' => :'emailAddress',
|
31
29
|
:'created_at' => :'createdAt',
|
30
|
+
:'email_address' => :'emailAddress',
|
31
|
+
:'user_id' => :'userId',
|
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
|
-
:'user_id' => :'String',
|
40
|
-
:'email_address' => :'String',
|
41
39
|
:'created_at' => :'DateTime',
|
40
|
+
:'email_address' => :'String',
|
41
|
+
:'user_id' => :'String',
|
42
42
|
:'id' => :'String'
|
43
43
|
}
|
44
44
|
end
|
@@ -64,16 +64,16 @@ module MailSlurpClient
|
|
64
64
|
h[k.to_sym] = v
|
65
65
|
}
|
66
66
|
|
67
|
-
if attributes.key?(:'
|
68
|
-
self.
|
67
|
+
if attributes.key?(:'created_at')
|
68
|
+
self.created_at = attributes[:'created_at']
|
69
69
|
end
|
70
70
|
|
71
71
|
if attributes.key?(:'email_address')
|
72
72
|
self.email_address = attributes[:'email_address']
|
73
73
|
end
|
74
74
|
|
75
|
-
if attributes.key?(:'
|
76
|
-
self.
|
75
|
+
if attributes.key?(:'user_id')
|
76
|
+
self.user_id = attributes[:'user_id']
|
77
77
|
end
|
78
78
|
|
79
79
|
if attributes.key?(:'id')
|
@@ -85,16 +85,16 @@ 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 @
|
89
|
-
invalid_properties.push('invalid value for "
|
88
|
+
if @created_at.nil?
|
89
|
+
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
90
90
|
end
|
91
91
|
|
92
92
|
if @email_address.nil?
|
93
93
|
invalid_properties.push('invalid value for "email_address", email_address cannot be nil.')
|
94
94
|
end
|
95
95
|
|
96
|
-
if @
|
97
|
-
invalid_properties.push('invalid value for "
|
96
|
+
if @user_id.nil?
|
97
|
+
invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
|
98
98
|
end
|
99
99
|
|
100
100
|
if @id.nil?
|
@@ -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 @user_id.nil?
|
111
|
-
return false if @email_address.nil?
|
112
110
|
return false if @created_at.nil?
|
111
|
+
return false if @email_address.nil?
|
112
|
+
return false if @user_id.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
|
-
user_id == o.user_id &&
|
123
|
-
email_address == o.email_address &&
|
124
122
|
created_at == o.created_at &&
|
123
|
+
email_address == o.email_address &&
|
124
|
+
user_id == o.user_id &&
|
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
|
+
[created_at, email_address, user_id, id].hash
|
138
138
|
end
|
139
139
|
|
140
140
|
# Builds the object from hash
|
@@ -15,16 +15,16 @@ require 'date'
|
|
15
15
|
module MailSlurpClient
|
16
16
|
# Inbox forwarder event
|
17
17
|
class InboxForwarderEventProjection
|
18
|
+
attr_accessor :created_at
|
19
|
+
|
20
|
+
attr_accessor :user_id
|
21
|
+
|
18
22
|
attr_accessor :email_id
|
19
23
|
|
20
24
|
attr_accessor :inbox_id
|
21
25
|
|
22
|
-
attr_accessor :user_id
|
23
|
-
|
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',
|
60
|
+
:'user_id' => :'userId',
|
59
61
|
:'email_id' => :'emailId',
|
60
62
|
:'inbox_id' => :'inboxId',
|
61
|
-
:'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',
|
74
|
+
:'user_id' => :'String',
|
73
75
|
:'email_id' => :'String',
|
74
76
|
:'inbox_id' => :'String',
|
75
|
-
:'user_id' => :'String',
|
76
77
|
:'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,6 +109,14 @@ module MailSlurpClient
|
|
109
109
|
h[k.to_sym] = v
|
110
110
|
}
|
111
111
|
|
112
|
+
if attributes.key?(:'created_at')
|
113
|
+
self.created_at = attributes[:'created_at']
|
114
|
+
end
|
115
|
+
|
116
|
+
if attributes.key?(:'user_id')
|
117
|
+
self.user_id = attributes[:'user_id']
|
118
|
+
end
|
119
|
+
|
112
120
|
if attributes.key?(:'email_id')
|
113
121
|
self.email_id = attributes[:'email_id']
|
114
122
|
end
|
@@ -117,18 +125,10 @@ module MailSlurpClient
|
|
117
125
|
self.inbox_id = attributes[:'inbox_id']
|
118
126
|
end
|
119
127
|
|
120
|
-
if attributes.key?(:'user_id')
|
121
|
-
self.user_id = attributes[:'user_id']
|
122
|
-
end
|
123
|
-
|
124
128
|
if attributes.key?(:'forwarder_id')
|
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 &&
|
181
|
+
user_id == o.user_id &&
|
180
182
|
email_id == o.email_id &&
|
181
183
|
inbox_id == o.inbox_id &&
|
182
|
-
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
|
-
[
|
199
|
+
[created_at, user_id, email_id, inbox_id, forwarder_id, 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
|
+
|
18
20
|
attr_accessor :recipients
|
19
21
|
|
22
|
+
attr_accessor :user_id
|
23
|
+
|
20
24
|
attr_accessor :email_id
|
21
25
|
|
22
26
|
attr_accessor :inbox_id
|
23
27
|
|
24
|
-
attr_accessor :user_id
|
25
|
-
|
26
28
|
attr_accessor :sent_id
|
27
29
|
|
28
30
|
attr_accessor :replier_id
|
29
31
|
|
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',
|
63
64
|
:'recipients' => :'recipients',
|
65
|
+
:'user_id' => :'userId',
|
64
66
|
:'email_id' => :'emailId',
|
65
67
|
:'inbox_id' => :'inboxId',
|
66
|
-
:'user_id' => :'userId',
|
67
68
|
:'sent_id' => :'sentId',
|
68
69
|
:'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',
|
79
80
|
:'recipients' => :'Array<String>',
|
81
|
+
:'user_id' => :'String',
|
80
82
|
:'email_id' => :'String',
|
81
83
|
:'inbox_id' => :'String',
|
82
|
-
:'user_id' => :'String',
|
83
84
|
:'sent_id' => :'String',
|
84
85
|
:'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,12 +119,20 @@ 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
|
+
|
122
126
|
if attributes.key?(:'recipients')
|
123
127
|
if (value = attributes[:'recipients']).is_a?(Array)
|
124
128
|
self.recipients = value
|
125
129
|
end
|
126
130
|
end
|
127
131
|
|
132
|
+
if attributes.key?(:'user_id')
|
133
|
+
self.user_id = attributes[:'user_id']
|
134
|
+
end
|
135
|
+
|
128
136
|
if attributes.key?(:'email_id')
|
129
137
|
self.email_id = attributes[:'email_id']
|
130
138
|
end
|
@@ -133,10 +141,6 @@ module MailSlurpClient
|
|
133
141
|
self.inbox_id = attributes[:'inbox_id']
|
134
142
|
end
|
135
143
|
|
136
|
-
if attributes.key?(:'user_id')
|
137
|
-
self.user_id = attributes[:'user_id']
|
138
|
-
end
|
139
|
-
|
140
144
|
if attributes.key?(:'sent_id')
|
141
145
|
self.sent_id = attributes[:'sent_id']
|
142
146
|
end
|
@@ -145,10 +149,6 @@ module MailSlurpClient
|
|
145
149
|
self.replier_id = attributes[:'replier_id']
|
146
150
|
end
|
147
151
|
|
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 &&
|
200
201
|
recipients == o.recipients &&
|
202
|
+
user_id == o.user_id &&
|
201
203
|
email_id == o.email_id &&
|
202
204
|
inbox_id == o.inbox_id &&
|
203
|
-
user_id == o.user_id &&
|
204
205
|
sent_id == o.sent_id &&
|
205
206
|
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
|
-
[recipients, email_id, inbox_id,
|
221
|
+
[created_at, recipients, user_id, email_id, inbox_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
|
@@ -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
|