mailslurp_client 16.1.2 → 16.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.
Files changed (83) hide show
  1. checksums.yaml +4 -4
  2. data/lib/mailslurp_client/api/ai_controller_api.rb +813 -6
  3. data/lib/mailslurp_client/models/ai_tranform_create_options.rb +237 -0
  4. data/lib/mailslurp_client/models/ai_transform_dto.rb +251 -0
  5. data/lib/mailslurp_client/models/ai_transform_mapping_dto.rb +310 -0
  6. data/lib/mailslurp_client/models/ai_transform_mapping_projection.rb +352 -0
  7. data/lib/mailslurp_client/models/ai_transform_projection.rb +251 -0
  8. data/lib/mailslurp_client/models/ai_transform_result_dto.rb +353 -0
  9. data/lib/mailslurp_client/models/ai_transform_result_projection.rb +324 -0
  10. data/lib/mailslurp_client/models/alias_projection.rb +15 -15
  11. data/lib/mailslurp_client/models/alias_thread_projection.rb +16 -16
  12. data/lib/mailslurp_client/models/attachment_projection.rb +10 -10
  13. data/lib/mailslurp_client/models/connector_projection.rb +15 -15
  14. data/lib/mailslurp_client/models/create_ai_transformer_mapping_options.rb +338 -0
  15. data/lib/mailslurp_client/models/create_webhook_options.rb +12 -1
  16. data/lib/mailslurp_client/models/email_projection.rb +10 -10
  17. data/lib/mailslurp_client/models/email_thread_projection.rb +36 -36
  18. data/lib/mailslurp_client/models/generate_structured_content_attachment_options.rb +27 -9
  19. data/lib/mailslurp_client/models/generate_structured_content_email_options.rb +19 -11
  20. data/lib/mailslurp_client/models/generate_structured_content_sms_options.rb +244 -0
  21. data/lib/mailslurp_client/models/guest_portal_user_projection.rb +10 -10
  22. data/lib/mailslurp_client/models/inbox_forwarder_event_projection.rb +11 -11
  23. data/lib/mailslurp_client/models/inbox_replier_event_projection.rb +11 -11
  24. data/lib/mailslurp_client/models/page_ai_transform_mapping_projection.rb +309 -0
  25. data/lib/mailslurp_client/models/page_ai_transform_projection.rb +309 -0
  26. data/lib/mailslurp_client/models/page_ai_transform_result_projection.rb +309 -0
  27. data/lib/mailslurp_client/models/page_alias.rb +15 -15
  28. data/lib/mailslurp_client/models/page_alias_thread_projection.rb +15 -15
  29. data/lib/mailslurp_client/models/page_attachment_entity.rb +15 -15
  30. data/lib/mailslurp_client/models/page_bounced_email.rb +15 -15
  31. data/lib/mailslurp_client/models/page_bounced_recipients.rb +15 -15
  32. data/lib/mailslurp_client/models/page_complaint.rb +15 -15
  33. data/lib/mailslurp_client/models/page_connector.rb +15 -15
  34. data/lib/mailslurp_client/models/page_connector_events.rb +15 -15
  35. data/lib/mailslurp_client/models/page_contact_projection.rb +15 -15
  36. data/lib/mailslurp_client/models/page_delivery_status.rb +15 -15
  37. data/lib/mailslurp_client/models/page_email_preview.rb +15 -15
  38. data/lib/mailslurp_client/models/page_email_projection.rb +15 -15
  39. data/lib/mailslurp_client/models/page_email_thread_projection.rb +15 -15
  40. data/lib/mailslurp_client/models/page_email_validation_request.rb +15 -15
  41. data/lib/mailslurp_client/models/page_entity_automation_items.rb +15 -15
  42. data/lib/mailslurp_client/models/page_entity_event_items.rb +15 -15
  43. data/lib/mailslurp_client/models/page_entity_favourite_items.rb +15 -15
  44. data/lib/mailslurp_client/models/page_expired_inbox_record_projection.rb +15 -15
  45. data/lib/mailslurp_client/models/page_group_projection.rb +15 -15
  46. data/lib/mailslurp_client/models/page_guest_portal_users.rb +15 -15
  47. data/lib/mailslurp_client/models/page_inbox_forwarder_dto.rb +15 -15
  48. data/lib/mailslurp_client/models/page_inbox_forwarder_events.rb +15 -15
  49. data/lib/mailslurp_client/models/page_inbox_projection.rb +15 -15
  50. data/lib/mailslurp_client/models/page_inbox_replier_dto.rb +15 -15
  51. data/lib/mailslurp_client/models/page_inbox_replier_events.rb +15 -15
  52. data/lib/mailslurp_client/models/page_inbox_ruleset_dto.rb +15 -15
  53. data/lib/mailslurp_client/models/page_inbox_tags.rb +15 -15
  54. data/lib/mailslurp_client/models/page_list_unsubscribe_recipients.rb +15 -15
  55. data/lib/mailslurp_client/models/page_missed_email_projection.rb +15 -15
  56. data/lib/mailslurp_client/models/page_opt_in_identity_projection.rb +15 -15
  57. data/lib/mailslurp_client/models/page_organization_inbox_projection.rb +15 -15
  58. data/lib/mailslurp_client/models/page_phone_message_thread_item_projection.rb +15 -15
  59. data/lib/mailslurp_client/models/page_phone_message_thread_projection.rb +15 -15
  60. data/lib/mailslurp_client/models/page_phone_number_projection.rb +15 -15
  61. data/lib/mailslurp_client/models/page_plus_address_projection.rb +15 -15
  62. data/lib/mailslurp_client/models/page_reputation_items.rb +15 -15
  63. data/lib/mailslurp_client/models/page_scheduled_jobs.rb +15 -15
  64. data/lib/mailslurp_client/models/page_sent_email_projection.rb +15 -15
  65. data/lib/mailslurp_client/models/page_sent_email_with_queue_projection.rb +15 -15
  66. data/lib/mailslurp_client/models/page_sent_sms_projection.rb +15 -15
  67. data/lib/mailslurp_client/models/page_sms_projection.rb +15 -15
  68. data/lib/mailslurp_client/models/page_template_projection.rb +15 -15
  69. data/lib/mailslurp_client/models/page_tracking_pixel_projection.rb +15 -15
  70. data/lib/mailslurp_client/models/page_unknown_missed_email_projection.rb +15 -15
  71. data/lib/mailslurp_client/models/page_webhook_endpoint_projection.rb +15 -15
  72. data/lib/mailslurp_client/models/page_webhook_projection.rb +15 -15
  73. data/lib/mailslurp_client/models/page_webhook_result.rb +15 -15
  74. data/lib/mailslurp_client/models/plus_address_projection.rb +15 -15
  75. data/lib/mailslurp_client/models/sent_email_projection.rb +15 -15
  76. data/lib/mailslurp_client/models/sort_object.rb +10 -10
  77. data/lib/mailslurp_client/models/{structured_content_result.rb → structured_content_result_dto.rb} +3 -3
  78. data/lib/mailslurp_client/models/tracking_pixel_projection.rb +10 -10
  79. data/lib/mailslurp_client/models/webhook_dto.rb +12 -1
  80. data/lib/mailslurp_client/models/webhook_projection.rb +19 -10
  81. data/lib/mailslurp_client/version.rb +1 -1
  82. data/lib/mailslurp_client.rb +13 -1
  83. metadata +15 -3
