mailslurp_client 15.13.31 → 15.13.32

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: b8d9485140934e8f5dcc63561e7e29d70192dbd4ddf93d6eee2e2bcf0625416d
4
- data.tar.gz: 4b4cb368bc22a27c5f3b19ff3d23d3120d7266b27387261ebede0456eec8ce06
3
+ metadata.gz: 791733ac9a5cf2c8df9786597602e7c31643bc0ded5622c73096041d7c2da5c4
4
+ data.tar.gz: e930d8462be60e01080c5ef7a2a963a44c0343c671e648cfddc6d60a97ad61f5
5
5
  SHA512:
6
- metadata.gz: 59defe612532ceccd56b2580a61eb288d786a9e8ec751056f3e20ff87231ba5eb079d896e9dd5f053c6712c59990f98ed388fbcd859031becbf736fea5e58acb
7
- data.tar.gz: dc46fa89f082172d0f0c319e980fc90d7bbcb24d170f866ea808aad104465af44eae713da611a4831ee8b061c286586df0804221a84a70b3e8dd7aab7f0b6423
6
+ metadata.gz: bb6b0591e9a317764ea2a9583cf7a6c5461a18bf9e4fd806241dfb6eda86f1507c60d5ce941e46551fb51df0c406a8817b8d57540e3a5338e216192a9c35a5b0
7
+ data.tar.gz: 4d9a861ae759bad70556902fafbfeb4153758db55ca8962e71352e685999edd994aa045ff9bc6e3d382cd7cbf2ea9836be44c4997eb7dad389b6e2b3c461ca85
@@ -19,12 +19,12 @@ module MailSlurpClient
19
19
 
20
20
  attr_accessor :id
21
21
 
22
+ attr_accessor :inbox_id
23
+
22
24
  attr_accessor :user_id
23
25
 
24
26
  attr_accessor :email_address
25
27
 
26
- attr_accessor :inbox_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
+ :'inbox_id' => :'inboxId',
39
40
  :'user_id' => :'userId',
40
41
  :'email_address' => :'emailAddress',
41
- :'inbox_id' => :'inboxId',
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
+ :'inbox_id' => :'String',
53
54
  :'user_id' => :'String',
54
55
  :'email_address' => :'String',
55
- :'inbox_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?(:'inbox_id')
92
+ self.inbox_id = attributes[:'inbox_id']
93
+ end
94
+
91
95
  if attributes.key?(:'user_id')
92
96
  self.user_id = attributes[:'user_id']
93
97
  end
@@ -96,10 +100,6 @@ module MailSlurpClient
96
100
  self.email_address = attributes[:'email_address']
97
101
  end
98
102
 
