mailslurp_client 17.2.0 → 17.3.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.
- checksums.yaml +4 -4
- data/lib/mailslurp_client/api/campaign_probe_controller_api.rb +138 -0
- data/lib/mailslurp_client/api/domain_monitor_controller_api.rb +264 -0
- data/lib/mailslurp_client/api/email_audit_controller_api.rb +334 -0
- data/lib/mailslurp_client/api/email_controller_api.rb +124 -0
- data/lib/mailslurp_client/api/inbox_controller_api.rb +4 -4
- data/lib/mailslurp_client/api/phone_controller_api.rb +1312 -81
- data/lib/mailslurp_client/api/sms_controller_api.rb +125 -0
- data/lib/mailslurp_client/api/tools_controller_api.rb +806 -0
- data/lib/mailslurp_client/models/abstract_webhook_payload.rb +15 -15
- data/lib/mailslurp_client/models/acquire_phone_pool_lease_options.rb +233 -0
- data/lib/mailslurp_client/models/add_phone_pool_numbers_options.rb +213 -0
- data/lib/mailslurp_client/models/ai_transform_mapping_projection.rb +27 -27
- data/lib/mailslurp_client/models/ai_transform_projection.rb +28 -28
- data/lib/mailslurp_client/models/alias_projection.rb +45 -45
- data/lib/mailslurp_client/models/alias_thread_projection.rb +42 -42
- data/lib/mailslurp_client/models/analyze_dmarc_report_options.rb +248 -0
- data/lib/mailslurp_client/models/analyze_dmarc_report_results.rb +386 -0
- data/lib/mailslurp_client/models/analyze_email_headers_options.rb +240 -0
- data/lib/mailslurp_client/models/analyze_email_headers_results.rb +275 -0
- data/lib/mailslurp_client/models/attachment_projection.rb +50 -50
- data/lib/mailslurp_client/models/available_phone_number_dto.rb +325 -0
- data/lib/mailslurp_client/models/available_phone_numbers_result.rb +236 -0
- data/lib/mailslurp_client/models/bounce_projection.rb +28 -28
- data/lib/mailslurp_client/models/bounce_recipient_projection.rb +10 -10
- data/lib/mailslurp_client/models/campaign_probe_run_comparison_dto.rb +397 -0
- data/lib/mailslurp_client/models/check_campaign_probe_options.rb +371 -0
- data/lib/mailslurp_client/models/check_campaign_probe_results.rb +482 -0
- data/lib/mailslurp_client/models/check_dns_propagation_options.rb +297 -0
- data/lib/mailslurp_client/models/check_dns_propagation_results.rb +361 -0
- data/lib/mailslurp_client/models/check_domain_monitor_options.rb +243 -0
- data/lib/mailslurp_client/models/check_domain_monitor_results.rb +398 -0
- data/lib/mailslurp_client/models/check_email_audit_options.rb +405 -0
- data/lib/mailslurp_client/models/check_email_auth_stack_options.rb +248 -0
- data/lib/mailslurp_client/models/check_email_auth_stack_results.rb +462 -0
- data/lib/mailslurp_client/models/check_email_blacklist_options.rb +241 -0
- data/lib/mailslurp_client/models/check_email_blacklist_results.rb +366 -0
- data/lib/mailslurp_client/models/connector_event_projection.rb +42 -42
- data/lib/mailslurp_client/models/connector_projection.rb +42 -42
- data/lib/mailslurp_client/models/contact_projection.rb +15 -15
- data/lib/mailslurp_client/models/create_email_audit_options.rb +394 -0
- data/lib/mailslurp_client/models/create_phone_number_options.rb +25 -4
- data/lib/mailslurp_client/models/create_phone_pool_options.rb +220 -0
- data/lib/mailslurp_client/models/create_phone_provisioning_job_item_options.rb +256 -0
- data/lib/mailslurp_client/models/create_phone_provisioning_job_options.rb +284 -0
- data/lib/mailslurp_client/models/dmarc_report_metadata.rb +308 -0
- data/lib/mailslurp_client/models/dmarc_report_source_summary.rb +274 -0
- data/lib/mailslurp_client/models/dns_propagation_resolver_result.rb +252 -0
- data/lib/mailslurp_client/models/domain_monitor_run_comparison_dto.rb +369 -0
- data/lib/mailslurp_client/models/domain_monitor_summary_dto.rb +248 -0
- data/lib/mailslurp_client/models/email_audit_analysis_result.rb +620 -0
- data/lib/mailslurp_client/models/email_audit_comparison_dto.rb +411 -0
- data/lib/mailslurp_client/models/email_audit_dto.rb +308 -0
- data/lib/mailslurp_client/models/email_audit_spelling_issue.rb +276 -0
- data/lib/mailslurp_client/models/email_audit_url_issue.rb +236 -0
- data/lib/mailslurp_client/models/email_blacklist_ip_result.rb +242 -0
- data/lib/mailslurp_client/models/email_blacklist_listing_result.rb +258 -0
- data/lib/mailslurp_client/models/email_header_analysis_summary.rb +242 -0
- data/lib/mailslurp_client/models/email_header_received_hop.rb +242 -0
- data/lib/mailslurp_client/models/email_projection.rb +88 -88
- data/lib/mailslurp_client/models/email_thread_projection.rb +54 -54
- data/lib/mailslurp_client/models/entity_automation_item_projection.rb +33 -33
- data/lib/mailslurp_client/models/entity_event_item_projection.rb +42 -42
- data/lib/mailslurp_client/models/entity_favourite_item_projection.rb +29 -29
- data/lib/mailslurp_client/models/expired_inbox_record_projection.rb +27 -27
- data/lib/mailslurp_client/models/generate_spf_record_options.rb +357 -0
- data/lib/mailslurp_client/models/generate_spf_record_results.rb +318 -0
- data/lib/mailslurp_client/models/get_or_create_phone_pool_options.rb +220 -0
- data/lib/mailslurp_client/models/group_projection.rb +15 -15
- data/lib/mailslurp_client/models/guest_portal_user_projection.rb +47 -47
- data/lib/mailslurp_client/models/imap_email_projection.rb +18 -18
- data/lib/mailslurp_client/models/inbox_forwarder_event_projection.rb +21 -21
- data/lib/mailslurp_client/models/inbox_replier_event_projection.rb +33 -33
- data/lib/mailslurp_client/models/list_unsubscribe_recipient_projection.rb +19 -19
- data/lib/mailslurp_client/models/lookup_dkim_domain_options.rb +275 -0
- data/lib/mailslurp_client/models/lookup_dkim_domain_results.rb +304 -0
- data/lib/mailslurp_client/models/lookup_ptr_options.rb +241 -0
- data/lib/mailslurp_client/models/lookup_ptr_results.rb +305 -0
- data/lib/mailslurp_client/models/lookup_spf_domain_options.rb +240 -0
- data/lib/mailslurp_client/models/lookup_spf_domain_results.rb +305 -0
- data/lib/mailslurp_client/models/missed_email_projection.rb +28 -28
- data/lib/mailslurp_client/models/missed_sms_projection.rb +32 -32
- data/lib/mailslurp_client/models/opt_in_identity_projection.rb +18 -18
- data/lib/mailslurp_client/models/page_ai_transform_mapping_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_ai_transform_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_ai_transform_result_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_alias.rb +19 -19
- data/lib/mailslurp_client/models/page_alias_thread_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_attachment_entity.rb +19 -19
- data/lib/mailslurp_client/models/page_bounced_email.rb +19 -19
- data/lib/mailslurp_client/models/page_bounced_recipients.rb +19 -19
- data/lib/mailslurp_client/models/page_complaint.rb +19 -19
- data/lib/mailslurp_client/models/page_connector.rb +19 -19
- data/lib/mailslurp_client/models/page_connector_events.rb +19 -19
- data/lib/mailslurp_client/models/page_contact_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_delivery_status.rb +19 -19
- data/lib/mailslurp_client/models/page_device_preview_run_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_email_preview.rb +19 -19
- data/lib/mailslurp_client/models/page_email_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_email_thread_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_email_validation_request.rb +19 -19
- data/lib/mailslurp_client/models/page_entity_automation_items.rb +19 -19
- data/lib/mailslurp_client/models/page_entity_event_items.rb +19 -19
- data/lib/mailslurp_client/models/page_entity_favourite_items.rb +19 -19
- data/lib/mailslurp_client/models/page_expired_inbox_record_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_group_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_guest_portal_users.rb +19 -19
- data/lib/mailslurp_client/models/page_inbox_forwarder_dto.rb +19 -19
- data/lib/mailslurp_client/models/page_inbox_forwarder_events.rb +19 -19
- data/lib/mailslurp_client/models/page_inbox_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_inbox_replier_dto.rb +19 -19
- data/lib/mailslurp_client/models/page_inbox_replier_events.rb +19 -19
- data/lib/mailslurp_client/models/page_inbox_tags.rb +19 -19
- data/lib/mailslurp_client/models/page_list_unsubscribe_recipients.rb +19 -19
- data/lib/mailslurp_client/models/page_missed_email_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_missed_sms_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_opt_in_identity_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_organization_inbox_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_phone_message_thread_item_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_phone_message_thread_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_phone_number_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_phone_number_release_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_plus_address_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_reputation_items.rb +19 -19
- data/lib/mailslurp_client/models/page_ruleset_dto.rb +19 -19
- data/lib/mailslurp_client/models/page_scheduled_jobs.rb +19 -19
- data/lib/mailslurp_client/models/page_sent_email_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_sent_email_with_queue_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_sent_sms_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_sms_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_template_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_tracking_pixel_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_unknown_missed_email_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_webhook_endpoint_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_webhook_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_webhook_result.rb +19 -19
- data/lib/mailslurp_client/models/pageable_object.rb +22 -22
- data/lib/mailslurp_client/models/phone_message_thread_item_projection.rb +18 -18
- data/lib/mailslurp_client/models/phone_number_dto.rb +49 -4
- data/lib/mailslurp_client/models/phone_number_line_type_intelligence_dto.rb +242 -0
- data/lib/mailslurp_client/models/phone_number_line_type_lookup_dto.rb +286 -0
- data/lib/mailslurp_client/models/phone_number_projection.rb +80 -35
- data/lib/mailslurp_client/models/phone_number_release_projection.rb +39 -39
- data/lib/mailslurp_client/models/phone_pool_detail_dto.rb +334 -0
- data/lib/mailslurp_client/models/phone_pool_dto.rb +318 -0
- data/lib/mailslurp_client/models/phone_pool_lease_dto.rb +351 -0
- data/lib/mailslurp_client/models/phone_pool_member_dto.rb +333 -0
- data/lib/mailslurp_client/models/phone_provider_capabilities_result.rb +284 -0
- data/lib/mailslurp_client/models/phone_provisioning_job_dto.rb +434 -0
- data/lib/mailslurp_client/models/phone_provisioning_job_item_dto.rb +336 -0
- data/lib/mailslurp_client/models/phone_sms_prepaid_credit_dto.rb +340 -0
- data/lib/mailslurp_client/models/phone_sms_prepaid_credits_dto.rb +241 -0
- data/lib/mailslurp_client/models/plus_address_projection.rb +27 -27
- data/lib/mailslurp_client/models/recipient_projection.rb +13 -13
- data/lib/mailslurp_client/models/reputation_item_projection.rb +41 -41
- data/lib/mailslurp_client/models/search_available_phone_numbers_options.rb +377 -0
- data/lib/mailslurp_client/models/sender_projection.rb +13 -13
- data/lib/mailslurp_client/models/sent_email_projection.rb +63 -63
- data/lib/mailslurp_client/models/sent_sms_projection.rb +18 -18
- data/lib/mailslurp_client/models/sms_projection.rb +18 -18
- data/lib/mailslurp_client/models/smtp_auth_diagnostic_result.rb +235 -0
- data/lib/mailslurp_client/models/smtp_diagnostic_step.rb +236 -0
- data/lib/mailslurp_client/models/smtp_tls_diagnostic_result.rb +245 -0
- data/lib/mailslurp_client/models/sort_object.rb +10 -10
- data/lib/mailslurp_client/models/spf_mechanism_result.rb +229 -0
- data/lib/mailslurp_client/models/template_projection.rb +41 -41
- data/lib/mailslurp_client/models/test_smtp_server_options.rb +337 -0
- data/lib/mailslurp_client/models/test_smtp_server_results.rb +297 -0
- data/lib/mailslurp_client/models/tracking_pixel_projection.rb +27 -27
- data/lib/mailslurp_client/models/unknown_missed_email_projection.rb +27 -27
- data/lib/mailslurp_client/models/update_phone_pool_options.rb +215 -0
- data/lib/mailslurp_client/models/validation_dto.rb +1 -5
- data/lib/mailslurp_client/models/webhook_projection.rb +45 -45
- data/lib/mailslurp_client/version.rb +1 -1
- data/lib/mailslurp_client.rb +67 -0
- metadata +69 -2
|
@@ -15,11 +15,18 @@ require 'date'
|
|
|
15
15
|
module MailSlurpClient
|
|
16
16
|
# An email thread is a message thread created for a email based on Message-ID, In-Reply-To, and References headers
|
|
17
17
|
class EmailThreadProjection
|
|
18
|
+
# ID of email thread
|
|
19
|
+
attr_accessor :id
|
|
20
|
+
|
|
21
|
+
# From sender
|
|
22
|
+
attr_accessor :from
|
|
23
|
+
|
|
18
24
|
# Thread topic subject
|
|
19
25
|
attr_accessor :subject
|
|
20
26
|
|
|
21
|
-
|
|
22
|
-
|
|
27
|
+
attr_accessor :sender
|
|
28
|
+
|
|
29
|
+
attr_accessor :recipients
|
|
23
30
|
|
|
24
31
|
# User ID
|
|
25
32
|
attr_accessor :user_id
|
|
@@ -39,9 +46,8 @@ module MailSlurpClient
|
|
|
39
46
|
# BCC recipients
|
|
40
47
|
attr_accessor :bcc
|
|
41
48
|
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
attr_accessor :recipients
|
|
49
|
+
# Updated at DateTime
|
|
50
|
+
attr_accessor :updated_at
|
|
45
51
|
|
|
46
52
|
# Has attachments
|
|
47
53
|
attr_accessor :has_attachments
|
|
@@ -66,25 +72,21 @@ module MailSlurpClient
|
|
|
66
72
|
|
|
67
73
|
attr_accessor :last_sender
|
|
68
74
|
|
|
69
|
-
# ID of email thread
|
|
70
|
-
attr_accessor :id
|
|
71
|
-
|
|
72
|
-
# From sender
|
|
73
|
-
attr_accessor :from
|
|
74
|
-
|
|
75
75
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
76
76
|
def self.attribute_map
|
|
77
77
|
{
|
|
78
|
+
:'id' => :'id',
|
|
79
|
+
:'from' => :'from',
|
|
78
80
|
:'subject' => :'subject',
|
|
79
|
-
:'
|
|
81
|
+
:'sender' => :'sender',
|
|
82
|
+
:'recipients' => :'recipients',
|
|
80
83
|
:'user_id' => :'userId',
|
|
81
84
|
:'inbox_id' => :'inboxId',
|
|
82
85
|
:'created_at' => :'createdAt',
|
|
83
86
|
:'to' => :'to',
|
|
84
87
|
:'cc' => :'cc',
|
|
85
88
|
:'bcc' => :'bcc',
|
|
86
|
-
:'
|
|
87
|
-
:'recipients' => :'recipients',
|
|
89
|
+
:'updated_at' => :'updatedAt',
|
|
88
90
|
:'has_attachments' => :'hasAttachments',
|
|
89
91
|
:'unread' => :'unread',
|
|
90
92
|
:'message_count' => :'messageCount',
|
|
@@ -92,25 +94,25 @@ module MailSlurpClient
|
|
|
92
94
|
:'last_text_excerpt' => :'lastTextExcerpt',
|
|
93
95
|
:'last_created_at' => :'lastCreatedAt',
|
|
94
96
|
:'last_from' => :'lastFrom',
|
|
95
|
-
:'last_sender' => :'lastSender'
|
|
96
|
-
:'id' => :'id',
|
|
97
|
-
:'from' => :'from'
|
|
97
|
+
:'last_sender' => :'lastSender'
|
|
98
98
|
}
|
|
99
99
|
end
|
|
100
100
|
|
|
101
101
|
# Attribute type mapping.
|
|
102
102
|
def self.openapi_types
|
|
103
103
|
{
|
|
104
|
+
:'id' => :'String',
|
|
105
|
+
:'from' => :'String',
|
|
104
106
|
:'subject' => :'String',
|
|
105
|
-
:'
|
|
107
|
+
:'sender' => :'SenderProjection',
|
|
108
|
+
:'recipients' => :'EmailRecipientsProjection',
|
|
106
109
|
:'user_id' => :'String',
|
|
107
110
|
:'inbox_id' => :'String',
|
|
108
111
|
:'created_at' => :'DateTime',
|
|
109
112
|
:'to' => :'Array<String>',
|
|
110
113
|
:'cc' => :'Array<String>',
|
|
111
114
|
:'bcc' => :'Array<String>',
|
|
112
|
-
:'
|
|
113
|
-
:'recipients' => :'EmailRecipientsProjection',
|
|
115
|
+
:'updated_at' => :'DateTime',
|
|
114
116
|
:'has_attachments' => :'Boolean',
|
|
115
117
|
:'unread' => :'Boolean',
|
|
116
118
|
:'message_count' => :'Integer',
|
|
@@ -118,9 +120,7 @@ module MailSlurpClient
|
|
|
118
120
|
:'last_text_excerpt' => :'String',
|
|
119
121
|
:'last_created_at' => :'DateTime',
|
|
120
122
|
:'last_from' => :'String',
|
|
121
|
-
:'last_sender' => :'SenderProjection'
|
|
122
|
-
:'id' => :'String',
|
|
123
|
-
:'from' => :'String'
|
|
123
|
+
:'last_sender' => :'SenderProjection'
|
|
124
124
|
}
|
|
125
125
|
end
|
|
126
126
|
|
|
@@ -145,12 +145,24 @@ module MailSlurpClient
|
|
|
145
145
|
h[k.to_sym] = v
|
|
146
146
|
}
|
|
147
147
|
|
|
148
|
+
if attributes.key?(:'id')
|
|
149
|
+
self.id = attributes[:'id']
|
|
150
|
+
end
|
|
151
|
+
|
|
152
|
+
if attributes.key?(:'from')
|
|
153
|
+
self.from = attributes[:'from']
|
|
154
|
+
end
|
|
155
|
+
|
|
148
156
|
if attributes.key?(:'subject')
|
|
149
157
|
self.subject = attributes[:'subject']
|
|
150
158
|
end
|
|
151
159
|
|
|
152
|
-
if attributes.key?(:'
|
|
153
|
-
self.
|
|
160
|
+
if attributes.key?(:'sender')
|
|
161
|
+
self.sender = attributes[:'sender']
|
|
162
|
+
end
|
|
163
|
+
|
|
164
|
+
if attributes.key?(:'recipients')
|
|
165
|
+
self.recipients = attributes[:'recipients']
|
|
154
166
|
end
|
|
155
167
|
|
|
156
168
|
if attributes.key?(:'user_id')
|
|
@@ -183,12 +195,8 @@ module MailSlurpClient
|
|
|
183
195
|
end
|
|
184
196
|
end
|
|
185
197
|
|
|
186
|
-
if attributes.key?(:'
|
|
187
|
-
self.
|
|
188
|
-
end
|
|
189
|
-
|
|
190
|
-
if attributes.key?(:'recipients')
|
|
191
|
-
self.recipients = attributes[:'recipients']
|
|
198
|
+
if attributes.key?(:'updated_at')
|
|
199
|
+
self.updated_at = attributes[:'updated_at']
|
|
192
200
|
end
|
|
193
201
|
|
|
194
202
|
if attributes.key?(:'has_attachments')
|
|
@@ -222,22 +230,14 @@ module MailSlurpClient
|
|
|
222
230
|
if attributes.key?(:'last_sender')
|
|
223
231
|
self.last_sender = attributes[:'last_sender']
|
|
224
232
|
end
|
|
225
|
-
|
|
226
|
-
if attributes.key?(:'id')
|
|
227
|
-
self.id = attributes[:'id']
|
|
228
|
-
end
|
|
229
|
-
|
|
230
|
-
if attributes.key?(:'from')
|
|
231
|
-
self.from = attributes[:'from']
|
|
232
|
-
end
|
|
233
233
|
end
|
|
234
234
|
|
|
235
235
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
236
236
|
# @return Array for valid properties with the reasons
|
|
237
237
|
def list_invalid_properties
|
|
238
238
|
invalid_properties = Array.new
|
|
239
|
-
if @
|
|
240
|
-
invalid_properties.push('invalid value for "
|
|
239
|
+
if @id.nil?
|
|
240
|
+
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
|
241
241
|
end
|
|
242
242
|
|
|
243
243
|
if @user_id.nil?
|
|
@@ -252,6 +252,10 @@ module MailSlurpClient
|
|
|
252
252
|
invalid_properties.push('invalid value for "to", to cannot be nil.')
|
|
253
253
|
end
|
|
254
254
|
|
|
255
|
+
if @updated_at.nil?
|
|
256
|
+
invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
|
|
257
|
+
end
|
|
258
|
+
|
|
255
259
|
if @has_attachments.nil?
|
|
256
260
|
invalid_properties.push('invalid value for "has_attachments", has_attachments cannot be nil.')
|
|
257
261
|
end
|
|
@@ -264,24 +268,20 @@ module MailSlurpClient
|
|
|
264
268
|
invalid_properties.push('invalid value for "message_count", message_count cannot be nil.')
|
|
265
269
|
end
|
|
266
270
|
|
|
267
|
-
if @id.nil?
|
|
268
|
-
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
|
269
|
-
end
|
|
270
|
-
|
|
271
271
|
invalid_properties
|
|
272
272
|
end
|
|
273
273
|
|
|
274
274
|
# Check to see if the all the properties in the model are valid
|
|
275
275
|
# @return true if the model is valid
|
|
276
276
|
def valid?
|
|
277
|
-
return false if @
|
|
277
|
+
return false if @id.nil?
|
|
278
278
|
return false if @user_id.nil?
|
|
279
279
|
return false if @created_at.nil?
|
|
280
280
|
return false if @to.nil?
|
|
281
|
+
return false if @updated_at.nil?
|
|
281
282
|
return false if @has_attachments.nil?
|
|
282
283
|
return false if @unread.nil?
|
|
283
284
|
return false if @message_count.nil?
|
|
284
|
-
return false if @id.nil?
|
|
285
285
|
true
|
|
286
286
|
end
|
|
287
287
|
|
|
@@ -290,16 +290,18 @@ module MailSlurpClient
|
|
|
290
290
|
def ==(o)
|
|
291
291
|
return true if self.equal?(o)
|
|
292
292
|
self.class == o.class &&
|
|
293
|
+
id == o.id &&
|
|
294
|
+
from == o.from &&
|
|
293
295
|
subject == o.subject &&
|
|
294
|
-
|
|
296
|
+
sender == o.sender &&
|
|
297
|
+
recipients == o.recipients &&
|
|
295
298
|
user_id == o.user_id &&
|
|
296
299
|
inbox_id == o.inbox_id &&
|
|
297
300
|
created_at == o.created_at &&
|
|
298
301
|
to == o.to &&
|
|
299
302
|
cc == o.cc &&
|
|
300
303
|
bcc == o.bcc &&
|
|
301
|
-
|
|
302
|
-
recipients == o.recipients &&
|
|
304
|
+
updated_at == o.updated_at &&
|
|
303
305
|
has_attachments == o.has_attachments &&
|
|
304
306
|
unread == o.unread &&
|
|
305
307
|
message_count == o.message_count &&
|
|
@@ -307,9 +309,7 @@ module MailSlurpClient
|
|
|
307
309
|
last_text_excerpt == o.last_text_excerpt &&
|
|
308
310
|
last_created_at == o.last_created_at &&
|
|
309
311
|
last_from == o.last_from &&
|
|
310
|
-
last_sender == o.last_sender
|
|
311
|
-
id == o.id &&
|
|
312
|
-
from == o.from
|
|
312
|
+
last_sender == o.last_sender
|
|
313
313
|
end
|
|
314
314
|
|
|
315
315
|
# @see the `==` method
|
|
@@ -321,7 +321,7 @@ module MailSlurpClient
|
|
|
321
321
|
# Calculates hash code according to all attributes.
|
|
322
322
|
# @return [Integer] Hash code
|
|
323
323
|
def hash
|
|
324
|
-
[subject,
|
|
324
|
+
[id, from, subject, sender, recipients, user_id, inbox_id, created_at, to, cc, bcc, updated_at, has_attachments, unread, message_count, last_body_excerpt, last_text_excerpt, last_created_at, last_from, last_sender].hash
|
|
325
325
|
end
|
|
326
326
|
|
|
327
327
|
# Builds the object from hash
|
|
@@ -14,18 +14,18 @@ require 'date'
|
|
|
14
14
|
|
|
15
15
|
module MailSlurpClient
|
|
16
16
|
class EntityAutomationItemProjection
|
|
17
|
-
attr_accessor :
|
|
17
|
+
attr_accessor :name
|
|
18
|
+
|
|
19
|
+
attr_accessor :id
|
|
18
20
|
|
|
19
21
|
attr_accessor :inbox_id
|
|
20
22
|
|
|
23
|
+
attr_accessor :phone_id
|
|
24
|
+
|
|
21
25
|
attr_accessor :action
|
|
22
26
|
|
|
23
27
|
attr_accessor :automation_type
|
|
24
28
|
|
|
25
|
-
attr_accessor :name
|
|
26
|
-
|
|
27
|
-
attr_accessor :id
|
|
28
|
-
|
|
29
29
|
class EnumAttributeValidator
|
|
30
30
|
attr_reader :datatype
|
|
31
31
|
attr_reader :allowable_values
|
|
@@ -51,24 +51,24 @@ module MailSlurpClient
|
|
|
51
51
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
52
52
|
def self.attribute_map
|
|
53
53
|
{
|
|
54
|
-
:'
|
|
54
|
+
:'name' => :'name',
|
|
55
|
+
:'id' => :'id',
|
|
55
56
|
:'inbox_id' => :'inboxId',
|
|
57
|
+
:'phone_id' => :'phoneId',
|
|
56
58
|
:'action' => :'action',
|
|
57
|
-
:'automation_type' => :'automationType'
|
|
58
|
-
:'name' => :'name',
|
|
59
|
-
:'id' => :'id'
|
|
59
|
+
:'automation_type' => :'automationType'
|
|
60
60
|
}
|
|
61
61
|
end
|
|
62
62
|
|
|
63
63
|
# Attribute type mapping.
|
|
64
64
|
def self.openapi_types
|
|
65
65
|
{
|
|
66
|
-
:'
|
|
66
|
+
:'name' => :'String',
|
|
67
|
+
:'id' => :'String',
|
|
67
68
|
:'inbox_id' => :'String',
|
|
69
|
+
:'phone_id' => :'String',
|
|
68
70
|
:'action' => :'String',
|
|
69
|
-
:'automation_type' => :'String'
|
|
70
|
-
:'name' => :'String',
|
|
71
|
-
:'id' => :'String'
|
|
71
|
+
:'automation_type' => :'String'
|
|
72
72
|
}
|
|
73
73
|
end
|
|
74
74
|
|
|
@@ -93,14 +93,22 @@ module MailSlurpClient
|
|
|
93
93
|
h[k.to_sym] = v
|
|
94
94
|
}
|
|
95
95
|
|
|
96
|
-
if attributes.key?(:'
|
|
97
|
-
self.
|
|
96
|
+
if attributes.key?(:'name')
|
|
97
|
+
self.name = attributes[:'name']
|
|
98
|
+
end
|
|
99
|
+
|
|
100
|
+
if attributes.key?(:'id')
|
|
101
|
+
self.id = attributes[:'id']
|
|
98
102
|
end
|
|
99
103
|
|
|
100
104
|
if attributes.key?(:'inbox_id')
|
|
101
105
|
self.inbox_id = attributes[:'inbox_id']
|
|
102
106
|
end
|
|
103
107
|
|
|
108
|
+
if attributes.key?(:'phone_id')
|
|
109
|
+
self.phone_id = attributes[:'phone_id']
|
|
110
|
+
end
|
|
111
|
+
|
|
104
112
|
if attributes.key?(:'action')
|
|
105
113
|
self.action = attributes[:'action']
|
|
106
114
|
end
|
|
@@ -108,38 +116,30 @@ module MailSlurpClient
|
|
|
108
116
|
if attributes.key?(:'automation_type')
|
|
109
117
|
self.automation_type = attributes[:'automation_type']
|
|
110
118
|
end
|
|
111
|
-
|
|
112
|
-
if attributes.key?(:'name')
|
|
113
|
-
self.name = attributes[:'name']
|
|
114
|
-
end
|
|
115
|
-
|
|
116
|
-
if attributes.key?(:'id')
|
|
117
|
-
self.id = attributes[:'id']
|
|
118
|
-
end
|
|
119
119
|
end
|
|
120
120
|
|
|
121
121
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
122
122
|
# @return Array for valid properties with the reasons
|
|
123
123
|
def list_invalid_properties
|
|
124
124
|
invalid_properties = Array.new
|
|
125
|
-
if @automation_type.nil?
|
|
126
|
-
invalid_properties.push('invalid value for "automation_type", automation_type cannot be nil.')
|
|
127
|
-
end
|
|
128
|
-
|
|
129
125
|
if @id.nil?
|
|
130
126
|
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
|
131
127
|
end
|
|
132
128
|
|
|
129
|
+
if @automation_type.nil?
|
|
130
|
+
invalid_properties.push('invalid value for "automation_type", automation_type cannot be nil.')
|
|
131
|
+
end
|
|
132
|
+
|
|
133
133
|
invalid_properties
|
|
134
134
|
end
|
|
135
135
|
|
|
136
136
|
# Check to see if the all the properties in the model are valid
|
|
137
137
|
# @return true if the model is valid
|
|
138
138
|
def valid?
|
|
139
|
+
return false if @id.nil?
|
|
139
140
|
return false if @automation_type.nil?
|
|
140
141
|
automation_type_validator = EnumAttributeValidator.new('String', ["INBOX_FORWARDER", "INBOX_REPLIER", "INBOX_RULESET"])
|
|
141
142
|
return false unless automation_type_validator.valid?(@automation_type)
|
|
142
|
-
return false if @id.nil?
|
|
143
143
|
true
|
|
144
144
|
end
|
|
145
145
|
|
|
@@ -158,12 +158,12 @@ module MailSlurpClient
|
|
|
158
158
|
def ==(o)
|
|
159
159
|
return true if self.equal?(o)
|
|
160
160
|
self.class == o.class &&
|
|
161
|
-
|
|
161
|
+
name == o.name &&
|
|
162
|
+
id == o.id &&
|
|
162
163
|
inbox_id == o.inbox_id &&
|
|
164
|
+
phone_id == o.phone_id &&
|
|
163
165
|
action == o.action &&
|
|
164
|
-
automation_type == o.automation_type
|
|
165
|
-
name == o.name &&
|
|
166
|
-
id == o.id
|
|
166
|
+
automation_type == o.automation_type
|
|
167
167
|
end
|
|
168
168
|
|
|
169
169
|
# @see the `==` method
|
|
@@ -175,7 +175,7 @@ module MailSlurpClient
|
|
|
175
175
|
# Calculates hash code according to all attributes.
|
|
176
176
|
# @return [Integer] Hash code
|
|
177
177
|
def hash
|
|
178
|
-
[
|
|
178
|
+
[name, id, inbox_id, phone_id, action, automation_type].hash
|
|
179
179
|
end
|
|
180
180
|
|
|
181
181
|
# Builds the object from hash
|
|
@@ -14,15 +14,15 @@ require 'date'
|
|
|
14
14
|
|
|
15
15
|
module MailSlurpClient
|
|
16
16
|
class EntityEventItemProjection
|
|
17
|
-
attr_accessor :
|
|
17
|
+
attr_accessor :id
|
|
18
18
|
|
|
19
|
-
attr_accessor :
|
|
19
|
+
attr_accessor :severity
|
|
20
20
|
|
|
21
21
|
attr_accessor :event_type
|
|
22
22
|
|
|
23
|
-
attr_accessor :
|
|
23
|
+
attr_accessor :inbox_id
|
|
24
24
|
|
|
25
|
-
attr_accessor :
|
|
25
|
+
attr_accessor :phone_id
|
|
26
26
|
|
|
27
27
|
class EnumAttributeValidator
|
|
28
28
|
attr_reader :datatype
|
|
@@ -49,22 +49,22 @@ module MailSlurpClient
|
|
|
49
49
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
50
50
|
def self.attribute_map
|
|
51
51
|
{
|
|
52
|
-
:'phone_id' => :'phoneId',
|
|
53
|
-
:'inbox_id' => :'inboxId',
|
|
54
|
-
:'event_type' => :'eventType',
|
|
55
52
|
:'id' => :'id',
|
|
56
|
-
:'severity' => :'severity'
|
|
53
|
+
:'severity' => :'severity',
|
|
54
|
+
:'event_type' => :'eventType',
|
|
55
|
+
:'inbox_id' => :'inboxId',
|
|
56
|
+
:'phone_id' => :'phoneId'
|
|
57
57
|
}
|
|
58
58
|
end
|
|
59
59
|
|
|
60
60
|
# Attribute type mapping.
|
|
61
61
|
def self.openapi_types
|
|
62
62
|
{
|
|
63
|
-
:'phone_id' => :'String',
|
|
64
|
-
:'inbox_id' => :'String',
|
|
65
|
-
:'event_type' => :'String',
|
|
66
63
|
:'id' => :'String',
|
|
67
|
-
:'severity' => :'String'
|
|
64
|
+
:'severity' => :'String',
|
|
65
|
+
:'event_type' => :'String',
|
|
66
|
+
:'inbox_id' => :'String',
|
|
67
|
+
:'phone_id' => :'String'
|
|
68
68
|
}
|
|
69
69
|
end
|
|
70
70
|
|
|
@@ -89,24 +89,24 @@ module MailSlurpClient
|
|
|
89
89
|
h[k.to_sym] = v
|
|
90
90
|
}
|
|
91
91
|
|
|
92
|
-
if attributes.key?(:'
|
|
93
|
-
self.
|
|
92
|
+
if attributes.key?(:'id')
|
|
93
|
+
self.id = attributes[:'id']
|
|
94
94
|
end
|
|
95
95
|
|
|
96
|
-
if attributes.key?(:'
|
|
97
|
-
self.
|
|
96
|
+
if attributes.key?(:'severity')
|
|
97
|
+
self.severity = attributes[:'severity']
|
|
98
98
|
end
|
|
99
99
|
|
|
100
100
|
if attributes.key?(:'event_type')
|
|
101
101
|
self.event_type = attributes[:'event_type']
|
|
102
102
|
end
|
|
103
103
|
|
|
104
|
-
if attributes.key?(:'
|
|
105
|
-
self.
|
|
104
|
+
if attributes.key?(:'inbox_id')
|
|
105
|
+
self.inbox_id = attributes[:'inbox_id']
|
|
106
106
|
end
|
|
107
107
|
|
|
108
|
-
if attributes.key?(:'
|
|
109
|
-
self.
|
|
108
|
+
if attributes.key?(:'phone_id')
|
|
109
|
+
self.phone_id = attributes[:'phone_id']
|
|
110
110
|
end
|
|
111
111
|
end
|
|
112
112
|
|
|
@@ -114,10 +114,6 @@ module MailSlurpClient
|
|
|
114
114
|
# @return Array for valid properties with the reasons
|
|
115
115
|
def list_invalid_properties
|
|
116
116
|
invalid_properties = Array.new
|
|
117
|
-
if @event_type.nil?
|
|
118
|
-
invalid_properties.push('invalid value for "event_type", event_type cannot be nil.')
|
|
119
|
-
end
|
|
120
|
-
|
|
121
117
|
if @id.nil?
|
|
122
118
|
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
|
123
119
|
end
|
|
@@ -126,32 +122,26 @@ module MailSlurpClient
|
|
|
126
122
|
invalid_properties.push('invalid value for "severity", severity cannot be nil.')
|
|
127
123
|
end
|
|
128
124
|
|
|
125
|
+
if @event_type.nil?
|
|
126
|
+
invalid_properties.push('invalid value for "event_type", event_type cannot be nil.')
|
|
127
|
+
end
|
|
128
|
+
|
|
129
129
|
invalid_properties
|
|
130
130
|
end
|
|
131
131
|
|
|
132
132
|
# Check to see if the all the properties in the model are valid
|
|
133
133
|
# @return true if the model is valid
|
|
134
134
|
def valid?
|
|
135
|
-
return false if @event_type.nil?
|
|
136
|
-
event_type_validator = EnumAttributeValidator.new('String', ["WEBHOOK_EVENT", "INBOX_FORWARDER_EVENT", "INBOX_REPLIER_EVENT", "INBOX_RULESET_EVENT", "ALIAS_EVENT"])
|
|
137
|
-
return false unless event_type_validator.valid?(@event_type)
|
|
138
135
|
return false if @id.nil?
|
|
139
136
|
return false if @severity.nil?
|
|
140
137
|
severity_validator = EnumAttributeValidator.new('String', ["INFO", "SUCCESS", "WARNING", "DANGER"])
|
|
141
138
|
return false unless severity_validator.valid?(@severity)
|
|
139
|
+
return false if @event_type.nil?
|
|
140
|
+
event_type_validator = EnumAttributeValidator.new('String', ["WEBHOOK_EVENT", "INBOX_FORWARDER_EVENT", "INBOX_REPLIER_EVENT", "INBOX_RULESET_EVENT", "ALIAS_EVENT"])
|
|
141
|
+
return false unless event_type_validator.valid?(@event_type)
|
|
142
142
|
true
|
|
143
143
|
end
|
|
144
144
|
|
|
145
|
-
# Custom attribute writer method checking allowed values (enum).
|
|
146
|
-
# @param [Object] event_type Object to be assigned
|
|
147
|
-
def event_type=(event_type)
|
|
148
|
-
validator = EnumAttributeValidator.new('String', ["WEBHOOK_EVENT", "INBOX_FORWARDER_EVENT", "INBOX_REPLIER_EVENT", "INBOX_RULESET_EVENT", "ALIAS_EVENT"])
|
|
149
|
-
unless validator.valid?(event_type)
|
|
150
|
-
fail ArgumentError, "invalid value for \"event_type\", must be one of #{validator.allowable_values}."
|
|
151
|
-
end
|
|
152
|
-
@event_type = event_type
|
|
153
|
-
end
|
|
154
|
-
|
|
155
145
|
# Custom attribute writer method checking allowed values (enum).
|
|
156
146
|
# @param [Object] severity Object to be assigned
|
|
157
147
|
def severity=(severity)
|
|
@@ -162,16 +152,26 @@ module MailSlurpClient
|
|
|
162
152
|
@severity = severity
|
|
163
153
|
end
|
|
164
154
|
|
|
155
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
156
|
+
# @param [Object] event_type Object to be assigned
|
|
157
|
+
def event_type=(event_type)
|
|
158
|
+
validator = EnumAttributeValidator.new('String', ["WEBHOOK_EVENT", "INBOX_FORWARDER_EVENT", "INBOX_REPLIER_EVENT", "INBOX_RULESET_EVENT", "ALIAS_EVENT"])
|
|
159
|
+
unless validator.valid?(event_type)
|
|
160
|
+
fail ArgumentError, "invalid value for \"event_type\", must be one of #{validator.allowable_values}."
|
|
161
|
+
end
|
|
162
|
+
@event_type = event_type
|
|
163
|
+
end
|
|
164
|
+
|
|
165
165
|
# Checks equality by comparing each attribute.
|
|
166
166
|
# @param [Object] Object to be compared
|
|
167
167
|
def ==(o)
|
|
168
168
|
return true if self.equal?(o)
|
|
169
169
|
self.class == o.class &&
|
|
170
|
-
phone_id == o.phone_id &&
|
|
171
|
-
inbox_id == o.inbox_id &&
|
|
172
|
-
event_type == o.event_type &&
|
|
173
170
|
id == o.id &&
|
|
174
|
-
severity == o.severity
|
|
171
|
+
severity == o.severity &&
|
|
172
|
+
event_type == o.event_type &&
|
|
173
|
+
inbox_id == o.inbox_id &&
|
|
174
|
+
phone_id == o.phone_id
|
|
175
175
|
end
|
|
176
176
|
|
|
177
177
|
# @see the `==` method
|
|
@@ -183,7 +183,7 @@ module MailSlurpClient
|
|
|
183
183
|
# Calculates hash code according to all attributes.
|
|
184
184
|
# @return [Integer] Hash code
|
|
185
185
|
def hash
|
|
186
|
-
[
|
|
186
|
+
[id, severity, event_type, inbox_id, phone_id].hash
|
|
187
187
|
end
|
|
188
188
|
|
|
189
189
|
# Builds the object from hash
|