mailslurp_client 15.2.6 → 15.3.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: fab891c403786a76965e9a992f1a3e76c4cf422670cf0cc9f883a80f4057a230
4
- data.tar.gz: 54e53d3bbd7361613cd61778c0add3074b9d4739d92ca9de80fc6d544ee936c7
3
+ metadata.gz: 21e72a3ee33fa565422f090096636def02be09e38afc968e24c4cea688c2874a
4
+ data.tar.gz: 4d2abd4c4566c706f8e27939667ed733179a19209d9f69d315f895939b0801c3
5
5
  SHA512:
6
- metadata.gz: 11adf4566a04be497ccba92c87f32d6fe746804ce5acdbfc678aba94600e1e63dc682106ddf5db9a2708fa615f2a2cecaaf7031e4dca91fcbf49f3a995fc5aad
7
- data.tar.gz: f59c02a997f5baabf99b1efe1181ddd4c35150c2bd7dd2504558a9cd7d75789b7b31755d237e8f1d79c5de20b42f0876ba9a3df80f00710dd44e36f82d3d2501
6
+ metadata.gz: cecb496f895e56bcafa4e102d2739fba48a07e45f4521ad799f8d87139ff9c318a56f7208225c1adedd354c4d935b19fd3c2dbb22f68244acc44a4d8bea5533a
7
+ data.tar.gz: aaf21c47057b9448d2a1b26f844c9cdf9e3bba31de83fe54fb030893f32471bc98f599bf50bcbbf31464002c20352a7dc7532aa564f7e6f8b5cd7c789a5f700d
@@ -978,6 +978,62 @@ module MailSlurpClient
978
978
  return data, status_code, headers
979
979
  end
980
980
 
981
+ # Get all inbox IDs
982
+ # Get list of inbox IDs
983
+ # @param [Hash] opts the optional parameters
984
+ # @return [InboxIdsResult]
985
+ def get_inbox_ids(opts = {})
986
+ data, _status_code, _headers = get_inbox_ids_with_http_info(opts)
987
+ data
988
+ end
989
+
990
+ # Get all inbox IDs
991
+ # Get list of inbox IDs
992
+ # @param [Hash] opts the optional parameters
993
+ # @return [Array<(InboxIdsResult, Integer, Hash)>] InboxIdsResult data, response status code and response headers
994
+ def get_inbox_ids_with_http_info(opts = {})
995
+ if @api_client.config.debugging
996
+ @api_client.config.logger.debug 'Calling API: InboxControllerApi.get_inbox_ids ...'
997
+ end
998
+ # resource path
999
+ local_var_path = '/inboxes/ids'
1000
+
1001
+ # query parameters
1002
+ query_params = opts[:query_params] || {}
1003
+
1004
+ # header parameters
1005
+ header_params = opts[:header_params] || {}
1006
+ # HTTP header 'Accept' (if needed)
1007
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
1008
+
1009
+ # form parameters
1010
+ form_params = opts[:form_params] || {}
1011
+
1012
+ # http body (model)
1013
+ post_body = opts[:body]
1014
+
1015
+ # return_type
1016
+ return_type = opts[:return_type] || 'InboxIdsResult'
1017
+
1018
+ # auth_names
1019
+ auth_names = opts[:auth_names] || ['API_KEY']
1020
+
1021
+ new_options = opts.merge(
1022
+ :header_params => header_params,
1023
+ :query_params => query_params,
1024
+ :form_params => form_params,
1025
+ :body => post_body,
1026
+ :auth_names => auth_names,
1027
+ :return_type => return_type
1028
+ )
1029
+
1030
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1031
+ if @api_client.config.debugging
1032
+ @api_client.config.logger.debug "API called: InboxControllerApi#get_inbox_ids\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1033
+ end
1034
+ return data, status_code, headers
1035
+ end
1036
+
981
1037
  # Get Inbox Sent Emails
982
1038
  # Returns an inbox's sent email receipts. Call individual sent email endpoints for more details. Note for privacy reasons the full body of sent emails is never stored. An MD5 hash hex is available for comparison instead.
983
1039
  # @param inbox_id [String]
@@ -19,12 +19,12 @@ module MailSlurpClient
19
19
 
20
20
  attr_accessor :id
21
21
 
22
+ attr_accessor :user_id
23
+
22
24
  attr_accessor :email_address
23
25
 
24
26
  attr_accessor :inbox_id
25
27
 
26
- attr_accessor :user_id
27
-
28
28
  attr_accessor :created_at
29
29
 
30
30
  attr_accessor :use_threads
