mailslurp_client 15.13.0 → 15.13.1

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 (48) hide show
  1. checksums.yaml +4 -4
  2. data/lib/mailslurp_client/api/phone_controller_api.rb +64 -0
  3. data/lib/mailslurp_client/api/sms_controller_api.rb +3 -3
  4. data/lib/mailslurp_client/api/wait_for_controller_api.rb +64 -0
  5. data/lib/mailslurp_client/api/webhook_controller_api.rb +70 -0
  6. data/lib/mailslurp_client/models/alias_projection.rb +15 -15
  7. data/lib/mailslurp_client/models/bounce_projection.rb +10 -10
  8. data/lib/mailslurp_client/models/contact_projection.rb +13 -13
  9. data/lib/mailslurp_client/models/email_projection.rb +27 -27
  10. data/lib/mailslurp_client/models/expired_inbox_record_projection.rb +15 -15
  11. data/lib/mailslurp_client/models/page_alias.rb +10 -10
  12. data/lib/mailslurp_client/models/page_attachment_entity.rb +10 -10
  13. data/lib/mailslurp_client/models/page_bounced_email.rb +10 -10
  14. data/lib/mailslurp_client/models/page_bounced_recipients.rb +10 -10
  15. data/lib/mailslurp_client/models/page_complaint.rb +10 -10
  16. data/lib/mailslurp_client/models/page_contact_projection.rb +10 -10
  17. data/lib/mailslurp_client/models/page_delivery_status.rb +10 -10
  18. data/lib/mailslurp_client/models/page_email_preview.rb +10 -10
  19. data/lib/mailslurp_client/models/page_email_projection.rb +10 -10
  20. data/lib/mailslurp_client/models/page_email_validation_request.rb +10 -10
  21. data/lib/mailslurp_client/models/page_expired_inbox_record_projection.rb +10 -10
  22. data/lib/mailslurp_client/models/page_group_projection.rb +10 -10
  23. data/lib/mailslurp_client/models/page_inbox_forwarder_dto.rb +10 -10
  24. data/lib/mailslurp_client/models/page_inbox_projection.rb +10 -10
  25. data/lib/mailslurp_client/models/page_inbox_ruleset_dto.rb +10 -10
  26. data/lib/mailslurp_client/models/page_missed_email_projection.rb +10 -10
  27. data/lib/mailslurp_client/models/page_organization_inbox_projection.rb +10 -10
  28. data/lib/mailslurp_client/models/page_phone_number_projection.rb +10 -10
  29. data/lib/mailslurp_client/models/page_sent_email_projection.rb +16 -16
  30. data/lib/mailslurp_client/models/page_sent_email_with_queue_projection.rb +16 -16
  31. data/lib/mailslurp_client/models/page_sms_projection.rb +10 -10
  32. data/lib/mailslurp_client/models/page_template_projection.rb +10 -10
  33. data/lib/mailslurp_client/models/page_thread_projection.rb +10 -10
  34. data/lib/mailslurp_client/models/page_tracking_pixel_projection.rb +10 -10
  35. data/lib/mailslurp_client/models/page_unknown_missed_email_projection.rb +10 -10
  36. data/lib/mailslurp_client/models/page_webhook_projection.rb +10 -10
  37. data/lib/mailslurp_client/models/page_webhook_result.rb +10 -10
  38. data/lib/mailslurp_client/models/sent_email_projection.rb +15 -15
  39. data/lib/mailslurp_client/models/{sms_message.rb → sms_dto.rb} +9 -18
  40. data/lib/mailslurp_client/models/sms_preview.rb +15 -1
  41. data/lib/mailslurp_client/models/sms_projection.rb +32 -18
  42. data/lib/mailslurp_client/models/sort.rb +13 -13
  43. data/lib/mailslurp_client/models/test_phone_number_options.rb +211 -0
  44. data/lib/mailslurp_client/models/tracking_pixel_projection.rb +10 -10
  45. data/lib/mailslurp_client/models/wait_for_single_sms_options.rb +304 -0
  46. data/lib/mailslurp_client/version.rb +1 -1
  47. data/lib/mailslurp_client.rb +3 -1
  48. metadata +5 -3
