mailslurp_client 15.19.21 → 15.19.22

Sign up to get free protection for your applications and to get access to all the features.
Files changed (66) hide show
  1. checksums.yaml +4 -4
  2. data/lib/mailslurp_client/api/imap_controller_api.rb +61 -0
  3. data/lib/mailslurp_client/api/inbox_controller_api.rb +63 -0
  4. data/lib/mailslurp_client/models/alias_projection.rb +38 -38
  5. data/lib/mailslurp_client/models/attachment_projection.rb +29 -29
  6. data/lib/mailslurp_client/models/bounce_projection.rb +22 -22
  7. data/lib/mailslurp_client/models/bounce_recipient_projection.rb +22 -22
  8. data/lib/mailslurp_client/models/connector_projection.rb +24 -24
  9. data/lib/mailslurp_client/models/connector_sync_event_projection.rb +15 -15
  10. data/lib/mailslurp_client/models/contact_projection.rb +10 -10
  11. data/lib/mailslurp_client/models/domain_name_record.rb +16 -4
  12. data/lib/mailslurp_client/models/email_available_result.rb +211 -0
  13. data/lib/mailslurp_client/models/email_projection.rb +15 -15
  14. data/lib/mailslurp_client/models/expired_inbox_record_projection.rb +15 -15
  15. data/lib/mailslurp_client/models/imap_email_projection.rb +15 -15
  16. data/lib/mailslurp_client/models/imap_server_mailbox_result.rb +221 -0
  17. data/lib/mailslurp_client/models/inbox_forwarder_event_projection.rb +10 -10
  18. data/lib/mailslurp_client/models/inbox_replier_event_projection.rb +20 -20
  19. data/lib/mailslurp_client/models/list_unsubscribe_recipient_projection.rb +15 -15
  20. data/lib/mailslurp_client/models/missed_email_projection.rb +10 -10
  21. data/lib/mailslurp_client/models/page_alias.rb +10 -10
  22. data/lib/mailslurp_client/models/page_attachment_entity.rb +10 -10
  23. data/lib/mailslurp_client/models/page_bounced_email.rb +10 -10
  24. data/lib/mailslurp_client/models/page_bounced_recipients.rb +10 -10
  25. data/lib/mailslurp_client/models/page_complaint.rb +10 -10
  26. data/lib/mailslurp_client/models/page_connector.rb +10 -10
  27. data/lib/mailslurp_client/models/page_connector_sync_events.rb +10 -10
  28. data/lib/mailslurp_client/models/page_contact_projection.rb +10 -10
  29. data/lib/mailslurp_client/models/page_delivery_status.rb +10 -10
  30. data/lib/mailslurp_client/models/page_email_preview.rb +10 -10
  31. data/lib/mailslurp_client/models/page_email_projection.rb +10 -10
  32. data/lib/mailslurp_client/models/page_email_validation_request.rb +10 -10
  33. data/lib/mailslurp_client/models/page_expired_inbox_record_projection.rb +10 -10
  34. data/lib/mailslurp_client/models/page_group_projection.rb +10 -10
  35. data/lib/mailslurp_client/models/page_inbox_forwarder_dto.rb +10 -10
  36. data/lib/mailslurp_client/models/page_inbox_forwarder_events.rb +10 -10
  37. data/lib/mailslurp_client/models/page_inbox_projection.rb +10 -10
  38. data/lib/mailslurp_client/models/page_inbox_replier_dto.rb +10 -10
  39. data/lib/mailslurp_client/models/page_inbox_replier_events.rb +10 -10
  40. data/lib/mailslurp_client/models/page_inbox_ruleset_dto.rb +10 -10
  41. data/lib/mailslurp_client/models/page_list_unsubscribe_recipients.rb +10 -10
  42. data/lib/mailslurp_client/models/page_missed_email_projection.rb +10 -10
  43. data/lib/mailslurp_client/models/page_organization_inbox_projection.rb +10 -10
  44. data/lib/mailslurp_client/models/page_phone_number_projection.rb +10 -10
  45. data/lib/mailslurp_client/models/page_scheduled_jobs.rb +10 -10
  46. data/lib/mailslurp_client/models/page_sent_email_projection.rb +10 -10
  47. data/lib/mailslurp_client/models/page_sent_email_with_queue_projection.rb +10 -10
  48. data/lib/mailslurp_client/models/page_sms_projection.rb +10 -10
  49. data/lib/mailslurp_client/models/page_template_projection.rb +10 -10
  50. data/lib/mailslurp_client/models/page_thread_projection.rb +10 -10
  51. data/lib/mailslurp_client/models/page_tracking_pixel_projection.rb +10 -10
  52. data/lib/mailslurp_client/models/page_unknown_missed_email_projection.rb +10 -10
  53. data/lib/mailslurp_client/models/page_webhook_projection.rb +10 -10
  54. data/lib/mailslurp_client/models/page_webhook_result.rb +10 -10
  55. data/lib/mailslurp_client/models/pageable_object.rb +10 -10
  56. data/lib/mailslurp_client/models/phone_number_projection.rb +15 -15
  57. data/lib/mailslurp_client/models/sent_email_projection.rb +15 -15
  58. data/lib/mailslurp_client/models/sms_projection.rb +29 -29
  59. data/lib/mailslurp_client/models/template_projection.rb +17 -17
  60. data/lib/mailslurp_client/models/thread_projection.rb +31 -31
  61. data/lib/mailslurp_client/models/tracking_pixel_projection.rb +15 -15
  62. data/lib/mailslurp_client/models/unknown_missed_email_projection.rb +10 -10
  63. data/lib/mailslurp_client/models/webhook_projection.rb +25 -25
  64. data/lib/mailslurp_client/version.rb +1 -1
  65. data/lib/mailslurp_client.rb +2 -0
  66. metadata +4 -2
