mailslurp_client 15.11.1 → 15.12.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (43) hide show
  1. checksums.yaml +4 -4
  2. data/lib/mailslurp_client/api/api_user_controller_api.rb +74 -0
  3. data/lib/mailslurp_client/api/inbox_controller_api.rb +63 -0
  4. data/lib/mailslurp_client/api/template_controller_api.rb +124 -0
  5. data/lib/mailslurp_client/models/bounce_projection.rb +31 -4
  6. data/lib/mailslurp_client/models/{bounce_recipient.rb → bounce_recipient_projection.rb} +35 -36
  7. data/lib/mailslurp_client/models/bounced_email_dto.rb +19 -1
  8. data/lib/mailslurp_client/models/bounced_recipient_dto.rb +37 -1
  9. data/lib/mailslurp_client/models/email_projection.rb +10 -10
  10. data/lib/mailslurp_client/models/inbox_by_name_result.rb +221 -0
  11. data/lib/mailslurp_client/models/inbox_dto.rb +11 -1
  12. data/lib/mailslurp_client/models/page_alias.rb +10 -10
  13. data/lib/mailslurp_client/models/page_attachment_entity.rb +10 -10
  14. data/lib/mailslurp_client/models/page_bounced_email.rb +10 -10
  15. data/lib/mailslurp_client/models/page_bounced_recipients.rb +11 -11
  16. data/lib/mailslurp_client/models/page_contact_projection.rb +10 -10
  17. data/lib/mailslurp_client/models/page_email_preview.rb +10 -10
  18. data/lib/mailslurp_client/models/page_email_projection.rb +10 -10
  19. data/lib/mailslurp_client/models/page_email_validation_request.rb +10 -10
  20. data/lib/mailslurp_client/models/page_expired_inbox_record_projection.rb +10 -10
  21. data/lib/mailslurp_client/models/page_group_projection.rb +10 -10
  22. data/lib/mailslurp_client/models/page_inbox_forwarder_dto.rb +10 -10
  23. data/lib/mailslurp_client/models/page_inbox_projection.rb +10 -10
  24. data/lib/mailslurp_client/models/page_inbox_ruleset_dto.rb +10 -10
  25. data/lib/mailslurp_client/models/page_missed_email_projection.rb +10 -10
  26. data/lib/mailslurp_client/models/page_organization_inbox_projection.rb +10 -10
  27. data/lib/mailslurp_client/models/page_phone_number_projection.rb +10 -10
  28. data/lib/mailslurp_client/models/page_sent_email_projection.rb +16 -16
  29. data/lib/mailslurp_client/models/page_sent_email_with_queue_projection.rb +16 -16
  30. data/lib/mailslurp_client/models/page_sms_projection.rb +10 -10
  31. data/lib/mailslurp_client/models/page_template_projection.rb +10 -10
  32. data/lib/mailslurp_client/models/page_thread_projection.rb +10 -10
  33. data/lib/mailslurp_client/models/page_tracking_pixel_projection.rb +10 -10
  34. data/lib/mailslurp_client/models/page_unknown_missed_email_projection.rb +10 -10
  35. data/lib/mailslurp_client/models/page_webhook_projection.rb +10 -10
  36. data/lib/mailslurp_client/models/page_webhook_result.rb +10 -10
  37. data/lib/mailslurp_client/models/sent_email_projection.rb +24 -24
  38. data/lib/mailslurp_client/models/template_preview.rb +211 -0
  39. data/lib/mailslurp_client/models/tracking_pixel_projection.rb +13 -13
  40. data/lib/mailslurp_client/models/user_info_dto.rb +334 -0
  41. data/lib/mailslurp_client/version.rb +1 -1
  42. data/lib/mailslurp_client.rb +5 -1
  43. metadata +7 -3
@@ -21,10 +21,10 @@ module MailSlurpClient
21
21
 
22
22
  attr_accessor :subject
23
23
 
24
- attr_accessor :inbox_id
25
-
26
24
  attr_accessor :attachments
27
25
 
26
+ attr_accessor :inbox_id
27
+
28
28
  attr_accessor :to
29
29
 
30
30
  attr_accessor :created_at
@@ -47,8 +47,8 @@ module MailSlurpClient
47
47
  :'id' => :'id',
