mailslurp_client 16.2.4 → 17.0.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.
Files changed (90) hide show
  1. checksums.yaml +4 -4
  2. data/lib/mailslurp_client/api/inbox_controller_api.rb +15 -15
  3. data/lib/mailslurp_client/api/{inbox_ruleset_controller_api.rb → ruleset_controller_api.rb} +184 -175
  4. data/lib/mailslurp_client/api/tools_controller_api.rb +62 -0
  5. data/lib/mailslurp_client/api/webhook_controller_api.rb +82 -0
  6. data/lib/mailslurp_client/models/ai_transform_dto.rb +19 -5
  7. data/lib/mailslurp_client/models/alias_projection.rb +29 -29
  8. data/lib/mailslurp_client/models/alias_thread_projection.rb +26 -26
  9. data/lib/mailslurp_client/models/attachment_projection.rb +21 -21
  10. data/lib/mailslurp_client/models/connector_projection.rb +15 -15
  11. data/lib/mailslurp_client/models/{create_inbox_ruleset_options.rb → create_ruleset_options.rb} +5 -5
  12. data/lib/mailslurp_client/models/email.rb +13 -13
  13. data/lib/mailslurp_client/models/email_projection.rb +11 -11
  14. data/lib/mailslurp_client/models/email_thread_projection.rb +29 -29
  15. data/lib/mailslurp_client/models/entity_automation_item_projection.rb +10 -10
  16. data/lib/mailslurp_client/models/guest_portal_user_projection.rb +24 -24
  17. data/lib/mailslurp_client/models/inbox_forwarder_event_projection.rb +11 -11
  18. data/lib/mailslurp_client/models/inbox_replier_event_projection.rb +11 -11
  19. data/lib/mailslurp_client/models/lookup_mx_records_options.rb +211 -0
  20. data/lib/mailslurp_client/models/lookup_mx_records_results.rb +245 -0
  21. data/lib/mailslurp_client/models/opt_in_identity_projection.rb +21 -21
  22. data/lib/mailslurp_client/models/page_ai_transform_mapping_projection.rb +10 -10
  23. data/lib/mailslurp_client/models/page_ai_transform_projection.rb +10 -10
  24. data/lib/mailslurp_client/models/page_ai_transform_result_projection.rb +10 -10
  25. data/lib/mailslurp_client/models/page_alias.rb +10 -10
  26. data/lib/mailslurp_client/models/page_alias_thread_projection.rb +10 -10
  27. data/lib/mailslurp_client/models/page_attachment_entity.rb +10 -10
  28. data/lib/mailslurp_client/models/page_bounced_email.rb +10 -10
  29. data/lib/mailslurp_client/models/page_bounced_recipients.rb +10 -10
  30. data/lib/mailslurp_client/models/page_complaint.rb +10 -10
  31. data/lib/mailslurp_client/models/page_connector.rb +10 -10
  32. data/lib/mailslurp_client/models/page_connector_events.rb +10 -10
  33. data/lib/mailslurp_client/models/page_contact_projection.rb +10 -10
  34. data/lib/mailslurp_client/models/page_delivery_status.rb +10 -10
  35. data/lib/mailslurp_client/models/page_email_preview.rb +10 -10
  36. data/lib/mailslurp_client/models/page_email_projection.rb +10 -10
  37. data/lib/mailslurp_client/models/page_email_thread_projection.rb +10 -10
  38. data/lib/mailslurp_client/models/page_email_validation_request.rb +10 -10
  39. data/lib/mailslurp_client/models/page_entity_automation_items.rb +10 -10
  40. data/lib/mailslurp_client/models/page_entity_event_items.rb +10 -10
  41. data/lib/mailslurp_client/models/page_entity_favourite_items.rb +10 -10
  42. data/lib/mailslurp_client/models/page_expired_inbox_record_projection.rb +10 -10
  43. data/lib/mailslurp_client/models/page_group_projection.rb +10 -10
  44. data/lib/mailslurp_client/models/page_guest_portal_users.rb +10 -10
  45. data/lib/mailslurp_client/models/page_inbox_forwarder_dto.rb +10 -10
  46. data/lib/mailslurp_client/models/page_inbox_forwarder_events.rb +10 -10
  47. data/lib/mailslurp_client/models/page_inbox_projection.rb +10 -10
  48. data/lib/mailslurp_client/models/page_inbox_replier_dto.rb +10 -10
  49. data/lib/mailslurp_client/models/page_inbox_replier_events.rb +10 -10
  50. data/lib/mailslurp_client/models/page_inbox_tags.rb +10 -10
  51. data/lib/mailslurp_client/models/page_list_unsubscribe_recipients.rb +10 -10
  52. data/lib/mailslurp_client/models/page_missed_email_projection.rb +10 -10
  53. data/lib/mailslurp_client/models/page_opt_in_identity_projection.rb +10 -10
  54. data/lib/mailslurp_client/models/page_organization_inbox_projection.rb +10 -10
  55. data/lib/mailslurp_client/models/page_phone_message_thread_item_projection.rb +10 -10
  56. data/lib/mailslurp_client/models/page_phone_message_thread_projection.rb +10 -10
  57. data/lib/mailslurp_client/models/page_phone_number_projection.rb +10 -10
  58. data/lib/mailslurp_client/models/page_plus_address_projection.rb +10 -10
  59. data/lib/mailslurp_client/models/page_reputation_items.rb +10 -10
  60. data/lib/mailslurp_client/models/{page_inbox_ruleset_dto.rb → page_ruleset_dto.rb} +15 -15
  61. data/lib/mailslurp_client/models/page_scheduled_jobs.rb +10 -10
  62. data/lib/mailslurp_client/models/page_sent_email_projection.rb +10 -10
  63. data/lib/mailslurp_client/models/page_sent_email_with_queue_projection.rb +10 -10
  64. data/lib/mailslurp_client/models/page_sent_sms_projection.rb +10 -10
  65. data/lib/mailslurp_client/models/page_sms_projection.rb +10 -10
  66. data/lib/mailslurp_client/models/page_template_projection.rb +10 -10
  67. data/lib/mailslurp_client/models/page_tracking_pixel_projection.rb +10 -10
  68. data/lib/mailslurp_client/models/page_unknown_missed_email_projection.rb +10 -10
  69. data/lib/mailslurp_client/models/page_webhook_endpoint_projection.rb +10 -10
  70. data/lib/mailslurp_client/models/page_webhook_projection.rb +10 -10
  71. data/lib/mailslurp_client/models/page_webhook_result.rb +10 -10
  72. data/lib/mailslurp_client/models/pageable_object.rb +13 -13
  73. data/lib/mailslurp_client/models/phone_message_thread_item_projection.rb +19 -19
  74. data/lib/mailslurp_client/models/phone_message_thread_projection.rb +27 -27
  75. data/lib/mailslurp_client/models/plus_address_projection.rb +24 -24
  76. data/lib/mailslurp_client/models/{inbox_ruleset_dto.rb → ruleset_dto.rb} +17 -7
  77. data/lib/mailslurp_client/models/{inbox_ruleset_test_options.rb → ruleset_test_options.rb} +3 -3
  78. data/lib/mailslurp_client/models/sent_email_projection.rb +52 -52
  79. data/lib/mailslurp_client/models/template_projection.rb +15 -15
  80. data/lib/mailslurp_client/models/test_inbox_ruleset_sending_options.rb +13 -7
  81. data/lib/mailslurp_client/models/test_new_inbox_ruleset_options.rb +11 -11
  82. data/lib/mailslurp_client/models/{test_inbox_ruleset_receiving_options.rb → test_ruleset_receiving_options.rb} +16 -10
  83. data/lib/mailslurp_client/models/{test_inbox_ruleset_receiving_result.rb → test_ruleset_receiving_result.rb} +3 -3
  84. data/lib/mailslurp_client/models/{test_inbox_ruleset_sending_result.rb → test_ruleset_sending_result.rb} +3 -3
  85. data/lib/mailslurp_client/models/tracking_pixel_projection.rb +10 -10
  86. data/lib/mailslurp_client/models/webhook_projection.rb +39 -30
  87. data/lib/mailslurp_client/models/webhook_result_dto.rb +15 -5
  88. data/lib/mailslurp_client/version.rb +1 -1
  89. data/lib/mailslurp_client.rb +10 -8
  90. metadata +12 -10
