mailslurp_client 16.2.5 → 17.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.
Files changed (88) hide show
  1. checksums.yaml +4 -4
  2. data/lib/mailslurp_client/api/inbox_controller_api.rb +15 -15
  3. data/lib/mailslurp_client/api/{inbox_ruleset_controller_api.rb → ruleset_controller_api.rb} +184 -175
  4. data/lib/mailslurp_client/api/tools_controller_api.rb +62 -0
  5. data/lib/mailslurp_client/api/webhook_controller_api.rb +82 -0
  6. data/lib/mailslurp_client/models/ai_transform_dto.rb +19 -5
  7. data/lib/mailslurp_client/models/alias_projection.rb +29 -29
  8. data/lib/mailslurp_client/models/alias_thread_projection.rb +26 -26
  9. data/lib/mailslurp_client/models/attachment_projection.rb +21 -21
  10. data/lib/mailslurp_client/models/connector_projection.rb +15 -15
  11. data/lib/mailslurp_client/models/{create_inbox_ruleset_options.rb → create_ruleset_options.rb} +5 -5
  12. data/lib/mailslurp_client/models/email.rb +13 -13
  13. data/lib/mailslurp_client/models/email_thread_projection.rb +23 -23
  14. data/lib/mailslurp_client/models/entity_automation_item_projection.rb +10 -10
  15. data/lib/mailslurp_client/models/guest_portal_user_projection.rb +24 -24
  16. data/lib/mailslurp_client/models/inbox_forwarder_event_projection.rb +11 -11
  17. data/lib/mailslurp_client/models/inbox_replier_event_projection.rb +11 -11
  18. data/lib/mailslurp_client/models/lookup_mx_records_options.rb +211 -0
  19. data/lib/mailslurp_client/models/lookup_mx_records_results.rb +245 -0
  20. data/lib/mailslurp_client/models/opt_in_identity_projection.rb +21 -21
  21. data/lib/mailslurp_client/models/page_ai_transform_mapping_projection.rb +10 -10
  22. data/lib/mailslurp_client/models/page_ai_transform_projection.rb +10 -10
  23. data/lib/mailslurp_client/models/page_ai_transform_result_projection.rb +10 -10
  24. data/lib/mailslurp_client/models/page_alias.rb +10 -10
  25. data/lib/mailslurp_client/models/page_alias_thread_projection.rb +10 -10
  26. data/lib/mailslurp_client/models/page_attachment_entity.rb +10 -10
  27. data/lib/mailslurp_client/models/page_bounced_email.rb +10 -10
  28. data/lib/mailslurp_client/models/page_bounced_recipients.rb +10 -10
  29. data/lib/mailslurp_client/models/page_complaint.rb +10 -10
  30. data/lib/mailslurp_client/models/page_connector.rb +10 -10
  31. data/lib/mailslurp_client/models/page_connector_events.rb +10 -10
  32. data/lib/mailslurp_client/models/page_contact_projection.rb +10 -10
  33. data/lib/mailslurp_client/models/page_delivery_status.rb +10 -10
  34. data/lib/mailslurp_client/models/page_email_preview.rb +10 -10
  35. data/lib/mailslurp_client/models/page_email_projection.rb +10 -10
  36. data/lib/mailslurp_client/models/page_email_thread_projection.rb +10 -10
  37. data/lib/mailslurp_client/models/page_email_validation_request.rb +10 -10
  38. data/lib/mailslurp_client/models/page_entity_automation_items.rb +10 -10
  39. data/lib/mailslurp_client/models/page_entity_event_items.rb +10 -10
  40. data/lib/mailslurp_client/models/page_entity_favourite_items.rb +10 -10
  41. data/lib/mailslurp_client/models/page_expired_inbox_record_projection.rb +10 -10
  42. data/lib/mailslurp_client/models/page_group_projection.rb +10 -10
  43. data/lib/mailslurp_client/models/page_guest_portal_users.rb +10 -10
  44. data/lib/mailslurp_client/models/page_inbox_forwarder_dto.rb +10 -10
  45. data/lib/mailslurp_client/models/page_inbox_forwarder_events.rb +10 -10
  46. data/lib/mailslurp_client/models/page_inbox_projection.rb +10 -10
  47. data/lib/mailslurp_client/models/page_inbox_replier_dto.rb +10 -10
  48. data/lib/mailslurp_client/models/page_inbox_replier_events.rb +10 -10
  49. data/lib/mailslurp_client/models/page_inbox_tags.rb +10 -10
  50. data/lib/mailslurp_client/models/page_list_unsubscribe_recipients.rb +10 -10
  51. data/lib/mailslurp_client/models/page_missed_email_projection.rb +10 -10
  52. data/lib/mailslurp_client/models/page_opt_in_identity_projection.rb +10 -10
  53. data/lib/mailslurp_client/models/page_organization_inbox_projection.rb +10 -10
  54. data/lib/mailslurp_client/models/page_phone_message_thread_item_projection.rb +10 -10
  55. data/lib/mailslurp_client/models/page_phone_message_thread_projection.rb +10 -10
  56. data/lib/mailslurp_client/models/page_phone_number_projection.rb +10 -10
  57. data/lib/mailslurp_client/models/page_plus_address_projection.rb +10 -10
  58. data/lib/mailslurp_client/models/page_reputation_items.rb +10 -10
  59. data/lib/mailslurp_client/models/{page_inbox_ruleset_dto.rb → page_ruleset_dto.rb} +15 -15
  60. data/lib/mailslurp_client/models/page_scheduled_jobs.rb +10 -10
  61. data/lib/mailslurp_client/models/page_sent_email_projection.rb +10 -10
  62. data/lib/mailslurp_client/models/page_sent_email_with_queue_projection.rb +10 -10
  63. data/lib/mailslurp_client/models/page_sent_sms_projection.rb +10 -10
  64. data/lib/mailslurp_client/models/page_sms_projection.rb +10 -10
  65. data/lib/mailslurp_client/models/page_template_projection.rb +10 -10
  66. data/lib/mailslurp_client/models/page_tracking_pixel_projection.rb +10 -10
  67. data/lib/mailslurp_client/models/page_unknown_missed_email_projection.rb +10 -10
  68. data/lib/mailslurp_client/models/page_webhook_endpoint_projection.rb +10 -10
  69. data/lib/mailslurp_client/models/page_webhook_projection.rb +10 -10
  70. data/lib/mailslurp_client/models/page_webhook_result.rb +10 -10
  71. data/lib/mailslurp_client/models/pageable_object.rb +13 -13
  72. data/lib/mailslurp_client/models/phone_message_thread_projection.rb +27 -27
  73. data/lib/mailslurp_client/models/plus_address_projection.rb +24 -24
  74. data/lib/mailslurp_client/models/{inbox_ruleset_dto.rb → ruleset_dto.rb} +17 -7
  75. data/lib/mailslurp_client/models/{inbox_ruleset_test_options.rb → ruleset_test_options.rb} +3 -3
  76. data/lib/mailslurp_client/models/sent_email_projection.rb +45 -45
  77. data/lib/mailslurp_client/models/template_projection.rb +15 -15
  78. data/lib/mailslurp_client/models/test_inbox_ruleset_sending_options.rb +13 -7
  79. data/lib/mailslurp_client/models/test_new_inbox_ruleset_options.rb +11 -11
  80. data/lib/mailslurp_client/models/{test_inbox_ruleset_receiving_options.rb → test_ruleset_receiving_options.rb} +16 -10
  81. data/lib/mailslurp_client/models/{test_inbox_ruleset_receiving_result.rb → test_ruleset_receiving_result.rb} +3 -3
  82. data/lib/mailslurp_client/models/{test_inbox_ruleset_sending_result.rb → test_ruleset_sending_result.rb} +3 -3
  83. data/lib/mailslurp_client/models/tracking_pixel_projection.rb +10 -10
  84. data/lib/mailslurp_client/models/webhook_projection.rb +39 -30
  85. data/lib/mailslurp_client/models/webhook_result_dto.rb +15 -5
  86. data/lib/mailslurp_client/version.rb +1 -1
  87. data/lib/mailslurp_client.rb +10 -8
  88. metadata +12 -10