48
48
  :'from' => :'from',
49
49
  :'subject' => :'subject',
50
- :'inbox_id' => :'inboxId',
51
50
  :'attachments' => :'attachments',
51
+ :'inbox_id' => :'inboxId',
52
52
  :'to' => :'to',
53
53
  :'created_at' => :'createdAt',
54
54
  :'bcc' => :'bcc',
@@ -66,8 +66,8 @@ module MailSlurpClient
66
66
  :'id' => :'String',
67
67
  :'from' => :'String',
68
68
  :'subject' => :'String',
69
- :'inbox_id' => :'String',
70
69
  :'attachments' => :'Array<String>',
70
+ :'inbox_id' => :'String',
71
71
  :'to' => :'Array<String>',
72
72
  :'created_at' => :'DateTime',
73
73
  :'bcc' => :'Array<String>',
@@ -112,16 +112,16 @@ module MailSlurpClient
112
112
  self.subject = attributes[:'subject']
113
113
  end
114
114
 
115
- if attributes.key?(:'inbox_id')
116
- self.inbox_id = attributes[:'inbox_id']
117
- end
118
-
119
115
  if attributes.key?(:'attachments')
120
116
  if (value = attributes[:'attachments']).is_a?(Array)
121
117
  self.attachments = value
122
118
  end
123
119
  end
124
120
 
121
+ if attributes.key?(:'inbox_id')
122
+ self.inbox_id = attributes[:'inbox_id']
123
+ end
124
+
125
125
  if attributes.key?(:'to')
126
126
  if (value = attributes[:'to']).is_a?(Array)
127
127
  self.to = value
@@ -212,8 +212,8 @@ module MailSlurpClient
212
212
  id == o.id &&
213
213
  from == o.from &&
214
214
  subject == o.subject &&
215
- inbox_id == o.inbox_id &&
216
215
  attachments == o.attachments &&
216
+ inbox_id == o.inbox_id &&
217
217
  to == o.to &&
218
218
  created_at == o.created_at &&
219
219
  bcc == o.bcc &&
@@ -233,7 +233,7 @@ module MailSlurpClient
233
233
  # Calculates hash code according to all attributes.
234
234
  # @return [Integer] Hash code
235
235
  def hash
236
- [id, from, subject, inbox_id, attachments, to, created_at, bcc, cc, team_access, read, body_md5_hash, body_excerpt].hash
236
+ [id, from, subject, attachments, inbox_id, to, created_at, bcc, cc, team_access, read, body_md5_hash, body_excerpt].hash
237
237
  end
238
238
 
239
239
  # Builds the object from hash
