mailslurp_client 15.1.0 → 15.1.1

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: 47799fa1e044663717fa8f259a9b3cb77fb67dab946d725e306c8200ae561fb8
4
+ data.tar.gz: 503ff1c2b18f9d96f2c15d2442afe689e79217626903c82dc3bccae6bbfae453
5
5
  SHA512:
6
- metadata.gz: 4d3caeafaaed6b4d9ff211fbc3d8bfc2d2bf2c87ebd64cbba414a97df697a9ca4447f6337bc80c4a7a262d971017f4c14fa9e627e6d9d931c746355c2f964a2f
7
- data.tar.gz: d6dceaca0fa5b51a4ce7fef90f57e8997f5aeafaf8ac8a4f22f72a98d3bdd08eeac2ace26af667581a1995c700faac6572f94c155b5cd07a2f943bd3468b9436
6
+ metadata.gz: 57963a33c0562b3a9f3626b5a61f529f5e3f533f160f4ab9d26b95cb73555f17d22040eab39d4fc246ea45b0fa9326678869cb2264979adbde4c0a325acc7c61
7
+ data.tar.gz: 01c213b8392850b88f393138ff9a0f68bbebf35ea3665c72f814d534da238027726b39b5d323e2270e4c5cc37a183049c807b5d3d903dbd14cff91566d37e41f
@@ -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?
@@ -27,10 +27,10 @@ module MailSlurpClient
27
27
 
28
28
  attr_accessor :created_at
29
29
 
30
- attr_accessor :updated_at
31
-
32
30
  attr_accessor :use_threads
33
31
 
32
+ attr_accessor :updated_at
33
+
34
34
  # Attribute mapping from ruby-style variable name to JSON key.
35
35
  def self.attribute_map
36
36
  {
@@ -40,8 +40,8 @@ module MailSlurpClient
40
40
  :'email_address' => :'emailAddress',
41
41
  :'inbox_id' => :'inboxId',
42
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
 
@@ -54,8 +54,8 @@ module MailSlurpClient
54
54
  :'email_address' => :'String',
55
55
  :'inbox_id' => :'String',
56
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
 
@@ -104,13 +104,13 @@ module MailSlurpClient
104
104
  self.created_at = attributes[:'created_at']
105
105
  end
106
106
 
107
- if attributes.key?(:'updated_at')
108
- self.updated_at = attributes[:'updated_at']
109
- end
110
-
111
107
  if attributes.key?(:'use_threads')
112
108
  self.use_threads = attributes[:'use_threads']
113
109
  end
110
+
111
+ if attributes.key?(:'updated_at')
112
+ self.updated_at = attributes[:'updated_at']
113
+ end
114
114
  end
115
115
 
116
116
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -167,8 +167,8 @@ module MailSlurpClient
167
167
  email_address == o.email_address &&
168
168
  inbox_id == o.inbox_id &&
169
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, user_id, email_address, inbox_id, created_at, use_threads, updated_at].hash
184
184
  end
185
185
 
186
186
  # Builds the object from hash
@@ -24,11 +24,11 @@ module MailSlurpClient
24
24
 
25
25
  attr_accessor :user_id
26
26
 
27
- attr_accessor :created_at
28
-
29
27
  # Attachment ID
30
28
  attr_accessor :attachment_id
31
29
 
30
+ attr_accessor :created_at
31
+
32
32
  attr_accessor :updated_at
33
33
 
34
34
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -38,8 +38,8 @@ module MailSlurpClient
38
38
  :'content_length' => :'contentLength',
39
39
  :'content_type' => :'contentType',
40
40
  :'user_id' => :'userId',
41
- :'created_at' => :'createdAt',
42
41
  :'attachment_id' => :'attachmentId',
42
+ :'created_at' => :'createdAt',
43
43
  :'updated_at' => :'updatedAt'
44
44
  }
45
45
  end
@@ -51,8 +51,8 @@ module MailSlurpClient
51
51
  :'content_length' => :'Integer',
52
52
  :'content_type' => :'String',
53
53
  :'user_id' => :'String',
54
- :'created_at' => :'DateTime',
55
54
  :'attachment_id' => :'String',
55
+ :'created_at' => :'DateTime',
56
56
  :'updated_at' => :'DateTime'
57
57
  }
58
58
  end
@@ -94,14 +94,14 @@ module MailSlurpClient
94
94
  self.user_id = attributes[:'user_id']
95
95
  end
96
96
 