@@ -13,12 +13,14 @@ OpenAPI Generator version: 4.3.1
13
13
  require 'date'
14
14
 
15
15
  module MailSlurpClient
16
- # Rules for inbox
17
- class InboxRulesetDto
16
+ # Rules for an inbox or phone number. Rulesets can be used to block, allow, filter, or bounce emails or SMS when sending or receiving.
17
+ class RulesetDto
18
18
  attr_accessor :id
19
19
 
20
20
  attr_accessor :inbox_id
21
21
 
22
+ attr_accessor :phone_id
23
+
22
24
  attr_accessor :scope
23
25
 
24
26
  attr_accessor :action
@@ -56,6 +58,7 @@ module MailSlurpClient
56
58
  {
57
59
  :'id' => :'id',
58
60
  :'inbox_id' => :'inboxId',
61
+ :'phone_id' => :'phoneId',
59
62
  :'scope' => :'scope',
60
63
  :'action' => :'action',
61
64
  :'target' => :'target',
@@ -69,6 +72,7 @@ module MailSlurpClient
69
72
  {
70
73
  :'id' => :'String',
71
74
  :'inbox_id' => :'String',
75
+ :'phone_id' => :'String',
72
76
  :'scope' => :'String',
73
77
  :'action' => :'String',
74
78
  :'target' => :'String',
@@ -81,6 +85,7 @@ module MailSlurpClient
81
85
  def self.openapi_nullable
82
86
  Set.new([
83
87
  :'inbox_id',
88
+ :'phone_id',
84
89
  ])
85
90
  end
86
91
 
@@ -88,13 +93,13 @@ module MailSlurpClient
88
93
  # @param [Hash] attributes Model attributes in the form of hash
89
94
  def initialize(attributes = {})
90
95
  if (!attributes.is_a?(Hash))
91
- fail ArgumentError, "The input argument (attributes) must be a hash in `MailSlurpClient::InboxRulesetDto` initialize method"
96
+ fail ArgumentError, "The input argument (attributes) must be a hash in `MailSlurpClient::RulesetDto` initialize method"
92
97
  end
93
98
 
94
99
  # check to see if the attribute exists and convert string to symbol for hash key
95
100
  attributes = attributes.each_with_object({}) { |(k, v), h|
96
101
  if (!self.class.attribute_map.key?(k.to_sym))
97
- fail ArgumentError, "`#{k}` is not a valid attribute in `MailSlurpClient::InboxRulesetDto`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
102
+ fail ArgumentError, "`#{k}` is not a valid attribute in `MailSlurpClient::RulesetDto`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
98
103
  end
99
104
  h[k.to_sym] = v
100
105
  }
@@ -107,6 +112,10 @@ module MailSlurpClient
107
112
  self.inbox_id = attributes[:'inbox_id']
108
113
  end
109
114
 
115
+ if attributes.key?(:'phone_id')
116
+ self.phone_id = attributes[:'phone_id']
117
+ end
118
+
110
119
  if attributes.key?(:'scope')
111
120
  self.scope = attributes[:'scope']
112
121
  end
@@ -164,7 +173,7 @@ module MailSlurpClient
164
173
  def valid?
165
174
  return false if @id.nil?
166
175
  return false if @scope.nil?
167
- scope_validator = EnumAttributeValidator.new('String', ["RECEIVING_EMAILS", "SENDING_EMAILS"])
176
+ scope_validator = EnumAttributeValidator.new('String', ["RECEIVING_EMAILS", "SENDING_EMAILS", "RECEIVING_SMS", "SENDING_SMS"])
168
177
  return false unless scope_validator.valid?(@scope)
169
178
  return false if @action.nil?
170
179
  action_validator = EnumAttributeValidator.new('String', ["BLOCK", "ALLOW", "FILTER_REMOVE", "BOUNCE_SOFT", "BOUNCE_HARD"])
@@ -180,7 +189,7 @@ module MailSlurpClient
180
189
  # Custom attribute writer method checking allowed values (enum).
181
190
  # @param [Object] scope Object to be assigned
182
191
  def scope=(scope)
183
- validator = EnumAttributeValidator.new('String', ["RECEIVING_EMAILS", "SENDING_EMAILS"])
192
+ validator = EnumAttributeValidator.new('String', ["RECEIVING_EMAILS", "SENDING_EMAILS", "RECEIVING_SMS", "SENDING_SMS"])
184
193
  unless validator.valid?(scope)
185
194
  fail ArgumentError, "invalid value for \"scope\", must be one of #{validator.allowable_values}."
186
195
  end
@@ -214,6 +223,7 @@ module MailSlurpClient
214
223
  self.class == o.class &&
215
224
  id == o.id &&
216
225
  inbox_id == o.inbox_id &&
226
+ phone_id == o.phone_id &&
217
227
  scope == o.scope &&
218
228
  action == o.action &&
219
229
  target == o.target &&
@@ -230,7 +240,7 @@ module MailSlurpClient
230
240
  # Calculates hash code according to all attributes.
231
241
  # @return [Integer] Hash code
232
242
  def hash
233
- [id, inbox_id, scope, action, target, handler, created_at].hash
243
+ [id, inbox_id, phone_id, scope, action, target, handler, created_at].hash
234
244
  end
235
245
 
236
246
  # Builds the object from hash
@@ -14,7 +14,7 @@ require 'date'
14
14
 
15
15
  module MailSlurpClient
16
16
  # Test options for inbox ruleset
17
- class InboxRulesetTestOptions
17
+ class RulesetTestOptions
18
18
  attr_accessor :test_target
19
19
 
20
20
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -41,13 +41,13 @@ module MailSlurpClient
41
41
  # @param [Hash] attributes Model attributes in the form of hash
42
42
  def initialize(attributes = {})
43
43
  if (!attributes.is_a?(Hash))
44
- fail ArgumentError, "The input argument (attributes) must be a hash in `MailSlurpClient::InboxRulesetTestOptions` initialize method"
44
+ fail ArgumentError, "The input argument (attributes) must be a hash in `MailSlurpClient::RulesetTestOptions` initialize method"
45
45
  end
46
46
 
47
47
  # check to see if the attribute exists and convert string to symbol for hash key
48
48
  attributes = attributes.each_with_object({}) { |(k, v), h|
49
49
  if (!self.class.attribute_map.key?(k.to_sym))
50
- fail ArgumentError, "`#{k}` is not a valid attribute in `MailSlurpClient::InboxRulesetTestOptions`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
50
+ fail ArgumentError, "`#{k}` is not a valid attribute in `MailSlurpClient::RulesetTestOptions`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
51
51
  end
52
52
  h[k.to_sym] = v
53
53
  }
@@ -16,6 +16,10 @@ module MailSlurpClient
16
16
  class SentEmailProjection
17
17
  attr_accessor :id
18
18
 
19
+ attr_accessor :thread_id
20
+
21
+ attr_accessor :in_reply_to
22
+
19
23
  attr_accessor :from
20
24
 
21
25
  attr_accessor :sender
@@ -24,12 +28,12 @@ module MailSlurpClient
24
28
 
25
29
  attr_accessor :subject
26
30
 
31
+ attr_accessor :user_id
32
+
27
33
  attr_accessor :attachments
28
34
 
29
35
  attr_accessor :inbox_id
30
36
 
31
- attr_accessor :user_id
32
-
33
37
  attr_accessor :created_at
34
38
 
35
39
  attr_accessor :to
@@ -40,7 +44,7 @@ module MailSlurpClient
40
44
 
41
45
  attr_accessor :message_id
42
46
 
43
- attr_accessor :in_reply_to
47
+ attr_accessor :virtual_send
44
48
 
45
49
  attr_accessor :body_excerpt
46
50
 
@@ -48,32 +52,28 @@ module MailSlurpClient
48
52
 
49
53
  attr_accessor :body_md5_hash
50
54
 
51
- attr_accessor :virtual_send
52
-
53
- attr_accessor :thread_id
54
-
55
55
  # Attribute mapping from ruby-style variable name to JSON key.
56
56
  def self.attribute_map
57
57
  {
58
58
  :'id' => :'id',
59
+ :'thread_id' => :'threadId',
60
+ :'in_reply_to' => :'inReplyTo',
59
61
  :'from' => :'from',
60
62
  :'sender' => :'sender',
61
63
  :'recipients' => :'recipients',
62
64
  :'subject' => :'subject',
65
+ :'user_id' => :'userId',
63
66
  :'attachments' => :'attachments',
64
67
  :'inbox_id' => :'inboxId',
65
- :'user_id' => :'userId',
66
68
  :'created_at' => :'createdAt',
67
69
  :'to' => :'to',
68
70
  :'cc' => :'cc',
69
71
  :'bcc' => :'bcc',
70
72
  :'message_id' => :'messageId',
71
- :'in_reply_to' => :'inReplyTo',
73
+ :'virtual_send' => :'virtualSend',
72
74
  :'body_excerpt' => :'bodyExcerpt',
73
75
  :'text_excerpt' => :'textExcerpt',
74
- :'body_md5_hash' => :'bodyMD5Hash',
75
- :'virtual_send' => :'virtualSend',
76
- :'thread_id' => :'threadId'
76
+ :'body_md5_hash' => :'bodyMD5Hash'
77
77
  }
78
78
  end
79
79
 
@@ -81,41 +81,41 @@ module MailSlurpClient
81
81
  def self.openapi_types
82
82
  {
83
83
  :'id' => :'String',
84
+ :'thread_id' => :'String',
85
+ :'in_reply_to' => :'String',
84
86
  :'from' => :'String',
85
87
  :'sender' => :'Sender',
86
88
  :'recipients' => :'EmailRecipients',
87
89
  :'subject' => :'String',
90
+ :'user_id' => :'String',
88
91
  :'attachments' => :'Array<String>',
89
92
  :'inbox_id' => :'String',
90
- :'user_id' => :'String',
91
93
  :'created_at' => :'DateTime',
92
94
  :'to' => :'Array<String>',
93
95
  :'cc' => :'Array<String>',
94
96
  :'bcc' => :'Array<String>',
95
97
  :'message_id' => :'String',
96
- :'in_reply_to' => :'String',
98
+ :'virtual_send' => :'Boolean',
97
99
  :'body_excerpt' => :'String',
98
100
  :'text_excerpt' => :'String',
99
- :'body_md5_hash' => :'String',
100
- :'virtual_send' => :'Boolean',
101
- :'thread_id' => :'String'
101
+ :'body_md5_hash' => :'String'
102
102
  }
103
103
  end
104
104
 
105
105
  # List of attributes with nullable: true
106
106
  def self.openapi_nullable
107
107
  Set.new([
108
+ :'thread_id',
109
+ :'in_reply_to',
108
110
  :'from',
109
111
  :'sender',
110
112
  :'recipients',
111
113
  :'subject',
112
114
  :'attachments',
113
115
  :'message_id',
114
- :'in_reply_to',
115
116
  :'body_excerpt',
116
117
  :'text_excerpt',
117
- :'body_md5_hash',
118
- :'thread_id'
118
+ :'body_md5_hash'
119
119
  ])
120
120
  end
121
121
 
@@ -138,6 +138,14 @@ module MailSlurpClient
138
138
  self.id = attributes[:'id']
139
139
  end
140
140
 
141
+ if attributes.key?(:'thread_id')
142
+ self.thread_id = attributes[:'thread_id']
143
+ end
144
+
145
+ if attributes.key?(:'in_reply_to')
146
+ self.in_reply_to = attributes[:'in_reply_to']
147
+ end
148
+
141
149
  if attributes.key?(:'from')
142
150
  self.from = attributes[:'from']
143
151
  end
@@ -154,6 +162,10 @@ module MailSlurpClient
154
162
  self.subject = attributes[:'subject']
155
163
  end
156
164
 
165
+ if attributes.key?(:'user_id')
166
+ self.user_id = attributes[:'user_id']
167
+ end
168
+
157
169
  if attributes.key?(:'attachments')
158
170
  if (value = attributes[:'attachments']).is_a?(Array)
159
171
  self.attachments = value
@@ -164,10 +176,6 @@ module MailSlurpClient
164
176
  self.inbox_id = attributes[:'inbox_id']
165
177
  end
166
178
 
167
- if attributes.key?(:'user_id')
168
- self.user_id = attributes[:'user_id']
169
- end
170
-
171
179
  if attributes.key?(:'created_at')
172
180
  self.created_at = attributes[:'created_at']
173
181
  end
@@ -194,8 +202,8 @@ module MailSlurpClient
194
202
  self.message_id = attributes[:'message_id']
195
203
  end
196
204
 
197
- if attributes.key?(:'in_reply_to')
198
- self.in_reply_to = attributes[:'in_reply_to']
205
+ if attributes.key?(:'virtual_send')
206
+ self.virtual_send = attributes[:'virtual_send']
199
207
  end
200
208
 
201
209
  if attributes.key?(:'body_excerpt')
@@ -209,14 +217,6 @@ module MailSlurpClient
209
217
  if attributes.key?(:'body_md5_hash')
210
218
  self.body_md5_hash = attributes[:'body_md5_hash']
211
219
  end
212
-
213
- if attributes.key?(:'virtual_send')
214
- self.virtual_send = attributes[:'virtual_send']
215
- end
216
-
217
- if attributes.key?(:'thread_id')
218
- self.thread_id = attributes[:'thread_id']
219
- end
220
220
  end
221
221
 
222
222
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -227,14 +227,14 @@ module MailSlurpClient
227
227
  invalid_properties.push('invalid value for "id", id cannot be nil.')
228
228
  end
229
229
 
230
- if @inbox_id.nil?
231
- invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
232
- end
233
-
234
230
  if @user_id.nil?
235
231
  invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
236
232
  end
237
233
 
234
+ if @inbox_id.nil?
235
+ invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
236
+ end
237
+
238
238
  if @created_at.nil?
239
239
  invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
240
240
  end
@@ -250,8 +250,8 @@ module MailSlurpClient
250
250
  # @return true if the model is valid
251
251
  def valid?
252
252
  return false if @id.nil?
253
- return false if @inbox_id.nil?
254
253
  return false if @user_id.nil?
254
+ return false if @inbox_id.nil?
255
255
  return false if @created_at.nil?
256
256
  return false if @virtual_send.nil?
257
257
  true
@@ -263,24 +263,24 @@ module MailSlurpClient
263
263
  return true if self.equal?(o)
264
264
  self.class == o.class &&
265
265
  id == o.id &&
266
+ thread_id == o.thread_id &&
267
+ in_reply_to == o.in_reply_to &&
266
268
  from == o.from &&
267
269
  sender == o.sender &&
268
270
  recipients == o.recipients &&
269
271
  subject == o.subject &&
272
+ user_id == o.user_id &&
270
273
  attachments == o.attachments &&
271
274
  inbox_id == o.inbox_id &&
272
- user_id == o.user_id &&
273
275
  created_at == o.created_at &&
274
276
  to == o.to &&
275
277
  cc == o.cc &&
276
278
  bcc == o.bcc &&
277
279
  message_id == o.message_id &&
278
- in_reply_to == o.in_reply_to &&
280
+ virtual_send == o.virtual_send &&
279
281
  body_excerpt == o.body_excerpt &&
280
282
  text_excerpt == o.text_excerpt &&
281
- body_md5_hash == o.body_md5_hash &&
282
- virtual_send == o.virtual_send &&
283
- thread_id == o.thread_id
283
+ body_md5_hash == o.body_md5_hash
284
284
  end
285
285
 
286
286
  # @see the `==` method
@@ -292,7 +292,7 @@ module MailSlurpClient
292
292
  # Calculates hash code according to all attributes.
293
293
  # @return [Integer] Hash code
294
294
  def hash
295
- [id, from, sender, recipients, subject, attachments, inbox_id, user_id, created_at, to, cc, bcc, message_id, in_reply_to, body_excerpt, text_excerpt, body_md5_hash, virtual_send, thread_id].hash
295
+ [id, thread_id, in_reply_to, from, sender, recipients, subject, user_id, attachments, inbox_id, created_at, to, cc, bcc, message_id, virtual_send, body_excerpt, text_excerpt, body_md5_hash].hash
296
296
  end
297
297
 
298
298
  # Builds the object from hash
@@ -15,10 +15,10 @@ require 'date'
15
15
  module MailSlurpClient
16
16
  # Email template data
17
17
  class TemplateProjection
18
- attr_accessor :updated_at
19
-
20
18
  attr_accessor :created_at
21
19
 
20
+ attr_accessor :updated_at
21
+
22
22
  attr_accessor :variables
23
23
 
24
24
  attr_accessor :name
@@ -28,8 +28,8 @@ module MailSlurpClient
28
28
  # Attribute mapping from ruby-style variable name to JSON key.
29
29
  def self.attribute_map
30
30
  {
31
- :'updated_at' => :'updatedAt',
32
31
  :'created_at' => :'createdAt',
32
+ :'updated_at' => :'updatedAt',
33
33
  :'variables' => :'variables',
34
34
  :'name' => :'name',
35
35
  :'id' => :'id'
@@ -39,8 +39,8 @@ module MailSlurpClient
39
39
  # Attribute type mapping.
40
40
  def self.openapi_types
41
41
  {
42
- :'updated_at' => :'DateTime',
43
42
  :'created_at' => :'DateTime',
43
+ :'updated_at' => :'DateTime',
44
44
  :'variables' => :'Array<String>',
45
45
  :'name' => :'String',
46
46
  :'id' => :'String'
@@ -68,14 +68,14 @@ module MailSlurpClient
68
68
  h[k.to_sym] = v
69
69
  }
70
70
 
71
- if attributes.key?(:'updated_at')
72
- self.updated_at = attributes[:'updated_at']
73
- end
74
-
75
71
  if attributes.key?(:'created_at')
76
72
  self.created_at = attributes[:'created_at']
77
73
  end
78
74
 
75
+ if attributes.key?(:'updated_at')
76
+ self.updated_at = attributes[:'updated_at']
77
+ end
78
+
79
79
  if attributes.key?(:'variables')
80
80
  if (value = attributes[:'variables']).is_a?(Array)
81
81
  self.variables = value
@@ -95,14 +95,14 @@ module MailSlurpClient
95
95
  # @return Array for valid properties with the reasons
96
96
  def list_invalid_properties
97
97
  invalid_properties = Array.new
98
- if @updated_at.nil?
99
- invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
100
- end
101
-
102
98
  if @created_at.nil?
103
99
  invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
104
100
  end
105
101
 
102
+ if @updated_at.nil?
103
+ invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
104
+ end
105
+
106
106
  if @variables.nil?
107
107
  invalid_properties.push('invalid value for "variables", variables cannot be nil.')
108
108
  end
@@ -121,8 +121,8 @@ module MailSlurpClient
121
121
  # Check to see if the all the properties in the model are valid
122
122
  # @return true if the model is valid
123
123
  def valid?
124
- return false if @updated_at.nil?
125
124
  return false if @created_at.nil?
125
+ return false if @updated_at.nil?
126
126
  return false if @variables.nil?
127
127
  return false if @name.nil?
128
128
  return false if @id.nil?
@@ -134,8 +134,8 @@ module MailSlurpClient
134
134
  def ==(o)
135
135
  return true if self.equal?(o)
136
136
  self.class == o.class &&
137
- updated_at == o.updated_at &&
138
137
  created_at == o.created_at &&
138
+ updated_at == o.updated_at &&
139
139
  variables == o.variables &&
140
140
  name == o.name &&
141
141
  id == o.id
@@ -150,7 +150,7 @@ module MailSlurpClient
150
150
  # Calculates hash code according to all attributes.
151
151
  # @return [Integer] Hash code
152
152
  def hash
153
- [updated_at, created_at, variables, name, id].hash
153
+ [created_at, updated_at, variables, name, id].hash
154
154
  end
155
155
 
156
156
  # Builds the object from hash
@@ -13,16 +13,19 @@ OpenAPI Generator version: 4.3.1
13
13
  require 'date'
14
14
 
15
15
  module MailSlurpClient
16
- # Test options for inbox ruleset sending test
16
+ # Test options for ruleset sending test
17
17
  class TestInboxRulesetSendingOptions
18
18
  attr_accessor :inbox_id
19
19
 
20
+ attr_accessor :phone_id
21
+
20
22
  attr_accessor :recipient
21
23
 
22
24
  # Attribute mapping from ruby-style variable name to JSON key.
23
25
  def self.attribute_map
24
26
  {
25
27
  :'inbox_id' => :'inboxId',
28
+ :'phone_id' => :'phoneId',
26
29
  :'recipient' => :'recipient'
27
30
  }
28
31
  end
@@ -31,6 +34,7 @@ module MailSlurpClient
31
34
  def self.openapi_types
32
35
  {
33
36
  :'inbox_id' => :'String',
37
+ :'phone_id' => :'String',
34
38
  :'recipient' => :'String'
35
39
  }
36
40
  end
@@ -38,6 +42,8 @@ module MailSlurpClient
38
42
  # List of attributes with nullable: true
39
43
  def self.openapi_nullable
40
44
  Set.new([
45
+ :'inbox_id',
46
+ :'phone_id',
41
47
  ])
42
48
  end
43
49
 
@@ -60,6 +66,10 @@ module MailSlurpClient
60
66
  self.inbox_id = attributes[:'inbox_id']
61
67
  end
62
68
 
69
+ if attributes.key?(:'phone_id')
70
+ self.phone_id = attributes[:'phone_id']
71
+ end
72
+
63
73
  if attributes.key?(:'recipient')
64
74
  self.recipient = attributes[:'recipient']
65
75
  end
@@ -69,10 +79,6 @@ module MailSlurpClient
69
79
  # @return Array for valid properties with the reasons
70
80
  def list_invalid_properties
71
81
  invalid_properties = Array.new
72
- if @inbox_id.nil?
73
- invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
74
- end
75
-
76
82
  if @recipient.nil?
77
83
  invalid_properties.push('invalid value for "recipient", recipient cannot be nil.')
78
84
  end
@@ -83,7 +89,6 @@ module MailSlurpClient
83
89
  # Check to see if the all the properties in the model are valid
84
90
  # @return true if the model is valid
85
91
  def valid?
86
- return false if @inbox_id.nil?
87
92
  return false if @recipient.nil?
88
93
  true
89
94
  end
@@ -94,6 +99,7 @@ module MailSlurpClient
94
99
  return true if self.equal?(o)
95
100
  self.class == o.class &&
96
101
  inbox_id == o.inbox_id &&
102
+ phone_id == o.phone_id &&
97
103
  recipient == o.recipient
98
104
  end
99
105
 
@@ -106,7 +112,7 @@ module MailSlurpClient
106
112
  # Calculates hash code according to all attributes.
107
113
  # @return [Integer] Hash code
108
114
  def hash
109
- [inbox_id, recipient].hash
115
+ [inbox_id, phone_id, recipient].hash
110
116
  end
111
117
 
112
118
  # Builds the object from hash
@@ -17,21 +17,21 @@ module MailSlurpClient
17
17
  class TestNewInboxRulesetOptions
18
18
  attr_accessor :inbox_ruleset_test_options
19
19
 
20
- attr_accessor :create_inbox_ruleset_options
20
+ attr_accessor :create_ruleset_options
21
21
 
22
22
  # Attribute mapping from ruby-style variable name to JSON key.
23
23
  def self.attribute_map
24
24
  {
25
25
  :'inbox_ruleset_test_options' => :'inboxRulesetTestOptions',
26
- :'create_inbox_ruleset_options' => :'createInboxRulesetOptions'
26
+ :'create_ruleset_options' => :'createRulesetOptions'
27
27
  }
28
28
  end
29
29
 
30
30
  # Attribute type mapping.
31
31
  def self.openapi_types
32
32
  {
33
- :'inbox_ruleset_test_options' => :'InboxRulesetTestOptions',
34
- :'create_inbox_ruleset_options' => :'CreateInboxRulesetOptions'
33
+ :'inbox_ruleset_test_options' => :'RulesetTestOptions',
34
+ :'create_ruleset_options' => :'CreateRulesetOptions'
35
35
  }
36
36
  end
37
37
 
@@ -60,8 +60,8 @@ module MailSlurpClient
60
60
  self.inbox_ruleset_test_options = attributes[:'inbox_ruleset_test_options']
61
61
  end
62
62
 
63
- if attributes.key?(:'create_inbox_ruleset_options')
64
- self.create_inbox_ruleset_options = attributes[:'create_inbox_ruleset_options']
63
+ if attributes.key?(:'create_ruleset_options')
64
+ self.create_ruleset_options = attributes[:'create_ruleset_options']
65
65
  end
66
66
  end
67
67
 
@@ -73,8 +73,8 @@ module MailSlurpClient
73
73
  invalid_properties.push('invalid value for "inbox_ruleset_test_options", inbox_ruleset_test_options cannot be nil.')
74
74
  end
75
75
 
76
- if @create_inbox_ruleset_options.nil?
77
- invalid_properties.push('invalid value for "create_inbox_ruleset_options", create_inbox_ruleset_options cannot be nil.')
76
+ if @create_ruleset_options.nil?
77
+ invalid_properties.push('invalid value for "create_ruleset_options", create_ruleset_options cannot be nil.')
78
78
  end
79
79
 
80
80
  invalid_properties
@@ -84,7 +84,7 @@ module MailSlurpClient
84
84
  # @return true if the model is valid
85
85
  def valid?
86
86
  return false if @inbox_ruleset_test_options.nil?
87
- return false if @create_inbox_ruleset_options.nil?
87
+ return false if @create_ruleset_options.nil?
88
88
  true
89
89
  end
90
90
 
@@ -94,7 +94,7 @@ module MailSlurpClient
94
94
  return true if self.equal?(o)
95
95
  self.class == o.class &&
96
96
  inbox_ruleset_test_options == o.inbox_ruleset_test_options &&
97
- create_inbox_ruleset_options == o.create_inbox_ruleset_options
97
+ create_ruleset_options == o.create_ruleset_options
98
98
  end
99
99
 
100
100
  # @see the `==` method
@@ -106,7 +106,7 @@ module MailSlurpClient
106
106
  # Calculates hash code according to all attributes.
107
107
  # @return [Integer] Hash code
108
108
  def hash
109
- [inbox_ruleset_test_options, create_inbox_ruleset_options].hash
109
+ [inbox_ruleset_test_options, create_ruleset_options].hash
110
110
  end
111
111
 
112
112
  # Builds the object from hash