mailslurp_client 12.7.0 → 12.7.1

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: 8d907fe29af9707e86cda64ddeb8374eda666440f3bb1e22e3d198393659bf00
4
- data.tar.gz: 33fb186e151fb3e226050b3c011826cdbb78913dea7535d260e106e1b91fa5dd
3
+ metadata.gz: 1b30658f0733495cbe14304739a5e4d473c9fd1879fe04e77a1de08bebe1ebda
4
+ data.tar.gz: 36cbfd25f86f748c889e165a9f75d2ce4963d1a6321301893cc12a169529d533
5
5
  SHA512:
6
- metadata.gz: 2b6866210153496dd4fc9426b14b64875e12ca827d552dbc99290aaa1a11a1480ab82313704992dcfa27299cc0b8fec934acc71bea734655a347f99881308a49
7
- data.tar.gz: 156ad05851da940c8a3fd122456c99ccc5ecaf611062361e5eb372b632733a1c7aff4641db6011b151ed324070f484369a4d3e616dba9455f502c1601aa021aa
6
+ metadata.gz: a6e6578ddedee45fe6d211f754fcc382d4794e5fff8155c371159a73b685a911bd920def06aac75f36d3520b462dbcf29f26e5dac2c7b2897e340130804989e9
7
+ data.tar.gz: fccc3baccf13a1dc499b99f775110bd1cb40668fd89584f1bd00284ce7f2869bad7976f1b8660ce48b4ec050546b5a3fa7ac601e7eaf124a60b43e490dd9d960
@@ -28,6 +28,8 @@ module MailSlurpClient
28
28
 
29
29
  attr_accessor :seen_at
30
30
 
31
+ attr_accessor :sent_email_id
32
+
31
33
  attr_accessor :user_id
32
34
 
33
35
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -40,6 +42,7 @@ module MailSlurpClient
40
42
  :'recipient' => :'recipient',
41
43
  :'seen' => :'seen',
42
44
  :'seen_at' => :'seenAt',
45
+ :'sent_email_id' => :'sentEmailId',
43
46
  :'user_id' => :'userId'
44
47
  }
45
48
  end
@@ -54,6 +57,7 @@ module MailSlurpClient
54
57
  :'recipient' => :'String',
55
58
  :'seen' => :'Boolean',
56
59
  :'seen_at' => :'DateTime',
60
+ :'sent_email_id' => :'String',
57
61
  :'user_id' => :'String'
58
62
  }
59
63
  end
@@ -107,6 +111,10 @@ module MailSlurpClient
107
111
  self.seen_at = attributes[:'seen_at']
108
112
  end
109
113
 
114
+ if attributes.key?(:'sent_email_id')
115
+ self.sent_email_id = attributes[:'sent_email_id']
116
+ end
117
+
110
118
  if attributes.key?(:'user_id')
111
119
  self.user_id = attributes[:'user_id']
112
120
  end
@@ -157,6 +165,7 @@ module MailSlurpClient
157
165
  recipient == o.recipient &&
158
166
  seen == o.seen &&
159
167
  seen_at == o.seen_at &&
168
+ sent_email_id == o.sent_email_id &&
160
169
  user_id == o.user_id
161
170
  end
162
171
 
@@ -169,7 +178,7 @@ module MailSlurpClient
169
178
  # Calculates hash code according to all attributes.
170
179
  # @return [Integer] Hash code
171
180
  def hash
172
- [created_at, id, inbox_id, name, recipient, seen, seen_at, user_id].hash
181
+ [created_at, id, inbox_id, name, recipient, seen, seen_at, sent_email_id, user_id].hash
173
182
  end
174
183
 
175
184
  # Builds the object from hash
@@ -17,6 +17,8 @@ module MailSlurpClient
17
17
  class WebhookProjection
18
18
  attr_accessor :created_at
19
19
 
20
+ attr_accessor :event_name
21
+
20
22
  attr_accessor :id
21
23
 
22
24
  attr_accessor :inbox_id
@@ -27,10 +29,33 @@ module MailSlurpClient
27
29
 