97
- if attributes.key?(:'created_at')
98
- self.created_at = attributes[:'created_at']
99
- end
100
-
101
97
  if attributes.key?(:'attachment_id')
102
98
  self.attachment_id = attributes[:'attachment_id']
103
99
  end
104
100
 
101
+ if attributes.key?(:'created_at')
102
+ self.created_at = attributes[:'created_at']
103
+ end
104
+
105
105
  if attributes.key?(:'updated_at')
106
106
  self.updated_at = attributes[:'updated_at']
107
107
  end
@@ -115,14 +115,14 @@ module MailSlurpClient
115
115
  invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
116
116
  end
117
117
 
118
- if @created_at.nil?
119
- invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
120
- end
121
-
122
118
  if @attachment_id.nil?
123
119
  invalid_properties.push('invalid value for "attachment_id", attachment_id cannot be nil.')
124
120
  end
125
121
 
122
+ if @created_at.nil?
123
+ invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
124
+ end
125
+
126
126
  if @updated_at.nil?
127
127
  invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
128
128
  end
@@ -134,8 +134,8 @@ module MailSlurpClient
134
134
  # @return true if the model is valid
135
135
  def valid?
136
136
  return false if @user_id.nil?
137
- return false if @created_at.nil?
138
137
  return false if @attachment_id.nil?
138
+ return false if @created_at.nil?
139
139
  return false if @updated_at.nil?
140
140
  true
141
141
  end
@@ -149,8 +149,8 @@ module MailSlurpClient
149
149
  content_length == o.content_length &&
150
150
  content_type == o.content_type &&
151
151
  user_id == o.user_id &&
152
- created_at == o.created_at &&
153
152
  attachment_id == o.attachment_id &&
153
+ created_at == o.created_at &&
154
154
  updated_at == o.updated_at
155
155
  end
156
156
 
@@ -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, user_id, attachment_id, created_at, updated_at].hash
167
167
  end
168
168
 
169
169
  # Builds the object from hash
@@ -18,8 +18,6 @@ module MailSlurpClient
18
18
 
19
19
  attr_accessor :group_id
20
20
 
21
- attr_accessor :created_at
22
-
23
21
  attr_accessor :first_name
24
22
 
25
23
  attr_accessor :last_name
@@ -30,17 +28,19 @@ module MailSlurpClient
30
28
 
31
29
  attr_accessor :opt_out
32
30
 
31
+ attr_accessor :created_at
32
+
33
33
  # Attribute mapping from ruby-style variable name to JSON key.
34
34
  def self.attribute_map
35
35
  {
36
36
  :'id' => :'id',
37
37
  :'group_id' => :'groupId',
38
- :'created_at' => :'createdAt',
39
38
  :'first_name' => :'firstName',
40
39
  :'last_name' => :'lastName',
41
40
  :'company' => :'company',
42
41
  :'email_addresses' => :'emailAddresses',
43
- :'opt_out' => :'optOut'
42
+ :'opt_out' => :'optOut',
43
+ :'created_at' => :'createdAt'
44
44
  }
45
45
  end
46
46
 
@@ -49,12 +49,12 @@ module MailSlurpClient
49
49
  {
50
50
  :'id' => :'String',
51
51
  :'group_id' => :'String',
52
- :'created_at' => :'DateTime',
53
52
  :'first_name' => :'String',
54
53
  :'last_name' => :'String',
55
54
  :'company' => :'String',
56
55
  :'email_addresses' => :'Array<String>',
57
- :'opt_out' => :'Boolean'
56
+ :'opt_out' => :'Boolean',
57
+ :'created_at' => :'DateTime'
58
58
  }
59
59
  end
60
60
 
@@ -87,10 +87,6 @@ module MailSlurpClient
87
87
  self.group_id = attributes[:'group_id']
88
88
  end
89
89
 
90
- if attributes.key?(:'created_at')
91
- self.created_at = attributes[:'created_at']
92
- end
93
-
94
90
  if attributes.key?(:'first_name')
95
91
  self.first_name = attributes[:'first_name']
96
92
  end
@@ -112,6 +108,10 @@ module MailSlurpClient
112
108
  if attributes.key?(:'opt_out')
113
109
  self.opt_out = attributes[:'opt_out']
114
110
  end
111
+
112
+ if attributes.key?(:'created_at')
113
+ self.created_at = attributes[:'created_at']
114
+ end
115
115
  end
116
116
 
117
117
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -144,12 +144,12 @@ module MailSlurpClient
144
144
  self.class == o.class &&