@@ -36,9 +36,9 @@ module MailSlurpClient
36
36
  {
37
37
  :'name' => :'name',
38
38
  :'id' => :'id',
39
+ :'user_id' => :'userId',
39
40
  :'email_address' => :'emailAddress',
40
41
  :'inbox_id' => :'inboxId',
41
- :'user_id' => :'userId',
42
42
  :'created_at' => :'createdAt',
43
43
  :'use_threads' => :'useThreads',
44
44
  :'updated_at' => :'updatedAt'
@@ -50,9 +50,9 @@ module MailSlurpClient
50
50
  {
51
51
  :'name' => :'String',
52
52
  :'id' => :'String',
53
+ :'user_id' => :'String',
53
54
  :'email_address' => :'String',
54
55
  :'inbox_id' => :'String',
55
- :'user_id' => :'String',
56
56
  :'created_at' => :'DateTime',
57
57
  :'use_threads' => :'Boolean',
58
58
  :'updated_at' => :'DateTime'
@@ -88,6 +88,10 @@ module MailSlurpClient
88
88
  self.id = attributes[:'id']
89
89
  end
90
90
 
91
+ if attributes.key?(:'user_id')
92
+ self.user_id = attributes[:'user_id']
93
+ end
94
+
91
95
  if attributes.key?(:'email_address')
92
96
  self.email_address = attributes[:'email_address']
93
97
  end
@@ -96,10 +100,6 @@ module MailSlurpClient
96
100
  self.inbox_id = attributes[:'inbox_id']
97
101
  end
98
102
 
99
- if attributes.key?(:'user_id')
100
- self.user_id = attributes[:'user_id']
101
- end
102
-
103
103
  if attributes.key?(:'created_at')
104
104
  self.created_at = attributes[:'created_at']
105
105
  end
@@ -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 @user_id.nil?
125
+ invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
126
+ end
127
+
124
128
  if @email_address.nil?
125
129
  invalid_properties.push('invalid value for "email_address", email_address cannot be nil.')
126
130
  end
@@ -129,10 +133,6 @@ module MailSlurpClient
129
133
  invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
130
134
  end
131
135
 
132
- if @user_id.nil?
133
- invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
134
- end
135
-
136
136
  if @created_at.nil?
137
137
  invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
138
138
  end
@@ -148,9 +148,9 @@ 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 @user_id.nil?
151
152
  return false if @email_address.nil?
152
153
  return false if @inbox_id.nil?
153
- return false if @user_id.nil?
154
154
  return false if @created_at.nil?
155
155
  return false if @updated_at.nil?
156
156
  true
@@ -163,9 +163,9 @@ module MailSlurpClient
163
163
  self.class == o.class &&
164
164
  name == o.name &&
165
165
  id == o.id &&
166
+ user_id == o.user_id &&
166
167
  email_address == o.email_address &&
167
168
  inbox_id == o.inbox_id &&
168
- user_id == o.user_id &&
169
169
  created_at == o.created_at &&
170
170
  use_threads == o.use_threads &&
171
171
  updated_at == o.updated_at
@@ -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, email_address, inbox_id, user_id, created_at, use_threads, updated_at].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
+
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
@@ -27,12 +27,12 @@ module MailSlurpClient
27
27
 
28
28
  attr_accessor :attachments
29
29
 
30
+ attr_accessor :created_at
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 :team_access
37
37
 
38
38
  attr_accessor :read
@@ -50,9 +50,9 @@ module MailSlurpClient
50
50
  :'inbox_id' => :'inboxId',
51
51
  :'to' => :'to',
52
52
  :'attachments' => :'attachments',
53
+ :'created_at' => :'createdAt',
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',
@@ -69,9 +69,9 @@ module MailSlurpClient
69
69
  :'inbox_id' => :'String',
70
70
  :'to' => :'Array<String>',
71
71
  :'attachments' => :'Array<String>',
72
+ :'created_at' => :'DateTime',
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',
@@ -128,6 +128,10 @@ module MailSlurpClient
128
128
  end
129
129
  end
130
130
 
131
+ if attributes.key?(:'created_at')
132
+ self.created_at = attributes[:'created_at']
133
+ end
134
+
131
135
  if attributes.key?(:'bcc')
132
136
  if (value = attributes[:'bcc']).is_a?(Array)
133
137
  self.bcc = 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
@@ -205,9 +205,9 @@ module MailSlurpClient
205
205
  inbox_id == o.inbox_id &&
206
206
  to == o.to &&
207
207
  attachments == o.attachments &&
208
+ created_at == o.created_at &&
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, to, attachments, created_at, bcc, cc, team_access, read, body_md5_hash, body_excerpt].hash
227
227
  end
228
228
 
229
229
  # Builds the object from hash
@@ -16,18 +16,18 @@ module MailSlurpClient
16
16
  class ExpiredInboxRecordProjection
17
17
  attr_accessor :id
18
18
 
19
- attr_accessor :email_address
20
-
21
19
  attr_accessor :user_id
22
20
 
21
+ attr_accessor :email_address
22
+
23
23
  attr_accessor :created_at