@@ -0,0 +1,221 @@
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
+ # Result of search for inbox by name
17
+ class InboxByNameResult
18
+ attr_accessor :inbox_id
19
+
20
+ attr_accessor :exists
21
+
22
+ # Attribute mapping from ruby-style variable name to JSON key.
23
+ def self.attribute_map
24
+ {
25
+ :'inbox_id' => :'inboxId',
26
+ :'exists' => :'exists'
27
+ }
28
+ end
29
+
30
+ # Attribute type mapping.
31
+ def self.openapi_types
32
+ {
33
+ :'inbox_id' => :'String',
34
+ :'exists' => :'Boolean'
35
+ }
36
+ end
37
+
38
+ # List of attributes with nullable: true
39
+ def self.openapi_nullable
40
+ Set.new([
41
+ ])
42
+ end
43
+
44
+ # Initializes the object
45
+ # @param [Hash] attributes Model attributes in the form of hash
46
+ def initialize(attributes = {})
47
+ if (!attributes.is_a?(Hash))
48
+ fail ArgumentError, "The input argument (attributes) must be a hash in `MailSlurpClient::InboxByNameResult` initialize method"
49
+ end
50
+
51
+ # check to see if the attribute exists and convert string to symbol for hash key
52
+ attributes = attributes.each_with_object({}) { |(k, v), h|
53
+ if (!self.class.attribute_map.key?(k.to_sym))
54
+ fail ArgumentError, "`#{k}` is not a valid attribute in `MailSlurpClient::InboxByNameResult`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
55
+ end
56
+ h[k.to_sym] = v
57
+ }
58
+
59
+ if attributes.key?(:'inbox_id')
60
+ self.inbox_id = attributes[:'inbox_id']
61
+ end
62
+
63
+ if attributes.key?(:'exists')
64
+ self.exists = attributes[:'exists']
65
+ end
66
+ end
67
+
68
+ # Show invalid properties with the reasons. Usually used together with valid?
69
+ # @return Array for valid properties with the reasons
70
+ def list_invalid_properties
71
+ invalid_properties = Array.new
72
+ if @exists.nil?
73
+ invalid_properties.push('invalid value for "exists", exists cannot be nil.')
74
+ end
75
+
76
+ invalid_properties
77
+ end
78
+
79
+ # Check to see if the all the properties in the model are valid
80
+ # @return true if the model is valid
81
+ def valid?
82
+ return false if @exists.nil?
83
+ true
84
+ end
85
+
86
+ # Checks equality by comparing each attribute.
87
+ # @param [Object] Object to be compared
88
+ def ==(o)
89
+ return true if self.equal?(o)
90
+ self.class == o.class &&
91
+ inbox_id == o.inbox_id &&
92
+ exists == o.exists
93
+ end
94
+
95
+ # @see the `==` method
96
+ # @param [Object] Object to be compared
97
+ def eql?(o)
98
+ self == o
99
+ end
100
+
101
+ # Calculates hash code according to all attributes.
102
+ # @return [Integer] Hash code
103
+ def hash
104
+ [inbox_id, exists].hash
105
+ end
106
+
107
+ # Builds the object from hash
108
+ # @param [Hash] attributes Model attributes in the form of hash
109
+ # @return [Object] Returns the model itself
110
+ def self.build_from_hash(attributes)
111
+ new.build_from_hash(attributes)
112
+ end
113
+
114
+ # Builds the object from hash
115
+ # @param [Hash] attributes Model attributes in the form of hash
116
+ # @return [Object] Returns the model itself
117
+ def build_from_hash(attributes)
118
+ return nil unless attributes.is_a?(Hash)
119
+ self.class.openapi_types.each_pair do |key, type|
120
+ if type =~ /\AArray<(.*)>/i
121
+ # check to ensure the input is an array given that the attribute
122
+ # is documented as an array but the input is not
123
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
124
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
125
+ end
126
+ elsif !attributes[self.class.attribute_map[key]].nil?
127
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
128
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
129
+ end
130
+
131
+ self
132
+ end
133
+
134
+ # Deserializes the data based on type
135
+ # @param string type Data type
136
+ # @param string value Value to be deserialized
137
+ # @return [Object] Deserialized data
138
+ def _deserialize(type, value)
139
+ case type.to_sym
140
+ when :DateTime
141
+ DateTime.parse(value)
142
+ when :Date
143
+ Date.parse(value)
144
+ when :String
145
+ value.to_s
146
+ when :Integer
147
+ value.to_i
148
+ when :Float
149
+ value.to_f
150
+ when :Boolean
151
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
152
+ true
153
+ else
154
+ false
155
+ end
156
+ when :Object
157
+ # generic object (usually a Hash), return directly
158
+ value
159
+ when /\AArray<(?<inner_type>.+)>\z/
160
+ inner_type = Regexp.last_match[:inner_type]
161
+ value.map { |v| _deserialize(inner_type, v) }
162
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
163
+ k_type = Regexp.last_match[:k_type]
164
+ v_type = Regexp.last_match[:v_type]
165
+ {}.tap do |hash|
166
+ value.each do |k, v|
167
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
168
+ end
169
+ end
170
+ else # model
171
+ MailSlurpClient.const_get(type).build_from_hash(value)
172
+ end
173
+ end
174
+
175
+ # Returns the string representation of the object
176
+ # @return [String] String presentation of the object
177
+ def to_s
178
+ to_hash.to_s
179
+ end
180
+
181
+ # to_body is an alias to to_hash (backward compatibility)
182
+ # @return [Hash] Returns the object in the form of hash
183
+ def to_body
184
+ to_hash
185
+ end
186
+
187
+ # Returns the object in the form of hash
188
+ # @return [Hash] Returns the object in the form of hash
189
+ def to_hash
190
+ hash = {}
191
+ self.class.attribute_map.each_pair do |attr, param|
192
+ value = self.send(attr)
193
+ if value.nil?
194
+ is_nullable = self.class.openapi_nullable.include?(attr)
195
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
196
+ end
197
+
198
+ hash[param] = _to_hash(value)
199
+ end
200
+ hash
201
+ end
202
+
203
+ # Outputs non-array value in the form of hash
204
+ # For object, use to_hash. Otherwise, just return the value
205
+ # @param [Object] value Any valid value
206
+ # @return [Hash] Returns the value in the form of hash
207
+ def _to_hash(value)
208
+ if value.is_a?(Array)
209
+ value.compact.map { |v| _to_hash(v) }
210
+ elsif value.is_a?(Hash)
211
+ {}.tap do |hash|
212
+ value.each { |k, v| hash[k] = _to_hash(v) }
213
+ end
214
+ elsif value.respond_to? :to_hash
215
+ value.to_hash
216
+ else
217
+ value
218
+ end
219
+ end
220
+ end
221
+ end
@@ -27,6 +27,9 @@ module MailSlurpClient
27
27
  # Name of the inbox and used as the sender name when sending emails .Displayed in the dashboard for easier search
