mailslurp_client 15.0.8 → 15.1.0

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: b48c90c8c7ef4dc70280caf2bdcdc5391377922b5eb6fbbd77d26f6a7f0888b9
4
- data.tar.gz: 4888d579ac0cf3130cb99cc5b648c10a1187f7cfa8cb6e99c5d9b46a8fd0d650
3
+ metadata.gz: f10a1ab778bec6a427db4c9f8bfaa1f8e6bd1e81fdb24985bcf69ef6c9aa1c35
4
+ data.tar.gz: 0c07266c78ffab43e6ac7e7d82355200c9aef8e0e180dc8ebabab26460c5e06c
5
5
  SHA512:
6
- metadata.gz: 26a5ee29aa3225d65e54f9e86041aec98fa2fc9cefddbfa45f0a9f05ef801325690d473944f5a03a9665432b19ae212bf8c4b79318b59a7d6bd85761e20b0fde
7
- data.tar.gz: 799ffb3e26b414fd2115b72ba181a174e9158fd484c1d46b20fb5bae38d4f0e8331ecc09f9bdca3e09c4d76eff6780a6290d43788f5bfa0999fdd923d170f345
6
+ metadata.gz: 4d3caeafaaed6b4d9ff211fbc3d8bfc2d2bf2c87ebd64cbba414a97df697a9ca4447f6337bc80c4a7a262d971017f4c14fa9e627e6d9d931c746355c2f964a2f
7
+ data.tar.gz: d6dceaca0fa5b51a4ce7fef90f57e8997f5aeafaf8ac8a4f22f72a98d3bdd08eeac2ace26af667581a1995c700faac6572f94c155b5cd07a2f943bd3468b9436
@@ -139,29 +139,29 @@ module MailSlurpClient
139
139
 
140
140
  # Get an expired inbox record
141
141
  # Inboxes created with an expiration date will expire after the given date and be moved to an ExpiredInbox entity. You can still read emails in the inbox but it can no longer send or receive emails. Fetch the expired inboxes to view the old inboxes properties
142
- # @param id_of_the_expired_inbox_record_you_want_to_retrieve__this_is_different_from_the_id_of_the_inbox_you_are_interested_in__see_other_methods_for_getting_expired_inbox_record_for_an_inbox_inbox_id [String]
142
+ # @param expired_id [String] ID of the ExpiredInboxRecord you want to retrieve. This is different from the ID of the inbox you are interested in. See other methods for getting ExpiredInboxRecord for an inbox inboxId
143
143
  # @param [Hash] opts the optional parameters
144
144
  # @return [ExpiredInboxDto]
145
- def get_expired_inbox_record(id_of_the_expired_inbox_record_you_want_to_retrieve__this_is_different_from_the_id_of_the_inbox_you_are_interested_in__see_other_methods_for_getting_expired_inbox_record_for_an_inbox_inbox_id, opts = {})
146
- data, _status_code, _headers = get_expired_inbox_record_with_http_info(id_of_the_expired_inbox_record_you_want_to_retrieve__this_is_different_from_the_id_of_the_inbox_you_are_interested_in__see_other_methods_for_getting_expired_inbox_record_for_an_inbox_inbox_id, opts)
145
+ def get_expired_inbox_record(expired_id, opts = {})
146
+ data, _status_code, _headers = get_expired_inbox_record_with_http_info(expired_id, opts)
147
147
  data
148
148
  end
149
149
 
150
150
  # Get an expired inbox record
151
151
  # Inboxes created with an expiration date will expire after the given date and be moved to an ExpiredInbox entity. You can still read emails in the inbox but it can no longer send or receive emails. Fetch the expired inboxes to view the old inboxes properties
152
- # @param id_of_the_expired_inbox_record_you_want_to_retrieve__this_is_different_from_the_id_of_the_inbox_you_are_interested_in__see_other_methods_for_getting_expired_inbox_record_for_an_inbox_inbox_id [String]
152
+ # @param expired_id [String] ID of the ExpiredInboxRecord you want to retrieve. This is different from the ID of the inbox you are interested in. See other methods for getting ExpiredInboxRecord for an inbox inboxId
153
153
  # @param [Hash] opts the optional parameters
154
154
  # @return [Array<(ExpiredInboxDto, Integer, Hash)>] ExpiredInboxDto data, response status code and response headers
