mailslurp_client 15.1.0 → 15.1.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -18,10 +18,10 @@ module MailSlurpClient
18
18
 
19
19
  attr_accessor :from
20
20
 
21
- attr_accessor :subject
22
-
23
21
  attr_accessor :created_at
24
22
 
23
+ attr_accessor :subject
24
+
25
25
  attr_accessor :to
26
26
 
27
27
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -29,8 +29,8 @@ module MailSlurpClient
29
29
  {
30
30
  :'id' => :'id',
31
31
  :'from' => :'from',
32
- :'subject' => :'subject',
33
32
  :'created_at' => :'createdAt',
33
+ :'subject' => :'subject',
34
34
  :'to' => :'to'
35
35
  }
36
36
  end
@@ -40,8 +40,8 @@ module MailSlurpClient
40
40
  {
41
41
  :'id' => :'String',
42
42
  :'from' => :'String',
43
- :'subject' => :'String',
44
43
  :'created_at' => :'DateTime',
44
+ :'subject' => :'String',
45
45
  :'to' => :'Array<String>'
46
46
  }
47
47
  end
@@ -75,14 +75,14 @@ module MailSlurpClient
75
75
  self.from = attributes[:'from']
76
76
  end
77
77
 
78
- if attributes.key?(:'subject')
79
- self.subject = attributes[:'subject']
80
- end
81
-
82
78
  if attributes.key?(:'created_at')
83
79
  self.created_at = attributes[:'created_at']
84
80
  end
85
81
 
82
+ if attributes.key?(:'subject')
83
+ self.subject = attributes[:'subject']
84
+ end
85
+
86
86
  if attributes.key?(:'to')
87
87
  if (value = attributes[:'to']).is_a?(Array)
88
88
  self.to = value
@@ -120,8 +120,8 @@ module MailSlurpClient
120
120
  self.class == o.class &&
121
121
  id == o.id &&
122
122
  from == o.from &&
123
- subject == o.subject &&
124
123
  created_at == o.created_at &&
124
+ subject == o.subject &&
125
125
  to == o.to
126
126
  end
127
127
 
@@ -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, created_at, to].hash
137
+ [id, from, created_at, subject, to].hash
138
138
  end
139
139
 
140
140
  # Builds the object from hash
@@ -19,12 +19,12 @@ 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
- attr_accessor :created_at
27
-
28
28
  attr_accessor :event_name
29
29
 
30
30
  attr_accessor :updated_at
@@ -56,9 +56,9 @@ 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
- :'created_at' => :'createdAt',
62
62
  :'event_name' => :'eventName',
63
63
  :'updated_at' => :'updatedAt'
64
64
  }
@@ -69,9 +69,9 @@ 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
- :'created_at' => :'DateTime',
75
75
  :'event_name' => :'String',
76
76
  :'updated_at' => :'DateTime'
77
77
  }
@@ -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
@@ -114,10 +118,6 @@ module MailSlurpClient
114
118
  self.inbox_id = attributes[:'inbox_id']
115
119
  end
116
120
 
117
- if attributes.key?(:'created_at')
118
- self.created_at = attributes[:'created_at']
119
- end
120
-
121
121
  if attributes.key?(:'event_name')
122
122
  self.event_name = attributes[:'event_name']
123
123
  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,9 +158,9 @@ 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
- return false if @created_at.nil?
164
164
  event_name_validator = EnumAttributeValidator.new('String', ["EMAIL_RECEIVED", "NEW_EMAIL", "NEW_CONTACT", "NEW_ATTACHMENT", "EMAIL_OPENED", "EMAIL_READ"])
165
165
  return false unless event_name_validator.valid?(@event_name)
166
166
  return false if @updated_at.nil?
@@ -184,9 +184,9 @@ 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
- created_at == o.created_at &&
190
190
  event_name == o.event_name &&
191
191
  updated_at == o.updated_at
192
192
  end
@@ -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, created_at, event_name, 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.0'
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.0
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-06 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.