@@ -0,0 +1,245 @@
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 LookupMxRecordsResults
17
+ attr_accessor :records
18
+
19
+ attr_accessor :errors
20
+
21
+ attr_accessor :warnings
22
+
23
+ # Attribute mapping from ruby-style variable name to JSON key.
24
+ def self.attribute_map
25
+ {
26
+ :'records' => :'records',
27
+ :'errors' => :'errors',
28
+ :'warnings' => :'warnings'
29
+ }
30
+ end
31
+
32
+ # Attribute type mapping.
33
+ def self.openapi_types
34
+ {
35
+ :'records' => :'Array<DNSLookupResult>',
36
+ :'errors' => :'Array<String>',
37
+ :'warnings' => :'Array<String>'
38
+ }
39
+ end
40
+
41
+ # List of attributes with nullable: true
42
+ def self.openapi_nullable
43
+ Set.new([
44
+ ])
45
+ end
46
+
47
+ # Initializes the object
48
+ # @param [Hash] attributes Model attributes in the form of hash
49
+ def initialize(attributes = {})
50
+ if (!attributes.is_a?(Hash))
51
+ fail ArgumentError, "The input argument (attributes) must be a hash in `MailSlurpClient::LookupMxRecordsResults` initialize method"
52
+ end
53
+
54
+ # check to see if the attribute exists and convert string to symbol for hash key
55
+ attributes = attributes.each_with_object({}) { |(k, v), h|
56
+ if (!self.class.attribute_map.key?(k.to_sym))
57
+ fail ArgumentError, "`#{k}` is not a valid attribute in `MailSlurpClient::LookupMxRecordsResults`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
58
+ end
59
+ h[k.to_sym] = v
60
+ }
61
+
62
+ if attributes.key?(:'records')
63
+ if (value = attributes[:'records']).is_a?(Array)
64
+ self.records = value
65
+ end
66
+ end
67
+
68
+ if attributes.key?(:'errors')
69
+ if (value = attributes[:'errors']).is_a?(Array)
70
+ self.errors = value
71
+ end
72
+ end
73
+
74
+ if attributes.key?(:'warnings')
75
+ if (value = attributes[:'warnings']).is_a?(Array)
76
+ self.warnings = value
77
+ end
78
+ end
79
+ end
80
+
81
+ # Show invalid properties with the reasons. Usually used together with valid?
82
+ # @return Array for valid properties with the reasons
83
+ def list_invalid_properties
84
+ invalid_properties = Array.new
85
+ if @records.nil?
86
+ invalid_properties.push('invalid value for "records", records cannot be nil.')
87
+ end
88
+
89
+ if @errors.nil?
90
+ invalid_properties.push('invalid value for "errors", errors cannot be nil.')
91
+ end
92
+
93
+ if @warnings.nil?
94
+ invalid_properties.push('invalid value for "warnings", warnings cannot be nil.')
95
+ end
96
+
97
+ invalid_properties
98
+ end
99
+
100
+ # Check to see if the all the properties in the model are valid
101
+ # @return true if the model is valid
102
+ def valid?
103
+ return false if @records.nil?
104
+ return false if @errors.nil?
105
+ return false if @warnings.nil?
106
+ true
107
+ end
108
+
109
+ # Checks equality by comparing each attribute.
110
+ # @param [Object] Object to be compared
111
+ def ==(o)
112
+ return true if self.equal?(o)
113
+ self.class == o.class &&
114
+ records == o.records &&
115
+ errors == o.errors &&
116
+ warnings == o.warnings
117
+ end
118
+
119
+ # @see the `==` method
120
+ # @param [Object] Object to be compared
121
+ def eql?(o)
122
+ self == o
123
+ end
124
+
125
+ # Calculates hash code according to all attributes.
126
+ # @return [Integer] Hash code
127
+ def hash
128
+ [records, errors, warnings].hash
129
+ end
130
+
131
+ # Builds the object from hash
132
+ # @param [Hash] attributes Model attributes in the form of hash
133
+ # @return [Object] Returns the model itself
134
+ def self.build_from_hash(attributes)
135
+ new.build_from_hash(attributes)
136
+ end
137
+
138
+ # Builds the object from hash
139
+ # @param [Hash] attributes Model attributes in the form of hash
140
+ # @return [Object] Returns the model itself
141
+ def build_from_hash(attributes)
142
+ return nil unless attributes.is_a?(Hash)
143
+ self.class.openapi_types.each_pair do |key, type|
144
+ if type =~ /\AArray<(.*)>/i
145
+ # check to ensure the input is an array given that the attribute
146
+ # is documented as an array but the input is not
147
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
148
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
149
+ end
150
+ elsif !attributes[self.class.attribute_map[key]].nil?
151
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
152
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
153
+ end
154
+
155
+ self
156
+ end
157
+
158
+ # Deserializes the data based on type
159
+ # @param string type Data type
160
+ # @param string value Value to be deserialized
161
+ # @return [Object] Deserialized data
162
+ def _deserialize(type, value)
163
+ case type.to_sym
164
+ when :DateTime
165
+ DateTime.parse(value)
166
+ when :Date
167
+ Date.parse(value)
168
+ when :String
169
+ value.to_s
170
+ when :Integer
171
+ value.to_i
172
+ when :Float
173
+ value.to_f
174
+ when :Boolean
175
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
176
+ true
177
+ else
178
+ false
179
+ end
180
+ when :Object
181
+ # generic object (usually a Hash), return directly
182
+ value
183
+ when /\AArray<(?<inner_type>.+)>\z/
184
+ inner_type = Regexp.last_match[:inner_type]
185
+ value.map { |v| _deserialize(inner_type, v) }
186
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
187
+ k_type = Regexp.last_match[:k_type]
188
+ v_type = Regexp.last_match[:v_type]
189
+ {}.tap do |hash|
190
+ value.each do |k, v|
191
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
192
+ end
193
+ end
194
+ else # model
195
+ MailSlurpClient.const_get(type).build_from_hash(value)
196
+ end
197
+ end
198
+
199
+ # Returns the string representation of the object
200
+ # @return [String] String presentation of the object
201
+ def to_s
202
+ to_hash.to_s
203
+ end
204
+
205
+ # to_body is an alias to to_hash (backward compatibility)
206
+ # @return [Hash] Returns the object in the form of hash
207
+ def to_body
208
+ to_hash
209
+ end
210
+
211
+ # Returns the object in the form of hash
212
+ # @return [Hash] Returns the object in the form of hash
213
+ def to_hash
214
+ hash = {}
215
+ self.class.attribute_map.each_pair do |attr, param|
216
+ value = self.send(attr)
217
+ if value.nil?
218
+ is_nullable = self.class.openapi_nullable.include?(attr)
219
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
220
+ end
221
+
222
+ hash[param] = _to_hash(value)
223
+ end
224
+ hash
225
+ end
226
+
227
+ # Outputs non-array value in the form of hash
228
+ # For object, use to_hash. Otherwise, just return the value
229
+ # @param [Object] value Any valid value
230
+ # @return [Hash] Returns the value in the form of hash
231
+ def _to_hash(value)
232
+ if value.is_a?(Array)
233
+ value.compact.map { |v| _to_hash(v) }
234
+ elsif value.is_a?(Hash)
235
+ {}.tap do |hash|
236
+ value.each { |k, v| hash[k] = _to_hash(v) }
237
+ end
238
+ elsif value.respond_to? :to_hash
239
+ value.to_hash
240
+ else
241
+ value
242
+ end
243
+ end
244
+ end
245
+ end
@@ -16,22 +16,22 @@ module MailSlurpClient
16
16
  class OptInIdentityProjection