155
- def get_expired_inbox_record_with_http_info(id_of_the_expired_inbox_record_you_want_to_retrieve__this_is_different_from_the_id_of_the_inbox_you_are_interested_in__see_other_methods_for_getting_expired_inbox_record_for_an_inbox_inbox_id, opts = {})
155
+ def get_expired_inbox_record_with_http_info(expired_id, opts = {})
156
156
  if @api_client.config.debugging
157
157
  @api_client.config.logger.debug 'Calling API: ExpiredControllerApi.get_expired_inbox_record ...'
158
158
  end
159
- # verify the required parameter 'id_of_the_expired_inbox_record_you_want_to_retrieve__this_is_different_from_the_id_of_the_inbox_you_are_interested_in__see_other_methods_for_getting_expired_inbox_record_for_an_inbox_inbox_id' is set
160
- if @api_client.config.client_side_validation && id_of_the_expired_inbox_record_you_want_to_retrieve__this_is_different_from_the_id_of_the_inbox_you_are_interested_in__see_other_methods_for_getting_expired_inbox_record_for_an_inbox_inbox_id.nil?
161
- fail ArgumentError, "Missing the required parameter 'id_of_the_expired_inbox_record_you_want_to_retrieve__this_is_different_from_the_id_of_the_inbox_you_are_interested_in__see_other_methods_for_getting_expired_inbox_record_for_an_inbox_inbox_id' when calling ExpiredControllerApi.get_expired_inbox_record"
159
+ # verify the required parameter 'expired_id' is set
160
+ if @api_client.config.client_side_validation && expired_id.nil?
161
+ fail ArgumentError, "Missing the required parameter 'expired_id' when calling ExpiredControllerApi.get_expired_inbox_record"
162
162
  end
163
163
  # resource path
164
- local_var_path = '/expired/{expiredId}'.sub('{' + 'ID of the ExpiredInboxRecord you want to retrieve. This is different from the ID of the inbox you are interested in. See other methods for getting ExpiredInboxRecord for an inbox inboxId)' + '}', CGI.escape(id_of_the_expired_inbox_record_you_want_to_retrieve__this_is_different_from_the_id_of_the_inbox_you_are_interested_in__see_other_methods_for_getting_expired_inbox_record_for_an_inbox_inbox_id.to_s))
164
+ local_var_path = '/expired/{expiredId}'.sub('{' + 'expiredId' + '}', CGI.escape(expired_id.to_s))
165
165
 
166
166
  # query parameters
167
167
  query_params = opts[:query_params] || {}
@@ -24,11 +24,11 @@ module MailSlurpClient
24
24
 
25
25
  attr_accessor :user_id
26
26
 
27
+ attr_accessor :created_at
28
+
27
29
  # Attachment ID
28
30
  attr_accessor :attachment_id
29
31
 
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
- :'attachment_id' => :'attachmentId',
42
41
  :'created_at' => :'createdAt',
42
+ :'attachment_id' => :'attachmentId',
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
- :'attachment_id' => :'String',
55
54
  :'created_at' => :'DateTime',
55
+ :'attachment_id' => :'String',
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?(:'attachment_id')
98
- self.attachment_id = attributes[:'attachment_id']
99
- end
100
-
101
97
  if attributes.key?(:'created_at')
102
98
  self.created_at = attributes[:'created_at']
103
99
  end
104
100
 
101
+ if attributes.key?(:'attachment_id')
102
+ self.attachment_id = attributes[:'attachment_id']
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 @attachment_id.nil?
119
- invalid_properties.push('invalid value for "attachment_id", attachment_id cannot be nil.')
120
- end
121
-
122
118
  if @created_at.nil?
123
119
  invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
124
120
  end
125
121
 
122
+ if @attachment_id.nil?
123
+ invalid_properties.push('invalid value for "attachment_id", attachment_id 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 @attachment_id.nil?
138
137
  return false if @created_at.nil?
138
+ return false if @attachment_id.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
- attachment_id == o.attachment_id &&
153
152
  created_at == o.created_at &&
153
+ attachment_id == o.attachment_id &&
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, attachment_id, created_at, updated_at].hash
166
+ [name, content_length, content_type, user_id, created_at, attachment_id, updated_at].hash
167
167
  end