@@ -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,14 +23,14 @@ module MailSlurpClient
23
23
 
24
24
  attr_accessor :subject
25
25
 
26
+ attr_accessor :created_at
27
+
26
28
  attr_accessor :inbox_id
27
29
 
28
30
  attr_accessor :attachments
29
31
 
30
32
  attr_accessor :to
31
33
 
32
- attr_accessor :created_at
33
-
34
34
  attr_accessor :bcc
35
35
 
36
36
  attr_accessor :cc
@@ -46,10 +46,10 @@ module MailSlurpClient
46
46
  :'from' => :'from',
47
47
  :'user_id' => :'userId',
48
48
  :'subject' => :'subject',
49
+ :'created_at' => :'createdAt',
49
50
  :'inbox_id' => :'inboxId',
50
51
  :'attachments' => :'attachments',
51
52
  :'to' => :'to',
52
- :'created_at' => :'createdAt',
53
53
  :'bcc' => :'bcc',
54
54
  :'cc' => :'cc',
55
55
  :'body_md5_hash' => :'bodyMD5Hash',
@@ -64,10 +64,10 @@ module MailSlurpClient
64
64
  :'from' => :'String',
65
65
  :'user_id' => :'String',
66
66
  :'subject' => :'String',
67
+ :'created_at' => :'DateTime',
67
68
  :'inbox_id' => :'String',
68
69
  :'attachments' => :'Array<String>',
69
70
  :'to' => :'Array<String>',
70
- :'created_at' => :'DateTime',
71
71
  :'bcc' => :'Array<String>',
72
72
  :'cc' => :'Array<String>',
73
73
  :'body_md5_hash' => :'String',
@@ -112,6 +112,10 @@ module MailSlurpClient
112
112
  self.subject = attributes[:'subject']
113
113
  end
114
114
 
115
+ if attributes.key?(:'created_at')
116
+ self.created_at = attributes[:'created_at']
117
+ end
118
+
115
119
  if attributes.key?(:'inbox_id')
116
120
  self.inbox_id = attributes[:'inbox_id']
117
121
  end
@@ -128,10 +132,6 @@ module MailSlurpClient
128
132
  end
129
133
  end
130
134
 
131
- if attributes.key?(:'created_at')
132
- self.created_at = attributes[:'created_at']
133
- end
134
-
135
135
  if attributes.key?(:'bcc')
136
136
  if (value = attributes[:'bcc']).is_a?(Array)
137
137
  self.bcc = value
@@ -165,6 +165,10 @@ module MailSlurpClient
165
165
  invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
166
166
  end
167
167
 
168
+ if @created_at.nil?
169
+ invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
170
+ end
171
+
168
172
  if @inbox_id.nil?
169
173
  invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
170
174
  end
@@ -177,10 +181,6 @@ module MailSlurpClient
177
181
  invalid_properties.push('invalid value for "to", to cannot be nil.')
178
182
  end
179
183
 
180
- if @created_at.nil?
181
- invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
182
- end
183
-
184
184
  if @bcc.nil?
185
185
  invalid_properties.push('invalid value for "bcc", bcc cannot be nil.')
186
186
  end
@@ -201,10 +201,10 @@ module MailSlurpClient
201
201
  def valid?
202
202
  return false if @id.nil?
203
203
  return false if @user_id.nil?
204
+ return false if @created_at.nil?
204
205
  return false if @inbox_id.nil?
205
206
  return false if @attachments.nil?
206
207
  return false if @to.nil?
207
- return false if @created_at.nil?
208
208
  return false if @bcc.nil?
209
209
  return false if @cc.nil?
210
210
  return false if @virtual_send.nil?
@@ -220,10 +220,10 @@ module MailSlurpClient
220
220
  from == o.from &&
221
221
  user_id == o.user_id &&
222
222
  subject == o.subject &&