28
28
  attr_accessor :name
29
29
 
30
+ # ID of custom domain used by the inbox if any
31
+ attr_accessor :domain_id
32
+
30
33
  # Description of an inbox for labelling and searching purposes
31
34
  attr_accessor :description
32
35
 
@@ -80,6 +83,7 @@ module MailSlurpClient
80
83
  :'user_id' => :'userId',
81
84
  :'created_at' => :'createdAt',
82
85
  :'name' => :'name',
86
+ :'domain_id' => :'domainId',
83
87
  :'description' => :'description',
84
88
  :'email_address' => :'emailAddress',
85
89
  :'expires_at' => :'expiresAt',
@@ -98,6 +102,7 @@ module MailSlurpClient
98
102
  :'user_id' => :'String',
99
103
  :'created_at' => :'DateTime',
100
104
  :'name' => :'String',
105
+ :'domain_id' => :'String',
101
106
  :'description' => :'String',
102
107
  :'email_address' => :'String',
103
108
  :'expires_at' => :'String',
@@ -146,6 +151,10 @@ module MailSlurpClient
146
151
  self.name = attributes[:'name']
147
152
  end
148
153
 
154
+ if attributes.key?(:'domain_id')
155
+ self.domain_id = attributes[:'domain_id']
156
+ end
157
+
149
158
  if attributes.key?(:'description')
150
159
  self.description = attributes[:'description']
151
160
  end
@@ -245,6 +254,7 @@ module MailSlurpClient
245
254
  user_id == o.user_id &&
246
255
  created_at == o.created_at &&
247
256
  name == o.name &&
257
+ domain_id == o.domain_id &&
248
258
  description == o.description &&
249
259
  email_address == o.email_address &&
250
260
  expires_at == o.expires_at &&
@@ -264,7 +274,7 @@ module MailSlurpClient
264
274
  # Calculates hash code according to all attributes.
265
275
  # @return [Integer] Hash code
266
276
  def hash
267
- [id, user_id, created_at, name, description, email_address, expires_at, favourite, tags, inbox_type, read_only, virtual_inbox].hash
277
+ [id, user_id, created_at, name, domain_id, description, email_address, expires_at, favourite, tags, inbox_type, read_only, virtual_inbox].hash
268
278
  end
269
279
 
270
280
  # Builds the object from hash
@@ -23,10 +23,10 @@ module MailSlurpClient
23
23
 
24
24
  attr_accessor :last
25
25
 
26
- attr_accessor :total_elements
27
-
28
26
  attr_accessor :total_pages
29
27
 
28
+ attr_accessor :total_elements
29
+
30
30
  attr_accessor :size
31
31
 
32
32
  attr_accessor :number
@@ -46,8 +46,8 @@ module MailSlurpClient
46
46
  :'pageable' => :'pageable',
47
47
  :'total' => :'total',
48
48
  :'last' => :'last',
49
- :'total_elements' => :'totalElements',
50
49
  :'total_pages' => :'totalPages',
50
+ :'total_elements' => :'totalElements',
51
51
  :'size' => :'size',
52
52
  :'number' => :'number',
53
53
  :'sort' => :'sort',