145
145
  id == o.id &&
146
146
  group_id == o.group_id &&
147
- created_at == o.created_at &&
148
147
  first_name == o.first_name &&
149
148
  last_name == o.last_name &&
150
149
  company == o.company &&
151
150
  email_addresses == o.email_addresses &&
152
- opt_out == o.opt_out
151
+ opt_out == o.opt_out &&
152
+ created_at == o.created_at
153
153
  end
154
154
 
155
155
  # @see the `==` method
@@ -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, group_id, first_name, last_name, company, email_addresses, opt_out, created_at].hash
165
165
  end
166
166
 
167
167
  # Builds the object from hash
@@ -23,8 +23,6 @@ module MailSlurpClient
23
23
 
24
24
  attr_accessor :inbox_id
25
25
 
26
- attr_accessor :created_at
27
-
28
26
  attr_accessor :to
29
27
 
30
28
  attr_accessor :attachments
@@ -33,6 +31,8 @@ module MailSlurpClient
33
31
 
34
32
  attr_accessor :cc
35
33
 
34
+ attr_accessor :created_at
35
+
36
36
  attr_accessor :team_access
37
37
 
38
38
  attr_accessor :read
@@ -48,11 +48,11 @@ module MailSlurpClient
48
48
  :'from' => :'from',
49
49
  :'subject' => :'subject',
50
50
  :'inbox_id' => :'inboxId',
51
- :'created_at' => :'createdAt',
52
51
  :'to' => :'to',
53
52
  :'attachments' => :'attachments',
54
53
  :'bcc' => :'bcc',
55
54
  :'cc' => :'cc',
55
+ :'created_at' => :'createdAt',
56
56
  :'team_access' => :'teamAccess',
57
57
  :'read' => :'read',
58
58
  :'body_md5_hash' => :'bodyMD5Hash',
@@ -67,11 +67,11 @@ module MailSlurpClient
67
67
  :'from' => :'String',
68
68
  :'subject' => :'String',
69
69
  :'inbox_id' => :'String',
70
- :'created_at' => :'DateTime',
71
70
  :'to' => :'Array<String>',
72
71
  :'attachments' => :'Array<String>',
73
72
  :'bcc' => :'Array<String>',
74
73
  :'cc' => :'Array<String>',
74
+ :'created_at' => :'DateTime',
75
75
  :'team_access' => :'Boolean',
76
76
  :'read' => :'Boolean',
77
77
  :'body_md5_hash' => :'String',
@@ -116,10 +116,6 @@ module MailSlurpClient
116
116
  self.inbox_id = attributes[:'inbox_id']
117
117
  end
118
118
 
119
- if attributes.key?(:'created_at')
120
- self.created_at = attributes[:'created_at']
121
- end
122
-
123
119
  if attributes.key?(:'to')
124
120
  if (value = attributes[:'to']).is_a?(Array)
125
121
  self.to = value
@@ -144,6 +140,10 @@ module MailSlurpClient
144
140
  end
145
141
  end
146
142
 
143
+ if attributes.key?(:'created_at')
144
+ self.created_at = attributes[:'created_at']
145
+ end
146
+
147
147
  if attributes.key?(:'team_access')
148
148
  self.team_access = attributes[:'team_access']
149
149
  end
@@ -173,14 +173,14 @@ module MailSlurpClient
173
173
  invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
174
174
  end
175
175
 
176
- if @created_at.nil?
177
- invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
178
- end
179
-
180
176
  if @to.nil?
181
177
  invalid_properties.push('invalid value for "to", to cannot be nil.')
182
178
  end
183
179
 
180
+ if @created_at.nil?
181
+ invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
182
+ end
183
+
184
184
  invalid_properties
185
185
  end
186
186
 
@@ -189,8 +189,8 @@ module MailSlurpClient
189
189
  def valid?
190
190
  return false if @id.nil?
191
191
  return false if @inbox_id.nil?
192
- return false if @created_at.nil?
193
192
  return false if @to.nil?
193
+ return false if @created_at.nil?
194
194
  true
195
195
  end
196
196
 
@@ -203,11 +203,11 @@ module MailSlurpClient
203
203
  from == o.from &&
204
204
  subject == o.subject &&
205
205
  inbox_id == o.inbox_id &&
206
- created_at == o.created_at &&
207
206
  to == o.to &&
208
207
  attachments == o.attachments &&
209
208
  bcc == o.bcc &&
210
209
  cc == o.cc &&