223
+ created_at == o.created_at &&
223
224
  inbox_id == o.inbox_id &&
224
225
  attachments == o.attachments &&
225
226
  to == o.to &&
226
- created_at == o.created_at &&
227
227
  bcc == o.bcc &&
228
228
  cc == o.cc &&
229
229
  body_md5_hash == o.body_md5_hash &&
@@ -239,7 +239,7 @@ module MailSlurpClient
239
239
  # Calculates hash code according to all attributes.
240
240
  # @return [Integer] Hash code
241
241
  def hash
242
- [id, from, user_id, subject, inbox_id, attachments, to, created_at, bcc, cc, body_md5_hash, virtual_send].hash
242
+ [id, from, user_id, subject, created_at, inbox_id, attachments, to, bcc, cc, body_md5_hash, virtual_send].hash
243
243
  end
244
244
 
245
245
  # Builds the object from hash
@@ -13,7 +13,7 @@ OpenAPI Generator version: 4.3.1
13
13
  require 'date'
14
14
 
15
15
  module MailSlurpClient
16
- class SmsMessage
16
+ class SmsDto
17
17
  attr_accessor :id
18
18
 
19
19
  attr_accessor :user_id
@@ -26,8 +26,6 @@ module MailSlurpClient
26
26
 
27
27
  attr_accessor :read
28
28
 
29
- attr_accessor :sid
30
-
31
29
  attr_accessor :created_at
32
30
 
33
31
  attr_accessor :updated_at
@@ -41,7 +39,6 @@ module MailSlurpClient
41
39
  :'from_number' => :'fromNumber',
42
40
  :'body' => :'body',
43
41
  :'read' => :'read',
44
- :'sid' => :'sid',
45
42
  :'created_at' => :'createdAt',
46
43
  :'updated_at' => :'updatedAt'
47
44
  }
@@ -56,7 +53,6 @@ module MailSlurpClient
56
53
  :'from_number' => :'String',
57
54
  :'body' => :'String',
58
55
  :'read' => :'Boolean',
59
- :'sid' => :'String',
60
56
  :'created_at' => :'DateTime',
61
57
  :'updated_at' => :'DateTime'
62
58
  }
@@ -72,13 +68,13 @@ module MailSlurpClient
72
68
  # @param [Hash] attributes Model attributes in the form of hash
73
69
  def initialize(attributes = {})
74
70
  if (!attributes.is_a?(Hash))
75
- fail ArgumentError, "The input argument (attributes) must be a hash in `MailSlurpClient::SmsMessage` initialize method"
71
+ fail ArgumentError, "The input argument (attributes) must be a hash in `MailSlurpClient::SmsDto` initialize method"
76
72
  end
77
73
 
78
74
  # check to see if the attribute exists and convert string to symbol for hash key
79
75
  attributes = attributes.each_with_object({}) { |(k, v), h|
80
76
  if (!self.class.attribute_map.key?(k.to_sym))
81
- fail ArgumentError, "`#{k}` is not a valid attribute in `MailSlurpClient::SmsMessage`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
77
+ fail ArgumentError, "`#{k}` is not a valid attribute in `MailSlurpClient::SmsDto`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
82
78
  end
83
79
  h[k.to_sym] = v
84
80
  }
@@ -107,10 +103,6 @@ module MailSlurpClient
107
103
  self.read = attributes[:'read']
108
104
  end
109
105
 
110
- if attributes.key?(:'sid')
111
- self.sid = attributes[:'sid']
112
- end
113
-
114
106
  if attributes.key?(:'created_at')
115
107
  self.created_at = attributes[:'created_at']
116
108
  end
@@ -124,6 +116,10 @@ module MailSlurpClient
124
116
  # @return Array for valid properties with the reasons
125
117
  def list_invalid_properties
126
118
  invalid_properties = Array.new
119
+ if @id.nil?
120
+ invalid_properties.push('invalid value for "id", id cannot be nil.')
121
+ end
122
+
127
123
  if @user_id.nil?
