mailslurp_client 15.1.3 → 15.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -18,17 +18,17 @@ module MailSlurpClient
18
18
 
19
19
  attr_accessor :id
20
20
 
21
- attr_accessor :description
22
-
23
21
  attr_accessor :created_at
24
22
 
23
+ attr_accessor :description
24
+
25
25
  # Attribute mapping from ruby-style variable name to JSON key.
26
26
  def self.attribute_map
27
27
  {
28
28
  :'name' => :'name',
29
29
  :'id' => :'id',
30
- :'description' => :'description',
31
- :'created_at' => :'createdAt'
30
+ :'created_at' => :'createdAt',
31
+ :'description' => :'description'
32
32
  }
33
33
  end
34
34
 
@@ -37,8 +37,8 @@ module MailSlurpClient
37
37
  {
38
38
  :'name' => :'String',
39
39
  :'id' => :'String',
40
- :'description' => :'String',
41
- :'created_at' => :'DateTime'
40
+ :'created_at' => :'DateTime',
41
+ :'description' => :'String'
42
42
  }
43
43
  end
44
44
 
@@ -71,13 +71,13 @@ module MailSlurpClient
71
71
  self.id = attributes[:'id']
72
72
  end
73
73
 
74
- if attributes.key?(:'description')
75
- self.description = attributes[:'description']
76
- end
77
-
78
74
  if attributes.key?(:'created_at')
79
75
  self.created_at = attributes[:'created_at']
80
76
  end
77
+
78
+ if attributes.key?(:'description')
79
+ self.description = attributes[:'description']
80
+ end
81
81
  end
82
82
 
83
83
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -115,8 +115,8 @@ module MailSlurpClient
115
115
  self.class == o.class &&
116
116
  name == o.name &&
117
117
  id == o.id &&
118
- description == o.description &&
119
- created_at == o.created_at
118
+ created_at == o.created_at &&
119
+ description == o.description
120
120
  end
121
121
 
122
122
  # @see the `==` method
@@ -128,7 +128,7 @@ module MailSlurpClient
128
128
  # Calculates hash code according to all attributes.
129
129
  # @return [Integer] Hash code
130
130
  def hash
131
- [name, id, description, created_at].hash
131
+ [name, id, created_at, description].hash
132
132
  end
133
133
 
134
134
  # Builds the object from hash
@@ -18,20 +18,20 @@ module MailSlurpClient
18
18
 
19
19
  attr_accessor :from
20
20
 
21
- attr_accessor :user_id
21
+ attr_accessor :created_at
22
22
 
23
23
  attr_accessor :subject
24
24
 
25
- attr_accessor :created_at
25
+ attr_accessor :user_id
26
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
- :'user_id' => :'userId',
32
+ :'created_at' => :'createdAt',
33
33
  :'subject' => :'subject',
34
- :'created_at' => :'createdAt'
34
+ :'user_id' => :'userId'
35
35
  }
36
36
  end
37
37
 
@@ -40,9 +40,9 @@ module MailSlurpClient
40
40
  {
41
41
  :'id' => :'String',
42
42
  :'from' => :'String',
43
- :'user_id' => :'String',
43
+ :'created_at' => :'DateTime',
44
44
  :'subject' => :'String',
45
- :'created_at' => :'DateTime'
45
+ :'user_id' => :'String'
46
46
  }
47
47
  end
48
48
 
@@ -75,16 +75,16 @@ module MailSlurpClient
75
75
  self.from = attributes[:'from']
76
76
  end
77
77
 
78
- if attributes.key?(:'user_id')
79
- self.user_id = attributes[:'user_id']
78
+ if attributes.key?(:'created_at')
79
+ self.created_at = attributes[:'created_at']
80
80
  end
81
81
 
82
82
  if attributes.key?(:'subject')
83
83
  self.subject = attributes[:'subject']
84
84
  end
85
85
 
86
- if attributes.key?(:'created_at')
87
- self.created_at = attributes[:'created_at']
86
+ if attributes.key?(:'user_id')
87
+ self.user_id = attributes[:'user_id']
88
88
  end
89
89
  end
90
90
 
@@ -118,9 +118,9 @@ module MailSlurpClient
118
118
  self.class == o.class &&