168
168
 
169
169
  # Builds the object from hash
@@ -18,6 +18,8 @@ module MailSlurpClient
18
18
 
19
19
  attr_accessor :group_id
20
20
 
21
+ attr_accessor :created_at
22
+
21
23
  attr_accessor :first_name
22
24
 
23
25
  attr_accessor :last_name
@@ -28,19 +30,17 @@ module MailSlurpClient
28
30
 
29
31
  attr_accessor :opt_out
30
32
 
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',
38
39
  :'first_name' => :'firstName',
39
40
  :'last_name' => :'lastName',
40
41
  :'company' => :'company',
41
42
  :'email_addresses' => :'emailAddresses',
42
- :'opt_out' => :'optOut',
43
- :'created_at' => :'createdAt'
43
+ :'opt_out' => :'optOut'
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',
52
53
  :'first_name' => :'String',
53
54
  :'last_name' => :'String',
54
55
  :'company' => :'String',
55
56
  :'email_addresses' => :'Array<String>',
56
- :'opt_out' => :'Boolean',
57
- :'created_at' => :'DateTime'
57
+ :'opt_out' => :'Boolean'
58
58
  }
59
59
  end
60
60
 
@@ -87,6 +87,10 @@ 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
+
90
94
  if attributes.key?(:'first_name')
91
95
  self.first_name = attributes[:'first_name']
92
96
  end
@@ -108,10 +112,6 @@ module MailSlurpClient
108
112
  if attributes.key?(:'opt_out')
109
113
  self.opt_out = attributes[:'opt_out']
110
114
  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 &&
147
148
  first_name == o.first_name &&
148
149
  last_name == o.last_name &&
149
150
  company == o.company &&
150
151
  email_addresses == o.email_addresses &&
151
- opt_out == o.opt_out &&
152
- created_at == o.created_at
152
+ opt_out == o.opt_out
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, first_name, last_name, company, email_addresses, opt_out, created_at].hash
164
+ [id, group_id, created_at, first_name, last_name, company, email_addresses, opt_out].hash
165
165
  end
166
166
 
167
167
  # Builds the object from hash
@@ -23,6 +23,8 @@ module MailSlurpClient
23
23
 
24
24
  attr_accessor :inbox_id
25
25
 
26
+ attr_accessor :created_at
27
+
26
28
  attr_accessor :to
27
29
 
28
30
  attr_accessor :attachments
@@ -31,8 +33,6 @@ module MailSlurpClient
31
33
 
32
34
  attr_accessor :cc
33
35
 
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',
51
52
  :'to' => :'to',
52
53
  :'attachments' => :'attachments',
53
54
  :'bcc' => :'bcc',
54
55
  :'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',
70
71
  :'to' => :'Array<String>',
71
72
  :'attachments' => :'Array<String>',
72
73
  :'bcc' => :'Array<String>',
73
74
  :'cc' => :'Array<String>',
74
- :'created_at' => :'DateTime',
75
75
  :'team_access' => :'Boolean',
76
76
  :'read' => :'Boolean',
77
77
  :'body_md5_hash' => :'String',
@@ -116,6 +116,10 @@ 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
+
119
123
  if attributes.key?(:'to')
120
124
  if (value = attributes[:'to']).is_a?(Array)
121
125
  self.to = value
@@ -140,10 +144,6 @@ module MailSlurpClient
140
144
  end
141
145
  end
142
146
 
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 @to.nil?
177
- invalid_properties.push('invalid value for "to", to cannot be nil.')
178
- end
179
-
180
176
  if @created_at.nil?
181
177
  invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
182
178
  end
183
179
 
180
+ if @to.nil?
181
+ invalid_properties.push('invalid value for "to", to 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 @to.nil?
193
192
  return false if @created_at.nil?
193
+ return false if @to.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 &&
206
207
  to == o.to &&
207
208
  attachments == o.attachments &&
208
209
  bcc == o.bcc &&
209
210
  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, to, attachments, bcc, cc, created_at, team_access, read, body_md5_hash, body_excerpt].hash
