mailslurp_client 15.17.4 → 15.17.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (29) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +13 -13
  3. data/SECURITY.md +1 -1
  4. data/SUPPORT.md +2 -2
  5. data/lib/mailslurp_client/api/domain_controller_api.rb +59 -0
  6. data/lib/mailslurp_client/api/inbox_ruleset_controller_api.rb +6 -10
  7. data/lib/mailslurp_client/api/phone_controller_api.rb +1 -1
  8. data/lib/mailslurp_client/models/alias_projection.rb +15 -15
  9. data/lib/mailslurp_client/models/attachment_projection.rb +19 -19
  10. data/lib/mailslurp_client/models/create_emergency_address_options.rb +2 -2
  11. data/lib/mailslurp_client/models/domain_dto.rb +27 -1
  12. data/lib/mailslurp_client/models/domain_issues_dto.rb +211 -0
  13. data/lib/mailslurp_client/models/domain_preview.rb +18 -4
  14. data/lib/mailslurp_client/models/email_projection.rb +10 -10
  15. data/lib/mailslurp_client/models/emergency_address.rb +2 -2
  16. data/lib/mailslurp_client/models/emergency_address_dto.rb +2 -2
  17. data/lib/mailslurp_client/models/inbox_forwarder_event_projection.rb +11 -11
  18. data/lib/mailslurp_client/models/inbox_replier_event_projection.rb +23 -23
  19. data/lib/mailslurp_client/models/inbox_ruleset_dto.rb +0 -5
  20. data/lib/mailslurp_client/models/missed_email_projection.rb +11 -11
  21. data/lib/mailslurp_client/models/phone_number_dto.rb +2 -2
  22. data/lib/mailslurp_client/models/phone_number_projection.rb +2 -2
  23. data/lib/mailslurp_client/models/phone_plan_dto.rb +2 -2
  24. data/lib/mailslurp_client/models/sent_email_projection.rb +15 -15
  25. data/lib/mailslurp_client/models/thread_projection.rb +20 -20
  26. data/lib/mailslurp_client/models/tracking_pixel_projection.rb +13 -13
  27. data/lib/mailslurp_client/version.rb +1 -1
  28. data/lib/mailslurp_client.rb +1 -0
  29. metadata +4 -3