17
17
  attr_accessor :id
18
18
 
19
- attr_accessor :email_address
19
+ attr_accessor :verified
20
20
 
21
- attr_accessor :updated_at
21
+ attr_accessor :email_address
22
22
 
23
23
  attr_accessor :created_at
24
24
 
25
- attr_accessor :verified
25
+ attr_accessor :updated_at
26
26
 
27
27
  # Attribute mapping from ruby-style variable name to JSON key.
28
28
  def self.attribute_map
29
29
  {
30
30
  :'id' => :'id',
31
+ :'verified' => :'verified',
31
32
  :'email_address' => :'emailAddress',
32
- :'updated_at' => :'updatedAt',
33
33
  :'created_at' => :'createdAt',
34
- :'verified' => :'verified'
34
+ :'updated_at' => :'updatedAt'
35
35
  }
36
36
  end
37
37
 
@@ -39,10 +39,10 @@ module MailSlurpClient
39
39
  def self.openapi_types
40
40
  {
41
41
  :'id' => :'String',
42
+ :'verified' => :'Boolean',
42
43
  :'email_address' => :'String',
43
- :'updated_at' => :'DateTime',
44
44
  :'created_at' => :'DateTime',
45
- :'verified' => :'Boolean'
45
+ :'updated_at' => :'DateTime'
46
46
  }
