mailslurp_client 15.19.9 → 15.19.10

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: '07490dc21c90253a0d0cc02008952950ce2f58facd510136ef990fd2323abbe1'
4
- data.tar.gz: cbcaf4525319b657b76ef5ef6d09107a2f7ebaa1ab819d4496a972bd4356780a
3
+ metadata.gz: 523e61e93eb1ed4ccf11a16f87620bb665869c89890ca7148a5abc8b216143a7
4
+ data.tar.gz: 9ffbe9fa9e2744164d1f16cab550eba1db7204c6d594090a1e865b66943e1ef8
5
5
  SHA512:
6
- metadata.gz: e128649f733114fc22d73d8bcdd7cdc808567a11d6579fd28ac2a9c4ceeeaef8eb8ce67d0a5d738b009e38c801a2b19dbc9dff17e05be076e3d27fa6e79a204c
7
- data.tar.gz: 7cbf8d9e306c049fc87c456509fe902265ad4ade6d0cb8eec894dce9636ee9194c17ea6dacc8b80e151d12e058a34f3be89373cd244aa7b4f18096b0d95264e0
6
+ metadata.gz: d1927f0e40b9263e964385f1a01bb0a515595532070463d0a3016aca8f2736347d47b7abd5075bf5acd0d7cd8da33d3b3abd575de95ce1dedfe9243d08c17c07
7
+ data.tar.gz: b61e9b0ad530d94580e501d0d05336fbbbfd67dc9ccb9ffbf2fec1aee7749effa93e8b5a305f036220913deed6b5cee16f5d501c74d01ae291675df146cdac63
@@ -96,10 +96,10 @@ module MailSlurpClient
96
96
  # A list of detected multipart mime message body part content types such as text/plain and text/html. Can be used with email bodyPart endpoints to fetch individual body parts.
97
97
  attr_accessor :body_part_content_types
98
98
 
99
- attr_accessor :html
100
-
101
99
  attr_accessor :xamp_html
102
100
 
101
+ attr_accessor :html
102
+
103
103
  # Attribute mapping from ruby-style variable name to JSON key.
104
104
  def self.attribute_map
105
105
  {
@@ -131,8 +131,8 @@ module MailSlurpClient
131
131
  :'team_access' => :'teamAccess',
132
132
  :'is_x_amp_html' => :'isXAmpHtml',
133
133
  :'body_part_content_types' => :'bodyPartContentTypes',
134
- :'html' => :'html',
135
- :'xamp_html' => :'xampHtml'
134
+ :'xamp_html' => :'xampHtml',
135
+ :'html' => :'html'
136
136
  }
137
137
  end
138
138
 
@@ -167,8 +167,8 @@ module MailSlurpClient
167
167
  :'team_access' => :'Boolean',
168
168
  :'is_x_amp_html' => :'Boolean',
169
169
  :'body_part_content_types' => :'Array<String>',
170
- :'html' => :'Boolean',
171
- :'xamp_html' => :'Boolean'
170
+ :'xamp_html' => :'Boolean',
171
+ :'html' => :'Boolean'
172
172
  }
173
173
  end
174
174
 
@@ -339,13 +339,13 @@ module MailSlurpClient
339
339
  end
340
340
  end
341
341
 
342
- if attributes.key?(:'html')
343
- self.html = attributes[:'html']
344
- end
345
-
346
342
  if attributes.key?(:'xamp_html')
347
343
  self.xamp_html = attributes[:'xamp_html']
348
344
  end
345
+
346
+ if attributes.key?(:'html')
347
+ self.html = attributes[:'html']
348
+ end
349
349
  end
350
350
 
351
351
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -434,8 +434,8 @@ module MailSlurpClient
434
434
  team_access == o.team_access &&
435
435
  is_x_amp_html == o.is_x_amp_html &&
436
436
  body_part_content_types == o.body_part_content_types &&
437
- html == o.html &&
438
- xamp_html == o.xamp_html
437
+ xamp_html == o.xamp_html &&
438
+ html == o.html
439
439
  end
440
440
 
441
441
  # @see the `==` method
@@ -447,7 +447,7 @@ module MailSlurpClient
447
447
  # Calculates hash code according to all attributes.
448
448
  # @return [Integer] Hash code
449
449
  def hash