@@ -0,0 +1,211 @@
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 DomainIssuesDto
17
+ attr_accessor :has_issues
18
+
19
+ # Attribute mapping from ruby-style variable name to JSON key.
20
+ def self.attribute_map
21
+ {
22
+ :'has_issues' => :'hasIssues'
23
+ }
24
+ end
25
+
26
+ # Attribute type mapping.
27
+ def self.openapi_types
28
+ {
29
+ :'has_issues' => :'Boolean'
30
+ }
31
+ end
32
+
33
+ # List of attributes with nullable: true
34
+ def self.openapi_nullable
35
+ Set.new([
36
+ ])
37
+ end
38
+
39
+ # Initializes the object
40
+ # @param [Hash] attributes Model attributes in the form of hash
41
+ def initialize(attributes = {})
42
+ if (!attributes.is_a?(Hash))
43
+ fail ArgumentError, "The input argument (attributes) must be a hash in `MailSlurpClient::DomainIssuesDto` initialize method"
44
+ end
45
+
46
+ # check to see if the attribute exists and convert string to symbol for hash key
47
+ attributes = attributes.each_with_object({}) { |(k, v), h|
48
+ if (!self.class.attribute_map.key?(k.to_sym))
49
+ fail ArgumentError, "`#{k}` is not a valid attribute in `MailSlurpClient::DomainIssuesDto`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
50
+ end
51
+ h[k.to_sym] = v
52
+ }
53
+
54
+ if attributes.key?(:'has_issues')
55
+ self.has_issues = attributes[:'has_issues']
56
+ end
57
+ end
58
+
59
+ # Show invalid properties with the reasons. Usually used together with valid?
60
+ # @return Array for valid properties with the reasons
61
+ def list_invalid_properties
62
+ invalid_properties = Array.new
63
+ if @has_issues.nil?
64
+ invalid_properties.push('invalid value for "has_issues", has_issues cannot be nil.')
65
+ end
66
+
67
+ invalid_properties
68
+ end
69
+
70
+ # Check to see if the all the properties in the model are valid
71
+ # @return true if the model is valid
72
+ def valid?
73
+ return false if @has_issues.nil?
74
+ true
75
+ end
76
+
77
+ # Checks equality by comparing each attribute.
78
+ # @param [Object] Object to be compared
79
+ def ==(o)
80
+ return true if self.equal?(o)
81
+ self.class == o.class &&
82
+ has_issues == o.has_issues
83
+ end
84
+
85
+ # @see the `==` method
86
+ # @param [Object] Object to be compared
87
+ def eql?(o)
88
+ self == o
89
+ end
90
+
91
+ # Calculates hash code according to all attributes.
92
+ # @return [Integer] Hash code
93
+ def hash
94
+ [has_issues].hash
95
+ end
96
+
97
+ # Builds the object from hash
98
+ # @param [Hash] attributes Model attributes in the form of hash
99
+ # @return [Object] Returns the model itself
100
+ def self.build_from_hash(attributes)
101
+ new.build_from_hash(attributes)
102
+ end
103
+
104
+ # Builds the object from hash
105
+ # @param [Hash] attributes Model attributes in the form of hash
106
+ # @return [Object] Returns the model itself
107
+ def build_from_hash(attributes)
108
+ return nil unless attributes.is_a?(Hash)
109
+ self.class.openapi_types.each_pair do |key, type|
110
+ if type =~ /\AArray<(.*)>/i
111
+ # check to ensure the input is an array given that the attribute
112
+ # is documented as an array but the input is not
113
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
114
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
115
+ end
116
+ elsif !attributes[self.class.attribute_map[key]].nil?
117
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
118
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
119
+ end
120
+
121
+ self
122
+ end
123
+
124
+ # Deserializes the data based on type
125
+ # @param string type Data type
126
+ # @param string value Value to be deserialized
127
+ # @return [Object] Deserialized data
128
+ def _deserialize(type, value)
129
+ case type.to_sym
130
+ when :DateTime
131
+ DateTime.parse(value)
132
+ when :Date
133
+ Date.parse(value)
134
+ when :String
135
+ value.to_s
136
+ when :Integer
137
+ value.to_i
138
+ when :Float
139
+ value.to_f
140
+ when :Boolean
141
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
142
+ true
143
+ else
144
+ false
145
+ end
146
+ when :Object
147
+ # generic object (usually a Hash), return directly
148
+ value
149
+ when /\AArray<(?<inner_type>.+)>\z/
150
+ inner_type = Regexp.last_match[:inner_type]
151
+ value.map { |v| _deserialize(inner_type, v) }
152
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
153
+ k_type = Regexp.last_match[:k_type]
154
+ v_type = Regexp.last_match[:v_type]
155
+ {}.tap do |hash|
156
+ value.each do |k, v|
157
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
158
+ end
159
+ end
160
+ else # model
161
+ MailSlurpClient.const_get(type).build_from_hash(value)
162
+ end
163
+ end
164
+
165
+ # Returns the string representation of the object
166
+ # @return [String] String presentation of the object
167
+ def to_s
168
+ to_hash.to_s
169
+ end
170
+
171
+ # to_body is an alias to to_hash (backward compatibility)
172
+ # @return [Hash] Returns the object in the form of hash
173
+ def to_body
174
+ to_hash
175
+ end
176
+
177
+ # Returns the object in the form of hash
178
+ # @return [Hash] Returns the object in the form of hash
179
+ def to_hash
180
+ hash = {}
181
+ self.class.attribute_map.each_pair do |attr, param|
182
+ value = self.send(attr)
183
+ if value.nil?
184
+ is_nullable = self.class.openapi_nullable.include?(attr)
185
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
186
+ end
187
+
188
+ hash[param] = _to_hash(value)
189
+ end
190
+ hash
191
+ end
192
+
193
+ # Outputs non-array value in the form of hash
194
+ # For object, use to_hash. Otherwise, just return the value
195
+ # @param [Object] value Any valid value
196
+ # @return [Hash] Returns the value in the form of hash
197
+ def _to_hash(value)
198
+ if value.is_a?(Array)
199
+ value.compact.map { |v| _to_hash(v) }
200
+ elsif value.is_a?(Hash)
201
+ {}.tap do |hash|
202
+ value.each { |k, v| hash[k] = _to_hash(v) }
203
+ end
204
+ elsif value.respond_to? :to_hash
205
+ value.to_hash
206
+ else
207
+ value
208
+ end
209
+ end
210
+ end
211
+ end
@@ -28,6 +28,8 @@ module MailSlurpClient
28
28
 