210
+ created_at == o.created_at &&
211
211
  team_access == o.team_access &&
212
212
  read == o.read &&
213
213
  body_md5_hash == o.body_md5_hash &&
@@ -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, subject, inbox_id, to, attachments, bcc, cc, created_at, team_access, read, body_md5_hash, body_excerpt].hash
227
227
  end
228
228
 
229
229
  # Builds the object from hash
@@ -18,10 +18,10 @@ module MailSlurpClient
18
18
 
19
19
  attr_accessor :from
20
20
 
21
- attr_accessor :subject
22
-
23
21
  attr_accessor :user_id
24
22
 
23
+ attr_accessor :subject
24
+
25
25
  attr_accessor :created_at
26
26
 
27
27
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -29,8 +29,8 @@ module MailSlurpClient
29
29
  {
30
30
  :'id' => :'id',
31
31
  :'from' => :'from',
32
- :'subject' => :'subject',
33
32
  :'user_id' => :'userId',
33
+ :'subject' => :'subject',
34
34
  :'created_at' => :'createdAt'
35
35
  }
36
36
  end
@@ -40,8 +40,8 @@ module MailSlurpClient
40
40
  {
41
41
  :'id' => :'String',
42
42
  :'from' => :'String',
43
- :'subject' => :'String',
44
43
  :'user_id' => :'String',
44
+ :'subject' => :'String',
45
45
  :'created_at' => :'DateTime'
46
46
  }
47
47
  end
@@ -75,14 +75,14 @@ module MailSlurpClient
75
75
  self.from = attributes[:'from']
76
76
  end
77
77
 
78
- if attributes.key?(:'subject')
79
- self.subject = attributes[:'subject']
80
- end
81
-
82
78
  if attributes.key?(:'user_id')
83
79
  self.user_id = attributes[:'user_id']
84
80
  end
85
81
 
82
+ if attributes.key?(:'subject')
83
+ self.subject = attributes[:'subject']
84
+ end
85
+
86
86
  if attributes.key?(:'created_at')
87
87
  self.created_at = attributes[:'created_at']
88
88
  end
@@ -118,8 +118,8 @@ module MailSlurpClient
118
118
  self.class == o.class &&
119
119
  id == o.id &&
120
120
  from == o.from &&
121
- subject == o.subject &&
122
121
  user_id == o.user_id &&
122
+ subject == o.subject &&
123
123
  created_at == o.created_at
124
124
  end
125
125
 
@@ -132,7 +132,7 @@ module MailSlurpClient
132
132
  # Calculates hash code according to all attributes.
133
133
  # @return [Integer] Hash code
134
134
  def hash
135
- [id, from, subject, user_id, created_at].hash
135
+ [id, from, user_id, subject, created_at].hash
136
136
  end
137
137
 
138
138
  # Builds the object from hash
@@ -25,8 +25,6 @@ module MailSlurpClient
25
25
 
26
26
  attr_accessor :inbox_id
27
27
 
28
- attr_accessor :created_at
29
-
30
28
  attr_accessor :to
31
29
 
32
30
  attr_accessor :attachments
@@ -35,6 +33,8 @@ module MailSlurpClient
35
33
 
36
34
  attr_accessor :cc
37
35
 
36
+ attr_accessor :created_at
37
+
38
38
  attr_accessor :body_md5_hash
39
39
 
40
40
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -45,11 +45,11 @@ module MailSlurpClient
45
45
  :'user_id' => :'userId',
46
46
  :'subject' => :'subject',
47
47
  :'inbox_id' => :'inboxId',
48
- :'created_at' => :'createdAt',
49
48
  :'to' => :'to',
50
49
  :'attachments' => :'attachments',
51
50
  :'bcc' => :'bcc',
52
51
  :'cc' => :'cc',
52
+ :'created_at' => :'createdAt',
53
53
  :'body_md5_hash' => :'bodyMD5Hash'
54
54
  }
55
55
  end
@@ -62,11 +62,11 @@ module MailSlurpClient
62
62
  :'user_id' => :'String',
63
63
  :'subject' => :'String',
64
64
  :'inbox_id' => :'String',
65
- :'created_at' => :'DateTime',
66
65
  :'to' => :'Array<String>',
67
66
  :'attachments' => :'Array<String>',
68
67
  :'bcc' => :'Array<String>',
69
68
  :'cc' => :'Array<String>',
69
+ :'created_at' => :'DateTime',
70
70
  :'body_md5_hash' => :'String'
71
71
  }
