mailslurp_client 15.1.4 → 15.2.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,11 +18,11 @@ module MailSlurpClient
18
18
 
19
19
  attr_accessor :id
20
20
 
21
- attr_accessor :created_at
21
+ attr_accessor :inbox_id
22
22
 
23
23
  attr_accessor :user_id
24
24
 
25
- attr_accessor :inbox_id
25
+ attr_accessor :created_at
26
26
 
27
27
  attr_accessor :seen
28
28
 
@@ -37,9 +37,9 @@ module MailSlurpClient
37
37
  {
38
38
  :'name' => :'name',
39
39
  :'id' => :'id',
40
- :'created_at' => :'createdAt',
41
- :'user_id' => :'userId',
42
40
  :'inbox_id' => :'inboxId',
41
+ :'user_id' => :'userId',
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',
56
- :'user_id' => :'String',
57
55
  :'inbox_id' => :'String',
56
+ :'user_id' => :'String',
57
+ :'created_at' => :'DateTime',
58
58
  :'seen' => :'Boolean',
59
59
  :'recipient' => :'String',
60
60
  :'seen_at' => :'DateTime',
@@ -91,16 +91,16 @@ 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']
94
+ if attributes.key?(:'inbox_id')
95
+ self.inbox_id = attributes[:'inbox_id']
96
96
  end
97
97
 
98
98
  if attributes.key?(:'user_id')
99
99
  self.user_id = attributes[:'user_id']
100
100
  end
101
101
 
102
- if attributes.key?(:'inbox_id')
103
- self.inbox_id = attributes[:'inbox_id']
102
+ if attributes.key?(:'created_at')
103
+ self.created_at = attributes[:'created_at']
104
104
  end
105
105
 
106
106
  if attributes.key?(:'seen')
@@ -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 @created_at.nil?
132
- invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
133
- end
134
-
135
131
  if @user_id.nil?
136
132
  invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
137
133
  end
138
134
 
135
+ if @created_at.nil?
136
+ invalid_properties.push('invalid value for "created_at", created_at 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 @created_at.nil?
151
150
  return false if @user_id.nil?
151
+ return false if @created_at.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 &&
164
- user_id == o.user_id &&
165
163
  inbox_id == o.inbox_id &&
164
+ user_id == o.user_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, created_at, user_id, inbox_id, seen, recipient, seen_at, sent_email_id].hash
181
+ [name, id, inbox_id, user_id, created_at, 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
-
23
21
  attr_accessor :subject
24
22
 
25
23
  attr_accessor :to
26
24
 
25
+ attr_accessor :created_at
26
+
27
27
  # Attribute mapping from ruby-style variable name to JSON key.
28
28
  def self.attribute_map
29
29
  {
30
30
  :'id' => :'id',
31
31
  :'from' => :'from',
32
- :'created_at' => :'createdAt',
33
32
  :'subject' => :'subject',
34
- :'to' => :'to'
33
+ :'to' => :'to',
34
+ :'created_at' => :'createdAt'
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',
44
43
  :'subject' => :'String',
45
- :'to' => :'Array<String>'
44
+ :'to' => :'Array<String>',
45
+ :'created_at' => :'DateTime'
46
46
  }
47
47
  end
48
48
 
@@ -75,10 +75,6 @@ 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
-
82
78
  if attributes.key?(:'subject')
83
79
  self.subject = attributes[:'subject']
84
80
  end
@@ -88,6 +84,10 @@ module MailSlurpClient
88
84
  self.to = value
89
85
  end
90
86
  end
87
+
88
+ if attributes.key?(:'created_at')
89
+ self.created_at = attributes[:'created_at']
90
+ end
91
91
  end
92
92
 
93
93
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -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 &&
124
123
  subject == o.subject &&
125
- to == o.to
124
+ to == o.to &&
125
+ created_at == o.created_at
126
126
  end
127
127
 
128
128
  # @see the `==` method
@@ -134,7 +134,7 @@ module MailSlurpClient
134
134
  # Calculates hash code according to all attributes.
135
135
  # @return [Integer] Hash code
136
136
  def hash
137
- [id, from, created_at, subject, to].hash
137
+ [id, from, subject, to, created_at].hash
138
138
  end
139
139
 
140
140
  # Builds the object from hash
@@ -19,14 +19,14 @@ module MailSlurpClient
19
19
 
20
20
  attr_accessor :id
21
21
 
22
- attr_accessor :created_at
23
-
24
22
  attr_accessor :url
25
23
 
26
24
  attr_accessor :inbox_id
27
25
 
28
26
  attr_accessor :event_name
29
27
 
28
+ attr_accessor :created_at
29
+
30
30
  attr_accessor :updated_at
31
31
 
32
32
  class EnumAttributeValidator
@@ -56,10 +56,10 @@ module MailSlurpClient
56
56
  {
57
57
  :'name' => :'name',
58
58
  :'id' => :'id',
59
- :'created_at' => :'createdAt',
60
59
  :'url' => :'url',
61
60
  :'inbox_id' => :'inboxId',
62
61
  :'event_name' => :'eventName',
62
+ :'created_at' => :'createdAt',
63
63
  :'updated_at' => :'updatedAt'
64
64
  }
65
65
  end
@@ -69,10 +69,10 @@ module MailSlurpClient
69
69
  {
70
70
  :'name' => :'String',
71
71
  :'id' => :'String',
72
- :'created_at' => :'DateTime',
73
72
  :'url' => :'String',
74
73
  :'inbox_id' => :'String',
75
74
  :'event_name' => :'String',
75
+ :'created_at' => :'DateTime',
76
76
  :'updated_at' => :'DateTime'
77
77
  }
78
78
  end
@@ -106,10 +106,6 @@ module MailSlurpClient
106
106
  self.id = attributes[:'id']
107
107
  end
108
108
 
109
- if attributes.key?(:'created_at')
110
- self.created_at = attributes[:'created_at']
111
- end
112
-
113
109
  if attributes.key?(:'url')
114
110
  self.url = attributes[:'url']
115
111
  end
@@ -122,6 +118,10 @@ module MailSlurpClient
122
118
  self.event_name = attributes[:'event_name']
123
119
  end
124
120
 
121
+ if attributes.key?(:'created_at')
122
+ self.created_at = attributes[:'created_at']
123
+ end
124
+
125
125
  if attributes.key?(:'updated_at')
126
126
  self.updated_at = attributes[:'updated_at']
127
127
  end
@@ -135,10 +135,6 @@ module MailSlurpClient
135
135
  invalid_properties.push('invalid value for "id", id cannot be nil.')
136
136
  end
137
137
 
138
- if @created_at.nil?
139
- invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
140
- end
141
-
142
138
  if @url.nil?
143
139
  invalid_properties.push('invalid value for "url", url cannot be nil.')
144
140
  end
@@ -147,6 +143,10 @@ module MailSlurpClient
147
143
  invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
148
144
  end
149
145
 
146
+ if @created_at.nil?
147
+ invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
148
+ end
149
+
150
150
  if @updated_at.nil?
151
151
  invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
152
152
  end
@@ -158,11 +158,11 @@ module MailSlurpClient
158
158
  # @return true if the model is valid
159
159
  def valid?
160
160
  return false if @id.nil?
161
- return false if @created_at.nil?
162
161
  return false if @url.nil?
163
162
  return false if @inbox_id.nil?
164
163
  event_name_validator = EnumAttributeValidator.new('String', ["EMAIL_RECEIVED", "NEW_EMAIL", "NEW_CONTACT", "NEW_ATTACHMENT", "EMAIL_OPENED", "EMAIL_READ"])
165
164
  return false unless event_name_validator.valid?(@event_name)
165
+ return false if @created_at.nil?
166
166
  return false if @updated_at.nil?
167
167
  true
168
168
  end
@@ -184,10 +184,10 @@ module MailSlurpClient
184
184
  self.class == o.class &&
185
185
  name == o.name &&
186
186
  id == o.id &&
187
- created_at == o.created_at &&
188
187
  url == o.url &&
189
188
  inbox_id == o.inbox_id &&
190
189
  event_name == o.event_name &&
190
+ created_at == o.created_at &&
191
191
  updated_at == o.updated_at
192
192
  end
193
193
 
@@ -200,7 +200,7 @@ module MailSlurpClient
200
200
  # Calculates hash code according to all attributes.
201
201
  # @return [Integer] Hash code
202
202
  def hash
203
- [name, id, created_at, url, inbox_id, event_name, updated_at].hash
203
+ [name, id, url, inbox_id, event_name, created_at, updated_at].hash
204
204
  end
205
205
 
206
206
  # Builds the object from hash
@@ -11,5 +11,5 @@ OpenAPI Generator version: 4.3.1
11
11
  =end
12
12
 
13
13
  module MailSlurpClient
14
- VERSION = '15.1.4'
14
+ VERSION = '15.2.4'
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.1.4
4
+ version: 15.2.4
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-11 00:00:00.000000000 Z
11
+ date: 2022-01-15 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.