mailslurp_client 15.8.1 → 15.11.1
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 +4 -4
- data/lib/mailslurp_client/api/email_controller_api.rb +68 -3
- data/lib/mailslurp_client/api/form_controller_api.rb +2 -2
- data/lib/mailslurp_client/api/inbox_controller_api.rb +75 -0
- data/lib/mailslurp_client/api/missed_email_controller_api.rb +56 -0
- data/lib/mailslurp_client/api/phone_controller_api.rb +487 -0
- data/lib/mailslurp_client/api/sent_emails_controller_api.rb +73 -0
- data/lib/mailslurp_client/api/sms_controller_api.rb +286 -0
- data/lib/mailslurp_client/api/wait_for_controller_api.rb +64 -0
- data/lib/mailslurp_client/api/webhook_controller_api.rb +2 -2
- data/lib/mailslurp_client/configuration.rb +2 -2
- data/lib/mailslurp_client/models/abstract_webhook_payload.rb +2 -2
- data/lib/mailslurp_client/models/alias_projection.rb +31 -31
- data/lib/mailslurp_client/models/attachment_entity.rb +10 -1
- data/lib/mailslurp_client/models/attachment_projection.rb +14 -14
- data/lib/mailslurp_client/models/contact_projection.rb +18 -13
- data/lib/mailslurp_client/models/create_emergency_address_options.rb +324 -0
- data/lib/mailslurp_client/models/create_webhook_options.rb +3 -3
- data/lib/mailslurp_client/models/email_html_dto.rb +215 -0
- data/lib/mailslurp_client/models/email_preview.rb +5 -0
- data/lib/mailslurp_client/models/email_projection.rb +20 -10
- data/lib/mailslurp_client/models/emergency_address.rb +408 -0
- data/lib/mailslurp_client/models/emergency_address_dto.rb +273 -0
- data/lib/mailslurp_client/models/empty_response_dto.rb +206 -0
- data/lib/mailslurp_client/models/expired_inbox_record_projection.rb +15 -15
- data/lib/mailslurp_client/models/inbox_preview.rb +5 -0
- data/lib/mailslurp_client/models/missed_email.rb +37 -1
- data/lib/mailslurp_client/models/organization_inbox_projection.rb +5 -0
- data/lib/mailslurp_client/models/page_alias.rb +19 -19
- data/lib/mailslurp_client/models/page_attachment_entity.rb +19 -19
- data/lib/mailslurp_client/models/page_bounced_email.rb +19 -19
- data/lib/mailslurp_client/models/page_bounced_recipients.rb +19 -19
- data/lib/mailslurp_client/models/page_contact_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_email_preview.rb +19 -19
- data/lib/mailslurp_client/models/page_email_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_email_validation_request.rb +19 -19
- data/lib/mailslurp_client/models/page_expired_inbox_record_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_group_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_inbox_forwarder_dto.rb +19 -19
- data/lib/mailslurp_client/models/page_inbox_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_inbox_ruleset_dto.rb +19 -19
- data/lib/mailslurp_client/models/page_missed_email_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_organization_inbox_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_phone_number_projection.rb +308 -0
- data/lib/mailslurp_client/models/page_sent_email_with_queue_projection.rb +344 -0
- data/lib/mailslurp_client/models/page_sms_projection.rb +308 -0
- data/lib/mailslurp_client/models/page_template_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_thread_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_tracking_pixel_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_unknown_missed_email_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_webhook_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_webhook_result.rb +19 -19
- data/lib/mailslurp_client/models/phone_number_dto.rb +347 -0
- data/lib/mailslurp_client/models/phone_number_projection.rb +302 -0
- data/lib/mailslurp_client/models/phone_plan_dto.rb +287 -0
- data/lib/mailslurp_client/models/send_with_queue_result.rb +318 -0
- data/lib/mailslurp_client/models/sent_email_projection.rb +32 -27
- data/lib/mailslurp_client/models/sms_match_option.rb +289 -0
- data/lib/mailslurp_client/models/sms_message.rb +318 -0
- data/lib/mailslurp_client/models/sms_preview.rb +267 -0
- data/lib/mailslurp_client/models/sms_projection.rb +282 -0
- 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_projection.rb +10 -10
- data/lib/mailslurp_client/models/wait_for_sms_conditions.rb +371 -0
- data/lib/mailslurp_client/models/webhook_bounce_payload.rb +2 -2
- data/lib/mailslurp_client/models/webhook_bounce_recipient_payload.rb +2 -2
- data/lib/mailslurp_client/models/webhook_dto.rb +3 -3
- data/lib/mailslurp_client/models/webhook_email_opened_payload.rb +2 -2
- data/lib/mailslurp_client/models/webhook_email_read_payload.rb +2 -2
- data/lib/mailslurp_client/models/webhook_new_attachment_payload.rb +2 -2
- data/lib/mailslurp_client/models/webhook_new_contact_payload.rb +7 -2
- data/lib/mailslurp_client/models/webhook_new_email_payload.rb +2 -2
- data/lib/mailslurp_client/models/webhook_projection.rb +2 -2
- data/lib/mailslurp_client/models/webhook_result_dto.rb +7 -2
- data/lib/mailslurp_client/version.rb +1 -1
- data/lib/mailslurp_client.rb +19 -0
- metadata +21 -2
@@ -0,0 +1,206 @@
|
|
1
|
+
=begin
|
2
|
+
#MailSlurp API
|
3
|
+
|
4
|
+
#MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 6.5.2
|
7
|
+
Contact: contact@mailslurp.dev
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 4.3.1
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
|
15
|
+
module MailSlurpClient
|
16
|
+
class EmptyResponseDto
|
17
|
+
attr_accessor :message
|
18
|
+
|
19
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
20
|
+
def self.attribute_map
|
21
|
+
{
|
22
|
+
:'message' => :'message'
|
23
|
+
}
|
24
|
+
end
|
25
|
+
|
26
|
+
# Attribute type mapping.
|
27
|
+
def self.openapi_types
|
28
|
+
{
|
29
|
+
:'message' => :'String'
|
30
|
+
}
|
31
|
+
end
|
32
|
+
|
33
|
+
# List of attributes with nullable: true
|
34
|
+
def self.openapi_nullable
|
35
|
+
Set.new([
|
36
|
+
])
|
37
|
+
end
|
38
|
+
|
39
|
+
# Initializes the object
|
40
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
41
|
+
def initialize(attributes = {})
|
42
|
+
if (!attributes.is_a?(Hash))
|
43
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `MailSlurpClient::EmptyResponseDto` initialize method"
|
44
|
+
end
|
45
|
+
|
46
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
47
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
48
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
49
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `MailSlurpClient::EmptyResponseDto`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
50
|
+
end
|
51
|
+
h[k.to_sym] = v
|
52
|
+
}
|
53
|
+
|
54
|
+
if attributes.key?(:'message')
|
55
|
+
self.message = attributes[:'message']
|
56
|
+
end
|
57
|
+
end
|
58
|
+
|
59
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
60
|
+
# @return Array for valid properties with the reasons
|
61
|
+
def list_invalid_properties
|
62
|
+
invalid_properties = Array.new
|
63
|
+
invalid_properties
|
64
|
+
end
|
65
|
+
|
66
|
+
# Check to see if the all the properties in the model are valid
|
67
|
+
# @return true if the model is valid
|
68
|
+
def valid?
|
69
|
+
true
|
70
|
+
end
|
71
|
+
|
72
|
+
# Checks equality by comparing each attribute.
|
73
|
+
# @param [Object] Object to be compared
|
74
|
+
def ==(o)
|
75
|
+
return true if self.equal?(o)
|
76
|
+
self.class == o.class &&
|
77
|
+
message == o.message
|
78
|
+
end
|
79
|
+
|
80
|
+
# @see the `==` method
|
81
|
+
# @param [Object] Object to be compared
|
82
|
+
def eql?(o)
|
83
|
+
self == o
|
84
|
+
end
|
85
|
+
|
86
|
+
# Calculates hash code according to all attributes.
|
87
|
+
# @return [Integer] Hash code
|
88
|
+
def hash
|
89
|
+
[message].hash
|
90
|
+
end
|
91
|
+
|
92
|
+
# Builds the object from hash
|
93
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
94
|
+
# @return [Object] Returns the model itself
|
95
|
+
def self.build_from_hash(attributes)
|
96
|
+
new.build_from_hash(attributes)
|
97
|
+
end
|
98
|
+
|
99
|
+
# Builds the object from hash
|
100
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
101
|
+
# @return [Object] Returns the model itself
|
102
|
+
def build_from_hash(attributes)
|
103
|
+
return nil unless attributes.is_a?(Hash)
|
104
|
+
self.class.openapi_types.each_pair do |key, type|
|
105
|
+
if type =~ /\AArray<(.*)>/i
|
106
|
+
# check to ensure the input is an array given that the attribute
|
107
|
+
# is documented as an array but the input is not
|
108
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
109
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
110
|
+
end
|
111
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
112
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
113
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
114
|
+
end
|
115
|
+
|
116
|
+
self
|
117
|
+
end
|
118
|
+
|
119
|
+
# Deserializes the data based on type
|
120
|
+
# @param string type Data type
|
121
|
+
# @param string value Value to be deserialized
|
122
|
+
# @return [Object] Deserialized data
|
123
|
+
def _deserialize(type, value)
|
124
|
+
case type.to_sym
|
125
|
+
when :DateTime
|
126
|
+
DateTime.parse(value)
|
127
|
+
when :Date
|
128
|
+
Date.parse(value)
|
129
|
+
when :String
|
130
|
+
value.to_s
|
131
|
+
when :Integer
|
132
|
+
value.to_i
|
133
|
+
when :Float
|
134
|
+
value.to_f
|
135
|
+
when :Boolean
|
136
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
137
|
+
true
|
138
|
+
else
|
139
|
+
false
|
140
|
+
end
|
141
|
+
when :Object
|
142
|
+
# generic object (usually a Hash), return directly
|
143
|
+
value
|
144
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
145
|
+
inner_type = Regexp.last_match[:inner_type]
|
146
|
+
value.map { |v| _deserialize(inner_type, v) }
|
147
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
148
|
+
k_type = Regexp.last_match[:k_type]
|
149
|
+
v_type = Regexp.last_match[:v_type]
|
150
|
+
{}.tap do |hash|
|
151
|
+
value.each do |k, v|
|
152
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
153
|
+
end
|
154
|
+
end
|
155
|
+
else # model
|
156
|
+
MailSlurpClient.const_get(type).build_from_hash(value)
|
157
|
+
end
|
158
|
+
end
|
159
|
+
|
160
|
+
# Returns the string representation of the object
|
161
|
+
# @return [String] String presentation of the object
|
162
|
+
def to_s
|
163
|
+
to_hash.to_s
|
164
|
+
end
|
165
|
+
|
166
|
+
# to_body is an alias to to_hash (backward compatibility)
|
167
|
+
# @return [Hash] Returns the object in the form of hash
|
168
|
+
def to_body
|
169
|
+
to_hash
|
170
|
+
end
|
171
|
+
|
172
|
+
# Returns the object in the form of hash
|
173
|
+
# @return [Hash] Returns the object in the form of hash
|
174
|
+
def to_hash
|
175
|
+
hash = {}
|
176
|
+
self.class.attribute_map.each_pair do |attr, param|
|
177
|
+
value = self.send(attr)
|
178
|
+
if value.nil?
|
179
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
180
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
181
|
+
end
|
182
|
+
|
183
|
+
hash[param] = _to_hash(value)
|
184
|
+
end
|
185
|
+
hash
|
186
|
+
end
|
187
|
+
|
188
|
+
# Outputs non-array value in the form of hash
|
189
|
+
# For object, use to_hash. Otherwise, just return the value
|
190
|
+
# @param [Object] value Any valid value
|
191
|
+
# @return [Hash] Returns the value in the form of hash
|
192
|
+
def _to_hash(value)
|
193
|
+
if value.is_a?(Array)
|
194
|
+
value.compact.map { |v| _to_hash(v) }
|
195
|
+
elsif value.is_a?(Hash)
|
196
|
+
{}.tap do |hash|
|
197
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
198
|
+
end
|
199
|
+
elsif value.respond_to? :to_hash
|
200
|
+
value.to_hash
|
201
|
+
else
|
202
|
+
value
|
203
|
+
end
|
204
|
+
end
|
205
|
+
end
|
206
|
+
end
|
@@ -17,18 +17,18 @@ module MailSlurpClient
|
|
17
17
|
class ExpiredInboxRecordProjection
|
18
18
|
attr_accessor :id
|
19
19
|
|
20
|
-
attr_accessor :email_address
|
21
|
-
|
22
20
|
attr_accessor :user_id
|
23
21
|
|
22
|
+
attr_accessor :email_address
|
23
|
+
|
24
24
|
attr_accessor :created_at
|
25
25
|
|
26
26
|
# Attribute mapping from ruby-style variable name to JSON key.
|
27
27
|
def self.attribute_map
|
28
28
|
{
|
29
29
|
:'id' => :'id',
|
30
|
-
:'email_address' => :'emailAddress',
|
31
30
|
:'user_id' => :'userId',
|
31
|
+
:'email_address' => :'emailAddress',
|
32
32
|
:'created_at' => :'createdAt'
|
33
33
|
}
|
34
34
|
end
|
@@ -37,8 +37,8 @@ module MailSlurpClient
|
|
37
37
|
def self.openapi_types
|
38
38
|
{
|
39
39
|
:'id' => :'String',
|
40
|
-
:'email_address' => :'String',
|
41
40
|
:'user_id' => :'String',
|
41
|
+
:'email_address' => :'String',
|
42
42
|
:'created_at' => :'DateTime'
|
43
43
|
}
|
44
44
|
end
|
@@ -68,14 +68,14 @@ module MailSlurpClient
|
|
68
68
|
self.id = attributes[:'id']
|
69
69
|
end
|
70
70
|
|
71
|
-
if attributes.key?(:'email_address')
|
72
|
-
self.email_address = attributes[:'email_address']
|
73
|
-
end
|
74
|
-
|
75
71
|
if attributes.key?(:'user_id')
|
76
72
|
self.user_id = attributes[:'user_id']
|
77
73
|
end
|
78
74
|
|
75
|
+
if attributes.key?(:'email_address')
|
76
|
+
self.email_address = attributes[:'email_address']
|
77
|
+
end
|
78
|
+
|
79
79
|
if attributes.key?(:'created_at')
|
80
80
|
self.created_at = attributes[:'created_at']
|
81
81
|
end
|
@@ -89,14 +89,14 @@ module MailSlurpClient
|
|
89
89
|
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
90
90
|
end
|
91
91
|
|
92
|
-
if @email_address.nil?
|
93
|
-
invalid_properties.push('invalid value for "email_address", email_address cannot be nil.')
|
94
|
-
end
|
95
|
-
|
96
92
|
if @user_id.nil?
|
97
93
|
invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
|
98
94
|
end
|
99
95
|
|
96
|
+
if @email_address.nil?
|
97
|
+
invalid_properties.push('invalid value for "email_address", email_address cannot be nil.')
|
98
|
+
end
|
99
|
+
|
100
100
|
if @created_at.nil?
|
101
101
|
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
102
102
|
end
|
@@ -108,8 +108,8 @@ module MailSlurpClient
|
|
108
108
|
# @return true if the model is valid
|
109
109
|
def valid?
|
110
110
|
return false if @id.nil?
|
111
|
-
return false if @email_address.nil?
|
112
111
|
return false if @user_id.nil?
|
112
|
+
return false if @email_address.nil?
|
113
113
|
return false if @created_at.nil?
|
114
114
|
true
|
115
115
|
end
|
@@ -120,8 +120,8 @@ module MailSlurpClient
|
|
120
120
|
return true if self.equal?(o)
|
121
121
|
self.class == o.class &&
|
122
122
|
id == o.id &&
|
123
|
-
email_address == o.email_address &&
|
124
123
|
user_id == o.user_id &&
|
124
|
+
email_address == o.email_address &&
|
125
125
|
created_at == o.created_at
|
126
126
|
end
|
127
127
|
|
@@ -134,7 +134,7 @@ module MailSlurpClient
|
|
134
134
|
# Calculates hash code according to all attributes.
|
135
135
|
# @return [Integer] Hash code
|
136
136
|
def hash
|
137
|
-
[id,
|
137
|
+
[id, user_id, email_address, created_at].hash
|
138
138
|
end
|
139
139
|
|
140
140
|
# Builds the object from hash
|
@@ -183,6 +183,10 @@ module MailSlurpClient
|
|
183
183
|
invalid_properties.push('invalid value for "team_access", team_access cannot be nil.')
|
184
184
|
end
|
185
185
|
|
186
|
+
if @virtual_inbox.nil?
|
187
|
+
invalid_properties.push('invalid value for "virtual_inbox", virtual_inbox cannot be nil.')
|
188
|
+
end
|
189
|
+
|
186
190
|
invalid_properties
|
187
191
|
end
|
188
192
|
|
@@ -195,6 +199,7 @@ module MailSlurpClient
|
|
195
199
|
return false if @team_access.nil?
|
196
200
|
inbox_type_validator = EnumAttributeValidator.new('String', ["HTTP_INBOX", "SMTP_INBOX"])
|
197
201
|
return false unless inbox_type_validator.valid?(@inbox_type)
|
202
|
+
return false if @virtual_inbox.nil?
|
198
203
|
true
|
199
204
|
end
|
200
205
|
|
@@ -27,6 +27,14 @@ module MailSlurpClient
|
|
27
27
|
|
28
28
|
attr_accessor :from
|
29
29
|
|
30
|
+
attr_accessor :raw_url
|
31
|
+
|
32
|
+
attr_accessor :raw_key
|
33
|
+
|
34
|
+
attr_accessor :raw_bucket
|
35
|
+
|
36
|
+
attr_accessor :can_restore
|
37
|
+
|
30
38
|
attr_accessor :to
|
31
39
|
|
32
40
|
attr_accessor :cc
|
@@ -48,6 +56,10 @@ module MailSlurpClient
|
|
48
56
|
:'body_excerpt' => :'bodyExcerpt',
|
49
57
|
:'attachment_count' => :'attachmentCount',
|
50
58
|
:'from' => :'from',
|
59
|
+
:'raw_url' => :'rawUrl',
|
60
|
+
:'raw_key' => :'rawKey',
|
61
|
+
:'raw_bucket' => :'rawBucket',
|
62
|
+
:'can_restore' => :'canRestore',
|
51
63
|
:'to' => :'to',
|
52
64
|
:'cc' => :'cc',
|
53
65
|
:'bcc' => :'bcc',
|
@@ -66,6 +78,10 @@ module MailSlurpClient
|
|
66
78
|
:'body_excerpt' => :'String',
|
67
79
|
:'attachment_count' => :'Integer',
|
68
80
|
:'from' => :'String',
|
81
|
+
:'raw_url' => :'String',
|
82
|
+
:'raw_key' => :'String',
|
83
|
+
:'raw_bucket' => :'String',
|
84
|
+
:'can_restore' => :'Boolean',
|
69
85
|
:'to' => :'Array<String>',
|
70
86
|
:'cc' => :'Array<String>',
|
71
87
|
:'bcc' => :'Array<String>',
|
@@ -120,6 +136,22 @@ module MailSlurpClient
|
|
120
136
|
self.from = attributes[:'from']
|
121
137
|
end
|
122
138
|
|
139
|
+
if attributes.key?(:'raw_url')
|
140
|
+
self.raw_url = attributes[:'raw_url']
|
141
|
+
end
|
142
|
+
|
143
|
+
if attributes.key?(:'raw_key')
|
144
|
+
self.raw_key = attributes[:'raw_key']
|
145
|
+
end
|
146
|
+
|
147
|
+
if attributes.key?(:'raw_bucket')
|
148
|
+
self.raw_bucket = attributes[:'raw_bucket']
|
149
|
+
end
|
150
|
+
|
151
|
+
if attributes.key?(:'can_restore')
|
152
|
+
self.can_restore = attributes[:'can_restore']
|
153
|
+
end
|
154
|
+
|
123
155
|
if attributes.key?(:'to')
|
124
156
|
if (value = attributes[:'to']).is_a?(Array)
|
125
157
|
self.to = value
|
@@ -212,6 +244,10 @@ module MailSlurpClient
|
|
212
244
|
body_excerpt == o.body_excerpt &&
|
213
245
|
attachment_count == o.attachment_count &&
|
214
246
|
from == o.from &&
|
247
|
+
raw_url == o.raw_url &&
|
248
|
+
raw_key == o.raw_key &&
|
249
|
+
raw_bucket == o.raw_bucket &&
|
250
|
+
can_restore == o.can_restore &&
|
215
251
|
to == o.to &&
|
216
252
|
cc == o.cc &&
|
217
253
|
bcc == o.bcc &&
|
@@ -229,7 +265,7 @@ module MailSlurpClient
|
|
229
265
|
# Calculates hash code according to all attributes.
|
230
266
|
# @return [Integer] Hash code
|
231
267
|
def hash
|
232
|
-
[id, user_id, subject, body_excerpt, attachment_count, from, to, cc, bcc, inbox_ids, created_at, updated_at].hash
|
268
|
+
[id, user_id, subject, body_excerpt, attachment_count, from, raw_url, raw_key, raw_bucket, can_restore, to, cc, bcc, inbox_ids, created_at, updated_at].hash
|
233
269
|
end
|
234
270
|
|
235
271
|
# Builds the object from hash
|
@@ -187,6 +187,10 @@ module MailSlurpClient
|
|
187
187
|
invalid_properties.push('invalid value for "read_only", read_only cannot be nil.')
|
188
188
|
end
|
189
189
|
|
190
|
+
if @virtual_inbox.nil?
|
191
|
+
invalid_properties.push('invalid value for "virtual_inbox", virtual_inbox cannot be nil.')
|
192
|
+
end
|
193
|
+
|
190
194
|
invalid_properties
|
191
195
|
end
|
192
196
|
|
@@ -200,6 +204,7 @@ module MailSlurpClient
|
|
200
204
|
inbox_type_validator = EnumAttributeValidator.new('String', ["HTTP_INBOX", "SMTP_INBOX"])
|
201
205
|
return false unless inbox_type_validator.valid?(@inbox_type)
|
202
206
|
return false if @read_only.nil?
|
207
|
+
return false if @virtual_inbox.nil?
|
203
208
|
true
|
204
209
|
end
|
205
210
|
|
@@ -21,22 +21,22 @@ module MailSlurpClient
|
|
21
21
|
|
22
22
|
attr_accessor :total
|
23
23
|
|
24
|
+
attr_accessor :last
|
25
|
+
|
24
26
|
attr_accessor :total_elements
|
25
27
|
|
26
28
|
attr_accessor :total_pages
|
27
29
|
|
28
|
-
attr_accessor :last
|
29
|
-
|
30
30
|
attr_accessor :size
|
31
31
|
|
32
32
|
attr_accessor :number
|
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
|
+
:'last' => :'last',
|
48
49
|
:'total_elements' => :'totalElements',
|
49
50
|
:'total_pages' => :'totalPages',
|
50
|
-
:'last' => :'last',
|
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<AliasProjection>',
|
64
64
|
:'pageable' => :'PageableObject',
|
65
65
|
:'total' => :'Integer',
|
66
|
+
:'last' => :'Boolean',
|
66
67
|
:'total_elements' => :'Integer',
|
67
68
|
:'total_pages' => :'Integer',
|
68
|
-
:'last' => :'Boolean',
|
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,6 +110,10 @@ module MailSlurpClient
|
|
110
110
|
self.total = attributes[:'total']
|
111
111
|
end
|
112
112
|
|
113
|
+
if attributes.key?(:'last')
|
114
|
+
self.last = attributes[:'last']
|
115
|
+
end
|
116
|
+
|
113
117
|
if attributes.key?(:'total_elements')
|
114
118
|
self.total_elements = attributes[:'total_elements']
|
115
119
|
end
|
@@ -118,10 +122,6 @@ module MailSlurpClient
|
|
118
122
|
self.total_pages = attributes[:'total_pages']
|
119
123
|
end
|
120
124
|
|
121
|
-
if attributes.key?(:'last')
|
122
|
-
self.last = attributes[:'last']
|
123
|
-
end
|
124
|
-
|
125
125
|
if attributes.key?(:'size')
|
126
126
|
self.size = attributes[:'size']
|
127
127
|
end
|
@@ -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
|
+
last == o.last &&
|
171
172
|
total_elements == o.total_elements &&
|
172
173
|
total_pages == o.total_pages &&
|
173
|
-
last == o.last &&
|
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, total_elements, total_pages,
|
191
|
+
[content, pageable, total, last, total_elements, total_pages, size, number, sort, first, number_of_elements, empty].hash
|
192
192
|
end
|
193
193
|
|
194
194
|
# Builds the object from hash
|
@@ -21,22 +21,22 @@ module MailSlurpClient
|
|
21
21
|
|
22
22
|
attr_accessor :total
|
23
23
|
|
24
|
+
attr_accessor :last
|
25
|
+
|
24
26
|
attr_accessor :total_elements
|
25
27
|
|
26
28
|
attr_accessor :total_pages
|
27
29
|
|
28
|
-
attr_accessor :last
|
29
|
-
|
30
30
|
attr_accessor :size
|
31
31
|
|
32
32
|
attr_accessor :number
|
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
|
+
:'last' => :'last',
|
48
49
|
:'total_elements' => :'totalElements',
|
49
50
|
:'total_pages' => :'totalPages',
|
50
|
-
:'last' => :'last',
|
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<AttachmentProjection>',
|
64
64
|
:'pageable' => :'PageableObject',
|
65
65
|
:'total' => :'Integer',
|
66
|
+
:'last' => :'Boolean',
|
66
67
|
:'total_elements' => :'Integer',
|
67
68
|
:'total_pages' => :'Integer',
|
68
|
-
:'last' => :'Boolean',
|
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,6 +110,10 @@ module MailSlurpClient
|
|
110
110
|
self.total = attributes[:'total']
|
111
111
|
end
|
112
112
|
|
113
|
+
if attributes.key?(:'last')
|
114
|
+
self.last = attributes[:'last']
|
115
|
+
end
|
116
|
+
|
113
117
|
if attributes.key?(:'total_elements')
|
114
118
|
self.total_elements = attributes[:'total_elements']
|
115
119
|
end
|
@@ -118,10 +122,6 @@ module MailSlurpClient
|
|
118
122
|
self.total_pages = attributes[:'total_pages']
|
119
123
|
end
|
120
124
|
|
121
|
-
if attributes.key?(:'last')
|
122
|
-
self.last = attributes[:'last']
|
123
|
-
end
|
124
|
-
|
125
125
|
if attributes.key?(:'size')
|
126
126
|
self.size = attributes[:'size']
|
127
127
|
end
|
@@ -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
|
+
last == o.last &&
|
171
172
|
total_elements == o.total_elements &&
|
172
173
|
total_pages == o.total_pages &&
|
173
|
-
last == o.last &&
|
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, total_elements, total_pages,
|
191
|
+
[content, pageable, total, last, total_elements, total_pages, size, number, sort, first, number_of_elements, empty].hash
|
192
192
|
end
|
193
193
|
|
194
194
|
# Builds the object from hash
|