72
72
  end
@@ -112,10 +112,6 @@ module MailSlurpClient
112
112
  self.inbox_id = attributes[:'inbox_id']
113
113
  end
114
114
 
115
- if attributes.key?(:'created_at')
116
- self.created_at = attributes[:'created_at']
117
- end
118
-
119
115
  if attributes.key?(:'to')
120
116
  if (value = attributes[:'to']).is_a?(Array)
121
117
  self.to = value
@@ -140,6 +136,10 @@ module MailSlurpClient
140
136
  end
141
137
  end
142
138
 
139
+ if attributes.key?(:'created_at')
140
+ self.created_at = attributes[:'created_at']
141
+ end
142
+
143
143
  if attributes.key?(:'body_md5_hash')
144
144
  self.body_md5_hash = attributes[:'body_md5_hash']
145
145
  end
@@ -161,10 +161,6 @@ module MailSlurpClient
161
161
  invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
162
162
  end
163
163
 
164
- if @created_at.nil?
165
- invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
166
- end
167
-
168
164
  if @to.nil?
169
165
  invalid_properties.push('invalid value for "to", to cannot be nil.')
170
166
  end
@@ -181,6 +177,10 @@ module MailSlurpClient
181
177
  invalid_properties.push('invalid value for "cc", cc cannot be nil.')
182
178
  end
183
179
 
180
+ if @created_at.nil?
181
+ invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
182
+ end
183
+
184
184
  invalid_properties
185
185
  end
186
186
 
@@ -190,11 +190,11 @@ module MailSlurpClient
190
190
  return false if @id.nil?
191
191
  return false if @user_id.nil?
192
192
  return false if @inbox_id.nil?
193
- return false if @created_at.nil?
194
193
  return false if @to.nil?
195
194
  return false if @attachments.nil?
196
195
  return false if @bcc.nil?
197
196
  return false if @cc.nil?
197
+ return false if @created_at.nil?
198
198
  true
199
199
  end
200
200
 
@@ -208,11 +208,11 @@ module MailSlurpClient
208
208
  user_id == o.user_id &&
209
209
  subject == o.subject &&
210
210
  inbox_id == o.inbox_id &&
211
- created_at == o.created_at &&
212
211
  to == o.to &&
213
212
  attachments == o.attachments &&
214
213
  bcc == o.bcc &&
215
214
  cc == o.cc &&
215
+ created_at == o.created_at &&
216
216
  body_md5_hash == o.body_md5_hash
217
217
  end
218
218
 
@@ -225,7 +225,7 @@ module MailSlurpClient
225
225
  # Calculates hash code according to all attributes.
226
226
  # @return [Integer] Hash code
227
227
  def hash
228
- [id, from, user_id, subject, inbox_id, created_at, to, attachments, bcc, cc, body_md5_hash].hash
228
+ [id, from, user_id, subject, inbox_id, to, attachments, bcc, cc, created_at, body_md5_hash].hash
229
229
  end
230
230
 
231
231
  # Builds the object from hash
@@ -20,18 +20,18 @@ module MailSlurpClient
20
20
 
21
21
  attr_accessor :created_at
22
22
 
23
- attr_accessor :updated_at
24
-
25
23
  attr_accessor :variables
26
24
 
25
+ attr_accessor :updated_at
26
+
27
27
  # Attribute mapping from ruby-style variable name to JSON key.
28
28
  def self.attribute_map
29
29
  {
30
30
  :'name' => :'name',
31
31
  :'id' => :'id',
32
32
  :'created_at' => :'createdAt',
33
- :'updated_at' => :'updatedAt',
34
- :'variables' => :'variables'
33
+ :'variables' => :'variables',
34
+ :'updated_at' => :'updatedAt'
35
35
  }
36
36
  end
37
37
 
@@ -41,8 +41,8 @@ module MailSlurpClient
41
41
  :'name' => :'String',
42
42
  :'id' => :'String',
43
43
  :'created_at' => :'DateTime',
44
- :'updated_at' => :'DateTime',
45
- :'variables' => :'Array<String>'
44
+ :'variables' => :'Array<String>',
45
+ :'updated_at' => :'DateTime'
46
46
  }
47
47
  end
48
48
 
@@ -79,15 +79,15 @@ module MailSlurpClient
79
79
  self.created_at = attributes[:'created_at']
80
80
  end
81
81
 
82
- if attributes.key?(:'updated_at')
83
- self.updated_at = attributes[:'updated_at']
84
- end
85
-
86
82
  if attributes.key?(:'variables')