226
+ [id, from, subject, inbox_id, created_at, 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
@@ -25,6 +25,8 @@ module MailSlurpClient
25
25
 
26
26
  attr_accessor :inbox_id
27
27
 
28
+ attr_accessor :created_at
29
+
28
30
  attr_accessor :to
29
31
 
30
32
  attr_accessor :attachments
@@ -33,8 +35,6 @@ module MailSlurpClient
33
35
 
34
36
  attr_accessor :cc
35
37
 
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',
48
49
  :'to' => :'to',
49
50
  :'attachments' => :'attachments',
50
51
  :'bcc' => :'bcc',
51
52
  :'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',
65
66
  :'to' => :'Array<String>',
66
67
  :'attachments' => :'Array<String>',
67
68
  :'bcc' => :'Array<String>',
68
69
  :'cc' => :'Array<String>',
69
- :'created_at' => :'DateTime',
70
70
  :'body_md5_hash' => :'String'
71
71
  }
72
72
  end
@@ -112,6 +112,10 @@ 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
+
115
119
  if attributes.key?(:'to')
116
120
  if (value = attributes[:'to']).is_a?(Array)
117
121
  self.to = value
@@ -136,10 +140,6 @@ module MailSlurpClient
136
140
  end
137
141
  end
138
142
 
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,6 +161,10 @@ 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
+
164
168
  if @to.nil?
165
169
  invalid_properties.push('invalid value for "to", to cannot be nil.')
166
170
  end
@@ -177,10 +181,6 @@ module MailSlurpClient
177
181
  invalid_properties.push('invalid value for "cc", cc cannot be nil.')
178
182
  end
179
183
 
180
- if @created_at.nil?
181
- invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
182
- end
183
-
184
184
  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?
193
194
  return false if @to.nil?
194
195
  return false if @attachments.nil?
195
196
  return false if @bcc.nil?
196
197
  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 &&
211
212
  to == o.to &&
212
213
  attachments == o.attachments &&
213
214
  bcc == o.bcc &&
214
215
  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, to, attachments, bcc, cc, created_at, body_md5_hash].hash
228
+ [id, from, user_id, subject, inbox_id, created_at, to, attachments, bcc, cc, 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 :variables
24
-
25
23
  attr_accessor :updated_at
26
24
 
25
+ attr_accessor :variables
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
- :'variables' => :'variables',
34
- :'updated_at' => :'updatedAt'
33
+ :'updated_at' => :'updatedAt',
34
+ :'variables' => :'variables'
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
- :'variables' => :'Array<String>',
45
- :'updated_at' => :'DateTime'
44
+ :'updated_at' => :'DateTime',
45
+ :'variables' => :'Array<String>'
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
+
82
86
  if attributes.key?(:'variables')
83
87
  if (value = attributes[:'variables']).is_a?(Array)
84
88
  self.variables = value
85
89
  end
86
90
  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 @variables.nil?
110
- invalid_properties.push('invalid value for "variables", variables cannot be nil.')
111
- end
112
-
113
109
  if @updated_at.nil?
114
110
  invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
115
111
  end
116
112
 
113
+ if @variables.nil?
114
+ invalid_properties.push('invalid value for "variables", variables 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 @variables.nil?
127
126
  return false if @updated_at.nil?
127
+ return false if @variables.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
- variables == o.variables &&
140
- updated_at == o.updated_at
139
+ updated_at == o.updated_at &&
140
+ variables == o.variables
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, variables, updated_at].hash
152
+ [name, id, created_at, updated_at, variables].hash
153
153
  end
154
154
 
155
155
  # Builds the object from hash
@@ -25,14 +25,14 @@ module MailSlurpClient
25
25
 
26
26
  attr_accessor :inbox_id
27
27
 
28
+ attr_accessor :created_at
29
+
28
30
  attr_accessor :to
29
31
 
30
32
  attr_accessor :bcc
31
33
 
32
34
  attr_accessor :cc
33
35
 
34
- attr_accessor :created_at
35
-
36
36
  attr_accessor :updated_at
37
37
 
38
38
  attr_accessor :alias_id
@@ -45,10 +45,10 @@ module MailSlurpClient
45
45
  :'subject' => :'subject',
46
46
  :'user_id' => :'userId',
47
47
  :'inbox_id' => :'inboxId',
48
+ :'created_at' => :'createdAt',
48
49
  :'to' => :'to',
49
50
  :'bcc' => :'bcc',
50
51
  :'cc' => :'cc',
51
- :'created_at' => :'createdAt',
52
52
  :'updated_at' => :'updatedAt',
53
53
  :'alias_id' => :'aliasId'
54
54
  }