29
29
  attr_accessor :is_verified
30
30
 
31
+ attr_accessor :has_missing_records
32
+
31
33
  class EnumAttributeValidator
32
34
  attr_reader :datatype
33
35
  attr_reader :allowable_values
@@ -58,7 +60,8 @@ module MailSlurpClient
58
60
  :'catch_all_inbox_id' => :'catchAllInboxId',
59
61
  :'created_at' => :'createdAt',
60
62
  :'domain_type' => :'domainType',
61
- :'is_verified' => :'isVerified'
63
+ :'is_verified' => :'isVerified',
64
+ :'has_missing_records' => :'hasMissingRecords'
62
65
  }
63
66
  end
64
67
 
@@ -70,7 +73,8 @@ module MailSlurpClient
70
73
  :'catch_all_inbox_id' => :'String',
71
74
  :'created_at' => :'DateTime',
72
75
  :'domain_type' => :'String',
73
- :'is_verified' => :'Boolean'
76
+ :'is_verified' => :'Boolean',
77
+ :'has_missing_records' => :'Boolean'
74
78
  }
75
79
  end
76
80
 
@@ -119,6 +123,10 @@ module MailSlurpClient
119
123
  if attributes.key?(:'is_verified')
120
124
  self.is_verified = attributes[:'is_verified']
121
125
  end
126
+
127
+ if attributes.key?(:'has_missing_records')
128
+ self.has_missing_records = attributes[:'has_missing_records']
129
+ end
122
130
  end
123
131
 
124
132
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -145,6 +153,10 @@ module MailSlurpClient
145
153
  invalid_properties.push('invalid value for "is_verified", is_verified cannot be nil.')
146
154
  end
147
155
 
156
+ if @has_missing_records.nil?
157
+ invalid_properties.push('invalid value for "has_missing_records", has_missing_records cannot be nil.')
158
+ end
159
+
148
160
  invalid_properties
149
161
  end
150
162
 
@@ -158,6 +170,7 @@ module MailSlurpClient
158
170
  domain_type_validator = EnumAttributeValidator.new('String', ["HTTP_INBOX", "SMTP_DOMAIN"])
159
171
  return false unless domain_type_validator.valid?(@domain_type)
160
172
  return false if @is_verified.nil?
173
+ return false if @has_missing_records.nil?
161
174
  true
162
175
  end
163
176
 
@@ -181,7 +194,8 @@ module MailSlurpClient
181
194
  catch_all_inbox_id == o.catch_all_inbox_id &&
182
195
  created_at == o.created_at &&
183
196
  domain_type == o.domain_type &&
184
- is_verified == o.is_verified
197
+ is_verified == o.is_verified &&
198
+ has_missing_records == o.has_missing_records
185
199
  end
186
200
 
187
201
  # @see the `==` method
@@ -193,7 +207,7 @@ module MailSlurpClient
193
207
  # Calculates hash code according to all attributes.
194
208
  # @return [Integer] Hash code
195
209
  def hash
196
- [id, domain, catch_all_inbox_id, created_at, domain_type, is_verified].hash
210
+ [id, domain, catch_all_inbox_id, created_at, domain_type, is_verified, has_missing_records].hash
197
211
  end
198
212
 
199
213
  # Builds the object from hash
@@ -19,12 +19,12 @@ module MailSlurpClient
19
19
 
20
20
  attr_accessor :from
21
21
 
22
+ attr_accessor :inbox_id
23
+
22
24
  attr_accessor :subject
23
25
 
24
26
  attr_accessor :attachments
25
27
 
26
- attr_accessor :inbox_id
27
-
28
28
  attr_accessor :created_at
29
29
 
30
30
  attr_accessor :to