119
119
  id == o.id &&
120
120
  from == o.from &&
121
- user_id == o.user_id &&
121
+ created_at == o.created_at &&
122
122
  subject == o.subject &&
123
- created_at == o.created_at
123
+ user_id == o.user_id
124
124
  end
125
125
 
126
126
  # @see the `==` method
@@ -132,7 +132,7 @@ module MailSlurpClient
132
132
  # Calculates hash code according to all attributes.
133
133
  # @return [Integer] Hash code
134
134
  def hash
135
- [id, from, user_id, subject, created_at].hash
135
+ [id, from, created_at, subject, user_id].hash
136
136
  end
137
137
 
138
138
  # Builds the object from hash
@@ -23,6 +23,8 @@ module MailSlurpClient
23
23
 
24
24
  attr_accessor :subject
25
25
 
26
+ attr_accessor :created_at
27
+
26
28
  attr_accessor :inbox_id
27
29
 
28
30
  attr_accessor :to
@@ -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.
@@ -44,12 +44,12 @@ module MailSlurpClient
44
44
  :'from' => :'from',
45
45
  :'user_id' => :'userId',
46
46
  :'subject' => :'subject',
47
+ :'created_at' => :'createdAt',
47
48
  :'inbox_id' => :'inboxId',
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
@@ -61,12 +61,12 @@ module MailSlurpClient
61
61
  :'from' => :'String',
62
62
  :'user_id' => :'String',
63
63
  :'subject' => :'String',
64
+ :'created_at' => :'DateTime',
64
65
  :'inbox_id' => :'String',
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
@@ -108,6 +108,10 @@ module MailSlurpClient
108
108
  self.subject = attributes[:'subject']
109
109
  end
110
110
 
111
+ if attributes.key?(:'created_at')
112
+ self.created_at = attributes[:'created_at']
113
+ end
114
+
111
115
  if attributes.key?(:'inbox_id')
112
116
  self.inbox_id = attributes[:'inbox_id']
113
117
  end
@@ -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
@@ -157,6 +157,10 @@ module MailSlurpClient
157
157
  invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
158
158
  end
159
159
 
160
+ if @created_at.nil?
161
+ invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
162
+ end
163
+
160
164
  if @inbox_id.nil?
161
165
  invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
162
166
  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
 
@@ -189,12 +189,12 @@ module MailSlurpClient
189
189
  def valid?
190
190
  return false if @id.nil?
191
191
  return false if @user_id.nil?
192
+ return false if @created_at.nil?
192
193
  return false if @inbox_id.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
 
@@ -207,12 +207,12 @@ module MailSlurpClient
207
207
  from == o.from &&
208
208
  user_id == o.user_id &&
209
209
  subject == o.subject &&
210
+ created_at == o.created_at &&
210
211
  inbox_id == o.inbox_id &&
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, created_at, inbox_id, to, attachments, bcc, cc, body_md5_hash].hash
229
229
  end
230
230
 
231
231
  # Builds the object from hash
@@ -19,10 +19,12 @@ module MailSlurpClient
19
19
 
20
20
  attr_accessor :id
21
21
 
22
- attr_accessor :user_id
22
+ attr_accessor :created_at
23
23
 
24
24
  attr_accessor :subject
25
25
 
26
+ attr_accessor :user_id
27
+
26
28
  attr_accessor :inbox_id
27
29
 
28
30
  attr_accessor :to
@@ -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 :updated_at
37
37
 
38
38
  attr_accessor :alias_id
@@ -42,13 +42,13 @@ module MailSlurpClient
42
42
  {
43
43
  :'name' => :'name',
44
44
  :'id' => :'id',
45
- :'user_id' => :'userId',
45
+ :'created_at' => :'createdAt',
46
46
  :'subject' => :'subject',
47
+ :'user_id' => :'userId',
47
48
  :'inbox_id' => :'inboxId',
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
  }
@@ -59,13 +59,13 @@ module MailSlurpClient
59
59
  {
60
60
  :'name' => :'String',
61
61
  :'id' => :'String',
62
- :'user_id' => :'String',
62
+ :'created_at' => :'DateTime',
63
63
  :'subject' => :'String',
64
+ :'user_id' => :'String',
64
65
  :'inbox_id' => :'String',
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
  }