24
24
 
25
25
  # Attribute mapping from ruby-style variable name to JSON key.
26
26
  def self.attribute_map
27
27
  {
28
28
  :'id' => :'id',
29
- :'email_address' => :'emailAddress',
30
29
  :'user_id' => :'userId',
30
+ :'email_address' => :'emailAddress',
31
31
  :'created_at' => :'createdAt'
32
32
  }
33
33
  end
@@ -36,8 +36,8 @@ module MailSlurpClient
36
36
  def self.openapi_types
37
37
  {
38
38
  :'id' => :'String',
39
- :'email_address' => :'String',
40
39
  :'user_id' => :'String',
40
+ :'email_address' => :'String',
41
41
  :'created_at' => :'DateTime'
42
42
  }
43
43
  end
@@ -67,14 +67,14 @@ module MailSlurpClient
67
67
  self.id = attributes[:'id']
68
68
  end
69
69
 
70
- if attributes.key?(:'email_address')
71
- self.email_address = attributes[:'email_address']
72
- end
73
-
74
70
  if attributes.key?(:'user_id')
75
71
  self.user_id = attributes[:'user_id']
76
72
  end
77
73
 
74
+ if attributes.key?(:'email_address')
75
+ self.email_address = attributes[:'email_address']
76
+ end
77
+
78
78
  if attributes.key?(:'created_at')
79
79
  self.created_at = attributes[:'created_at']
80
80
  end
@@ -88,14 +88,14 @@ module MailSlurpClient
88
88
  invalid_properties.push('invalid value for "id", id cannot be nil.')
89
89
  end
90
90
 
91
- if @email_address.nil?
92
- invalid_properties.push('invalid value for "email_address", email_address cannot be nil.')
93
- end
94
-
95
91
  if @user_id.nil?
96
92
  invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
97
93
  end
98
94
 
95
+ if @email_address.nil?
96
+ invalid_properties.push('invalid value for "email_address", email_address cannot be nil.')
97
+ end
98
+
99
99
  if @created_at.nil?
100
100
  invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
101
101
  end
@@ -107,8 +107,8 @@ module MailSlurpClient
107
107
  # @return true if the model is valid
108
108
  def valid?
109
109
  return false if @id.nil?
110
- return false if @email_address.nil?
111
110
  return false if @user_id.nil?
111
+ return false if @email_address.nil?
112
112
  return false if @created_at.nil?
113
113
  true
114
114
  end
@@ -119,8 +119,8 @@ module MailSlurpClient
119
119
  return true if self.equal?(o)
120
120
  self.class == o.class &&
121
121
  id == o.id &&
122
- email_address == o.email_address &&
123
122
  user_id == o.user_id &&
123
+ email_address == o.email_address &&
124
124
  created_at == o.created_at
125
125
  end
126
126
 
@@ -133,7 +133,7 @@ module MailSlurpClient
133
133
  # Calculates hash code according to all attributes.
134
134
  # @return [Integer] Hash code
135
135
  def hash
136
- [id, email_address, user_id, created_at].hash
136
+ [id, user_id, email_address, created_at].hash
137
137
  end
138
138
 
139
139
  # Builds the object from hash