@@ -48,9 +48,9 @@ module MailSlurpClient
48
48
  {
49
49
  :'id' => :'id',
50
50
  :'from' => :'from',
51
+ :'inbox_id' => :'inboxId',
51
52
  :'subject' => :'subject',
52
53
  :'attachments' => :'attachments',
53
- :'inbox_id' => :'inboxId',
54
54
  :'created_at' => :'createdAt',
55
55
  :'to' => :'to',
56
56
  :'bcc' => :'bcc',
@@ -68,9 +68,9 @@ module MailSlurpClient
68
68
  {
69
69
  :'id' => :'String',
70
70
  :'from' => :'String',
71
+ :'inbox_id' => :'String',
71
72
  :'subject' => :'String',
72
73
  :'attachments' => :'Array<String>',
73
- :'inbox_id' => :'String',
74
74
  :'created_at' => :'DateTime',
75
75
  :'to' => :'Array<String>',
76
76
  :'bcc' => :'Array<String>',
@@ -120,6 +120,10 @@ module MailSlurpClient
120
120
  self.from = attributes[:'from']
121
121
  end
122
122
 
123
+ if attributes.key?(:'inbox_id')
124
+ self.inbox_id = attributes[:'inbox_id']
125
+ end
126
+
123
127
  if attributes.key?(:'subject')
124
128
  self.subject = attributes[:'subject']
125
129
  end
@@ -130,10 +134,6 @@ module MailSlurpClient
130
134
  end
131
135
  end
132
136
 
133
- if attributes.key?(:'inbox_id')
134
- self.inbox_id = attributes[:'inbox_id']
135
- end
136
-
137
137
  if attributes.key?(:'created_at')
138
138
  self.created_at = attributes[:'created_at']
139
139
  end
@@ -227,9 +227,9 @@ module MailSlurpClient
227
227
  self.class == o.class &&
228
228
  id == o.id &&
229
229
  from == o.from &&
230
+ inbox_id == o.inbox_id &&
230
231
  subject == o.subject &&
231
232
  attachments == o.attachments &&
232
- inbox_id == o.inbox_id &&
233
233
  created_at == o.created_at &&
234
234
  to == o.to &&
235
235
  bcc == o.bcc &&
@@ -250,7 +250,7 @@ module MailSlurpClient
250
250
  # Calculates hash code according to all attributes.
251
251
  # @return [Integer] Hash code
252
252
  def hash
253
- [id, from, subject, attachments, inbox_id, created_at, to, bcc, cc, domain_id, read, body_excerpt, team_access, body_md5_hash].hash
253
+ [id, from, inbox_id, subject, attachments, created_at, to, bcc, cc, domain_id, read, body_excerpt, team_access, body_md5_hash].hash
254
254
  end
255
255
 
256
256
  # Builds the object from hash
@@ -241,7 +241,7 @@ module MailSlurpClient
241
241
  return false if @region.nil?
242
242
  return false if @postal_code.nil?
243
243
  return false if @phone_country.nil?
244
- phone_country_validator = EnumAttributeValidator.new('String', ["US", "GB"])
244
+ phone_country_validator = EnumAttributeValidator.new('String', ["US", "GB", "AU"])
245
245
  return false unless phone_country_validator.valid?(@phone_country)
246
246
  return false if @account_sid.nil?
247
247
  return false if @created_at.nil?
@@ -252,7 +252,7 @@ module MailSlurpClient
252
252
  # Custom attribute writer method checking allowed values (enum).
253
253
  # @param [Object] phone_country Object to be assigned
254
254
  def phone_country=(phone_country)
255
- validator = EnumAttributeValidator.new('String', ["US", "GB"])
255
+ validator = EnumAttributeValidator.new('String', ["US", "GB", "AU"])
256
256
  unless validator.valid?(phone_country)
257
257
  fail ArgumentError, "invalid value for \"phone_country\", must be one of #{validator.allowable_values}."
258
258
  end
@@ -119,7 +119,7 @@ module MailSlurpClient
119
119
  return false if @id.nil?
120
120
  return false if @address1.nil?
121
121
  return false if @phone_country.nil?
122
- phone_country_validator = EnumAttributeValidator.new('String', ["US", "GB"])
122
+ phone_country_validator = EnumAttributeValidator.new('String', ["US", "GB", "AU"])
123
123
  return false unless phone_country_validator.valid?(@phone_country)
124
124
  true
125
125
  end
@@ -127,7 +127,7 @@ module MailSlurpClient
127
127
  # Custom attribute writer method checking allowed values (enum).
128
128
  # @param [Object] phone_country Object to be assigned
129
129
  def phone_country=(phone_country)
130
- validator = EnumAttributeValidator.new('String', ["US", "GB"])
130
+ validator = EnumAttributeValidator.new('String', ["US", "GB", "AU"])
131
131
  unless validator.valid?(phone_country)
132
132
  fail ArgumentError, "invalid value for \"phone_country\", must be one of #{validator.allowable_values}."
133
133
  end
@@ -21,12 +21,12 @@ module MailSlurpClient
21
21
 
22
22
  attr_accessor :status
23
23
 
24
- attr_accessor :user_id
25
-
26
24
  attr_accessor :email_id
27
25
 
28
26
  attr_accessor :inbox_id
29
27
 
28
+ attr_accessor :user_id
29
+
30
30
  attr_accessor :created_at
31
31
 
32
32
  attr_accessor :forwarder_id
@@ -59,9 +59,9 @@ module MailSlurpClient
59
59
  :'message' => :'message',
60
60
  :'id' => :'id',
61
61
  :'status' => :'status',
62
- :'user_id' => :'userId',
63
62
  :'email_id' => :'emailId',
64
63
  :'inbox_id' => :'inboxId',
64
+ :'user_id' => :'userId',
65
65
  :'created_at' => :'createdAt',
66
66
  :'forwarder_id' => :'forwarderId'
67
67
  }
@@ -73,9 +73,9 @@ module MailSlurpClient
73
73
  :'message' => :'String',
74
74
  :'id' => :'String',
75
75
  :'status' => :'String',
76
- :'user_id' => :'String',
77
76
  :'email_id' => :'String',
78
77
  :'inbox_id' => :'String',
78
+ :'user_id' => :'String',
79
79
  :'created_at' => :'DateTime',
80
80
  :'forwarder_id' => :'String'
81
81
  }
