mailslurp_client 15.13.31 → 15.14.0
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/api_user_controller_api.rb +0 -4
- data/lib/mailslurp_client/api/missed_email_controller_api.rb +6 -6
- data/lib/mailslurp_client/models/alias_dto.rb +5 -0
- data/lib/mailslurp_client/models/alias_projection.rb +27 -27
- data/lib/mailslurp_client/models/attachment_entity.rb +0 -1
- data/lib/mailslurp_client/models/attachment_projection.rb +3 -0
- data/lib/mailslurp_client/models/bounce_projection.rb +3 -0
- data/lib/mailslurp_client/models/bounce_recipient_projection.rb +3 -0
- data/lib/mailslurp_client/models/bounced_email_dto.rb +12 -0
- data/lib/mailslurp_client/models/bounced_recipient_dto.rb +10 -0
- data/lib/mailslurp_client/models/contact_dto.rb +7 -0
- data/lib/mailslurp_client/models/contact_projection.rb +41 -36
- data/lib/mailslurp_client/models/create_alias_options.rb +2 -0
- data/lib/mailslurp_client/models/create_contact_options.rb +1 -0
- data/lib/mailslurp_client/models/create_group_options.rb +1 -0
- data/lib/mailslurp_client/models/create_inbox_dto.rb +1 -0
- data/lib/mailslurp_client/models/create_tracking_pixel_options.rb +2 -0
- data/lib/mailslurp_client/models/create_webhook_options.rb +2 -0
- data/lib/mailslurp_client/models/describe_mail_server_domain_result.rb +1 -0
- data/lib/mailslurp_client/models/domain_dto.rb +1 -0
- data/lib/mailslurp_client/models/domain_preview.rb +1 -0
- data/lib/mailslurp_client/models/email.rb +1 -0
- data/lib/mailslurp_client/models/email_preview.rb +1 -0
- data/lib/mailslurp_client/models/email_projection.rb +35 -27
- data/lib/mailslurp_client/models/{email_validation_request.rb → email_validation_request_dto.rb} +8 -3
- data/lib/mailslurp_client/models/email_verification_result.rb +1 -0
- data/lib/mailslurp_client/models/expiration_defaults.rb +3 -0
- data/lib/mailslurp_client/models/export_options.rb +5 -0
- data/lib/mailslurp_client/models/forward_email_options.rb +5 -0
- data/lib/mailslurp_client/models/group_dto.rb +1 -0
- data/lib/mailslurp_client/models/group_projection.rb +1 -0
- data/lib/mailslurp_client/models/inbox_by_email_address_result.rb +1 -0
- data/lib/mailslurp_client/models/inbox_by_name_result.rb +1 -0
- data/lib/mailslurp_client/models/inbox_preview.rb +2 -1
- data/lib/mailslurp_client/models/match_options.rb +2 -0
- data/lib/mailslurp_client/models/{missed_email.rb → missed_email_dto.rb} +16 -3
- data/lib/mailslurp_client/models/missed_email_projection.rb +3 -0
- data/lib/mailslurp_client/models/organization_inbox_projection.rb +1 -0
- data/lib/mailslurp_client/models/page_alias.rb +10 -10
- data/lib/mailslurp_client/models/page_attachment_entity.rb +10 -10
- data/lib/mailslurp_client/models/page_bounced_email.rb +10 -10
- data/lib/mailslurp_client/models/page_bounced_recipients.rb +10 -10
- data/lib/mailslurp_client/models/page_complaint.rb +10 -10
- data/lib/mailslurp_client/models/page_contact_projection.rb +10 -10
- data/lib/mailslurp_client/models/page_delivery_status.rb +10 -10
- data/lib/mailslurp_client/models/page_email_preview.rb +10 -10
- data/lib/mailslurp_client/models/page_email_projection.rb +10 -10
- data/lib/mailslurp_client/models/page_email_validation_request.rb +11 -11
- data/lib/mailslurp_client/models/page_expired_inbox_record_projection.rb +10 -10
- data/lib/mailslurp_client/models/page_group_projection.rb +10 -10
- data/lib/mailslurp_client/models/page_inbox_forwarder_dto.rb +10 -10
- data/lib/mailslurp_client/models/page_inbox_projection.rb +10 -10
- data/lib/mailslurp_client/models/page_inbox_ruleset_dto.rb +10 -10
- data/lib/mailslurp_client/models/page_missed_email_projection.rb +10 -10
- data/lib/mailslurp_client/models/page_organization_inbox_projection.rb +10 -10
- data/lib/mailslurp_client/models/page_phone_number_projection.rb +10 -10
- data/lib/mailslurp_client/models/page_scheduled_jobs.rb +10 -10
- data/lib/mailslurp_client/models/page_sent_email_projection.rb +16 -16
- data/lib/mailslurp_client/models/page_sent_email_with_queue_projection.rb +16 -16
- data/lib/mailslurp_client/models/page_sms_projection.rb +10 -10
- data/lib/mailslurp_client/models/page_template_projection.rb +10 -10
- data/lib/mailslurp_client/models/page_thread_projection.rb +10 -10
- data/lib/mailslurp_client/models/page_tracking_pixel_projection.rb +10 -10
- data/lib/mailslurp_client/models/page_unknown_missed_email_projection.rb +10 -10
- data/lib/mailslurp_client/models/page_webhook_projection.rb +10 -10
- data/lib/mailslurp_client/models/page_webhook_result.rb +10 -10
- data/lib/mailslurp_client/models/phone_number_projection.rb +15 -15
- data/lib/mailslurp_client/models/recipient.rb +1 -0
- data/lib/mailslurp_client/models/reply_to_alias_email_options.rb +6 -0
- data/lib/mailslurp_client/models/reply_to_email_options.rb +8 -0
- data/lib/mailslurp_client/models/send_email_options.rb +20 -0
- data/lib/mailslurp_client/models/sent_email_dto.rb +22 -0
- data/lib/mailslurp_client/models/sent_email_projection.rb +24 -24
- data/lib/mailslurp_client/models/simple_send_email_options.rb +3 -0
- data/lib/mailslurp_client/models/sms_projection.rb +15 -15
- data/lib/mailslurp_client/models/sort.rb +13 -13
- data/lib/mailslurp_client/models/template_projection.rb +18 -18
- data/lib/mailslurp_client/models/thread_projection.rb +36 -36
- data/lib/mailslurp_client/models/tracking_pixel_dto.rb +4 -0
- data/lib/mailslurp_client/models/tracking_pixel_projection.rb +10 -10
- data/lib/mailslurp_client/models/unknown_missed_email_projection.rb +13 -13
- data/lib/mailslurp_client/models/update_alias_options.rb +1 -0
- data/lib/mailslurp_client/models/update_domain_options.rb +1 -0
- data/lib/mailslurp_client/models/verify_email_address_options.rb +3 -0
- data/lib/mailslurp_client/models/wait_for_conditions.rb +8 -0
- data/lib/mailslurp_client/models/wait_for_sms_conditions.rb +8 -0
- data/lib/mailslurp_client/models/webhook_bounce_payload.rb +3 -0
- data/lib/mailslurp_client/models/webhook_bounce_recipient_payload.rb +1 -0
- data/lib/mailslurp_client/models/webhook_delivery_status_payload.rb +1 -0
- data/lib/mailslurp_client/models/webhook_email_opened_payload.rb +1 -0
- data/lib/mailslurp_client/models/webhook_email_read_payload.rb +1 -0
- data/lib/mailslurp_client/models/webhook_new_attachment_payload.rb +1 -0
- data/lib/mailslurp_client/models/webhook_new_contact_payload.rb +2 -0
- data/lib/mailslurp_client/models/webhook_new_email_payload.rb +3 -0
- data/lib/mailslurp_client/models/webhook_projection.rb +13 -13
- data/lib/mailslurp_client/models/webhook_redrive_result.rb +1 -0
- data/lib/mailslurp_client/models/webhook_result_dto.rb +6 -0
- data/lib/mailslurp_client/models/webhook_test_request.rb +1 -0
- data/lib/mailslurp_client/models/webhook_test_response.rb +2 -0
- data/lib/mailslurp_client/models/webhook_test_result.rb +1 -0
- data/lib/mailslurp_client/version.rb +1 -1
- data/lib/mailslurp_client.rb +2 -2
- metadata +4 -4
@@ -19,10 +19,10 @@ module MailSlurpClient
|
|
19
19
|
|
20
20
|
attr_accessor :user_id
|
21
21
|
|
22
|
-
attr_accessor :phone_number
|
23
|
-
|
24
22
|
attr_accessor :created_at
|
25
23
|
|
24
|
+
attr_accessor :phone_number
|
25
|
+
|
26
26
|
attr_accessor :phone_country
|
27
27
|
|
28
28
|
class EnumAttributeValidator
|
@@ -52,8 +52,8 @@ module MailSlurpClient
|
|
52
52
|
{
|
53
53
|
:'id' => :'id',
|
54
54
|
:'user_id' => :'userId',
|
55
|
-
:'phone_number' => :'phoneNumber',
|
56
55
|
:'created_at' => :'createdAt',
|
56
|
+
:'phone_number' => :'phoneNumber',
|
57
57
|
:'phone_country' => :'phoneCountry'
|
58
58
|
}
|
59
59
|
end
|
@@ -63,8 +63,8 @@ module MailSlurpClient
|
|
63
63
|
{
|
64
64
|
:'id' => :'String',
|
65
65
|
:'user_id' => :'String',
|
66
|
-
:'phone_number' => :'String',
|
67
66
|
:'created_at' => :'DateTime',
|
67
|
+
:'phone_number' => :'String',
|
68
68
|
:'phone_country' => :'String'
|
69
69
|
}
|
70
70
|
end
|
@@ -98,14 +98,14 @@ module MailSlurpClient
|
|
98
98
|
self.user_id = attributes[:'user_id']
|
99
99
|
end
|
100
100
|
|
101
|
-
if attributes.key?(:'phone_number')
|
102
|
-
self.phone_number = attributes[:'phone_number']
|
103
|
-
end
|
104
|
-
|
105
101
|
if attributes.key?(:'created_at')
|
106
102
|
self.created_at = attributes[:'created_at']
|
107
103
|
end
|
108
104
|
|
105
|
+
if attributes.key?(:'phone_number')
|
106
|
+
self.phone_number = attributes[:'phone_number']
|
107
|
+
end
|
108
|
+
|
109
109
|
if attributes.key?(:'phone_country')
|
110
110
|
self.phone_country = attributes[:'phone_country']
|
111
111
|
end
|
@@ -123,14 +123,14 @@ module MailSlurpClient
|
|
123
123
|
invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
|
124
124
|
end
|
125
125
|
|
126
|
-
if @phone_number.nil?
|
127
|
-
invalid_properties.push('invalid value for "phone_number", phone_number cannot be nil.')
|
128
|
-
end
|
129
|
-
|
130
126
|
if @created_at.nil?
|
131
127
|
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
132
128
|
end
|
133
129
|
|
130
|
+
if @phone_number.nil?
|
131
|
+
invalid_properties.push('invalid value for "phone_number", phone_number cannot be nil.')
|
132
|
+
end
|
133
|
+
|
134
134
|
if @phone_country.nil?
|
135
135
|
invalid_properties.push('invalid value for "phone_country", phone_country cannot be nil.')
|
136
136
|
end
|
@@ -143,8 +143,8 @@ module MailSlurpClient
|
|
143
143
|
def valid?
|
144
144
|
return false if @id.nil?
|
145
145
|
return false if @user_id.nil?
|
146
|
-
return false if @phone_number.nil?
|
147
146
|
return false if @created_at.nil?
|
147
|
+
return false if @phone_number.nil?
|
148
148
|
return false if @phone_country.nil?
|
149
149
|
phone_country_validator = EnumAttributeValidator.new('String', ["US", "GB"])
|
150
150
|
return false unless phone_country_validator.valid?(@phone_country)
|
@@ -168,8 +168,8 @@ module MailSlurpClient
|
|
168
168
|
self.class == o.class &&
|
169
169
|
id == o.id &&
|
170
170
|
user_id == o.user_id &&
|
171
|
-
phone_number == o.phone_number &&
|
172
171
|
created_at == o.created_at &&
|
172
|
+
phone_number == o.phone_number &&
|
173
173
|
phone_country == o.phone_country
|
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
|
-
[id, user_id,
|
185
|
+
[id, user_id, created_at, phone_number, phone_country].hash
|
186
186
|
end
|
187
187
|
|
188
188
|
# Builds the object from hash
|
@@ -96,6 +96,12 @@ module MailSlurpClient
|
|
96
96
|
# List of attributes with nullable: true
|
97
97
|
def self.openapi_nullable
|
98
98
|
Set.new([
|
99
|
+
:'charset',
|
100
|
+
:'attachments',
|
101
|
+
:'template_variables',
|
102
|
+
:'template',
|
103
|
+
:'send_strategy',
|
104
|
+
:'use_inbox_name',
|
99
105
|
])
|
100
106
|
end
|
101
107
|
|
@@ -106,6 +106,14 @@ module MailSlurpClient
|
|
106
106
|
# List of attributes with nullable: true
|
107
107
|
def self.openapi_nullable
|
108
108
|
Set.new([
|
109
|
+
:'from',
|
110
|
+
:'reply_to',
|
111
|
+
:'charset',
|
112
|
+
:'attachments',
|
113
|
+
:'template_variables',
|
114
|
+
:'template',
|
115
|
+
:'send_strategy',
|
116
|
+
:'use_inbox_name',
|
109
117
|
])
|
110
118
|
end
|
111
119
|
|
@@ -152,6 +152,26 @@ module MailSlurpClient
|
|
152
152
|
# List of attributes with nullable: true
|
153
153
|
def self.openapi_nullable
|
154
154
|
Set.new([
|
155
|
+
:'to_contacts',
|
156
|
+
:'to_group',
|
157
|
+
:'to',
|
158
|
+
:'from',
|
159
|
+
:'cc',
|
160
|
+
:'bcc',
|
161
|
+
:'subject',
|
162
|
+
:'reply_to',
|
163
|
+
:'body',
|
164
|
+
:'html',
|
165
|
+
:'is_html',
|
166
|
+
:'charset',
|
167
|
+
:'attachments',
|
168
|
+
:'template_variables',
|
169
|
+
:'template',
|
170
|
+
:'send_strategy',
|
171
|
+
:'use_inbox_name',
|
172
|
+
:'add_tracking_pixel',
|
173
|
+
:'filter_bounced_recipients',
|
174
|
+
:'validate_email_addresses'
|
155
175
|
])
|
156
176
|
end
|
157
177
|
|
@@ -30,6 +30,7 @@ module MailSlurpClient
|
|
30
30
|
# Recipients email was sent to
|
31
31
|
attr_accessor :to
|
32
32
|
|
33
|
+
# Sent from address
|
33
34
|
attr_accessor :from
|
34
35
|
|
35
36
|
attr_accessor :reply_to
|
@@ -46,6 +47,7 @@ module MailSlurpClient
|
|
46
47
|
# MD5 Hash
|
47
48
|
attr_accessor :body_md5_hash
|
48
49
|
|
50
|
+
# Sent email body
|
49
51
|
attr_accessor :body
|
50
52
|
|
51
53
|
attr_accessor :to_contacts
|
@@ -137,6 +139,26 @@ module MailSlurpClient
|
|
137
139
|
# List of attributes with nullable: true
|
138
140
|
def self.openapi_nullable
|
139
141
|
Set.new([
|
142
|
+
:'domain_id',
|
143
|
+
:'to',
|
144
|
+
:'from',
|
145
|
+
:'reply_to',
|
146
|
+
:'cc',
|
147
|
+
:'bcc',
|
148
|
+
:'attachments',
|
149
|
+
:'subject',
|
150
|
+
:'body_md5_hash',
|
151
|
+
:'body',
|
152
|
+
:'to_contacts',
|
153
|
+
:'to_group',
|
154
|
+
:'charset',
|
155
|
+
:'is_html',
|
156
|
+
:'pixel_ids',
|
157
|
+
:'message_id',
|
158
|
+
:'message_ids',
|
159
|
+
:'virtual_send',
|
160
|
+
:'template_id',
|
161
|
+
:'template_variables',
|
140
162
|
])
|
141
163
|
end
|
142
164
|
|
@@ -23,13 +23,13 @@ module MailSlurpClient
|
|
23
23
|
|
24
24
|
attr_accessor :subject
|
25
25
|
|
26
|
-
attr_accessor :
|
26
|
+
attr_accessor :created_at
|
27
27
|
|
28
28
|
attr_accessor :attachments
|
29
29
|
|
30
|
-
attr_accessor :
|
30
|
+
attr_accessor :inbox_id
|
31
31
|
|
32
|
-
attr_accessor :
|
32
|
+
attr_accessor :to
|
33
33
|
|
34
34
|
attr_accessor :bcc
|
35
35
|
|
@@ -46,10 +46,10 @@ module MailSlurpClient
|
|
46
46
|
:'from' => :'from',
|
47
47
|
:'user_id' => :'userId',
|
48
48
|
:'subject' => :'subject',
|
49
|
-
:'
|
49
|
+
:'created_at' => :'createdAt',
|
50
50
|
:'attachments' => :'attachments',
|
51
|
+
:'inbox_id' => :'inboxId',
|
51
52
|
:'to' => :'to',
|
52
|
-
:'created_at' => :'createdAt',
|
53
53
|
:'bcc' => :'bcc',
|
54
54
|
:'cc' => :'cc',
|
55
55
|
:'body_md5_hash' => :'bodyMD5Hash',
|
@@ -64,10 +64,10 @@ module MailSlurpClient
|
|
64
64
|
:'from' => :'String',
|
65
65
|
:'user_id' => :'String',
|
66
66
|
:'subject' => :'String',
|
67
|
-
:'
|
67
|
+
:'created_at' => :'DateTime',
|
68
68
|
:'attachments' => :'Array<String>',
|
69
|
+
:'inbox_id' => :'String',
|
69
70
|
:'to' => :'Array<String>',
|
70
|
-
:'created_at' => :'DateTime',
|
71
71
|
:'bcc' => :'Array<String>',
|
72
72
|
:'cc' => :'Array<String>',
|
73
73
|
:'body_md5_hash' => :'String',
|
@@ -112,8 +112,8 @@ module MailSlurpClient
|
|
112
112
|
self.subject = attributes[:'subject']
|
113
113
|
end
|
114
114
|
|
115
|
-
if attributes.key?(:'
|
116
|
-
self.
|
115
|
+
if attributes.key?(:'created_at')
|
116
|
+
self.created_at = attributes[:'created_at']
|
117
117
|
end
|
118
118
|
|
119
119
|
if attributes.key?(:'attachments')
|
@@ -122,16 +122,16 @@ module MailSlurpClient
|
|
122
122
|
end
|
123
123
|
end
|
124
124
|
|
125
|
+
if attributes.key?(:'inbox_id')
|
126
|
+
self.inbox_id = attributes[:'inbox_id']
|
127
|
+
end
|
128
|
+
|
125
129
|
if attributes.key?(:'to')
|
126
130
|
if (value = attributes[:'to']).is_a?(Array)
|
127
131
|
self.to = value
|
128
132
|
end
|
129
133
|
end
|
130
134
|
|
131
|
-
if attributes.key?(:'created_at')
|
132
|
-
self.created_at = attributes[:'created_at']
|
133
|
-
end
|
134
|
-
|
135
135
|
if attributes.key?(:'bcc')
|
136
136
|
if (value = attributes[:'bcc']).is_a?(Array)
|
137
137
|
self.bcc = value
|
@@ -165,20 +165,20 @@ module MailSlurpClient
|
|
165
165
|
invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
|
166
166
|
end
|
167
167
|
|
168
|
-
if @
|
169
|
-
invalid_properties.push('invalid value for "
|
168
|
+
if @created_at.nil?
|
169
|
+
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
170
170
|
end
|
171
171
|
|
172
172
|
if @attachments.nil?
|
173
173
|
invalid_properties.push('invalid value for "attachments", attachments cannot be nil.')
|
174
174
|
end
|
175
175
|
|
176
|
-
if @
|
177
|
-
invalid_properties.push('invalid value for "
|
176
|
+
if @inbox_id.nil?
|
177
|
+
invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
|
178
178
|
end
|
179
179
|
|
180
|
-
if @
|
181
|
-
invalid_properties.push('invalid value for "
|
180
|
+
if @to.nil?
|
181
|
+
invalid_properties.push('invalid value for "to", to cannot be nil.')
|
182
182
|
end
|
183
183
|
|
184
184
|
if @bcc.nil?
|
@@ -201,10 +201,10 @@ module MailSlurpClient
|
|
201
201
|
def valid?
|
202
202
|
return false if @id.nil?
|
203
203
|
return false if @user_id.nil?
|
204
|
-
return false if @
|
204
|
+
return false if @created_at.nil?
|
205
205
|
return false if @attachments.nil?
|
206
|
+
return false if @inbox_id.nil?
|
206
207
|
return false if @to.nil?
|
207
|
-
return false if @created_at.nil?
|
208
208
|
return false if @bcc.nil?
|
209
209
|
return false if @cc.nil?
|
210
210
|
return false if @virtual_send.nil?
|
@@ -220,10 +220,10 @@ module MailSlurpClient
|
|
220
220
|
from == o.from &&
|
221
221
|
user_id == o.user_id &&
|
222
222
|
subject == o.subject &&
|
223
|
-
|
223
|
+
created_at == o.created_at &&
|
224
224
|
attachments == o.attachments &&
|
225
|
+
inbox_id == o.inbox_id &&
|
225
226
|
to == o.to &&
|
226
|
-
created_at == o.created_at &&
|
227
227
|
bcc == o.bcc &&
|
228
228
|
cc == o.cc &&
|
229
229
|
body_md5_hash == o.body_md5_hash &&
|
@@ -239,7 +239,7 @@ module MailSlurpClient
|
|
239
239
|
# Calculates hash code according to all attributes.
|
240
240
|
# @return [Integer] Hash code
|
241
241
|
def hash
|
242
|
-
[id, from, user_id, subject,
|
242
|
+
[id, from, user_id, subject, created_at, attachments, inbox_id, to, bcc, cc, body_md5_hash, virtual_send].hash
|
243
243
|
end
|
244
244
|
|
245
245
|
# Builds the object from hash
|
@@ -21,10 +21,10 @@ module MailSlurpClient
|
|
21
21
|
|
22
22
|
attr_accessor :user_id
|
23
23
|
|
24
|
-
attr_accessor :phone_number
|
25
|
-
|
26
24
|
attr_accessor :created_at
|
27
25
|
|
26
|
+
attr_accessor :phone_number
|
27
|
+
|
28
28
|
attr_accessor :from_number
|
29
29
|
|
30
30
|
attr_accessor :read
|
@@ -35,8 +35,8 @@ module MailSlurpClient
|
|
35
35
|
:'id' => :'id',
|
36
36
|
:'body' => :'body',
|
37
37
|
:'user_id' => :'userId',
|
38
|
-
:'phone_number' => :'phoneNumber',
|
39
38
|
:'created_at' => :'createdAt',
|
39
|
+
:'phone_number' => :'phoneNumber',
|
40
40
|
:'from_number' => :'fromNumber',
|
41
41
|
:'read' => :'read'
|
42
42
|
}
|
@@ -48,8 +48,8 @@ module MailSlurpClient
|
|
48
48
|
:'id' => :'String',
|
49
49
|
:'body' => :'String',
|
50
50
|
:'user_id' => :'String',
|
51
|
-
:'phone_number' => :'String',
|
52
51
|
:'created_at' => :'DateTime',
|
52
|
+
:'phone_number' => :'String',
|
53
53
|
:'from_number' => :'String',
|
54
54
|
:'read' => :'Boolean'
|
55
55
|
}
|
@@ -88,14 +88,14 @@ module MailSlurpClient
|
|
88
88
|
self.user_id = attributes[:'user_id']
|
89
89
|
end
|
90
90
|
|
91
|
-
if attributes.key?(:'phone_number')
|
92
|
-
self.phone_number = attributes[:'phone_number']
|
93
|
-
end
|
94
|
-
|
95
91
|
if attributes.key?(:'created_at')
|
96
92
|
self.created_at = attributes[:'created_at']
|
97
93
|
end
|
98
94
|
|
95
|
+
if attributes.key?(:'phone_number')
|
96
|
+
self.phone_number = attributes[:'phone_number']
|
97
|
+
end
|
98
|
+
|
99
99
|
if attributes.key?(:'from_number')
|
100
100
|
self.from_number = attributes[:'from_number']
|
101
101
|
end
|
@@ -121,14 +121,14 @@ module MailSlurpClient
|
|
121
121
|
invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
|
122
122
|
end
|
123
123
|
|
124
|
-
if @phone_number.nil?
|
125
|
-
invalid_properties.push('invalid value for "phone_number", phone_number cannot be nil.')
|
126
|
-
end
|
127
|
-
|
128
124
|
if @created_at.nil?
|
129
125
|
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
130
126
|
end
|
131
127
|
|
128
|
+
if @phone_number.nil?
|
129
|
+
invalid_properties.push('invalid value for "phone_number", phone_number cannot be nil.')
|
130
|
+
end
|
131
|
+
|
132
132
|
if @from_number.nil?
|
133
133
|
invalid_properties.push('invalid value for "from_number", from_number cannot be nil.')
|
134
134
|
end
|
@@ -146,8 +146,8 @@ module MailSlurpClient
|
|
146
146
|
return false if @id.nil?
|
147
147
|
return false if @body.nil?
|
148
148
|
return false if @user_id.nil?
|
149
|
-
return false if @phone_number.nil?
|
150
149
|
return false if @created_at.nil?
|
150
|
+
return false if @phone_number.nil?
|
151
151
|
return false if @from_number.nil?
|
152
152
|
return false if @read.nil?
|
153
153
|
true
|
@@ -161,8 +161,8 @@ module MailSlurpClient
|
|
161
161
|
id == o.id &&
|
162
162
|
body == o.body &&
|
163
163
|
user_id == o.user_id &&
|
164
|
-
phone_number == o.phone_number &&
|
165
164
|
created_at == o.created_at &&
|
165
|
+
phone_number == o.phone_number &&
|
166
166
|
from_number == o.from_number &&
|
167
167
|
read == o.read
|
168
168
|
end
|
@@ -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
|
-
[id, body, user_id,
|
179
|
+
[id, body, user_id, created_at, phone_number, from_number, read].hash
|
180
180
|
end
|
181
181
|
|
182
182
|
# Builds the object from hash
|
@@ -16,16 +16,16 @@ module MailSlurpClient
|
|
16
16
|
class Sort
|
17
17
|
attr_accessor :empty
|
18
18
|
|
19
|
-
attr_accessor :sorted
|
20
|
-
|
21
19
|
attr_accessor :unsorted
|
22
20
|
|
21
|
+
attr_accessor :sorted
|
22
|
+
|
23
23
|
# Attribute mapping from ruby-style variable name to JSON key.
|
24
24
|
def self.attribute_map
|
25
25
|
{
|
26
26
|
:'empty' => :'empty',
|
27
|
-
:'
|
28
|
-
:'
|
27
|
+
:'unsorted' => :'unsorted',
|
28
|
+
:'sorted' => :'sorted'
|
29
29
|
}
|
30
30
|
end
|
31
31
|
|
@@ -33,8 +33,8 @@ module MailSlurpClient
|
|
33
33
|
def self.openapi_types
|
34
34
|
{
|
35
35
|
:'empty' => :'Boolean',
|
36
|
-
:'
|
37
|
-
:'
|
36
|
+
:'unsorted' => :'Boolean',
|
37
|
+
:'sorted' => :'Boolean'
|
38
38
|
}
|
39
39
|
end
|
40
40
|
|
@@ -63,13 +63,13 @@ module MailSlurpClient
|
|
63
63
|
self.empty = attributes[:'empty']
|
64
64
|
end
|
65
65
|
|
66
|
-
if attributes.key?(:'sorted')
|
67
|
-
self.sorted = attributes[:'sorted']
|
68
|
-
end
|
69
|
-
|
70
66
|
if attributes.key?(:'unsorted')
|
71
67
|
self.unsorted = attributes[:'unsorted']
|
72
68
|
end
|
69
|
+
|
70
|
+
if attributes.key?(:'sorted')
|
71
|
+
self.sorted = attributes[:'sorted']
|
72
|
+
end
|
73
73
|
end
|
74
74
|
|
75
75
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -91,8 +91,8 @@ module MailSlurpClient
|
|
91
91
|
return true if self.equal?(o)
|
92
92
|
self.class == o.class &&
|
93
93
|
empty == o.empty &&
|
94
|
-
|
95
|
-
|
94
|
+
unsorted == o.unsorted &&
|
95
|
+
sorted == o.sorted
|
96
96
|
end
|
97
97
|
|
98
98
|
# @see the `==` method
|
@@ -104,7 +104,7 @@ module MailSlurpClient
|
|
104
104
|
# Calculates hash code according to all attributes.
|
105
105
|
# @return [Integer] Hash code
|
106
106
|
def hash
|
107
|
-
[empty,
|
107
|
+
[empty, unsorted, sorted].hash
|
108
108
|
end
|
109
109
|
|
110
110
|
# Builds the object from hash
|
@@ -21,18 +21,18 @@ module MailSlurpClient
|
|
21
21
|
|
22
22
|
attr_accessor :created_at
|
23
23
|
|
24
|
-
attr_accessor :variables
|
25
|
-
|
26
24
|
attr_accessor :updated_at
|
27
25
|
|
26
|
+
attr_accessor :variables
|
27
|
+
|
28
28
|
# Attribute mapping from ruby-style variable name to JSON key.
|
29
29
|
def self.attribute_map
|
30
30
|
{
|
31
31
|
:'name' => :'name',
|
32
32
|
:'id' => :'id',
|
33
33
|
:'created_at' => :'createdAt',
|
34
|
-
:'
|
35
|
-
:'
|
34
|
+
:'updated_at' => :'updatedAt',
|
35
|
+
:'variables' => :'variables'
|
36
36
|
}
|
37
37
|
end
|
38
38
|
|
@@ -42,8 +42,8 @@ module MailSlurpClient
|
|
42
42
|
:'name' => :'String',
|
43
43
|
:'id' => :'String',
|
44
44
|
:'created_at' => :'DateTime',
|
45
|
-
:'
|
46
|
-
:'
|
45
|
+
:'updated_at' => :'DateTime',
|
46
|
+
:'variables' => :'Array<String>'
|
47
47
|
}
|
48
48
|
end
|
49
49
|
|
@@ -80,15 +80,15 @@ module MailSlurpClient
|
|
80
80
|
self.created_at = attributes[:'created_at']
|
81
81
|
end
|
82
82
|
|
83
|
+
if attributes.key?(:'updated_at')
|
84
|
+
self.updated_at = attributes[:'updated_at']
|
85
|
+
end
|
86
|
+
|
83
87
|
if attributes.key?(:'variables')
|
84
88
|
if (value = attributes[:'variables']).is_a?(Array)
|
85
89
|
self.variables = value
|
86
90
|
end
|
87
91
|
end
|
88
|
-
|
89
|
-
if attributes.key?(:'updated_at')
|
90
|
-
self.updated_at = attributes[:'updated_at']
|
91
|
-
end
|
92
92
|
end
|
93
93
|
|
94
94
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -107,14 +107,14 @@ module MailSlurpClient
|
|
107
107
|
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
108
108
|
end
|
109
109
|
|
110
|
-
if @variables.nil?
|
111
|
-
invalid_properties.push('invalid value for "variables", variables cannot be nil.')
|
112
|
-
end
|
113
|
-
|
114
110
|
if @updated_at.nil?
|
115
111
|
invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
|
116
112
|
end
|
117
113
|
|
114
|
+
if @variables.nil?
|
115
|
+
invalid_properties.push('invalid value for "variables", variables cannot be nil.')
|
116
|
+
end
|
117
|
+
|
118
118
|
invalid_properties
|
119
119
|
end
|
120
120
|
|
@@ -124,8 +124,8 @@ module MailSlurpClient
|
|
124
124
|
return false if @name.nil?
|
125
125
|
return false if @id.nil?
|
126
126
|
return false if @created_at.nil?
|
127
|
-
return false if @variables.nil?
|
128
127
|
return false if @updated_at.nil?
|
128
|
+
return false if @variables.nil?
|
129
129
|
true
|
130
130
|
end
|
131
131
|
|
@@ -137,8 +137,8 @@ module MailSlurpClient
|
|
137
137
|
name == o.name &&
|
138
138
|
id == o.id &&
|
139
139
|
created_at == o.created_at &&
|
140
|
-
|
141
|
-
|
140
|
+
updated_at == o.updated_at &&
|
141
|
+
variables == o.variables
|
142
142
|
end
|
143
143
|
|
144
144
|
# @see the `==` method
|
@@ -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
|
-
[name, id, created_at,
|
153
|
+
[name, id, created_at, updated_at, variables].hash
|
154
154
|
end
|
155
155
|
|
156
156
|
# Builds the object from hash
|