99
- if attributes.key?(:'inbox_id')
100
- self.inbox_id = attributes[:'inbox_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 @inbox_id.nil?
125
+ invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
126
+ end
127
+
124
128
  if @user_id.nil?
125
129
  invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
126
130
  end
@@ -129,10 +133,6 @@ module MailSlurpClient
129
133
  invalid_properties.push('invalid value for "email_address", email_address cannot be nil.')
130
134
  end
131
135
 
132
- if @inbox_id.nil?
133
- invalid_properties.push('invalid value for "inbox_id", inbox_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 @inbox_id.nil?
151
152
  return false if @user_id.nil?
152
153
  return false if @email_address.nil?
153
- return false if @inbox_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
+ inbox_id == o.inbox_id &&
166
167
  user_id == o.user_id &&
167
168
  email_address == o.email_address &&
168
- inbox_id == o.inbox_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, user_id, email_address, inbox_id, created_at, use_threads, updated_at].hash
183
+ [name, id, inbox_id, user_id, email_address, created_at, use_threads, updated_at].hash
184
184
  end
185
185
 
186
186
  # Builds the object from hash
@@ -19,6 +19,8 @@ module MailSlurpClient
19
19
 
20
20
  attr_accessor :group_id
21
21
 
22
+ attr_accessor :created_at
23
+
22
24
  attr_accessor :first_name
23
25
 
24
26
  attr_accessor :last_name
@@ -29,19 +31,17 @@ module MailSlurpClient
29
31
 
30
32
  attr_accessor :opt_out
31
33
 
32
- attr_accessor :created_at
33
-
34
34
  # Attribute mapping from ruby-style variable name to JSON key.
35
35
  def self.attribute_map
36
36
  {
37
37
  :'id' => :'id',
38
38
  :'group_id' => :'groupId',
39
+ :'created_at' => :'createdAt',
39
40
  :'first_name' => :'firstName',
40
41
  :'last_name' => :'lastName',
41
42
  :'company' => :'company',
42
43
  :'email_addresses' => :'emailAddresses',
43
- :'opt_out' => :'optOut',
44
- :'created_at' => :'createdAt'
44
+ :'opt_out' => :'optOut'
45
45
  }
46
46
  end
47
47
 
@@ -50,12 +50,12 @@ module MailSlurpClient
50
50
  {
51
51
  :'id' => :'String',
52
52
  :'group_id' => :'String',
53
+ :'created_at' => :'DateTime',
53
54
  :'first_name' => :'String',
54
55
  :'last_name' => :'String',
55
56
  :'company' => :'String',
56
57
  :'email_addresses' => :'Array<String>',
57
- :'opt_out' => :'Boolean',
58
- :'created_at' => :'DateTime'
58
+ :'opt_out' => :'Boolean'
59
59
  }
60
60
  end
61
61
 
@@ -88,6 +88,10 @@ module MailSlurpClient
88
88
  self.group_id = attributes[:'group_id']
89
89
  end
90
90
 
91
+ if attributes.key?(:'created_at')
92
+ self.created_at = attributes[:'created_at']
93
+ end
94
+
91
95
  if attributes.key?(:'first_name')
92
96
  self.first_name = attributes[:'first_name']
93
97
  end
@@ -109,10 +113,6 @@ module MailSlurpClient
109
113
  if attributes.key?(:'opt_out')
110
114
  self.opt_out = attributes[:'opt_out']
111
115
  end
112
-
113
- if attributes.key?(:'created_at')
114
- self.created_at = attributes[:'created_at']
115
- end
116
116
  end
117
117
 
118
118
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -123,14 +123,14 @@ module MailSlurpClient
123
123
  invalid_properties.push('invalid value for "id", id cannot be nil.')
124
124
  end
125
125
 
126
- if @opt_out.nil?
127
- invalid_properties.push('invalid value for "opt_out", opt_out cannot be nil.')
128
- end
129
-
130
126
  if @created_at.nil?
131
127
  invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
132
128
  end
133
129
 
130
+ if @opt_out.nil?
131
+ invalid_properties.push('invalid value for "opt_out", opt_out cannot be nil.')
132
+ end
133
+
134
134
  invalid_properties
135
135
  end
136
136
 
@@ -138,8 +138,8 @@ module MailSlurpClient
138
138
  # @return true if the model is valid
139
139
  def valid?
140
140
  return false if @id.nil?
141
- return false if @opt_out.nil?
142
141
  return false if @created_at.nil?
142
+ return false if @opt_out.nil?
143
143
  true
144
144
  end
145
145
 
@@ -150,12 +150,12 @@ module MailSlurpClient
150
150
  self.class == o.class &&
151
151
  id == o.id &&
152
152
  group_id == o.group_id &&
153
+ created_at == o.created_at &&
153
154
  first_name == o.first_name &&
154
155
  last_name == o.last_name &&
155
156
  company == o.company &&
156
157
  email_addresses == o.email_addresses &&
157
- opt_out == o.opt_out &&
158
- created_at == o.created_at
158
+ opt_out == o.opt_out
159
159
  end
160
160
 
161
161
  # @see the `==` method
@@ -167,7 +167,7 @@ module MailSlurpClient
167
167
  # Calculates hash code according to all attributes.
168
168
  # @return [Integer] Hash code
169
169
  def hash
170
- [id, group_id, first_name, last_name, company, email_addresses, opt_out, created_at].hash
170
+ [id, group_id, created_at, first_name, last_name, company, email_addresses, opt_out].hash
171
171
  end
172
172
 
173
173
  # Builds the object from hash
@@ -27,12 +27,12 @@ module MailSlurpClient
27
27
 
28
28
  attr_accessor :to
29
29
 
30
- attr_accessor :created_at
31
-
32
30
  attr_accessor :bcc
33
31
 
34
32
  attr_accessor :cc
35
33
 
34
+ attr_accessor :created_at
35
+
36
36
  attr_accessor :domain_id
37
37
 
38
38
  attr_accessor :read
@@ -52,9 +52,9 @@ module MailSlurpClient
52
52
  :'inbox_id' => :'inboxId',
53
53
  :'attachments' => :'attachments',
54
54
  :'to' => :'to',
55
- :'created_at' => :'createdAt',
56
55
  :'bcc' => :'bcc',
57
56
  :'cc' => :'cc',
57
+ :'created_at' => :'createdAt',
58
58
  :'domain_id' => :'domainId',
59
59
  :'read' => :'read',
60
60
  :'team_access' => :'teamAccess',
@@ -72,9 +72,9 @@ module MailSlurpClient
72
72
  :'inbox_id' => :'String',
73
73
  :'attachments' => :'Array<String>',
74
74
  :'to' => :'Array<String>',
75
- :'created_at' => :'DateTime',
76
75
  :'bcc' => :'Array<String>',
77
76
  :'cc' => :'Array<String>',
77
+ :'created_at' => :'DateTime',
78
78
  :'domain_id' => :'String',
79
79
  :'read' => :'Boolean',
80
80
  :'team_access' => :'Boolean',
@@ -132,10 +132,6 @@ module MailSlurpClient
132
132
  end
133
133
  end
134
134
 
135
- if attributes.key?(:'created_at')
136
- self.created_at = attributes[:'created_at']
137
- end
138
-
139
135
  if attributes.key?(:'bcc')
140
136
  if (value = attributes[:'bcc']).is_a?(Array)
141
137
  self.bcc = value
@@ -148,6 +144,10 @@ module MailSlurpClient
148
144
  end
149
145
  end
150
146
 
147
+ if attributes.key?(:'created_at')
148
+ self.created_at = attributes[:'created_at']
149
+ end
150
+
151
151
  if attributes.key?(:'domain_id')
152
152
  self.domain_id = attributes[:'domain_id']
153
153
  end
@@ -223,9 +223,9 @@ module MailSlurpClient
223
223
  inbox_id == o.inbox_id &&
224
224
  attachments == o.attachments &&
225
225
  to == o.to &&
226
- created_at == o.created_at &&
227
226
  bcc == o.bcc &&
228
227
  cc == o.cc &&
228
+ created_at == o.created_at &&
229
229
  domain_id == o.domain_id &&
230
230
  read == o.read &&
231
231
  team_access == o.team_access &&
@@ -242,7 +242,7 @@ module MailSlurpClient
242
242
  # Calculates hash code according to all attributes.
243
243
  # @return [Integer] Hash code
244
244
  def hash
245
- [id, from, subject, inbox_id, attachments, to, created_at, bcc, cc, domain_id, read, team_access, body_md5_hash, body_excerpt].hash
245
+ [id, from, subject, inbox_id, attachments, to, bcc, cc, created_at, domain_id, read, team_access, body_md5_hash, body_excerpt].hash
246
246
  end
247
247
 
248
248
  # Builds the object from hash
@@ -13,7 +13,7 @@ OpenAPI Generator version: 4.3.1
13
13
  require 'date'
14
14
 
15
15
  module MailSlurpClient
16
- # Inbox data
16
+ # Inbox data preview element.
17
17
  class InboxPreview
18
18
  # ID of the inbox. The ID is a UUID-V4 format string. Use the inboxId for calls to Inbox and Email Controller endpoints. See the emailAddress property for the email address or the inbox. To get emails in an inbox use the WaitFor and Inbox Controller methods `waitForLatestEmail` and `getEmails` methods respectively. Inboxes can be used with aliases to forward emails automatically.
19
19
  attr_accessor :id
@@ -107,6 +107,7 @@ module MailSlurpClient
107
107
  # List of attributes with nullable: true
108
108
  def self.openapi_nullable
109
109
  Set.new([
110
+ :'domain_id',
110
111
  :'email_address',
111
112
  :'name',
112
113
  :'tags',
@@ -19,12 +19,12 @@ module MailSlurpClient
19
19
 
20
20
  attr_accessor :user_id
21
21
 
22
+ attr_accessor :phone_country
23
+
22
24
  attr_accessor :phone_number
23
25
 
24
26
  attr_accessor :created_at
25
27
 
26
- attr_accessor :phone_country
27
-
28
28
  class EnumAttributeValidator
29
29
  attr_reader :datatype
30
30
  attr_reader :allowable_values
@@ -52,9 +52,9 @@ module MailSlurpClient
52
52
  {
53
53
  :'id' => :'id',
54
54
  :'user_id' => :'userId',
55
+ :'phone_country' => :'phoneCountry',
55
56
  :'phone_number' => :'phoneNumber',
56
- :'created_at' => :'createdAt',
57
- :'phone_country' => :'phoneCountry'
57
+ :'created_at' => :'createdAt'
58
58
  }
59
59
  end
60
60
 
@@ -63,9 +63,9 @@ module MailSlurpClient
63
63
  {
64
64
  :'id' => :'String',
65
65
  :'user_id' => :'String',
66
+ :'phone_country' => :'String',
66
67
  :'phone_number' => :'String',
67
- :'created_at' => :'DateTime',
68
- :'phone_country' => :'String'
68
+ :'created_at' => :'DateTime'
69
69
  }
70
70
  end
71
71
 
@@ -98,6 +98,10 @@ module MailSlurpClient
98
98
  self.user_id = attributes[:'user_id']
99
99
  end
100
100
 
101
+ if attributes.key?(:'phone_country')
102
+ self.phone_country = attributes[:'phone_country']
103
+ end
104
+
101
105
  if attributes.key?(:'phone_number')
102
106
  self.phone_number = attributes[:'phone_number']
103
107
  end
@@ -105,10 +109,6 @@ module MailSlurpClient
105
109
  if attributes.key?(:'created_at')
106
110
  self.created_at = attributes[:'created_at']
107
111
  end
108
-
109
- if attributes.key?(:'phone_country')
110
- self.phone_country = attributes[:'phone_country']
111
- end
112
112
  end
113
113
 
114
114
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -123,6 +123,10 @@ module MailSlurpClient
123
123
  invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
124
124
  end
125
125
 
126
+ if @phone_country.nil?
127
+ invalid_properties.push('invalid value for "phone_country", phone_country cannot be nil.')
128
+ end
129
+
126
130
  if @phone_number.nil?
127
131
  invalid_properties.push('invalid value for "phone_number", phone_number cannot be nil.')
128
132
  end
@@ -131,10 +135,6 @@ module MailSlurpClient
131
135
  invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
132
136
  end
133
137
 
134
- if @phone_country.nil?
135
- invalid_properties.push('invalid value for "phone_country", phone_country cannot be nil.')
136
- end
137
-
138
138
  invalid_properties
139
139
  end
140
140
 
@@ -143,11 +143,11 @@ module MailSlurpClient
143
143
  def valid?
144
144
  return false if @id.nil?
145
145
  return false if @user_id.nil?
146
- return false if @phone_number.nil?
147
- return false if @created_at.nil?
148
146
  return false if @phone_country.nil?
149
147
  phone_country_validator = EnumAttributeValidator.new('String', ["US", "GB"])
150
148
  return false unless phone_country_validator.valid?(@phone_country)
149
+ return false if @phone_number.nil?
150
+ return false if @created_at.nil?
151
151
  true
152
152
  end
153
153
 
@@ -168,9 +168,9 @@ module MailSlurpClient
168
168
  self.class == o.class &&
169
169
  id == o.id &&
170
170
  user_id == o.user_id &&
171
+ phone_country == o.phone_country &&
171
172
  phone_number == o.phone_number &&
172
- created_at == o.created_at &&
173
- phone_country == o.phone_country
173
+ created_at == o.created_at
174
174
  end
175
175
 
176
176
  # @see the `==` method
@@ -182,7 +182,7 @@ module MailSlurpClient
182
182
  # Calculates hash code according to all attributes.
183
183
  # @return [Integer] Hash code
184
184
  def hash
185
- [id, user_id, phone_number, created_at, phone_country].hash
185
+ [id, user_id, phone_country, phone_number, created_at].hash
186
186
  end
187
187
 
188
188
  # Builds the object from hash
@@ -29,12 +29,12 @@ module MailSlurpClient
29
29
 
30
30
  attr_accessor :to
31
31
 
32
- attr_accessor :created_at
33
-
34
32
  attr_accessor :bcc
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
  attr_accessor :virtual_send
@@ -49,9 +49,9 @@ module MailSlurpClient
49
49
  :'inbox_id' => :'inboxId',
50
50
  :'attachments' => :'attachments',
51
51
  :'to' => :'to',
52
- :'created_at' => :'createdAt',
53
52
  :'bcc' => :'bcc',
54
53
  :'cc' => :'cc',
54
+ :'created_at' => :'createdAt',
55
55
  :'body_md5_hash' => :'bodyMD5Hash',
56
56
  :'virtual_send' => :'virtualSend'
57
57
  }
@@ -67,9 +67,9 @@ module MailSlurpClient
67
67
  :'inbox_id' => :'String',
68
68
  :'attachments' => :'Array<String>',
69
69
  :'to' => :'Array<String>',
70
- :'created_at' => :'DateTime',
71
70
  :'bcc' => :'Array<String>',
72
71
  :'cc' => :'Array<String>',
72
+ :'created_at' => :'DateTime',
73
73
  :'body_md5_hash' => :'String',
74
74
  :'virtual_send' => :'Boolean'
75
75
  }
@@ -128,10 +128,6 @@ 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
-
135
131
  if attributes.key?(:'bcc')
136
132
  if (value = attributes[:'bcc']).is_a?(Array)
137
133
  self.bcc = 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?(:'body_md5_hash')
148
148
  self.body_md5_hash = attributes[:'body_md5_hash']
149
149
  end
@@ -177,10 +177,6 @@ module MailSlurpClient
177
177
  invalid_properties.push('invalid value for "to", to cannot be nil.')
178
178
  end
179
179
 
180
- if @created_at.nil?
181
- invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
182
- end
183
-
184
180
  if @bcc.nil?
185
181
  invalid_properties.push('invalid value for "bcc", bcc cannot be nil.')
186
182
  end
@@ -189,6 +185,10 @@ module MailSlurpClient
189
185
  invalid_properties.push('invalid value for "cc", cc cannot be nil.')
190
186
  end
191
187
 
188
+ if @created_at.nil?
189
+ invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
190
+ end
191
+
192
192
  if @virtual_send.nil?
193
193
  invalid_properties.push('invalid value for "virtual_send", virtual_send cannot be nil.')
194
194
  end
@@ -204,9 +204,9 @@ module MailSlurpClient
204
204
  return false if @inbox_id.nil?
205
205
  return false if @attachments.nil?
206
206
  return false if @to.nil?
207
- return false if @created_at.nil?
208
207
  return false if @bcc.nil?
209
208
  return false if @cc.nil?
209
+ return false if @created_at.nil?
210
210
  return false if @virtual_send.nil?
211
211
  true
212
212
  end
@@ -223,9 +223,9 @@ module MailSlurpClient
223
223
  inbox_id == o.inbox_id &&
224
224
  attachments == o.attachments &&
225
225
  to == o.to &&
226
- created_at == o.created_at &&
227
226
  bcc == o.bcc &&
228
227
  cc == o.cc &&
228
+ created_at == o.created_at &&
229
229
  body_md5_hash == o.body_md5_hash &&
230
230
  virtual_send == o.virtual_send
231
231
  end
@@ -239,7 +239,7 @@ module MailSlurpClient
239
239
  # Calculates hash code according to all attributes.
240
240
  # @return [Integer] Hash code
241
241
  def hash
242
- [id, from, user_id, subject, inbox_id, attachments, to, created_at, bcc, cc, body_md5_hash, virtual_send].hash
242
+ [id, from, user_id, subject, inbox_id, attachments, to, bcc, cc, created_at, body_md5_hash, virtual_send].hash
243
243
  end
244
244
 
245
245
  # Builds the object from hash
@@ -19,10 +19,10 @@ module MailSlurpClient
19
19
 
20
20
  attr_accessor :id
21
21
 
22
- attr_accessor :created_at
23
-
24
22
  attr_accessor :variables
25
23
 
24
+ attr_accessor :created_at
25
+
26
26
  attr_accessor :updated_at
27
27
 
28
28
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -30,8 +30,8 @@ module MailSlurpClient
30
30
  {
31
31
  :'name' => :'name',
32
32
  :'id' => :'id',
33
- :'created_at' => :'createdAt',
34
33
  :'variables' => :'variables',
34
+ :'created_at' => :'createdAt',
35
35
  :'updated_at' => :'updatedAt'
36
36
  }
37
37
  end
@@ -41,8 +41,8 @@ module MailSlurpClient
41
41
  {
42
42
  :'name' => :'String',
43
43
  :'id' => :'String',
44
- :'created_at' => :'DateTime',
45
44
  :'variables' => :'Array<String>',
45
+ :'created_at' => :'DateTime',
46
46
  :'updated_at' => :'DateTime'
47
47
  }
48
48
  end
@@ -76,16 +76,16 @@ module MailSlurpClient
76
76
  self.id = attributes[:'id']
77
77
  end
78
78
 
79
- if attributes.key?(:'created_at')
80
- self.created_at = attributes[:'created_at']
81
- end
82
-
83
79
  if attributes.key?(:'variables')
84
80
  if (value = attributes[:'variables']).is_a?(Array)
85
81
  self.variables = value
86
82
  end
87
83
  end
88
84
 
85
+ if attributes.key?(:'created_at')
86
+ self.created_at = attributes[:'created_at']
87
+ end
88
+
89
89
  if attributes.key?(:'updated_at')
90
90
  self.updated_at = attributes[:'updated_at']
91
91
  end
@@ -103,14 +103,14 @@ module MailSlurpClient
103
103
  invalid_properties.push('invalid value for "id", id cannot be nil.')
104
104
  end
105
105
 
106
- if @created_at.nil?
107
- invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
108
- end
109
-
110
106
  if @variables.nil?
111
107
  invalid_properties.push('invalid value for "variables", variables cannot be nil.')
112
108
  end
113
109
 
110
+ if @created_at.nil?
111
+ invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
112
+ end
113
+
114
114
  if @updated_at.nil?
115
115
  invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
116
116
  end
@@ -123,8 +123,8 @@ module MailSlurpClient
123
123
  def valid?
124
124
  return false if @name.nil?
125
125
  return false if @id.nil?
126
- return false if @created_at.nil?
127
126
  return false if @variables.nil?
127
+ return false if @created_at.nil?
128
128
  return false if @updated_at.nil?
129
129
  true
130
130
  end
@@ -136,8 +136,8 @@ module MailSlurpClient
136
136
  self.class == o.class &&
137
137
  name == o.name &&
138
138
  id == o.id &&
139
- created_at == o.created_at &&
140
139
  variables == o.variables &&
140
+ created_at == o.created_at &&
141
141
  updated_at == o.updated_at
142
142
  end
143
143
 
@@ -150,7 +150,7 @@ module MailSlurpClient
150
150
  # Calculates hash code according to all attributes.
151
151
  # @return [Integer] Hash code
152
152
  def hash
153
- [name, id, created_at, variables, updated_at].hash
153
+ [name, id, variables, created_at, updated_at].hash
154
154
  end
155
155
 
156
156
  # Builds the object from hash
@@ -24,24 +24,24 @@ module MailSlurpClient
24
24
  # Thread subject
25
25
  attr_accessor :subject
26
26
 
27
- # User ID
28
- attr_accessor :user_id
29
-
30
27
  # Inbox ID
31
28
  attr_accessor :inbox_id
32
29
 
30
+ # User ID
31
+ attr_accessor :user_id
32
+
33
33
  # To recipients
34
34
  attr_accessor :to
35
35
 
36
- # Created at DateTime
37
- attr_accessor :created_at
38
-
39
36
  # BCC recipients
40
37
  attr_accessor :bcc
41
38
 
42
39
  # CC recipients
43
40
  attr_accessor :cc
44
41
 
42
+ # Created at DateTime
43
+ attr_accessor :created_at
44
+
45
45
  # Updated at DateTime
46
46
  attr_accessor :updated_at
47
47
 
@@ -54,12 +54,12 @@ module MailSlurpClient
54
54
  :'name' => :'name',
55
55
  :'id' => :'id',
56
56
  :'subject' => :'subject',
57
- :'user_id' => :'userId',
58
57
  :'inbox_id' => :'inboxId',
58
+ :'user_id' => :'userId',
59
59
  :'to' => :'to',
60
- :'created_at' => :'createdAt',
61
60
  :'bcc' => :'bcc',
62
61
  :'cc' => :'cc',
62
+ :'created_at' => :'createdAt',
63
63
  :'updated_at' => :'updatedAt',
64
64
  :'alias_id' => :'aliasId'
65
65
  }