87
83
  if (value = attributes[:'variables']).is_a?(Array)
88
84
  self.variables = value
89
85
  end
90
86
  end
87
+
88
+ if attributes.key?(:'updated_at')
89
+ self.updated_at = attributes[:'updated_at']
90
+ end
91
91
  end
92
92
 
93
93
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -106,14 +106,14 @@ module MailSlurpClient
106
106
  invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
107
107
  end
108
108
 
109
- if @updated_at.nil?
110
- invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
111
- end
112
-
113
109
  if @variables.nil?
114
110
  invalid_properties.push('invalid value for "variables", variables cannot be nil.')
115
111
  end
116
112
 
113
+ if @updated_at.nil?
114
+ invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
115
+ end
116
+
117
117
  invalid_properties
118
118
  end
119
119
 
@@ -123,8 +123,8 @@ module MailSlurpClient
123
123
  return false if @name.nil?
124
124
  return false if @id.nil?
125
125
  return false if @created_at.nil?
126
- return false if @updated_at.nil?
127
126
  return false if @variables.nil?
127
+ return false if @updated_at.nil?
128
128
  true
129
129
  end
130
130
 
@@ -136,8 +136,8 @@ module MailSlurpClient
136
136
  name == o.name &&
137
137
  id == o.id &&
138
138
  created_at == o.created_at &&
139
- updated_at == o.updated_at &&
140
- variables == o.variables
139
+ variables == o.variables &&
140
+ updated_at == o.updated_at
141
141
  end
142
142
 
143
143
  # @see the `==` method
@@ -149,7 +149,7 @@ module MailSlurpClient
149
149
  # Calculates hash code according to all attributes.
150
150
  # @return [Integer] Hash code
151
151
  def hash
152
- [name, id, created_at, updated_at, variables].hash
152
+ [name, id, created_at, variables, updated_at].hash
153
153
  end
154
154
 
155
155
  # Builds the object from hash
@@ -19,13 +19,11 @@ module MailSlurpClient
19
19
 
20
20
  attr_accessor :id
21
21
 
22
- attr_accessor :subject
23
-
24
22
  attr_accessor :user_id
25
23
 
26
- attr_accessor :inbox_id
24
+ attr_accessor :subject
27
25
 
28
- attr_accessor :created_at
26
+ attr_accessor :inbox_id
29
27
 
30
28
  attr_accessor :to
31
29
 
@@ -33,6 +31,8 @@ module MailSlurpClient
33
31
 
34
32
  attr_accessor :cc
35
33
 
34
+ attr_accessor :created_at
35
+
36
36
  attr_accessor :updated_at
37
37
 
38
38
  attr_accessor :alias_id
@@ -42,13 +42,13 @@ module MailSlurpClient
42
42
  {
43
43
  :'name' => :'name',
44
44
  :'id' => :'id',
45
- :'subject' => :'subject',
46
45
  :'user_id' => :'userId',
46
+ :'subject' => :'subject',
47
47
  :'inbox_id' => :'inboxId',
48
- :'created_at' => :'createdAt',
49
48
  :'to' => :'to',
50
49
  :'bcc' => :'bcc',
51
50
  :'cc' => :'cc',
51
+ :'created_at' => :'createdAt',
52
52
  :'updated_at' => :'updatedAt',
53
53
  :'alias_id' => :'aliasId'
54
54
  }
@@ -59,13 +59,13 @@ module MailSlurpClient
59
59
  {
60
60
  :'name' => :'String',
61
61
  :'id' => :'String',
62
- :'subject' => :'String',
63
62
  :'user_id' => :'String',
63
+ :'subject' => :'String',
64
64
  :'inbox_id' => :'String',
65
- :'created_at' => :'DateTime',
66
65
  :'to' => :'Array<String>',
67
66
  :'bcc' => :'Array<String>',
68
67
  :'cc' => :'Array<String>',
68
+ :'created_at' => :'DateTime',
69
69
  :'updated_at' => :'DateTime',
70
70
  :'alias_id' => :'String'
71
71
  }
@@ -100,20 +100,16 @@ module MailSlurpClient
100
100
  self.id = attributes[:'id']
101
101
  end
102
102
 
103
- if attributes.key?(:'subject')
104
- self.subject = attributes[:'subject']
105
- end
106
-
107
103
  if attributes.key?(:'user_id')
108
104
  self.user_id = attributes[:'user_id']
109
105
  end
110
106
 