@@ -62,10 +62,10 @@ module MailSlurpClient
62
62
  :'subject' => :'String',
63
63
  :'user_id' => :'String',
64
64
  :'inbox_id' => :'String',
65
+ :'created_at' => :'DateTime',
65
66
  :'to' => :'Array<String>',
66
67
  :'bcc' => :'Array<String>',
67
68
  :'cc' => :'Array<String>',
68
- :'created_at' => :'DateTime',
69
69
  :'updated_at' => :'DateTime',
70
70
  :'alias_id' => :'String'
71
71
  }
@@ -112,6 +112,10 @@ 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
+
115
119
  if attributes.key?(:'to')
116
120
  if (value = attributes[:'to']).is_a?(Array)
117
121
  self.to = value
@@ -130,10 +134,6 @@ module MailSlurpClient
130
134
  end
131
135
  end
132
136
 
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 @to.nil?
163
- invalid_properties.push('invalid value for "to", to cannot be nil.')
164
- end
165
-
166
162
  if @created_at.nil?
167
163
  invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
168
164
  end
169
165
 
166
+ if @to.nil?
167
+ invalid_properties.push('invalid value for "to", to 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 @to.nil?
188
187
  return false if @created_at.nil?
188
+ return false if @to.nil?
189
189
  return false if @updated_at.nil?
190
190
  return false if @alias_id.nil?
191
191
  true
@@ -201,10 +201,10 @@ module MailSlurpClient
201
201
  subject == o.subject &&
202
202
  user_id == o.user_id &&
203
203
  inbox_id == o.inbox_id &&
204
+ created_at == o.created_at &&
204
205
  to == o.to &&
205
206
  bcc == o.bcc &&
206
207
  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, to, bcc, cc, created_at, updated_at, alias_id].hash
221
+ [name, id, subject, user_id, inbox_id, created_at, to, bcc, cc, 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 :to
24
-
25
23
  attr_accessor :created_at
26
24
 
25
+ attr_accessor :to
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
- :'to' => :'to',
34
- :'created_at' => :'createdAt'
33
+ :'created_at' => :'createdAt',
34
+ :'to' => :'to'
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
- :'to' => :'Array<String>',
45
- :'created_at' => :'DateTime'
44
+ :'created_at' => :'DateTime',
45
+ :'to' => :'Array<String>'
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
+
82
86
  if attributes.key?(:'to')
83
87
  if (value = attributes[:'to']).is_a?(Array)
84
88
  self.to = value
85
89
  end
86
90
  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
- to == o.to &&
125
- created_at == o.created_at
124
+ created_at == o.created_at &&
125
+ to == o.to
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, to, created_at].hash
137
+ [id, from, subject, created_at, to].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 :event_name
27
-
28
26
  attr_accessor :created_at
29
27
 
28
+ attr_accessor :event_name
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
- :'event_name' => :'eventName',
62
61
  :'created_at' => :'createdAt',
62
+ :'event_name' => :'eventName',
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
- :'event_name' => :'String',
75
74
  :'created_at' => :'DateTime',
75
+ :'event_name' => :'String',
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?(:'event_name')
118
- self.event_name = attributes[:'event_name']
119
- end
120
-
121
117
  if attributes.key?(:'created_at')
122
118
  self.created_at = attributes[:'created_at']
123
119
  end
124
120
 
121
+ if attributes.key?(:'event_name')
122
+ self.event_name = attributes[:'event_name']
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?
163
164
  event_name_validator = EnumAttributeValidator.new('String', ["EMAIL_RECEIVED", "NEW_EMAIL", "NEW_CONTACT", "NEW_ATTACHMENT", "EMAIL_OPENED", "EMAIL_READ"])
164
165
  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
- event_name == o.event_name &&
190
189
  created_at == o.created_at &&
190
+ event_name == o.event_name &&
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, event_name, created_at, updated_at].hash
203
+ [name, id, url, inbox_id, created_at, event_name, 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.0.8'
14
+ VERSION = '15.1.0'
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.0.8
4
+ version: 15.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - mailslurp