@@ -100,14 +100,18 @@ module MailSlurpClient
100
100
  self.id = attributes[:'id']
101
101
  end
102
102
 
103
- if attributes.key?(:'user_id')
104
- self.user_id = attributes[:'user_id']
103
+ if attributes.key?(:'created_at')
104
+ self.created_at = attributes[:'created_at']
105
105
  end
106
106
 
107
107
  if attributes.key?(:'subject')
108
108
  self.subject = attributes[:'subject']
109
109
  end
110
110
 
111
+ if attributes.key?(:'user_id')
112
+ self.user_id = attributes[:'user_id']
113
+ end
114
+
111
115
  if attributes.key?(:'inbox_id')
112
116
  self.inbox_id = attributes[:'inbox_id']
113
117
  end
@@ -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,6 +151,10 @@ module MailSlurpClient
151
151
  invalid_properties.push('invalid value for "id", id cannot be nil.')
152
152
  end
153
153
 
154
+ if @created_at.nil?
155
+ invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
156
+ end
157
+
154
158
  if @user_id.nil?
155
159
  invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
156
160
  end
@@ -163,10 +167,6 @@ module MailSlurpClient
163
167
  invalid_properties.push('invalid value for "to", to cannot be nil.')
164
168
  end
165
169
 
166
- if @created_at.nil?
167
- invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
168
- end
169
-
170
170
  if @updated_at.nil?
171
171
  invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
172
172
  end
@@ -182,10 +182,10 @@ 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 @created_at.nil?
185
186
  return false if @user_id.nil?
186
187
  return false if @inbox_id.nil?
187
188
  return false if @to.nil?
188
- return false if @created_at.nil?
189
189
  return false if @updated_at.nil?
190
190
  return false if @alias_id.nil?
191
191
  true
@@ -198,13 +198,13 @@ module MailSlurpClient
198
198
  self.class == o.class &&
199
199
  name == o.name &&
200
200
  id == o.id &&
201
- user_id == o.user_id &&
201
+ created_at == o.created_at &&
202
202
  subject == o.subject &&
203
+ user_id == o.user_id &&
203
204
  inbox_id == o.inbox_id &&
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, user_id, subject, inbox_id, to, bcc, cc, created_at, updated_at, alias_id].hash
221
+ [name, id, created_at, subject, user_id, inbox_id, to, bcc, cc, updated_at, alias_id].hash
222
222
  end
223
223
 
224
224
  # Builds the object from hash
@@ -18,12 +18,12 @@ module MailSlurpClient
18
18
 
19
19
  attr_accessor :id
20
20
 
21
+ attr_accessor :created_at
22
+
21
23
  attr_accessor :user_id
22
24
 
23
25
  attr_accessor :inbox_id
24
26
 
25
- attr_accessor :created_at
26
-
27
27
  attr_accessor :seen
28
28
 
29
29
  attr_accessor :recipient
