mailslurp_client 15.1.0 → 15.1.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f10a1ab778bec6a427db4c9f8bfaa1f8e6bd1e81fdb24985bcf69ef6c9aa1c35
4
- data.tar.gz: 0c07266c78ffab43e6ac7e7d82355200c9aef8e0e180dc8ebabab26460c5e06c
3
+ metadata.gz: be190abc4e4e6cfb3ce29fe7007d2244ef5d4f405362c96af50ce683cb35117d
4
+ data.tar.gz: 9c943299957575628e8479fd0fc914299e81f316e345dbf4e568e3ceef874b6c
5
5
  SHA512:
6
- metadata.gz: 4d3caeafaaed6b4d9ff211fbc3d8bfc2d2bf2c87ebd64cbba414a97df697a9ca4447f6337bc80c4a7a262d971017f4c14fa9e627e6d9d931c746355c2f964a2f
7
- data.tar.gz: d6dceaca0fa5b51a4ce7fef90f57e8997f5aeafaf8ac8a4f22f72a98d3bdd08eeac2ace26af667581a1995c700faac6572f94c155b5cd07a2f943bd3468b9436
6
+ metadata.gz: fb13772e325b407bc22b994972f29e3677d66a1c84694a55e004a5bdb73e4536dcdee0b474ea76029faf52c132af800d1b1590b78614f0731c83eafacf551dbf
7
+ data.tar.gz: 7c678f7691759b589bcc147c9da9c294681e37aab5ef9c9248222d5607b507e6d3d4f7ae9525b9bf2cbf36f8ff62801e6a54c260e3048eec0fc476a0d9ee3de6
@@ -624,9 +624,9 @@ module MailSlurpClient
624
624
  # List emails that an inbox has received. Only emails that are sent to the inbox's email address will appear in the inbox. It may take several seconds for any email you send to an inbox's email address to appear in the inbox. To make this endpoint wait for a minimum number of emails use the `minCount` parameter. The server will retry the inbox database until the `minCount` is satisfied or the `retryTimeout` is reached
625
625
  # @param inbox_id [String] Id of inbox that emails belongs to
626
626
  # @param [Hash] opts the optional parameters
627
- # @option opts [Integer] :alias_for_limit__assessed_first_before_assessing_any_passed_limit_
627
+ # @option opts [Integer] :size Alias for limit. Assessed first before assessing any passed limit.
628
628
  # @option opts [Integer] :limit Limit the result set, ordered by received date time sort direction. Maximum 100. For more listing options see the email controller
629
- # @option opts [String] :sort_the_results_by_received_date_and_direction_asc_or_desc
629
+ # @option opts [String] :sort Sort the results by received date and direction ASC or DESC
630
630
  # @option opts [Integer] :retry_timeout Maximum milliseconds to spend retrying inbox database until minCount emails are returned
631
631
  # @option opts [Integer] :delay_timeout
632
632
  # @option opts [Integer] :min_count Minimum acceptable email count. Will cause request to hang (and retry) until minCount is satisfied or retryTimeout is reached.
@@ -643,9 +643,9 @@ module MailSlurpClient
643
643
  # List emails that an inbox has received. Only emails that are sent to the inbox's email address will appear in the inbox. It may take several seconds for any email you send to an inbox's email address to appear in the inbox. To make this endpoint wait for a minimum number of emails use the `minCount` parameter. The server will retry the inbox database until the `minCount` is satisfied or the `retryTimeout` is reached
644
644
  # @param inbox_id [String] Id of inbox that emails belongs to
645
645
  # @param [Hash] opts the optional parameters
646
- # @option opts [Integer] :alias_for_limit__assessed_first_before_assessing_any_passed_limit_
646
+ # @option opts [Integer] :size Alias for limit. Assessed first before assessing any passed limit.
647
647
  # @option opts [Integer] :limit Limit the result set, ordered by received date time sort direction. Maximum 100. For more listing options see the email controller
648
- # @option opts [String] :sort_the_results_by_received_date_and_direction_asc_or_desc
648
+ # @option opts [String] :sort Sort the results by received date and direction ASC or DESC
649
649
  # @option opts [Integer] :retry_timeout Maximum milliseconds to spend retrying inbox database until minCount emails are returned
650
650
  # @option opts [Integer] :delay_timeout
651
651
  # @option opts [Integer] :min_count Minimum acceptable email count. Will cause request to hang (and retry) until minCount is satisfied or retryTimeout is reached.