@@ -64,8 +64,8 @@ module MailSlurpClient
64
64
  :'pageable' => :'PageableObject',
65
65
  :'total' => :'Integer',
66
66
  :'last' => :'Boolean',
67
- :'total_elements' => :'Integer',
68
67
  :'total_pages' => :'Integer',
68
+ :'total_elements' => :'Integer',
69
69
  :'size' => :'Integer',
70
70
  :'number' => :'Integer',
71
71
  :'sort' => :'Sort',
@@ -114,14 +114,14 @@ module MailSlurpClient
114
114
  self.last = attributes[:'last']
115
115
  end
116
116
 
117
- if attributes.key?(:'total_elements')
118
- self.total_elements = attributes[:'total_elements']
119
- end
120
-
121
117
  if attributes.key?(:'total_pages')
122
118
  self.total_pages = attributes[:'total_pages']
123
119
  end
124
120
 
121
+ if attributes.key?(:'total_elements')
122
+ self.total_elements = attributes[:'total_elements']
123
+ end
124
+
125
125
  if attributes.key?(:'size')
126
126
  self.size = attributes[:'size']
127
127
  end
@@ -169,8 +169,8 @@ module MailSlurpClient
169
169
  pageable == o.pageable &&
170
170
  total == o.total &&
171
171
  last == o.last &&
172
- total_elements == o.total_elements &&
173
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 &&
@@ -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, last, total_elements, total_pages, size, number, sort, first, number_of_elements, empty].hash
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,10 +23,10 @@ module MailSlurpClient
23
23
 
24
24
  attr_accessor :last
25
25
 
26
- attr_accessor :total_elements
27
-
28
26
  attr_accessor :total_pages
29
27
 
28
+ attr_accessor :total_elements
29
+
30
30
  attr_accessor :size
31
31
 
32
32
  attr_accessor :number
@@ -46,8 +46,8 @@ module MailSlurpClient
46
46
  :'pageable' => :'pageable',
47
47
  :'total' => :'total',
48
48
  :'last' => :'last',
49
- :'total_elements' => :'totalElements',
50
49
  :'total_pages' => :'totalPages',
50
+ :'total_elements' => :'totalElements',
51
51
  :'size' => :'size',
52
52
  :'number' => :'number',
53
53
  :'sort' => :'sort',
@@ -64,8 +64,8 @@ module MailSlurpClient
64
64
  :'pageable' => :'PageableObject',
65
65
  :'total' => :'Integer',
66
66
  :'last' => :'Boolean',
67
- :'total_elements' => :'Integer',
68
67
  :'total_pages' => :'Integer',
68
+ :'total_elements' => :'Integer',
69
69
  :'size' => :'Integer',
70
70
  :'number' => :'Integer',
71
71
  :'sort' => :'Sort',
@@ -114,14 +114,14 @@ module MailSlurpClient
114
114
  self.last = attributes[:'last']
115
115
  end
116
116
 
117
- if attributes.key?(:'total_elements')
118
- self.total_elements = attributes[:'total_elements']
119
- end
120
-
121
117
  if attributes.key?(:'total_pages')
122
118
  self.total_pages = attributes[:'total_pages']
123
119
  end
124
120
 
121
+ if attributes.key?(:'total_elements')
122
+ self.total_elements = attributes[:'total_elements']
123
+ end
124
+
125
125
  if attributes.key?(:'size')
126
126
  self.size = attributes[:'size']
127
127
  end
@@ -169,8 +169,8 @@ module MailSlurpClient
169
169
  pageable == o.pageable &&
170
170
  total == o.total &&
171
171
  last == o.last &&
172
- total_elements == o.total_elements &&
173
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 &&
@@ -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, last, total_elements, total_pages, size, number, sort, first, number_of_elements, empty].hash
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,10 +23,10 @@ module MailSlurpClient
23
23
 
24
24
  attr_accessor :last
25
25
 
26
- attr_accessor :total_elements
27
-
28
26
  attr_accessor :total_pages
29
27
 
28
+ attr_accessor :total_elements
29
+
30
30
  attr_accessor :size
31
31
 
32
32
  attr_accessor :number
@@ -46,8 +46,8 @@ module MailSlurpClient
46
46
  :'pageable' => :'pageable',
47
47
  :'total' => :'total',
48
48
  :'last' => :'last',
