mailslurp_client 15.17.6 → 15.17.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (26) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -0
  3. data/lib/mailslurp_client/api/connector_controller_api.rb +619 -0
  4. data/lib/mailslurp_client/models/bounce_projection.rb +15 -15
  5. data/lib/mailslurp_client/models/connector_dto.rb +407 -0
  6. data/lib/mailslurp_client/models/connector_projection.rb +346 -0
  7. data/lib/mailslurp_client/models/connector_sync_event_dto.rb +310 -0
  8. data/lib/mailslurp_client/models/connector_sync_event_projection.rb +306 -0
  9. data/lib/mailslurp_client/models/connector_sync_request_result.rb +224 -0
  10. data/lib/mailslurp_client/models/connector_sync_request_result_exception.rb +246 -0
  11. data/lib/mailslurp_client/models/connector_sync_request_result_exception_cause.rb +237 -0
  12. data/lib/mailslurp_client/models/connector_sync_request_result_exception_cause_stack_trace.rb +269 -0
  13. data/lib/mailslurp_client/models/connector_sync_request_result_exception_cause_suppressed.rb +226 -0
  14. data/lib/mailslurp_client/models/connector_sync_result.rb +222 -0
  15. data/lib/mailslurp_client/models/create_connector_imap_options.rb +267 -0
  16. data/lib/mailslurp_client/models/create_connector_options.rb +338 -0
  17. data/lib/mailslurp_client/models/email_projection.rb +10 -10
  18. data/lib/mailslurp_client/models/inbox_replier_event_projection.rb +13 -13
  19. data/lib/mailslurp_client/models/inbox_ruleset_dto.rb +1 -0
  20. data/lib/mailslurp_client/models/missed_email_projection.rb +11 -11
  21. data/lib/mailslurp_client/models/page_connector.rb +308 -0
  22. data/lib/mailslurp_client/models/page_connector_sync_events.rb +308 -0
  23. data/lib/mailslurp_client/models/thread_projection.rb +11 -11
  24. data/lib/mailslurp_client/version.rb +1 -1
  25. data/lib/mailslurp_client.rb +15 -0
  26. metadata +17 -2