@@ -661,8 +661,8 @@ module MailSlurpClient
661
661
  if @api_client.config.client_side_validation && inbox_id.nil?
662
662
  fail ArgumentError, "Missing the required parameter 'inbox_id' when calling InboxControllerApi.get_emails"
663
663
  end
664
- if @api_client.config.client_side_validation && !opts[:'alias_for_limit__assessed_first_before_assessing_any_passed_limit_'].nil? && opts[:'alias_for_limit__assessed_first_before_assessing_any_passed_limit_'] > 100
665
- fail ArgumentError, 'invalid value for "opts[:"alias_for_limit__assessed_first_before_assessing_any_passed_limit_"]" when calling InboxControllerApi.get_emails, must be smaller than or equal to 100.'
664
+ if @api_client.config.client_side_validation && !opts[:'size'].nil? && opts[:'size'] > 100
665
+ fail ArgumentError, 'invalid value for "opts[:"size"]" when calling InboxControllerApi.get_emails, must be smaller than or equal to 100.'
666
666
  end
667
667
 
668
668
  if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 100
@@ -670,17 +670,17 @@ module MailSlurpClient
670
670
  end
671
671
 
672
672
  allowable_values = ["ASC", "DESC"]
673
- if @api_client.config.client_side_validation && opts[:'sort_the_results_by_received_date_and_direction_asc_or_desc'] && !allowable_values.include?(opts[:'sort_the_results_by_received_date_and_direction_asc_or_desc'])
674
- fail ArgumentError, "invalid value for \"sort_the_results_by_received_date_and_direction_asc_or_desc\", must be one of #{allowable_values}"
673
+ if @api_client.config.client_side_validation && opts[:'sort'] && !allowable_values.include?(opts[:'sort'])
674
+ fail ArgumentError, "invalid value for \"sort\", must be one of #{allowable_values}"
675
675
  end
676
676
  # resource path
677
677
  local_var_path = '/inboxes/{inboxId}/emails'.sub('{' + 'inboxId' + '}', CGI.escape(inbox_id.to_s))
678
678
 
679
679
  # query parameters
680
680
  query_params = opts[:query_params] || {}
681
- query_params[:'Alias for limit. Assessed first before assessing any passed limit.'] = opts[:'alias_for_limit__assessed_first_before_assessing_any_passed_limit_'] if !opts[:'alias_for_limit__assessed_first_before_assessing_any_passed_limit_'].nil?
681
+ query_params[:'size'] = opts[:'size'] if !opts[:'size'].nil?
682
682
  query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
683
- query_params[:'Sort the results by received date and direction ASC or DESC'] = opts[:'sort_the_results_by_received_date_and_direction_asc_or_desc'] if !opts[:'sort_the_results_by_received_date_and_direction_asc_or_desc'].nil?
683
+ query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
684
684
  query_params[:'retryTimeout'] = opts[:'retry_timeout'] if !opts[:'retry_timeout'].nil?
685
685
  query_params[:'delayTimeout'] = opts[:'delay_timeout'] if !opts[:'delay_timeout'].nil?
686
686
  query_params[:'minCount'] = opts[:'min_count'] if !opts[:'min_count'].nil?
@@ -19,29 +19,29 @@ module MailSlurpClient
19
19
 
20
20
  attr_accessor :id
21
21
 
22
+ attr_accessor :created_at
23
+
22
24
  attr_accessor :user_id
23
25
 
24
26
  attr_accessor :email_address
25
27
 
26
28
  attr_accessor :inbox_id
27
29
 
28
- attr_accessor :created_at
30
+ attr_accessor :use_threads
29
31
 
30
32
  attr_accessor :updated_at
31
33
 
32
- attr_accessor :use_threads
33
-
34
34
  # Attribute mapping from ruby-style variable name to JSON key.
35
35
  def self.attribute_map
36
36
  {
37
37
  :'name' => :'name',
38
38
  :'id' => :'id',
39
+ :'created_at' => :'createdAt',
39
40
  :'user_id' => :'userId',
40
41
  :'email_address' => :'emailAddress',
41
42
  :'inbox_id' => :'inboxId',
42
- :'created_at' => :'createdAt',
43
- :'updated_at' => :'updatedAt',
44
- :'use_threads' => :'useThreads'
43
+ :'use_threads' => :'useThreads',
44
+ :'updated_at' => :'updatedAt'
45
45
  }
46
46
  end
47
47
 
