mailslurp_client 15.20.0 → 15.21.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/mailslurp_client/api/attachment_controller_api.rb +6 -0
- data/lib/mailslurp_client/api/bounce_controller_api.rb +79 -0
- data/lib/mailslurp_client/api/inbox_controller_api.rb +56 -2
- data/lib/mailslurp_client/api/o_auth_connection_api.rb +170 -0
- data/lib/mailslurp_client/api/phone_controller_api.rb +381 -1
- data/lib/mailslurp_client/api/user_controller_api.rb +267 -0
- data/lib/mailslurp_client/models/alias_projection.rb +29 -29
- data/lib/mailslurp_client/models/alias_thread_projection.rb +39 -39
- data/lib/mailslurp_client/models/attachment_projection.rb +25 -25
- data/lib/mailslurp_client/models/bounce_projection.rb +22 -22
- data/lib/mailslurp_client/models/bounce_recipient_projection.rb +10 -10
- data/lib/mailslurp_client/models/connector_event_projection.rb +15 -15
- data/lib/mailslurp_client/models/connector_projection.rb +15 -15
- data/lib/mailslurp_client/models/contact_projection.rb +10 -10
- data/lib/mailslurp_client/models/create_emergency_address_options.rb +2 -2
- data/lib/mailslurp_client/models/create_o_auth_connection_result.rb +211 -0
- data/lib/mailslurp_client/models/create_o_auth_exchange_result.rb +229 -0
- data/lib/mailslurp_client/models/create_phone_number_options.rb +284 -0
- data/lib/mailslurp_client/models/domain_dto.rb +27 -1
- data/lib/mailslurp_client/models/email.rb +12 -1
- data/lib/mailslurp_client/models/email_preview.rb +15 -5
- data/lib/mailslurp_client/models/email_projection.rb +35 -25
- data/lib/mailslurp_client/models/email_thread_projection.rb +52 -52
- data/lib/mailslurp_client/models/emergency_address.rb +2 -2
- data/lib/mailslurp_client/models/emergency_address_dto.rb +2 -2
- data/lib/mailslurp_client/models/entity_automation_item_projection.rb +295 -0
- data/lib/mailslurp_client/models/entity_event_item_projection.rb +303 -0
- data/lib/mailslurp_client/models/entity_favourite_item_projection.rb +296 -0
- data/lib/mailslurp_client/models/expired_inbox_record_projection.rb +15 -15
- data/lib/mailslurp_client/models/guest_portal_user_projection.rb +39 -39
- data/lib/mailslurp_client/models/inbox_dto.rb +2 -2
- data/lib/mailslurp_client/models/inbox_forwarder_event_projection.rb +10 -10
- data/lib/mailslurp_client/models/inbox_preview.rb +2 -2
- data/lib/mailslurp_client/models/inbox_replier_event_projection.rb +10 -10
- 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/opt_in_identity_projection.rb +29 -29
- data/lib/mailslurp_client/models/organization_inbox_projection.rb +2 -2
- data/lib/mailslurp_client/models/page_entity_automation_items.rb +309 -0
- data/lib/mailslurp_client/models/page_entity_event_items.rb +309 -0
- data/lib/mailslurp_client/models/page_entity_favourite_items.rb +309 -0
- data/lib/mailslurp_client/models/page_phone_message_thread_item_projection.rb +309 -0
- data/lib/mailslurp_client/models/page_phone_message_thread_projection.rb +309 -0
- data/lib/mailslurp_client/models/page_reputation_items.rb +309 -0
- data/lib/mailslurp_client/models/phone_message_thread_item_projection.rb +315 -0
- data/lib/mailslurp_client/models/phone_message_thread_projection.rb +315 -0
- data/lib/mailslurp_client/models/phone_number_dto.rb +2 -2
- data/lib/mailslurp_client/models/phone_number_projection.rb +17 -17
- data/lib/mailslurp_client/models/phone_plan_availability_item.rb +2 -2
- data/lib/mailslurp_client/models/phone_plan_dto.rb +2 -2
- data/lib/mailslurp_client/models/plus_address_projection.rb +29 -29
- data/lib/mailslurp_client/models/reputation_item_projection.rb +317 -0
- data/lib/mailslurp_client/models/search_inboxes_options.rb +2 -2
- data/lib/mailslurp_client/models/sent_email_dto.rb +12 -1
- data/lib/mailslurp_client/models/sent_email_projection.rb +25 -25
- data/lib/mailslurp_client/models/sent_sms_projection.rb +15 -15
- data/lib/mailslurp_client/models/sms_preview.rb +15 -1
- data/lib/mailslurp_client/models/sms_projection.rb +15 -15
- data/lib/mailslurp_client/models/template_projection.rb +15 -15
- 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/wait_for_sms_conditions.rb +1 -1
- data/lib/mailslurp_client/models/webhook_projection.rb +47 -47
- data/lib/mailslurp_client/version.rb +1 -1
- data/lib/mailslurp_client.rb +16 -0
- metadata +18 -2
@@ -14,10 +14,6 @@ require 'date'
|
|
14
14
|
|
15
15
|
module MailSlurpClient
|
16
16
|
class SentEmailProjection
|
17
|
-
attr_accessor :subject
|
18
|
-
|
19
|
-
attr_accessor :created_at
|
20
|
-
|
21
17
|
attr_accessor :id
|
22
18
|
|
23
19
|
attr_accessor :from
|
@@ -26,12 +22,16 @@ module MailSlurpClient
|
|
26
22
|
|
27
23
|
attr_accessor :recipients
|
28
24
|
|
25
|
+
attr_accessor :subject
|
26
|
+
|
29
27
|
attr_accessor :user_id
|
30
28
|
|
31
29
|
attr_accessor :attachments
|
32
30
|
|
33
31
|
attr_accessor :inbox_id
|
34
32
|
|
33
|
+
attr_accessor :created_at
|
34
|
+
|
35
35
|
attr_accessor :to
|
36
36
|
|
37
37
|
attr_accessor :cc
|
@@ -55,15 +55,15 @@ module MailSlurpClient
|
|
55
55
|
# Attribute mapping from ruby-style variable name to JSON key.
|
56
56
|
def self.attribute_map
|
57
57
|
{
|
58
|
-
:'subject' => :'subject',
|
59
|
-
:'created_at' => :'createdAt',
|
60
58
|
:'id' => :'id',
|
61
59
|
:'from' => :'from',
|
62
60
|
:'sender' => :'sender',
|
63
61
|
:'recipients' => :'recipients',
|
62
|
+
:'subject' => :'subject',
|
64
63
|
:'user_id' => :'userId',
|
65
64
|
:'attachments' => :'attachments',
|
66
65
|
:'inbox_id' => :'inboxId',
|
66
|
+
:'created_at' => :'createdAt',
|
67
67
|
:'to' => :'to',
|
68
68
|
:'cc' => :'cc',
|
69
69
|
:'bcc' => :'bcc',
|
@@ -80,15 +80,15 @@ module MailSlurpClient
|
|
80
80
|
# Attribute type mapping.
|
81
81
|
def self.openapi_types
|
82
82
|
{
|
83
|
-
:'subject' => :'String',
|
84
|
-
:'created_at' => :'DateTime',
|
85
83
|
:'id' => :'String',
|
86
84
|
:'from' => :'String',
|
87
85
|
:'sender' => :'Sender',
|
88
86
|
:'recipients' => :'EmailRecipients',
|
87
|
+
:'subject' => :'String',
|
89
88
|
:'user_id' => :'String',
|
90
89
|
:'attachments' => :'Array<String>',
|
91
90
|
:'inbox_id' => :'String',
|
91
|
+
:'created_at' => :'DateTime',
|
92
92
|
:'to' => :'Array<String>',
|
93
93
|
:'cc' => :'Array<String>',
|
94
94
|
:'bcc' => :'Array<String>',
|
@@ -105,10 +105,10 @@ module MailSlurpClient
|
|
105
105
|
# List of attributes with nullable: true
|
106
106
|
def self.openapi_nullable
|
107
107
|
Set.new([
|
108
|
-
:'subject',
|
109
108
|
:'from',
|
110
109
|
:'sender',
|
111
110
|
:'recipients',
|
111
|
+
:'subject',
|
112
112
|
:'attachments',
|
113
113
|
:'message_id',
|
114
114
|
:'in_reply_to',
|
@@ -134,14 +134,6 @@ module MailSlurpClient
|
|
134
134
|
h[k.to_sym] = v
|
135
135
|
}
|
136
136
|
|
137
|
-
if attributes.key?(:'subject')
|
138
|
-
self.subject = attributes[:'subject']
|
139
|
-
end
|
140
|
-
|
141
|
-
if attributes.key?(:'created_at')
|
142
|
-
self.created_at = attributes[:'created_at']
|
143
|
-
end
|
144
|
-
|
145
137
|
if attributes.key?(:'id')
|
146
138
|
self.id = attributes[:'id']
|
147
139
|
end
|
@@ -158,6 +150,10 @@ module MailSlurpClient
|
|
158
150
|
self.recipients = attributes[:'recipients']
|
159
151
|
end
|
160
152
|
|
153
|
+
if attributes.key?(:'subject')
|
154
|
+
self.subject = attributes[:'subject']
|
155
|
+
end
|
156
|
+
|
161
157
|
if attributes.key?(:'user_id')
|
162
158
|
self.user_id = attributes[:'user_id']
|
163
159
|
end
|
@@ -172,6 +168,10 @@ module MailSlurpClient
|
|
172
168
|
self.inbox_id = attributes[:'inbox_id']
|
173
169
|
end
|
174
170
|
|
171
|
+
if attributes.key?(:'created_at')
|
172
|
+
self.created_at = attributes[:'created_at']
|
173
|
+
end
|
174
|
+
|
175
175
|
if attributes.key?(:'to')
|
176
176
|
if (value = attributes[:'to']).is_a?(Array)
|
177
177
|
self.to = value
|
@@ -223,10 +223,6 @@ module MailSlurpClient
|
|
223
223
|
# @return Array for valid properties with the reasons
|
224
224
|
def list_invalid_properties
|
225
225
|
invalid_properties = Array.new
|
226
|
-
if @created_at.nil?
|
227
|
-
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
228
|
-
end
|
229
|
-
|
230
226
|
if @id.nil?
|
231
227
|
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
232
228
|
end
|
@@ -239,6 +235,10 @@ module MailSlurpClient
|
|
239
235
|
invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
|
240
236
|
end
|
241
237
|
|
238
|
+
if @created_at.nil?
|
239
|
+
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
240
|
+
end
|
241
|
+
|
242
242
|
if @to.nil?
|
243
243
|
invalid_properties.push('invalid value for "to", to cannot be nil.')
|
244
244
|
end
|
@@ -261,10 +261,10 @@ module MailSlurpClient
|
|
261
261
|
# Check to see if the all the properties in the model are valid
|
262
262
|
# @return true if the model is valid
|
263
263
|
def valid?
|
264
|
-
return false if @created_at.nil?
|
265
264
|
return false if @id.nil?
|
266
265
|
return false if @user_id.nil?
|
267
266
|
return false if @inbox_id.nil?
|
267
|
+
return false if @created_at.nil?
|
268
268
|
return false if @to.nil?
|
269
269
|
return false if @cc.nil?
|
270
270
|
return false if @bcc.nil?
|
@@ -277,15 +277,15 @@ module MailSlurpClient
|
|
277
277
|
def ==(o)
|
278
278
|
return true if self.equal?(o)
|
279
279
|
self.class == o.class &&
|
280
|
-
subject == o.subject &&
|
281
|
-
created_at == o.created_at &&
|
282
280
|
id == o.id &&
|
283
281
|
from == o.from &&
|
284
282
|
sender == o.sender &&
|
285
283
|
recipients == o.recipients &&
|
284
|
+
subject == o.subject &&
|
286
285
|
user_id == o.user_id &&
|
287
286
|
attachments == o.attachments &&
|
288
287
|
inbox_id == o.inbox_id &&
|
288
|
+
created_at == o.created_at &&
|
289
289
|
to == o.to &&
|
290
290
|
cc == o.cc &&
|
291
291
|
bcc == o.bcc &&
|
@@ -307,7 +307,7 @@ module MailSlurpClient
|
|
307
307
|
# Calculates hash code according to all attributes.
|
308
308
|
# @return [Integer] Hash code
|
309
309
|
def hash
|
310
|
-
[
|
310
|
+
[id, from, sender, recipients, subject, user_id, attachments, inbox_id, created_at, to, cc, bcc, message_id, in_reply_to, body_excerpt, text_excerpt, body_md5_hash, virtual_send, thread_id].hash
|
311
311
|
end
|
312
312
|
|
313
313
|
# Builds the object from hash
|
@@ -17,10 +17,10 @@ module MailSlurpClient
|
|
17
17
|
class SentSmsProjection
|
18
18
|
attr_accessor :body
|
19
19
|
|
20
|
-
attr_accessor :created_at
|
21
|
-
|
22
20
|
attr_accessor :user_id
|
23
21
|
|
22
|
+
attr_accessor :created_at
|
23
|
+
|
24
24
|
attr_accessor :phone_number
|
25
25
|
|
26
26
|
attr_accessor :from_number
|
@@ -35,8 +35,8 @@ module MailSlurpClient
|
|
35
35
|
def self.attribute_map
|
36
36
|
{
|
37
37
|
:'body' => :'body',
|
38
|
-
:'created_at' => :'createdAt',
|
39
38
|
:'user_id' => :'userId',
|
39
|
+
:'created_at' => :'createdAt',
|
40
40
|
:'phone_number' => :'phoneNumber',
|
41
41
|
:'from_number' => :'fromNumber',
|
42
42
|
:'to_number' => :'toNumber',
|
@@ -49,8 +49,8 @@ module MailSlurpClient
|
|
49
49
|
def self.openapi_types
|
50
50
|
{
|
51
51
|
:'body' => :'String',
|
52
|
-
:'created_at' => :'DateTime',
|
53
52
|
:'user_id' => :'String',
|
53
|
+
:'created_at' => :'DateTime',
|
54
54
|
:'phone_number' => :'String',
|
55
55
|
:'from_number' => :'String',
|
56
56
|
:'to_number' => :'String',
|
@@ -84,14 +84,14 @@ module MailSlurpClient
|
|
84
84
|
self.body = attributes[:'body']
|
85
85
|
end
|
86
86
|
|
87
|
-
if attributes.key?(:'created_at')
|
88
|
-
self.created_at = attributes[:'created_at']
|
89
|
-
end
|
90
|
-
|
91
87
|
if attributes.key?(:'user_id')
|
92
88
|
self.user_id = attributes[:'user_id']
|
93
89
|
end
|
94
90
|
|
91
|
+
if attributes.key?(:'created_at')
|
92
|
+
self.created_at = attributes[:'created_at']
|
93
|
+
end
|
94
|
+
|
95
95
|
if attributes.key?(:'phone_number')
|
96
96
|
self.phone_number = attributes[:'phone_number']
|
97
97
|
end
|
@@ -121,14 +121,14 @@ module MailSlurpClient
|
|
121
121
|
invalid_properties.push('invalid value for "body", body cannot be nil.')
|
122
122
|
end
|
123
123
|
|
124
|
-
if @created_at.nil?
|
125
|
-
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
126
|
-
end
|
127
|
-
|
128
124
|
if @user_id.nil?
|
129
125
|
invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
|
130
126
|
end
|
131
127
|
|
128
|
+
if @created_at.nil?
|
129
|
+
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
130
|
+
end
|
131
|
+
|
132
132
|
if @phone_number.nil?
|
133
133
|
invalid_properties.push('invalid value for "phone_number", phone_number cannot be nil.')
|
134
134
|
end
|
@@ -152,8 +152,8 @@ module MailSlurpClient
|
|
152
152
|
# @return true if the model is valid
|
153
153
|
def valid?
|
154
154
|
return false if @body.nil?
|
155
|
-
return false if @created_at.nil?
|
156
155
|
return false if @user_id.nil?
|
156
|
+
return false if @created_at.nil?
|
157
157
|
return false if @phone_number.nil?
|
158
158
|
return false if @from_number.nil?
|
159
159
|
return false if @to_number.nil?
|
@@ -167,8 +167,8 @@ module MailSlurpClient
|
|
167
167
|
return true if self.equal?(o)
|
168
168
|
self.class == o.class &&
|
169
169
|
body == o.body &&
|
170
|
-
created_at == o.created_at &&
|
171
170
|
user_id == o.user_id &&
|
171
|
+
created_at == o.created_at &&
|
172
172
|
phone_number == o.phone_number &&
|
173
173
|
from_number == o.from_number &&
|
174
174
|
to_number == o.to_number &&
|
@@ -185,7 +185,7 @@ module MailSlurpClient
|
|
185
185
|
# Calculates hash code according to all attributes.
|
186
186
|
# @return [Integer] Hash code
|
187
187
|
def hash
|
188
|
-
[body,
|
188
|
+
[body, user_id, created_at, phone_number, from_number, to_number, reply_to_id, id].hash
|
189
189
|
end
|
190
190
|
|
191
191
|
# Builds the object from hash
|
@@ -24,6 +24,8 @@ module MailSlurpClient
|
|
24
24
|
|
25
25
|
attr_accessor :from_number
|
26
26
|
|
27
|
+
attr_accessor :read
|
28
|
+
|
27
29
|
attr_accessor :created_at
|
28
30
|
|
29
31
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -34,6 +36,7 @@ module MailSlurpClient
|
|
34
36
|
:'body' => :'body',
|
35
37
|
:'phone_number' => :'phoneNumber',
|
36
38
|
:'from_number' => :'fromNumber',
|
39
|
+
:'read' => :'read',
|
37
40
|
:'created_at' => :'createdAt'
|
38
41
|
}
|
39
42
|
end
|
@@ -46,6 +49,7 @@ module MailSlurpClient
|
|
46
49
|
:'body' => :'String',
|
47
50
|
:'phone_number' => :'String',
|
48
51
|
:'from_number' => :'String',
|
52
|
+
:'read' => :'Boolean',
|
49
53
|
:'created_at' => :'DateTime'
|
50
54
|
}
|
51
55
|
end
|
@@ -91,6 +95,10 @@ module MailSlurpClient
|
|
91
95
|
self.from_number = attributes[:'from_number']
|
92
96
|
end
|
93
97
|
|
98
|
+
if attributes.key?(:'read')
|
99
|
+
self.read = attributes[:'read']
|
100
|
+
end
|
101
|
+
|
94
102
|
if attributes.key?(:'created_at')
|
95
103
|
self.created_at = attributes[:'created_at']
|
96
104
|
end
|
@@ -120,6 +128,10 @@ module MailSlurpClient
|
|
120
128
|
invalid_properties.push('invalid value for "from_number", from_number cannot be nil.')
|
121
129
|
end
|
122
130
|
|
131
|
+
if @read.nil?
|
132
|
+
invalid_properties.push('invalid value for "read", read cannot be nil.')
|
133
|
+
end
|
134
|
+
|
123
135
|
if @created_at.nil?
|
124
136
|
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
125
137
|
end
|
@@ -135,6 +147,7 @@ module MailSlurpClient
|
|
135
147
|
return false if @body.nil?
|
136
148
|
return false if @phone_number.nil?
|
137
149
|
return false if @from_number.nil?
|
150
|
+
return false if @read.nil?
|
138
151
|
return false if @created_at.nil?
|
139
152
|
true
|
140
153
|
end
|
@@ -149,6 +162,7 @@ module MailSlurpClient
|
|
149
162
|
body == o.body &&
|
150
163
|
phone_number == o.phone_number &&
|
151
164
|
from_number == o.from_number &&
|
165
|
+
read == o.read &&
|
152
166
|
created_at == o.created_at
|
153
167
|
end
|
154
168
|
|
@@ -161,7 +175,7 @@ module MailSlurpClient
|
|
161
175
|
# Calculates hash code according to all attributes.
|
162
176
|
# @return [Integer] Hash code
|
163
177
|
def hash
|
164
|
-
[id, user_id, body, phone_number, from_number, created_at].hash
|
178
|
+
[id, user_id, body, phone_number, from_number, read, created_at].hash
|
165
179
|
end
|
166
180
|
|
167
181
|
# Builds the object from hash
|
@@ -17,10 +17,10 @@ module MailSlurpClient
|
|
17
17
|
class SmsProjection
|
18
18
|
attr_accessor :body
|
19
19
|
|
20
|
-
attr_accessor :created_at
|
21
|
-
|
22
20
|
attr_accessor :user_id
|
23
21
|
|
22
|
+
attr_accessor :created_at
|
23
|
+
|
24
24
|
attr_accessor :phone_number
|
25
25
|
|
26
26
|
attr_accessor :from_number
|
@@ -33,8 +33,8 @@ module MailSlurpClient
|
|
33
33
|
def self.attribute_map
|
34
34
|
{
|
35
35
|
:'body' => :'body',
|
36
|
-
:'created_at' => :'createdAt',
|
37
36
|
:'user_id' => :'userId',
|
37
|
+
:'created_at' => :'createdAt',
|
38
38
|
:'phone_number' => :'phoneNumber',
|
39
39
|
:'from_number' => :'fromNumber',
|
40
40
|
:'read' => :'read',
|
@@ -46,8 +46,8 @@ module MailSlurpClient
|
|
46
46
|
def self.openapi_types
|
47
47
|
{
|
48
48
|
:'body' => :'String',
|
49
|
-
:'created_at' => :'DateTime',
|
50
49
|
:'user_id' => :'String',
|
50
|
+
:'created_at' => :'DateTime',
|
51
51
|
:'phone_number' => :'String',
|
52
52
|
:'from_number' => :'String',
|
53
53
|
:'read' => :'Boolean',
|
@@ -80,14 +80,14 @@ module MailSlurpClient
|
|
80
80
|
self.body = attributes[:'body']
|
81
81
|
end
|
82
82
|
|
83
|
-
if attributes.key?(:'created_at')
|
84
|
-
self.created_at = attributes[:'created_at']
|
85
|
-
end
|
86
|
-
|
87
83
|
if attributes.key?(:'user_id')
|
88
84
|
self.user_id = attributes[:'user_id']
|
89
85
|
end
|
90
86
|
|
87
|
+
if attributes.key?(:'created_at')
|
88
|
+
self.created_at = attributes[:'created_at']
|
89
|
+
end
|
90
|
+
|
91
91
|
if attributes.key?(:'phone_number')
|
92
92
|
self.phone_number = attributes[:'phone_number']
|
93
93
|
end
|
@@ -113,14 +113,14 @@ module MailSlurpClient
|
|
113
113
|
invalid_properties.push('invalid value for "body", body cannot be nil.')
|
114
114
|
end
|
115
115
|
|
116
|
-
if @created_at.nil?
|
117
|
-
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
118
|
-
end
|
119
|
-
|
120
116
|
if @user_id.nil?
|
121
117
|
invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
|
122
118
|
end
|
123
119
|
|
120
|
+
if @created_at.nil?
|
121
|
+
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
122
|
+
end
|
123
|
+
|
124
124
|
if @phone_number.nil?
|
125
125
|
invalid_properties.push('invalid value for "phone_number", phone_number cannot be nil.')
|
126
126
|
end
|
@@ -144,8 +144,8 @@ module MailSlurpClient
|
|
144
144
|
# @return true if the model is valid
|
145
145
|
def valid?
|
146
146
|
return false if @body.nil?
|
147
|
-
return false if @created_at.nil?
|
148
147
|
return false if @user_id.nil?
|
148
|
+
return false if @created_at.nil?
|
149
149
|
return false if @phone_number.nil?
|
150
150
|
return false if @from_number.nil?
|
151
151
|
return false if @read.nil?
|
@@ -159,8 +159,8 @@ module MailSlurpClient
|
|
159
159
|
return true if self.equal?(o)
|
160
160
|
self.class == o.class &&
|
161
161
|
body == o.body &&
|
162
|
-
created_at == o.created_at &&
|
163
162
|
user_id == o.user_id &&
|
163
|
+
created_at == o.created_at &&
|
164
164
|
phone_number == o.phone_number &&
|
165
165
|
from_number == o.from_number &&
|
166
166
|
read == o.read &&
|
@@ -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
|
-
[body,
|
179
|
+
[body, user_id, created_at, phone_number, from_number, read, id].hash
|
180
180
|
end
|
181
181
|
|
182
182
|
# Builds the object from hash
|
@@ -15,10 +15,10 @@ require 'date'
|
|
15
15
|
module MailSlurpClient
|
16
16
|
# Email template data
|
17
17
|
class TemplateProjection
|
18
|
-
attr_accessor :created_at
|
19
|
-
|
20
18
|
attr_accessor :updated_at
|
21
19
|
|
20
|
+
attr_accessor :created_at
|
21
|
+
|
22
22
|
attr_accessor :variables
|
23
23
|
|
24
24
|
attr_accessor :name
|
@@ -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
|
-
:'created_at' => :'createdAt',
|
32
31
|
:'updated_at' => :'updatedAt',
|
32
|
+
:'created_at' => :'createdAt',
|
33
33
|
:'variables' => :'variables',
|
34
34
|
:'name' => :'name',
|
35
35
|
:'id' => :'id'
|
@@ -39,8 +39,8 @@ module MailSlurpClient
|
|
39
39
|
# Attribute type mapping.
|
40
40
|
def self.openapi_types
|
41
41
|
{
|
42
|
-
:'created_at' => :'DateTime',
|
43
42
|
:'updated_at' => :'DateTime',
|
43
|
+
:'created_at' => :'DateTime',
|
44
44
|
:'variables' => :'Array<String>',
|
45
45
|
:'name' => :'String',
|
46
46
|
:'id' => :'String'
|
@@ -68,14 +68,14 @@ module MailSlurpClient
|
|
68
68
|
h[k.to_sym] = v
|
69
69
|
}
|
70
70
|
|
71
|
-
if attributes.key?(:'created_at')
|
72
|
-
self.created_at = attributes[:'created_at']
|
73
|
-
end
|
74
|
-
|
75
71
|
if attributes.key?(:'updated_at')
|
76
72
|
self.updated_at = attributes[:'updated_at']
|
77
73
|
end
|
78
74
|
|
75
|
+
if attributes.key?(:'created_at')
|
76
|
+
self.created_at = attributes[:'created_at']
|
77
|
+
end
|
78
|
+
|
79
79
|
if attributes.key?(:'variables')
|
80
80
|
if (value = attributes[:'variables']).is_a?(Array)
|
81
81
|
self.variables = value
|
@@ -95,14 +95,14 @@ module MailSlurpClient
|
|
95
95
|
# @return Array for valid properties with the reasons
|
96
96
|
def list_invalid_properties
|
97
97
|
invalid_properties = Array.new
|
98
|
-
if @created_at.nil?
|
99
|
-
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
100
|
-
end
|
101
|
-
|
102
98
|
if @updated_at.nil?
|
103
99
|
invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
|
104
100
|
end
|
105
101
|
|
102
|
+
if @created_at.nil?
|
103
|
+
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
104
|
+
end
|
105
|
+
|
106
106
|
if @variables.nil?
|
107
107
|
invalid_properties.push('invalid value for "variables", variables cannot be nil.')
|
108
108
|
end
|
@@ -121,8 +121,8 @@ module MailSlurpClient
|
|
121
121
|
# Check to see if the all the properties in the model are valid
|
122
122
|
# @return true if the model is valid
|
123
123
|
def valid?
|
124
|
-
return false if @created_at.nil?
|
125
124
|
return false if @updated_at.nil?
|
125
|
+
return false if @created_at.nil?
|
126
126
|
return false if @variables.nil?
|
127
127
|
return false if @name.nil?
|
128
128
|
return false if @id.nil?
|
@@ -134,8 +134,8 @@ module MailSlurpClient
|
|
134
134
|
def ==(o)
|
135
135
|
return true if self.equal?(o)
|
136
136
|
self.class == o.class &&
|
137
|
-
created_at == o.created_at &&
|
138
137
|
updated_at == o.updated_at &&
|
138
|
+
created_at == o.created_at &&
|
139
139
|
variables == o.variables &&
|
140
140
|
name == o.name &&
|
141
141
|
id == o.id
|
@@ -150,7 +150,7 @@ module MailSlurpClient
|
|
150
150
|
# Calculates hash code according to all attributes.
|
151
151
|
# @return [Integer] Hash code
|
152
152
|
def hash
|
153
|
-
[
|
153
|
+
[updated_at, created_at, variables, name, id].hash
|
154
154
|
end
|
155
155
|
|
156
156
|
# Builds the object from hash
|
@@ -15,14 +15,14 @@ require 'date'
|
|
15
15
|
module MailSlurpClient
|
16
16
|
# Tracking pixel data
|
17
17
|
class TrackingPixelProjection
|
18
|
-
attr_accessor :created_at
|
19
|
-
|
20
18
|
attr_accessor :user_id
|
21
19
|
|
22
20
|
attr_accessor :inbox_id
|
23
21
|
|
24
22
|
attr_accessor :sent_email_id
|
25
23
|
|
24
|
+
attr_accessor :created_at
|
25
|
+
|
26
26
|
attr_accessor :recipient
|
27
27
|
|
28
28
|
attr_accessor :seen
|
@@ -36,10 +36,10 @@ module MailSlurpClient
|
|
36
36
|
# Attribute mapping from ruby-style variable name to JSON key.
|
37
37
|
def self.attribute_map
|
38
38
|
{
|
39
|
-
:'created_at' => :'createdAt',
|
40
39
|
:'user_id' => :'userId',
|
41
40
|
:'inbox_id' => :'inboxId',
|
42
41
|
:'sent_email_id' => :'sentEmailId',
|
42
|
+
:'created_at' => :'createdAt',
|
43
43
|
:'recipient' => :'recipient',
|
44
44
|
:'seen' => :'seen',
|
45
45
|
:'seen_at' => :'seenAt',
|
@@ -51,10 +51,10 @@ module MailSlurpClient
|
|
51
51
|
# Attribute type mapping.
|
52
52
|
def self.openapi_types
|
53
53
|
{
|
54
|
-
:'created_at' => :'DateTime',
|
55
54
|
:'user_id' => :'String',
|
56
55
|
:'inbox_id' => :'String',
|
57
56
|
:'sent_email_id' => :'String',
|
57
|
+
:'created_at' => :'DateTime',
|
58
58
|
:'recipient' => :'String',
|
59
59
|
:'seen' => :'Boolean',
|
60
60
|
:'seen_at' => :'DateTime',
|
@@ -84,10 +84,6 @@ module MailSlurpClient
|
|
84
84
|
h[k.to_sym] = v
|
85
85
|
}
|
86
86
|
|
87
|
-
if attributes.key?(:'created_at')
|
88
|
-
self.created_at = attributes[:'created_at']
|
89
|
-
end
|
90
|
-
|
91
87
|
if attributes.key?(:'user_id')
|
92
88
|
self.user_id = attributes[:'user_id']
|
93
89
|
end
|
@@ -100,6 +96,10 @@ module MailSlurpClient
|
|
100
96
|
self.sent_email_id = attributes[:'sent_email_id']
|
101
97
|
end
|
102
98
|
|
99
|
+
if attributes.key?(:'created_at')
|
100
|
+
self.created_at = attributes[:'created_at']
|
101
|
+
end
|
102
|
+
|
103
103
|
if attributes.key?(:'recipient')
|
104
104
|
self.recipient = attributes[:'recipient']
|
105
105
|
end
|
@@ -125,14 +125,14 @@ module MailSlurpClient
|
|
125
125
|
# @return Array for valid properties with the reasons
|
126
126
|
def list_invalid_properties
|
127
127
|
invalid_properties = Array.new
|
128
|
-
if @created_at.nil?
|
129
|
-
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
130
|
-
end
|
131
|
-
|
132
128
|
if @user_id.nil?
|
133
129
|
invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
|
134
130
|
end
|
135
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 @seen.nil?
|
137
137
|
invalid_properties.push('invalid value for "seen", seen cannot be nil.')
|
138
138
|
end
|
@@ -147,8 +147,8 @@ module MailSlurpClient
|
|
147
147
|
# Check to see if the all the properties in the model are valid
|
148
148
|
# @return true if the model is valid
|
149
149
|
def valid?
|
150
|
-
return false if @created_at.nil?
|
151
150
|
return false if @user_id.nil?
|
151
|
+
return false if @created_at.nil?
|
152
152
|
return false if @seen.nil?
|
153
153
|
return false if @id.nil?
|
154
154
|
true
|
@@ -159,10 +159,10 @@ module MailSlurpClient
|
|
159
159
|
def ==(o)
|
160
160
|
return true if self.equal?(o)
|
161
161
|
self.class == o.class &&
|
162
|
-
created_at == o.created_at &&
|
163
162
|
user_id == o.user_id &&
|
164
163
|
inbox_id == o.inbox_id &&
|
165
164
|
sent_email_id == o.sent_email_id &&
|
165
|
+
created_at == o.created_at &&
|
166
166
|
recipient == o.recipient &&
|
167
167
|
seen == o.seen &&
|
168
168
|
seen_at == o.seen_at &&
|
@@ -179,7 +179,7 @@ module MailSlurpClient
|
|
179
179
|
# Calculates hash code according to all attributes.
|
180
180
|
# @return [Integer] Hash code
|
181
181
|
def hash
|
182
|
-
[
|
182
|
+
[user_id, inbox_id, sent_email_id, created_at, recipient, seen, seen_at, name, id].hash
|
183
183
|
end
|
184
184
|
|
185
185
|
# Builds the object from hash
|