@@ -37,9 +37,9 @@ module MailSlurpClient
37
37
  {
38
38
  :'name' => :'name',
39
39
  :'id' => :'id',
40
+ :'created_at' => :'createdAt',
40
41
  :'user_id' => :'userId',
41
42
  :'inbox_id' => :'inboxId',
42
- :'created_at' => :'createdAt',
43
43
  :'seen' => :'seen',
44
44
  :'recipient' => :'recipient',
45
45
  :'seen_at' => :'seenAt',
@@ -52,9 +52,9 @@ module MailSlurpClient
52
52
  {
53
53
  :'name' => :'String',
54
54
  :'id' => :'String',
55
+ :'created_at' => :'DateTime',
55
56
  :'user_id' => :'String',
56
57
  :'inbox_id' => :'String',
57
- :'created_at' => :'DateTime',
58
58
  :'seen' => :'Boolean',
59
59
  :'recipient' => :'String',
60
60
  :'seen_at' => :'DateTime',
@@ -91,6 +91,10 @@ module MailSlurpClient
91
91
  self.id = attributes[:'id']
92
92
  end
93
93
 
94
+ if attributes.key?(:'created_at')
95
+ self.created_at = attributes[:'created_at']
96
+ end
97
+
94
98
  if attributes.key?(:'user_id')
95
99
  self.user_id = attributes[:'user_id']
96
100
  end
@@ -99,10 +103,6 @@ module MailSlurpClient
99
103
  self.inbox_id = attributes[:'inbox_id']
100
104
  end
101
105
 
102
- if attributes.key?(:'created_at')
103
- self.created_at = attributes[:'created_at']
104
- end
105
-
106
106
  if attributes.key?(:'seen')
107
107
  self.seen = attributes[:'seen']
108
108
  end
@@ -128,14 +128,14 @@ module MailSlurpClient
128
128
  invalid_properties.push('invalid value for "id", id cannot be nil.')
129
129
  end
130
130
 
131
- if @user_id.nil?
132
- invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
133
- end
134
-
135
131
  if @created_at.nil?
136
132
  invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
137
133
  end
138
134
 
135
+ if @user_id.nil?
136
+ invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
137
+ end
138
+
139
139
  if @seen.nil?
140
140
  invalid_properties.push('invalid value for "seen", seen cannot be nil.')
141
141
  end
@@ -147,8 +147,8 @@ module MailSlurpClient
147
147
  # @return true if the model is valid
148
148
  def valid?
149
149
  return false if @id.nil?
150
- return false if @user_id.nil?
151
150
  return false if @created_at.nil?
151
+ return false if @user_id.nil?
152
152
  return false if @seen.nil?
153
153
  true
154
154
  end
@@ -160,9 +160,9 @@ module MailSlurpClient
160
160
  self.class == o.class &&
161
161
  name == o.name &&
162
162
  id == o.id &&
163
+ created_at == o.created_at &&
163
164
  user_id == o.user_id &&
164
165
  inbox_id == o.inbox_id &&
165
- created_at == o.created_at &&
166
166
  seen == o.seen &&
167
167
  recipient == o.recipient &&
168
168
  seen_at == o.seen_at &&
@@ -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, user_id, inbox_id, created_at, seen, recipient, seen_at, sent_email_id].hash
181
+ [name, id, created_at, user_id, inbox_id, seen, recipient, seen_at, sent_email_id].hash
182
182
  end
183
183
 
184
184
  # Builds the object from hash
@@ -18,20 +18,20 @@ module MailSlurpClient
18
18
 
19
19
  attr_accessor :from
20
20
 
21
+ attr_accessor :created_at
22
+
21
23
  attr_accessor :subject
22
24
 
23
25
  attr_accessor :to
24
26
 
25
- attr_accessor :created_at
26
-
27
27
  # Attribute mapping from ruby-style variable name to JSON key.
28
28
  def self.attribute_map
29
29
  {
30
30
  :'id' => :'id',
31
31
  :'from' => :'from',
32
+ :'created_at' => :'createdAt',
32
33
  :'subject' => :'subject',
33
- :'to' => :'to',
34
- :'created_at' => :'createdAt'
34
+ :'to' => :'to'
35
35
  }
36
36
  end
37
37
 
@@ -40,9 +40,9 @@ module MailSlurpClient
40
40
  {
41
41
  :'id' => :'String',
42
42
  :'from' => :'String',
43
+ :'created_at' => :'DateTime',
43
44
  :'subject' => :'String',
44
- :'to' => :'Array<String>',
45
- :'created_at' => :'DateTime'
45
+ :'to' => :'Array<String>'
46
46
  }
47
47
  end
48
48
 
@@ -75,6 +75,10 @@ module MailSlurpClient
75
75
  self.from = attributes[:'from']
76
76
  end
77
77
 
78
+ if attributes.key?(:'created_at')
79
+ self.created_at = attributes[:'created_at']
80
+ end
81
+
78
82
  if attributes.key?(:'subject')
79
83
  self.subject = attributes[:'subject']
80
84
  end
@@ -84,10 +88,6 @@ module MailSlurpClient
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?
@@ -120,9 +120,9 @@ module MailSlurpClient
120
120
  self.class == o.class &&
121
121
  id == o.id &&
122
122
  from == o.from &&
123
+ created_at == o.created_at &&
123
124
  subject == o.subject &&
124
- to == o.to &&
125
- 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, created_at, subject, to].hash
138
138
  end
139
139
 
140
140
  # Builds the object from hash