@@ -50,12 +50,12 @@ module MailSlurpClient
50
50
  {
51
51
  :'name' => :'String',
52
52
  :'id' => :'String',
53
+ :'created_at' => :'DateTime',
53
54
  :'user_id' => :'String',
54
55
  :'email_address' => :'String',
55
56
  :'inbox_id' => :'String',
56
- :'created_at' => :'DateTime',
57
- :'updated_at' => :'DateTime',
58
- :'use_threads' => :'Boolean'
57
+ :'use_threads' => :'Boolean',
58
+ :'updated_at' => :'DateTime'
59
59
  }
60
60
  end
61
61
 
@@ -88,6 +88,10 @@ module MailSlurpClient
88
88
  self.id = attributes[:'id']
89
89
  end
90
90
 
91
+ if attributes.key?(:'created_at')
92
+ self.created_at = attributes[:'created_at']
93
+ end
94
+
91
95
  if attributes.key?(:'user_id')
92
96
  self.user_id = attributes[:'user_id']
93
97
  end
@@ -100,17 +104,13 @@ module MailSlurpClient
100
104
  self.inbox_id = attributes[:'inbox_id']
101
105
  end
102
106
 
103
- if attributes.key?(:'created_at')
104
- self.created_at = attributes[:'created_at']
107
+ if attributes.key?(:'use_threads')
108
+ self.use_threads = attributes[:'use_threads']
105
109
  end
106
110
 
107
111
  if attributes.key?(:'updated_at')
108
112
  self.updated_at = attributes[:'updated_at']
109
113
  end
110
-
111
- if attributes.key?(:'use_threads')
112
- self.use_threads = attributes[:'use_threads']
113
- end
114
114
  end
115
115
 
116
116
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -121,6 +121,10 @@ module MailSlurpClient
121
121
  invalid_properties.push('invalid value for "id", id cannot be nil.')
122
122
  end
123
123
 
124
+ if @created_at.nil?
125
+ invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
126
+ end
127
+
124
128
  if @user_id.nil?
125
129
  invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
126
130
  end
@@ -133,10 +137,6 @@ module MailSlurpClient
133
137
  invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
134
138
  end
135
139
 
136
- if @created_at.nil?
137
- invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
138
- end
139
-
140
140
  if @updated_at.nil?
141
141
  invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
142
142
  end
@@ -148,10 +148,10 @@ module MailSlurpClient
148
148
  # @return true if the model is valid
149
149
  def valid?
150
150
  return false if @id.nil?
151
+ return false if @created_at.nil?
151
152
  return false if @user_id.nil?
152
153
  return false if @email_address.nil?
153
154
  return false if @inbox_id.nil?
154
- return false if @created_at.nil?
155
155
  return false if @updated_at.nil?
156
156
  true
157
157
  end
@@ -163,12 +163,12 @@ module MailSlurpClient
163
163
  self.class == o.class &&
164
164
  name == o.name &&
165
165
  id == o.id &&
166
+ created_at == o.created_at &&
166
167
  user_id == o.user_id &&
167
168
  email_address == o.email_address &&
168
169
  inbox_id == o.inbox_id &&
169
- created_at == o.created_at &&
170
- updated_at == o.updated_at &&
171
- use_threads == o.use_threads
170
+ use_threads == o.use_threads &&
171
+ updated_at == o.updated_at
172
172
  end
173
173
 
174
174
  # @see the `==` method
@@ -180,7 +180,7 @@ module MailSlurpClient
180
180
  # Calculates hash code according to all attributes.
181
181
  # @return [Integer] Hash code
182
182
  def hash
183
- [name, id, user_id, email_address, inbox_id, created_at, updated_at, use_threads].hash
183
+ [name, id, created_at, user_id, email_address, inbox_id, use_threads, updated_at].hash
184
184
  end
185
185
 
186
186
  # Builds the object from hash
@@ -22,10 +22,10 @@ module MailSlurpClient
22
22
  # Content type of attachment.
23
23
  attr_accessor :content_type
24
24
 
25
- attr_accessor :user_id
26
-
27
25
  attr_accessor :created_at
28
26
 
27
+ attr_accessor :user_id
28
+
29
29
  # Attachment ID
30
30
  attr_accessor :attachment_id
31
31
 
@@ -37,8 +37,8 @@ module MailSlurpClient
37
37
  :'name' => :'name',
38
38
  :'content_length' => :'contentLength',
39
39
  :'content_type' => :'contentType',
