mailslurp_client 13.1.0 → 14.0.0

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.
@@ -15,12 +15,18 @@ require 'date'
15
15
  module MailSlurpClient
16
16
  # Conditions that a `waitForXEmails` endpoint operates on. The methods wait until given conditions are met or a timeout is reached. If the conditions are met without needing to wait the results will be returned immediately. Can include `unreadOnly` to ignore already read emails that were returned in an API call or viewing in the dashboard. Can also include matches for emails containing `from`, `subject`, `hasAttachments` etc.
17
17
  class WaitForConditions
18
+ # ISO Date Time latest time of email to consider. Filter for matching emails that were received before this date
19
+ attr_accessor :before
20
+
18
21
  # Number of results that should match conditions. Either exactly or at least this amount based on the `countType`. If count condition is not met and the timeout has not been reached the `waitFor` method will retry the operation.
19
22
  attr_accessor :count
20
23
 
21
24
  # How should the found count be compared to the expected count.
22
25
  attr_accessor :count_type
23
26
 
27
+ # Max time in milliseconds to wait between retries if a `timeout` is specified.
28
+ attr_accessor :delay_timeout
29
+
24
30
  # ID of inbox to search within and apply conditions to. Essentially filtering the emails found to give a count.
25
31
  attr_accessor :inbox_id
26
32
 
@@ -64,8 +70,10 @@ module MailSlurpClient
64
70
  # Attribute mapping from ruby-style variable name to JSON key.
65
71
  def self.attribute_map
66
72
  {
73
+ :'before' => :'before',
67
74
  :'count' => :'count',
68
75
  :'count_type' => :'countType',
76
+ :'delay_timeout' => :'delayTimeout',
69
77
  :'inbox_id' => :'inboxId',
70
78
  :'matches' => :'matches',
71
79
  :'since' => :'since',
@@ -78,8 +86,10 @@ module MailSlurpClient
78
86
  # Attribute type mapping.
79
87
  def self.openapi_types
80
88
  {
89
+ :'before' => :'DateTime',
81
90
  :'count' => :'Integer',
82
91
  :'count_type' => :'String',
92
+ :'delay_timeout' => :'Integer',
83
93
  :'inbox_id' => :'String',
84
94
  :'matches' => :'Array<MatchOption>',
85
95
  :'since' => :'DateTime',
@@ -110,6 +120,10 @@ module MailSlurpClient
110
120
  h[k.to_sym] = v
111
121
  }
112
122
 
123
+ if attributes.key?(:'before')
124
+ self.before = attributes[:'before']
125
+ end
126
+
113
127
  if attributes.key?(:'count')
114
128
  self.count = attributes[:'count']
115
129
  end
@@ -118,6 +132,10 @@ module MailSlurpClient
118
132
  self.count_type = attributes[:'count_type']
119
133
  end
120
134
 
135
+ if attributes.key?(:'delay_timeout')
136
+ self.delay_timeout = attributes[:'delay_timeout']
137
+ end
138
+
121
139
  if attributes.key?(:'inbox_id')
122
140
  self.inbox_id = attributes[:'inbox_id']
123
141
  end
@@ -149,10 +167,6 @@ module MailSlurpClient
149
167
  # @return Array for valid properties with the reasons
150
168
  def list_invalid_properties
151
169
  invalid_properties = Array.new
152
- if @count.nil?
153
- invalid_properties.push('invalid value for "count", count cannot be nil.')
154
- end
155
-
156
170
  if @inbox_id.nil?
157
171
  invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
158
172
  end
@@ -167,7 +181,6 @@ module MailSlurpClient
167
181
  # Check to see if the all the properties in the model are valid
168
182
  # @return true if the model is valid
169
183
  def valid?
170
- return false if @count.nil?
171
184
  count_type_validator = EnumAttributeValidator.new('String', ["EXACTLY", "ATLEAST"])
172
185
  return false unless count_type_validator.valid?(@count_type)
173
186
  return false if @inbox_id.nil?
@@ -202,8 +215,10 @@ module MailSlurpClient
202
215
  def ==(o)
203
216
  return true if self.equal?(o)
204
217
  self.class == o.class &&
218
+ before == o.before &&
205
219
  count == o.count &&
206
220
  count_type == o.count_type &&
221
+ delay_timeout == o.delay_timeout &&
207
222
  inbox_id == o.inbox_id &&
208
223
  matches == o.matches &&
209
224
  since == o.since &&
@@ -221,7 +236,7 @@ module MailSlurpClient
221
236
  # Calculates hash code according to all attributes.
222
237
  # @return [Integer] Hash code
223
238
  def hash
224
- [count, count_type, inbox_id, matches, since, sort_direction, timeout, unread_only].hash
239
+ [before, count, count_type, delay_timeout, inbox_id, matches, since, sort_direction, timeout, unread_only].hash
225
240
  end
226
241
 
227
242
  # Builds the object from hash
@@ -35,7 +35,7 @@ module MailSlurpClient
35
35
  # Name of the webhook
36
36
  attr_accessor :name
37
37
 
38
- # JSON Schema for the payload that will be sent to your URL via the HTTP method described.
38
+ # Deprecated. Fetch JSON Schema for webhook using the getJsonSchemaForWebhookPayload method
39
39
  attr_accessor :payload_json_schema
40
40
 
41
41
  attr_accessor :updated_at
@@ -11,5 +11,5 @@ OpenAPI Generator version: 4.3.1
11
11
  =end
12
12
 
13
13
  module MailSlurpClient
14
- VERSION = '13.1.0'
14
+ VERSION = '14.0.0'
15
15
  end
@@ -81,6 +81,7 @@ require 'mailslurp_client/models/inbox_projection'
81
81
  require 'mailslurp_client/models/inbox_ruleset_dto'
82
82
  require 'mailslurp_client/models/inbox_ruleset_test_options'
83
83
  require 'mailslurp_client/models/inbox_ruleset_test_result'
84
+ require 'mailslurp_client/models/json_schema_dto'
84
85
  require 'mailslurp_client/models/match_option'
85
86
  require 'mailslurp_client/models/match_options'
86
87
  require 'mailslurp_client/models/missed_email'
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: 13.1.0
4
+ version: 14.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - mailslurp
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-08-31 00:00:00.000000000 Z
11
+ date: 2021-09-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.
@@ -112,6 +112,7 @@ files:
112
112
  - lib/mailslurp_client/models/inbox_ruleset_test_options.rb
113
113
  - lib/mailslurp_client/models/inbox_ruleset_test_result.rb
114
114
  - lib/mailslurp_client/models/ip_address_result.rb
115
+ - lib/mailslurp_client/models/json_schema_dto.rb
115
116
  - lib/mailslurp_client/models/match_option.rb
116
117
  - lib/mailslurp_client/models/match_options.rb
117
118
  - lib/mailslurp_client/models/missed_email.rb