111
- if attributes.key?(:'inbox_id')
112
- self.inbox_id = attributes[:'inbox_id']
107
+ if attributes.key?(:'subject')
108
+ self.subject = attributes[:'subject']
113
109
  end
114
110
 
115
- if attributes.key?(:'created_at')
116
- self.created_at = attributes[:'created_at']
111
+ if attributes.key?(:'inbox_id')
112
+ self.inbox_id = attributes[:'inbox_id']
117
113
  end
118
114
 
119
115
  if attributes.key?(:'to')
@@ -134,6 +130,10 @@ module MailSlurpClient
134
130
  end
135
131
  end
136
132
 
133
+ if attributes.key?(:'created_at')
134
+ self.created_at = attributes[:'created_at']
135
+ end
136
+
137
137
  if attributes.key?(:'updated_at')
138
138
  self.updated_at = attributes[:'updated_at']
139
139
  end
@@ -159,14 +159,14 @@ module MailSlurpClient
159
159
  invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
160
160
  end
161
161
 
162
- if @created_at.nil?
163
- invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
164
- end
165
-
166
162
  if @to.nil?
167
163
  invalid_properties.push('invalid value for "to", to cannot be nil.')
168
164
  end
169
165
 
166
+ if @created_at.nil?
167
+ invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
168
+ end
169
+
170
170
  if @updated_at.nil?
171
171
  invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
172
172
  end
@@ -184,8 +184,8 @@ module MailSlurpClient
184
184
  return false if @id.nil?
185
185
  return false if @user_id.nil?
186
186
  return false if @inbox_id.nil?
187
- return false if @created_at.nil?
188
187
  return false if @to.nil?
188
+ return false if @created_at.nil?
189
189
  return false if @updated_at.nil?
190
190
  return false if @alias_id.nil?
191
191
  true
@@ -198,13 +198,13 @@ module MailSlurpClient
198
198
  self.class == o.class &&
199
199
  name == o.name &&
200
200
  id == o.id &&
201
- subject == o.subject &&
202
201
  user_id == o.user_id &&
202
+ subject == o.subject &&
203
203
  inbox_id == o.inbox_id &&
204
- created_at == o.created_at &&
205
204
  to == o.to &&
206
205
  bcc == o.bcc &&
207
206
  cc == o.cc &&
207
+ created_at == o.created_at &&
208
208
  updated_at == o.updated_at &&
209
209
  alias_id == o.alias_id
210
210
  end
@@ -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
- [name, id, subject, user_id, inbox_id, created_at, to, bcc, cc, updated_at, alias_id].hash
221
+ [name, id, user_id, subject, inbox_id, to, bcc, cc, created_at, updated_at, alias_id].hash
222
222
  end
223
223
 
224
224
  # Builds the object from hash
@@ -20,18 +20,18 @@ module MailSlurpClient
20
20
 
21
21
  attr_accessor :subject
22
22
 
23
- attr_accessor :created_at
24
-
25
23
  attr_accessor :to
26
24
 
25
+ attr_accessor :created_at
26
+
27
27
  # Attribute mapping from ruby-style variable name to JSON key.
28
28
  def self.attribute_map
29
29
  {
30
30
  :'id' => :'id',
31
31
  :'from' => :'from',
32
32
  :'subject' => :'subject',
33
- :'created_at' => :'createdAt',
34
- :'to' => :'to'
33
+ :'to' => :'to',
34
+ :'created_at' => :'createdAt'
35
35
  }
36
36
  end
37
37
 
@@ -41,8 +41,8 @@ module MailSlurpClient
41
41
  :'id' => :'String',
42
42
  :'from' => :'String',
43
43
  :'subject' => :'String',
44
- :'created_at' => :'DateTime',
45
- :'to' => :'Array<String>'
44
+ :'to' => :'Array<String>',
45
+ :'created_at' => :'DateTime'
46
46
  }
47
47
  end
48
48
 
@@ -79,15 +79,15 @@ module MailSlurpClient
79
79
  self.subject = attributes[:'subject']
80
80
  end
81
81
 
82
- if attributes.key?(:'created_at')
83
- self.created_at = attributes[:'created_at']
84
- end
85
-
86
82
  if attributes.key?(:'to')
87
83
  if (value = attributes[:'to']).is_a?(Array)
88
84
  self.to = value
89
85
  end
90
86
  end
87
+
88
+ if attributes.key?(:'created_at')
89
+ self.created_at = attributes[:'created_at']
90
+ end
91
91
  end