49
- :'total_elements' => :'totalElements',
50
49
  :'total_pages' => :'totalPages',
50
+ :'total_elements' => :'totalElements',
51
51
  :'size' => :'size',
52
52
  :'number' => :'number',
53
53
  :'sort' => :'sort',
@@ -64,8 +64,8 @@ module MailSlurpClient
64
64
  :'pageable' => :'PageableObject',
65
65
  :'total' => :'Integer',
66
66
  :'last' => :'Boolean',
67
- :'total_elements' => :'Integer',
68
67
  :'total_pages' => :'Integer',
68
+ :'total_elements' => :'Integer',
69
69
  :'size' => :'Integer',
70
70
  :'number' => :'Integer',
71
71
  :'sort' => :'Sort',
@@ -114,14 +114,14 @@ module MailSlurpClient
114
114
  self.last = attributes[:'last']
115
115
  end
116
116
 
117
- if attributes.key?(:'total_elements')
118
- self.total_elements = attributes[:'total_elements']
119
- end
120
-
121
117
  if attributes.key?(:'total_pages')
122
118
  self.total_pages = attributes[:'total_pages']
123
119
  end
124
120
 
121
+ if attributes.key?(:'total_elements')
122
+ self.total_elements = attributes[:'total_elements']
123
+ end
124
+
125
125
  if attributes.key?(:'size')
126
126
  self.size = attributes[:'size']
127
127
  end
@@ -169,8 +169,8 @@ module MailSlurpClient
169
169
  pageable == o.pageable &&
170
170
  total == o.total &&
171
171
  last == o.last &&
172
- total_elements == o.total_elements &&
173
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 &&
@@ -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, last, total_elements, total_pages, size, number, sort, first, number_of_elements, empty].hash
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,10 +23,10 @@ module MailSlurpClient
23
23
 
24
24
  attr_accessor :last
25
25
 
26
- attr_accessor :total_elements
27
-
28
26
  attr_accessor :total_pages
29
27
 
28
+ attr_accessor :total_elements
29
+
30
30
  attr_accessor :size
31
31
 
32
32
  attr_accessor :number
@@ -46,8 +46,8 @@ module MailSlurpClient
46
46
  :'pageable' => :'pageable',
47
47
  :'total' => :'total',
48
48
  :'last' => :'last',
49
- :'total_elements' => :'totalElements',
50
49
  :'total_pages' => :'totalPages',
50
+ :'total_elements' => :'totalElements',
51
51
  :'size' => :'size',
52
52
  :'number' => :'number',
53
53
  :'sort' => :'sort',
@@ -60,12 +60,12 @@ module MailSlurpClient
60
60
  # Attribute type mapping.
61
61
  def self.openapi_types
62
62
  {
63
- :'content' => :'Array<BounceRecipient>',
63
+ :'content' => :'Array<BounceRecipientProjection>',
64
64
  :'pageable' => :'PageableObject',
65
65
  :'total' => :'Integer',
66
66
  :'last' => :'Boolean',
67
- :'total_elements' => :'Integer',
68
67
  :'total_pages' => :'Integer',
68
+ :'total_elements' => :'Integer',
69
69
  :'size' => :'Integer',
70
70
  :'number' => :'Integer',
71
71
  :'sort' => :'Sort',
@@ -114,14 +114,14 @@ module MailSlurpClient
114
114
  self.last = attributes[:'last']
115
115
  end
116
116
 
117
- if attributes.key?(:'total_elements')
118
- self.total_elements = attributes[:'total_elements']
119
- end
120
-
121
117
  if attributes.key?(:'total_pages')
122
118
  self.total_pages = attributes[:'total_pages']
123
119
  end
124
120
 
121
+ if attributes.key?(:'total_elements')
122
+ self.total_elements = attributes[:'total_elements']
123
+ end
124
+
125
125
  if attributes.key?(:'size')
126
126
  self.size = attributes[:'size']
127
127
  end
@@ -169,8 +169,8 @@ module MailSlurpClient
169
169
  pageable == o.pageable &&
170
170
  total == o.total &&
171
171
  last == o.last &&
172
- total_elements == o.total_elements &&
173
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 &&
@@ -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, last, total_elements, total_pages, size, number, sort, first, number_of_elements, empty].hash
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