@@ -71,12 +71,12 @@ module MailSlurpClient
71
71
  :'name' => :'String',
72
72
  :'id' => :'String',
73
73
  :'subject' => :'String',
74
- :'user_id' => :'String',
75
74
  :'inbox_id' => :'String',
75
+ :'user_id' => :'String',
76
76
  :'to' => :'Array<String>',
77
- :'created_at' => :'DateTime',
78
77
  :'bcc' => :'Array<String>',
79
78
  :'cc' => :'Array<String>',
79
+ :'created_at' => :'DateTime',
80
80
  :'updated_at' => :'DateTime',
81
81
  :'alias_id' => :'String'
82
82
  }
@@ -115,24 +115,20 @@ module MailSlurpClient
115
115
  self.subject = attributes[:'subject']
116
116
  end
117
117
 
118
- if attributes.key?(:'user_id')
119
- self.user_id = attributes[:'user_id']
120
- end
121
-
122
118
  if attributes.key?(:'inbox_id')
123
119
  self.inbox_id = attributes[:'inbox_id']
124
120
  end
125
121
 
122
+ if attributes.key?(:'user_id')
123
+ self.user_id = attributes[:'user_id']
124
+ end
125
+
126
126
  if attributes.key?(:'to')
127
127
  if (value = attributes[:'to']).is_a?(Array)