28
30
  attr_accessor :url
29
31
 
32
+ class EnumAttributeValidator
33
+ attr_reader :datatype
34
+ attr_reader :allowable_values
35
+
36
+ def initialize(datatype, allowable_values)
37
+ @allowable_values = allowable_values.map do |value|
38
+ case datatype.to_s
39
+ when /Integer/i
40
+ value.to_i
41
+ when /Float/i
42
+ value.to_f
43
+ else
44
+ value
45
+ end
46
+ end
47
+ end
48
+
49
+ def valid?(value)
50
+ !value || allowable_values.include?(value)
51
+ end
52
+ end
53
+
30
54
  # Attribute mapping from ruby-style variable name to JSON key.
31
55
  def self.attribute_map
32
56
  {
33
57
  :'created_at' => :'createdAt',
58
+ :'event_name' => :'eventName',
34
59
  :'id' => :'id',
35
60
  :'inbox_id' => :'inboxId',
36
61
  :'name' => :'name',
@@ -43,6 +68,7 @@ module MailSlurpClient
43
68
  def self.openapi_types
44
69
  {
45
70
  :'created_at' => :'DateTime',
71
+ :'event_name' => :'String',
46
72
  :'id' => :'String',
47
73
  :'inbox_id' => :'String',
48
74
  :'name' => :'String',
@@ -76,6 +102,10 @@ module MailSlurpClient
76
102
  self.created_at = attributes[:'created_at']
77
103
  end
78
104
 
105
+ if attributes.key?(:'event_name')
106
+ self.event_name = attributes[:'event_name']
107
+ end
108
+
79
109
  if attributes.key?(:'id')
80
110
  self.id = attributes[:'id']
81
111
  end
@@ -128,6 +158,8 @@ module MailSlurpClient
128
158
  # @return true if the model is valid
129
159
  def valid?
130
160
  return false if @created_at.nil?
161
+ event_name_validator = EnumAttributeValidator.new('String', ["EMAIL_RECEIVED", "NEW_EMAIL", "NEW_CONTACT", "NEW_ATTACHMENT", "EMAIL_OPENED"])
162
+ return false unless event_name_validator.valid?(@event_name)
131
163
  return false if @id.nil?
132
164
  return false if @inbox_id.nil?
133
165
  return false if @updated_at.nil?
@@ -135,12 +167,23 @@ module MailSlurpClient
135
167
  true
136
168
  end
137
169
 
170
+ # Custom attribute writer method checking allowed values (enum).
171
+ # @param [Object] event_name Object to be assigned
172
+ def event_name=(event_name)
173
+ validator = EnumAttributeValidator.new('String', ["EMAIL_RECEIVED", "NEW_EMAIL", "NEW_CONTACT", "NEW_ATTACHMENT", "EMAIL_OPENED"])
174
+ unless validator.valid?(event_name)
175
+ fail ArgumentError, "invalid value for \"event_name\", must be one of #{validator.allowable_values}."
176
+ end
177
+ @event_name = event_name
178
+ end
179
+
138
180
  # Checks equality by comparing each attribute.
139
181
  # @param [Object] Object to be compared
140
182
  def ==(o)
141
183
  return true if self.equal?(o)
142
184
  self.class == o.class &&
143
185
  created_at == o.created_at &&
186
+ event_name == o.event_name &&
144
187
  id == o.id &&
145
188
  inbox_id == o.inbox_id &&
146
189
  name == o.name &&
@@ -157,7 +200,7 @@ module MailSlurpClient
157
200
  # Calculates hash code according to all attributes.
158
201
  # @return [Integer] Hash code
159
202
  def hash
160
- [created_at, id, inbox_id, name, updated_at, url].hash
203
+ [created_at, event_name, id, inbox_id, name, updated_at, url].hash
161
204
  end
162
205
 
163
206
  # Builds the object from hash
@@ -30,6 +30,8 @@ module MailSlurpClient
30
30
 
31
31
  attr_accessor :response_time_millis
32
32
 
33
+ attr_accessor :result_type
34
+
33
35
  attr_accessor :updated_at
34
36
 
35
37
  attr_accessor :user_id
@@ -73,6 +75,7 @@ module MailSlurpClient
73
75
  :'response_body_extract' => :'responseBodyExtract',
74
76
  :'response_status' => :'responseStatus',
75
77
  :'response_time_millis' => :'responseTimeMillis',
78
+ :'result_type' => :'resultType',
76
79
  :'updated_at' => :'updatedAt',
77
80
  :'user_id' => :'userId',
78
81
  :'webhook_event' => :'webhookEvent',
@@ -92,6 +95,7 @@ module MailSlurpClient
92
95
  :'response_body_extract' => :'String',
93
96
  :'response_status' => :'Integer',
94
97
  :'response_time_millis' => :'Integer',
98
+ :'result_type' => :'String',
95
99
  :'updated_at' => :'DateTime',
96
100
  :'user_id' => :'String',
97
101
  :'webhook_event' => :'String',
@@ -153,6 +157,10 @@ module MailSlurpClient
153
157
  self.response_time_millis = attributes[:'response_time_millis']
154
158
  end
155
159
 
160
+ if attributes.key?(:'result_type')
161
+ self.result_type = attributes[:'result_type']
162
+ end
163
+
156
164
  if attributes.key?(:'updated_at')
157
165
  self.updated_at = attributes[:'updated_at']
158
166
  end
@@ -231,6 +239,8 @@ module MailSlurpClient
231
239
  return false if @inbox_id.nil?
232
240
  return false if @message_id.nil?
233
241
  return false if @response_time_millis.nil?
242
+ result_type_validator = EnumAttributeValidator.new('String', ["BAD_RESPONSE", "EXCEPTION", "SUCCESS"])
243
+ return false unless result_type_validator.valid?(@result_type)
234
244
  return false if @updated_at.nil?
235
245
  return false if @user_id.nil?
236
246
  return false if @webhook_event.nil?
@@ -251,6 +261,16 @@ module MailSlurpClient
251
261
  @http_method = http_method
252
262
  end
253
263
 
264
+ # Custom attribute writer method checking allowed values (enum).
265
+ # @param [Object] result_type Object to be assigned
266
+ def result_type=(result_type)
267
+ validator = EnumAttributeValidator.new('String', ["BAD_RESPONSE", "EXCEPTION", "SUCCESS"])
268
+ unless validator.valid?(result_type)
269
+ fail ArgumentError, "invalid value for \"result_type\", must be one of #{validator.allowable_values}."
270
+ end
271
+ @result_type = result_type
272
+ end
273
+
254
274
  # Custom attribute writer method checking allowed values (enum).
255
275
  # @param [Object] webhook_event Object to be assigned
256
276
  def webhook_event=(webhook_event)
@@ -274,6 +294,7 @@ module MailSlurpClient
274
294
  response_body_extract == o.response_body_extract &&
275
295
  response_status == o.response_status &&
276
296
  response_time_millis == o.response_time_millis &&
297
+ result_type == o.result_type &&
277
298
  updated_at == o.updated_at &&
278
299
  user_id == o.user_id &&
279
300
  webhook_event == o.webhook_event &&
@@ -290,7 +311,7 @@ module MailSlurpClient
290
311
  # Calculates hash code according to all attributes.
291
312
  # @return [Integer] Hash code
292
313
  def hash
293
- [created_at, http_method, id, inbox_id, message_id, response_body_extract, response_status, response_time_millis, updated_at, user_id, webhook_event, webhook_id, webhook_url].hash
314
+ [created_at, http_method, id, inbox_id, message_id, response_body_extract, response_status, response_time_millis, result_type, updated_at, user_id, webhook_event, webhook_id, webhook_url].hash
294
315
  end
295
316
 
296
317
  # 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 = '12.7.0'
14
+ VERSION = '12.7.1'
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: 12.7.0
4
+ version: 12.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - mailslurp
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-07-07 00:00:00.000000000 Z
11
+ date: 2021-07-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.