@@ -17,12 +17,12 @@ module MailSlurpClient
17
17
  class ConnectorProjection
18
18
  attr_accessor :enabled
19
19
 
20
+ attr_accessor :inbox_id
21
+
20
22
  attr_accessor :user_id
21
23
 
22
24
  attr_accessor :email_address
23
25
 
24
- attr_accessor :inbox_id
25
-
26
26
  attr_accessor :created_at
27
27
 
28
28
  attr_accessor :name
@@ -33,9 +33,9 @@ module MailSlurpClient
33
33
  def self.attribute_map
34
34
  {
35
35
  :'enabled' => :'enabled',
36
+ :'inbox_id' => :'inboxId',
36
37
  :'user_id' => :'userId',
37
38
  :'email_address' => :'emailAddress',
38
- :'inbox_id' => :'inboxId',
39
39
  :'created_at' => :'createdAt',
40
40
  :'name' => :'name',
41
41
  :'id' => :'id'
@@ -46,9 +46,9 @@ module MailSlurpClient
46
46
  def self.openapi_types
47
47
  {
48
48
  :'enabled' => :'Boolean',
49
+ :'inbox_id' => :'String',
49
50
  :'user_id' => :'String',
50
51
  :'email_address' => :'String',
51
- :'inbox_id' => :'String',
52
52
  :'created_at' => :'DateTime',
53
53
  :'name' => :'String',
54
54
  :'id' => :'String'
@@ -80,6 +80,10 @@ module MailSlurpClient
80
80
  self.enabled = attributes[:'enabled']
81
81
  end
82
82
 
83
+ if attributes.key?(:'inbox_id')
84
+ self.inbox_id = attributes[:'inbox_id']
85
+ end
86
+
83
87
  if attributes.key?(:'user_id')
84
88
  self.user_id = attributes[:'user_id']
85
89
  end
@@ -88,10 +92,6 @@ module MailSlurpClient
88
92
  self.email_address = attributes[:'email_address']
89
93
  end
90
94
 
91
- if attributes.key?(:'inbox_id')
92
- self.inbox_id = attributes[:'inbox_id']
93
- end
94
-
95
95
  if attributes.key?(:'created_at')
96
96
  self.created_at = attributes[:'created_at']
97
97
  end
@@ -109,14 +109,14 @@ module MailSlurpClient
109
109
  # @return Array for valid properties with the reasons
110
110
  def list_invalid_properties
111
111
  invalid_properties = Array.new
112
- if @user_id.nil?
113
- invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
114
- end
115
-
116
112
  if @inbox_id.nil?
117
113
  invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
118
114
  end
119
115
 
116
+ if @user_id.nil?
117
+ invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
118
+ end
119
+
120
120
  if @created_at.nil?
121
121
  invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
122
122
  end
@@ -131,8 +131,8 @@ module MailSlurpClient
131
131
  # Check to see if the all the properties in the model are valid
132
132
  # @return true if the model is valid
133
133
  def valid?
134
- return false if @user_id.nil?
135
134
  return false if @inbox_id.nil?
135
+ return false if @user_id.nil?
136
136
  return false if @created_at.nil?
137
137
  return false if @id.nil?
138
138
  true
@@ -144,9 +144,9 @@ module MailSlurpClient
144
144
  return true if self.equal?(o)
145
145
  self.class == o.class &&
146
146
  enabled == o.enabled &&
147
+ inbox_id == o.inbox_id &&
147
148
  user_id == o.user_id &&
148
149
  email_address == o.email_address &&
149
- inbox_id == o.inbox_id &&
150
150
  created_at == o.created_at &&
151
151
  name == o.name &&
152
152
  id == o.id
@@ -161,7 +161,7 @@ module MailSlurpClient
161
161
  # Calculates hash code according to all attributes.
162
162
  # @return [Integer] Hash code
163
163
  def hash
164
- [enabled, user_id, email_address, inbox_id, created_at, name, id].hash
164
+ [enabled, inbox_id, user_id, email_address, created_at, name, id].hash
165
165
  end
166
166
 
167
167
  # Builds the object from hash
@@ -0,0 +1,338 @@
1
+ =begin
2
+ #MailSlurp API
3
+
4
+ #MailSlurp is an API for sending and receiving emails and SMS from dynamically allocated email addresses and phone numbers. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository
5
+
6
+ The version of the OpenAPI document: 6.5.2
7
+ Contact: contact@mailslurp.dev
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 4.3.1
10
+
11
+ =end
12
+
13
+ require 'date'
14
+
15
+ module MailSlurpClient
16
+ class CreateAITransformerMappingOptions
17
+ attr_accessor :name
18
+
19
+ attr_accessor :ai_transform_id
20
+
21
+ attr_accessor :entity_id
22
+
23
+ attr_accessor :entity_type
24
+
25
+ attr_accessor :content_selector
26
+
27
+ attr_accessor :trigger_selector
28
+
29
+ attr_accessor :spread_root_array
30
+
31
+ class EnumAttributeValidator
32
+ attr_reader :datatype
33
+ attr_reader :allowable_values
34
+
35
+ def initialize(datatype, allowable_values)
36
+ @allowable_values = allowable_values.map do |value|
37
+ case datatype.to_s
38
+ when /Integer/i
39
+ value.to_i
40
+ when /Float/i
41
+ value.to_f
42
+ else
43
+ value
44
+ end
45
+ end
46
+ end
47
+
48
+ def valid?(value)
49
+ !value || allowable_values.include?(value)
50
+ end
51
+ end
52
+
53
+ # Attribute mapping from ruby-style variable name to JSON key.
54
+ def self.attribute_map
55
+ {
56
+ :'name' => :'name',
57
+ :'ai_transform_id' => :'aiTransformId',
58
+ :'entity_id' => :'entityId',
59
+ :'entity_type' => :'entityType',
60
+ :'content_selector' => :'contentSelector',
61
+ :'trigger_selector' => :'triggerSelector',
62
+ :'spread_root_array' => :'spreadRootArray'
63
+ }
64
+ end
65
+
66
+ # Attribute type mapping.
67
+ def self.openapi_types
68
+ {
69
+ :'name' => :'String',
70
+ :'ai_transform_id' => :'String',
71
+ :'entity_id' => :'String',
72
+ :'entity_type' => :'String',
73
+ :'content_selector' => :'String',
74
+ :'trigger_selector' => :'String',
75
+ :'spread_root_array' => :'Boolean'
76
+ }
77
+ end
78
+
79
+ # List of attributes with nullable: true
80
+ def self.openapi_nullable
81
+ Set.new([
82
+ ])
83
+ end
84
+
85
+ # Initializes the object
86
+ # @param [Hash] attributes Model attributes in the form of hash
87
+ def initialize(attributes = {})
88
+ if (!attributes.is_a?(Hash))
89
+ fail ArgumentError, "The input argument (attributes) must be a hash in `MailSlurpClient::CreateAITransformerMappingOptions` initialize method"
90
+ end
91
+
92
+ # check to see if the attribute exists and convert string to symbol for hash key
93
+ attributes = attributes.each_with_object({}) { |(k, v), h|
94
+ if (!self.class.attribute_map.key?(k.to_sym))
95
+ fail ArgumentError, "`#{k}` is not a valid attribute in `MailSlurpClient::CreateAITransformerMappingOptions`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
96
+ end
97
+ h[k.to_sym] = v
98
+ }
99
+
100
+ if attributes.key?(:'name')
101
+ self.name = attributes[:'name']
102
+ end
103
+
104
+ if attributes.key?(:'ai_transform_id')
105
+ self.ai_transform_id = attributes[:'ai_transform_id']
106
+ end
107
+
108
+ if attributes.key?(:'entity_id')
109
+ self.entity_id = attributes[:'entity_id']
110
+ end
111
+
112
+ if attributes.key?(:'entity_type')
113
+ self.entity_type = attributes[:'entity_type']
114
+ end
115
+
116
+ if attributes.key?(:'content_selector')
117
+ self.content_selector = attributes[:'content_selector']
118
+ end
119
+
120
+ if attributes.key?(:'trigger_selector')
121
+ self.trigger_selector = attributes[:'trigger_selector']
122
+ end
123
+
124
+ if attributes.key?(:'spread_root_array')
125
+ self.spread_root_array = attributes[:'spread_root_array']
126
+ end
127
+ end
128
+
129
+ # Show invalid properties with the reasons. Usually used together with valid?
130
+ # @return Array for valid properties with the reasons
131
+ def list_invalid_properties
132
+ invalid_properties = Array.new
133
+ if @name.nil?
134
+ invalid_properties.push('invalid value for "name", name cannot be nil.')
135
+ end
136
+
137
+ if @ai_transform_id.nil?
138
+ invalid_properties.push('invalid value for "ai_transform_id", ai_transform_id cannot be nil.')
139
+ end
140
+
141
+ if @entity_id.nil?
142
+ invalid_properties.push('invalid value for "entity_id", entity_id cannot be nil.')
143
+ end
144
+
145
+ if @entity_type.nil?
146
+ invalid_properties.push('invalid value for "entity_type", entity_type cannot be nil.')
147
+ end
148
+
149
+ invalid_properties
150
+ end
151
+
152
+ # Check to see if the all the properties in the model are valid
153
+ # @return true if the model is valid
154
+ def valid?
155
+ return false if @name.nil?
156
+ return false if @ai_transform_id.nil?
157
+ return false if @entity_id.nil?
158
+ return false if @entity_type.nil?
159
+ entity_type_validator = EnumAttributeValidator.new('String', ["INBOX", "PHONE"])
160
+ return false unless entity_type_validator.valid?(@entity_type)
161
+ content_selector_validator = EnumAttributeValidator.new('String', ["RAW", "BODY", "BODY_ATTACHMENTS"])
162
+ return false unless content_selector_validator.valid?(@content_selector)
163
+ trigger_selector_validator = EnumAttributeValidator.new('String', ["PER_MESSAGE", "PER_ATTACHMENT"])
164
+ return false unless trigger_selector_validator.valid?(@trigger_selector)
165
+ true
166
+ end
167
+
168
+ # Custom attribute writer method checking allowed values (enum).
169
+ # @param [Object] entity_type Object to be assigned
170
+ def entity_type=(entity_type)
171
+ validator = EnumAttributeValidator.new('String', ["INBOX", "PHONE"])
172
+ unless validator.valid?(entity_type)
173
+ fail ArgumentError, "invalid value for \"entity_type\", must be one of #{validator.allowable_values}."
174
+ end
175
+ @entity_type = entity_type
176
+ end
177
+
178
+ # Custom attribute writer method checking allowed values (enum).
179
+ # @param [Object] content_selector Object to be assigned
180
+ def content_selector=(content_selector)
181
+ validator = EnumAttributeValidator.new('String', ["RAW", "BODY", "BODY_ATTACHMENTS"])
182
+ unless validator.valid?(content_selector)
183
+ fail ArgumentError, "invalid value for \"content_selector\", must be one of #{validator.allowable_values}."
184
+ end
185
+ @content_selector = content_selector
186
+ end
187
+
188
+ # Custom attribute writer method checking allowed values (enum).
189
+ # @param [Object] trigger_selector Object to be assigned
190
+ def trigger_selector=(trigger_selector)
191
+ validator = EnumAttributeValidator.new('String', ["PER_MESSAGE", "PER_ATTACHMENT"])
192
+ unless validator.valid?(trigger_selector)
193
+ fail ArgumentError, "invalid value for \"trigger_selector\", must be one of #{validator.allowable_values}."
194
+ end
195
+ @trigger_selector = trigger_selector
196
+ end
197
+
198
+ # Checks equality by comparing each attribute.
199
+ # @param [Object] Object to be compared
200
+ def ==(o)
201
+ return true if self.equal?(o)
202
+ self.class == o.class &&
203
+ name == o.name &&
204
+ ai_transform_id == o.ai_transform_id &&
205
+ entity_id == o.entity_id &&
206
+ entity_type == o.entity_type &&
207
+ content_selector == o.content_selector &&
208
+ trigger_selector == o.trigger_selector &&
209
+ spread_root_array == o.spread_root_array
210
+ end
211
+
212
+ # @see the `==` method
213
+ # @param [Object] Object to be compared
214
+ def eql?(o)
215
+ self == o
216
+ end
217
+
218
+ # Calculates hash code according to all attributes.
219
+ # @return [Integer] Hash code
220
+ def hash
221
+ [name, ai_transform_id, entity_id, entity_type, content_selector, trigger_selector, spread_root_array].hash
222
+ end
223
+
224
+ # Builds the object from hash
225
+ # @param [Hash] attributes Model attributes in the form of hash
226
+ # @return [Object] Returns the model itself
227
+ def self.build_from_hash(attributes)
228
+ new.build_from_hash(attributes)
229
+ end
230
+
231
+ # Builds the object from hash
232
+ # @param [Hash] attributes Model attributes in the form of hash
233
+ # @return [Object] Returns the model itself
234
+ def build_from_hash(attributes)
235
+ return nil unless attributes.is_a?(Hash)
236
+ self.class.openapi_types.each_pair do |key, type|
237
+ if type =~ /\AArray<(.*)>/i
238
+ # check to ensure the input is an array given that the attribute
239
+ # is documented as an array but the input is not
240
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
241
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
242
+ end
243
+ elsif !attributes[self.class.attribute_map[key]].nil?
244
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
245
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
246
+ end
247
+
248
+ self
249
+ end
250
+
251
+ # Deserializes the data based on type
252
+ # @param string type Data type
253
+ # @param string value Value to be deserialized
254
+ # @return [Object] Deserialized data
255
+ def _deserialize(type, value)
256
+ case type.to_sym
257
+ when :DateTime
258
+ DateTime.parse(value)
259
+ when :Date
260
+ Date.parse(value)
261
+ when :String
262
+ value.to_s
263
+ when :Integer
264
+ value.to_i
265
+ when :Float
266
+ value.to_f
267
+ when :Boolean
268
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
269
+ true
270
+ else
271
+ false
272
+ end
273
+ when :Object
274
+ # generic object (usually a Hash), return directly
275
+ value
276
+ when /\AArray<(?<inner_type>.+)>\z/
277
+ inner_type = Regexp.last_match[:inner_type]
278
+ value.map { |v| _deserialize(inner_type, v) }
279
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
280
+ k_type = Regexp.last_match[:k_type]
281
+ v_type = Regexp.last_match[:v_type]
282
+ {}.tap do |hash|
283
+ value.each do |k, v|
284
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
285
+ end
286
+ end
287
+ else # model
288
+ MailSlurpClient.const_get(type).build_from_hash(value)
289
+ end
290
+ end
291
+
292
+ # Returns the string representation of the object
293
+ # @return [String] String presentation of the object
294
+ def to_s
295
+ to_hash.to_s
296
+ end
297
+
298
+ # to_body is an alias to to_hash (backward compatibility)
299
+ # @return [Hash] Returns the object in the form of hash
300
+ def to_body
301
+ to_hash
302
+ end
303
+
304
+ # Returns the object in the form of hash
305
+ # @return [Hash] Returns the object in the form of hash
306
+ def to_hash
307
+ hash = {}
308
+ self.class.attribute_map.each_pair do |attr, param|
309
+ value = self.send(attr)
310
+ if value.nil?
311
+ is_nullable = self.class.openapi_nullable.include?(attr)
312
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
313
+ end
314
+
315
+ hash[param] = _to_hash(value)
316
+ end
317
+ hash
318
+ end
319
+
320
+ # Outputs non-array value in the form of hash
321
+ # For object, use to_hash. Otherwise, just return the value
322
+ # @param [Object] value Any valid value
323
+ # @return [Hash] Returns the value in the form of hash
324
+ def _to_hash(value)
325
+ if value.is_a?(Array)
326
+ value.compact.map { |v| _to_hash(v) }
327
+ elsif value.is_a?(Hash)
328
+ {}.tap do |hash|
329
+ value.each { |k, v| hash[k] = _to_hash(v) }
330
+ end
331
+ elsif value.respond_to? :to_hash
332
+ value.to_hash
333
+ else
334
+ value
335
+ end
336
+ end
337
+ end
338
+ end
@@ -31,6 +31,9 @@ module MailSlurpClient
31
31
  # Template for the JSON body of the webhook request that will be sent to your server. Use Moustache style `{{variableName}}` templating to use parts of the standard webhook payload for the given event.
32
32
  attr_accessor :request_body_template
33
33
 
34
+ # AI Transform ID to apply to the webhook event and send a payload matching transform output schema
35
+ attr_accessor :ai_transform_id
36
+
34
37
  # Use static IP range when calling webhook endpoint
35
38
  attr_accessor :use_static_ip_range
36
39
 
@@ -71,6 +74,7 @@ module MailSlurpClient
71
74
  :'event_name' => :'eventName',
72
75
  :'include_headers' => :'includeHeaders',
73
76
  :'request_body_template' => :'requestBodyTemplate',
77
+ :'ai_transform_id' => :'aiTransformId',
74
78
  :'use_static_ip_range' => :'useStaticIpRange',
75
79
  :'ignore_insecure_ssl_certificates' => :'ignoreInsecureSslCertificates',
76
80
  :'tags' => :'tags'
@@ -86,6 +90,7 @@ module MailSlurpClient
86
90
  :'event_name' => :'String',
87
91
  :'include_headers' => :'WebhookHeaders',
88
92
  :'request_body_template' => :'String',
93
+ :'ai_transform_id' => :'String',
89
94
  :'use_static_ip_range' => :'Boolean',
90
95
  :'ignore_insecure_ssl_certificates' => :'Boolean',
91
96
  :'tags' => :'Array<String>'
@@ -99,6 +104,7 @@ module MailSlurpClient
99
104
  :'name',
100
105
  :'event_name',
101
106
  :'request_body_template',
107
+ :'ai_transform_id',
102
108
  :'use_static_ip_range',
103
109
  :'ignore_insecure_ssl_certificates',
104
110
  :'tags'
@@ -144,6 +150,10 @@ module MailSlurpClient
144
150
  self.request_body_template = attributes[:'request_body_template']
145
151
  end
146
152
 
153
+ if attributes.key?(:'ai_transform_id')
154
+ self.ai_transform_id = attributes[:'ai_transform_id']
155
+ end
156
+
147
157
  if attributes.key?(:'use_static_ip_range')
148
158
  self.use_static_ip_range = attributes[:'use_static_ip_range']
149
159
  else
@@ -202,6 +212,7 @@ module MailSlurpClient
202
212
  event_name == o.event_name &&
203
213
  include_headers == o.include_headers &&
204
214
  request_body_template == o.request_body_template &&
215
+ ai_transform_id == o.ai_transform_id &&
205
216
  use_static_ip_range == o.use_static_ip_range &&
206
217
  ignore_insecure_ssl_certificates == o.ignore_insecure_ssl_certificates &&
207
218
  tags == o.tags
@@ -216,7 +227,7 @@ module MailSlurpClient
216
227
  # Calculates hash code according to all attributes.
217
228
  # @return [Integer] Hash code
218
229
  def hash
219
- [url, basic_auth, name, event_name, include_headers, request_body_template, use_static_ip_range, ignore_insecure_ssl_certificates, tags].hash
230
+ [url, basic_auth, name, event_name, include_headers, request_body_template, ai_transform_id, use_static_ip_range, ignore_insecure_ssl_certificates, tags].hash
220
231
  end
221
232
 
222
233
  # Builds the object from hash
@@ -19,10 +19,10 @@ module MailSlurpClient
19
19
 
20
20
  attr_accessor :recipients
21
21
 
22
- attr_accessor :attachments
23
-
24
22
  attr_accessor :inbox_id
25
23
 
24
+ attr_accessor :attachments
25
+
26
26
  attr_accessor :created_at
27
27
 
28
28
  attr_accessor :to
@@ -68,8 +68,8 @@ module MailSlurpClient
68
68
  {
69
69
  :'sender' => :'sender',
70
70
  :'recipients' => :'recipients',
71
- :'attachments' => :'attachments',
72
71
  :'inbox_id' => :'inboxId',
72
+ :'attachments' => :'attachments',
73
73
  :'created_at' => :'createdAt',
74
74
  :'to' => :'to',
75
75
  :'cc' => :'cc',
@@ -98,8 +98,8 @@ module MailSlurpClient
98
98
  {
99
99
  :'sender' => :'Sender',
100
100
  :'recipients' => :'EmailRecipients',
101
- :'attachments' => :'Array<String>',
102
101
  :'inbox_id' => :'String',
102
+ :'attachments' => :'Array<String>',
103
103
  :'created_at' => :'DateTime',
104
104
  :'to' => :'Array<String>',
105
105
  :'cc' => :'Array<String>',
@@ -170,16 +170,16 @@ module MailSlurpClient
170
170
  self.recipients = attributes[:'recipients']
171
171
  end
172
172
 
173
+ if attributes.key?(:'inbox_id')
174
+ self.inbox_id = attributes[:'inbox_id']
175
+ end
176
+
173
177
  if attributes.key?(:'attachments')
174
178
  if (value = attributes[:'attachments']).is_a?(Array)
175
179
  self.attachments = value
176
180
  end
177
181
  end
178
182
 
179
- if attributes.key?(:'inbox_id')
180
- self.inbox_id = attributes[:'inbox_id']
181
- end
182
-
183
183
  if attributes.key?(:'created_at')
184
184
  self.created_at = attributes[:'created_at']
185
185
  end
@@ -319,8 +319,8 @@ module MailSlurpClient
319
319
  self.class == o.class &&
320
320
  sender == o.sender &&
321
321
  recipients == o.recipients &&
322
- attachments == o.attachments &&
323
322
  inbox_id == o.inbox_id &&
323
+ attachments == o.attachments &&
324
324
  created_at == o.created_at &&
325
325
  to == o.to &&
326
326
  cc == o.cc &&
@@ -352,7 +352,7 @@ module MailSlurpClient
352
352
  # Calculates hash code according to all attributes.
353
353
  # @return [Integer] Hash code
354
354
  def hash
355
- [sender, recipients, attachments, inbox_id, created_at, to, cc, bcc, message_id, domain_id, favourite, plus_address, size_bytes, in_reply_to, read, body_excerpt, text_excerpt, body_part_content_types, body_md5_hash, team_access, subject, id, thread_id, from].hash
355
+ [sender, recipients, inbox_id, attachments, created_at, to, cc, bcc, message_id, domain_id, favourite, plus_address, size_bytes, in_reply_to, read, body_excerpt, text_excerpt, body_part_content_types, body_md5_hash, team_access, subject, id, thread_id, from].hash
356
356
  end
357
357
 
358
358
  # Builds the object from hash