mailslurp_client 15.12.15 → 15.12.16
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/bounce_controller_api.rb +79 -0
- data/lib/mailslurp_client/api/sent_emails_controller_api.rb +212 -0
- data/lib/mailslurp_client/api/webhook_controller_api.rb +3 -0
- data/lib/mailslurp_client/models/alias_projection.rb +15 -15
- data/lib/mailslurp_client/models/attachment_projection.rb +14 -14
- data/lib/mailslurp_client/models/bounce_projection.rb +13 -13
- data/lib/mailslurp_client/models/bounce_recipient_projection.rb +13 -13
- data/lib/mailslurp_client/models/complaint.rb +289 -0
- data/lib/mailslurp_client/models/create_webhook_options.rb +0 -5
- data/lib/mailslurp_client/models/delivery_status.rb +331 -0
- data/lib/mailslurp_client/models/email_projection.rb +10 -10
- data/lib/mailslurp_client/models/missed_email_projection.rb +10 -10
- data/lib/mailslurp_client/models/page_alias.rb +22 -22
- data/lib/mailslurp_client/models/page_attachment_entity.rb +22 -22
- data/lib/mailslurp_client/models/page_bounced_email.rb +22 -22
- data/lib/mailslurp_client/models/page_bounced_recipients.rb +22 -22
- data/lib/mailslurp_client/models/page_complaint.rb +308 -0
- data/lib/mailslurp_client/models/page_contact_projection.rb +22 -22
- data/lib/mailslurp_client/models/page_delivery_status.rb +308 -0
- data/lib/mailslurp_client/models/page_email_preview.rb +22 -22
- data/lib/mailslurp_client/models/page_email_projection.rb +22 -22
- data/lib/mailslurp_client/models/page_email_validation_request.rb +22 -22
- data/lib/mailslurp_client/models/page_expired_inbox_record_projection.rb +22 -22
- data/lib/mailslurp_client/models/page_group_projection.rb +22 -22
- data/lib/mailslurp_client/models/page_inbox_forwarder_dto.rb +22 -22
- data/lib/mailslurp_client/models/page_inbox_projection.rb +22 -22
- data/lib/mailslurp_client/models/page_inbox_ruleset_dto.rb +22 -22
- data/lib/mailslurp_client/models/page_missed_email_projection.rb +22 -22
- data/lib/mailslurp_client/models/page_organization_inbox_projection.rb +22 -22
- data/lib/mailslurp_client/models/page_phone_number_projection.rb +22 -22
- 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 +22 -22
- data/lib/mailslurp_client/models/page_template_projection.rb +22 -22
- data/lib/mailslurp_client/models/page_thread_projection.rb +22 -22
- data/lib/mailslurp_client/models/page_tracking_pixel_projection.rb +22 -22
- data/lib/mailslurp_client/models/page_unknown_missed_email_projection.rb +22 -22
- data/lib/mailslurp_client/models/page_webhook_projection.rb +22 -22
- data/lib/mailslurp_client/models/page_webhook_result.rb +22 -22
- data/lib/mailslurp_client/models/sent_email_projection.rb +18 -18
- data/lib/mailslurp_client/models/thread_projection.rb +20 -20
- data/lib/mailslurp_client/models/tracking_pixel_projection.rb +19 -19
- data/lib/mailslurp_client/version.rb +1 -1
- data/lib/mailslurp_client.rb +4 -0
- metadata +9 -5
@@ -21,11 +21,11 @@ module MailSlurpClient
|
|
21
21
|
|
22
22
|
attr_accessor :total
|
23
23
|
|
24
|
-
attr_accessor :
|
24
|
+
attr_accessor :last
|
25
25
|
|
26
26
|
attr_accessor :total_pages
|
27
27
|
|
28
|
-
attr_accessor :
|
28
|
+
attr_accessor :total_elements
|
29
29
|
|
30
30
|
attr_accessor :size
|
31
31
|
|
@@ -33,10 +33,10 @@ module MailSlurpClient
|
|
33
33
|
|
34
34
|
attr_accessor :sort
|
35
35
|
|
36
|
-
attr_accessor :number_of_elements
|
37
|
-
|
38
36
|
attr_accessor :first
|
39
37
|
|
38
|
+
attr_accessor :number_of_elements
|
39
|
+
|
40
40
|
attr_accessor :empty
|
41
41
|
|
42
42
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -45,14 +45,14 @@ module MailSlurpClient
|
|
45
45
|
:'content' => :'content',
|
46
46
|
:'pageable' => :'pageable',
|
47
47
|
:'total' => :'total',
|
48
|
-
:'total_elements' => :'totalElements',
|
49
|
-
:'total_pages' => :'totalPages',
|
50
48
|
:'last' => :'last',
|
49
|
+
:'total_pages' => :'totalPages',
|
50
|
+
:'total_elements' => :'totalElements',
|
51
51
|
:'size' => :'size',
|
52
52
|
:'number' => :'number',
|
53
53
|
:'sort' => :'sort',
|
54
|
-
:'number_of_elements' => :'numberOfElements',
|
55
54
|
:'first' => :'first',
|
55
|
+
:'number_of_elements' => :'numberOfElements',
|
56
56
|
:'empty' => :'empty'
|
57
57
|
}
|
58
58
|
end
|
@@ -63,14 +63,14 @@ module MailSlurpClient
|
|
63
63
|
:'content' => :'Array<UnknownMissedEmailProjection>',
|
64
64
|
:'pageable' => :'PageableObject',
|
65
65
|
:'total' => :'Integer',
|
66
|
-
:'total_elements' => :'Integer',
|
67
|
-
:'total_pages' => :'Integer',
|
68
66
|
:'last' => :'Boolean',
|
67
|
+
:'total_pages' => :'Integer',
|
68
|
+
:'total_elements' => :'Integer',
|
69
69
|
:'size' => :'Integer',
|
70
70
|
:'number' => :'Integer',
|
71
71
|
:'sort' => :'Sort',
|
72
|
-
:'number_of_elements' => :'Integer',
|
73
72
|
:'first' => :'Boolean',
|
73
|
+
:'number_of_elements' => :'Integer',
|
74
74
|
:'empty' => :'Boolean'
|
75
75
|
}
|
76
76
|
end
|
@@ -110,16 +110,16 @@ module MailSlurpClient
|
|
110
110
|
self.total = attributes[:'total']
|
111
111
|
end
|
112
112
|
|
113
|
-
if attributes.key?(:'
|
114
|
-
self.
|
113
|
+
if attributes.key?(:'last')
|
114
|
+
self.last = attributes[:'last']
|
115
115
|
end
|
116
116
|
|
117
117
|
if attributes.key?(:'total_pages')
|
118
118
|
self.total_pages = attributes[:'total_pages']
|
119
119
|
end
|
120
120
|
|
121
|
-
if attributes.key?(:'
|
122
|
-
self.
|
121
|
+
if attributes.key?(:'total_elements')
|
122
|
+
self.total_elements = attributes[:'total_elements']
|
123
123
|
end
|
124
124
|
|
125
125
|
if attributes.key?(:'size')
|
@@ -134,14 +134,14 @@ module MailSlurpClient
|
|
134
134
|
self.sort = attributes[:'sort']
|
135
135
|
end
|
136
136
|
|
137
|
-
if attributes.key?(:'number_of_elements')
|
138
|
-
self.number_of_elements = attributes[:'number_of_elements']
|
139
|
-
end
|
140
|
-
|
141
137
|
if attributes.key?(:'first')
|
142
138
|
self.first = attributes[:'first']
|
143
139
|
end
|
144
140
|
|
141
|
+
if attributes.key?(:'number_of_elements')
|
142
|
+
self.number_of_elements = attributes[:'number_of_elements']
|
143
|
+
end
|
144
|
+
|
145
145
|
if attributes.key?(:'empty')
|
146
146
|
self.empty = attributes[:'empty']
|
147
147
|
end
|
@@ -168,14 +168,14 @@ module MailSlurpClient
|
|
168
168
|
content == o.content &&
|
169
169
|
pageable == o.pageable &&
|
170
170
|
total == o.total &&
|
171
|
-
total_elements == o.total_elements &&
|
172
|
-
total_pages == o.total_pages &&
|
173
171
|
last == o.last &&
|
172
|
+
total_pages == o.total_pages &&
|
173
|
+
total_elements == o.total_elements &&
|
174
174
|
size == o.size &&
|
175
175
|
number == o.number &&
|
176
176
|
sort == o.sort &&
|
177
|
-
number_of_elements == o.number_of_elements &&
|
178
177
|
first == o.first &&
|
178
|
+
number_of_elements == o.number_of_elements &&
|
179
179
|
empty == o.empty
|
180
180
|
end
|
181
181
|
|
@@ -188,7 +188,7 @@ module MailSlurpClient
|
|
188
188
|
# Calculates hash code according to all attributes.
|
189
189
|
# @return [Integer] Hash code
|
190
190
|
def hash
|
191
|
-
[content, pageable, total,
|
191
|
+
[content, pageable, total, last, total_pages, total_elements, size, number, sort, first, number_of_elements, empty].hash
|
192
192
|
end
|
193
193
|
|
194
194
|
# Builds the object from hash
|
@@ -21,11 +21,11 @@ module MailSlurpClient
|
|
21
21
|
|
22
22
|
attr_accessor :total
|
23
23
|
|
24
|
-
attr_accessor :
|
24
|
+
attr_accessor :last
|
25
25
|
|
26
26
|
attr_accessor :total_pages
|
27
27
|
|
28
|
-
attr_accessor :
|
28
|
+
attr_accessor :total_elements
|
29
29
|
|
30
30
|
attr_accessor :size
|
31
31
|
|
@@ -33,10 +33,10 @@ module MailSlurpClient
|
|
33
33
|
|
34
34
|
attr_accessor :sort
|
35
35
|
|
36
|
-
attr_accessor :number_of_elements
|
37
|
-
|
38
36
|
attr_accessor :first
|
39
37
|
|
38
|
+
attr_accessor :number_of_elements
|
39
|
+
|
40
40
|
attr_accessor :empty
|
41
41
|
|
42
42
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -45,14 +45,14 @@ module MailSlurpClient
|
|
45
45
|
:'content' => :'content',
|
46
46
|
:'pageable' => :'pageable',
|
47
47
|
:'total' => :'total',
|
48
|
-
:'total_elements' => :'totalElements',
|
49
|
-
:'total_pages' => :'totalPages',
|
50
48
|
:'last' => :'last',
|
49
|
+
:'total_pages' => :'totalPages',
|
50
|
+
:'total_elements' => :'totalElements',
|
51
51
|
:'size' => :'size',
|
52
52
|
:'number' => :'number',
|
53
53
|
:'sort' => :'sort',
|
54
|
-
:'number_of_elements' => :'numberOfElements',
|
55
54
|
:'first' => :'first',
|
55
|
+
:'number_of_elements' => :'numberOfElements',
|
56
56
|
:'empty' => :'empty'
|
57
57
|
}
|
58
58
|
end
|
@@ -63,14 +63,14 @@ module MailSlurpClient
|
|
63
63
|
:'content' => :'Array<WebhookProjection>',
|
64
64
|
:'pageable' => :'PageableObject',
|
65
65
|
:'total' => :'Integer',
|
66
|
-
:'total_elements' => :'Integer',
|
67
|
-
:'total_pages' => :'Integer',
|
68
66
|
:'last' => :'Boolean',
|
67
|
+
:'total_pages' => :'Integer',
|
68
|
+
:'total_elements' => :'Integer',
|
69
69
|
:'size' => :'Integer',
|
70
70
|
:'number' => :'Integer',
|
71
71
|
:'sort' => :'Sort',
|
72
|
-
:'number_of_elements' => :'Integer',
|
73
72
|
:'first' => :'Boolean',
|
73
|
+
:'number_of_elements' => :'Integer',
|
74
74
|
:'empty' => :'Boolean'
|
75
75
|
}
|
76
76
|
end
|
@@ -110,16 +110,16 @@ module MailSlurpClient
|
|
110
110
|
self.total = attributes[:'total']
|
111
111
|
end
|
112
112
|
|
113
|
-
if attributes.key?(:'
|
114
|
-
self.
|
113
|
+
if attributes.key?(:'last')
|
114
|
+
self.last = attributes[:'last']
|
115
115
|
end
|
116
116
|
|
117
117
|
if attributes.key?(:'total_pages')
|
118
118
|
self.total_pages = attributes[:'total_pages']
|
119
119
|
end
|
120
120
|
|
121
|
-
if attributes.key?(:'
|
122
|
-
self.
|
121
|
+
if attributes.key?(:'total_elements')
|
122
|
+
self.total_elements = attributes[:'total_elements']
|
123
123
|
end
|
124
124
|
|
125
125
|
if attributes.key?(:'size')
|
@@ -134,14 +134,14 @@ module MailSlurpClient
|
|
134
134
|
self.sort = attributes[:'sort']
|
135
135
|
end
|
136
136
|
|
137
|
-
if attributes.key?(:'number_of_elements')
|
138
|
-
self.number_of_elements = attributes[:'number_of_elements']
|
139
|
-
end
|
140
|
-
|
141
137
|
if attributes.key?(:'first')
|
142
138
|
self.first = attributes[:'first']
|
143
139
|
end
|
144
140
|
|
141
|
+
if attributes.key?(:'number_of_elements')
|
142
|
+
self.number_of_elements = attributes[:'number_of_elements']
|
143
|
+
end
|
144
|
+
|
145
145
|
if attributes.key?(:'empty')
|
146
146
|
self.empty = attributes[:'empty']
|
147
147
|
end
|
@@ -168,14 +168,14 @@ module MailSlurpClient
|
|
168
168
|
content == o.content &&
|
169
169
|
pageable == o.pageable &&
|
170
170
|
total == o.total &&
|
171
|
-
total_elements == o.total_elements &&
|
172
|
-
total_pages == o.total_pages &&
|
173
171
|
last == o.last &&
|
172
|
+
total_pages == o.total_pages &&
|
173
|
+
total_elements == o.total_elements &&
|
174
174
|
size == o.size &&
|
175
175
|
number == o.number &&
|
176
176
|
sort == o.sort &&
|
177
|
-
number_of_elements == o.number_of_elements &&
|
178
177
|
first == o.first &&
|
178
|
+
number_of_elements == o.number_of_elements &&
|
179
179
|
empty == o.empty
|
180
180
|
end
|
181
181
|
|
@@ -188,7 +188,7 @@ module MailSlurpClient
|
|
188
188
|
# Calculates hash code according to all attributes.
|
189
189
|
# @return [Integer] Hash code
|
190
190
|
def hash
|
191
|
-
[content, pageable, total,
|
191
|
+
[content, pageable, total, last, total_pages, total_elements, size, number, sort, first, number_of_elements, empty].hash
|
192
192
|
end
|
193
193
|
|
194
194
|
# Builds the object from hash
|
@@ -21,11 +21,11 @@ module MailSlurpClient
|
|
21
21
|
|
22
22
|
attr_accessor :total
|
23
23
|
|
24
|
-
attr_accessor :
|
24
|
+
attr_accessor :last
|
25
25
|
|
26
26
|
attr_accessor :total_pages
|
27
27
|
|
28
|
-
attr_accessor :
|
28
|
+
attr_accessor :total_elements
|
29
29
|
|
30
30
|
attr_accessor :size
|
31
31
|
|
@@ -33,10 +33,10 @@ module MailSlurpClient
|
|
33
33
|
|
34
34
|
attr_accessor :sort
|
35
35
|
|
36
|
-
attr_accessor :number_of_elements
|
37
|
-
|
38
36
|
attr_accessor :first
|
39
37
|
|
38
|
+
attr_accessor :number_of_elements
|
39
|
+
|
40
40
|
attr_accessor :empty
|
41
41
|
|
42
42
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -45,14 +45,14 @@ module MailSlurpClient
|
|
45
45
|
:'content' => :'content',
|
46
46
|
:'pageable' => :'pageable',
|
47
47
|
:'total' => :'total',
|
48
|
-
:'total_elements' => :'totalElements',
|
49
|
-
:'total_pages' => :'totalPages',
|
50
48
|
:'last' => :'last',
|
49
|
+
:'total_pages' => :'totalPages',
|
50
|
+
:'total_elements' => :'totalElements',
|
51
51
|
:'size' => :'size',
|
52
52
|
:'number' => :'number',
|
53
53
|
:'sort' => :'sort',
|
54
|
-
:'number_of_elements' => :'numberOfElements',
|
55
54
|
:'first' => :'first',
|
55
|
+
:'number_of_elements' => :'numberOfElements',
|
56
56
|
:'empty' => :'empty'
|
57
57
|
}
|
58
58
|
end
|
@@ -63,14 +63,14 @@ module MailSlurpClient
|
|
63
63
|
:'content' => :'Array<WebhookResultDto>',
|
64
64
|
:'pageable' => :'PageableObject',
|
65
65
|
:'total' => :'Integer',
|
66
|
-
:'total_elements' => :'Integer',
|
67
|
-
:'total_pages' => :'Integer',
|
68
66
|
:'last' => :'Boolean',
|
67
|
+
:'total_pages' => :'Integer',
|
68
|
+
:'total_elements' => :'Integer',
|
69
69
|
:'size' => :'Integer',
|
70
70
|
:'number' => :'Integer',
|
71
71
|
:'sort' => :'Sort',
|
72
|
-
:'number_of_elements' => :'Integer',
|
73
72
|
:'first' => :'Boolean',
|
73
|
+
:'number_of_elements' => :'Integer',
|
74
74
|
:'empty' => :'Boolean'
|
75
75
|
}
|
76
76
|
end
|
@@ -110,16 +110,16 @@ module MailSlurpClient
|
|
110
110
|
self.total = attributes[:'total']
|
111
111
|
end
|
112
112
|
|
113
|
-
if attributes.key?(:'
|
114
|
-
self.
|
113
|
+
if attributes.key?(:'last')
|
114
|
+
self.last = attributes[:'last']
|
115
115
|
end
|
116
116
|
|
117
117
|
if attributes.key?(:'total_pages')
|
118
118
|
self.total_pages = attributes[:'total_pages']
|
119
119
|
end
|
120
120
|
|
121
|
-
if attributes.key?(:'
|
122
|
-
self.
|
121
|
+
if attributes.key?(:'total_elements')
|
122
|
+
self.total_elements = attributes[:'total_elements']
|
123
123
|
end
|
124
124
|
|
125
125
|
if attributes.key?(:'size')
|
@@ -134,14 +134,14 @@ module MailSlurpClient
|
|
134
134
|
self.sort = attributes[:'sort']
|
135
135
|
end
|
136
136
|
|
137
|
-
if attributes.key?(:'number_of_elements')
|
138
|
-
self.number_of_elements = attributes[:'number_of_elements']
|
139
|
-
end
|
140
|
-
|
141
137
|
if attributes.key?(:'first')
|
142
138
|
self.first = attributes[:'first']
|
143
139
|
end
|
144
140
|
|
141
|
+
if attributes.key?(:'number_of_elements')
|
142
|
+
self.number_of_elements = attributes[:'number_of_elements']
|
143
|
+
end
|
144
|
+
|
145
145
|
if attributes.key?(:'empty')
|
146
146
|
self.empty = attributes[:'empty']
|
147
147
|
end
|
@@ -168,14 +168,14 @@ module MailSlurpClient
|
|
168
168
|
content == o.content &&
|
169
169
|
pageable == o.pageable &&
|
170
170
|
total == o.total &&
|
171
|
-
total_elements == o.total_elements &&
|
172
|
-
total_pages == o.total_pages &&
|
173
171
|
last == o.last &&
|
172
|
+
total_pages == o.total_pages &&
|
173
|
+
total_elements == o.total_elements &&
|
174
174
|
size == o.size &&
|
175
175
|
number == o.number &&
|
176
176
|
sort == o.sort &&
|
177
|
-
number_of_elements == o.number_of_elements &&
|
178
177
|
first == o.first &&
|
178
|
+
number_of_elements == o.number_of_elements &&
|
179
179
|
empty == o.empty
|
180
180
|
end
|
181
181
|
|
@@ -188,7 +188,7 @@ module MailSlurpClient
|
|
188
188
|
# Calculates hash code according to all attributes.
|
189
189
|
# @return [Integer] Hash code
|
190
190
|
def hash
|
191
|
-
[content, pageable, total,
|
191
|
+
[content, pageable, total, last, total_pages, total_elements, size, number, sort, first, number_of_elements, empty].hash
|
192
192
|
end
|
193
193
|
|
194
194
|
# Builds the object from hash
|
@@ -23,6 +23,8 @@ module MailSlurpClient
|
|
23
23
|
|
24
24
|
attr_accessor :subject
|
25
25
|
|
26
|
+
attr_accessor :created_at
|
27
|
+
|
26
28
|
attr_accessor :body_md5_hash
|
27
29
|
|
28
30
|
attr_accessor :bcc
|
@@ -37,8 +39,6 @@ module MailSlurpClient
|
|
37
39
|
|
38
40
|
attr_accessor :to
|
39
41
|
|
40
|
-
attr_accessor :created_at
|
41
|
-
|
42
42
|
# Attribute mapping from ruby-style variable name to JSON key.
|
43
43
|
def self.attribute_map
|
44
44
|
{
|
@@ -46,14 +46,14 @@ module MailSlurpClient
|
|
46
46
|
:'from' => :'from',
|
47
47
|
:'user_id' => :'userId',
|
48
48
|
:'subject' => :'subject',
|
49
|
+
:'created_at' => :'createdAt',
|
49
50
|
:'body_md5_hash' => :'bodyMD5Hash',
|
50
51
|
:'bcc' => :'bcc',
|
51
52
|
:'cc' => :'cc',
|
52
53
|
:'virtual_send' => :'virtualSend',
|
53
54
|
:'inbox_id' => :'inboxId',
|
54
55
|
:'attachments' => :'attachments',
|
55
|
-
:'to' => :'to'
|
56
|
-
:'created_at' => :'createdAt'
|
56
|
+
:'to' => :'to'
|
57
57
|
}
|
58
58
|
end
|
59
59
|
|
@@ -64,14 +64,14 @@ module MailSlurpClient
|
|
64
64
|
:'from' => :'String',
|
65
65
|
:'user_id' => :'String',
|
66
66
|
:'subject' => :'String',
|
67
|
+
:'created_at' => :'DateTime',
|
67
68
|
:'body_md5_hash' => :'String',
|
68
69
|
:'bcc' => :'Array<String>',
|
69
70
|
:'cc' => :'Array<String>',
|
70
71
|
:'virtual_send' => :'Boolean',
|
71
72
|
:'inbox_id' => :'String',
|
72
73
|
:'attachments' => :'Array<String>',
|
73
|
-
:'to' => :'Array<String>'
|
74
|
-
:'created_at' => :'DateTime'
|
74
|
+
:'to' => :'Array<String>'
|
75
75
|
}
|
76
76
|
end
|
77
77
|
|
@@ -112,6 +112,10 @@ module MailSlurpClient
|
|
112
112
|
self.subject = attributes[:'subject']
|
113
113
|
end
|
114
114
|
|
115
|
+
if attributes.key?(:'created_at')
|
116
|
+
self.created_at = attributes[:'created_at']
|
117
|
+
end
|
118
|
+
|
115
119
|
if attributes.key?(:'body_md5_hash')
|
116
120
|
self.body_md5_hash = attributes[:'body_md5_hash']
|
117
121
|
end
|
@@ -147,10 +151,6 @@ module MailSlurpClient
|
|
147
151
|
self.to = value
|
148
152
|
end
|
149
153
|
end
|
150
|
-
|
151
|
-
if attributes.key?(:'created_at')
|
152
|
-
self.created_at = attributes[:'created_at']
|
153
|
-
end
|
154
154
|
end
|
155
155
|
|
156
156
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -165,6 +165,10 @@ module MailSlurpClient
|
|
165
165
|
invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
|
166
166
|
end
|
167
167
|
|
168
|
+
if @created_at.nil?
|
169
|
+
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
170
|
+
end
|
171
|
+
|
168
172
|
if @bcc.nil?
|
169
173
|
invalid_properties.push('invalid value for "bcc", bcc cannot be nil.')
|
170
174
|
end
|
@@ -189,10 +193,6 @@ module MailSlurpClient
|
|
189
193
|
invalid_properties.push('invalid value for "to", to cannot be nil.')
|
190
194
|
end
|
191
195
|
|
192
|
-
if @created_at.nil?
|
193
|
-
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
194
|
-
end
|
195
|
-
|
196
196
|
invalid_properties
|
197
197
|
end
|
198
198
|
|
@@ -201,13 +201,13 @@ 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 @created_at.nil?
|
204
205
|
return false if @bcc.nil?
|
205
206
|
return false if @cc.nil?
|
206
207
|
return false if @virtual_send.nil?
|
207
208
|
return false if @inbox_id.nil?
|
208
209
|
return false if @attachments.nil?
|
209
210
|
return false if @to.nil?
|
210
|
-
return false if @created_at.nil?
|
211
211
|
true
|
212
212
|
end
|
213
213
|
|
@@ -220,14 +220,14 @@ module MailSlurpClient
|
|
220
220
|
from == o.from &&
|
221
221
|
user_id == o.user_id &&
|
222
222
|
subject == o.subject &&
|
223
|
+
created_at == o.created_at &&
|
223
224
|
body_md5_hash == o.body_md5_hash &&
|
224
225
|
bcc == o.bcc &&
|
225
226
|
cc == o.cc &&
|
226
227
|
virtual_send == o.virtual_send &&
|
227
228
|
inbox_id == o.inbox_id &&
|
228
229
|
attachments == o.attachments &&
|
229
|
-
to == o.to
|
230
|
-
created_at == o.created_at
|
230
|
+
to == o.to
|
231
231
|
end
|
232
232
|
|
233
233
|
# @see the `==` method
|
@@ -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, body_md5_hash, bcc, cc, virtual_send, inbox_id, attachments, to
|
242
|
+
[id, from, user_id, subject, created_at, body_md5_hash, bcc, cc, virtual_send, inbox_id, attachments, to].hash
|
243
243
|
end
|
244
244
|
|
245
245
|
# Builds the object from hash
|
@@ -21,14 +21,14 @@ module MailSlurpClient
|
|
21
21
|
# ID of email thread
|
22
22
|
attr_accessor :id
|
23
23
|
|
24
|
-
#
|
25
|
-
attr_accessor :
|
24
|
+
# User ID
|
25
|
+
attr_accessor :user_id
|
26
26
|
|
27
27
|
# Inbox ID
|
28
28
|
attr_accessor :inbox_id
|
29
29
|
|
30
|
-
#
|
31
|
-
attr_accessor :
|
30
|
+
# Thread subject
|
31
|
+
attr_accessor :subject
|
32
32
|
|
33
33
|
# To recipients
|
34
34
|
attr_accessor :to
|
@@ -53,9 +53,9 @@ module MailSlurpClient
|
|
53
53
|
{
|
54
54
|
:'name' => :'name',
|
55
55
|
:'id' => :'id',
|
56
|
-
:'subject' => :'subject',
|
57
|
-
:'inbox_id' => :'inboxId',
|
58
56
|
:'user_id' => :'userId',
|
57
|
+
:'inbox_id' => :'inboxId',
|
58
|
+
:'subject' => :'subject',
|
59
59
|
:'to' => :'to',
|
60
60
|
:'created_at' => :'createdAt',
|
61
61
|
:'updated_at' => :'updatedAt',
|
@@ -70,9 +70,9 @@ module MailSlurpClient
|
|
70
70
|
{
|
71
71
|
:'name' => :'String',
|
72
72
|
:'id' => :'String',
|
73
|
-
:'subject' => :'String',
|
74
|
-
:'inbox_id' => :'String',
|
75
73
|
:'user_id' => :'String',
|
74
|
+
:'inbox_id' => :'String',
|
75
|
+
:'subject' => :'String',
|
76
76
|
:'to' => :'Array<String>',
|
77
77
|
:'created_at' => :'DateTime',
|
78
78
|
:'updated_at' => :'DateTime',
|
@@ -111,16 +111,16 @@ module MailSlurpClient
|
|
111
111
|
self.id = attributes[:'id']
|
112
112
|
end
|
113
113
|
|
114
|
-
if attributes.key?(:'
|
115
|
-
self.
|
114
|
+
if attributes.key?(:'user_id')
|
115
|
+
self.user_id = attributes[:'user_id']
|
116
116
|
end
|
117
117
|
|
118
118
|
if attributes.key?(:'inbox_id')
|
119
119
|
self.inbox_id = attributes[:'inbox_id']
|
120
120
|
end
|
121
121
|
|
122
|
-
if attributes.key?(:'
|
123
|
-
self.
|
122
|
+
if attributes.key?(:'subject')
|
123
|
+
self.subject = attributes[:'subject']
|
124
124
|
end
|
125
125
|
|
126
126
|
if attributes.key?(:'to')
|
@@ -162,14 +162,14 @@ module MailSlurpClient
|
|
162
162
|
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
163
163
|
end
|
164
164
|
|
165
|
-
if @inbox_id.nil?
|
166
|
-
invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
|
167
|
-
end
|
168
|
-
|
169
165
|
if @user_id.nil?
|
170
166
|
invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
|
171
167
|
end
|
172
168
|
|
169
|
+
if @inbox_id.nil?
|
170
|
+
invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
|
171
|
+
end
|
172
|
+
|
173
173
|
if @to.nil?
|
174
174
|
invalid_properties.push('invalid value for "to", to cannot be nil.')
|
175
175
|
end
|
@@ -193,8 +193,8 @@ module MailSlurpClient
|
|
193
193
|
# @return true if the model is valid
|
194
194
|
def valid?
|
195
195
|
return false if @id.nil?
|
196
|
-
return false if @inbox_id.nil?
|
197
196
|
return false if @user_id.nil?
|
197
|
+
return false if @inbox_id.nil?
|
198
198
|
return false if @to.nil?
|
199
199
|
return false if @created_at.nil?
|
200
200
|
return false if @updated_at.nil?
|
@@ -209,9 +209,9 @@ module MailSlurpClient
|
|
209
209
|
self.class == o.class &&
|
210
210
|
name == o.name &&
|
211
211
|
id == o.id &&
|
212
|
-
subject == o.subject &&
|
213
|
-
inbox_id == o.inbox_id &&
|
214
212
|
user_id == o.user_id &&
|
213
|
+
inbox_id == o.inbox_id &&
|
214
|
+
subject == o.subject &&
|
215
215
|
to == o.to &&
|
216
216
|
created_at == o.created_at &&
|
217
217
|
updated_at == o.updated_at &&
|
@@ -229,7 +229,7 @@ module MailSlurpClient
|
|
229
229
|
# Calculates hash code according to all attributes.
|
230
230
|
# @return [Integer] Hash code
|
231
231
|
def hash
|
232
|
-
[name, id,
|
232
|
+
[name, id, user_id, inbox_id, subject, to, created_at, updated_at, bcc, cc, alias_id].hash
|
233
233
|
end
|
234
234
|
|
235
235
|
# Builds the object from hash
|