mailslurp_client 15.17.33 → 15.17.34
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/attachment_controller_api.rb +3 -0
- data/lib/mailslurp_client/api/sms_controller_api.rb +56 -0
- data/lib/mailslurp_client/api/webhook_controller_api.rb +186 -0
- data/lib/mailslurp_client/models/alias_projection.rb +15 -15
- data/lib/mailslurp_client/models/attachment_entity.rb +10 -1
- data/lib/mailslurp_client/models/bounce_projection.rb +11 -11
- data/lib/mailslurp_client/models/email.rb +13 -13
- data/lib/mailslurp_client/models/email_projection.rb +19 -19
- data/lib/mailslurp_client/models/expired_inbox_record_projection.rb +15 -15
- data/lib/mailslurp_client/models/missed_email_projection.rb +11 -11
- data/lib/mailslurp_client/models/page_alias.rb +17 -16
- data/lib/mailslurp_client/models/page_attachment_entity.rb +17 -16
- data/lib/mailslurp_client/models/page_bounced_email.rb +17 -16
- data/lib/mailslurp_client/models/page_bounced_recipients.rb +17 -16
- data/lib/mailslurp_client/models/page_complaint.rb +17 -16
- data/lib/mailslurp_client/models/page_connector.rb +17 -16
- data/lib/mailslurp_client/models/page_connector_sync_events.rb +17 -16
- data/lib/mailslurp_client/models/page_contact_projection.rb +17 -16
- data/lib/mailslurp_client/models/page_delivery_status.rb +17 -16
- data/lib/mailslurp_client/models/page_email_preview.rb +17 -16
- data/lib/mailslurp_client/models/page_email_projection.rb +12 -21
- data/lib/mailslurp_client/models/page_email_validation_request.rb +17 -16
- data/lib/mailslurp_client/models/page_expired_inbox_record_projection.rb +17 -16
- data/lib/mailslurp_client/models/page_group_projection.rb +17 -16
- data/lib/mailslurp_client/models/page_inbox_forwarder_dto.rb +17 -16
- data/lib/mailslurp_client/models/page_inbox_forwarder_events.rb +17 -16
- data/lib/mailslurp_client/models/page_inbox_projection.rb +17 -16
- data/lib/mailslurp_client/models/page_inbox_replier_dto.rb +17 -16
- data/lib/mailslurp_client/models/page_inbox_replier_events.rb +17 -16
- data/lib/mailslurp_client/models/page_inbox_ruleset_dto.rb +17 -16
- data/lib/mailslurp_client/models/page_list_unsubscribe_recipients.rb +17 -16
- data/lib/mailslurp_client/models/page_missed_email_projection.rb +17 -16
- data/lib/mailslurp_client/models/page_organization_inbox_projection.rb +17 -16
- data/lib/mailslurp_client/models/page_phone_number_projection.rb +17 -16
- data/lib/mailslurp_client/models/page_scheduled_jobs.rb +17 -16
- data/lib/mailslurp_client/models/page_sent_email_projection.rb +34 -69
- data/lib/mailslurp_client/models/page_sent_email_with_queue_projection.rb +34 -69
- data/lib/mailslurp_client/models/page_sms_projection.rb +17 -16
- data/lib/mailslurp_client/models/page_template_projection.rb +17 -16
- data/lib/mailslurp_client/models/page_thread_projection.rb +17 -16
- data/lib/mailslurp_client/models/page_tracking_pixel_projection.rb +17 -16
- data/lib/mailslurp_client/models/page_unknown_missed_email_projection.rb +17 -16
- data/lib/mailslurp_client/models/page_webhook_projection.rb +17 -16
- data/lib/mailslurp_client/models/page_webhook_result.rb +17 -16
- data/lib/mailslurp_client/models/pageable_object.rb +10 -10
- data/lib/mailslurp_client/models/send_with_queue_result.rb +0 -1
- data/lib/mailslurp_client/models/sent_email_projection.rb +30 -31
- data/lib/mailslurp_client/models/thread_projection.rb +11 -11
- data/lib/mailslurp_client/models/unknown_missed_email_projection.rb +10 -10
- data/lib/mailslurp_client/models/user_info_dto.rb +2 -2
- data/lib/mailslurp_client/models/webhook_redrive_all_result.rb +222 -0
- data/lib/mailslurp_client/models/webhook_result_dto.rb +56 -16
- data/lib/mailslurp_client/version.rb +1 -1
- data/lib/mailslurp_client.rb +1 -0
- metadata +3 -2
@@ -15,10 +15,12 @@ require 'date'
|
|
15
15
|
module MailSlurpClient
|
16
16
|
# A compact representation of a full email. Used in list endpoints to keep response sizes low. Body and attachments are not included. To get all fields of the email use the `getEmail` method with the email projection's ID. See `EmailDto` for documentation on projection properties.
|
17
17
|
class EmailProjection
|
18
|
-
attr_accessor :
|
18
|
+
attr_accessor :subject
|
19
19
|
|
20
20
|
attr_accessor :inbox_id
|
21
21
|
|
22
|
+
attr_accessor :attachments
|
23
|
+
|
22
24
|
attr_accessor :to
|
23
25
|
|
24
26
|
attr_accessor :domain_id
|
@@ -39,8 +41,6 @@ module MailSlurpClient
|
|
39
41
|
|
40
42
|
attr_accessor :created_at
|
41
43
|
|
42
|
-
attr_accessor :subject
|
43
|
-
|
44
44
|
attr_accessor :id
|
45
45
|
|
46
46
|
attr_accessor :from
|
@@ -48,8 +48,9 @@ module MailSlurpClient
|
|
48
48
|
# Attribute mapping from ruby-style variable name to JSON key.
|
49
49
|
def self.attribute_map
|
50
50
|
{
|
51
|
-
:'
|
51
|
+
:'subject' => :'subject',
|
52
52
|
:'inbox_id' => :'inboxId',
|
53
|
+
:'attachments' => :'attachments',
|
53
54
|
:'to' => :'to',
|
54
55
|
:'domain_id' => :'domainId',
|
55
56
|
:'bcc' => :'bcc',
|
@@ -60,7 +61,6 @@ module MailSlurpClient
|
|
60
61
|
:'body_md5_hash' => :'bodyMD5Hash',
|
61
62
|
:'text_excerpt' => :'textExcerpt',
|
62
63
|
:'created_at' => :'createdAt',
|
63
|
-
:'subject' => :'subject',
|
64
64
|
:'id' => :'id',
|
65
65
|
:'from' => :'from'
|
66
66
|
}
|
@@ -69,8 +69,9 @@ module MailSlurpClient
|
|
69
69
|
# Attribute type mapping.
|
70
70
|
def self.openapi_types
|
71
71
|
{
|
72
|
-
:'
|
72
|
+
:'subject' => :'String',
|
73
73
|
:'inbox_id' => :'String',
|
74
|
+
:'attachments' => :'Array<String>',
|
74
75
|
:'to' => :'Array<String>',
|
75
76
|
:'domain_id' => :'String',
|
76
77
|
:'bcc' => :'Array<String>',
|
@@ -81,7 +82,6 @@ module MailSlurpClient
|
|
81
82
|
:'body_md5_hash' => :'String',
|
82
83
|
:'text_excerpt' => :'String',
|
83
84
|
:'created_at' => :'DateTime',
|
84
|
-
:'subject' => :'String',
|
85
85
|
:'id' => :'String',
|
86
86
|
:'from' => :'String'
|
87
87
|
}
|
@@ -90,6 +90,7 @@ module MailSlurpClient
|
|
90
90
|
# List of attributes with nullable: true
|
91
91
|
def self.openapi_nullable
|
92
92
|
Set.new([
|
93
|
+
:'subject',
|
93
94
|
:'attachments',
|
94
95
|
:'domain_id',
|
95
96
|
:'bcc',
|
@@ -97,7 +98,6 @@ module MailSlurpClient
|
|
97
98
|
:'body_excerpt',
|
98
99
|
:'body_md5_hash',
|
99
100
|
:'text_excerpt',
|
100
|
-
:'subject',
|
101
101
|
:'from'
|
102
102
|
])
|
103
103
|
end
|
@@ -117,16 +117,20 @@ module MailSlurpClient
|
|
117
117
|
h[k.to_sym] = v
|
118
118
|
}
|
119
119
|
|
120
|
-
if attributes.key?(:'
|
121
|
-
|
122
|
-
self.attachments = value
|
123
|
-
end
|
120
|
+
if attributes.key?(:'subject')
|
121
|
+
self.subject = attributes[:'subject']
|
124
122
|
end
|
125
123
|
|
126
124
|
if attributes.key?(:'inbox_id')
|
127
125
|
self.inbox_id = attributes[:'inbox_id']
|
128
126
|
end
|
129
127
|
|
128
|
+
if attributes.key?(:'attachments')
|
129
|
+
if (value = attributes[:'attachments']).is_a?(Array)
|
130
|
+
self.attachments = value
|
131
|
+
end
|
132
|
+
end
|
133
|
+
|
130
134
|
if attributes.key?(:'to')
|
131
135
|
if (value = attributes[:'to']).is_a?(Array)
|
132
136
|
self.to = value
|
@@ -173,10 +177,6 @@ module MailSlurpClient
|
|
173
177
|
self.created_at = attributes[:'created_at']
|
174
178
|
end
|
175
179
|
|
176
|
-
if attributes.key?(:'subject')
|
177
|
-
self.subject = attributes[:'subject']
|
178
|
-
end
|
179
|
-
|
180
180
|
if attributes.key?(:'id')
|
181
181
|
self.id = attributes[:'id']
|
182
182
|
end
|
@@ -234,8 +234,9 @@ module MailSlurpClient
|
|
234
234
|
def ==(o)
|
235
235
|
return true if self.equal?(o)
|
236
236
|
self.class == o.class &&
|
237
|
-
|
237
|
+
subject == o.subject &&
|
238
238
|
inbox_id == o.inbox_id &&
|
239
|
+
attachments == o.attachments &&
|
239
240
|
to == o.to &&
|
240
241
|
domain_id == o.domain_id &&
|
241
242
|
bcc == o.bcc &&
|
@@ -246,7 +247,6 @@ module MailSlurpClient
|
|
246
247
|
body_md5_hash == o.body_md5_hash &&
|
247
248
|
text_excerpt == o.text_excerpt &&
|
248
249
|
created_at == o.created_at &&
|
249
|
-
subject == o.subject &&
|
250
250
|
id == o.id &&
|
251
251
|
from == o.from
|
252
252
|
end
|
@@ -260,7 +260,7 @@ module MailSlurpClient
|
|
260
260
|
# Calculates hash code according to all attributes.
|
261
261
|
# @return [Integer] Hash code
|
262
262
|
def hash
|
263
|
-
[
|
263
|
+
[subject, inbox_id, attachments, to, domain_id, bcc, cc, read, body_excerpt, team_access, body_md5_hash, text_excerpt, created_at, id, from].hash
|
264
264
|
end
|
265
265
|
|
266
266
|
# Builds the object from hash
|
@@ -15,10 +15,10 @@ require 'date'
|
|
15
15
|
module MailSlurpClient
|
16
16
|
# Record of inbox expiration
|
17
17
|
class ExpiredInboxRecordProjection
|
18
|
-
attr_accessor :email_address
|
19
|
-
|
20
18
|
attr_accessor :user_id
|
21
19
|
|
20
|
+
attr_accessor :email_address
|
21
|
+
|
22
22
|
attr_accessor :created_at
|
23
23
|
|
24
24
|
attr_accessor :id
|
@@ -26,8 +26,8 @@ module MailSlurpClient
|
|
26
26
|
# Attribute mapping from ruby-style variable name to JSON key.
|
27
27
|
def self.attribute_map
|
28
28
|
{
|
29
|
-
:'email_address' => :'emailAddress',
|
30
29
|
:'user_id' => :'userId',
|
30
|
+
:'email_address' => :'emailAddress',
|
31
31
|
:'created_at' => :'createdAt',
|
32
32
|
:'id' => :'id'
|
33
33
|
}
|
@@ -36,8 +36,8 @@ module MailSlurpClient
|
|
36
36
|
# Attribute type mapping.
|
37
37
|
def self.openapi_types
|
38
38
|
{
|
39
|
-
:'email_address' => :'String',
|
40
39
|
:'user_id' => :'String',
|
40
|
+
:'email_address' => :'String',
|
41
41
|
:'created_at' => :'DateTime',
|
42
42
|
:'id' => :'String'
|
43
43
|
}
|
@@ -64,14 +64,14 @@ module MailSlurpClient
|
|
64
64
|
h[k.to_sym] = v
|
65
65
|
}
|
66
66
|
|
67
|
-
if attributes.key?(:'email_address')
|
68
|
-
self.email_address = attributes[:'email_address']
|
69
|
-
end
|
70
|
-
|
71
67
|
if attributes.key?(:'user_id')
|
72
68
|
self.user_id = attributes[:'user_id']
|
73
69
|
end
|
74
70
|
|
71
|
+
if attributes.key?(:'email_address')
|
72
|
+
self.email_address = attributes[:'email_address']
|
73
|
+
end
|
74
|
+
|
75
75
|
if attributes.key?(:'created_at')
|
76
76
|
self.created_at = attributes[:'created_at']
|
77
77
|
end
|
@@ -85,14 +85,14 @@ 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 @email_address.nil?
|
89
|
-
invalid_properties.push('invalid value for "email_address", email_address cannot be nil.')
|
90
|
-
end
|
91
|
-
|
92
88
|
if @user_id.nil?
|
93
89
|
invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
|
94
90
|
end
|
95
91
|
|
92
|
+
if @email_address.nil?
|
93
|
+
invalid_properties.push('invalid value for "email_address", email_address cannot be nil.')
|
94
|
+
end
|
95
|
+
|
96
96
|
if @created_at.nil?
|
97
97
|
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
98
98
|
end
|
@@ -107,8 +107,8 @@ 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 @email_address.nil?
|
111
110
|
return false if @user_id.nil?
|
111
|
+
return false if @email_address.nil?
|
112
112
|
return false if @created_at.nil?
|
113
113
|
return false if @id.nil?
|
114
114
|
true
|
@@ -119,8 +119,8 @@ module MailSlurpClient
|
|
119
119
|
def ==(o)
|
120
120
|
return true if self.equal?(o)
|
121
121
|
self.class == o.class &&
|
122
|
-
email_address == o.email_address &&
|
123
122
|
user_id == o.user_id &&
|
123
|
+
email_address == o.email_address &&
|
124
124
|
created_at == o.created_at &&
|
125
125
|
id == o.id
|
126
126
|
end
|
@@ -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
|
+
[user_id, email_address, created_at, id].hash
|
138
138
|
end
|
139
139
|
|
140
140
|
# Builds the object from hash
|
@@ -15,12 +15,12 @@ require 'date'
|
|
15
15
|
module MailSlurpClient
|
16
16
|
# Missed email data
|
17
17
|
class MissedEmailProjection
|
18
|
+
attr_accessor :subject
|
19
|
+
|
18
20
|
attr_accessor :user_id
|
19
21
|
|
20
22
|
attr_accessor :created_at
|
21
23
|
|
22
|
-
attr_accessor :subject
|
23
|
-
|
24
24
|
attr_accessor :id
|
25
25
|
|
26
26
|
attr_accessor :from
|
@@ -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',
|
31
32
|
:'user_id' => :'userId',
|
32
33
|
:'created_at' => :'createdAt',
|
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',
|
42
43
|
:'user_id' => :'String',
|
43
44
|
:'created_at' => :'DateTime',
|
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
|
-
:'user_id',
|
54
53
|
:'subject',
|
54
|
+
:'user_id',
|
55
55
|
:'from'
|
56
56
|
])
|
57
57
|
end
|
@@ -71,6 +71,10 @@ module MailSlurpClient
|
|
71
71
|
h[k.to_sym] = v
|
72
72
|
}
|
73
73
|
|
74
|
+
if attributes.key?(:'subject')
|
75
|
+
self.subject = attributes[:'subject']
|
76
|
+
end
|
77
|
+
|
74
78
|
if attributes.key?(:'user_id')
|
75
79
|
self.user_id = attributes[:'user_id']
|
76
80
|
end
|
@@ -79,10 +83,6 @@ module MailSlurpClient
|
|
79
83
|
self.created_at = attributes[:'created_at']
|
80
84
|
end
|
81
85
|
|
82
|
-
if attributes.key?(:'subject')
|
83
|
-
self.subject = attributes[:'subject']
|
84
|
-
end
|
85
|
-
|
86
86
|
if attributes.key?(:'id')
|
87
87
|
self.id = attributes[:'id']
|
88
88
|
end
|
@@ -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 &&
|
123
124
|
user_id == o.user_id &&
|
124
125
|
created_at == o.created_at &&
|
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
|
-
[user_id, created_at,
|
139
|
+
[subject, user_id, created_at, id, from].hash
|
140
140
|
end
|
141
141
|
|
142
142
|
# Builds the object from hash
|
@@ -19,12 +19,10 @@ module MailSlurpClient
|
|
19
19
|
|
20
20
|
attr_accessor :pageable
|
21
21
|
|
22
|
-
attr_accessor :
|
22
|
+
attr_accessor :total_pages
|
23
23
|
|
24
24
|
attr_accessor :total_elements
|
25
25
|
|
26
|
-
attr_accessor :total_pages
|
27
|
-
|
28
26
|
attr_accessor :last
|
29
27
|
|
30
28
|
attr_accessor :number_of_elements
|
@@ -44,9 +42,8 @@ module MailSlurpClient
|
|
44
42
|
{
|
45
43
|
:'content' => :'content',
|
46
44
|
:'pageable' => :'pageable',
|
47
|
-
:'total' => :'total',
|
48
|
-
:'total_elements' => :'totalElements',
|
49
45
|
:'total_pages' => :'totalPages',
|
46
|
+
:'total_elements' => :'totalElements',
|
50
47
|
:'last' => :'last',
|
51
48
|
:'number_of_elements' => :'numberOfElements',
|
52
49
|
:'first' => :'first',
|
@@ -62,9 +59,8 @@ module MailSlurpClient
|
|
62
59
|
{
|
63
60
|
:'content' => :'Array<AliasProjection>',
|
64
61
|
:'pageable' => :'PageableObject',
|
65
|
-
:'total' => :'Integer',
|
66
|
-
:'total_elements' => :'Integer',
|
67
62
|
:'total_pages' => :'Integer',
|
63
|
+
:'total_elements' => :'Integer',
|
68
64
|
:'last' => :'Boolean',
|
69
65
|
:'number_of_elements' => :'Integer',
|
70
66
|
:'first' => :'Boolean',
|
@@ -106,18 +102,14 @@ module MailSlurpClient
|
|
106
102
|
self.pageable = attributes[:'pageable']
|
107
103
|
end
|
108
104
|
|
109
|
-
if attributes.key?(:'
|
110
|
-
self.
|
105
|
+
if attributes.key?(:'total_pages')
|
106
|
+
self.total_pages = attributes[:'total_pages']
|
111
107
|
end
|
112
108
|
|
113
109
|
if attributes.key?(:'total_elements')
|
114
110
|
self.total_elements = attributes[:'total_elements']
|
115
111
|
end
|
116
112
|
|
117
|
-
if attributes.key?(:'total_pages')
|
118
|
-
self.total_pages = attributes[:'total_pages']
|
119
|
-
end
|
120
|
-
|
121
113
|
if attributes.key?(:'last')
|
122
114
|
self.last = attributes[:'last']
|
123
115
|
end
|
@@ -151,12 +143,22 @@ module MailSlurpClient
|
|
151
143
|
# @return Array for valid properties with the reasons
|
152
144
|
def list_invalid_properties
|
153
145
|
invalid_properties = Array.new
|
146
|
+
if @total_pages.nil?
|
147
|
+
invalid_properties.push('invalid value for "total_pages", total_pages cannot be nil.')
|
148
|
+
end
|
149
|
+
|
150
|
+
if @total_elements.nil?
|
151
|
+
invalid_properties.push('invalid value for "total_elements", total_elements cannot be nil.')
|
152
|
+
end
|
153
|
+
|
154
154
|
invalid_properties
|
155
155
|
end
|
156
156
|
|
157
157
|
# Check to see if the all the properties in the model are valid
|
158
158
|
# @return true if the model is valid
|
159
159
|
def valid?
|
160
|
+
return false if @total_pages.nil?
|
161
|
+
return false if @total_elements.nil?
|
160
162
|
true
|
161
163
|
end
|
162
164
|
|
@@ -167,9 +169,8 @@ module MailSlurpClient
|
|
167
169
|
self.class == o.class &&
|
168
170
|
content == o.content &&
|
169
171
|
pageable == o.pageable &&
|
170
|
-
total == o.total &&
|
171
|
-
total_elements == o.total_elements &&
|
172
172
|
total_pages == o.total_pages &&
|
173
|
+
total_elements == o.total_elements &&
|
173
174
|
last == o.last &&
|
174
175
|
number_of_elements == o.number_of_elements &&
|
175
176
|
first == o.first &&
|
@@ -188,7 +189,7 @@ module MailSlurpClient
|
|
188
189
|
# Calculates hash code according to all attributes.
|
189
190
|
# @return [Integer] Hash code
|
190
191
|
def hash
|
191
|
-
[content, pageable,
|
192
|
+
[content, pageable, total_pages, total_elements, last, number_of_elements, first, size, number, sort, empty].hash
|
192
193
|
end
|
193
194
|
|
194
195
|
# Builds the object from hash
|
@@ -19,12 +19,10 @@ module MailSlurpClient
|
|
19
19
|
|
20
20
|
attr_accessor :pageable
|
21
21
|
|
22
|
-
attr_accessor :
|
22
|
+
attr_accessor :total_pages
|
23
23
|
|
24
24
|
attr_accessor :total_elements
|
25
25
|
|
26
|
-
attr_accessor :total_pages
|
27
|
-
|
28
26
|
attr_accessor :last
|
29
27
|
|
30
28
|
attr_accessor :number_of_elements
|
@@ -44,9 +42,8 @@ module MailSlurpClient
|
|
44
42
|
{
|
45
43
|
:'content' => :'content',
|
46
44
|
:'pageable' => :'pageable',
|
47
|
-
:'total' => :'total',
|
48
|
-
:'total_elements' => :'totalElements',
|
49
45
|
:'total_pages' => :'totalPages',
|
46
|
+
:'total_elements' => :'totalElements',
|
50
47
|
:'last' => :'last',
|
51
48
|
:'number_of_elements' => :'numberOfElements',
|
52
49
|
:'first' => :'first',
|
@@ -62,9 +59,8 @@ module MailSlurpClient
|
|
62
59
|
{
|
63
60
|
:'content' => :'Array<AttachmentProjection>',
|
64
61
|
:'pageable' => :'PageableObject',
|
65
|
-
:'total' => :'Integer',
|
66
|
-
:'total_elements' => :'Integer',
|
67
62
|
:'total_pages' => :'Integer',
|
63
|
+
:'total_elements' => :'Integer',
|
68
64
|
:'last' => :'Boolean',
|
69
65
|
:'number_of_elements' => :'Integer',
|
70
66
|
:'first' => :'Boolean',
|
@@ -106,18 +102,14 @@ module MailSlurpClient
|
|
106
102
|
self.pageable = attributes[:'pageable']
|
107
103
|
end
|
108
104
|
|
109
|
-
if attributes.key?(:'
|
110
|
-
self.
|
105
|
+
if attributes.key?(:'total_pages')
|
106
|
+
self.total_pages = attributes[:'total_pages']
|
111
107
|
end
|
112
108
|
|
113
109
|
if attributes.key?(:'total_elements')
|
114
110
|
self.total_elements = attributes[:'total_elements']
|
115
111
|
end
|
116
112
|
|
117
|
-
if attributes.key?(:'total_pages')
|
118
|
-
self.total_pages = attributes[:'total_pages']
|
119
|
-
end
|
120
|
-
|
121
113
|
if attributes.key?(:'last')
|
122
114
|
self.last = attributes[:'last']
|
123
115
|
end
|
@@ -151,12 +143,22 @@ module MailSlurpClient
|
|
151
143
|
# @return Array for valid properties with the reasons
|
152
144
|
def list_invalid_properties
|
153
145
|
invalid_properties = Array.new
|
146
|
+
if @total_pages.nil?
|
147
|
+
invalid_properties.push('invalid value for "total_pages", total_pages cannot be nil.')
|
148
|
+
end
|
149
|
+
|
150
|
+
if @total_elements.nil?
|
151
|
+
invalid_properties.push('invalid value for "total_elements", total_elements cannot be nil.')
|
152
|
+
end
|
153
|
+
|
154
154
|
invalid_properties
|
155
155
|
end
|
156
156
|
|
157
157
|
# Check to see if the all the properties in the model are valid
|
158
158
|
# @return true if the model is valid
|
159
159
|
def valid?
|
160
|
+
return false if @total_pages.nil?
|
161
|
+
return false if @total_elements.nil?
|
160
162
|
true
|
161
163
|
end
|
162
164
|
|
@@ -167,9 +169,8 @@ module MailSlurpClient
|
|
167
169
|
self.class == o.class &&
|
168
170
|
content == o.content &&
|
169
171
|
pageable == o.pageable &&
|
170
|
-
total == o.total &&
|
171
|
-
total_elements == o.total_elements &&
|
172
172
|
total_pages == o.total_pages &&
|
173
|
+
total_elements == o.total_elements &&
|
173
174
|
last == o.last &&
|
174
175
|
number_of_elements == o.number_of_elements &&
|
175
176
|
first == o.first &&
|
@@ -188,7 +189,7 @@ module MailSlurpClient
|
|
188
189
|
# Calculates hash code according to all attributes.
|
189
190
|
# @return [Integer] Hash code
|
190
191
|
def hash
|
191
|
-
[content, pageable,
|
192
|
+
[content, pageable, total_pages, total_elements, last, number_of_elements, first, size, number, sort, empty].hash
|
192
193
|
end
|
193
194
|
|
194
195
|
# Builds the object from hash
|
@@ -19,12 +19,10 @@ module MailSlurpClient
|
|
19
19
|
|
20
20
|
attr_accessor :pageable
|
21
21
|
|
22
|
-
attr_accessor :
|
22
|
+
attr_accessor :total_pages
|
23
23
|
|
24
24
|
attr_accessor :total_elements
|
25
25
|
|
26
|
-
attr_accessor :total_pages
|
27
|
-
|
28
26
|
attr_accessor :last
|
29
27
|
|
30
28
|
attr_accessor :number_of_elements
|
@@ -44,9 +42,8 @@ module MailSlurpClient
|
|
44
42
|
{
|
45
43
|
:'content' => :'content',
|
46
44
|
:'pageable' => :'pageable',
|
47
|
-
:'total' => :'total',
|
48
|
-
:'total_elements' => :'totalElements',
|
49
45
|
:'total_pages' => :'totalPages',
|
46
|
+
:'total_elements' => :'totalElements',
|
50
47
|
:'last' => :'last',
|
51
48
|
:'number_of_elements' => :'numberOfElements',
|
52
49
|
:'first' => :'first',
|
@@ -62,9 +59,8 @@ module MailSlurpClient
|
|
62
59
|
{
|
63
60
|
:'content' => :'Array<BounceProjection>',
|
64
61
|
:'pageable' => :'PageableObject',
|
65
|
-
:'total' => :'Integer',
|
66
|
-
:'total_elements' => :'Integer',
|
67
62
|
:'total_pages' => :'Integer',
|
63
|
+
:'total_elements' => :'Integer',
|
68
64
|
:'last' => :'Boolean',
|
69
65
|
:'number_of_elements' => :'Integer',
|
70
66
|
:'first' => :'Boolean',
|
@@ -106,18 +102,14 @@ module MailSlurpClient
|
|
106
102
|
self.pageable = attributes[:'pageable']
|
107
103
|
end
|
108
104
|
|
109
|
-
if attributes.key?(:'
|
110
|
-
self.
|
105
|
+
if attributes.key?(:'total_pages')
|
106
|
+
self.total_pages = attributes[:'total_pages']
|
111
107
|
end
|
112
108
|
|
113
109
|
if attributes.key?(:'total_elements')
|
114
110
|
self.total_elements = attributes[:'total_elements']
|
115
111
|
end
|
116
112
|
|
117
|
-
if attributes.key?(:'total_pages')
|
118
|
-
self.total_pages = attributes[:'total_pages']
|
119
|
-
end
|
120
|
-
|
121
113
|
if attributes.key?(:'last')
|
122
114
|
self.last = attributes[:'last']
|
123
115
|
end
|
@@ -151,12 +143,22 @@ module MailSlurpClient
|
|
151
143
|
# @return Array for valid properties with the reasons
|
152
144
|
def list_invalid_properties
|
153
145
|
invalid_properties = Array.new
|
146
|
+
if @total_pages.nil?
|
147
|
+
invalid_properties.push('invalid value for "total_pages", total_pages cannot be nil.')
|
148
|
+
end
|
149
|
+
|
150
|
+
if @total_elements.nil?
|
151
|
+
invalid_properties.push('invalid value for "total_elements", total_elements cannot be nil.')
|
152
|
+
end
|
153
|
+
|
154
154
|
invalid_properties
|
155
155
|
end
|
156
156
|
|
157
157
|
# Check to see if the all the properties in the model are valid
|
158
158
|
# @return true if the model is valid
|
159
159
|
def valid?
|
160
|
+
return false if @total_pages.nil?
|
161
|
+
return false if @total_elements.nil?
|
160
162
|
true
|
161
163
|
end
|
162
164
|
|
@@ -167,9 +169,8 @@ module MailSlurpClient
|
|
167
169
|
self.class == o.class &&
|
168
170
|
content == o.content &&
|
169
171
|
pageable == o.pageable &&
|
170
|
-
total == o.total &&
|
171
|
-
total_elements == o.total_elements &&
|
172
172
|
total_pages == o.total_pages &&
|
173
|
+
total_elements == o.total_elements &&
|
173
174
|
last == o.last &&
|
174
175
|
number_of_elements == o.number_of_elements &&
|
175
176
|
first == o.first &&
|
@@ -188,7 +189,7 @@ module MailSlurpClient
|
|
188
189
|
# Calculates hash code according to all attributes.
|
189
190
|
# @return [Integer] Hash code
|
190
191
|
def hash
|
191
|
-
[content, pageable,
|
192
|
+
[content, pageable, total_pages, total_elements, last, number_of_elements, first, size, number, sort, empty].hash
|
192
193
|
end
|
193
194
|
|
194
195
|
# Builds the object from hash
|