128
128
  self.to = value
129
129
  end
130
130
  end
131
131
 
132
- if attributes.key?(:'created_at')
133
- self.created_at = attributes[:'created_at']
134
- end
135
-
136
132
  if attributes.key?(:'bcc')
137
133
  if (value = attributes[:'bcc']).is_a?(Array)
138
134
  self.bcc = value
@@ -145,6 +141,10 @@ module MailSlurpClient
145
141
  end
146
142
  end
147
143
 
144
+ if attributes.key?(:'created_at')
145
+ self.created_at = attributes[:'created_at']
146
+ end
147
+
148
148
  if attributes.key?(:'updated_at')
149
149
  self.updated_at = attributes[:'updated_at']
150
150
  end
@@ -162,14 +162,14 @@ module MailSlurpClient
162
162
  invalid_properties.push('invalid value for "id", id cannot be nil.')
163
163
  end
164
164
 
165
- if @user_id.nil?
166
- invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
167
- end
168
-
169
165
  if @inbox_id.nil?
170
166
  invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
171
167
  end
172
168
 
169
+ if @user_id.nil?
170
+ invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
171
+ end
172
+
173
173
  if @to.nil?
174
174
  invalid_properties.push('invalid value for "to", to cannot be nil.')
175
175
  end
@@ -193,8 +193,8 @@ module MailSlurpClient
193
193
  # @return true if the model is valid