450
- [id, user_id, inbox_id, domain_id, to, from, sender, recipients, reply_to, cc, bcc, headers, headers_map, attachments, subject, body, body_excerpt, text_excerpt, body_md5_hash, is_html, charset, analysis, created_at, updated_at, read, team_access, is_x_amp_html, body_part_content_types, html, xamp_html].hash
450
+ [id, user_id, inbox_id, domain_id, to, from, sender, recipients, reply_to, cc, bcc, headers, headers_map, attachments, subject, body, body_excerpt, text_excerpt, body_md5_hash, is_html, charset, analysis, created_at, updated_at, read, team_access, is_x_amp_html, body_part_content_types, xamp_html, html].hash
451
451
  end
452
452
 
453
453
  # Builds the object from hash
@@ -22,28 +22,6 @@ module MailSlurpClient
22
22
 
23
23
  attr_accessor :seq_set
24
24
 
25
- class EnumAttributeValidator
26
- attr_reader :datatype
27
- attr_reader :allowable_values
28
-
29
- def initialize(datatype, allowable_values)
30
- @allowable_values = allowable_values.map do |value|
31
- case datatype.to_s
32
- when /Integer/i
33
- value.to_i
34
- when /Float/i
35
- value.to_f
36
- else
37
- value
38
- end
39
- end
40
- end
41
-
42
- def valid?(value)
43
- !value || allowable_values.include?(value)
44
- end
45
- end
46
-
47
25
  # Attribute mapping from ruby-style variable name to JSON key.
48
26
  def self.attribute_map