@@ -87,9 +87,9 @@ module MailSlurpClient
87
87
  :'message',
88
88
  :'id',
89
89
  :'status',
90
- :'user_id',
91
90
  :'email_id',
92
91
  :'inbox_id',
92
+ :'user_id',
93
93
  :'forwarder_id'
94
94
  ])
95
95
  end
@@ -121,10 +121,6 @@ module MailSlurpClient
121
121
  self.status = attributes[:'status']
122
122
  end
123
123
 
124
- if attributes.key?(:'user_id')
125
- self.user_id = attributes[:'user_id']
126
- end
127
-
128
124
  if attributes.key?(:'email_id')
129
125
  self.email_id = attributes[:'email_id']
130
126
  end
@@ -133,6 +129,10 @@ module MailSlurpClient
133
129
  self.inbox_id = attributes[:'inbox_id']
134
130
  end
135
131
 
132
+ if attributes.key?(:'user_id')
133
+ self.user_id = attributes[:'user_id']
134
+ end
135
+
136
136
  if attributes.key?(:'created_at')
137
137
  self.created_at = attributes[:'created_at']
138
138
  end
@@ -180,9 +180,9 @@ module MailSlurpClient
180
180
  message == o.message &&
181
181
  id == o.id &&
182
182
  status == o.status &&
183
- user_id == o.user_id &&
184
183
  email_id == o.email_id &&
185
184
  inbox_id == o.inbox_id &&
185
+ user_id == o.user_id &&
186
186
  created_at == o.created_at &&
187
187
  forwarder_id == o.forwarder_id
188
188
  end
@@ -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
- [message, id, status, user_id, email_id, inbox_id, created_at, forwarder_id].hash
199
+ [message, id, status, email_id, inbox_id, user_id, created_at, forwarder_id].hash
200
200
  end
201
201
 
202
202
  # Builds the object from hash
@@ -21,14 +21,14 @@ module MailSlurpClient
21
21
 
22
22
  attr_accessor :status
23
23
 
24
- attr_accessor :recipients
25
-
26
- attr_accessor :user_id
27
-
28
24
  attr_accessor :email_id
29
25
 
30
26
  attr_accessor :inbox_id
31
27
 
28
+ attr_accessor :user_id
29
+
30
+ attr_accessor :recipients
31
+
32
32
  attr_accessor :created_at
33
33
 
34
34
  attr_accessor :sent_id
@@ -63,10 +63,10 @@ module MailSlurpClient
63
63
  :'message' => :'message',
64
64
  :'id' => :'id',