@@ -0,0 +1,225 @@
1
+ =begin
2
+ #MailSlurp API
3
+
4
+ #MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://www.mailslurp.com/docs/) - [Examples](https://github.com/mailslurp/examples) repository
5
+
6
+ The version of the OpenAPI document: 6.5.2
7
+ Contact: contact@mailslurp.dev
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 4.3.1
10
+
11
+ =end
12
+
13
+ require 'date'
14
+
15
+ module MailSlurpClient
16
+ class InboxIdItem
17
+ attr_accessor :id
18
+
19
+ attr_accessor :email_address
20
+
21
+ # Attribute mapping from ruby-style variable name to JSON key.
22
+ def self.attribute_map
23
+ {
24
+ :'id' => :'id',
25
+ :'email_address' => :'emailAddress'
26
+ }
27
+ end
28
+
29
+ # Attribute type mapping.
30
+ def self.openapi_types
31
+ {
32
+ :'id' => :'String',
33
+ :'email_address' => :'String'
34
+ }
35
+ end
36
+
37
+ # List of attributes with nullable: true
38
+ def self.openapi_nullable
39
+ Set.new([
40
+ ])
41
+ end
42
+
43
+ # Initializes the object
44
+ # @param [Hash] attributes Model attributes in the form of hash
45
+ def initialize(attributes = {})
46
+ if (!attributes.is_a?(Hash))
47
+ fail ArgumentError, "The input argument (attributes) must be a hash in `MailSlurpClient::InboxIdItem` initialize method"
48
+ end
49
+
50
+ # check to see if the attribute exists and convert string to symbol for hash key
51
+ attributes = attributes.each_with_object({}) { |(k, v), h|
52
+ if (!self.class.attribute_map.key?(k.to_sym))
53
+ fail ArgumentError, "`#{k}` is not a valid attribute in `MailSlurpClient::InboxIdItem`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
54
+ end
55
+ h[k.to_sym] = v
56
+ }
57
+
58
+ if attributes.key?(:'id')
59
+ self.id = attributes[:'id']
60
+ end
61
+
62
+ if attributes.key?(:'email_address')
63
+ self.email_address = attributes[:'email_address']
64
+ end
65
+ end
66
+
67
+ # Show invalid properties with the reasons. Usually used together with valid?
68
+ # @return Array for valid properties with the reasons
69
+ def list_invalid_properties
70
+ invalid_properties = Array.new
71
+ if @id.nil?
72
+ invalid_properties.push('invalid value for "id", id cannot be nil.')
73
+ end
74
+
75
+ if @email_address.nil?
76
+ invalid_properties.push('invalid value for "email_address", email_address cannot be nil.')
77
+ end
78
+
79
+ invalid_properties
80
+ end
81
+
82
+ # Check to see if the all the properties in the model are valid
83
+ # @return true if the model is valid
84
+ def valid?
85
+ return false if @id.nil?
86
+ return false if @email_address.nil?
87
+ true
88
+ end
89
+
90
+ # Checks equality by comparing each attribute.
91
+ # @param [Object] Object to be compared
92
+ def ==(o)
93
+ return true if self.equal?(o)
94
+ self.class == o.class &&
95
+ id == o.id &&
96
+ email_address == o.email_address
97
+ end
98
+
99
+ # @see the `==` method
100
+ # @param [Object] Object to be compared
101
+ def eql?(o)
102
+ self == o
103
+ end
104
+
105
+ # Calculates hash code according to all attributes.
106
+ # @return [Integer] Hash code
107
+ def hash
108
+ [id, email_address].hash
109
+ end
110
+
111
+ # Builds the object from hash
112
+ # @param [Hash] attributes Model attributes in the form of hash
113
+ # @return [Object] Returns the model itself
114
+ def self.build_from_hash(attributes)
115
+ new.build_from_hash(attributes)
116
+ end
117
+
118
+ # Builds the object from hash
119
+ # @param [Hash] attributes Model attributes in the form of hash
120
+ # @return [Object] Returns the model itself
121
+ def build_from_hash(attributes)
122
+ return nil unless attributes.is_a?(Hash)
123
+ self.class.openapi_types.each_pair do |key, type|
124
+ if type =~ /\AArray<(.*)>/i
125
+ # check to ensure the input is an array given that the attribute
126
+ # is documented as an array but the input is not
127
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
128
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
129
+ end
130
+ elsif !attributes[self.class.attribute_map[key]].nil?
131
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
132
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
133
+ end
134
+
135
+ self
136
+ end
137
+
138
+ # Deserializes the data based on type
139
+ # @param string type Data type
140
+ # @param string value Value to be deserialized
141
+ # @return [Object] Deserialized data
142
+ def _deserialize(type, value)
143
+ case type.to_sym
144
+ when :DateTime
145
+ DateTime.parse(value)
146
+ when :Date
147
+ Date.parse(value)
148
+ when :String
149
+ value.to_s
150
+ when :Integer
151
+ value.to_i
152
+ when :Float
153
+ value.to_f
154
+ when :Boolean
155
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
156
+ true
157
+ else
158
+ false
159
+ end
160
+ when :Object
161
+ # generic object (usually a Hash), return directly
162
+ value
163
+ when /\AArray<(?<inner_type>.+)>\z/
164
+ inner_type = Regexp.last_match[:inner_type]
165
+ value.map { |v| _deserialize(inner_type, v) }
166
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
167
+ k_type = Regexp.last_match[:k_type]
168
+ v_type = Regexp.last_match[:v_type]
169
+ {}.tap do |hash|
170
+ value.each do |k, v|
171
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
172
+ end
173
+ end
174
+ else # model
175
+ MailSlurpClient.const_get(type).build_from_hash(value)
176
+ end
177
+ end
178
+
179
+ # Returns the string representation of the object
180
+ # @return [String] String presentation of the object
181
+ def to_s
182
+ to_hash.to_s
183
+ end
184
+
185
+ # to_body is an alias to to_hash (backward compatibility)
186
+ # @return [Hash] Returns the object in the form of hash
187
+ def to_body
188
+ to_hash
189
+ end
190
+
191
+ # Returns the object in the form of hash
192
+ # @return [Hash] Returns the object in the form of hash
193
+ def to_hash
194
+ hash = {}
195
+ self.class.attribute_map.each_pair do |attr, param|
196
+ value = self.send(attr)
197
+ if value.nil?
198
+ is_nullable = self.class.openapi_nullable.include?(attr)
199
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
200
+ end
201
+
202
+ hash[param] = _to_hash(value)
203
+ end
204
+ hash
205
+ end
206
+
207
+ # Outputs non-array value in the form of hash
208
+ # For object, use to_hash. Otherwise, just return the value
209
+ # @param [Object] value Any valid value
210
+ # @return [Hash] Returns the value in the form of hash
211
+ def _to_hash(value)
212
+ if value.is_a?(Array)
213
+ value.compact.map { |v| _to_hash(v) }
214
+ elsif value.is_a?(Hash)
215
+ {}.tap do |hash|
216
+ value.each { |k, v| hash[k] = _to_hash(v) }
217
+ end
218
+ elsif value.respond_to? :to_hash
219
+ value.to_hash
220
+ else
221
+ value
222
+ end
223
+ end
224
+ end
225
+ end
@@ -0,0 +1,213 @@
1
+ =begin
2
+ #MailSlurp API
3
+
4
+ #MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://www.mailslurp.com/docs/) - [Examples](https://github.com/mailslurp/examples) repository
5
+
6
+ The version of the OpenAPI document: 6.5.2
7
+ Contact: contact@mailslurp.dev
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 4.3.1
10
+
11
+ =end
12
+
13
+ require 'date'
14
+
15
+ module MailSlurpClient
16
+ class InboxIdsResult
17
+ attr_accessor :inbox_ids
18
+
19
+ # Attribute mapping from ruby-style variable name to JSON key.
20
+ def self.attribute_map
21
+ {
22
+ :'inbox_ids' => :'inboxIds'
23
+ }
24
+ end
25
+
26
+ # Attribute type mapping.
27
+ def self.openapi_types
28
+ {
29
+ :'inbox_ids' => :'Array<InboxIdItem>'
30
+ }
31
+ end
32
+
33
+ # List of attributes with nullable: true
34
+ def self.openapi_nullable
35
+ Set.new([
36
+ ])
37
+ end
38
+
39
+ # Initializes the object
40
+ # @param [Hash] attributes Model attributes in the form of hash
41
+ def initialize(attributes = {})
42
+ if (!attributes.is_a?(Hash))
43
+ fail ArgumentError, "The input argument (attributes) must be a hash in `MailSlurpClient::InboxIdsResult` initialize method"
44
+ end
45
+
46
+ # check to see if the attribute exists and convert string to symbol for hash key
47
+ attributes = attributes.each_with_object({}) { |(k, v), h|
48
+ if (!self.class.attribute_map.key?(k.to_sym))
49
+ fail ArgumentError, "`#{k}` is not a valid attribute in `MailSlurpClient::InboxIdsResult`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
50
+ end
51
+ h[k.to_sym] = v
52
+ }
53
+
54
+ if attributes.key?(:'inbox_ids')
55
+ if (value = attributes[:'inbox_ids']).is_a?(Array)
56
+ self.inbox_ids = value
57
+ end
58
+ end
59
+ end
60
+
61
+ # Show invalid properties with the reasons. Usually used together with valid?
62
+ # @return Array for valid properties with the reasons
63
+ def list_invalid_properties
64
+ invalid_properties = Array.new
65
+ if @inbox_ids.nil?
66
+ invalid_properties.push('invalid value for "inbox_ids", inbox_ids cannot be nil.')
67
+ end
68
+
69
+ invalid_properties
70
+ end
71
+
72
+ # Check to see if the all the properties in the model are valid
73
+ # @return true if the model is valid
74
+ def valid?
75
+ return false if @inbox_ids.nil?
76
+ true
77
+ end
78
+
79
+ # Checks equality by comparing each attribute.
80
+ # @param [Object] Object to be compared
81
+ def ==(o)
82
+ return true if self.equal?(o)
83
+ self.class == o.class &&
84
+ inbox_ids == o.inbox_ids
85
+ end
86
+
87
+ # @see the `==` method
88
+ # @param [Object] Object to be compared
89
+ def eql?(o)
90
+ self == o
91
+ end
92
+
93
+ # Calculates hash code according to all attributes.
94
+ # @return [Integer] Hash code
95
+ def hash
96
+ [inbox_ids].hash
97
+ end
98
+
99
+ # Builds the object from hash
100
+ # @param [Hash] attributes Model attributes in the form of hash
101
+ # @return [Object] Returns the model itself
102
+ def self.build_from_hash(attributes)
103
+ new.build_from_hash(attributes)
104
+ end
105
+
106
+ # Builds the object from hash
107
+ # @param [Hash] attributes Model attributes in the form of hash
108
+ # @return [Object] Returns the model itself
109
+ def build_from_hash(attributes)
110
+ return nil unless attributes.is_a?(Hash)
111
+ self.class.openapi_types.each_pair do |key, type|
112
+ if type =~ /\AArray<(.*)>/i
113
+ # check to ensure the input is an array given that the attribute
114
+ # is documented as an array but the input is not
115
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
116
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
117
+ end
118
+ elsif !attributes[self.class.attribute_map[key]].nil?
119
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
120
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
121
+ end
122
+
123
+ self
124
+ end
125
+
126
+ # Deserializes the data based on type
127
+ # @param string type Data type
128
+ # @param string value Value to be deserialized
129
+ # @return [Object] Deserialized data
130
+ def _deserialize(type, value)
131
+ case type.to_sym
132
+ when :DateTime
133
+ DateTime.parse(value)
134
+ when :Date
135
+ Date.parse(value)
136
+ when :String
137
+ value.to_s
138
+ when :Integer
139
+ value.to_i
140
+ when :Float
141
+ value.to_f
142
+ when :Boolean
143
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
144
+ true
145
+ else
146
+ false
147
+ end
148
+ when :Object
149
+ # generic object (usually a Hash), return directly
150
+ value
151
+ when /\AArray<(?<inner_type>.+)>\z/
152
+ inner_type = Regexp.last_match[:inner_type]
153
+ value.map { |v| _deserialize(inner_type, v) }
154
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
155
+ k_type = Regexp.last_match[:k_type]
156
+ v_type = Regexp.last_match[:v_type]
157
+ {}.tap do |hash|
158
+ value.each do |k, v|
159
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
160
+ end
161
+ end
162
+ else # model
163
+ MailSlurpClient.const_get(type).build_from_hash(value)
164
+ end
165
+ end
166
+
167
+ # Returns the string representation of the object
168
+ # @return [String] String presentation of the object
169
+ def to_s
170
+ to_hash.to_s
171
+ end
172
+
173
+ # to_body is an alias to to_hash (backward compatibility)
174
+ # @return [Hash] Returns the object in the form of hash
175
+ def to_body
176
+ to_hash
177
+ end
178
+
179
+ # Returns the object in the form of hash
180
+ # @return [Hash] Returns the object in the form of hash
181
+ def to_hash
182
+ hash = {}
183
+ self.class.attribute_map.each_pair do |attr, param|
184
+ value = self.send(attr)
185
+ if value.nil?
186
+ is_nullable = self.class.openapi_nullable.include?(attr)
187
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
188
+ end
189
+
190
+ hash[param] = _to_hash(value)
191
+ end
192
+ hash
193
+ end
194
+
195
+ # Outputs non-array value in the form of hash
196
+ # For object, use to_hash. Otherwise, just return the value
197
+ # @param [Object] value Any valid value
198
+ # @return [Hash] Returns the value in the form of hash
199
+ def _to_hash(value)
200
+ if value.is_a?(Array)
201
+ value.compact.map { |v| _to_hash(v) }
202
+ elsif value.is_a?(Hash)
203
+ {}.tap do |hash|
204
+ value.each { |k, v| hash[k] = _to_hash(v) }
205
+ end
206
+ elsif value.respond_to? :to_hash
207
+ value.to_hash
208
+ else
209
+ value
210
+ end
211
+ end
212
+ end
213
+ end
@@ -29,12 +29,12 @@ module MailSlurpClient
29
29
 