49
27
  {
@@ -122,21 +100,9 @@ module MailSlurpClient
122
100
  # @return true if the model is valid
123
101
  def valid?
124
102
  return false if @operation.nil?
125
- operation_validator = EnumAttributeValidator.new('String', ["FLAGS", "+FLAGS", "-FLAGS"])
126
- return false unless operation_validator.valid?(@operation)
127
103
  true
128
104
  end
129
105
 
130
- # Custom attribute writer method checking allowed values (enum).
131
- # @param [Object] operation Object to be assigned
132
- def operation=(operation)
133
- validator = EnumAttributeValidator.new('String', ["FLAGS", "+FLAGS", "-FLAGS"])
134
- unless validator.valid?(operation)
135
- fail ArgumentError, "invalid value for \"operation\", must be one of #{validator.allowable_values}."
136
- end
137
- @operation = operation
138
- end
139
-
140
106
  # Checks equality by comparing each attribute.
141
107
  # @param [Object] Object to be compared
142
108
  def ==(o)
@@ -15,8 +15,6 @@ require 'date'
15
15
  module MailSlurpClient
16
16
  # Inbox replier event
17
17
  class InboxReplierEventProjection
18
- attr_accessor :replier_id
19
-
20
18
  attr_accessor :recipients
21
19
 
22
20
  attr_accessor :email_id
@@ -27,6 +25,8 @@ module MailSlurpClient
27
25
 
28
26
  attr_accessor :sent_id
29
27
 
28
+ attr_accessor :replier_id
29
+
30
30
  attr_accessor :created_at
31
31
 
32
32
  attr_accessor :message
@@ -60,12 +60,12 @@ module MailSlurpClient
60
60
  # Attribute mapping from ruby-style variable name to JSON key.
61
61
  def self.attribute_map
62
62
  {
63
- :'replier_id' => :'replierId',
64
63
  :'recipients' => :'recipients',
65
64
  :'email_id' => :'emailId',
66
65
  :'inbox_id' => :'inboxId',
67
66
  :'user_id' => :'userId',
68
67
  :'sent_id' => :'sentId',
68
+ :'replier_id' => :'replierId',
69
69
  :'created_at' => :'createdAt',
70
70
  :'message' => :'message',
71
71
  :'id' => :'id',
@@ -76,12 +76,12 @@ module MailSlurpClient
76
76
  # Attribute type mapping.
77
77
  def self.openapi_types
78
78
  {
79
- :'replier_id' => :'String',
80
79
  :'recipients' => :'Array<String>',
81
80
  :'email_id' => :'String',
82
81
  :'inbox_id' => :'String',
83
82
  :'user_id' => :'String',
84
83
  :'sent_id' => :'String',
84
+ :'replier_id' => :'String',
85
85
  :'created_at' => :'DateTime',
86
86
  :'message' => :'String',
87
87
  :'id' => :'String',
@@ -92,12 +92,12 @@ module MailSlurpClient
92
92
  # List of attributes with nullable: true
93
93
  def self.openapi_nullable
94
94
  Set.new([
95
- :'replier_id',
96
95
  :'recipients',
97
96
  :'email_id',
98
97
  :'inbox_id',
99
98
  :'user_id',
100
99
  :'sent_id',
100
+ :'replier_id',
101
101
  :'message',
102
102
  :'id',
103
103
  :'status'
@@ -119,10 +119,6 @@ module MailSlurpClient
119
119
  h[k.to_sym] = v
120
120
  }
121
121
 
122
- if attributes.key?(:'replier_id')
123
- self.replier_id = attributes[:'replier_id']
124
- end
125
-
126
122
  if attributes.key?(:'recipients')
127
123
  if (value = attributes[:'recipients']).is_a?(Array)
128
124
  self.recipients = value
@@ -145,6 +141,10 @@ module MailSlurpClient
145
141
  self.sent_id = attributes[:'sent_id']
146
142
  end
147
143
 
144
+ if attributes.key?(:'replier_id')
145
+ self.replier_id = attributes[:'replier_id']
146
+ end
147
+
148
148
  if attributes.key?(:'created_at')
149
149
  self.created_at = attributes[:'created_at']
150
150
  end
@@ -197,12 +197,12 @@ module MailSlurpClient
197
197
  def ==(o)
198
198
  return true if self.equal?(o)
199
199
  self.class == o.class &&
200
- replier_id == o.replier_id &&
201
200
  recipients == o.recipients &&
202
201
  email_id == o.email_id &&
203
202
  inbox_id == o.inbox_id &&
204
203
  user_id == o.user_id &&
205
204
  sent_id == o.sent_id &&
205
+ replier_id == o.replier_id &&
206
206
  created_at == o.created_at &&
207
207
  message == o.message &&
208
208
  id == o.id &&
@@ -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
- [replier_id, recipients, email_id, inbox_id, user_id, sent_id, created_at, message, id, status].hash
221
+ [recipients, email_id, inbox_id, user_id, sent_id, replier_id, created_at, message, id, status].hash
222
222
  end
223
223
 
224
224
  # Builds the object from hash
@@ -16,10 +16,6 @@ module MailSlurpClient
16
16
  class SentEmailProjection
17
17
  attr_accessor :id
18
18
 
19
- attr_accessor :user_id
20
-
21
- attr_accessor :body_md5_hash
22
-
23
19
  attr_accessor :from
24
20
 
25
21
  attr_accessor :subject
@@ -28,6 +24,8 @@ module MailSlurpClient
28
24
 
29
25
  attr_accessor :inbox_id
30
26
 
27
+ attr_accessor :user_id
28
+
31
29
  attr_accessor :to
32
30
 
33
31
  attr_accessor :bcc
@@ -36,22 +34,24 @@ module MailSlurpClient
36
34
 
37
35
  attr_accessor :created_at
38
36
 
37
+ attr_accessor :body_md5_hash
38
+
39
39
  attr_accessor :virtual_send
40
40
 
41
41
  # Attribute mapping from ruby-style variable name to JSON key.
42
42
  def self.attribute_map
43
43
  {
44
44
  :'id' => :'id',
45
- :'user_id' => :'userId',
46
- :'body_md5_hash' => :'bodyMD5Hash',
47
45
  :'from' => :'from',
48
46
  :'subject' => :'subject',
49
47
  :'attachments' => :'attachments',
50
48
  :'inbox_id' => :'inboxId',
49
+ :'user_id' => :'userId',
51
50
  :'to' => :'to',
52
51
  :'bcc' => :'bcc',
53
52
  :'cc' => :'cc',
54
53
  :'created_at' => :'createdAt',
54
+ :'body_md5_hash' => :'bodyMD5Hash',
55
55
  :'virtual_send' => :'virtualSend'
56
56
  }
57
57
  end
@@ -60,16 +60,16 @@ module MailSlurpClient
60
60
  def self.openapi_types
61
61
  {
62
62
  :'id' => :'String',
63
- :'user_id' => :'String',
64
- :'body_md5_hash' => :'String',
65
63
  :'from' => :'String',
66
64
  :'subject' => :'String',
67
65
  :'attachments' => :'Array<String>',
68
66
  :'inbox_id' => :'String',
67
+ :'user_id' => :'String',
69
68
  :'to' => :'Array<String>',
70
69
  :'bcc' => :'Array<String>',
71
70
  :'cc' => :'Array<String>',
72
71
  :'created_at' => :'DateTime',
72
+ :'body_md5_hash' => :'String',
73
73
  :'virtual_send' => :'Boolean'
74
74
  }
75
75
  end
@@ -99,14 +99,6 @@ module MailSlurpClient
99
99
  self.id = attributes[:'id']
100
100
  end
101
101
 
102
- if attributes.key?(:'user_id')
103
- self.user_id = attributes[:'user_id']
104
- end
105
-
106
- if attributes.key?(:'body_md5_hash')
107
- self.body_md5_hash = attributes[:'body_md5_hash']
108
- end
109
-
110
102
  if attributes.key?(:'from')
111
103
  self.from = attributes[:'from']
112
104
  end
@@ -125,6 +117,10 @@ module MailSlurpClient
125
117
  self.inbox_id = attributes[:'inbox_id']
126
118
  end
127
119
 
120
+ if attributes.key?(:'user_id')
121
+ self.user_id = attributes[:'user_id']
122
+ end
123
+
128
124
  if attributes.key?(:'to')
129
125
  if (value = attributes[:'to']).is_a?(Array)
130
126
  self.to = value
@@ -147,6 +143,10 @@ module MailSlurpClient
147
143
  self.created_at = attributes[:'created_at']
148
144
  end
149
145
 
146
+ if attributes.key?(:'body_md5_hash')
147
+ self.body_md5_hash = attributes[:'body_md5_hash']
148
+ end
149
+
150
150
  if attributes.key?(:'virtual_send')
151
151
  self.virtual_send = attributes[:'virtual_send']
152
152
  end
@@ -160,10 +160,6 @@ module MailSlurpClient
160
160
  invalid_properties.push('invalid value for "id", id cannot be nil.')
161
161
  end
162
162
 
163
- if @user_id.nil?
164
- invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
165
- end
166
-
167
163
  if @attachments.nil?
168
164
  invalid_properties.push('invalid value for "attachments", attachments cannot be nil.')
169
165
  end
@@ -172,6 +168,10 @@ module MailSlurpClient
172
168
  invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
173
169
  end
174
170
 
171
+ if @user_id.nil?
172
+ invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
173
+ end
174
+
175
175
  if @to.nil?
176
176
  invalid_properties.push('invalid value for "to", to cannot be nil.')
177
177
  end
@@ -199,9 +199,9 @@ module MailSlurpClient
199
199
  # @return true if the model is valid
200
200
  def valid?
201
201
  return false if @id.nil?
202
- return false if @user_id.nil?
203
202
  return false if @attachments.nil?
204
203
  return false if @inbox_id.nil?
204
+ return false if @user_id.nil?
205
205
  return false if @to.nil?
206
206
  return false if @bcc.nil?
207
207
  return false if @cc.nil?
@@ -216,16 +216,16 @@ module MailSlurpClient
216
216
  return true if self.equal?(o)
217
217
  self.class == o.class &&
218
218
  id == o.id &&
219
- user_id == o.user_id &&
220
- body_md5_hash == o.body_md5_hash &&
221
219
  from == o.from &&
222
220
  subject == o.subject &&
223
221
  attachments == o.attachments &&
224
222
  inbox_id == o.inbox_id &&
223
+ user_id == o.user_id &&
225
224
  to == o.to &&
226
225
  bcc == o.bcc &&
227
226
  cc == o.cc &&
228
227
  created_at == o.created_at &&
228
+ body_md5_hash == o.body_md5_hash &&
229
229
  virtual_send == o.virtual_send
230
230
  end
231
231
 
@@ -238,7 +238,7 @@ module MailSlurpClient
238
238
  # Calculates hash code according to all attributes.
239
239
  # @return [Integer] Hash code
240
240
  def hash
241
- [id, user_id, body_md5_hash, from, subject, attachments, inbox_id, to, bcc, cc, created_at, virtual_send].hash
241
+ [id, from, subject, attachments, inbox_id, user_id, to, bcc, cc, created_at, body_md5_hash, virtual_send].hash
242
242
  end
243
243
 
244
244
  # 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.19.9'
14
+ VERSION = '15.19.10'
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.19.9
4
+ version: 15.19.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - mailslurp
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-04-29 00:00:00.000000000 Z
11
+ date: 2024-04-30 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/ruby/ for full Ruby documentation. Get