47
47
  end
48
48
 
@@ -71,20 +71,20 @@ module MailSlurpClient
71
71
  self.id = attributes[:'id']
72
72
  end
73
73
 
74
- if attributes.key?(:'email_address')
75
- self.email_address = attributes[:'email_address']
74
+ if attributes.key?(:'verified')
75
+ self.verified = attributes[:'verified']
76
76
  end
77
77
 
78
- if attributes.key?(:'updated_at')
79
- self.updated_at = attributes[:'updated_at']
78
+ if attributes.key?(:'email_address')
79
+ self.email_address = attributes[:'email_address']
80
80
  end
81
81
 
82
82
  if attributes.key?(:'created_at')
83
83
  self.created_at = attributes[:'created_at']
84
84
  end
85
85
 
86
- if attributes.key?(:'verified')
87
- self.verified = attributes[:'verified']
86
+ if attributes.key?(:'updated_at')
87
+ self.updated_at = attributes[:'updated_at']
88
88
  end
89
89
  end
90
90
 
@@ -100,14 +100,14 @@ module MailSlurpClient
100
100
  invalid_properties.push('invalid value for "email_address", email_address cannot be nil.')
101
101
  end
102
102
 
103
- if @updated_at.nil?
104
- invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
105
- end
106
-
107
103
  if @created_at.nil?