30
30
  attr_accessor :attachments
31
31
 
32
+ attr_accessor :created_at
33
+
32
34
  attr_accessor :bcc
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.
@@ -47,9 +47,9 @@ module MailSlurpClient
47
47
  :'inbox_id' => :'inboxId',
48
48
  :'to' => :'to',
49
49
  :'attachments' => :'attachments',
50
+ :'created_at' => :'createdAt',
50
51
  :'bcc' => :'bcc',
51
52
  :'cc' => :'cc',
52
- :'created_at' => :'createdAt',
53
53
  :'body_md5_hash' => :'bodyMD5Hash'
54
54
  }
55
55
  end
@@ -64,9 +64,9 @@ module MailSlurpClient
64
64
  :'inbox_id' => :'String',
65
65
  :'to' => :'Array<String>',
66
66
  :'attachments' => :'Array<String>',
67
+ :'created_at' => :'DateTime',
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
@@ -124,6 +124,10 @@ module MailSlurpClient
124
124
  end
125
125
  end
126
126
 
127
+ if attributes.key?(:'created_at')
128
+ self.created_at = attributes[:'created_at']
129
+ end
130
+
127
131
  if attributes.key?(:'bcc')
128
132
  if (value = attributes[:'bcc']).is_a?(Array)
129
133
  self.bcc = 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