65
65
  :'status' => :'status',
66
- :'recipients' => :'recipients',
67
- :'user_id' => :'userId',
68
66
  :'email_id' => :'emailId',
69
67
  :'inbox_id' => :'inboxId',
68
+ :'user_id' => :'userId',
69
+ :'recipients' => :'recipients',
70
70
  :'created_at' => :'createdAt',
71
71
  :'sent_id' => :'sentId',
72
72
  :'replier_id' => :'replierId'
@@ -79,10 +79,10 @@ module MailSlurpClient
79
79
  :'message' => :'String',
80
80
  :'id' => :'String',
81
81
  :'status' => :'String',
82
- :'recipients' => :'Array<String>',
83
- :'user_id' => :'String',
84
82
  :'email_id' => :'String',
85
83
  :'inbox_id' => :'String',
84
+ :'user_id' => :'String',
85
+ :'recipients' => :'Array<String>',
86
86
  :'created_at' => :'DateTime',
87
87
  :'sent_id' => :'String',
88
88
  :'replier_id' => :'String'
@@ -95,10 +95,10 @@ module MailSlurpClient
95
95
  :'message',
96
96
  :'id',
97
97
  :'status',
98
- :'recipients',
99
- :'user_id',
100
98
  :'email_id',
101
99
  :'inbox_id',
100
+ :'user_id',
101
+ :'recipients',
102
102
  :'sent_id',
103
103
  :'replier_id'
104
104
  ])
@@ -131,16 +131,6 @@ module MailSlurpClient
131
131
  self.status = attributes[:'status']
132
132
  end
133
133
 
134
- if attributes.key?(:'recipients')
135
- if (value = attributes[:'recipients']).is_a?(Array)
136
- self.recipients = value
137
- end
138
- end
139
-
140
- if attributes.key?(:'user_id')
141
- self.user_id = attributes[:'user_id']
142
- end
143
-
144
134
  if attributes.key?(:'email_id')
145
135
  self.email_id = attributes[:'email_id']
146
136
  end
@@ -149,6 +139,16 @@ module MailSlurpClient
149
139
  self.inbox_id = attributes[:'inbox_id']
150
140
  end
151
141
 
142
+ if attributes.key?(:'user_id')
143
+ self.user_id = attributes[:'user_id']
144
+ end
145
+
146
+ if attributes.key?(:'recipients')
147
+ if (value = attributes[:'recipients']).is_a?(Array)
148
+ self.recipients = value
149
+ end
150
+ end
151
+
152
152
  if attributes.key?(:'created_at')
153
153
  self.created_at = attributes[:'created_at']
154
154
  end
@@ -200,10 +200,10 @@ module MailSlurpClient
200
200
  message == o.message &&
201
201
  id == o.id &&
202
202
  status == o.status &&
203
- recipients == o.recipients &&
204
- user_id == o.user_id &&
205
203
  email_id == o.email_id &&
206
204
  inbox_id == o.inbox_id &&
205
+ user_id == o.user_id &&
206
+ recipients == o.recipients &&
207
207
  created_at == o.created_at &&
208
208
  sent_id == o.sent_id &&
209
209
  replier_id == o.replier_id
@@ -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
- [message, id, status, recipients, user_id, email_id, inbox_id, created_at, sent_id, replier_id].hash
221
+ [message, id, status, email_id, inbox_id, user_id, recipients, created_at, sent_id, replier_id].hash
222
222
  end
223
223
 
224
224
  # Builds the object from hash
@@ -135,10 +135,6 @@ module MailSlurpClient
135
135
  invalid_properties.push('invalid value for "id", id cannot be nil.')
136
136
  end
137
137
 
138
- if @inbox_id.nil?
139
- invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
140
- end
141
-
142
138
  if @scope.nil?
143
139
  invalid_properties.push('invalid value for "scope", scope cannot be nil.')
144
140
  end
@@ -166,7 +162,6 @@ module MailSlurpClient
166
162
  # @return true if the model is valid
167
163
  def valid?
168
164
  return false if @id.nil?
169
- return false if @inbox_id.nil?
170
165
  return false if @scope.nil?
171
166
  scope_validator = EnumAttributeValidator.new('String', ["RECEIVING_EMAILS", "SENDING_EMAILS"])
172
167
  return false unless scope_validator.valid?(@scope)