108
104
  invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
109
105
  end
110
106
 
107
+ if @updated_at.nil?
108
+ invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
109
+ end
110
+
111
111
  invalid_properties
112
112
  end
113
113
 
@@ -116,8 +116,8 @@ module MailSlurpClient
116
116
  def valid?
117
117
  return false if @id.nil?
118
118
  return false if @email_address.nil?
119
- return false if @updated_at.nil?
120
119
  return false if @created_at.nil?
120
+ return false if @updated_at.nil?
121
121
  true
122
122
  end
123
123
 
@@ -127,10 +127,10 @@ module MailSlurpClient
127
127
  return true if self.equal?(o)
128
128
  self.class == o.class &&
129
129
  id == o.id &&
130
+ verified == o.verified &&
130
131
  email_address == o.email_address &&
131
- updated_at == o.updated_at &&
132
132
  created_at == o.created_at &&
133
- verified == o.verified
133
+ updated_at == o.updated_at
134
134
  end
135
135
 
136
136
  # @see the `==` method
@@ -142,7 +142,7 @@ module MailSlurpClient
142
142
  # Calculates hash code according to all attributes.
143
143
  # @return [Integer] Hash code
144
144
  def hash
145
- [id, email_address, updated_at, created_at, verified].hash
145
+ [id, verified, email_address, created_at, updated_at].hash
146
146
  end
147
147
 
148
148
  # Builds the object from hash
@@ -27,14 +27,14 @@ module MailSlurpClient
27
27
 
28
28
  attr_accessor :number_of_elements
29
29
 
30
+ attr_accessor :sort
31
+
30
32
  attr_accessor :first