@@ -169,6 +169,10 @@ module MailSlurpClient
169
169
  invalid_properties.push('invalid value for "attachments", attachments cannot be nil.')
170
170
  end
171
171
 
172
+ if @created_at.nil?
173
+ invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
174
+ end
175
+
172
176
  if @bcc.nil?
173
177
  invalid_properties.push('invalid value for "bcc", bcc cannot be nil.')
174
178
  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
 
@@ -192,9 +192,9 @@ module MailSlurpClient
192
192
  return false if @inbox_id.nil?
193
193
  return false if @to.nil?
194
194
  return false if @attachments.nil?
195
+ return false if @created_at.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
 
@@ -210,9 +210,9 @@ module MailSlurpClient
210
210
  inbox_id == o.inbox_id &&
211
211
  to == o.to &&
212
212
  attachments == o.attachments &&
213
+ created_at == o.created_at &&
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, to, attachments, created_at, bcc, cc, body_md5_hash].hash
229
229
  end
230
230
 
231
231
  # Builds the object from hash
@@ -21,18 +21,18 @@ module MailSlurpClient
21
21
 
22
22
  attr_accessor :subject
23
23
 
24
- attr_accessor :inbox_id
25
-
26
24
  attr_accessor :user_id
27
25
 
26
+ attr_accessor :inbox_id
27
+
28
28
  attr_accessor :to