128
124
  invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
129
125
  end
@@ -144,10 +140,6 @@ module MailSlurpClient
144
140
  invalid_properties.push('invalid value for "read", read cannot be nil.')
145
141
  end
146
142
 
147
- if @sid.nil?
148
- invalid_properties.push('invalid value for "sid", sid cannot be nil.')
149
- end
150
-
151
143
  if @created_at.nil?
152
144
  invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
153
145
  end
@@ -162,12 +154,12 @@ module MailSlurpClient
162
154
  # Check to see if the all the properties in the model are valid
163
155
  # @return true if the model is valid
164
156
  def valid?
157
+ return false if @id.nil?
165
158
  return false if @user_id.nil?
166
159
  return false if @phone_number.nil?
167
160
  return false if @from_number.nil?
168
161
  return false if @body.nil?
169
162
  return false if @read.nil?
170
- return false if @sid.nil?
171
163
  return false if @created_at.nil?
172
164
  return false if @updated_at.nil?
173
165
  true
@@ -184,7 +176,6 @@ module MailSlurpClient
184
176
  from_number == o.from_number &&
185
177
  body == o.body &&
186
178
  read == o.read &&
187
- sid == o.sid &&
188
179
  created_at == o.created_at &&
189
180
  updated_at == o.updated_at
190
181
  end
@@ -198,7 +189,7 @@ module MailSlurpClient
198
189
  # Calculates hash code according to all attributes.
199
190
  # @return [Integer] Hash code
200
191
  def hash
201
- [id, user_id, phone_number, from_number, body, read, sid, created_at, updated_at].hash
192
+ [id, user_id, phone_number, from_number, body, read, created_at, updated_at].hash
202
193
  end
203
194
 
204
195
  # Builds the object from hash
@@ -18,6 +18,8 @@ module MailSlurpClient
18
18
 
19
19
  attr_accessor :user_id
20
20
 
21
+ attr_accessor :body
22
+
21
23
  attr_accessor :phone_number
22
24
 
23
25
  attr_accessor :from_number
