mailslurp_client 15.20.0 → 15.21.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/mailslurp_client/api/attachment_controller_api.rb +6 -0
- data/lib/mailslurp_client/api/bounce_controller_api.rb +79 -0
- data/lib/mailslurp_client/api/inbox_controller_api.rb +56 -2
- data/lib/mailslurp_client/api/o_auth_connection_api.rb +170 -0
- data/lib/mailslurp_client/api/phone_controller_api.rb +269 -1
- data/lib/mailslurp_client/api/user_controller_api.rb +267 -0
- data/lib/mailslurp_client/models/alias_projection.rb +29 -29
- data/lib/mailslurp_client/models/alias_thread_projection.rb +39 -39
- data/lib/mailslurp_client/models/attachment_projection.rb +25 -25
- data/lib/mailslurp_client/models/bounce_projection.rb +22 -22
- data/lib/mailslurp_client/models/bounce_recipient_projection.rb +10 -10
- data/lib/mailslurp_client/models/connector_event_projection.rb +15 -15
- data/lib/mailslurp_client/models/connector_projection.rb +15 -15
- data/lib/mailslurp_client/models/contact_projection.rb +10 -10
- data/lib/mailslurp_client/models/create_emergency_address_options.rb +2 -2
- data/lib/mailslurp_client/models/create_o_auth_connection_result.rb +211 -0
- data/lib/mailslurp_client/models/create_o_auth_exchange_result.rb +229 -0
- data/lib/mailslurp_client/models/create_phone_number_options.rb +284 -0
- data/lib/mailslurp_client/models/domain_dto.rb +27 -1
- data/lib/mailslurp_client/models/email.rb +12 -1
- data/lib/mailslurp_client/models/email_preview.rb +15 -5
- data/lib/mailslurp_client/models/email_projection.rb +42 -32
- data/lib/mailslurp_client/models/email_thread_projection.rb +52 -52
- data/lib/mailslurp_client/models/emergency_address.rb +2 -2
- data/lib/mailslurp_client/models/emergency_address_dto.rb +2 -2
- data/lib/mailslurp_client/models/entity_automation_item_projection.rb +295 -0
- data/lib/mailslurp_client/models/entity_event_item_projection.rb +303 -0
- data/lib/mailslurp_client/models/entity_favourite_item_projection.rb +296 -0
- data/lib/mailslurp_client/models/expired_inbox_record_projection.rb +15 -15
- data/lib/mailslurp_client/models/guest_portal_user_projection.rb +39 -39
- data/lib/mailslurp_client/models/inbox_dto.rb +2 -2
- data/lib/mailslurp_client/models/inbox_forwarder_event_projection.rb +10 -10
- data/lib/mailslurp_client/models/inbox_preview.rb +2 -2
- data/lib/mailslurp_client/models/inbox_replier_event_projection.rb +10 -10
- data/lib/mailslurp_client/models/list_unsubscribe_recipient_projection.rb +15 -15
- data/lib/mailslurp_client/models/missed_email_projection.rb +14 -14
- data/lib/mailslurp_client/models/opt_in_identity_projection.rb +29 -29
- data/lib/mailslurp_client/models/organization_inbox_projection.rb +2 -2
- data/lib/mailslurp_client/models/page_entity_automation_items.rb +309 -0
- data/lib/mailslurp_client/models/page_entity_event_items.rb +309 -0
- data/lib/mailslurp_client/models/page_entity_favourite_items.rb +309 -0
- data/lib/mailslurp_client/models/page_phone_message_thread_item_projection.rb +309 -0
- data/lib/mailslurp_client/models/page_phone_message_thread_projection.rb +309 -0
- data/lib/mailslurp_client/models/page_reputation_items.rb +309 -0
- data/lib/mailslurp_client/models/phone_message_thread_item_projection.rb +315 -0
- data/lib/mailslurp_client/models/phone_message_thread_projection.rb +315 -0
- data/lib/mailslurp_client/models/phone_number_dto.rb +2 -2
- data/lib/mailslurp_client/models/phone_number_projection.rb +17 -17
- data/lib/mailslurp_client/models/phone_plan_availability_item.rb +2 -2
- data/lib/mailslurp_client/models/phone_plan_dto.rb +2 -2
- data/lib/mailslurp_client/models/plus_address_projection.rb +29 -29
- data/lib/mailslurp_client/models/reputation_item_projection.rb +317 -0
- data/lib/mailslurp_client/models/search_inboxes_options.rb +2 -2
- data/lib/mailslurp_client/models/sent_email_dto.rb +12 -1
- data/lib/mailslurp_client/models/sent_email_projection.rb +25 -25
- data/lib/mailslurp_client/models/sent_sms_projection.rb +15 -15
- data/lib/mailslurp_client/models/sms_preview.rb +15 -1
- data/lib/mailslurp_client/models/sms_projection.rb +15 -15
- data/lib/mailslurp_client/models/template_projection.rb +15 -15
- data/lib/mailslurp_client/models/tracking_pixel_projection.rb +15 -15
- data/lib/mailslurp_client/models/unknown_missed_email_projection.rb +10 -10
- data/lib/mailslurp_client/models/wait_for_sms_conditions.rb +1 -1
- data/lib/mailslurp_client/models/webhook_projection.rb +47 -47
- data/lib/mailslurp_client/version.rb +1 -1
- data/lib/mailslurp_client.rb +16 -0
- metadata +18 -2
@@ -0,0 +1,284 @@
|
|
1
|
+
=begin
|
2
|
+
#MailSlurp API
|
3
|
+
|
4
|
+
#MailSlurp is an API for sending and receiving emails and SMS from dynamically allocated email addresses and phone numbers. 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 CreatePhoneNumberOptions
|
17
|
+
attr_accessor :phone_country
|
18
|
+
|
19
|
+
attr_accessor :name
|
20
|
+
|
21
|
+
attr_accessor :description
|
22
|
+
|
23
|
+
attr_accessor :schedule
|
24
|
+
|
25
|
+
class EnumAttributeValidator
|
26
|
+
attr_reader :datatype
|
27
|
+
attr_reader :allowable_values
|
28
|
+
|
29
|
+
def initialize(datatype, allowable_values)
|
30
|
+
@allowable_values = allowable_values.map do |value|
|
31
|
+
case datatype.to_s
|
32
|
+
when /Integer/i
|
33
|
+
value.to_i
|
34
|
+
when /Float/i
|
35
|
+
value.to_f
|
36
|
+
else
|
37
|
+
value
|
38
|
+
end
|
39
|
+
end
|
40
|
+
end
|
41
|
+
|
42
|
+
def valid?(value)
|
43
|
+
!value || allowable_values.include?(value)
|
44
|
+
end
|
45
|
+
end
|
46
|
+
|
47
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
48
|
+
def self.attribute_map
|
49
|
+
{
|
50
|
+
:'phone_country' => :'phoneCountry',
|
51
|
+
:'name' => :'name',
|
52
|
+
:'description' => :'description',
|
53
|
+
:'schedule' => :'schedule'
|
54
|
+
}
|
55
|
+
end
|
56
|
+
|
57
|
+
# Attribute type mapping.
|
58
|
+
def self.openapi_types
|
59
|
+
{
|
60
|
+
:'phone_country' => :'String',
|
61
|
+
:'name' => :'String',
|
62
|
+
:'description' => :'String',
|
63
|
+
:'schedule' => :'String'
|
64
|
+
}
|
65
|
+
end
|
66
|
+
|
67
|
+
# List of attributes with nullable: true
|
68
|
+
def self.openapi_nullable
|
69
|
+
Set.new([
|
70
|
+
])
|
71
|
+
end
|
72
|
+
|
73
|
+
# Initializes the object
|
74
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
75
|
+
def initialize(attributes = {})
|
76
|
+
if (!attributes.is_a?(Hash))
|
77
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `MailSlurpClient::CreatePhoneNumberOptions` initialize method"
|
78
|
+
end
|
79
|
+
|
80
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
81
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
82
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
83
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `MailSlurpClient::CreatePhoneNumberOptions`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
84
|
+
end
|
85
|
+
h[k.to_sym] = v
|
86
|
+
}
|
87
|
+
|
88
|
+
if attributes.key?(:'phone_country')
|
89
|
+
self.phone_country = attributes[:'phone_country']
|
90
|
+
end
|
91
|
+
|
92
|
+
if attributes.key?(:'name')
|
93
|
+
self.name = attributes[:'name']
|
94
|
+
end
|
95
|
+
|
96
|
+
if attributes.key?(:'description')
|
97
|
+
self.description = attributes[:'description']
|
98
|
+
end
|
99
|
+
|
100
|
+
if attributes.key?(:'schedule')
|
101
|
+
self.schedule = attributes[:'schedule']
|
102
|
+
end
|
103
|
+
end
|
104
|
+
|
105
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
106
|
+
# @return Array for valid properties with the reasons
|
107
|
+
def list_invalid_properties
|
108
|
+
invalid_properties = Array.new
|
109
|
+
if @phone_country.nil?
|
110
|
+
invalid_properties.push('invalid value for "phone_country", phone_country cannot be nil.')
|
111
|
+
end
|
112
|
+
|
113
|
+
invalid_properties
|
114
|
+
end
|
115
|
+
|
116
|
+
# Check to see if the all the properties in the model are valid
|
117
|
+
# @return true if the model is valid
|
118
|
+
def valid?
|
119
|
+
return false if @phone_country.nil?
|
120
|
+
phone_country_validator = EnumAttributeValidator.new('String', ["US", "GB", "AU", "CA", "EE", "HK", "PL", "CH", "PT", "NL", "IL", "SE"])
|
121
|
+
return false unless phone_country_validator.valid?(@phone_country)
|
122
|
+
schedule_validator = EnumAttributeValidator.new('String', ["MONTHLY", "YEARLY"])
|
123
|
+
return false unless schedule_validator.valid?(@schedule)
|
124
|
+
true
|
125
|
+
end
|
126
|
+
|
127
|
+
# Custom attribute writer method checking allowed values (enum).
|
128
|
+
# @param [Object] phone_country Object to be assigned
|
129
|
+
def phone_country=(phone_country)
|
130
|
+
validator = EnumAttributeValidator.new('String', ["US", "GB", "AU", "CA", "EE", "HK", "PL", "CH", "PT", "NL", "IL", "SE"])
|
131
|
+
unless validator.valid?(phone_country)
|
132
|
+
fail ArgumentError, "invalid value for \"phone_country\", must be one of #{validator.allowable_values}."
|
133
|
+
end
|
134
|
+
@phone_country = phone_country
|
135
|
+
end
|
136
|
+
|
137
|
+
# Custom attribute writer method checking allowed values (enum).
|
138
|
+
# @param [Object] schedule Object to be assigned
|
139
|
+
def schedule=(schedule)
|
140
|
+
validator = EnumAttributeValidator.new('String', ["MONTHLY", "YEARLY"])
|
141
|
+
unless validator.valid?(schedule)
|
142
|
+
fail ArgumentError, "invalid value for \"schedule\", must be one of #{validator.allowable_values}."
|
143
|
+
end
|
144
|
+
@schedule = schedule
|
145
|
+
end
|
146
|
+
|
147
|
+
# Checks equality by comparing each attribute.
|
148
|
+
# @param [Object] Object to be compared
|
149
|
+
def ==(o)
|
150
|
+
return true if self.equal?(o)
|
151
|
+
self.class == o.class &&
|
152
|
+
phone_country == o.phone_country &&
|
153
|
+
name == o.name &&
|
154
|
+
description == o.description &&
|
155
|
+
schedule == o.schedule
|
156
|
+
end
|
157
|
+
|
158
|
+
# @see the `==` method
|
159
|
+
# @param [Object] Object to be compared
|
160
|
+
def eql?(o)
|
161
|
+
self == o
|
162
|
+
end
|
163
|
+
|
164
|
+
# Calculates hash code according to all attributes.
|
165
|
+
# @return [Integer] Hash code
|
166
|
+
def hash
|
167
|
+
[phone_country, name, description, schedule].hash
|
168
|
+
end
|
169
|
+
|
170
|
+
# Builds the object from hash
|
171
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
172
|
+
# @return [Object] Returns the model itself
|
173
|
+
def self.build_from_hash(attributes)
|
174
|
+
new.build_from_hash(attributes)
|
175
|
+
end
|
176
|
+
|
177
|
+
# Builds the object from hash
|
178
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
179
|
+
# @return [Object] Returns the model itself
|
180
|
+
def build_from_hash(attributes)
|
181
|
+
return nil unless attributes.is_a?(Hash)
|
182
|
+
self.class.openapi_types.each_pair do |key, type|
|
183
|
+
if type =~ /\AArray<(.*)>/i
|
184
|
+
# check to ensure the input is an array given that the attribute
|
185
|
+
# is documented as an array but the input is not
|
186
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
187
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
188
|
+
end
|
189
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
190
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
191
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
192
|
+
end
|
193
|
+
|
194
|
+
self
|
195
|
+
end
|
196
|
+
|
197
|
+
# Deserializes the data based on type
|
198
|
+
# @param string type Data type
|
199
|
+
# @param string value Value to be deserialized
|
200
|
+
# @return [Object] Deserialized data
|
201
|
+
def _deserialize(type, value)
|
202
|
+
case type.to_sym
|
203
|
+
when :DateTime
|
204
|
+
DateTime.parse(value)
|
205
|
+
when :Date
|
206
|
+
Date.parse(value)
|
207
|
+
when :String
|
208
|
+
value.to_s
|
209
|
+
when :Integer
|
210
|
+
value.to_i
|
211
|
+
when :Float
|
212
|
+
value.to_f
|
213
|
+
when :Boolean
|
214
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
215
|
+
true
|
216
|
+
else
|
217
|
+
false
|
218
|
+
end
|
219
|
+
when :Object
|
220
|
+
# generic object (usually a Hash), return directly
|
221
|
+
value
|
222
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
223
|
+
inner_type = Regexp.last_match[:inner_type]
|
224
|
+
value.map { |v| _deserialize(inner_type, v) }
|
225
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
226
|
+
k_type = Regexp.last_match[:k_type]
|
227
|
+
v_type = Regexp.last_match[:v_type]
|
228
|
+
{}.tap do |hash|
|
229
|
+
value.each do |k, v|
|
230
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
231
|
+
end
|
232
|
+
end
|
233
|
+
else # model
|
234
|
+
MailSlurpClient.const_get(type).build_from_hash(value)
|
235
|
+
end
|
236
|
+
end
|
237
|
+
|
238
|
+
# Returns the string representation of the object
|
239
|
+
# @return [String] String presentation of the object
|
240
|
+
def to_s
|
241
|
+
to_hash.to_s
|
242
|
+
end
|
243
|
+
|
244
|
+
# to_body is an alias to to_hash (backward compatibility)
|
245
|
+
# @return [Hash] Returns the object in the form of hash
|
246
|
+
def to_body
|
247
|
+
to_hash
|
248
|
+
end
|
249
|
+
|
250
|
+
# Returns the object in the form of hash
|
251
|
+
# @return [Hash] Returns the object in the form of hash
|
252
|
+
def to_hash
|
253
|
+
hash = {}
|
254
|
+
self.class.attribute_map.each_pair do |attr, param|
|
255
|
+
value = self.send(attr)
|
256
|
+
if value.nil?
|
257
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
258
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
259
|
+
end
|
260
|
+
|
261
|
+
hash[param] = _to_hash(value)
|
262
|
+
end
|
263
|
+
hash
|
264
|
+
end
|
265
|
+
|
266
|
+
# Outputs non-array value in the form of hash
|
267
|
+
# For object, use to_hash. Otherwise, just return the value
|
268
|
+
# @param [Object] value Any valid value
|
269
|
+
# @return [Hash] Returns the value in the form of hash
|
270
|
+
def _to_hash(value)
|
271
|
+
if value.is_a?(Array)
|
272
|
+
value.compact.map { |v| _to_hash(v) }
|
273
|
+
elsif value.is_a?(Hash)
|
274
|
+
{}.tap do |hash|
|
275
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
276
|
+
end
|
277
|
+
elsif value.respond_to? :to_hash
|
278
|
+
value.to_hash
|
279
|
+
else
|
280
|
+
value
|
281
|
+
end
|
282
|
+
end
|
283
|
+
end
|
284
|
+
end
|
@@ -28,6 +28,12 @@ module MailSlurpClient
|
|
28
28
|
# Unique token DKIM tokens
|
29
29
|
attr_accessor :dkim_tokens
|
30
30
|
|
31
|
+
# If the domain is duplicate records.
|
32
|
+
attr_accessor :duplicate_records_message
|
33
|
+
|
34
|
+
# Whether the domain has duplicated required records. If true then see the domain in the dashboard app.
|
35
|
+
attr_accessor :has_duplicate_records
|
36
|
+
|
31
37
|
# If the domain is missing records then show which pairs are missing.
|
32
38
|
attr_accessor :missing_records_message
|
33
39
|
|
@@ -80,6 +86,8 @@ module MailSlurpClient
|
|
80
86
|
:'domain' => :'domain',
|
81
87
|
:'verification_token' => :'verificationToken',
|
82
88
|
:'dkim_tokens' => :'dkimTokens',
|
89
|
+
:'duplicate_records_message' => :'duplicateRecordsMessage',
|
90
|
+
:'has_duplicate_records' => :'hasDuplicateRecords',
|
83
91
|
:'missing_records_message' => :'missingRecordsMessage',
|
84
92
|
:'has_missing_records' => :'hasMissingRecords',
|
85
93
|
:'is_verified' => :'isVerified',
|
@@ -99,6 +107,8 @@ module MailSlurpClient
|
|
99
107
|
:'domain' => :'String',
|
100
108
|
:'verification_token' => :'String',
|
101
109
|
:'dkim_tokens' => :'Array<String>',
|
110
|
+
:'duplicate_records_message' => :'String',
|
111
|
+
:'has_duplicate_records' => :'Boolean',
|
102
112
|
:'missing_records_message' => :'String',
|
103
113
|
:'has_missing_records' => :'Boolean',
|
104
114
|
:'is_verified' => :'Boolean',
|
@@ -113,6 +123,7 @@ module MailSlurpClient
|
|
113
123
|
# List of attributes with nullable: true
|
114
124
|
def self.openapi_nullable
|
115
125
|
Set.new([
|
126
|
+
:'duplicate_records_message',
|
116
127
|
:'missing_records_message',
|
117
128
|
:'catch_all_inbox_id',
|
118
129
|
])
|
@@ -155,6 +166,14 @@ module MailSlurpClient
|
|
155
166
|
end
|
156
167
|
end
|
157
168
|
|
169
|
+
if attributes.key?(:'duplicate_records_message')
|
170
|
+
self.duplicate_records_message = attributes[:'duplicate_records_message']
|
171
|
+
end
|
172
|
+
|
173
|
+
if attributes.key?(:'has_duplicate_records')
|
174
|
+
self.has_duplicate_records = attributes[:'has_duplicate_records']
|
175
|
+
end
|
176
|
+
|
158
177
|
if attributes.key?(:'missing_records_message')
|
159
178
|
self.missing_records_message = attributes[:'missing_records_message']
|
160
179
|
end
|
@@ -214,6 +233,10 @@ module MailSlurpClient
|
|
214
233
|
invalid_properties.push('invalid value for "dkim_tokens", dkim_tokens cannot be nil.')
|
215
234
|
end
|
216
235
|
|
236
|
+
if @has_duplicate_records.nil?
|
237
|
+
invalid_properties.push('invalid value for "has_duplicate_records", has_duplicate_records cannot be nil.')
|
238
|
+
end
|
239
|
+
|
217
240
|
if @has_missing_records.nil?
|
218
241
|
invalid_properties.push('invalid value for "has_missing_records", has_missing_records cannot be nil.')
|
219
242
|
end
|
@@ -249,6 +272,7 @@ module MailSlurpClient
|
|
249
272
|
return false if @domain.nil?
|
250
273
|
return false if @verification_token.nil?
|
251
274
|
return false if @dkim_tokens.nil?
|
275
|
+
return false if @has_duplicate_records.nil?
|
252
276
|
return false if @has_missing_records.nil?
|
253
277
|
return false if @is_verified.nil?
|
254
278
|
return false if @domain_name_records.nil?
|
@@ -280,6 +304,8 @@ module MailSlurpClient
|
|
280
304
|
domain == o.domain &&
|
281
305
|
verification_token == o.verification_token &&
|
282
306
|
dkim_tokens == o.dkim_tokens &&
|
307
|
+
duplicate_records_message == o.duplicate_records_message &&
|
308
|
+
has_duplicate_records == o.has_duplicate_records &&
|
283
309
|
missing_records_message == o.missing_records_message &&
|
284
310
|
has_missing_records == o.has_missing_records &&
|
285
311
|
is_verified == o.is_verified &&
|
@@ -299,7 +325,7 @@ module MailSlurpClient
|
|
299
325
|
# Calculates hash code according to all attributes.
|
300
326
|
# @return [Integer] Hash code
|
301
327
|
def hash
|
302
|
-
[id, user_id, domain, verification_token, dkim_tokens, missing_records_message, has_missing_records, is_verified, domain_name_records, catch_all_inbox_id, created_at, updated_at, domain_type].hash
|
328
|
+
[id, user_id, domain, verification_token, dkim_tokens, duplicate_records_message, has_duplicate_records, missing_records_message, has_missing_records, is_verified, domain_name_records, catch_all_inbox_id, created_at, updated_at, domain_type].hash
|
303
329
|
end
|
304
330
|
|
305
331
|
# Builds the object from hash
|
@@ -111,6 +111,9 @@ module MailSlurpClient
|
|
111
111
|
# Is email favourited
|
112
112
|
attr_accessor :favourite
|
113
113
|
|
114
|
+
# Size of raw email message in bytes
|
115
|
+
attr_accessor :size_bytes
|
116
|
+
|
114
117
|
attr_accessor :html
|
115
118
|
|
116
119
|
attr_accessor :xamp_html
|
@@ -151,6 +154,7 @@ module MailSlurpClient
|
|
151
154
|
:'thread_id' => :'threadId',
|
152
155
|
:'in_reply_to' => :'inReplyTo',
|
153
156
|
:'favourite' => :'favourite',
|
157
|
+
:'size_bytes' => :'sizeBytes',
|
154
158
|
:'html' => :'html',
|
155
159
|
:'xamp_html' => :'xampHtml'
|
156
160
|
}
|
@@ -192,6 +196,7 @@ module MailSlurpClient
|
|
192
196
|
:'thread_id' => :'String',
|
193
197
|
:'in_reply_to' => :'String',
|
194
198
|
:'favourite' => :'Boolean',
|
199
|
+
:'size_bytes' => :'Integer',
|
195
200
|
:'html' => :'Boolean',
|
196
201
|
:'xamp_html' => :'Boolean'
|
197
202
|
}
|
@@ -225,6 +230,7 @@ module MailSlurpClient
|
|
225
230
|
:'thread_id',
|
226
231
|
:'in_reply_to',
|
227
232
|
:'favourite',
|
233
|
+
:'size_bytes',
|
228
234
|
])
|
229
235
|
end
|
230
236
|
|
@@ -389,6 +395,10 @@ module MailSlurpClient
|
|
389
395
|
self.favourite = attributes[:'favourite']
|
390
396
|
end
|
391
397
|
|
398
|
+
if attributes.key?(:'size_bytes')
|
399
|
+
self.size_bytes = attributes[:'size_bytes']
|
400
|
+
end
|
401
|
+
|
392
402
|
if attributes.key?(:'html')
|
393
403
|
self.html = attributes[:'html']
|
394
404
|
end
|
@@ -489,6 +499,7 @@ module MailSlurpClient
|
|
489
499
|
thread_id == o.thread_id &&
|
490
500
|
in_reply_to == o.in_reply_to &&
|
491
501
|
favourite == o.favourite &&
|
502
|
+
size_bytes == o.size_bytes &&
|
492
503
|
html == o.html &&
|
493
504
|
xamp_html == o.xamp_html
|
494
505
|
end
|
@@ -502,7 +513,7 @@ module MailSlurpClient
|
|
502
513
|
# Calculates hash code according to all attributes.
|
503
514
|
# @return [Integer] Hash code
|
504
515
|
def hash
|
505
|
-
[id, user_id, inbox_id, domain_id, to, from, sender, recipients, reply_to, cc, bcc, headers, headers_map, attachments, subject, body, body_excerpt, text_excerpt, body_md5_hash, is_html, charset, analysis, created_at, updated_at, read, team_access, is_x_amp_html, body_part_content_types, external_id, message_id, thread_id, in_reply_to, favourite, html, xamp_html].hash
|
516
|
+
[id, user_id, inbox_id, domain_id, to, from, sender, recipients, reply_to, cc, bcc, headers, headers_map, attachments, subject, body, body_excerpt, text_excerpt, body_md5_hash, is_html, charset, analysis, created_at, updated_at, read, team_access, is_x_amp_html, body_part_content_types, external_id, message_id, thread_id, in_reply_to, favourite, size_bytes, html, xamp_html].hash
|
506
517
|
end
|
507
518
|
|
508
519
|
# Builds the object from hash
|
@@ -67,6 +67,8 @@ module MailSlurpClient
|
|
67
67
|
|
68
68
|
attr_accessor :plus_address
|
69
69
|
|
70
|
+
attr_accessor :size_bytes
|
71
|
+
|
70
72
|
# Attribute mapping from ruby-style variable name to JSON key.
|
71
73
|
def self.attribute_map
|
72
74
|
{
|
@@ -88,7 +90,8 @@ module MailSlurpClient
|
|
88
90
|
:'recipients' => :'recipients',
|
89
91
|
:'favourite' => :'favourite',
|
90
92
|
:'body_part_content_types' => :'bodyPartContentTypes',
|
91
|
-
:'plus_address' => :'plusAddress'
|
93
|
+
:'plus_address' => :'plusAddress',
|
94
|
+
:'size_bytes' => :'sizeBytes'
|
92
95
|
}
|
93
96
|
end
|
94
97
|
|
@@ -113,7 +116,8 @@ module MailSlurpClient
|
|
113
116
|
:'recipients' => :'EmailRecipients',
|
114
117
|
:'favourite' => :'Boolean',
|
115
118
|
:'body_part_content_types' => :'Array<String>',
|
116
|
-
:'plus_address' => :'String'
|
119
|
+
:'plus_address' => :'String',
|
120
|
+
:'size_bytes' => :'Integer'
|
117
121
|
}
|
118
122
|
end
|
119
123
|
|
@@ -135,7 +139,8 @@ module MailSlurpClient
|
|
135
139
|
:'recipients',
|
136
140
|
:'favourite',
|
137
141
|
:'body_part_content_types',
|
138
|
-
:'plus_address'
|
142
|
+
:'plus_address',
|
143
|
+
:'size_bytes'
|
139
144
|
])
|
140
145
|
end
|
141
146
|
|
@@ -239,6 +244,10 @@ module MailSlurpClient
|
|
239
244
|
if attributes.key?(:'plus_address')
|
240
245
|
self.plus_address = attributes[:'plus_address']
|
241
246
|
end
|
247
|
+
|
248
|
+
if attributes.key?(:'size_bytes')
|
249
|
+
self.size_bytes = attributes[:'size_bytes']
|
250
|
+
end
|
242
251
|
end
|
243
252
|
|
244
253
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -292,7 +301,8 @@ module MailSlurpClient
|
|
292
301
|
recipients == o.recipients &&
|
293
302
|
favourite == o.favourite &&
|
294
303
|
body_part_content_types == o.body_part_content_types &&
|
295
|
-
plus_address == o.plus_address
|
304
|
+
plus_address == o.plus_address &&
|
305
|
+
size_bytes == o.size_bytes
|
296
306
|
end
|
297
307
|
|
298
308
|
# @see the `==` method
|
@@ -304,7 +314,7 @@ module MailSlurpClient
|
|
304
314
|
# Calculates hash code according to all attributes.
|
305
315
|
# @return [Integer] Hash code
|
306
316
|
def hash
|
307
|
-
[id, inbox_id, domain_id, subject, to, from, bcc, cc, created_at, read, attachments, thread_id, message_id, in_reply_to, sender, recipients, favourite, body_part_content_types, plus_address].hash
|
317
|
+
[id, inbox_id, domain_id, subject, to, from, bcc, cc, created_at, read, attachments, thread_id, message_id, in_reply_to, sender, recipients, favourite, body_part_content_types, plus_address, size_bytes].hash
|
308
318
|
end
|
309
319
|
|
310
320
|
# Builds the object from hash
|