29
29
 
30
+ attr_accessor :created_at
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
@@ -43,12 +43,12 @@ module MailSlurpClient
43
43
  :'name' => :'name',
44
44
  :'id' => :'id',
45
45
  :'subject' => :'subject',
46
- :'inbox_id' => :'inboxId',
47
46
  :'user_id' => :'userId',
47
+ :'inbox_id' => :'inboxId',
48
48
  :'to' => :'to',
49
+ :'created_at' => :'createdAt',
49
50
  :'bcc' => :'bcc',
50
51
  :'cc' => :'cc',
51
- :'created_at' => :'createdAt',
52
52
  :'updated_at' => :'updatedAt',
53
53
  :'alias_id' => :'aliasId'
54
54
  }
@@ -60,12 +60,12 @@ module MailSlurpClient
60
60
  :'name' => :'String',
61
61
  :'id' => :'String',
62
62
  :'subject' => :'String',
63
- :'inbox_id' => :'String',
64
63
  :'user_id' => :'String',
64
+ :'inbox_id' => :'String',
65
65
  :'to' => :'Array<String>',
66
+ :'created_at' => :'DateTime',
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
  }
@@ -104,20 +104,24 @@ module MailSlurpClient
104
104
  self.subject = attributes[:'subject']
105
105
  end
106
106
 
107
- if attributes.key?(:'inbox_id')
108
- self.inbox_id = attributes[:'inbox_id']
109
- end
110
-
111
107
  if attributes.key?(:'user_id')
112
108
  self.user_id = attributes[:'user_id']
113
109
  end
114
110
 
111
+ if attributes.key?(:'inbox_id')
112
+ self.inbox_id = attributes[:'inbox_id']
113
+ end
114
+
115
115
  if attributes.key?(:'to')
116
116
  if (value = attributes[:'to']).is_a?(Array)
117
117
  self.to = value
118
118
  end
119
119
  end
120
120
 
121
+ if attributes.key?(:'created_at')
122
+ self.created_at = attributes[:'created_at']
123
+ end
124
+
121
125
  if attributes.key?(:'bcc')
122
126
  if (value = attributes[:'bcc']).is_a?(Array)
123
127
  self.bcc = 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
@@ -151,14 +151,14 @@ module MailSlurpClient
151
151
  invalid_properties.push('invalid value for "id", id cannot be nil.')
152
152
  end
153
153
 
154
- if @inbox_id.nil?
155
- invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
156
- end
157
-
158
154
  if @user_id.nil?
159
155
  invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
160
156
  end
161
157
 
158
+ if @inbox_id.nil?
159
+ invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
160
+ end
161
+
162
162
  if @to.nil?
163
163
  invalid_properties.push('invalid value for "to", to cannot be nil.')
164
164
  end
@@ -182,8 +182,8 @@ module MailSlurpClient
182
182
  # @return true if the model is valid
183
183
  def valid?
184
184
  return false if @id.nil?
185
- return false if @inbox_id.nil?
186
185
  return false if @user_id.nil?
186
+ return false if @inbox_id.nil?
187
187
  return false if @to.nil?
188
188
  return false if @created_at.nil?
189
189
  return false if @updated_at.nil?
@@ -199,12 +199,12 @@ module MailSlurpClient
199
199
  name == o.name &&
200
200
  id == o.id &&
201
201
  subject == o.subject &&
202
- inbox_id == o.inbox_id &&
203
202
  user_id == o.user_id &&
203
+ inbox_id == o.inbox_id &&
204
204
  to == o.to &&
205
+ created_at == o.created_at &&
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, inbox_id, user_id, to, bcc, cc, created_at, updated_at, alias_id].hash
221
+ [name, id, subject, user_id, inbox_id, to, created_at, bcc, cc, updated_at, alias_id].hash
222
222
  end