194
194
  def valid?
195
195
  return false if @id.nil?
196
- return false if @user_id.nil?
197
196
  return false if @inbox_id.nil?
197
+ return false if @user_id.nil?
198
198
  return false if @to.nil?
199
199
  return false if @created_at.nil?
200
200
  return false if @updated_at.nil?
@@ -210,12 +210,12 @@ module MailSlurpClient
210
210
  name == o.name &&
211
211
  id == o.id &&
212
212
  subject == o.subject &&
213
- user_id == o.user_id &&
214
213
  inbox_id == o.inbox_id &&
214
+ user_id == o.user_id &&
215
215
  to == o.to &&
216
- created_at == o.created_at &&
217
216
  bcc == o.bcc &&
218
217
  cc == o.cc &&
218
+ created_at == o.created_at &&
219
219
  updated_at == o.updated_at &&
220
220
  alias_id == o.alias_id
221
221
  end
@@ -229,7 +229,7 @@ module MailSlurpClient
229
229
  # Calculates hash code according to all attributes.
230
230
  # @return [Integer] Hash code
231
231
  def hash
232
- [name, id, subject, user_id, inbox_id, to, created_at, bcc, cc, updated_at, alias_id].hash
232
+ [name, id, subject, inbox_id, user_id, to, bcc, cc, created_at, updated_at, alias_id].hash
233
233
  end