@@ -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
+ class ImapServerMailboxResult
17
+ attr_accessor :message
18
+
19
+ attr_accessor :success
20
+
21
+ # Attribute mapping from ruby-style variable name to JSON key.
22
+ def self.attribute_map
23
+ {
24
+ :'message' => :'message',
25
+ :'success' => :'success'
26
+ }
27
+ end
28
+
29
+ # Attribute type mapping.
30
+ def self.openapi_types
31
+ {
32
+ :'message' => :'String',
33
+ :'success' => :'Boolean'
34
+ }
35
+ end
36
+
37
+ # List of attributes with nullable: true
38
+ def self.openapi_nullable
39
+ Set.new([
40
+ :'message',
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::ImapServerMailboxResult` 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::ImapServerMailboxResult`. 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?(:'message')
60
+ self.message = attributes[:'message']
61
+ end
62
+
63
+ if attributes.key?(:'success')
64
+ self.success = attributes[:'success']
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 @success.nil?
73
+ invalid_properties.push('invalid value for "success", success 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 @success.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
+ message == o.message &&
92
+ success == o.success
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
+ [message, success].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
@@ -15,6 +15,8 @@ require 'date'
15
15
  module MailSlurpClient
16
16
  # Inbox forwarder event
17
17
  class InboxForwarderEventProjection
18
+ attr_accessor :created_at
19
+
18
20
  attr_accessor :email_id
19
21
 
20
22
  attr_accessor :inbox_id
@@ -23,8 +25,6 @@ module MailSlurpClient
23
25
 
24
26
  attr_accessor :forwarder_id
25
27
 
26
- attr_accessor :created_at
27
-
28
28
  attr_accessor :message
29
29
 
30
30
  attr_accessor :id
@@ -56,11 +56,11 @@ module MailSlurpClient
56
56
  # Attribute mapping from ruby-style variable name to JSON key.
57
57
  def self.attribute_map
58
58
  {
59
+ :'created_at' => :'createdAt',
59
60
  :'email_id' => :'emailId',
60
61
  :'inbox_id' => :'inboxId',
61
62
  :'user_id' => :'userId',
62
63
  :'forwarder_id' => :'forwarderId',
63
- :'created_at' => :'createdAt',
64
64
  :'message' => :'message',
65
65
  :'id' => :'id',
66
66
  :'status' => :'status'
@@ -70,11 +70,11 @@ module MailSlurpClient
70
70
  # Attribute type mapping.
71
71
  def self.openapi_types
72
72
  {
73
+ :'created_at' => :'DateTime',
73
74
  :'email_id' => :'String',
74
75
  :'inbox_id' => :'String',
75
76
  :'user_id' => :'String',
76
77
  :'forwarder_id' => :'String',
77
- :'created_at' => :'DateTime',
78
78
  :'message' => :'String',
79
79
  :'id' => :'String',
80
80
  :'status' => :'String'
@@ -109,6 +109,10 @@ module MailSlurpClient
109
109
  h[k.to_sym] = v
110
110
  }
111
111
 
112
+ if attributes.key?(:'created_at')
113
+ self.created_at = attributes[:'created_at']
114
+ end
115
+
112
116
  if attributes.key?(:'email_id')
113
117
  self.email_id = attributes[:'email_id']
114
118
  end
@@ -125,10 +129,6 @@ module MailSlurpClient
125
129
  self.forwarder_id = attributes[:'forwarder_id']
126
130
  end
127
131
 
128
- if attributes.key?(:'created_at')
129
- self.created_at = attributes[:'created_at']
130
- end
131
-
132
132
  if attributes.key?(:'message')
133
133
  self.message = attributes[:'message']
134
134
  end
@@ -177,11 +177,11 @@ module MailSlurpClient
177
177
  def ==(o)
178
178
  return true if self.equal?(o)
179
179
  self.class == o.class &&
180
+ created_at == o.created_at &&
180
181
  email_id == o.email_id &&
181
182
  inbox_id == o.inbox_id &&
182
183
  user_id == o.user_id &&
183
184
  forwarder_id == o.forwarder_id &&
184
- created_at == o.created_at &&
185
185
  message == o.message &&
186
186
  id == o.id &&
187
187
  status == o.status
@@ -196,7 +196,7 @@ module MailSlurpClient
196
196
  # Calculates hash code according to all attributes.
197
197
  # @return [Integer] Hash code
198
198
  def hash
199
- [email_id, inbox_id, user_id, forwarder_id, created_at, message, id, status].hash
199
+ [created_at, email_id, inbox_id, user_id, forwarder_id, message, id, status].hash
200
200
  end
201
201
 
202
202
  # Builds the object from hash
@@ -15,6 +15,10 @@ require 'date'
15
15
  module MailSlurpClient
16
16
  # Inbox replier event
17
17
  class InboxReplierEventProjection
18
+ attr_accessor :created_at
19
+
20
+ attr_accessor :replier_id
21
+
18
22
  attr_accessor :recipients
19
23
 
20
24
  attr_accessor :email_id
@@ -25,10 +29,6 @@ module MailSlurpClient
25
29
 
26
30
  attr_accessor :sent_id
27
31
 
28
- attr_accessor :replier_id
29
-
30
- attr_accessor :created_at
31
-
32
32
  attr_accessor :message
33
33
 
34
34
  attr_accessor :id
@@ -60,13 +60,13 @@ module MailSlurpClient
60
60
  # Attribute mapping from ruby-style variable name to JSON key.
61
61
  def self.attribute_map
62
62
  {
63
+ :'created_at' => :'createdAt',
64
+ :'replier_id' => :'replierId',
63
65
  :'recipients' => :'recipients',
64
66
  :'email_id' => :'emailId',
65
67
  :'inbox_id' => :'inboxId',
66
68
  :'user_id' => :'userId',
67
69
  :'sent_id' => :'sentId',
68
- :'replier_id' => :'replierId',
69
- :'created_at' => :'createdAt',
70
70
  :'message' => :'message',
71
71
  :'id' => :'id',
72
72
  :'status' => :'status'
@@ -76,13 +76,13 @@ module MailSlurpClient
76
76
  # Attribute type mapping.
77
77
  def self.openapi_types
78
78
  {
79
+ :'created_at' => :'DateTime',
80
+ :'replier_id' => :'String',
79
81
  :'recipients' => :'Array<String>',
80
82
  :'email_id' => :'String',
81
83
  :'inbox_id' => :'String',
82
84
  :'user_id' => :'String',
83
85
  :'sent_id' => :'String',
84
- :'replier_id' => :'String',
85
- :'created_at' => :'DateTime',
86
86
  :'message' => :'String',
87
87
  :'id' => :'String',
88
88
  :'status' => :'String'
@@ -92,12 +92,12 @@ module MailSlurpClient
92
92
  # List of attributes with nullable: true
93
93
  def self.openapi_nullable
94
94
  Set.new([
95
+ :'replier_id',
95
96
  :'recipients',
96
97
  :'email_id',
97
98
  :'inbox_id',
98
99
  :'user_id',
99
100
  :'sent_id',
100
- :'replier_id',
101
101
  :'message',
102
102
  :'id',
103
103
  :'status'
@@ -119,6 +119,14 @@ module MailSlurpClient
119
119
  h[k.to_sym] = v
120
120
  }
121
121
 
122
+ if attributes.key?(:'created_at')
123
+ self.created_at = attributes[:'created_at']
124
+ end
125
+
126
+ if attributes.key?(:'replier_id')
127
+ self.replier_id = attributes[:'replier_id']
128
+ end
129
+
122
130
  if attributes.key?(:'recipients')
123
131
  if (value = attributes[:'recipients']).is_a?(Array)
124
132
  self.recipients = value
@@ -141,14 +149,6 @@ module MailSlurpClient
141
149
  self.sent_id = attributes[:'sent_id']
142
150
  end
143
151
 
144
- if attributes.key?(:'replier_id')
145
- self.replier_id = attributes[:'replier_id']
146
- end
147
-
148
- if attributes.key?(:'created_at')
149
- self.created_at = attributes[:'created_at']
150
- end
151
-
152
152
  if attributes.key?(:'message')
153
153
  self.message = attributes[:'message']
154
154
  end
@@ -197,13 +197,13 @@ module MailSlurpClient
197
197
  def ==(o)
198
198
  return true if self.equal?(o)
199
199
  self.class == o.class &&
200
+ created_at == o.created_at &&
201
+ replier_id == o.replier_id &&
200
202
  recipients == o.recipients &&
201
203
  email_id == o.email_id &&
202
204
  inbox_id == o.inbox_id &&
203
205
  user_id == o.user_id &&
204
206
  sent_id == o.sent_id &&
205
- replier_id == o.replier_id &&
206
- created_at == o.created_at &&
207
207
  message == o.message &&
208
208
  id == o.id &&
209
209
  status == o.status
@@ -218,7 +218,7 @@ module MailSlurpClient
218
218
  # Calculates hash code according to all attributes.
219
219
  # @return [Integer] Hash code
220
220
  def hash
221
- [recipients, email_id, inbox_id, user_id, sent_id, replier_id, created_at, message, id, status].hash
221
+ [created_at, replier_id, recipients, email_id, inbox_id, user_id, sent_id, message, id, status].hash
222
222
  end
223
223
 
224
224
  # Builds the object from hash
@@ -15,20 +15,20 @@ require 'date'
15
15
  module MailSlurpClient
16
16
  # List unsubscribe recipient
17
17
  class ListUnsubscribeRecipientProjection
18
+ attr_accessor :created_at
19
+
18
20
  attr_accessor :email_address
19
21
 
20
22
  attr_accessor :domain_id
21
23
 
22
- attr_accessor :created_at
23
-
24
24
  attr_accessor :id
25
25
 
26
26
  # Attribute mapping from ruby-style variable name to JSON key.
27
27
  def self.attribute_map
28
28
  {
29
+ :'created_at' => :'createdAt',
29
30
  :'email_address' => :'emailAddress',
30
31
  :'domain_id' => :'domainId',
31
- :'created_at' => :'createdAt',
32
32
  :'id' => :'id'
33
33
  }
34
34
  end
@@ -36,9 +36,9 @@ module MailSlurpClient
36
36
  # Attribute type mapping.
37
37
  def self.openapi_types
38
38
  {
39
+ :'created_at' => :'DateTime',
39
40
  :'email_address' => :'String',
40
41
  :'domain_id' => :'String',
41
- :'created_at' => :'DateTime',
42
42
  :'id' => :'String'
43
43
  }
44
44
  end
@@ -65,6 +65,10 @@ module MailSlurpClient
65
65
  h[k.to_sym] = v
66
66
  }
67
67
 
68
+ if attributes.key?(:'created_at')
69
+ self.created_at = attributes[:'created_at']
70
+ end
71
+
68
72
  if attributes.key?(:'email_address')
69
73
  self.email_address = attributes[:'email_address']
70
74
  end
@@ -73,10 +77,6 @@ module MailSlurpClient
73
77
  self.domain_id = attributes[:'domain_id']
74
78
  end
75
79
 
76
- if attributes.key?(:'created_at')
77
- self.created_at = attributes[:'created_at']
78
- end
79
-
80
80
  if attributes.key?(:'id')
81
81
  self.id = attributes[:'id']
82
82
  end
@@ -86,14 +86,14 @@ module MailSlurpClient
86
86
  # @return Array for valid properties with the reasons
87
87
  def list_invalid_properties
88
88
  invalid_properties = Array.new
89
- if @email_address.nil?
90
- invalid_properties.push('invalid value for "email_address", email_address cannot be nil.')
91
- end
92
-
93
89
  if @created_at.nil?
94
90
  invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
95
91
  end
96
92
 
93
+ if @email_address.nil?
94
+ invalid_properties.push('invalid value for "email_address", email_address cannot be nil.')
95
+ end
96
+
97
97
  if @id.nil?
98
98
  invalid_properties.push('invalid value for "id", id cannot be nil.')
99
99
  end
@@ -104,8 +104,8 @@ module MailSlurpClient
104
104
  # Check to see if the all the properties in the model are valid
105
105
  # @return true if the model is valid
106
106
  def valid?
107
- return false if @email_address.nil?
108
107
  return false if @created_at.nil?
108
+ return false if @email_address.nil?
109
109
  return false if @id.nil?
110
110
  true
111
111
  end
@@ -115,9 +115,9 @@ module MailSlurpClient
115
115
  def ==(o)
116
116
  return true if self.equal?(o)
117
117
  self.class == o.class &&
118
+ created_at == o.created_at &&
118
119
  email_address == o.email_address &&
119
120
  domain_id == o.domain_id &&
120
- created_at == o.created_at &&
121
121
  id == o.id
122
122
  end
123
123
 
@@ -130,7 +130,7 @@ module MailSlurpClient
130
130
  # Calculates hash code according to all attributes.
131
131
  # @return [Integer] Hash code
132
132
  def hash
133
- [email_address, domain_id, created_at, id].hash
133
+ [created_at, email_address, domain_id, id].hash
134
134
  end
135
135
 
136
136
  # Builds the object from hash
@@ -15,10 +15,10 @@ require 'date'
15
15
  module MailSlurpClient
16
16
  # Missed email data
17
17
  class MissedEmailProjection
18
- attr_accessor :user_id
19
-
20
18
  attr_accessor :created_at
21
19
 
20
+ attr_accessor :user_id
21
+
22
22
  attr_accessor :subject
23
23
 
24
24
  attr_accessor :id
@@ -28,8 +28,8 @@ module MailSlurpClient
28
28
  # Attribute mapping from ruby-style variable name to JSON key.
29
29
  def self.attribute_map
30
30
  {
31
- :'user_id' => :'userId',
32
31
  :'created_at' => :'createdAt',
32
+ :'user_id' => :'userId',
33
33
  :'subject' => :'subject',
34
34
  :'id' => :'id',
35
35
  :'from' => :'from'
@@ -39,8 +39,8 @@ module MailSlurpClient
39
39
  # Attribute type mapping.
40
40
  def self.openapi_types
41
41
  {
42
- :'user_id' => :'String',
43
42
  :'created_at' => :'DateTime',
43
+ :'user_id' => :'String',
44
44
  :'subject' => :'String',
45
45
  :'id' => :'String',
46
46
  :'from' => :'String'
@@ -71,14 +71,14 @@ module MailSlurpClient
71
71
  h[k.to_sym] = v
72
72
  }
73
73
 
74
- if attributes.key?(:'user_id')
75
- self.user_id = attributes[:'user_id']
76
- end
77
-
78
74
  if attributes.key?(:'created_at')
79
75
  self.created_at = attributes[:'created_at']
80
76
  end
81
77
 
78
+ if attributes.key?(:'user_id')
79
+ self.user_id = attributes[:'user_id']
80
+ end
81
+
82
82
  if attributes.key?(:'subject')
83
83
  self.subject = attributes[:'subject']
84
84
  end
@@ -120,8 +120,8 @@ module MailSlurpClient
120
120
  def ==(o)
121
121
  return true if self.equal?(o)
122
122
  self.class == o.class &&
123
- user_id == o.user_id &&
124
123
  created_at == o.created_at &&
124
+ user_id == o.user_id &&
125
125
  subject == o.subject &&
126
126
  id == o.id &&
127
127
  from == o.from
@@ -136,7 +136,7 @@ module MailSlurpClient
136
136
  # Calculates hash code according to all attributes.
137
137
  # @return [Integer] Hash code
138
138
  def hash
139
- [user_id, created_at, subject, id, from].hash
139
+ [created_at, user_id, subject, id, from].hash
140
140
  end
141
141
 
142
142
  # 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 :first
31
+
30
32
  attr_accessor :size
31
33
 
32
34
  attr_accessor :number
33
35
 
34
36
  attr_accessor :sort
35
37
 
36
- attr_accessor :first
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_elements' => :'totalElements',
47
47
  :'last' => :'last',
48
48
  :'number_of_elements' => :'numberOfElements',
49
+ :'first' => :'first',
49
50
  :'size' => :'size',
50
51
  :'number' => :'number',
51
52
  :'sort' => :'sort',
52
- :'first' => :'first',
53
53
  :'empty' => :'empty'
54
54
  }
55
55
  end
@@ -63,10 +63,10 @@ module MailSlurpClient
63
63
  :'total_elements' => :'Integer',
64
64
  :'last' => :'Boolean',
65
65
  :'number_of_elements' => :'Integer',
66
+ :'first' => :'Boolean',
66
67
  :'size' => :'Integer',
67
68
  :'number' => :'Integer',
68
69
  :'sort' => :'SortObject',
69
- :'first' => :'Boolean',
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?(:'first')
122
+ self.first = attributes[:'first']
123
+ end
124
+
121
125
  if attributes.key?(:'size')
122
126
  self.size = attributes[:'size']
123
127
  end
@@ -130,10 +134,6 @@ module MailSlurpClient
130
134
  self.sort = attributes[:'sort']
131
135
  end
132
136
 
133
- if attributes.key?(:'first')
134
- self.first = attributes[:'first']
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_elements == o.total_elements &&
174
174
  last == o.last &&
175
175
  number_of_elements == o.number_of_elements &&
176
+ first == o.first &&
176
177
  size == o.size &&
177
178
  number == o.number &&
178
179
  sort == o.sort &&
179
- first == o.first &&
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_pages, total_elements, last, number_of_elements, size, number, sort, first, empty].hash
192
+ [content, pageable, total_pages, total_elements, last, number_of_elements, first, size, number, sort, empty].hash
193
193
  end
194
194
 
195
195
  # Builds the object from hash