@@ -0,0 +1,308 @@
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
+ # Paginated inbox connectors. Page index starts at zero. Projection results may omit larger entity fields. For fetching a full entity use the projection ID with individual method calls.
17
+ class PageConnector
18
+ attr_accessor :content
19
+
20
+ attr_accessor :pageable
21
+
22
+ attr_accessor :total
23
+
24
+ attr_accessor :last
25
+
26
+ attr_accessor :total_elements
27
+
28
+ attr_accessor :total_pages
29
+
30
+ attr_accessor :size
31
+
32
+ attr_accessor :number
33
+
34
+ attr_accessor :sort
35
+
36
+ attr_accessor :first
37
+
38
+ attr_accessor :number_of_elements
39
+
40
+ attr_accessor :empty
41
+
42
+ # Attribute mapping from ruby-style variable name to JSON key.
43
+ def self.attribute_map
44
+ {
45
+ :'content' => :'content',
46
+ :'pageable' => :'pageable',
47
+ :'total' => :'total',
48
+ :'last' => :'last',
49
+ :'total_elements' => :'totalElements',
50
+ :'total_pages' => :'totalPages',
51
+ :'size' => :'size',
52
+ :'number' => :'number',
53
+ :'sort' => :'sort',
54
+ :'first' => :'first',
55
+ :'number_of_elements' => :'numberOfElements',
56
+ :'empty' => :'empty'
57
+ }
58
+ end
59
+
60
+ # Attribute type mapping.
61
+ def self.openapi_types
62
+ {
63
+ :'content' => :'Array<ConnectorProjection>',
64
+ :'pageable' => :'PageableObject',
65
+ :'total' => :'Integer',
66
+ :'last' => :'Boolean',
67
+ :'total_elements' => :'Integer',
68
+ :'total_pages' => :'Integer',
69
+ :'size' => :'Integer',
70
+ :'number' => :'Integer',
71
+ :'sort' => :'Sort',
72
+ :'first' => :'Boolean',
73
+ :'number_of_elements' => :'Integer',
74
+ :'empty' => :'Boolean'
75
+ }
76
+ end
77
+
78
+ # List of attributes with nullable: true
79
+ def self.openapi_nullable
80
+ Set.new([
81
+ ])
82
+ end
83
+
84
+ # Initializes the object
85
+ # @param [Hash] attributes Model attributes in the form of hash
86
+ def initialize(attributes = {})
87
+ if (!attributes.is_a?(Hash))
88
+ fail ArgumentError, "The input argument (attributes) must be a hash in `MailSlurpClient::PageConnector` initialize method"
89
+ end
90
+
91
+ # check to see if the attribute exists and convert string to symbol for hash key
92
+ attributes = attributes.each_with_object({}) { |(k, v), h|
93
+ if (!self.class.attribute_map.key?(k.to_sym))
94
+ fail ArgumentError, "`#{k}` is not a valid attribute in `MailSlurpClient::PageConnector`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
95
+ end
96
+ h[k.to_sym] = v
97
+ }
98
+
99
+ if attributes.key?(:'content')
100
+ if (value = attributes[:'content']).is_a?(Array)
101
+ self.content = value
102
+ end
103
+ end
104
+
105
+ if attributes.key?(:'pageable')
106
+ self.pageable = attributes[:'pageable']
107
+ end
108
+
109
+ if attributes.key?(:'total')
110
+ self.total = attributes[:'total']
111
+ end
112
+
113
+ if attributes.key?(:'last')
114
+ self.last = attributes[:'last']
115
+ end
116
+
117
+ if attributes.key?(:'total_elements')
118
+ self.total_elements = attributes[:'total_elements']
119
+ end
120
+
121
+ if attributes.key?(:'total_pages')
122
+ self.total_pages = attributes[:'total_pages']
123
+ end
124
+
125
+ if attributes.key?(:'size')
126
+ self.size = attributes[:'size']
127
+ end
128
+
129
+ if attributes.key?(:'number')
130
+ self.number = attributes[:'number']
131
+ end
132
+
133
+ if attributes.key?(:'sort')
134
+ self.sort = attributes[:'sort']
135
+ end
136
+
137
+ if attributes.key?(:'first')
138
+ self.first = attributes[:'first']
139
+ end
140
+
141
+ if attributes.key?(:'number_of_elements')
142
+ self.number_of_elements = attributes[:'number_of_elements']
143
+ end
144
+
145
+ if attributes.key?(:'empty')
146
+ self.empty = attributes[:'empty']
147
+ end
148
+ end
149
+
150
+ # Show invalid properties with the reasons. Usually used together with valid?
151
+ # @return Array for valid properties with the reasons
152
+ def list_invalid_properties
153
+ invalid_properties = Array.new
154
+ invalid_properties
155
+ end
156
+
157
+ # Check to see if the all the properties in the model are valid
158
+ # @return true if the model is valid
159
+ def valid?
160
+ true
161
+ end
162
+
163
+ # Checks equality by comparing each attribute.
164
+ # @param [Object] Object to be compared
165
+ def ==(o)
166
+ return true if self.equal?(o)
167
+ self.class == o.class &&
168
+ content == o.content &&
169
+ pageable == o.pageable &&
170
+ total == o.total &&
171
+ last == o.last &&
172
+ total_elements == o.total_elements &&
173
+ total_pages == o.total_pages &&
174
+ size == o.size &&
175
+ number == o.number &&
176
+ sort == o.sort &&
177
+ first == o.first &&
178
+ number_of_elements == o.number_of_elements &&
179
+ empty == o.empty
180
+ end
181
+
182
+ # @see the `==` method
183
+ # @param [Object] Object to be compared
184
+ def eql?(o)
185
+ self == o
186
+ end
187
+
188
+ # Calculates hash code according to all attributes.
189
+ # @return [Integer] Hash code
190
+ def hash
191
+ [content, pageable, total, last, total_elements, total_pages, size, number, sort, first, number_of_elements, empty].hash
192
+ end
193
+
194
+ # Builds the object from hash
195
+ # @param [Hash] attributes Model attributes in the form of hash
196
+ # @return [Object] Returns the model itself
197
+ def self.build_from_hash(attributes)
198
+ new.build_from_hash(attributes)
199
+ end
200
+
201
+ # Builds the object from hash
202
+ # @param [Hash] attributes Model attributes in the form of hash
203
+ # @return [Object] Returns the model itself
204
+ def build_from_hash(attributes)
205
+ return nil unless attributes.is_a?(Hash)
206
+ self.class.openapi_types.each_pair do |key, type|
207
+ if type =~ /\AArray<(.*)>/i
208
+ # check to ensure the input is an array given that the attribute
209
+ # is documented as an array but the input is not
210
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
211
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
212
+ end
213
+ elsif !attributes[self.class.attribute_map[key]].nil?
214
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
215
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
216
+ end
217
+
218
+ self
219
+ end
220
+
221
+ # Deserializes the data based on type
222
+ # @param string type Data type
223
+ # @param string value Value to be deserialized
224
+ # @return [Object] Deserialized data
225
+ def _deserialize(type, value)
226
+ case type.to_sym
227
+ when :DateTime
228
+ DateTime.parse(value)
229
+ when :Date
230
+ Date.parse(value)
231
+ when :String
232
+ value.to_s
233
+ when :Integer
234
+ value.to_i
235
+ when :Float
236
+ value.to_f
237
+ when :Boolean
238
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
239
+ true
240
+ else
241
+ false
242
+ end
243
+ when :Object
244
+ # generic object (usually a Hash), return directly
245
+ value
246
+ when /\AArray<(?<inner_type>.+)>\z/
247
+ inner_type = Regexp.last_match[:inner_type]
248
+ value.map { |v| _deserialize(inner_type, v) }
249
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
250
+ k_type = Regexp.last_match[:k_type]
251
+ v_type = Regexp.last_match[:v_type]
252
+ {}.tap do |hash|
253
+ value.each do |k, v|
254
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
255
+ end
256
+ end
257
+ else # model
258
+ MailSlurpClient.const_get(type).build_from_hash(value)
259
+ end
260
+ end
261
+
262
+ # Returns the string representation of the object
263
+ # @return [String] String presentation of the object
264
+ def to_s
265
+ to_hash.to_s
266
+ end
267
+
268
+ # to_body is an alias to to_hash (backward compatibility)
269
+ # @return [Hash] Returns the object in the form of hash
270
+ def to_body
271
+ to_hash
272
+ end
273
+
274
+ # Returns the object in the form of hash
275
+ # @return [Hash] Returns the object in the form of hash
276
+ def to_hash
277
+ hash = {}
278
+ self.class.attribute_map.each_pair do |attr, param|
279
+ value = self.send(attr)
280
+ if value.nil?
281
+ is_nullable = self.class.openapi_nullable.include?(attr)
282
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
283
+ end
284
+
285
+ hash[param] = _to_hash(value)
286
+ end
287
+ hash
288
+ end
289
+
290
+ # Outputs non-array value in the form of hash
291
+ # For object, use to_hash. Otherwise, just return the value
292
+ # @param [Object] value Any valid value
293
+ # @return [Hash] Returns the value in the form of hash
294
+ def _to_hash(value)
295
+ if value.is_a?(Array)
296
+ value.compact.map { |v| _to_hash(v) }
297
+ elsif value.is_a?(Hash)
298
+ {}.tap do |hash|
299
+ value.each { |k, v| hash[k] = _to_hash(v) }
300
+ end
301
+ elsif value.respond_to? :to_hash
302
+ value.to_hash
303
+ else
304
+ value
305
+ end
306
+ end
307
+ end
308
+ end
@@ -0,0 +1,308 @@
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
+ # Paginated inbox connector sync events. Page index starts at zero. Projection results may omit larger entity fields. For fetching a full entity use the projection ID with individual method calls.
17
+ class PageConnectorSyncEvents
18
+ attr_accessor :content
19
+
20
+ attr_accessor :pageable
21
+
22
+ attr_accessor :total
23
+
24
+ attr_accessor :last
25
+
26
+ attr_accessor :total_elements
27
+
28
+ attr_accessor :total_pages
29
+
30
+ attr_accessor :size
31
+
32
+ attr_accessor :number
33
+
34
+ attr_accessor :sort
35
+
36
+ attr_accessor :first
37
+
38
+ attr_accessor :number_of_elements
39
+
40
+ attr_accessor :empty
41
+
42
+ # Attribute mapping from ruby-style variable name to JSON key.
43
+ def self.attribute_map
44
+ {
45
+ :'content' => :'content',
46
+ :'pageable' => :'pageable',
47
+ :'total' => :'total',
48
+ :'last' => :'last',
49
+ :'total_elements' => :'totalElements',
50
+ :'total_pages' => :'totalPages',
51
+ :'size' => :'size',
52
+ :'number' => :'number',
53
+ :'sort' => :'sort',
54
+ :'first' => :'first',
55
+ :'number_of_elements' => :'numberOfElements',
56
+ :'empty' => :'empty'
57
+ }
58
+ end
59
+
60
+ # Attribute type mapping.
61
+ def self.openapi_types
62
+ {
63
+ :'content' => :'Array<ConnectorSyncEventProjection>',
64
+ :'pageable' => :'PageableObject',
65
+ :'total' => :'Integer',
66
+ :'last' => :'Boolean',
67
+ :'total_elements' => :'Integer',
68
+ :'total_pages' => :'Integer',
69
+ :'size' => :'Integer',
70
+ :'number' => :'Integer',
71
+ :'sort' => :'Sort',
72
+ :'first' => :'Boolean',
73
+ :'number_of_elements' => :'Integer',
74
+ :'empty' => :'Boolean'
75
+ }
76
+ end
77
+
78
+ # List of attributes with nullable: true
79
+ def self.openapi_nullable
80
+ Set.new([
81
+ ])
82
+ end
83
+
84
+ # Initializes the object
85
+ # @param [Hash] attributes Model attributes in the form of hash
86
+ def initialize(attributes = {})
87
+ if (!attributes.is_a?(Hash))
88
+ fail ArgumentError, "The input argument (attributes) must be a hash in `MailSlurpClient::PageConnectorSyncEvents` initialize method"
89
+ end
90
+
91
+ # check to see if the attribute exists and convert string to symbol for hash key
92
+ attributes = attributes.each_with_object({}) { |(k, v), h|
93
+ if (!self.class.attribute_map.key?(k.to_sym))
94
+ fail ArgumentError, "`#{k}` is not a valid attribute in `MailSlurpClient::PageConnectorSyncEvents`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
95
+ end
96
+ h[k.to_sym] = v
97
+ }
98
+
99
+ if attributes.key?(:'content')
100
+ if (value = attributes[:'content']).is_a?(Array)
101
+ self.content = value
102
+ end
103
+ end
104
+
105
+ if attributes.key?(:'pageable')
106
+ self.pageable = attributes[:'pageable']
107
+ end
108
+
109
+ if attributes.key?(:'total')
110
+ self.total = attributes[:'total']
111
+ end
112
+
113
+ if attributes.key?(:'last')
114
+ self.last = attributes[:'last']
115
+ end
116
+
117
+ if attributes.key?(:'total_elements')
118
+ self.total_elements = attributes[:'total_elements']
119
+ end
120
+
121
+ if attributes.key?(:'total_pages')
122
+ self.total_pages = attributes[:'total_pages']
123
+ end
124
+
125
+ if attributes.key?(:'size')
126
+ self.size = attributes[:'size']
127
+ end
128
+
129
+ if attributes.key?(:'number')
130
+ self.number = attributes[:'number']
131
+ end
132
+
133
+ if attributes.key?(:'sort')
134
+ self.sort = attributes[:'sort']
135
+ end
136
+
137
+ if attributes.key?(:'first')
138
+ self.first = attributes[:'first']
139
+ end
140
+
141
+ if attributes.key?(:'number_of_elements')
142
+ self.number_of_elements = attributes[:'number_of_elements']
143
+ end
144
+
145
+ if attributes.key?(:'empty')
146
+ self.empty = attributes[:'empty']
147
+ end
148
+ end
149
+
150
+ # Show invalid properties with the reasons. Usually used together with valid?
151
+ # @return Array for valid properties with the reasons
152
+ def list_invalid_properties
153
+ invalid_properties = Array.new
154
+ invalid_properties
155
+ end
156
+
157
+ # Check to see if the all the properties in the model are valid
158
+ # @return true if the model is valid
159
+ def valid?
160
+ true
161
+ end
162
+
163
+ # Checks equality by comparing each attribute.
164
+ # @param [Object] Object to be compared
165
+ def ==(o)
166
+ return true if self.equal?(o)
167
+ self.class == o.class &&
168
+ content == o.content &&
169
+ pageable == o.pageable &&
170
+ total == o.total &&
171
+ last == o.last &&
172
+ total_elements == o.total_elements &&
173
+ total_pages == o.total_pages &&
174
+ size == o.size &&
175
+ number == o.number &&
176
+ sort == o.sort &&
177
+ first == o.first &&
178
+ number_of_elements == o.number_of_elements &&
179
+ empty == o.empty
180
+ end
181
+
182
+ # @see the `==` method
183
+ # @param [Object] Object to be compared
184
+ def eql?(o)
185
+ self == o
186
+ end
187
+
188
+ # Calculates hash code according to all attributes.
189
+ # @return [Integer] Hash code
190
+ def hash
191
+ [content, pageable, total, last, total_elements, total_pages, size, number, sort, first, number_of_elements, empty].hash
192
+ end
193
+
194
+ # Builds the object from hash
195
+ # @param [Hash] attributes Model attributes in the form of hash
196
+ # @return [Object] Returns the model itself
197
+ def self.build_from_hash(attributes)
198
+ new.build_from_hash(attributes)
199
+ end
200
+
201
+ # Builds the object from hash
202
+ # @param [Hash] attributes Model attributes in the form of hash
203
+ # @return [Object] Returns the model itself
204
+ def build_from_hash(attributes)
205
+ return nil unless attributes.is_a?(Hash)
206
+ self.class.openapi_types.each_pair do |key, type|
207
+ if type =~ /\AArray<(.*)>/i
208
+ # check to ensure the input is an array given that the attribute
209
+ # is documented as an array but the input is not
210
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
211
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
212
+ end
213
+ elsif !attributes[self.class.attribute_map[key]].nil?
214
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
215
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
216
+ end
217
+
218
+ self
219
+ end
220
+
221
+ # Deserializes the data based on type
222
+ # @param string type Data type
223
+ # @param string value Value to be deserialized
224
+ # @return [Object] Deserialized data
225
+ def _deserialize(type, value)
226
+ case type.to_sym
227
+ when :DateTime
228
+ DateTime.parse(value)
229
+ when :Date
230
+ Date.parse(value)
231
+ when :String
232
+ value.to_s
233
+ when :Integer
234
+ value.to_i
235
+ when :Float
236
+ value.to_f
237
+ when :Boolean
238
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
239
+ true
240
+ else
241
+ false
242
+ end
243
+ when :Object
244
+ # generic object (usually a Hash), return directly
245
+ value
246
+ when /\AArray<(?<inner_type>.+)>\z/
247
+ inner_type = Regexp.last_match[:inner_type]
248
+ value.map { |v| _deserialize(inner_type, v) }
249
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
250
+ k_type = Regexp.last_match[:k_type]
251
+ v_type = Regexp.last_match[:v_type]
252
+ {}.tap do |hash|
253
+ value.each do |k, v|
254
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
255
+ end
256
+ end
257
+ else # model
258
+ MailSlurpClient.const_get(type).build_from_hash(value)
259
+ end
260
+ end
261
+
262
+ # Returns the string representation of the object
263
+ # @return [String] String presentation of the object
264
+ def to_s
265
+ to_hash.to_s
266
+ end
267
+
268
+ # to_body is an alias to to_hash (backward compatibility)
269
+ # @return [Hash] Returns the object in the form of hash
270
+ def to_body
271
+ to_hash
272
+ end
273
+
274
+ # Returns the object in the form of hash
275
+ # @return [Hash] Returns the object in the form of hash
276
+ def to_hash
277
+ hash = {}
278
+ self.class.attribute_map.each_pair do |attr, param|
279
+ value = self.send(attr)
280
+ if value.nil?
281
+ is_nullable = self.class.openapi_nullable.include?(attr)
282
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
283
+ end
284
+
285
+ hash[param] = _to_hash(value)
286
+ end
287
+ hash
288
+ end
289
+
290
+ # Outputs non-array value in the form of hash
291
+ # For object, use to_hash. Otherwise, just return the value
292
+ # @param [Object] value Any valid value
293
+ # @return [Hash] Returns the value in the form of hash
294
+ def _to_hash(value)
295
+ if value.is_a?(Array)
296
+ value.compact.map { |v| _to_hash(v) }
297
+ elsif value.is_a?(Hash)
298
+ {}.tap do |hash|
299
+ value.each { |k, v| hash[k] = _to_hash(v) }
300
+ end
301
+ elsif value.respond_to? :to_hash
302
+ value.to_hash
303
+ else
304
+ value
305
+ end
306
+ end
307
+ end
308
+ end
@@ -21,15 +21,15 @@ module MailSlurpClient
21
21
  # ID of email thread