92
92
 
93
93
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -121,8 +121,8 @@ module MailSlurpClient
121
121
  id == o.id &&
122
122
  from == o.from &&
123
123
  subject == o.subject &&
124
- created_at == o.created_at &&
125
- to == o.to
124
+ to == o.to &&
125
+ created_at == o.created_at
126
126
  end
127
127
 
128
128
  # @see the `==` method
@@ -134,7 +134,7 @@ module MailSlurpClient
134
134
  # Calculates hash code according to all attributes.
135
135
  # @return [Integer] Hash code
136
136
  def hash
137
- [id, from, subject, created_at, to].hash
137
+ [id, from, subject, to, created_at].hash
138
138
  end
139
139
 
140
140
  # Builds the object from hash
@@ -23,10 +23,10 @@ module MailSlurpClient
23
23
 
24
24
  attr_accessor :inbox_id
25
25
 
26
- attr_accessor :created_at
27
-
28
26
  attr_accessor :event_name
29
27
 
28
+ attr_accessor :created_at
29
+
30
30
  attr_accessor :updated_at
31
31
 
32
32
  class EnumAttributeValidator
@@ -58,8 +58,8 @@ module MailSlurpClient
58
58
  :'id' => :'id',
59
59
  :'url' => :'url',
60
60
  :'inbox_id' => :'inboxId',
61
- :'created_at' => :'createdAt',
62
61
  :'event_name' => :'eventName',
62
+ :'created_at' => :'createdAt',
63
63
  :'updated_at' => :'updatedAt'
64
64
  }
65
65
  end
@@ -71,8 +71,8 @@ module MailSlurpClient
71
71
  :'id' => :'String',
72
72
  :'url' => :'String',
73
73
  :'inbox_id' => :'String',
74
- :'created_at' => :'DateTime',
75
74
  :'event_name' => :'String',
75
+ :'created_at' => :'DateTime',
76
76
  :'updated_at' => :'DateTime'
77
77
  }
78
78
  end
@@ -114,14 +114,14 @@ module MailSlurpClient
114
114
  self.inbox_id = attributes[:'inbox_id']
115
115
  end
116
116
 
117
- if attributes.key?(:'created_at')
118
- self.created_at = attributes[:'created_at']
119
- end
120
-
121
117
  if attributes.key?(:'event_name')
122
118
  self.event_name = attributes[:'event_name']
123
119
  end
124
120
 
121
+ if attributes.key?(:'created_at')
122
+ self.created_at = attributes[:'created_at']
123
+ end
124
+
125
125
  if attributes.key?(:'updated_at')
126
126
  self.updated_at = attributes[:'updated_at']
127
127
  end
@@ -160,9 +160,9 @@ module MailSlurpClient
160
160
  return false if @id.nil?
161
161
  return false if @url.nil?
162
162
  return false if @inbox_id.nil?
163
- return false if @created_at.nil?
164
163
  event_name_validator = EnumAttributeValidator.new('String', ["EMAIL_RECEIVED", "NEW_EMAIL", "NEW_CONTACT", "NEW_ATTACHMENT", "EMAIL_OPENED", "EMAIL_READ"])
165
164
  return false unless event_name_validator.valid?(@event_name)
165
+ return false if @created_at.nil?
166
166
  return false if @updated_at.nil?
167
167
  true
168
168
  end
@@ -186,8 +186,8 @@ module MailSlurpClient
186
186
  id == o.id &&
187
187
  url == o.url &&
188
188
  inbox_id == o.inbox_id &&
189
- created_at == o.created_at &&
190
189
  event_name == o.event_name &&
190
+ created_at == o.created_at &&
191
191
  updated_at == o.updated_at
192
192
  end
193
193
 
@@ -200,7 +200,7 @@ module MailSlurpClient
200
200
  # Calculates hash code according to all attributes.
201
201
  # @return [Integer] Hash code
202
202
  def hash
203
- [name, id, url, inbox_id, created_at, event_name, updated_at].hash
203
+ [name, id, url, inbox_id, event_name, created_at, updated_at].hash
204
204
  end
205
205
 
206
206
  # Builds the object from hash
@@ -11,5 +11,5 @@ OpenAPI Generator version: 4.3.1
11
11
  =end
12
12
 
13
13
  module MailSlurpClient
14
- VERSION = '15.1.0'
14
+ VERSION = '15.1.1'
15
15
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mailslurp_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 15.1.0
4
+ version: 15.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - mailslurp