40
- :'user_id' => :'userId',
41
40
  :'created_at' => :'createdAt',
41
+ :'user_id' => :'userId',
42
42
  :'attachment_id' => :'attachmentId',
43
43
  :'updated_at' => :'updatedAt'
44
44
  }
@@ -50,8 +50,8 @@ module MailSlurpClient
50
50
  :'name' => :'String',
51
51
  :'content_length' => :'Integer',
52
52
  :'content_type' => :'String',
53
- :'user_id' => :'String',
54
53
  :'created_at' => :'DateTime',
54
+ :'user_id' => :'String',
55
55
  :'attachment_id' => :'String',
56
56
  :'updated_at' => :'DateTime'
57
57
  }
@@ -90,14 +90,14 @@ module MailSlurpClient
90
90
  self.content_type = attributes[:'content_type']
91
91
  end
92
92
 
93
- if attributes.key?(:'user_id')
94
- self.user_id = attributes[:'user_id']
95
- end
96
-
97
93
  if attributes.key?(:'created_at')
98
94
  self.created_at = attributes[:'created_at']
99
95
  end
100
96
 
97
+ if attributes.key?(:'user_id')
98
+ self.user_id = attributes[:'user_id']
99
+ end
100
+
101
101
  if attributes.key?(:'attachment_id')
102
102
  self.attachment_id = attributes[:'attachment_id']
103
103
  end
@@ -111,14 +111,14 @@ module MailSlurpClient
111
111
  # @return Array for valid properties with the reasons
112
112
  def list_invalid_properties
113
113
  invalid_properties = Array.new
114
- if @user_id.nil?
115
- invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
116
- end
117
-
118
114
  if @created_at.nil?
119
115
  invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
120
116
  end
121
117
 
118
+ if @user_id.nil?
119
+ invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
120
+ end
121
+
122
122
  if @attachment_id.nil?
123
123
  invalid_properties.push('invalid value for "attachment_id", attachment_id cannot be nil.')
124
124
  end
@@ -133,8 +133,8 @@ module MailSlurpClient
133
133
  # Check to see if the all the properties in the model are valid
134
134
  # @return true if the model is valid
135
135
  def valid?
136
- return false if @user_id.nil?
137
136
  return false if @created_at.nil?
137
+ return false if @user_id.nil?
138
138
  return false if @attachment_id.nil?
139
139
  return false if @updated_at.nil?
140
140
  true
@@ -148,8 +148,8 @@ module MailSlurpClient
148
148
  name == o.name &&
149
149
  content_length == o.content_length &&
150
150
  content_type == o.content_type &&
151
- user_id == o.user_id &&
152
151
  created_at == o.created_at &&
152
+ user_id == o.user_id &&
153
153
  attachment_id == o.attachment_id &&
154
154
  updated_at == o.updated_at
155
155
  end
@@ -163,7 +163,7 @@ module MailSlurpClient
163
163
  # Calculates hash code according to all attributes.
164
164
  # @return [Integer] Hash code
165
165
  def hash
166
- [name, content_length, content_type, user_id, created_at, attachment_id, updated_at].hash
166
+ [name, content_length, content_type, created_at, user_id, attachment_id, updated_at].hash
167
167
  end
168
168
 
169
169
  # Builds the object from hash
@@ -16,16 +16,16 @@ module MailSlurpClient
16
16
  class BounceProjection
17
17
  attr_accessor :id
18
18
 
19
- attr_accessor :sender
20
-
21
19
  attr_accessor :created_at
22
20
 
21
+ attr_accessor :sender
22
+
23
23
  # Attribute mapping from ruby-style variable name to JSON key.
24
24
  def self.attribute_map
25
25
  {
26
26
  :'id' => :'id',
27
- :'sender' => :'sender',
28
- :'created_at' => :'createdAt'
27
+ :'created_at' => :'createdAt',
28
+ :'sender' => :'sender'
29
29
  }
30
30
  end
31
31
 
@@ -33,8 +33,8 @@ module MailSlurpClient
33
33
  def self.openapi_types
34
34
  {
35
35
  :'id' => :'String',
36
- :'sender' => :'String',
37
- :'created_at' => :'DateTime'
36
+ :'created_at' => :'DateTime',
37
+ :'sender' => :'String'
38
38
  }
39
39
  end
40
40
 
@@ -63,35 +63,35 @@ module MailSlurpClient
63
63
  self.id = attributes[:'id']
64
64
  end
65
65
 
