mailslurp_client 17.1.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/api_audit_log_controller_api.rb +237 -0
- data/lib/mailslurp_client/api/attachment_controller_api.rb +66 -0
- data/lib/mailslurp_client/api/bounce_controller_api.rb +126 -0
- data/lib/mailslurp_client/api/campaign_probe_controller_api.rb +802 -0
- data/lib/mailslurp_client/api/deliverability_test_controller_api.rb +1496 -0
- data/lib/mailslurp_client/api/device_previews_controller_api.rb +1012 -0
- data/lib/mailslurp_client/api/domain_controller_api.rb +63 -0
- data/lib/mailslurp_client/api/domain_monitor_controller_api.rb +1112 -0
- data/lib/mailslurp_client/api/email_audit_controller_api.rb +334 -0
- data/lib/mailslurp_client/api/email_controller_api.rb +394 -138
- data/lib/mailslurp_client/api/inbox_controller_api.rb +144 -4
- data/lib/mailslurp_client/api/missed_sms_controller_api.rb +221 -0
- data/lib/mailslurp_client/api/phone_controller_api.rb +1314 -83
- data/lib/mailslurp_client/api/sms_controller_api.rb +191 -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 +39 -39
- data/lib/mailslurp_client/models/ai_transform_projection.rb +28 -28
- data/lib/mailslurp_client/models/alias_projection.rb +48 -48
- data/lib/mailslurp_client/models/alias_thread_projection.rb +44 -44
- 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/audit_log_event_dto.rb +343 -0
- data/lib/mailslurp_client/models/audit_log_page_dto.rb +222 -0
- data/lib/mailslurp_client/models/audit_log_search_options.rb +323 -0
- 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 +14 -14
- data/lib/mailslurp_client/models/bounce_recipient_projection.rb +10 -10
- data/lib/mailslurp_client/models/campaign_probe_dto.rb +411 -0
- data/lib/mailslurp_client/models/campaign_probe_insights_dto.rb +408 -0
- data/lib/mailslurp_client/models/campaign_probe_run_comparison_dto.rb +397 -0
- data/lib/mailslurp_client/models/campaign_probe_run_dto.rb +644 -0
- data/lib/mailslurp_client/models/campaign_probe_run_due_result.rb +315 -0
- data/lib/mailslurp_client/models/campaign_probe_run_now_result.rb +225 -0
- data/lib/mailslurp_client/models/campaign_probe_series_dto.rb +303 -0
- data/lib/mailslurp_client/models/campaign_probe_series_point_dto.rb +295 -0
- data/lib/mailslurp_client/models/cancel_device_preview_run_options.rb +206 -0
- data/lib/mailslurp_client/models/cancel_device_preview_run_result.rb +248 -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/code_candidate.rb +303 -0
- data/lib/mailslurp_client/models/connector_event_projection.rb +33 -33
- data/lib/mailslurp_client/models/connector_projection.rb +42 -42
- data/lib/mailslurp_client/models/contact_projection.rb +24 -24
- data/lib/mailslurp_client/models/create_campaign_probe_options.rb +290 -0
- data/lib/mailslurp_client/models/create_campaign_probe_run_options.rb +264 -0
- data/lib/mailslurp_client/models/create_deliverability_simulation_job_options.rb +345 -0
- data/lib/mailslurp_client/models/create_deliverability_test_options.rb +372 -0
- data/lib/mailslurp_client/models/create_device_preview_feedback_options.rb +405 -0
- data/lib/mailslurp_client/models/create_device_preview_options.rb +241 -0
- data/lib/mailslurp_client/models/create_device_preview_run_result.rb +225 -0
- data/lib/mailslurp_client/models/create_domain_monitor_alert_sink_options.rb +308 -0
- data/lib/mailslurp_client/models/create_domain_monitor_options.rb +299 -0
- 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/delete_device_preview_run_result.rb +253 -0
- data/lib/mailslurp_client/models/delete_result.rb +245 -0
- data/lib/mailslurp_client/models/deliverability_analytics_run_dto.rb +426 -0
- data/lib/mailslurp_client/models/deliverability_analytics_series_dto.rb +342 -0
- data/lib/mailslurp_client/models/deliverability_analytics_series_point_dto.rb +240 -0
- data/lib/mailslurp_client/models/deliverability_analytics_summary_dto.rb +380 -0
- data/lib/mailslurp_client/models/deliverability_entity_result_dto.rb +360 -0
- data/lib/mailslurp_client/models/deliverability_entity_result_page_dto.rb +318 -0
- data/lib/mailslurp_client/models/deliverability_expectation.rb +276 -0
- data/lib/mailslurp_client/models/deliverability_expectation_result_dto.rb +294 -0
- data/lib/mailslurp_client/models/deliverability_failure_entity_hotspot_dto.rb +360 -0
- data/lib/mailslurp_client/models/deliverability_failure_hotspots_dto.rb +302 -0
- data/lib/mailslurp_client/models/deliverability_failure_phone_dimension_hotspot_dto.rb +306 -0
- data/lib/mailslurp_client/models/deliverability_poll_status_result_dto.rb +250 -0
- data/lib/mailslurp_client/models/deliverability_selector_options.rb +307 -0
- data/lib/mailslurp_client/models/deliverability_simulation_email_options.rb +231 -0
- data/lib/mailslurp_client/models/deliverability_simulation_job_config_dto.rb +300 -0
- data/lib/mailslurp_client/models/deliverability_simulation_job_dto.rb +494 -0
- data/lib/mailslurp_client/models/deliverability_simulation_job_error_summary_dto.rb +224 -0
- data/lib/mailslurp_client/models/deliverability_simulation_job_event_dto.rb +344 -0
- data/lib/mailslurp_client/models/deliverability_simulation_job_event_page_dto.rb +284 -0
- data/lib/mailslurp_client/models/deliverability_simulation_job_top_error_dto.rb +226 -0
- data/lib/mailslurp_client/models/deliverability_simulation_sms_options.rb +209 -0
- data/lib/mailslurp_client/models/deliverability_test_dto.rb +558 -0
- data/lib/mailslurp_client/models/deliverability_test_page_dto.rb +270 -0
- data/lib/mailslurp_client/models/device_preview_feedback_dto.rb +456 -0
- data/lib/mailslurp_client/models/device_preview_feedback_list_dto.rb +255 -0
- data/lib/mailslurp_client/models/device_preview_provider_progress_dto.rb +387 -0
- data/lib/mailslurp_client/models/device_preview_run_dto.rb +382 -0
- data/lib/mailslurp_client/models/device_preview_run_results_dto.rb +243 -0
- data/lib/mailslurp_client/models/device_preview_screenshot_dto.rb +389 -0
- data/lib/mailslurp_client/models/device_preview_target_dto.rb +368 -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_alert_sink_dto.rb +369 -0
- data/lib/mailslurp_client/models/domain_monitor_dto.rb +383 -0
- data/lib/mailslurp_client/models/domain_monitor_insights_dto.rb +422 -0
- data/lib/mailslurp_client/models/domain_monitor_run_comparison_dto.rb +369 -0
- data/lib/mailslurp_client/models/domain_monitor_run_dto.rb +492 -0
- data/lib/mailslurp_client/models/domain_monitor_run_due_result.rb +287 -0
- data/lib/mailslurp_client/models/domain_monitor_run_now_result.rb +225 -0
- data/lib/mailslurp_client/models/domain_monitor_series_dto.rb +303 -0
- data/lib/mailslurp_client/models/domain_monitor_series_point_dto.rb +309 -0
- data/lib/mailslurp_client/models/domain_monitor_summary_dto.rb +248 -0
- data/lib/mailslurp_client/models/domain_region_group.rb +261 -0
- data/lib/mailslurp_client/models/domain_region_groups_dto.rb +214 -0
- data/lib/mailslurp_client/models/domain_region_information.rb +338 -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 +66 -66
- data/lib/mailslurp_client/models/email_signature.rb +254 -0
- data/lib/mailslurp_client/models/email_signature_parse_result.rb +223 -0
- data/lib/mailslurp_client/models/email_thread_projection.rb +78 -78
- data/lib/mailslurp_client/models/entity_automation_item_projection.rb +27 -27
- data/lib/mailslurp_client/models/entity_event_item_projection.rb +45 -45
- 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/extract_attachment_text_options.rb +268 -0
- data/lib/mailslurp_client/models/extract_attachment_text_result.rb +297 -0
- data/lib/mailslurp_client/models/extract_codes_options.rb +304 -0
- data/lib/mailslurp_client/models/extract_codes_result.rb +303 -0
- 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 +50 -50
- data/lib/mailslurp_client/models/imap_email_projection.rb +18 -18
- data/lib/mailslurp_client/models/inbox_dto.rb +2 -2
- data/lib/mailslurp_client/models/inbox_forwarder_event_projection.rb +21 -21
- data/lib/mailslurp_client/models/inbox_preview.rb +2 -2
- 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_dto.rb +320 -0
- data/lib/mailslurp_client/models/missed_sms_projection.rb +282 -0
- data/lib/mailslurp_client/models/opt_in_identity_projection.rb +24 -24
- data/lib/mailslurp_client/models/organization_inbox_projection.rb +2 -2
- 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 +309 -0
- 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 +309 -0
- 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 +81 -36
- 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 +32 -32
- 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/search_inboxes_options.rb +1 -1
- data/lib/mailslurp_client/models/sender_projection.rb +13 -13
- data/lib/mailslurp_client/models/sent_email_projection.rb +50 -50
- 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/tenant_reputation_finding_dto.rb +322 -0
- data/lib/mailslurp_client/models/tenant_reputation_findings_dto.rb +241 -0
- data/lib/mailslurp_client/models/tenant_reputation_status_row_dto.rb +372 -0
- data/lib/mailslurp_client/models/tenant_reputation_status_summary_dto.rb +241 -0
- 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_campaign_probe_options.rb +290 -0
- data/lib/mailslurp_client/models/update_deliverability_test_options.rb +327 -0
- data/lib/mailslurp_client/models/update_device_preview_feedback_options.rb +314 -0
- data/lib/mailslurp_client/models/update_domain_monitor_options.rb +266 -0
- 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 +39 -39
- data/lib/mailslurp_client/version.rb +1 -1
- data/lib/mailslurp_client.rb +156 -0
- metadata +158 -2
|
@@ -15,22 +15,25 @@ 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
|
|
|
27
|
+
attr_accessor :sender
|
|
28
|
+
|
|
29
|
+
attr_accessor :recipients
|
|
30
|
+
|
|
21
31
|
# User ID
|
|
22
32
|
attr_accessor :user_id
|
|
23
33
|
|
|
24
34
|
# Inbox ID
|
|
25
35
|
attr_accessor :inbox_id
|
|
26
36
|
|
|
27
|
-
attr_accessor :sender
|
|
28
|
-
|
|
29
|
-
attr_accessor :recipients
|
|
30
|
-
|
|
31
|
-
# Updated at DateTime
|
|
32
|
-
attr_accessor :updated_at
|
|
33
|
-
|
|
34
37
|
# Created at DateTime
|
|
35
38
|
attr_accessor :created_at
|
|
36
39
|
|
|
@@ -43,17 +46,12 @@ module MailSlurpClient
|
|
|
43
46
|
# BCC recipients
|
|
44
47
|
attr_accessor :bcc
|
|
45
48
|
|
|
49
|
+
# Updated at DateTime
|
|
50
|
+
attr_accessor :updated_at
|
|
51
|
+
|
|
46
52
|
# Has attachments
|
|
47
53
|
attr_accessor :has_attachments
|
|
48
54
|
|
|
49
|
-
# Last email created time
|
|
50
|
-
attr_accessor :last_created_at
|
|
51
|
-
|
|
52
|
-
# Last sender
|
|
53
|
-
attr_accessor :last_from
|
|
54
|
-
|
|
55
|
-
attr_accessor :last_sender
|
|
56
|
-
|
|
57
55
|
# Has unread
|
|
58
56
|
attr_accessor :unread
|
|
59
57
|
|
|
@@ -66,61 +64,63 @@ module MailSlurpClient
|
|
|
66
64
|
# Last text excerpt
|
|
67
65
|
attr_accessor :last_text_excerpt
|
|
68
66
|
|
|
69
|
-
#
|
|
70
|
-
attr_accessor :
|
|
67
|
+
# Last email created time
|
|
68
|
+
attr_accessor :last_created_at
|
|
71
69
|
|
|
72
|
-
#
|
|
73
|
-
attr_accessor :
|
|
70
|
+
# Last sender
|
|
71
|
+
attr_accessor :last_from
|
|
72
|
+
|
|
73
|
+
attr_accessor :last_sender
|
|
74
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
|
-
:'user_id' => :'userId',
|
|
80
|
-
:'inbox_id' => :'inboxId',
|
|
81
81
|
:'sender' => :'sender',
|
|
82
82
|
:'recipients' => :'recipients',
|
|
83
|
-
:'
|
|
83
|
+
:'user_id' => :'userId',
|
|
84
|
+
:'inbox_id' => :'inboxId',
|
|
84
85
|
:'created_at' => :'createdAt',
|
|
85
86
|
:'to' => :'to',
|
|
86
87
|
:'cc' => :'cc',
|
|
87
88
|
:'bcc' => :'bcc',
|
|
89
|
+
:'updated_at' => :'updatedAt',
|
|
88
90
|
:'has_attachments' => :'hasAttachments',
|
|
89
|
-
:'last_created_at' => :'lastCreatedAt',
|
|
90
|
-
:'last_from' => :'lastFrom',
|
|
91
|
-
:'last_sender' => :'lastSender',
|
|
92
91
|
:'unread' => :'unread',
|
|
93
92
|
:'message_count' => :'messageCount',
|
|
94
93
|
:'last_body_excerpt' => :'lastBodyExcerpt',
|
|
95
94
|
:'last_text_excerpt' => :'lastTextExcerpt',
|
|
96
|
-
:'
|
|
97
|
-
:'
|
|
95
|
+
:'last_created_at' => :'lastCreatedAt',
|
|
96
|
+
:'last_from' => :'lastFrom',
|
|
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
|
-
:'user_id' => :'String',
|
|
106
|
-
:'inbox_id' => :'String',
|
|
107
107
|
:'sender' => :'SenderProjection',
|
|
108
108
|
:'recipients' => :'EmailRecipientsProjection',
|
|
109
|
-
:'
|
|
109
|
+
:'user_id' => :'String',
|
|
110
|
+
:'inbox_id' => :'String',
|
|
110
111
|
:'created_at' => :'DateTime',
|
|
111
112
|
:'to' => :'Array<String>',
|
|
112
113
|
:'cc' => :'Array<String>',
|
|
113
114
|
:'bcc' => :'Array<String>',
|
|
115
|
+
:'updated_at' => :'DateTime',
|
|
114
116
|
:'has_attachments' => :'Boolean',
|
|
115
|
-
:'last_created_at' => :'DateTime',
|
|
116
|
-
:'last_from' => :'String',
|
|
117
|
-
:'last_sender' => :'SenderProjection',
|
|
118
117
|
:'unread' => :'Boolean',
|
|
119
118
|
:'message_count' => :'Integer',
|
|
120
119
|
:'last_body_excerpt' => :'String',
|
|
121
120
|
:'last_text_excerpt' => :'String',
|
|
122
|
-
:'
|
|
123
|
-
:'
|
|
121
|
+
:'last_created_at' => :'DateTime',
|
|
122
|
+
:'last_from' => :'String',
|
|
123
|
+
:'last_sender' => :'SenderProjection'
|
|
124
124
|
}
|
|
125
125
|
end
|
|
126
126
|
|
|
@@ -145,16 +145,16 @@ module MailSlurpClient
|
|
|
145
145
|
h[k.to_sym] = v
|
|
146
146
|
}
|
|
147
147
|
|
|
148
|
-
if attributes.key?(:'
|
|
149
|
-
self.
|
|
148
|
+
if attributes.key?(:'id')
|
|
149
|
+
self.id = attributes[:'id']
|
|
150
150
|
end
|
|
151
151
|
|
|
152
|
-
if attributes.key?(:'
|
|
153
|
-
self.
|
|
152
|
+
if attributes.key?(:'from')
|
|
153
|
+
self.from = attributes[:'from']
|
|
154
154
|
end
|
|
155
155
|
|
|
156
|
-
if attributes.key?(:'
|
|
157
|
-
self.
|
|
156
|
+
if attributes.key?(:'subject')
|
|
157
|
+
self.subject = attributes[:'subject']
|
|
158
158
|
end
|
|
159
159
|
|
|
160
160
|
if attributes.key?(:'sender')
|
|
@@ -165,8 +165,12 @@ module MailSlurpClient
|
|
|
165
165
|
self.recipients = attributes[:'recipients']
|
|
166
166
|
end
|
|
167
167
|
|
|
168
|
-
if attributes.key?(:'
|
|
169
|
-
self.
|
|
168
|
+
if attributes.key?(:'user_id')
|
|
169
|
+
self.user_id = attributes[:'user_id']
|
|
170
|
+
end
|
|
171
|
+
|
|
172
|
+
if attributes.key?(:'inbox_id')
|
|
173
|
+
self.inbox_id = attributes[:'inbox_id']
|
|
170
174
|
end
|
|
171
175
|
|
|
172
176
|
if attributes.key?(:'created_at')
|
|
@@ -191,20 +195,12 @@ module MailSlurpClient
|
|
|
191
195
|
end
|
|
192
196
|
end
|
|
193
197
|
|
|
194
|
-
if attributes.key?(:'
|
|
195
|
-
self.
|
|
196
|
-
end
|
|
197
|
-
|
|
198
|
-
if attributes.key?(:'last_created_at')
|
|
199
|
-
self.last_created_at = attributes[:'last_created_at']
|
|
200
|
-
end
|
|
201
|
-
|
|
202
|
-
if attributes.key?(:'last_from')
|
|
203
|
-
self.last_from = attributes[:'last_from']
|
|
198
|
+
if attributes.key?(:'updated_at')
|
|
199
|
+
self.updated_at = attributes[:'updated_at']
|
|
204
200
|
end
|
|
205
201
|
|
|
206
|
-
if attributes.key?(:'
|
|
207
|
-
self.
|
|
202
|
+
if attributes.key?(:'has_attachments')
|
|
203
|
+
self.has_attachments = attributes[:'has_attachments']
|
|
208
204
|
end
|
|
209
205
|
|
|
210
206
|
if attributes.key?(:'unread')
|
|
@@ -223,12 +219,16 @@ module MailSlurpClient
|
|
|
223
219
|
self.last_text_excerpt = attributes[:'last_text_excerpt']
|
|
224
220
|
end
|
|
225
221
|
|
|
226
|
-
if attributes.key?(:'
|
|
227
|
-
self.
|
|
222
|
+
if attributes.key?(:'last_created_at')
|
|
223
|
+
self.last_created_at = attributes[:'last_created_at']
|
|
228
224
|
end
|
|
229
225
|
|
|
230
|
-
if attributes.key?(:'
|
|
231
|
-
self.
|
|
226
|
+
if attributes.key?(:'last_from')
|
|
227
|
+
self.last_from = attributes[:'last_from']
|
|
228
|
+
end
|
|
229
|
+
|
|
230
|
+
if attributes.key?(:'last_sender')
|
|
231
|
+
self.last_sender = attributes[:'last_sender']
|
|
232
232
|
end
|
|
233
233
|
end
|
|
234
234
|
|
|
@@ -236,12 +236,12 @@ module MailSlurpClient
|
|
|
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
|
-
if @
|
|
244
|
-
invalid_properties.push('invalid value for "
|
|
243
|
+
if @user_id.nil?
|
|
244
|
+
invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
|
|
245
245
|
end
|
|
246
246
|
|
|
247
247
|
if @created_at.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 @id.nil?
|
|
277
278
|
return false if @user_id.nil?
|
|
278
|
-
return false if @updated_at.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,26 +290,26 @@ 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
|
-
user_id == o.user_id &&
|
|
295
|
-
inbox_id == o.inbox_id &&
|
|
296
296
|
sender == o.sender &&
|
|
297
297
|
recipients == o.recipients &&
|
|
298
|
-
|
|
298
|
+
user_id == o.user_id &&
|
|
299
|
+
inbox_id == o.inbox_id &&
|
|
299
300
|
created_at == o.created_at &&
|
|
300
301
|
to == o.to &&
|
|
301
302
|
cc == o.cc &&
|
|
302
303
|
bcc == o.bcc &&
|
|
304
|
+
updated_at == o.updated_at &&
|
|
303
305
|
has_attachments == o.has_attachments &&
|
|
304
|
-
last_created_at == o.last_created_at &&
|
|
305
|
-
last_from == o.last_from &&
|
|
306
|
-
last_sender == o.last_sender &&
|
|
307
306
|
unread == o.unread &&
|
|
308
307
|
message_count == o.message_count &&
|
|
309
308
|
last_body_excerpt == o.last_body_excerpt &&
|
|
310
309
|
last_text_excerpt == o.last_text_excerpt &&
|
|
311
|
-
|
|
312
|
-
|
|
310
|
+
last_created_at == o.last_created_at &&
|
|
311
|
+
last_from == o.last_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
|
-
[
|
|
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,6 +14,10 @@ require 'date'
|
|
|
14
14
|
|
|
15
15
|
module MailSlurpClient
|
|
16
16
|
class EntityAutomationItemProjection
|
|
17
|
+
attr_accessor :name
|
|
18
|
+
|
|
19
|
+
attr_accessor :id
|
|
20
|
+
|
|
17
21
|
attr_accessor :inbox_id
|
|
18
22
|
|
|
19
23
|
attr_accessor :phone_id
|
|
@@ -22,10 +26,6 @@ module MailSlurpClient
|
|
|
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
|
+
:'name' => :'name',
|
|
55
|
+
:'id' => :'id',
|
|
54
56
|
:'inbox_id' => :'inboxId',
|
|
55
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
|
+
:'name' => :'String',
|
|
67
|
+
:'id' => :'String',
|
|
66
68
|
:'inbox_id' => :'String',
|
|
67
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,6 +93,14 @@ module MailSlurpClient
|
|
|
93
93
|
h[k.to_sym] = v
|
|
94
94
|
}
|
|
95
95
|
|
|
96
|
+
if attributes.key?(:'name')
|
|
97
|
+
self.name = attributes[:'name']
|
|
98
|
+
end
|
|
99
|
+
|
|
100
|
+
if attributes.key?(:'id')
|
|
101
|
+
self.id = attributes[:'id']
|
|
102
|
+
end
|
|
103
|
+
|
|
96
104
|
if attributes.key?(:'inbox_id')
|
|
97
105
|
self.inbox_id = attributes[:'inbox_id']
|
|
98
106
|
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
|
+
name == o.name &&
|
|
162
|
+
id == o.id &&
|
|
161
163
|
inbox_id == o.inbox_id &&
|
|
162
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
|
-
[inbox_id, phone_id, action, automation_type
|
|
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
|
-
attr_accessor :
|
|
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
|
-
:'inbox_id' => :'inboxId',
|
|
53
|
-
:'event_type' => :'eventType',
|
|
54
|
-
:'phone_id' => :'phoneId',
|
|
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
|
-
:'inbox_id' => :'String',
|
|
64
|
-
:'event_type' => :'String',
|
|
65
|
-
:'phone_id' => :'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
|
-
if attributes.key?(:'
|
|
101
|
-
self.
|
|
100
|
+
if attributes.key?(:'event_type')
|
|
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
|
-
inbox_id == o.inbox_id &&
|
|
171
|
-
event_type == o.event_type &&
|
|
172
|
-
phone_id == o.phone_id &&
|
|
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
|