@@ -29,6 +31,7 @@ module MailSlurpClient
29
31
  {
30
32
  :'id' => :'id',
31
33
  :'user_id' => :'userId',
34
+ :'body' => :'body',
32
35
  :'phone_number' => :'phoneNumber',
33
36
  :'from_number' => :'fromNumber',
34
37
  :'created_at' => :'createdAt'
@@ -40,6 +43,7 @@ module MailSlurpClient
40
43
  {
41
44
  :'id' => :'String',
42
45
  :'user_id' => :'String',
46
+ :'body' => :'String',
43
47
  :'phone_number' => :'String',
44
48
  :'from_number' => :'String',
45
49
  :'created_at' => :'DateTime'
@@ -75,6 +79,10 @@ module MailSlurpClient
75
79
  self.user_id = attributes[:'user_id']
76
80
  end
77
81
 
82
+ if attributes.key?(:'body')
83
+ self.body = attributes[:'body']
84
+ end
85
+
78
86
  if attributes.key?(:'phone_number')
79
87
  self.phone_number = attributes[:'phone_number']
80
88
  end
@@ -100,6 +108,10 @@ module MailSlurpClient
100
108
  invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
101
109
  end
102
110
 
111
+ if @body.nil?
112
+ invalid_properties.push('invalid value for "body", body cannot be nil.')
113
+ end
114
+
103
115
  if @phone_number.nil?
104
116
  invalid_properties.push('invalid value for "phone_number", phone_number cannot be nil.')
105
117
  end
@@ -120,6 +132,7 @@ module MailSlurpClient
120
132
  def valid?
121
133
  return false if @id.nil?
122
134
  return false if @user_id.nil?
135
+ return false if @body.nil?
123
136
  return false if @phone_number.nil?
124
137
  return false if @from_number.nil?
125
138
  return false if @created_at.nil?
@@ -133,6 +146,7 @@ module MailSlurpClient
133
146
  self.class == o.class &&
134
147
  id == o.id &&
135
148
  user_id == o.user_id &&
149
+ body == o.body &&
136
150
  phone_number == o.phone_number &&
137
151
  from_number == o.from_number &&
138
152
  created_at == o.created_at
@@ -147,7 +161,7 @@ module MailSlurpClient
147
161
  # Calculates hash code according to all attributes.
148
162
  # @return [Integer] Hash code
149
163
  def hash
150
- [id, user_id, phone_number, from_number, created_at].hash
164
+ [id, user_id, body, phone_number, from_number, created_at].hash
151
165
  end
152
166
 
153
167
  # Builds the object from hash
@@ -17,25 +17,28 @@ module MailSlurpClient
17
17
  class SmsProjection
18
18
  attr_accessor :id
19
19
 
20
+ attr_accessor :body
21
+
20
22
  attr_accessor :user_id
21
23
 
22
24
  attr_accessor :phone_number
23
25
 
24
26
  attr_accessor :created_at
25
27
 
26
- attr_accessor :read
27
-
28
28
  attr_accessor :from_number
29
29
 
30
+ attr_accessor :read
31
+
30
32
  # Attribute mapping from ruby-style variable name to JSON key.
31
33
  def self.attribute_map
32
34
  {
33
35
  :'id' => :'id',
36
+ :'body' => :'body',
34
37
  :'user_id' => :'userId',
35
38
  :'phone_number' => :'phoneNumber',
36
39
  :'created_at' => :'createdAt',
37
- :'read' => :'read',
38
- :'from_number' => :'fromNumber'
40
+ :'from_number' => :'fromNumber',
41
+ :'read' => :'read'
39
42
  }
40
43
  end
41
44
 
@@ -43,11 +46,12 @@ module MailSlurpClient
43
46
  def self.openapi_types
44
47
  {
45
48
  :'id' => :'String',
49
+ :'body' => :'String',
46
50
  :'user_id' => :'String',
47
51
  :'phone_number' => :'String',
48
52
  :'created_at' => :'DateTime',
49
- :'read' => :'Boolean',
50
- :'from_number' => :'String'
53
+ :'from_number' => :'String',
54
+ :'read' => :'Boolean'
51
55
  }
52
56
  end
53
57
 
@@ -76,6 +80,10 @@ module MailSlurpClient
76
80
  self.id = attributes[:'id']
77
81
  end
78
82
 
83
+ if attributes.key?(:'body')
84
+ self.body = attributes[:'body']
85
+ end
86
+
79
87
  if attributes.key?(:'user_id')
80
88
  self.user_id = attributes[:'user_id']
81
89
  end
@@ -88,13 +96,13 @@ module MailSlurpClient
88
96
  self.created_at = attributes[:'created_at']
89
97
  end
90
98
 
91
- if attributes.key?(:'read')
92
- self.read = attributes[:'read']
93
- end
94
-
95
99
  if attributes.key?(:'from_number')
96
100
  self.from_number = attributes[:'from_number']
97
101
  end
102
+
103
+ if attributes.key?(:'read')
104
+ self.read = attributes[:'read']
105
+ end
98
106
  end
99
107
 
100
108
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -105,6 +113,10 @@ module MailSlurpClient
105
113
  invalid_properties.push('invalid value for "id", id cannot be nil.')
106
114
  end
107
115
 
116
+ if @body.nil?
117
+ invalid_properties.push('invalid value for "body", body cannot be nil.')
118
+ end
119
+
108
120
  if @user_id.nil?
109
121
  invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
110
122
  end
@@ -117,14 +129,14 @@ module MailSlurpClient
117
129
  invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
118
130
  end
119
131
 
120
- if @read.nil?
121
- invalid_properties.push('invalid value for "read", read cannot be nil.')
122
- end
123
-
124
132
  if @from_number.nil?
125
133
  invalid_properties.push('invalid value for "from_number", from_number cannot be nil.')
126
134
  end
127
135
 
136
+ if @read.nil?
137
+ invalid_properties.push('invalid value for "read", read cannot be nil.')
138
+ end
139
+
128
140
  invalid_properties
129
141
  end
130
142
 
@@ -132,11 +144,12 @@ module MailSlurpClient
132
144
  # @return true if the model is valid
133
145
  def valid?
134
146
  return false if @id.nil?
147
+ return false if @body.nil?
135
148
  return false if @user_id.nil?
136
149
  return false if @phone_number.nil?
137
150
  return false if @created_at.nil?
138
- return false if @read.nil?
139
151
  return false if @from_number.nil?
152
+ return false if @read.nil?
140
153
  true
141
154
  end
142
155
 
@@ -146,11 +159,12 @@ module MailSlurpClient
146
159
  return true if self.equal?(o)
147
160
  self.class == o.class &&
148
161
  id == o.id &&
162
+ body == o.body &&
149
163
  user_id == o.user_id &&
150
164
  phone_number == o.phone_number &&
151
165
  created_at == o.created_at &&
152
- read == o.read &&
153
- from_number == o.from_number
166
+ from_number == o.from_number &&
167
+ read == o.read
154
168
  end
155
169
 
156
170
  # @see the `==` method
@@ -162,7 +176,7 @@ module MailSlurpClient
162
176
  # Calculates hash code according to all attributes.
163
177
  # @return [Integer] Hash code
164
178
  def hash
165
- [id, user_id, phone_number, created_at, read, from_number].hash
179
+ [id, body, user_id, phone_number, created_at, from_number, read].hash
166
180
  end
167
181
 
168
182
  # Builds the object from hash
@@ -16,16 +16,16 @@ module MailSlurpClient
16
16
  class Sort
17
17
  attr_accessor :empty
18
18
 
19
- attr_accessor :sorted
20
-
21
19
  attr_accessor :unsorted
22
20
 
21
+ attr_accessor :sorted
22
+
23
23
  # Attribute mapping from ruby-style variable name to JSON key.
24
24
  def self.attribute_map
25
25
  {
26
26
  :'empty' => :'empty',
27
- :'sorted' => :'sorted',
28
- :'unsorted' => :'unsorted'
27
+ :'unsorted' => :'unsorted',
28
+ :'sorted' => :'sorted'
29
29
  }
30
30
  end
31
31
 
@@ -33,8 +33,8 @@ module MailSlurpClient
33
33
  def self.openapi_types
34
34
  {
35
35
  :'empty' => :'Boolean',
36
- :'sorted' => :'Boolean',
37
- :'unsorted' => :'Boolean'
36
+ :'unsorted' => :'Boolean',
37
+ :'sorted' => :'Boolean'
38
38
  }
39
39
  end
40
40
 
@@ -63,13 +63,13 @@ module MailSlurpClient
63
63
  self.empty = attributes[:'empty']
64
64
  end
65
65
 
66
- if attributes.key?(:'sorted')
67
- self.sorted = attributes[:'sorted']
68
- end
69
-
70
66
  if attributes.key?(:'unsorted')
71
67
  self.unsorted = attributes[:'unsorted']
72
68
  end
69
+
70
+ if attributes.key?(:'sorted')
71
+ self.sorted = attributes[:'sorted']
72
+ end
73
73
  end
74
74
 
75
75
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -91,8 +91,8 @@ module MailSlurpClient
91
91
  return true if self.equal?(o)
92
92
  self.class == o.class &&
93
93
  empty == o.empty &&
94
- sorted == o.sorted &&
95
- unsorted == o.unsorted
94
+ unsorted == o.unsorted &&
95
+ sorted == o.sorted
96
96
  end
97
97
 
98
98
  # @see the `==` method
@@ -104,7 +104,7 @@ module MailSlurpClient
104
104
  # Calculates hash code according to all attributes.
105
105
  # @return [Integer] Hash code
106
106
  def hash
107
- [empty, sorted, unsorted].hash
107
+ [empty, unsorted, sorted].hash
108
108
  end
109
109
 
110
110
  # Builds the object from hash