31
33
 
32
34
  attr_accessor :size
33
35
 
34
36
  attr_accessor :number
35
37
 
36
- attr_accessor :sort
37
-
38
38
  attr_accessor :empty
39
39
 
40
40
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -46,10 +46,10 @@ module MailSlurpClient
46
46
  :'total_pages' => :'totalPages',
47
47
  :'last' => :'last',
48
48
  :'number_of_elements' => :'numberOfElements',
49
+ :'sort' => :'sort',
49
50
  :'first' => :'first',
50
51
  :'size' => :'size',
51
52
  :'number' => :'number',
52
- :'sort' => :'sort',
53
53
  :'empty' => :'empty'
54
54
  }
55
55
  end
@@ -63,10 +63,10 @@ module MailSlurpClient
63
63
  :'total_pages' => :'Integer',
64
64
  :'last' => :'Boolean',
65
65
  :'number_of_elements' => :'Integer',
66
+ :'sort' => :'SortObject',
66
67
  :'first' => :'Boolean',
67
68
  :'size' => :'Integer',
68
69
  :'number' => :'Integer',
69
- :'sort' => :'SortObject',
70
70
  :'empty' => :'Boolean'
71
71
  }
72
72
  end
@@ -118,6 +118,10 @@ module MailSlurpClient
118
118
  self.number_of_elements = attributes[:'number_of_elements']
119
119
  end
120
120
 
121
+ if attributes.key?(:'sort')
122
+ self.sort = attributes[:'sort']
123
+ end
124
+
121
125
  if attributes.key?(:'first')
122
126
  self.first = attributes[:'first']
123
127
  end
@@ -130,10 +134,6 @@ module MailSlurpClient
130
134
  self.number = attributes[:'number']
131
135
  end
132
136
 
133
- if attributes.key?(:'sort')
134
- self.sort = attributes[:'sort']
135
- end
136
-
137
137
  if attributes.key?(:'empty')
138
138
  self.empty = attributes[:'empty']
139
139
  end
@@ -173,10 +173,10 @@ module MailSlurpClient
173
173
  total_pages == o.total_pages &&
174
174
  last == o.last &&
175
175
  number_of_elements == o.number_of_elements &&
176
+ sort == o.sort &&
176
177
  first == o.first &&
177
178
  size == o.size &&
178
179
  number == o.number &&
179
- sort == o.sort &&
180
180
  empty == o.empty
181
181
  end
182
182
 
@@ -189,7 +189,7 @@ module MailSlurpClient
189
189
  # Calculates hash code according to all attributes.
190
190
  # @return [Integer] Hash code
191
191
  def hash
192
- [content, pageable, total_elements, total_pages, last, number_of_elements, first, size, number, sort, empty].hash
192
+ [content, pageable, total_elements, total_pages, last, number_of_elements, sort, first, size, number, empty].hash
193
193
  end
194
194
 
195
195
  # Builds the object from hash
@@ -27,14 +27,14 @@ module MailSlurpClient
27
27
 
28
28
  attr_accessor :number_of_elements
29
29
 
30
+ attr_accessor :sort
31
+
30
32
  attr_accessor :first
31
33
 
32
34
  attr_accessor :size
33
35
 
34
36
  attr_accessor :number
35
37
 
36
- attr_accessor :sort
37
-
38
38
  attr_accessor :empty
39
39
 
40
40
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -46,10 +46,10 @@ module MailSlurpClient
46
46
  :'total_pages' => :'totalPages',
47
47
  :'last' => :'last',
48
48
  :'number_of_elements' => :'numberOfElements',
49
+ :'sort' => :'sort',
49
50
  :'first' => :'first',
50
51
  :'size' => :'size',
51
52
  :'number' => :'number',
52
- :'sort' => :'sort',
53
53
  :'empty' => :'empty'
54
54
  }
55
55
  end
@@ -63,10 +63,10 @@ module MailSlurpClient
63
63
  :'total_pages' => :'Integer',
64
64
  :'last' => :'Boolean',
65
65
  :'number_of_elements' => :'Integer',
66
+ :'sort' => :'SortObject',
66
67
  :'first' => :'Boolean',