22
22
  attr_accessor :id
23
23
 
24
+ # Thread subject
25
+ attr_accessor :subject
26
+
24
27
  # Inbox ID
25
28
  attr_accessor :inbox_id
26
29
 
27
30
  # User ID
28
31
  attr_accessor :user_id
29
32
 
30
- # Thread subject
31
- attr_accessor :subject
32
-
33
33
  # Created at DateTime
34
34
  attr_accessor :created_at
35
35
 
@@ -53,9 +53,9 @@ module MailSlurpClient
53
53
  {
54
54
  :'name' => :'name',
55
55
  :'id' => :'id',
56
+ :'subject' => :'subject',
56
57
  :'inbox_id' => :'inboxId',
57
58
  :'user_id' => :'userId',
58
- :'subject' => :'subject',
59
59
  :'created_at' => :'createdAt',
60
60
  :'updated_at' => :'updatedAt',
61
61
  :'to' => :'to',
@@ -70,9 +70,9 @@ module MailSlurpClient
70
70
  {
71
71
  :'name' => :'String',
72
72
  :'id' => :'String',
73
+ :'subject' => :'String',
73
74
  :'inbox_id' => :'String',
74
75
  :'user_id' => :'String',
75
- :'subject' => :'String',
76
76
  :'created_at' => :'DateTime',
77
77
  :'updated_at' => :'DateTime',
78
78
  :'to' => :'Array<String>',
@@ -111,6 +111,10 @@ module MailSlurpClient
111
111
  self.id = attributes[:'id']
112
112
  end
113
113
 
114
+ if attributes.key?(:'subject')
115
+ self.subject = attributes[:'subject']
116
+ end
117
+
114
118
  if attributes.key?(:'inbox_id')
115
119
  self.inbox_id = attributes[:'inbox_id']
116
120
  end
@@ -119,10 +123,6 @@ module MailSlurpClient
119
123
  self.user_id = attributes[:'user_id']
120
124
  end
121
125
 
122
- if attributes.key?(:'subject')
123
- self.subject = attributes[:'subject']
124
- end
125
-
126
126
  if attributes.key?(:'created_at')
127
127
  self.created_at = attributes[:'created_at']
128
128
  end
@@ -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 &&
212
213
  inbox_id == o.inbox_id &&
213
214
  user_id == o.user_id &&
214
- subject == o.subject &&
215
215
  created_at == o.created_at &&
216
216
  updated_at == o.updated_at &&
217
217
  to == o.to &&
@@ -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, inbox_id, user_id, subject, created_at, updated_at, to, bcc, cc, alias_id].hash
232
+ [name, id, subject, inbox_id, user_id, created_at, updated_at, to, bcc, cc, alias_id].hash
233
233
  end
234
234
 
235
235
  # Builds the object from hash
@@ -11,5 +11,5 @@ OpenAPI Generator version: 4.3.1
11
11
  =end
12
12
 
13
13
  module MailSlurpClient
14
- VERSION = '15.17.6'
14
+ VERSION = '15.17.7'
15
15
  end