223
223
 
224
224
  # Builds the object from hash
@@ -18,10 +18,10 @@ module MailSlurpClient
18
18
 
19
19
  attr_accessor :id
20
20
 
21
- attr_accessor :inbox_id
22
-
23
21
  attr_accessor :user_id
24
22
 
23
+ attr_accessor :inbox_id
24
+
25
25
  attr_accessor :created_at
26
26
 
27
27
  attr_accessor :seen
@@ -37,8 +37,8 @@ module MailSlurpClient
37
37
  {
38
38
  :'name' => :'name',
39
39
  :'id' => :'id',
40
- :'inbox_id' => :'inboxId',
41
40
  :'user_id' => :'userId',
41
+ :'inbox_id' => :'inboxId',
42
42
  :'created_at' => :'createdAt',
43
43
  :'seen' => :'seen',
44
44
  :'recipient' => :'recipient',
@@ -52,8 +52,8 @@ module MailSlurpClient
52
52
  {
53
53
  :'name' => :'String',
54
54
  :'id' => :'String',
55
- :'inbox_id' => :'String',
56
55
  :'user_id' => :'String',
56
+ :'inbox_id' => :'String',
57
57
  :'created_at' => :'DateTime',
58
58
  :'seen' => :'Boolean',
59
59
  :'recipient' => :'String',
@@ -91,14 +91,14 @@ module MailSlurpClient
91
91
  self.id = attributes[:'id']
92
92
  end
93
93
 
94
- if attributes.key?(:'inbox_id')
95
- self.inbox_id = attributes[:'inbox_id']
96
- end
97
-
98
94
  if attributes.key?(:'user_id')
99
95
  self.user_id = attributes[:'user_id']
100
96
  end
101
97
 
98
+ if attributes.key?(:'inbox_id')
99
+ self.inbox_id = attributes[:'inbox_id']
100
+ end
101
+
102
102
  if attributes.key?(:'created_at')
103
103
  self.created_at = attributes[:'created_at']
104
104
  end
@@ -160,8 +160,8 @@ module MailSlurpClient
160
160
  self.class == o.class &&
161
161
  name == o.name &&
162
162
  id == o.id &&
163
- inbox_id == o.inbox_id &&
164
163
  user_id == o.user_id &&
164
+ inbox_id == o.inbox_id &&
165
165
  created_at == o.created_at &&
166
166
  seen == o.seen &&
167
167
  recipient == o.recipient &&
@@ -178,7 +178,7 @@ module MailSlurpClient
178
178
  # Calculates hash code according to all attributes.
179
179
  # @return [Integer] Hash code
180
180
  def hash
181
- [name, id, inbox_id, user_id, created_at, seen, recipient, seen_at, sent_email_id].hash
181
+ [name, id, user_id, inbox_id, created_at, seen, recipient, seen_at, sent_email_id].hash
182
182
  end
183
183
 
184
184
  # 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.2.6'
14
+ VERSION = '15.3.1'
15
15
  end
@@ -80,6 +80,8 @@ require 'mailslurp_client/models/inbox_exists_dto'
80
80
  require 'mailslurp_client/models/inbox_forwarder_dto'
81
81
  require 'mailslurp_client/models/inbox_forwarder_test_options'
82
82
  require 'mailslurp_client/models/inbox_forwarder_test_result'
83
+ require 'mailslurp_client/models/inbox_id_item'
84
+ require 'mailslurp_client/models/inbox_ids_result'
83
85
  require 'mailslurp_client/models/inbox_preview'
84
86
  require 'mailslurp_client/models/inbox_ruleset_dto'
85
87
  require 'mailslurp_client/models/inbox_ruleset_test_options'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mailslurp_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 15.2.6
4
+ version: 15.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - mailslurp
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-01-15 00:00:00.000000000 Z
11
+ date: 2022-01-17 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Create emails addresses in Ruby then send and receive real emails and
14
14
  attachments. See https://www.mailslurp.com/docs/ruby/ for full Ruby documentation.
@@ -110,6 +110,8 @@ files:
110
110
  - lib/mailslurp_client/models/inbox_forwarder_dto.rb
111
111
  - lib/mailslurp_client/models/inbox_forwarder_test_options.rb
112
112
  - lib/mailslurp_client/models/inbox_forwarder_test_result.rb
113
+ - lib/mailslurp_client/models/inbox_id_item.rb
114
+ - lib/mailslurp_client/models/inbox_ids_result.rb
113
115
  - lib/mailslurp_client/models/inbox_preview.rb
114
116
  - lib/mailslurp_client/models/inbox_ruleset_dto.rb
115
117
  - lib/mailslurp_client/models/inbox_ruleset_test_options.rb