66
- if attributes.key?(:'sender')
67
- self.sender = attributes[:'sender']
68
- end
69
-
70
66
  if attributes.key?(:'created_at')
71
67
  self.created_at = attributes[:'created_at']
72
68
  end
69
+
70
+ if attributes.key?(:'sender')
71
+ self.sender = attributes[:'sender']
72
+ end
73
73
  end
74
74
 
75
75
  # Show invalid properties with the reasons. Usually used together with valid?
76
76
  # @return Array for valid properties with the reasons
77
77
  def list_invalid_properties
78
78
  invalid_properties = Array.new
79
- if @sender.nil?
80
- invalid_properties.push('invalid value for "sender", sender cannot be nil.')
81
- end
82
-
83
79
  if @created_at.nil?
84
80
  invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
85
81
  end
86
82
 
83
+ if @sender.nil?
84
+ invalid_properties.push('invalid value for "sender", sender cannot be nil.')
85
+ end
86
+
87
87
  invalid_properties
88
88
  end
89
89
 
90
90
  # Check to see if the all the properties in the model are valid
91
91
  # @return true if the model is valid
92
92
  def valid?
93
- return false if @sender.nil?
94
93
  return false if @created_at.nil?
94
+ return false if @sender.nil?
95
95
  true
96
96
  end
97
97
 
@@ -101,8 +101,8 @@ module MailSlurpClient
101
101
  return true if self.equal?(o)
102
102
  self.class == o.class &&
103
103
  id == o.id &&
104
- sender == o.sender &&
105
- created_at == o.created_at
104
+ created_at == o.created_at &&
105
+ sender == o.sender
106
106
  end
107
107
 
108
108
  # @see the `==` method
@@ -114,7 +114,7 @@ module MailSlurpClient
114
114
  # Calculates hash code according to all attributes.
115
115
  # @return [Integer] Hash code
116
116
  def hash
117
- [id, sender, created_at].hash
117
+ [id, created_at, sender].hash
118
118
  end
119
119
 
120
120
  # Builds the object from hash
@@ -16,10 +16,10 @@ module MailSlurpClient
16
16
  class ContactProjection
17
17
  attr_accessor :id
18
18
 
19
- attr_accessor :group_id
20
-
21
19
  attr_accessor :created_at
22
20
 
21
+ attr_accessor :group_id
22
+
23
23
  attr_accessor :first_name
24
24
 
25
25
  attr_accessor :last_name
@@ -34,8 +34,8 @@ module MailSlurpClient
34
34
  def self.attribute_map