67
68
  :'size' => :'Integer',
68
69
  :'number' => :'Integer',
69
- :'sort' => :'SortObject',
70
70
  :'empty' => :'Boolean'
71
71
  }
72
72
  end
@@ -118,6 +118,10 @@ module MailSlurpClient
118
118
  self.number_of_elements = attributes[:'number_of_elements']
119
119
  end
120
120
 
121
+ if attributes.key?(:'sort')
122
+ self.sort = attributes[:'sort']
123
+ end
124
+
121
125
  if attributes.key?(:'first')
122
126
  self.first = attributes[:'first']
123
127
  end
@@ -130,10 +134,6 @@ module MailSlurpClient
130
134
  self.number = attributes[:'number']
131
135
  end
132
136
 
133
- if attributes.key?(:'sort')
134
- self.sort = attributes[:'sort']
135
- end
136
-
137
137
  if attributes.key?(:'empty')
138
138
  self.empty = attributes[:'empty']
139
139
  end
@@ -173,10 +173,10 @@ module MailSlurpClient
173
173
  total_pages == o.total_pages &&
174
174
  last == o.last &&
175
175
  number_of_elements == o.number_of_elements &&
176
+ sort == o.sort &&
176
177
  first == o.first &&
177
178
  size == o.size &&
178
179
  number == o.number &&
179
- sort == o.sort &&
180
180
  empty == o.empty
181
181
  end
182
182
 
@@ -189,7 +189,7 @@ module MailSlurpClient
189
189
  # Calculates hash code according to all attributes.
190
190
  # @return [Integer] Hash code
191
191
  def hash
192
- [content, pageable, total_elements, total_pages, last, number_of_elements, first, size, number, sort, empty].hash
192
+ [content, pageable, total_elements, total_pages, last, number_of_elements, sort, first, size, number, empty].hash
193
193
  end
194
194
 
195
195
  # Builds the object from hash
@@ -27,14 +27,14 @@ module MailSlurpClient
27
27
 
28
28
  attr_accessor :number_of_elements
29
29
 
30
+ attr_accessor :sort
31
+
30
32
  attr_accessor :first
31
33
 
32
34
  attr_accessor :size
33
35
 
34
36
  attr_accessor :number
35
37
 
36
- attr_accessor :sort
37
-
38
38
  attr_accessor :empty
39
39
 
40
40
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -46,10 +46,10 @@ module MailSlurpClient
46
46
  :'total_pages' => :'totalPages',
47
47
  :'last' => :'last',
48
48
  :'number_of_elements' => :'numberOfElements',
49
+ :'sort' => :'sort',
49
50
  :'first' => :'first',
50
51
  :'size' => :'size',
51
52
  :'number' => :'number',
52
- :'sort' => :'sort',
53
53
  :'empty' => :'empty'
54
54
  }
55
55
  end
@@ -63,10 +63,10 @@ module MailSlurpClient
63
63
  :'total_pages' => :'Integer',
64
64
  :'last' => :'Boolean',
65
65
  :'number_of_elements' => :'Integer',
66
+ :'sort' => :'SortObject',
66
67
  :'first' => :'Boolean',
67
68
  :'size' => :'Integer',
68
69
  :'number' => :'Integer',
69
- :'sort' => :'SortObject',
70
70
  :'empty' => :'Boolean'
71
71
  }
72
72
  end
@@ -118,6 +118,10 @@ module MailSlurpClient
118
118
  self.number_of_elements = attributes[:'number_of_elements']
119
119
  end
120
120
 
121
+ if attributes.key?(:'sort')
122
+ self.sort = attributes[:'sort']
123
+ end
124
+
121
125
  if attributes.key?(:'first')
122
126
  self.first = attributes[:'first']
123
127
  end
@@ -130,10 +134,6 @@ module MailSlurpClient
130
134
  self.number = attributes[:'number']
131
135
  end
132
136
 
133
- if attributes.key?(:'sort')
134
- self.sort = attributes[:'sort']
135
- end
136
-
137
137
  if attributes.key?(:'empty')
