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.
@@ -19,14 +19,14 @@ module MailSlurpClient
19
19
 
20
20
  attr_accessor :id
21
21
 
22
+ attr_accessor :created_at
23
+
22
24
  attr_accessor :url
23
25
 
24
26
  attr_accessor :inbox_id
25
27
 
26
28
  attr_accessor :event_name
27
29
 
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',
59
60
  :'url' => :'url',
60
61
  :'inbox_id' => :'inboxId',
61
62
  :'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',
72
73
  :'url' => :'String',
73
74
  :'inbox_id' => :'String',
74
75
  :'event_name' => :'String',
75
- :'created_at' => :'DateTime',
76
76
  :'updated_at' => :'DateTime'
77
77
  }
78
78
  end
@@ -106,6 +106,10 @@ 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
+
109
113
  if attributes.key?(:'url')
110
114
  self.url = attributes[:'url']
111
115
  end
@@ -118,10 +122,6 @@ module MailSlurpClient
118
122
  self.event_name = attributes[:'event_name']
119
123
  end
120
124
 
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,6 +135,10 @@ 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
+
138
142
  if @url.nil?
139
143
  invalid_properties.push('invalid value for "url", url cannot be nil.')
140
144
  end
@@ -143,10 +147,6 @@ module MailSlurpClient
143
147
  invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
144
148
  end
145
149
 
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?
161
162
  return false if @url.nil?
162
163
  return false if @inbox_id.nil?
163
164
  event_name_validator = EnumAttributeValidator.new('String', ["EMAIL_RECEIVED", "NEW_EMAIL", "NEW_CONTACT", "NEW_ATTACHMENT", "EMAIL_OPENED", "EMAIL_READ"])
164
165
  return false unless event_name_validator.valid?(@event_name)
165
- return false if @created_at.nil?
166
166
  return false if @updated_at.nil?
167
167
  true
168
168
  end
@@ -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 &&
187
188
  url == o.url &&
188
189
  inbox_id == o.inbox_id &&
189
190
  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, url, inbox_id, event_name, created_at, updated_at].hash
203
+ [name, id, created_at, url, inbox_id, event_name, updated_at].hash
204
204
  end
205
205
 
206
206
  # Builds the object from hash
@@ -11,5 +11,5 @@ OpenAPI Generator version: 4.3.1
11
11
  =end
12
12
 
13
13
  module MailSlurpClient
14
- VERSION = '15.1.3'
14
+ VERSION = '15.1.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.3
4
+ version: 15.1.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-08 00:00:00.000000000 Z
11
+ date: 2022-01-11 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.