35
35
  {
36
36
  :'id' => :'id',
37
- :'group_id' => :'groupId',
38
37
  :'created_at' => :'createdAt',
38
+ :'group_id' => :'groupId',
39
39
  :'first_name' => :'firstName',
40
40
  :'last_name' => :'lastName',
41
41
  :'company' => :'company',
@@ -48,8 +48,8 @@ module MailSlurpClient
48
48
  def self.openapi_types
49
49
  {
50
50
  :'id' => :'String',
51
- :'group_id' => :'String',
52
51
  :'created_at' => :'DateTime',
52
+ :'group_id' => :'String',
53
53
  :'first_name' => :'String',
54
54
  :'last_name' => :'String',
55
55
  :'company' => :'String',
@@ -83,14 +83,14 @@ module MailSlurpClient
83
83
  self.id = attributes[:'id']
84
84
  end
85
85
 
86
- if attributes.key?(:'group_id')
87
- self.group_id = attributes[:'group_id']
88
- end
89
-
90
86
  if attributes.key?(:'created_at')
91
87
  self.created_at = attributes[:'created_at']
92
88
  end
93
89
 
90
+ if attributes.key?(:'group_id')
91
+ self.group_id = attributes[:'group_id']
92
+ end
93
+
94
94
  if attributes.key?(:'first_name')
95
95
  self.first_name = attributes[:'first_name']
96
96
  end
@@ -143,8 +143,8 @@ module MailSlurpClient
143
143
  return true if self.equal?(o)
144
144
  self.class == o.class &&
145
145
  id == o.id &&
146
- group_id == o.group_id &&
147
146
  created_at == o.created_at &&
147
+ group_id == o.group_id &&
148
148
  first_name == o.first_name &&
149
149
  last_name == o.last_name &&
150
150
  company == o.company &&
@@ -161,7 +161,7 @@ module MailSlurpClient
161
161
  # Calculates hash code according to all attributes.
162
162
  # @return [Integer] Hash code
163
163
  def hash
164
- [id, group_id, created_at, first_name, last_name, company, email_addresses, opt_out].hash
164
+ [id, created_at, group_id, first_name, last_name, company, email_addresses, opt_out].hash
165
165
  end
166
166
 
167
167
  # Builds the object from hash
@@ -19,12 +19,12 @@ module MailSlurpClient
19
19
 
20
20
  attr_accessor :from
21
21
 
22
+ attr_accessor :created_at
23
+
22
24
  attr_accessor :subject
23
25
 
24
26
  attr_accessor :inbox_id
25
27
 
26
- attr_accessor :created_at
27
-
28
28
  attr_accessor :to
29
29
 
30
30
  attr_accessor :attachments
@@ -46,9 +46,9 @@ module MailSlurpClient
46
46
  {
47
47
  :'id' => :'id',
48
48
  :'from' => :'from',
49
+ :'created_at' => :'createdAt',
49
50
  :'subject' => :'subject',
50
51
  :'inbox_id' => :'inboxId',
51
- :'created_at' => :'createdAt',
52
52
  :'to' => :'to',
53
53
  :'attachments' => :'attachments',
54
54
  :'bcc' => :'bcc',
@@ -65,9 +65,9 @@ module MailSlurpClient
65
65
  {
66
66
  :'id' => :'String',
67
67
  :'from' => :'String',
68
+ :'created_at' => :'DateTime',
68
69
  :'subject' => :'String',
69
70
  :'inbox_id' => :'String',
70
- :'created_at' => :'DateTime',
71
71
  :'to' => :'Array<String>',
72
72
  :'attachments' => :'Array<String>',
73
73
  :'bcc' => :'Array<String>',
@@ -108,6 +108,10 @@ module MailSlurpClient
108
108
  self.from = attributes[:'from']
109
109
  end
110
110
 
111
+ if attributes.key?(:'created_at')
112
+ self.created_at = attributes[:'created_at']
113
+ end
114
+
111
115
  if attributes.key?(:'subject')
112
116
  self.subject = attributes[:'subject']
113
117
  end
@@ -116,10 +120,6 @@ module MailSlurpClient
116
120
  self.inbox_id = attributes[:'inbox_id']
117
121
  end
118
122
 
119
- if attributes.key?(:'created_at')
120
- self.created_at = attributes[:'created_at']
121
- end
122
-
123
123
  if attributes.key?(:'to')
124
124
  if (value = attributes[:'to']).is_a?(Array)
125
125
  self.to = value
@@ -169,14 +169,14 @@ module MailSlurpClient
169
169
  invalid_properties.push('invalid value for "id", id cannot be nil.')
170
170
  end
171
171
 
172
- if @inbox_id.nil?
173
- invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
174
- end
175
-
176
172
  if @created_at.nil?
177
173
  invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
178
174
  end
179
175
 
176
+ if @inbox_id.nil?
177
+ invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
178
+ end
179
+
180
180
  if @to.nil?
181
181
  invalid_properties.push('invalid value for "to", to cannot be nil.')
182
182
  end
@@ -188,8 +188,8 @@ module MailSlurpClient
188
188
  # @return true if the model is valid
189
189
  def valid?
190
190
  return false if @id.nil?
191
- return false if @inbox_id.nil?
192
191
  return false if @created_at.nil?
192
+ return false if @inbox_id.nil?
193
193
  return false if @to.nil?
194
194
  true
195
195
  end
@@ -201,9 +201,9 @@ module MailSlurpClient
201
201
  self.class == o.class &&
202
202
  id == o.id &&
203
203
  from == o.from &&
204
+ created_at == o.created_at &&
204
205
  subject == o.subject &&
205
206
  inbox_id == o.inbox_id &&
206
- created_at == o.created_at &&
207
207
  to == o.to &&
208
208
  attachments == o.attachments &&
209
209
  bcc == o.bcc &&
@@ -223,7 +223,7 @@ module MailSlurpClient
223
223
  # Calculates hash code according to all attributes.
224
224
  # @return [Integer] Hash code
225
225
  def hash
226
- [id, from, subject, inbox_id, created_at, to, attachments, bcc, cc, team_access, read, body_md5_hash, body_excerpt].hash
226
+ [id, from, created_at, subject, inbox_id, to, attachments, bcc, cc, team_access, read, body_md5_hash, body_excerpt].hash
227
227
  end
228
228
 
229
229
  # Builds the object from hash