138
138
  self.empty = attributes[:'empty']
139
139
  end
@@ -173,10 +173,10 @@ module MailSlurpClient
173
173
  total_pages == o.total_pages &&
174
174
  last == o.last &&
175
175
  number_of_elements == o.number_of_elements &&
176
+ sort == o.sort &&
176
177
  first == o.first &&
177
178
  size == o.size &&
178
179
  number == o.number &&
179
- sort == o.sort &&
180
180
  empty == o.empty
181
181
  end
182
182
 
@@ -189,7 +189,7 @@ module MailSlurpClient
189
189
  # Calculates hash code according to all attributes.
190
190
  # @return [Integer] Hash code
191
191
  def hash
192
- [content, pageable, total_elements, total_pages, last, number_of_elements, first, size, number, sort, empty].hash
192
+ [content, pageable, total_elements, total_pages, last, number_of_elements, sort, first, size, number, empty].hash
193
193
  end
194
194
 
195
195
  # Builds the object from hash
@@ -27,14 +27,14 @@ module MailSlurpClient
27
27
 
28
28
  attr_accessor :number_of_elements
29
29
 
30
+ attr_accessor :sort
31
+
30
32
  attr_accessor :first
31
33
 
32
34
  attr_accessor :size
33
35
 
34
36
  attr_accessor :number
35
37
 
36
- attr_accessor :sort
37
-
38
38
  attr_accessor :empty
39
39
 
40
40
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -46,10 +46,10 @@ module MailSlurpClient
46
46
  :'total_pages' => :'totalPages',
47
47
  :'last' => :'last',
48
48
  :'number_of_elements' => :'numberOfElements',
49
+ :'sort' => :'sort',
49
50
  :'first' => :'first',
50
51
  :'size' => :'size',
51
52
  :'number' => :'number',
52
- :'sort' => :'sort',
53
53
  :'empty' => :'empty'
54
54
  }
55
55
  end
@@ -63,10 +63,10 @@ module MailSlurpClient
63
63
  :'total_pages' => :'Integer',
64
64
  :'last' => :'Boolean',
65
65
  :'number_of_elements' => :'Integer',
66
+ :'sort' => :'SortObject',
66
67
  :'first' => :'Boolean',
67
68
  :'size' => :'Integer',
68
69
  :'number' => :'Integer',
69
- :'sort' => :'SortObject',
70
70
  :'empty' => :'Boolean'
71
71
  }
72
72
  end
@@ -118,6 +118,10 @@ module MailSlurpClient
118
118
  self.number_of_elements = attributes[:'number_of_elements']
119
119
  end
120
120
 
121
+ if attributes.key?(:'sort')
122
+ self.sort = attributes[:'sort']
123
+ end
124
+
121
125
  if attributes.key?(:'first')
122
126
  self.first = attributes[:'first']
123
127
  end
@@ -130,10 +134,6 @@ module MailSlurpClient
130
134
  self.number = attributes[:'number']
131
135
  end
132
136
 
133
- if attributes.key?(:'sort')
134
- self.sort = attributes[:'sort']
135
- end
136
-
137
137
  if attributes.key?(:'empty')
138
138
  self.empty = attributes[:'empty']
139
139
  end
@@ -173,10 +173,10 @@ module MailSlurpClient
173
173
  total_pages == o.total_pages &&
174
174
  last == o.last &&
175
175
  number_of_elements == o.number_of_elements &&
176
+ sort == o.sort &&
176
177
  first == o.first &&
177
178
  size == o.size &&
178
179
  number == o.number &&
179
- sort == o.sort &&
180
180
  empty == o.empty
181
181
  end
182
182
 
@@ -189,7 +189,7 @@ module MailSlurpClient
189
189
  # Calculates hash code according to all attributes.
190
190
  # @return [Integer] Hash code
191
191
  def hash
192
- [content, pageable, total_elements, total_pages, last, number_of_elements, first, size, number, sort, empty].hash
192
+ [content, pageable, total_elements, total_pages, last, number_of_elements, sort, first, size, number, empty].hash
193
193
  end
194
194
 
195
195
  # Builds the object from hash