234
234
 
235
235
  # Builds the object from hash
@@ -19,10 +19,10 @@ module MailSlurpClient
19
19
 
20
20
  attr_accessor :id
21
21
 
22
- attr_accessor :user_id
23
-
24
22
  attr_accessor :inbox_id
25
23
 
24
+ attr_accessor :user_id
25
+
26
26
  attr_accessor :sent_email_id
27
27
 
28
28
  attr_accessor :created_at
@@ -38,8 +38,8 @@ module MailSlurpClient
38
38
  {
39
39
  :'name' => :'name',
40
40
  :'id' => :'id',
41
- :'user_id' => :'userId',
42
41
  :'inbox_id' => :'inboxId',
42
+ :'user_id' => :'userId',
43
43
  :'sent_email_id' => :'sentEmailId',
44
44
  :'created_at' => :'createdAt',
45
45
  :'recipient' => :'recipient',
@@ -53,8 +53,8 @@ module MailSlurpClient
53
53
  {
54
54
  :'name' => :'String',
55
55
  :'id' => :'String',
56
- :'user_id' => :'String',
57
56
  :'inbox_id' => :'String',
57
+ :'user_id' => :'String',
58
58
  :'sent_email_id' => :'String',
59
59
  :'created_at' => :'DateTime',
60
60
  :'recipient' => :'String',
@@ -92,14 +92,14 @@ module MailSlurpClient
92
92
  self.id = attributes[:'id']
93
93
  end
94
94
 
95
- if attributes.key?(:'user_id')
96
- self.user_id = attributes[:'user_id']
97
- end
98
-
99
95
  if attributes.key?(:'inbox_id')
100
96
  self.inbox_id = attributes[:'inbox_id']
101
97
  end
102
98
 
99
+ if attributes.key?(:'user_id')
100
+ self.user_id = attributes[:'user_id']
101
+ end
102
+
103
103
  if attributes.key?(:'sent_email_id')
104
104
  self.sent_email_id = attributes[:'sent_email_id']
105
105
  end
@@ -161,8 +161,8 @@ module MailSlurpClient
161
161
  self.class == o.class &&
162
162
  name == o.name &&
163
163
  id == o.id &&
164
- user_id == o.user_id &&
165
164
  inbox_id == o.inbox_id &&
165
+ user_id == o.user_id &&
166
166
  sent_email_id == o.sent_email_id &&
167
167
  created_at == o.created_at &&
168
168
  recipient == o.recipient &&
@@ -179,7 +179,7 @@ module MailSlurpClient
179
179
  # Calculates hash code according to all attributes.
180
180
  # @return [Integer] Hash code
181
181
  def hash
182
- [name, id, user_id, inbox_id, sent_email_id, created_at, recipient, seen, seen_at].hash
182
+ [name, id, inbox_id, user_id, sent_email_id, created_at, recipient, seen, seen_at].hash
183
183
  end
184
184
 
185
185
  # 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.13.31'
14
+ VERSION = '15.13.32'
15
15
  end
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.13.31
4
+ version: 15.13.32
5
5
  platform: ruby
6
6
  authors:
7
7
  - mailslurp
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-09-15 00:00:00.000000000 Z
11
+ date: 2022-09-16 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/ruby/ for full Ruby documentation. Get